@pi-outpost/embed 0.15.0 → 0.16.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/dist/PdfViewer-BEdoeHbS.cjs +1 -0
- package/dist/{PdfViewer-BHP5lV-o.js → PdfViewer-DvoTT6jM.js} +5 -5
- package/dist/{abnfDiagram-N423BO3Z-WMOVzCba.js → abnfDiagram-VCTEODGH-CYuCmqs8.js} +6 -6
- package/dist/abnfDiagram-VCTEODGH-SjZtzoAs.cjs +1 -0
- package/dist/{arc-BBnpgwVQ.js → arc-CtDF59mU.js} +8 -6
- package/dist/arc-Dh2Zrypi.cjs +1 -0
- package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +1 -0
- package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-BH-F8FzB.js → architectureDiagram-5GKGNRK7-D2-hmLgN.js} +327 -318
- package/dist/architectureDiagram-5GKGNRK7-wrDPdf3y.cjs +36 -0
- package/dist/blockDiagram-OSKFZWR5-Boo8WJyt.cjs +129 -0
- package/dist/blockDiagram-OSKFZWR5-Bvi4xQOy.js +1922 -0
- package/dist/{browser-CynjNfkw.js → browser-BmmG9yeb.js} +40 -34
- package/dist/{browser-CAyUayTx.cjs → browser-CUQnQIhV.cjs} +5 -5
- package/dist/c-AHDGPWiJ.cjs +1 -0
- package/dist/{c-Cw4FsAeJ.js → c-BCMbpktW.js} +42 -31
- package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +38 -0
- package/dist/{c4Diagram-5PPSVZJV-Cfnl6tZM.js → c4Diagram-7LVT6UL2-CU4tNaf1.js} +751 -703
- package/dist/{channel-Bq-0ENlK.js → channel-Cuipqk56.js} +1 -1
- package/dist/channel-DcrLLvcO.cjs +1 -0
- package/dist/{chunk-JQJVKLGR-CZorbEP3.js → chunk-3NF5O7KM-B-2znsHr.js} +155 -115
- package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +168 -0
- package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +62 -0
- package/dist/chunk-4HAMMTFA-dRm_HqMI.js +4188 -0
- package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +2 -0
- package/dist/{chunk-NSK5VX7P-DPxIxDdV.js → chunk-75Z2AOVW-Eg_bFxBJ.js} +60 -96
- package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +127 -0
- package/dist/{chunk-I66GZJ75-DexfhZwA.js → chunk-DU6HZSFF-CaHy-FdL.js} +527 -478
- package/dist/{chunk-2GRJ4B5K-DzaxUd3W.cjs → chunk-F27PBJKO-3UPgzIlN.cjs} +1 -1
- package/dist/{chunk-2GRJ4B5K-DXwE-yr5.js → chunk-F27PBJKO-BriqLvNp.js} +4 -4
- package/dist/{chunk-KEIR6QF5-BVnxrdHo.js → chunk-FOHPRMQF-BNNbqxGX.js} +424 -356
- package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +161 -0
- package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +72 -0
- package/dist/{chunk-WRU74C26-D4huAZcy.js → chunk-GMAD6QVW-DCCx2Rg1.js} +503 -267
- package/dist/chunk-GVQU2GXP-BRMv2gX3.js +37 -0
- package/dist/chunk-GVQU2GXP-iZT_vNLp.cjs +1 -0
- package/dist/{chunk-GF5L2VYU-BPBMCCz5.js → chunk-HLEWEB6X-DlG0X171.js} +16 -16
- package/dist/{chunk-GF5L2VYU-DgG-wovM.cjs → chunk-HLEWEB6X-aqFoPl02.cjs} +4 -4
- package/dist/chunk-L3NEJ4N5-DkoFQHrz.js +245 -0
- package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +1 -0
- package/dist/{chunk-7Z6QIM7H-CIoK8R3m.js → chunk-OSK3NFVY-CxjvZYNR.js} +232 -150
- package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +10 -0
- package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +1 -0
- package/dist/{chunk-W5SLKNZC-Djmw_p6f.js → chunk-P2QGCYS3-uCJfSNHC.js} +19 -19
- package/dist/{chunk-KBJHAD2P-CthZVYG5.cjs → chunk-POPQ4Y6H-BRQPB1-9.cjs} +1 -1
- package/dist/{chunk-KBJHAD2P-BlQyFndF.js → chunk-POPQ4Y6H-D2Z11lA3.js} +3 -3
- package/dist/{chunk-4I5QYGJK-LCSWSJfh.cjs → chunk-PWAF6VOD-CZZKCekP.cjs} +1 -1
- package/dist/{chunk-4I5QYGJK-JZmvuONC.js → chunk-PWAF6VOD-j4sFqhOF.js} +7 -9
- package/dist/{chunk-6Q2QTUOP-C5n08EA-.cjs → chunk-SVP7TREG-CTKSOFlx.cjs} +2 -2
- package/dist/{chunk-6Q2QTUOP-DvJxCxMM.js → chunk-SVP7TREG-CtJsmAIb.js} +4 -4
- package/dist/{chunk-XXDRQBXY-DsVp5qjg.js → chunk-XXDRQBXY-fOrVUHLI.js} +1 -1
- package/dist/{chunk-XXDRQBXY-gWcN0uCZ.cjs → chunk-XXDRQBXY-yMT3rT5Y.cjs} +1 -1
- package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +231 -0
- package/dist/{chunk-5RXB4S5H-JthGygoA.js → chunk-ZLD2IHE6-tqumZV0E.js} +44 -48
- package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +1 -0
- package/dist/classDiagram-CYGNFDIV-DIu4rTyR.js +30 -0
- package/dist/classDiagram-v2-TLXNO2FR-BsYK4QnI.js +30 -0
- package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +1 -0
- package/dist/{core-BO2hTFeF.js → core-B9pe29T7.js} +8 -7
- package/dist/core-BrupIPpc.cjs +3 -0
- package/dist/{cose-bilkent-JH36ORCC-BFo5zomD.js → cose-bilkent-JH36ORCC-1Ad4jvll.js} +65 -62
- package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +1 -0
- package/dist/{cpp-CeyO6lBG.js → cpp-CL2nTisp.js} +25 -14
- package/dist/cpp-DpAsh4uT.cjs +1 -0
- package/dist/{csharp-Ck6Fet_o.js → csharp-CK75iOSn.js} +37 -37
- package/dist/csharp-TOr_W-v9.cjs +1 -0
- package/dist/css-4wogsuks.cjs +1 -0
- package/dist/{css-ClSGJRju.js → css-DJr8nnnu.js} +6 -1
- package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-CB4ZzMEN.js → cynefinDiagram-5FMLGOSQ-BSRTnQvp.js} +29 -23
- package/dist/cynefinDiagram-5FMLGOSQ-GvGZco52.cjs +62 -0
- package/dist/{cytoscape.esm-asYnbYTy.js → cytoscape.esm-Cq7KPj0t.js} +2480 -2480
- package/dist/cytoscape.esm-uHsEX1XI.cjs +321 -0
- package/dist/{dagre-BpqwxFKp.js → dagre-BMKbPnPh.js} +689 -456
- package/dist/dagre-EEW2OxRU.cjs +1 -0
- package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +4 -0
- package/dist/dagre-OS7QT2EB-DcpSzxsR.js +425 -0
- package/dist/{defaultLocale-up9-vqhM.js → defaultLocale-B4ncmkvI.js} +1 -4
- package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
- package/dist/diagram-S7CK7UJ4-BA67ZpiO.cjs +30 -0
- package/dist/{diagram-7IWD3JNH-Cschro8T.js → diagram-S7CK7UJ4-Cx2fQdp6.js} +39 -38
- package/dist/{diagram-UB23O5K3-D-yL2fvd.js → diagram-UQ7AKVKN-CvQH-Box.js} +12 -12
- package/dist/diagram-UQ7AKVKN-OteiyKD9.cjs +41 -0
- package/dist/{diagram-B4RE2ZJO-DKbKOwkP.cjs → diagram-VSXAHHWV-BjsZz1JJ.cjs} +1 -1
- package/dist/{diagram-B4RE2ZJO-B94mhDmV.js → diagram-VSXAHHWV-CCpCVOIq.js} +6 -6
- package/dist/diagram-VX7I27RA-Bx9fEhR0.cjs +24 -0
- package/dist/{diagram-Q27KOJAE-Cqn3IliP.js → diagram-VX7I27RA-HE5nQAXN.js} +64 -62
- package/dist/{diagram-LBJQPF4R-D0MEwBt6.js → diagram-Z3DM3KII-BEu4c4pP.js} +11 -11
- package/dist/diagram-Z3DM3KII-jy895UiZ.cjs +24 -0
- package/dist/{dist-D6LMt8nW.js → dist-Dtt9eY41.js} +1 -1
- package/dist/{dist-DNGlMOWd.cjs → dist-Dwv2VYAL.cjs} +1 -1
- package/dist/{ebnfDiagram-BXEA7PRR-B2HDWFYF.js → ebnfDiagram-PWID7BFC-B06rGL3A.js} +6 -6
- package/dist/ebnfDiagram-PWID7BFC-BQZKHpUr.cjs +1 -0
- package/dist/erDiagram-2YWLMYGG-CuEEIv1I.cjs +99 -0
- package/dist/{erDiagram-JOGREHBK-Badv_hu8.js → erDiagram-2YWLMYGG-IL4IhNXb.js} +1046 -807
- package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +1 -0
- package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +3 -0
- package/dist/flowDiagram-T62WH6J4-DdJo3Te1.js +16 -0
- package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +1 -0
- package/dist/{ganttDiagram-PKOTCBZU-By0w7TmO.js → ganttDiagram-EL5Y4UJY-CIBhrOW6.js} +26 -36
- package/dist/ganttDiagram-EL5Y4UJY-PTWIufq8.cjs +292 -0
- package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +3 -0
- package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +1 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-B1uJYchG.js → gitGraphDiagram-WWUBYQGX-CjeedV4i.js} +16 -12
- package/dist/{gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs → gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs} +3 -3
- package/dist/{go-rg7jg1mu.js → go-B2E3I9E3.js} +4 -0
- package/dist/{go-D-pz-dmd.cjs → go-BDkypVKn.cjs} +1 -1
- package/dist/{graphlib-CkkG5MuS.cjs → graphlib-BaETKKSa.cjs} +1 -1
- package/dist/{graphlib-B0GbLif1.js → graphlib-CQa_B3rm.js} +5 -5
- package/dist/info-A6RAGUB7-Cx39sHYM.js +3 -0
- package/dist/info-A6RAGUB7-DT06-FB3.cjs +1 -0
- package/dist/{infoDiagram-6WML65LV-CkWm_KTB.js → infoDiagram-FKFFQAWI-BalzsRT4.js} +6 -6
- package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +2 -0
- package/dist/init-BJdqMO10.cjs +1 -0
- package/dist/{init-CirqLVcp.js → init-CuXVI8k2.js} +1 -3
- package/dist/{ishikawaDiagram-WSZJBQD7-DTeFqC8L.js → ishikawaDiagram-5VMMS53U-BC2vrJSo.js} +14 -14
- package/dist/{ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs → ishikawaDiagram-5VMMS53U-DN23jmFw.cjs} +3 -3
- package/dist/java-DFBMvIUR.cjs +1 -0
- package/dist/{java-HguKEfA2.js → java-T8Nr25pJ.js} +27 -22
- package/dist/{javascript-C8NCH8DE.js → javascript-CIP6I0eT.js} +6 -4
- package/dist/javascript-Gn0piXHk.cjs +1 -0
- package/dist/{journeyDiagram-NVQOT4AX-Cg6C3dFy.js → journeyDiagram-EYS64GPL-CLMBONXO.js} +14 -14
- package/dist/{journeyDiagram-NVQOT4AX-DLomv_vN.cjs → journeyDiagram-EYS64GPL-Co9rp-Q1.cjs} +3 -3
- package/dist/json-DOqjN5nI.js +42 -0
- package/dist/json-LMrXTXZM.cjs +1 -0
- package/dist/{kanban-definition-27J2QSJJ-B9Fog3W7.cjs → kanban-definition-UXKFOSKX-DzKPVjAq.cjs} +5 -5
- package/dist/{kanban-definition-27J2QSJJ-Bb7nb0gX.js → kanban-definition-UXKFOSKX-SNTHZo65.js} +31 -31
- package/dist/katex-CEF6MvLx.cjs +257 -0
- package/dist/katex-ohtLbxXc.js +21977 -0
- package/dist/{line-yqcJYv29.js → line-4_dF7rOW.js} +2 -2
- package/dist/{line-pOZ7Sdj7.cjs → line-D6gR53Af.cjs} +1 -1
- package/dist/{linear-CVhyaVzf.js → linear-C1gZJMVz.js} +8 -9
- package/dist/linear-Nt9BuHfn.cjs +1 -0
- package/dist/{markdown-CzgRofaE.js → markdown-BW-hB0s4.js} +2 -5
- package/dist/markdown-CTkHoGys.cjs +1 -0
- package/dist/{mermaid-parser.core-Cgsz0CdK.cjs → mermaid-parser.core-CBiDgMLi.cjs} +2 -2
- package/dist/{mermaid-parser.core-B8DQcCaz.js → mermaid-parser.core-DLNlSmfj.js} +31 -31
- package/dist/mermaid.core-B3QcBB1O.cjs +43 -0
- package/dist/mermaid.core-BIqYA7q2.js +3012 -0
- package/dist/{mindmap-definition-FAOFIHXS-9wa1P9NT.cjs → mindmap-definition-THT77NOG-Bo3D8RRT.cjs} +4 -4
- package/dist/{mindmap-definition-FAOFIHXS-DFG0Zs_1.js → mindmap-definition-THT77NOG-BtDuvAQ_.js} +27 -29
- package/dist/{ordinal-D0iNZ43g.cjs → ordinal-Bm_chml2.cjs} +1 -1
- package/dist/{ordinal-C1oQzsBn.js → ordinal-D3SPD7Kk.js} +2 -2
- package/dist/packet-AYTQ26CC-BGX2McoE.cjs +1 -0
- package/dist/packet-AYTQ26CC-IgkU2VYK.js +3 -0
- package/dist/path-DIS6ck99.cjs +1 -0
- package/dist/{path-mKa7UESy.js → path-PGqhG0Rz.js} +10 -11
- package/dist/{pdf-DyDm1M1B.js → pdf-B6zVkETi.js} +182 -220
- package/dist/pdf-cYqATYeW.cjs +54 -0
- package/dist/pegDiagram-XKGWAZYB-Cx-wZf4B.cjs +1 -0
- package/dist/{pegDiagram-VL7TDLO6-XOjprD-j.js → pegDiagram-XKGWAZYB-Ucd8o52_.js} +6 -6
- package/dist/{php-C9FOMGEA.js → php-Cn7gPoxt.js} +6 -0
- package/dist/{php-j6EhDZDE.cjs → php-DQmdBizx.cjs} +1 -1
- package/dist/pi-outpost-embed.cjs +47 -47
- package/dist/pi-outpost-embed.js +3750 -3717
- package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +1 -0
- package/dist/pie-WAS4IAKB-odE0A7fM.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-BC-pW4cK.cjs +39 -0
- package/dist/{pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js → pieDiagram-E7YTZNPT-DSx5wFMY.js} +20 -22
- package/dist/{python-DKAazMIE.js → python-BUfdXZqP.js} +6 -6
- package/dist/python-CrsffQw-.cjs +1 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-CbaMHmYB.js → quadrantDiagram-AXDQQJYC-D8Y50xmh.js} +11 -11
- package/dist/{quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs → quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs} +2 -2
- package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +1 -0
- package/dist/radar-RG4KPBEZ-DqbNqlJH.js +3 -0
- package/dist/railroad-74A4TZTK-Dzt4afqg.js +3 -0
- package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +1 -0
- package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +1 -0
- package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-3JsgWyLe.cjs +1 -0
- package/dist/{railroadDiagram-AXF67PYL-CVXAv-Uu.js → railroadDiagram-O6MQD6OU-BTg2KtZO.js} +6 -6
- package/dist/{requirementDiagram-LRYGKXZP-Bzik4kgS.js → requirementDiagram-IS5BZ75X-C1OrS7DV.js} +25 -24
- package/dist/{requirementDiagram-LRYGKXZP-BGlGCftH.cjs → requirementDiagram-IS5BZ75X-D1BMLxZg.cjs} +4 -4
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/{rolldown-runtime-mLOUI7ql.cjs → rolldown-runtime-DF3sbh8G.cjs} +1 -1
- package/dist/{rough.esm-r0QOSzHM.cjs → rough.esm-ChRLLRha.cjs} +1 -1
- package/dist/{rough.esm-C5XyeDCN.js → rough.esm-D2JJJ0Ot.js} +60 -51
- package/dist/{ruby-ClR4zp-1.cjs → ruby-B1inj-Q8.cjs} +1 -1
- package/dist/{ruby-BAUeZQKZ.js → ruby-DYVKXPXk.js} +1 -1
- package/dist/{rust-DiTjMjP5.js → rust-BihXqTNi.js} +38 -25
- package/dist/rust-D39kF6re.cjs +1 -0
- package/dist/{sankeyDiagram-W5VNT64P-OeLUMuT6.cjs → sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs} +2 -2
- package/dist/{sankeyDiagram-W5VNT64P-_8xZpo45.js → sankeyDiagram-P5KCCOFB-DTnkE4oO.js} +17 -15
- package/dist/{scss-CckAvQOx.js → scss-CzfrZ5cc.js} +6 -1
- package/dist/scss-t-vKjRr4.cjs +1 -0
- package/dist/{sequenceDiagram-SI44F4Z6-X4mzY21C.js → sequenceDiagram-WJ2MYXX4-Ba-z2rSx.js} +36 -48
- package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +162 -0
- package/dist/{sizeCapture-X5ZJPWSS-DKbHZNyz.js → sizeCapture-INFHLROL-B5Lg3qGn.js} +1 -1
- package/dist/{src-DJ4x3y2O.js → src-BMMAFeC3.js} +288 -291
- package/dist/src-D9o9TOtH.cjs +1 -0
- package/dist/{stateDiagram-OKZ733FA-CMM1orC_.js → stateDiagram-XQSTLZYL-BtcUS_dg.js} +21 -21
- package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +1 -0
- package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +1 -0
- package/dist/stateDiagram-v2-IH3M54BS-E_Rhduzm.js +30 -0
- package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +1 -0
- package/dist/{swimlanes-SLNWSIFB-C7LLK1V2.js → swimlanes-V6O3JKXN-xxlpXv1f.js} +1022 -1109
- package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +8 -0
- package/dist/swimlanesDiagram-JKAHXJPX-DyQwD-QO.js +30 -0
- package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +120 -0
- package/dist/{timeline-definition-Z64GVDOM-Cgc-2OmU.js → timeline-definition-24CTP7MA-Dr8ouzBO.js} +19 -19
- package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +1 -0
- package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +3 -0
- package/dist/treemap-WGGIJYW6-CGULpntJ.js +3 -0
- package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +1 -0
- package/dist/typescript-BarIi8q9.cjs +1 -0
- package/dist/{typescript-mdYq8uqf.js → typescript-C93MG6Zk.js} +26 -24
- package/dist/vennDiagram-4TSXK5OY-D5MMYyff.cjs +34 -0
- package/dist/{vennDiagram-T6HMQDX7-BWj1BhMh.js → vennDiagram-4TSXK5OY-i6B1rhUA.js} +15 -15
- package/dist/wardley-WFR3VGLG-9zHZLKh9.js +3 -0
- package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +1 -0
- package/dist/{wardleyDiagram-T6FBY63Y-d_t4oVLE.js → wardleyDiagram-VM6X3IG4-1SFyFcXg.js} +46 -46
- package/dist/{wardleyDiagram-T6FBY63Y-OomvVIFj.cjs → wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs} +36 -36
- package/dist/{workspacePath-BScUv3M_.js → workspacePath-CfDl0V4n.js} +1 -1
- package/dist/{workspacePath-kqTwbSP1.cjs → workspacePath-EgAFT36l.cjs} +1 -1
- package/dist/{xml-BamqaQOf.cjs → xml-B0vjUBag.cjs} +1 -1
- package/dist/{xml-DVYfB8uY.js → xml-GxASmsT7.js} +2 -6
- package/dist/{xychartDiagram-ELKLHX3M-BOSOdubI.cjs → xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs} +4 -4
- package/dist/{xychartDiagram-ELKLHX3M-Ce-ai3a8.js → xychartDiagram-S5SC5T6Z-D6QDBBGJ.js} +263 -158
- package/dist/{yaml-_1BORZTQ.js → yaml-CHhF1kKQ.js} +25 -25
- package/dist/yaml-DZS9gzaB.cjs +1 -0
- package/package.json +2 -2
- package/dist/PdfViewer-BBmVq73v.cjs +0 -1
- package/dist/abnfDiagram-N423BO3Z-DOZfbvMH.cjs +0 -1
- package/dist/arc-DcUn9_NX.cjs +0 -1
- package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +0 -1
- package/dist/architecture-TIHT7OUA-DDyMqjR1.js +0 -3
- package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +0 -36
- package/dist/blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs +0 -132
- package/dist/blockDiagram-VBNYF7ZC-DYMmF9bV.js +0 -3160
- package/dist/c-4QgYfi8K.cjs +0 -1
- package/dist/c4Diagram-5PPSVZJV-DM6x-BYG.cjs +0 -10
- package/dist/channel-DoxF0tZj.cjs +0 -1
- package/dist/chunk-3NCLNEKW-CO28EZBG.cjs +0 -1
- package/dist/chunk-3NCLNEKW-dTH67Ne_.js +0 -10
- package/dist/chunk-5RXB4S5H-B5b3tdRl.cjs +0 -231
- package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +0 -82
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
- package/dist/chunk-7Z6QIM7H-Ctljl7Vq.cjs +0 -10
- package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +0 -127
- package/dist/chunk-J7OUQ5F2-DhMpZbAr.js +0 -57
- package/dist/chunk-J7OUQ5F2-b-MfW4O9.cjs +0 -1
- package/dist/chunk-JQJVKLGR-2AQwaWbm.cjs +0 -156
- package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +0 -161
- package/dist/chunk-NSK5VX7P-D5CepZHI.cjs +0 -2
- package/dist/chunk-QR6OTTB3-CQ_jjYb-.js +0 -3736
- package/dist/chunk-QR6OTTB3-DSg3ZWNW.cjs +0 -62
- package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +0 -1
- package/dist/chunk-RYQCIY6F-C-YC3QS_.js +0 -239
- package/dist/chunk-UBXNYLIW-BBncokef.js +0 -32
- package/dist/chunk-UBXNYLIW-DlNyCWjj.cjs +0 -1
- package/dist/chunk-W5SLKNZC-bHBkM2CL.cjs +0 -1
- package/dist/chunk-WRU74C26-9KZxhHnn.cjs +0 -70
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +0 -32
- package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +0 -1146
- package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +0 -1
- package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +0 -1
- package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +0 -30
- package/dist/core-2nR1zkKb.cjs +0 -3
- package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +0 -1
- package/dist/cpp-BUtp-HE2.cjs +0 -1
- package/dist/csharp-BJu4kEpt.cjs +0 -1
- package/dist/css-DeFr0lev.cjs +0 -1
- package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +0 -1
- package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +0 -3
- package/dist/cynefinDiagram-MW4NZA55-By102s5I.cjs +0 -62
- package/dist/cytoscape.esm-ByjvpCPI.cjs +0 -321
- package/dist/dagre-BBlCxSvR.cjs +0 -1
- package/dist/dagre-VZM6K2ZE-5zrH2LqV.js +0 -328
- package/dist/dagre-VZM6K2ZE-CNe7-jhy.cjs +0 -4
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- package/dist/diagram-7IWD3JNH-CSzLXhRw.cjs +0 -30
- package/dist/diagram-LBJQPF4R-DgD0a56I.cjs +0 -24
- package/dist/diagram-Q27KOJAE-DNWfiaD5.cjs +0 -24
- package/dist/diagram-UB23O5K3-DguyM6v_.cjs +0 -41
- package/dist/ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs +0 -1
- package/dist/erDiagram-JOGREHBK-DtyaQROs.cjs +0 -85
- package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +0 -3
- package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +0 -1
- package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +0 -17
- package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +0 -1
- package/dist/ganttDiagram-PKOTCBZU-CFgz4r57.cjs +0 -292
- package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +0 -3
- package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +0 -1
- package/dist/info-DKCQHKI2-BEYhR6ip.cjs +0 -1
- package/dist/info-DKCQHKI2-BPF6-pOb.js +0 -3
- package/dist/infoDiagram-6WML65LV-CB6z_iKE.cjs +0 -2
- package/dist/init-07zIhv_j.cjs +0 -1
- package/dist/java-CUN_usaq.cjs +0 -1
- package/dist/javascript-UZXSyUuu.cjs +0 -1
- package/dist/json-Cp01TR_B.js +0 -36
- package/dist/json-usH_MUzR.cjs +0 -1
- package/dist/linear-Cl2-QuPP.cjs +0 -1
- package/dist/map-CwPlMWPw.cjs +0 -1
- package/dist/map-DU12fF3s.js +0 -241
- package/dist/markdown-qeo95R0i.cjs +0 -1
- package/dist/mermaid.core-BIq27e0A.js +0 -1068
- package/dist/mermaid.core-DpsSj3iy.cjs +0 -10
- package/dist/packet-7NZHBO7P-DqvBYJTR.js +0 -3
- package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +0 -1
- package/dist/path-Kklx0M1v.cjs +0 -1
- package/dist/pdf-aU0TN69t.cjs +0 -54
- package/dist/pegDiagram-VL7TDLO6-B4FslsmM.cjs +0 -1
- package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +0 -1
- package/dist/pie-RZYD4A2V-qnruo9sH.js +0 -3
- package/dist/pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs +0 -39
- package/dist/python-BYJzTRkK.cjs +0 -1
- package/dist/radar-I7S5WNFK-Dqdssa34.cjs +0 -1
- package/dist/radar-I7S5WNFK-np_pJCO-.js +0 -3
- package/dist/railroad-3IZDKUUU-NILjDQft.cjs +0 -1
- package/dist/railroad-3IZDKUUU-sjKBeXxB.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +0 -1
- package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +0 -3
- package/dist/railroadDiagram-AXF67PYL-EO1cBHEj.cjs +0 -1
- package/dist/rust-ghVvEWhm.cjs +0 -1
- package/dist/scss-CKxh5HRg.cjs +0 -1
- package/dist/sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs +0 -162
- package/dist/src-CR--T_NF.cjs +0 -1
- package/dist/stateDiagram-OKZ733FA-Dq6hI_pq.cjs +0 -1
- package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +0 -30
- package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +0 -1
- package/dist/swimlanes-SLNWSIFB-BMS6R0BK.cjs +0 -1
- package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +0 -8
- package/dist/swimlanesDiagram-ULZ7WXOC-uXMuqsao.js +0 -31
- package/dist/timeline-definition-Z64GVDOM-PPJqDdOy.cjs +0 -120
- package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +0 -1
- package/dist/treeView-QDETBFTQ-DdpEhzZX.js +0 -3
- package/dist/treemap-6X3UGDF4-BeCuRpkA.js +0 -3
- package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +0 -1
- package/dist/typescript-clWeqIBY.cjs +0 -1
- package/dist/vennDiagram-T6HMQDX7-DqY7YgNx.cjs +0 -34
- package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +0 -1
- package/dist/wardley-OPB4EBWU-DlIk2K0J.js +0 -3
- package/dist/yaml-bAgWofBg.cjs +0 -1
- /package/dist/{sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs → sizeCapture-INFHLROL-bJ2ZX4Du.cjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
-
import { h as n, m as r } from "./src-
|
|
2
|
+
import { h as n, m as r } from "./src-BMMAFeC3.js";
|
|
3
3
|
//#region ../node_modules/khroma/dist/utils/channel.js
|
|
4
4
|
var i = {
|
|
5
5
|
min: {
|
|
@@ -425,24 +425,24 @@ var s = {
|
|
|
425
425
|
let n = m.parse(e), r = {};
|
|
426
426
|
for (let e in t) t[e] && (r[e] = n[e] + t[e]);
|
|
427
427
|
return h(e, r);
|
|
428
|
-
},
|
|
428
|
+
}, S = (e, t, n = 50) => {
|
|
429
429
|
let { r, g: i, b: a, a: o } = m.parse(e), { r: s, g: c, b: l, a: u } = m.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, h = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, ee = 1 - h;
|
|
430
430
|
return g(r * h + s * ee, i * h + c * ee, a * h + l * ee, o * d + u * (1 - d));
|
|
431
|
-
},
|
|
431
|
+
}, C = (e, t = 100) => {
|
|
432
432
|
let n = m.parse(e);
|
|
433
|
-
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b,
|
|
433
|
+
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, S(n, e, t);
|
|
434
434
|
};
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region ../node_modules/dompurify/dist/purify.es.mjs
|
|
437
|
-
function
|
|
437
|
+
function ne(e, t) {
|
|
438
438
|
(t == null || t > e.length) && (t = e.length);
|
|
439
439
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
440
440
|
return r;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function re(e) {
|
|
443
443
|
if (Array.isArray(e)) return e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function ie(e, t) {
|
|
446
446
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
447
447
|
if (n != null) {
|
|
448
448
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -460,36 +460,36 @@ function ae(e, t) {
|
|
|
460
460
|
return s;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function ae() {
|
|
464
464
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
465
465
|
}
|
|
466
|
-
function
|
|
467
|
-
return
|
|
466
|
+
function oe(e, t) {
|
|
467
|
+
return re(e) || ie(e, t) || se(e, t) || ae();
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function se(e, t) {
|
|
470
470
|
if (e) {
|
|
471
|
-
if (typeof e == "string") return
|
|
471
|
+
if (typeof e == "string") return ne(e, t);
|
|
472
472
|
var n = {}.toString.call(e).slice(8, -1);
|
|
473
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
473
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ne(e, t) : void 0;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
|
|
476
|
+
var ce = Object.entries, le = Object.setPrototypeOf, ue = Object.isFrozen, de = Object.getPrototypeOf, fe = Object.getOwnPropertyDescriptor, w = Object.freeze, T = Object.seal, pe = Object.create, me = typeof Reflect < "u" && Reflect, he = me.apply, ge = me.construct;
|
|
477
|
+
w ||= function(e) {
|
|
478
478
|
return e;
|
|
479
|
-
},
|
|
479
|
+
}, T ||= function(e) {
|
|
480
480
|
return e;
|
|
481
|
-
},
|
|
481
|
+
}, he ||= function(e, t) {
|
|
482
482
|
var n = [...arguments].slice(2);
|
|
483
483
|
return e.apply(t, n);
|
|
484
484
|
}, ge ||= function(e) {
|
|
485
485
|
return new e(...[...arguments].slice(1));
|
|
486
486
|
};
|
|
487
|
-
var _e = k(Array.prototype.forEach), ve = k(Array.prototype.lastIndexOf), ye = k(Array.prototype.pop), be = k(Array.prototype.push), xe = k(Array.prototype.splice),
|
|
487
|
+
var _e = k(Array.prototype.forEach), ve = k(Array.prototype.lastIndexOf), ye = k(Array.prototype.pop), be = k(Array.prototype.push), xe = k(Array.prototype.splice), Se = Array.isArray, Ce = k(String.prototype.toLowerCase), we = k(String.prototype.toString), Te = k(String.prototype.match), Ee = k(String.prototype.replace), De = k(String.prototype.indexOf), Oe = k(String.prototype.trim), E = k(Number.prototype.toString), ke = k(Boolean.prototype.toString), Ae = typeof BigInt > "u" ? null : k(BigInt.prototype.toString), je = typeof Symbol > "u" ? null : k(Symbol.prototype.toString), D = k(Object.prototype.hasOwnProperty), Me = k(Object.prototype.toString), O = k(RegExp.prototype.test), Ne = Pe(TypeError);
|
|
488
488
|
function k(e) {
|
|
489
489
|
return function(t) {
|
|
490
490
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
491
491
|
var n = [...arguments].slice(1);
|
|
492
|
-
return
|
|
492
|
+
return he(e, t, n);
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
495
|
function Pe(e) {
|
|
@@ -498,14 +498,14 @@ function Pe(e) {
|
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
500
|
function A(e, t) {
|
|
501
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
502
|
-
if (
|
|
501
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ce;
|
|
502
|
+
if (le && le(e, null), !Se(t)) return e;
|
|
503
503
|
let r = t.length;
|
|
504
504
|
for (; r--;) {
|
|
505
505
|
let i = t[r];
|
|
506
506
|
if (typeof i == "string") {
|
|
507
507
|
let e = n(i);
|
|
508
|
-
e !== i && (
|
|
508
|
+
e !== i && (ue(t) || (t[r] = e), i = e);
|
|
509
509
|
}
|
|
510
510
|
e[i] = !0;
|
|
511
511
|
}
|
|
@@ -516,18 +516,18 @@ function Fe(e) {
|
|
|
516
516
|
return e;
|
|
517
517
|
}
|
|
518
518
|
function j(e) {
|
|
519
|
-
let t =
|
|
520
|
-
for (let r of
|
|
521
|
-
var n =
|
|
519
|
+
let t = pe(null);
|
|
520
|
+
for (let r of ce(e)) {
|
|
521
|
+
var n = oe(r, 2);
|
|
522
522
|
let i = n[0], a = n[1];
|
|
523
|
-
D(e, i) && (
|
|
523
|
+
D(e, i) && (t[i] = Se(a) ? Fe(a) : a && typeof a == "object" && a.constructor === Object ? j(a) : a);
|
|
524
524
|
}
|
|
525
525
|
return t;
|
|
526
526
|
}
|
|
527
527
|
function Ie(e) {
|
|
528
528
|
switch (typeof e) {
|
|
529
529
|
case "string": return e;
|
|
530
|
-
case "number": return
|
|
530
|
+
case "number": return E(e);
|
|
531
531
|
case "boolean": return ke(e);
|
|
532
532
|
case "bigint": return Ae ? Ae(e) : "0";
|
|
533
533
|
case "symbol": return je ? je(e) : "Symbol()";
|
|
@@ -547,12 +547,12 @@ function Ie(e) {
|
|
|
547
547
|
}
|
|
548
548
|
function M(e, t) {
|
|
549
549
|
for (; e !== null;) {
|
|
550
|
-
let n =
|
|
550
|
+
let n = fe(e, t);
|
|
551
551
|
if (n) {
|
|
552
552
|
if (n.get) return k(n.get);
|
|
553
553
|
if (typeof n.value == "function") return k(n.value);
|
|
554
554
|
}
|
|
555
|
-
e =
|
|
555
|
+
e = de(e);
|
|
556
556
|
}
|
|
557
557
|
function n() {
|
|
558
558
|
return null;
|
|
@@ -566,7 +566,7 @@ function Le(e) {
|
|
|
566
566
|
return !1;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
var Re =
|
|
569
|
+
var Re = w(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), ze = w(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Be = w([
|
|
570
570
|
"feBlend",
|
|
571
571
|
"feColorMatrix",
|
|
572
572
|
"feComponentTransfer",
|
|
@@ -592,7 +592,7 @@ var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
592
592
|
"feSpotLight",
|
|
593
593
|
"feTile",
|
|
594
594
|
"feTurbulence"
|
|
595
|
-
]), Ve =
|
|
595
|
+
]), Ve = w([
|
|
596
596
|
"animate",
|
|
597
597
|
"color-profile",
|
|
598
598
|
"cursor",
|
|
@@ -615,7 +615,7 @@ var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
615
615
|
"solidcolor",
|
|
616
616
|
"unknown",
|
|
617
617
|
"use"
|
|
618
|
-
]), He =
|
|
618
|
+
]), He = w(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ue = w([
|
|
619
619
|
"maction",
|
|
620
620
|
"maligngroup",
|
|
621
621
|
"malignmark",
|
|
@@ -631,13 +631,13 @@ var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
631
631
|
"annotation-xml",
|
|
632
632
|
"mprescripts",
|
|
633
633
|
"none"
|
|
634
|
-
]), We =
|
|
634
|
+
]), We = w(["#text"]), Ge = w(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ke = w(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), qe = w(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Je = w([
|
|
635
635
|
"xlink:href",
|
|
636
636
|
"xml:id",
|
|
637
637
|
"xlink:title",
|
|
638
638
|
"xml:space",
|
|
639
639
|
"xmlns:xlink"
|
|
640
|
-
]), Ye =
|
|
640
|
+
]), Ye = T(/{{[\w\W]*|^[\w\W]*}}/g), Xe = T(/<%[\w\W]*|^[\w\W]*%>/g), Ze = T(/\${[\w\W]*/g), Qe = T(/^data-[\-\w.\u00B7-\uFFFF]+$/), $e = T(/^aria-[\-\w]+$/), et = T(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), tt = T(/^(?:\w+script|data):/i), nt = T(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), rt = T(/^html$/i), it = T(/^[a-z][.\w]*(-[.\w]+)+$/i), at = T(/<[/\w!]/g), ot = T(/<[/\w]/g), st = T(/<\/no(script|embed|frames)/i), ct = T(/\/>/i), N = {
|
|
641
641
|
element: 1,
|
|
642
642
|
attribute: 2,
|
|
643
643
|
text: 3,
|
|
@@ -650,9 +650,23 @@ var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
650
650
|
documentType: 10,
|
|
651
651
|
documentFragment: 11,
|
|
652
652
|
notation: 12
|
|
653
|
-
}, lt =
|
|
653
|
+
}, lt = [
|
|
654
|
+
"style",
|
|
655
|
+
"script",
|
|
656
|
+
"xmp",
|
|
657
|
+
"iframe",
|
|
658
|
+
"noembed",
|
|
659
|
+
"noframes",
|
|
660
|
+
"plaintext",
|
|
661
|
+
"noscript"
|
|
662
|
+
], ut = w(A({}, lt)), dt = function() {
|
|
663
|
+
let e = {};
|
|
664
|
+
return _e(lt, (t) => {
|
|
665
|
+
e[t] = T(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
666
|
+
}), w(e);
|
|
667
|
+
}(), ft = function() {
|
|
654
668
|
return typeof window > "u" ? null : window;
|
|
655
|
-
},
|
|
669
|
+
}, pt = function(e, t) {
|
|
656
670
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
657
671
|
let n = null, r = "data-tt-policy-suffix";
|
|
658
672
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -669,7 +683,7 @@ var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
669
683
|
} catch {
|
|
670
684
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
671
685
|
}
|
|
672
|
-
},
|
|
686
|
+
}, mt = function() {
|
|
673
687
|
return {
|
|
674
688
|
afterSanitizeAttributes: [],
|
|
675
689
|
afterSanitizeElements: [],
|
|
@@ -681,53 +695,60 @@ var Re = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
681
695
|
uponSanitizeElement: [],
|
|
682
696
|
uponSanitizeShadowNode: []
|
|
683
697
|
};
|
|
684
|
-
},
|
|
685
|
-
return D(e, t) &&
|
|
698
|
+
}, ht = function(e, t, n, r) {
|
|
699
|
+
return D(e, t) && Se(e[t]) ? A(r.base ? j(r.base) : {}, e[t], r.transform) : n;
|
|
700
|
+
}, gt = function(e, t, n) {
|
|
701
|
+
let r = D(e, t) ? e[t] : void 0;
|
|
702
|
+
return r && typeof r == "object" ? j(r) : n();
|
|
686
703
|
};
|
|
687
|
-
function
|
|
688
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
689
|
-
if (t.version = "3.4.
|
|
704
|
+
function _t() {
|
|
705
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ft(), t = (e) => _t(e);
|
|
706
|
+
if (t.version = "3.4.14", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
|
|
690
707
|
let n = e.document, r = n, i = r.currentScript;
|
|
691
708
|
e.DocumentFragment;
|
|
692
709
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
693
710
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
694
|
-
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), ee = M(d, "shadowRoot"), te = M(d, "attributes"), _ = o && o.prototype ? M(o.prototype, "nodeType") : null, v = o && o.prototype ? M(o.prototype, "nodeName") : null, y = o && o.prototype ? M(o.prototype, "ownerDocument") : null
|
|
711
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = M(d, "cloneNode"), p = M(d, "remove"), m = M(d, "nextSibling"), h = M(d, "childNodes"), g = M(d, "parentNode"), ee = M(d, "shadowRoot"), te = M(d, "attributes"), _ = o && o.prototype ? M(o.prototype, "nodeType") : null, v = o && o.prototype ? M(o.prototype, "nodeName") : null, y = o && o.prototype ? M(o.prototype, "ownerDocument") : null, b = function(e) {
|
|
712
|
+
return _ ? _(e) : e.nodeType;
|
|
713
|
+
}, x = function(e) {
|
|
714
|
+
return v ? v(e) : e.nodeName;
|
|
715
|
+
};
|
|
695
716
|
if (typeof a == "function") {
|
|
696
717
|
let e = n.createElement("template");
|
|
697
718
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
698
719
|
}
|
|
699
|
-
let
|
|
700
|
-
if (
|
|
701
|
-
},
|
|
702
|
-
|
|
720
|
+
let S, C = "", ne, re = !1, ie = 0, ae = function() {
|
|
721
|
+
if (ie > 0) throw Ne("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
722
|
+
}, oe = function(e) {
|
|
723
|
+
ae(), ie++;
|
|
703
724
|
try {
|
|
704
|
-
return
|
|
725
|
+
return S.createHTML(e);
|
|
705
726
|
} finally {
|
|
706
|
-
|
|
727
|
+
ie--;
|
|
707
728
|
}
|
|
708
|
-
},
|
|
709
|
-
|
|
729
|
+
}, se = function(e) {
|
|
730
|
+
ae(), ie++;
|
|
710
731
|
try {
|
|
711
|
-
return
|
|
732
|
+
return S.createScriptURL(e);
|
|
712
733
|
} finally {
|
|
713
|
-
|
|
734
|
+
ie--;
|
|
714
735
|
}
|
|
715
|
-
},
|
|
716
|
-
return
|
|
717
|
-
},
|
|
718
|
-
t.isSupported = typeof
|
|
719
|
-
let
|
|
736
|
+
}, le = function() {
|
|
737
|
+
return re ||= (ne = pt(u, i), !0), ne;
|
|
738
|
+
}, ue = n, de = ue.implementation, fe = ue.createNodeIterator, me = ue.createDocumentFragment, he = ue.getElementsByTagName, ge = r.importNode, E = mt();
|
|
739
|
+
t.isSupported = typeof ce == "function" && typeof g == "function" && de && de.createHTMLDocument !== void 0;
|
|
740
|
+
let ke = Ye, Ae = Xe, je = Ze, Me = Qe, k = $e, Pe = tt, Fe = nt, lt = it, vt = et, P = null, F = A({}, [
|
|
720
741
|
...Re,
|
|
721
742
|
...ze,
|
|
722
743
|
...Be,
|
|
723
744
|
...He,
|
|
724
745
|
...We
|
|
725
|
-
]),
|
|
746
|
+
]), I = null, L = A({}, [
|
|
726
747
|
...Ge,
|
|
727
748
|
...Ke,
|
|
728
749
|
...qe,
|
|
729
750
|
...Je
|
|
730
|
-
]),
|
|
751
|
+
]), R = Object.seal(pe(null, {
|
|
731
752
|
tagNameCheck: {
|
|
732
753
|
writable: !0,
|
|
733
754
|
configurable: !1,
|
|
@@ -746,7 +767,7 @@ function pt() {
|
|
|
746
767
|
enumerable: !0,
|
|
747
768
|
value: !1
|
|
748
769
|
}
|
|
749
|
-
})),
|
|
770
|
+
})), yt = null, bt = null, z = Object.seal(pe(null, {
|
|
750
771
|
tagCheck: {
|
|
751
772
|
writable: !0,
|
|
752
773
|
configurable: !1,
|
|
@@ -759,14 +780,14 @@ function pt() {
|
|
|
759
780
|
enumerable: !0,
|
|
760
781
|
value: null
|
|
761
782
|
}
|
|
762
|
-
})),
|
|
783
|
+
})), xt = !0, St = !0, Ct = !1, wt = !0, B = !1, Tt = !0, Et = !1, Dt = !1, Ot = null, kt = null, At = !1, jt = !1, Mt = !1, Nt = !1, Pt = !0, Ft = !1, It = "user-content-", Lt = !0, V = !1, H = {}, U = null, Rt = A({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), zt = null, Bt = A({}, [
|
|
763
784
|
"audio",
|
|
764
785
|
"video",
|
|
765
786
|
"img",
|
|
766
787
|
"source",
|
|
767
788
|
"image",
|
|
768
789
|
"track"
|
|
769
|
-
]),
|
|
790
|
+
]), Vt = null, Ht = A({}, [
|
|
770
791
|
"alt",
|
|
771
792
|
"class",
|
|
772
793
|
"for",
|
|
@@ -781,78 +802,86 @@ function pt() {
|
|
|
781
802
|
"value",
|
|
782
803
|
"style",
|
|
783
804
|
"xmlns"
|
|
784
|
-
]),
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
],
|
|
805
|
+
]), W = "http://www.w3.org/1998/Math/MathML", Ut = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, q = !1, Wt = null, Gt = A({}, [
|
|
806
|
+
W,
|
|
807
|
+
Ut,
|
|
808
|
+
G
|
|
809
|
+
], we), Kt = w([
|
|
789
810
|
"mi",
|
|
790
811
|
"mo",
|
|
791
812
|
"mn",
|
|
792
813
|
"ms",
|
|
793
814
|
"mtext"
|
|
794
|
-
]),
|
|
815
|
+
]), qt = A({}, Kt), Jt = w(["annotation-xml"]), Yt = A({}, Jt), Xt = A({}, [
|
|
795
816
|
"title",
|
|
796
817
|
"style",
|
|
797
818
|
"font",
|
|
798
819
|
"a",
|
|
799
820
|
"script"
|
|
800
|
-
]),
|
|
821
|
+
]), Zt = null, Qt = ["application/xhtml+xml", "text/html"], J = null, $t = null, en = n.createElement("form"), tn = function(e) {
|
|
801
822
|
return e instanceof RegExp || e instanceof Function;
|
|
802
|
-
},
|
|
823
|
+
}, nn = function() {
|
|
803
824
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
804
|
-
if (
|
|
805
|
-
(!e || typeof e != "object") && (e = {}), e = j(e),
|
|
825
|
+
if ($t && $t === e) return;
|
|
826
|
+
(!e || typeof e != "object") && (e = {}), e = j(e), Zt = Qt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Zt === "application/xhtml+xml" ? we : Ce, P = ht(e, "ALLOWED_TAGS", F, { transform: J }), I = ht(e, "ALLOWED_ATTR", L, { transform: J }), Wt = ht(e, "ALLOWED_NAMESPACES", Gt, { transform: we }), Vt = ht(e, "ADD_URI_SAFE_ATTR", Ht, {
|
|
806
827
|
transform: J,
|
|
807
|
-
base:
|
|
808
|
-
}),
|
|
828
|
+
base: Ht
|
|
829
|
+
}), zt = ht(e, "ADD_DATA_URI_TAGS", Bt, {
|
|
809
830
|
transform: J,
|
|
810
|
-
base:
|
|
811
|
-
}), U =
|
|
812
|
-
let t =
|
|
813
|
-
if (
|
|
831
|
+
base: Bt
|
|
832
|
+
}), U = ht(e, "FORBID_CONTENTS", Rt, { transform: J }), yt = ht(e, "FORBID_TAGS", j({}), { transform: J }), bt = ht(e, "FORBID_ATTR", j({}), { transform: J }), H = D(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, xt = e.ALLOW_ARIA_ATTR !== !1, St = e.ALLOW_DATA_ATTR !== !1, Ct = e.ALLOW_UNKNOWN_PROTOCOLS || !1, wt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, Tt = e.SAFE_FOR_XML !== !1, Et = e.WHOLE_DOCUMENT || !1, jt = e.RETURN_DOM || !1, Mt = e.RETURN_DOM_FRAGMENT || !1, Nt = e.RETURN_TRUSTED_TYPE || !1, At = e.FORCE_BODY || !1, Pt = e.SANITIZE_DOM !== !1, Ft = e.SANITIZE_NAMED_PROPS || !1, Lt = e.KEEP_CONTENT !== !1, V = e.IN_PLACE || !1, vt = Le(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : et, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, qt = gt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => A({}, Kt)), Yt = gt(e, "HTML_INTEGRATION_POINTS", () => A({}, Jt));
|
|
833
|
+
let t = gt(e, "CUSTOM_ELEMENT_HANDLING", () => pe(null));
|
|
834
|
+
if (R = pe(null), D(t, "tagNameCheck") && tn(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), D(t, "attributeNameCheck") && tn(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), D(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), T(R), B && (St = !1), Mt && (jt = !0), H && (P = A({}, We), I = pe(null), H.html === !0 && (A(P, Re), A(I, Ge)), H.svg === !0 && (A(P, ze), A(I, Ke), A(I, Je)), H.svgFilters === !0 && (A(P, Be), A(I, Ke), A(I, Je)), H.mathMl === !0 && (A(P, He), A(I, qe), A(I, Je))), z.tagCheck = null, z.attributeCheck = null, D(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : Se(e.ADD_TAGS) && (P === F && (P = j(P)), A(P, e.ADD_TAGS, J))), D(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : Se(e.ADD_ATTR) && (I === L && (I = j(I)), A(I, e.ADD_ATTR, J))), D(e, "ADD_FORBID_CONTENTS") && Se(e.ADD_FORBID_CONTENTS) && (U === Rt && (U = j(U)), A(U, e.ADD_FORBID_CONTENTS, J)), Lt && (P["#text"] = !0), Et && A(P, [
|
|
814
835
|
"html",
|
|
815
836
|
"head",
|
|
816
837
|
"body"
|
|
817
|
-
]), P.table && (A(P, ["tbody"]), delete
|
|
838
|
+
]), P.table && (A(P, ["tbody"]), delete yt.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
818
839
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Ne("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
819
840
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Ne("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
820
|
-
let t =
|
|
821
|
-
|
|
841
|
+
let t = S;
|
|
842
|
+
S = e.TRUSTED_TYPES_POLICY;
|
|
822
843
|
try {
|
|
823
|
-
|
|
844
|
+
C = oe("");
|
|
824
845
|
} catch (e) {
|
|
825
|
-
throw
|
|
846
|
+
throw S = t, e;
|
|
826
847
|
}
|
|
827
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
828
|
-
|
|
829
|
-
},
|
|
848
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, C = "") : (S === void 0 && (S = le()), S && typeof C == "string" && (C = oe("")));
|
|
849
|
+
w && w(e), $t = e;
|
|
850
|
+
}, rn = A({}, [
|
|
830
851
|
...ze,
|
|
831
852
|
...Be,
|
|
832
853
|
...Ve
|
|
833
|
-
]),
|
|
834
|
-
return t.namespaceURI ===
|
|
835
|
-
},
|
|
836
|
-
return t.namespaceURI ===
|
|
837
|
-
},
|
|
838
|
-
return t.namespaceURI ===
|
|
839
|
-
},
|
|
854
|
+
]), an = A({}, [...He, ...Ue]), on = function(e, t, n) {
|
|
855
|
+
return t.namespaceURI === G ? e === "svg" : t.namespaceURI === W ? e === "svg" && (n === "annotation-xml" || qt[n]) : !!rn[e];
|
|
856
|
+
}, sn = function(e, t, n) {
|
|
857
|
+
return t.namespaceURI === G ? e === "math" : t.namespaceURI === Ut ? e === "math" && Yt[n] : !!an[e];
|
|
858
|
+
}, cn = function(e, t, n) {
|
|
859
|
+
return t.namespaceURI === Ut && !Yt[n] || t.namespaceURI === W && !qt[n] ? !1 : !an[e] && (Xt[e] || !rn[e]);
|
|
860
|
+
}, ln = function(e) {
|
|
840
861
|
let t = g(e);
|
|
841
862
|
(!t || !t.tagName) && (t = {
|
|
842
|
-
namespaceURI:
|
|
863
|
+
namespaceURI: K,
|
|
843
864
|
tagName: "template"
|
|
844
865
|
});
|
|
845
|
-
let n =
|
|
846
|
-
return
|
|
847
|
-
},
|
|
866
|
+
let n = Ce(e.tagName), r = Ce(t.tagName);
|
|
867
|
+
return Wt[e.namespaceURI] ? e.namespaceURI === Ut ? on(n, t, r) : e.namespaceURI === W ? sn(n, t, r) : e.namespaceURI === G ? cn(n, t, r) : !!(Zt === "application/xhtml+xml" && Wt[e.namespaceURI]) : !1;
|
|
868
|
+
}, Y = function(e) {
|
|
848
869
|
be(t.removed, { element: e });
|
|
849
870
|
try {
|
|
850
871
|
g(e).removeChild(e);
|
|
851
872
|
} catch {
|
|
852
873
|
if (p(e), !g(e)) throw Ne("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
853
874
|
}
|
|
854
|
-
},
|
|
855
|
-
|
|
875
|
+
}, un = function(e, t, n) {
|
|
876
|
+
try {
|
|
877
|
+
e.removeAttributeNode(t);
|
|
878
|
+
} catch {
|
|
879
|
+
try {
|
|
880
|
+
e.removeAttribute(n);
|
|
881
|
+
} catch {}
|
|
882
|
+
}
|
|
883
|
+
}, dn = function(e) {
|
|
884
|
+
pn(e);
|
|
856
885
|
let t = h(e);
|
|
857
886
|
if (t) {
|
|
858
887
|
let e = [];
|
|
@@ -867,49 +896,54 @@ function pt() {
|
|
|
867
896
|
let n = te(e);
|
|
868
897
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
869
898
|
let r = n[t], i = r && r.name;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
899
|
+
typeof i == "string" && un(e, r, i);
|
|
900
|
+
}
|
|
901
|
+
}, X = function(e, n, r) {
|
|
902
|
+
if (!r) try {
|
|
903
|
+
r = n.getAttributeNode(e);
|
|
904
|
+
} catch {
|
|
905
|
+
r = null;
|
|
873
906
|
}
|
|
874
|
-
|
|
907
|
+
be(t.removed, {
|
|
908
|
+
attribute: r || null,
|
|
909
|
+
from: n
|
|
910
|
+
});
|
|
875
911
|
try {
|
|
876
|
-
|
|
877
|
-
attribute: n.getAttributeNode(e),
|
|
878
|
-
from: n
|
|
879
|
-
});
|
|
912
|
+
r ? n.removeAttributeNode(r) : n.removeAttribute(e);
|
|
880
913
|
} catch {
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
});
|
|
914
|
+
try {
|
|
915
|
+
n.removeAttribute(e);
|
|
916
|
+
} catch {}
|
|
885
917
|
}
|
|
886
|
-
if (
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
918
|
+
if (e === "is") {
|
|
919
|
+
if (jt || Mt) try {
|
|
920
|
+
Y(n);
|
|
921
|
+
} catch {}
|
|
922
|
+
else try {
|
|
923
|
+
n.setAttribute(e, "");
|
|
924
|
+
} catch {}
|
|
925
|
+
}
|
|
926
|
+
}, fn = function(e) {
|
|
893
927
|
let t = te(e);
|
|
894
928
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
895
929
|
let r = t[n], i = r && r.name;
|
|
896
|
-
|
|
897
|
-
e.removeAttribute(i);
|
|
898
|
-
} catch {}
|
|
930
|
+
typeof i != "string" || I[J(i)] || un(e, r, i);
|
|
899
931
|
}
|
|
900
|
-
},
|
|
932
|
+
}, pn = function(e) {
|
|
901
933
|
let t = [e];
|
|
902
934
|
for (; t.length > 0;) {
|
|
903
935
|
let e = t.pop();
|
|
904
|
-
(
|
|
936
|
+
b(e) === N.element && fn(e);
|
|
905
937
|
let n = h(e);
|
|
906
938
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
907
939
|
}
|
|
908
|
-
},
|
|
909
|
-
|
|
940
|
+
}, mn = function(e, t) {
|
|
941
|
+
return Tt ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
942
|
+
}, hn = function(e) {
|
|
943
|
+
if (!Tt) return;
|
|
910
944
|
let t = [e];
|
|
911
945
|
for (; t.length > 0;) {
|
|
912
|
-
let e = t.pop(), n =
|
|
946
|
+
let e = t.pop(), n = b(e);
|
|
913
947
|
if (n === N.processingInstruction || n === N.comment && O(ot, e.data)) {
|
|
914
948
|
try {
|
|
915
949
|
p(e);
|
|
@@ -917,58 +951,58 @@ function pt() {
|
|
|
917
951
|
continue;
|
|
918
952
|
}
|
|
919
953
|
if (n === N.element) {
|
|
920
|
-
let t = e, n = J(
|
|
954
|
+
let t = e, n = J(x(e));
|
|
921
955
|
try {
|
|
922
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") &&
|
|
956
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && mn("for", n) && t.removeAttribute("for");
|
|
923
957
|
} catch {}
|
|
924
958
|
}
|
|
925
959
|
let r = h(e);
|
|
926
960
|
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
927
961
|
}
|
|
928
|
-
},
|
|
962
|
+
}, Z = function(e) {
|
|
929
963
|
let t = null, r = null;
|
|
930
|
-
if (
|
|
964
|
+
if (At) e = "<remove></remove>" + e;
|
|
931
965
|
else {
|
|
932
|
-
let t =
|
|
966
|
+
let t = Te(e, /^[\r\n\t ]+/);
|
|
933
967
|
r = t && t[0];
|
|
934
968
|
}
|
|
935
|
-
|
|
936
|
-
let i =
|
|
937
|
-
if (
|
|
938
|
-
t = new l().parseFromString(i,
|
|
969
|
+
Zt === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
970
|
+
let i = S ? oe(e) : e;
|
|
971
|
+
if (K === G) try {
|
|
972
|
+
t = new l().parseFromString(i, Zt);
|
|
939
973
|
} catch {}
|
|
940
974
|
if (!t || !t.documentElement) {
|
|
941
|
-
t =
|
|
975
|
+
t = de.createDocument(K, "template", null);
|
|
942
976
|
try {
|
|
943
|
-
t.documentElement.innerHTML =
|
|
977
|
+
t.documentElement.innerHTML = q ? C : i;
|
|
944
978
|
} catch {}
|
|
945
979
|
}
|
|
946
980
|
let a = t.body || t.documentElement;
|
|
947
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
948
|
-
},
|
|
981
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? he.call(t, Et ? "html" : "body")[0] : Et ? t.documentElement : a;
|
|
982
|
+
}, gn = function(e) {
|
|
949
983
|
let t = y ? y(e) : e.ownerDocument;
|
|
950
|
-
return
|
|
951
|
-
},
|
|
952
|
-
return e =
|
|
953
|
-
},
|
|
984
|
+
return fe.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
985
|
+
}, _n = function(e) {
|
|
986
|
+
return e = Ee(e, ke, " "), e = Ee(e, Ae, " "), e = Ee(e, je, " "), e;
|
|
987
|
+
}, vn = function(e) {
|
|
954
988
|
e.normalize();
|
|
955
|
-
let t = y ? y(e) : e.ownerDocument, n =
|
|
956
|
-
for (; r;) r.data =
|
|
989
|
+
let t = y ? y(e) : e.ownerDocument, n = fe.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
990
|
+
for (; r;) r.data = _n(r.data), r = n.nextNode();
|
|
957
991
|
let i = e.querySelectorAll?.call(e, "template");
|
|
958
992
|
i && _e(i, (e) => {
|
|
959
|
-
|
|
993
|
+
bn(e.content) && vn(e.content);
|
|
960
994
|
});
|
|
961
|
-
},
|
|
995
|
+
}, yn = function(e) {
|
|
962
996
|
let t = v ? v(e) : null;
|
|
963
997
|
return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== te(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== _(e) || e.childNodes !== h(e);
|
|
964
|
-
},
|
|
998
|
+
}, bn = function(e) {
|
|
965
999
|
if (!_ || typeof e != "object" || !e) return !1;
|
|
966
1000
|
try {
|
|
967
1001
|
return _(e) === N.documentFragment;
|
|
968
1002
|
} catch {
|
|
969
1003
|
return !1;
|
|
970
1004
|
}
|
|
971
|
-
},
|
|
1005
|
+
}, Q = function(e) {
|
|
972
1006
|
if (!_ || typeof e != "object" || !e) return !1;
|
|
973
1007
|
try {
|
|
974
1008
|
return typeof _(e) == "number";
|
|
@@ -978,14 +1012,16 @@ function pt() {
|
|
|
978
1012
|
};
|
|
979
1013
|
function $(e, n, r) {
|
|
980
1014
|
e.length !== 0 && _e(e, (e) => {
|
|
981
|
-
e.call(t, n, r,
|
|
1015
|
+
e.call(t, n, r, $t);
|
|
982
1016
|
});
|
|
983
1017
|
}
|
|
984
|
-
let
|
|
985
|
-
return !!(
|
|
986
|
-
},
|
|
987
|
-
|
|
988
|
-
|
|
1018
|
+
let xn = function(e, t) {
|
|
1019
|
+
return !!(Tt && e.hasChildNodes() && !Q(e.firstElementChild) && O(at, e.textContent) && O(at, e.innerHTML) || Tt && e.namespaceURI === G && ut[t] && (Q(e.firstElementChild) || typeof e.textContent == "string" && O(dt[t], e.textContent)) || e.nodeType === N.processingInstruction || Tt && e.nodeType === N.comment && O(ot, e.data));
|
|
1020
|
+
}, Sn = function(e, t) {
|
|
1021
|
+
return e instanceof RegExp ? O(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
1022
|
+
}, Cn = function(e, t, n) {
|
|
1023
|
+
if (!yt[t] && kn(t) && Sn(R.tagNameCheck, t)) return !1;
|
|
1024
|
+
if (Lt && !U[t]) {
|
|
989
1025
|
let t = g(e), r = h(e);
|
|
990
1026
|
if (r && t) {
|
|
991
1027
|
let i = r.length;
|
|
@@ -995,38 +1031,35 @@ function pt() {
|
|
|
995
1031
|
}
|
|
996
1032
|
}
|
|
997
1033
|
}
|
|
998
|
-
return
|
|
999
|
-
},
|
|
1034
|
+
return Y(e), !0;
|
|
1035
|
+
}, wn = function(e, t, n, r) {
|
|
1000
1036
|
return e.length === 0 ? t : t === n || t === r ? j(t) : t;
|
|
1001
|
-
},
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
if (
|
|
1037
|
+
}, Tn = function(e, t) {
|
|
1038
|
+
return e === t || g(e) !== null ? !1 : (V && pn(e), !0);
|
|
1039
|
+
}, En = function(e, n) {
|
|
1040
|
+
if ($(E.beforeSanitizeElements, e, null), Tn(e, n)) return !0;
|
|
1041
|
+
if (yn(e)) return Y(e), !0;
|
|
1042
|
+
let r = J(x(e));
|
|
1043
|
+
if (P = wn(E.uponSanitizeElement, P, F, Ot), $(E.uponSanitizeElement, e, {
|
|
1006
1044
|
tagName: r,
|
|
1007
1045
|
allowedTags: P
|
|
1008
|
-
}), e
|
|
1009
|
-
if (
|
|
1010
|
-
if (
|
|
1011
|
-
let t =
|
|
1012
|
-
return t === !1 && $(
|
|
1046
|
+
}), Tn(e, n)) return !0;
|
|
1047
|
+
if (xn(e, r)) return Y(e), !0;
|
|
1048
|
+
if (yt[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !P[r]) {
|
|
1049
|
+
let t = Cn(e, r, n);
|
|
1050
|
+
return t === !1 && $(E.afterSanitizeElements, e, null), t;
|
|
1013
1051
|
}
|
|
1014
|
-
if ((
|
|
1052
|
+
if (b(e) === N.element && !ln(e) || (r === "noscript" || r === "noembed" || r === "noframes") && O(st, e.innerHTML)) return Y(e), !0;
|
|
1015
1053
|
if (B && e.nodeType === N.text) {
|
|
1016
|
-
let n =
|
|
1054
|
+
let n = _n(e.textContent);
|
|
1017
1055
|
e.textContent !== n && (be(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
1018
1056
|
}
|
|
1019
|
-
return $(
|
|
1020
|
-
},
|
|
1021
|
-
if (
|
|
1022
|
-
let i =
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
if (!(bn(e) && (L.tagNameCheck instanceof RegExp && O(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && O(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && O(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
|
|
1026
|
-
} else if (!It[t] && !O(Fe, Te(r, k, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Ee(r, "data:") === 0 && Pt[e]) && !(vt && !O(Me, Te(r, k, ""))) && r) return !1;
|
|
1027
|
-
}
|
|
1028
|
-
return !0;
|
|
1029
|
-
}, yn = A({}, [
|
|
1057
|
+
return $(E.afterSanitizeElements, e, null), !1;
|
|
1058
|
+
}, Dn = function(e, t, r) {
|
|
1059
|
+
if (bt[t] || mn(t, e) || Pt && (t === "id" || t === "name") && (r in n || r in en)) return !1;
|
|
1060
|
+
let i = I[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
|
|
1061
|
+
return St && O(Me, t) || xt && O(k, t) ? !0 : i ? Vt[t] || O(vt, Ee(r, Fe, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && De(r, "data:") === 0 && zt[e] || Ct && !O(Pe, Ee(r, Fe, "")) ? !0 : !r : kn(e) && Sn(R.tagNameCheck, e) && Sn(R.attributeNameCheck, t, e) || t === "is" && R.allowCustomizedBuiltInElements && Sn(R.tagNameCheck, r);
|
|
1062
|
+
}, On = A({}, [
|
|
1030
1063
|
"annotation-xml",
|
|
1031
1064
|
"color-profile",
|
|
1032
1065
|
"font-face",
|
|
@@ -1035,67 +1068,67 @@ function pt() {
|
|
|
1035
1068
|
"font-face-src",
|
|
1036
1069
|
"font-face-uri",
|
|
1037
1070
|
"missing-glyph"
|
|
1038
|
-
]),
|
|
1039
|
-
return !
|
|
1040
|
-
},
|
|
1041
|
-
if (
|
|
1042
|
-
case "TrustedHTML": return
|
|
1043
|
-
case "TrustedScriptURL": return
|
|
1071
|
+
]), kn = function(e) {
|
|
1072
|
+
return !On[Ce(e)] && O(lt, e);
|
|
1073
|
+
}, An = function(e, t, n, r) {
|
|
1074
|
+
if (S && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
1075
|
+
case "TrustedHTML": return oe(r);
|
|
1076
|
+
case "TrustedScriptURL": return se(r);
|
|
1044
1077
|
}
|
|
1045
1078
|
return r;
|
|
1046
|
-
},
|
|
1079
|
+
}, jn = function(e, n, r, i) {
|
|
1047
1080
|
try {
|
|
1048
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i),
|
|
1081
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), yn(e) ? Y(e) : ye(t.removed);
|
|
1049
1082
|
} catch {
|
|
1050
|
-
|
|
1083
|
+
X(n, e);
|
|
1051
1084
|
}
|
|
1052
|
-
},
|
|
1053
|
-
$(
|
|
1085
|
+
}, Mn = function(e) {
|
|
1086
|
+
$(E.beforeSanitizeAttributes, e, null);
|
|
1054
1087
|
let t = e.attributes;
|
|
1055
|
-
if (!t ||
|
|
1056
|
-
|
|
1088
|
+
if (!t || yn(e)) return;
|
|
1089
|
+
I = wn(E.uponSanitizeAttribute, I, L, kt);
|
|
1057
1090
|
let n = {
|
|
1058
1091
|
attrName: "",
|
|
1059
1092
|
attrValue: "",
|
|
1060
1093
|
keepAttr: !0,
|
|
1061
|
-
allowedAttributes:
|
|
1094
|
+
allowedAttributes: I,
|
|
1062
1095
|
forceKeepAttr: void 0
|
|
1063
1096
|
}, r = t.length, i = J(e.nodeName);
|
|
1064
1097
|
for (; r--;) {
|
|
1065
|
-
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u :
|
|
1066
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(
|
|
1067
|
-
|
|
1098
|
+
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : Oe(u);
|
|
1099
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(E.uponSanitizeAttribute, e, n), d = n.attrValue, Ft && (l === "id" || l === "name") && De(d, It) !== 0 && (X(o, e, a), d = It + d), Tt && O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
1100
|
+
X(o, e, a);
|
|
1068
1101
|
continue;
|
|
1069
1102
|
}
|
|
1070
|
-
if (l === "attributename" &&
|
|
1071
|
-
|
|
1103
|
+
if (l === "attributename" && Te(d, "href")) {
|
|
1104
|
+
X(o, e, a);
|
|
1072
1105
|
continue;
|
|
1073
1106
|
}
|
|
1074
1107
|
if (!n.forceKeepAttr) {
|
|
1075
1108
|
if (!n.keepAttr) {
|
|
1076
|
-
|
|
1109
|
+
X(o, e, a);
|
|
1077
1110
|
continue;
|
|
1078
1111
|
}
|
|
1079
|
-
if (!
|
|
1080
|
-
|
|
1112
|
+
if (!wt && O(ct, d)) {
|
|
1113
|
+
X(o, e, a);
|
|
1081
1114
|
continue;
|
|
1082
1115
|
}
|
|
1083
|
-
if (B && (d =
|
|
1084
|
-
|
|
1116
|
+
if (B && (d = _n(d)), !Dn(i, l, d)) {
|
|
1117
|
+
X(o, e, a);
|
|
1085
1118
|
continue;
|
|
1086
1119
|
}
|
|
1087
|
-
d =
|
|
1120
|
+
d = An(i, l, s, d), d !== u && jn(e, o, s, d);
|
|
1088
1121
|
}
|
|
1089
1122
|
}
|
|
1090
|
-
$(
|
|
1091
|
-
},
|
|
1092
|
-
let t = null, n =
|
|
1093
|
-
for ($(
|
|
1123
|
+
$(E.afterSanitizeAttributes, e, null);
|
|
1124
|
+
}, Nn = function(e) {
|
|
1125
|
+
let t = null, n = gn(e);
|
|
1126
|
+
for ($(E.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(E.uponSanitizeShadowNode, t, null), En(t, e), Mn(t), bn(t.content) && Nn(t.content), b(t) === N.element) {
|
|
1094
1127
|
let e = ee(t);
|
|
1095
|
-
|
|
1128
|
+
bn(e) && (Pn(e), Nn(e));
|
|
1096
1129
|
}
|
|
1097
|
-
$(
|
|
1098
|
-
},
|
|
1130
|
+
$(E.afterSanitizeShadowDOM, e, null);
|
|
1131
|
+
}, Pn = function(e) {
|
|
1099
1132
|
let t = [{
|
|
1100
1133
|
node: e,
|
|
1101
1134
|
shadow: null
|
|
@@ -1103,10 +1136,10 @@ function pt() {
|
|
|
1103
1136
|
for (; t.length > 0;) {
|
|
1104
1137
|
let e = t.pop();
|
|
1105
1138
|
if (e.shadow) {
|
|
1106
|
-
|
|
1139
|
+
Nn(e.shadow);
|
|
1107
1140
|
continue;
|
|
1108
1141
|
}
|
|
1109
|
-
let n = e.node, r = (
|
|
1142
|
+
let n = e.node, r = b(n) === N.element, i = h(n);
|
|
1110
1143
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
1111
1144
|
node: i[e],
|
|
1112
1145
|
shadow: null
|
|
@@ -1115,7 +1148,7 @@ function pt() {
|
|
|
1115
1148
|
let e = v ? v(n) : null;
|
|
1116
1149
|
if (typeof e == "string" && J(e) === "template") {
|
|
1117
1150
|
let e = n.content;
|
|
1118
|
-
|
|
1151
|
+
bn(e) && t.push({
|
|
1119
1152
|
node: e,
|
|
1120
1153
|
shadow: null
|
|
1121
1154
|
});
|
|
@@ -1123,7 +1156,7 @@ function pt() {
|
|
|
1123
1156
|
}
|
|
1124
1157
|
if (r) {
|
|
1125
1158
|
let e = ee(n);
|
|
1126
|
-
|
|
1159
|
+
bn(e) && t.push({
|
|
1127
1160
|
node: null,
|
|
1128
1161
|
shadow: e
|
|
1129
1162
|
}, {
|
|
@@ -1135,76 +1168,76 @@ function pt() {
|
|
|
1135
1168
|
};
|
|
1136
1169
|
return t.sanitize = function(e) {
|
|
1137
1170
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
1138
|
-
if (
|
|
1171
|
+
if (q = !e, q && (e = "<!-->"), typeof e != "string" && !Q(e) && (e = Ie(e), typeof e != "string")) throw Ne("dirty is not a string, aborting");
|
|
1139
1172
|
if (!t.isSupported) return e;
|
|
1140
|
-
|
|
1141
|
-
let c =
|
|
1173
|
+
Dt ? (P = Ot, I = kt) : nn(n), (E.uponSanitizeElement.length > 0 || E.uponSanitizeAttribute.length > 0) && (P = j(P)), E.uponSanitizeAttribute.length > 0 && (I = j(I)), t.removed = [];
|
|
1174
|
+
let c = V && typeof e != "string" && Q(e);
|
|
1142
1175
|
if (c) {
|
|
1143
|
-
|
|
1144
|
-
let t =
|
|
1176
|
+
hn(e);
|
|
1177
|
+
let t = x(e);
|
|
1145
1178
|
if (typeof t == "string") {
|
|
1146
1179
|
let n = J(t);
|
|
1147
|
-
if (!P[n] ||
|
|
1180
|
+
if (!P[n] || yt[n]) throw dn(e), Ne("root node is forbidden and cannot be sanitized in-place");
|
|
1148
1181
|
}
|
|
1149
|
-
if (
|
|
1182
|
+
if (yn(e)) throw dn(e), Ne("root node is clobbered and cannot be sanitized in-place");
|
|
1150
1183
|
try {
|
|
1151
|
-
|
|
1184
|
+
Pn(e);
|
|
1152
1185
|
} catch (t) {
|
|
1153
|
-
throw
|
|
1186
|
+
throw dn(e), t;
|
|
1154
1187
|
}
|
|
1155
|
-
} else if (
|
|
1188
|
+
} else if (Q(e)) i = Z("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Pn(a);
|
|
1156
1189
|
else {
|
|
1157
|
-
if (!
|
|
1158
|
-
if (i =
|
|
1190
|
+
if (!jt && !B && !Et && e.indexOf("<") === -1) return S && Nt ? oe(e) : e;
|
|
1191
|
+
if (i = Z(e), !i) return jt ? null : Nt ? C : "";
|
|
1159
1192
|
}
|
|
1160
|
-
i &&
|
|
1193
|
+
i && At && Y(i.firstChild);
|
|
1161
1194
|
let l = c ? e : i;
|
|
1162
1195
|
try {
|
|
1163
|
-
let e =
|
|
1164
|
-
for (; o = e.nextNode();)
|
|
1196
|
+
let e = gn(l);
|
|
1197
|
+
for (; o = e.nextNode();) En(o, l), Mn(o), bn(o.content) && Nn(o.content);
|
|
1165
1198
|
} catch (n) {
|
|
1166
|
-
throw c && (
|
|
1167
|
-
e.element &&
|
|
1199
|
+
throw c && (dn(e), _e(t.removed, (e) => {
|
|
1200
|
+
e.element && pn(e.element);
|
|
1168
1201
|
})), n;
|
|
1169
1202
|
}
|
|
1170
1203
|
if (c) return _e(t.removed, (e) => {
|
|
1171
|
-
e.element &&
|
|
1172
|
-
}), B &&
|
|
1173
|
-
if (
|
|
1174
|
-
if (B &&
|
|
1204
|
+
e.element && pn(e.element);
|
|
1205
|
+
}), B && vn(e), e;
|
|
1206
|
+
if (jt) {
|
|
1207
|
+
if (B && vn(i), Mt) for (s = me.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
1175
1208
|
else s = i;
|
|
1176
|
-
return (
|
|
1209
|
+
return (I.shadowroot || I.shadowrootmode) && (s = ge.call(r, s, !0)), s;
|
|
1177
1210
|
}
|
|
1178
|
-
let u =
|
|
1179
|
-
return
|
|
1211
|
+
let u = Et ? i.outerHTML : i.innerHTML;
|
|
1212
|
+
return Et && P["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && O(rt, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = _n(u)), S && Nt ? oe(u) : u;
|
|
1180
1213
|
}, t.setConfig = function() {
|
|
1181
1214
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1182
|
-
|
|
1215
|
+
nn(e), Dt = !0, Ot = P, kt = I;
|
|
1183
1216
|
}, t.clearConfig = function() {
|
|
1184
|
-
|
|
1217
|
+
$t = null, Dt = !1, Ot = null, kt = null, S = ne, C = "";
|
|
1185
1218
|
}, t.isValidAttribute = function(e, t, n) {
|
|
1186
|
-
|
|
1219
|
+
$t || nn({});
|
|
1187
1220
|
let r = J(e), i = J(t);
|
|
1188
|
-
return
|
|
1221
|
+
return Dn(r, i, n);
|
|
1189
1222
|
}, t.addHook = function(e, t) {
|
|
1190
|
-
typeof t == "function" && D(
|
|
1223
|
+
typeof t == "function" && D(E, e) && be(E[e], t);
|
|
1191
1224
|
}, t.removeHook = function(e, t) {
|
|
1192
|
-
if (D(
|
|
1225
|
+
if (D(E, e)) {
|
|
1193
1226
|
if (t !== void 0) {
|
|
1194
|
-
let n = ve(
|
|
1195
|
-
return n === -1 ? void 0 : xe(
|
|
1227
|
+
let n = ve(E[e], t);
|
|
1228
|
+
return n === -1 ? void 0 : xe(E[e], n, 1)[0];
|
|
1196
1229
|
}
|
|
1197
|
-
return ye(
|
|
1230
|
+
return ye(E[e]);
|
|
1198
1231
|
}
|
|
1199
1232
|
}, t.removeHooks = function(e) {
|
|
1200
|
-
D(
|
|
1233
|
+
D(E, e) && (E[e] = []);
|
|
1201
1234
|
}, t.removeAllHooks = function() {
|
|
1202
|
-
|
|
1235
|
+
E = mt();
|
|
1203
1236
|
}, t;
|
|
1204
1237
|
}
|
|
1205
|
-
var
|
|
1238
|
+
var vt = _t(), P = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
1206
1239
|
let r = { depth: n };
|
|
1207
|
-
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) =>
|
|
1240
|
+
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => P(e, t, r)), e;
|
|
1208
1241
|
if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
|
|
1209
1242
|
e.includes(t) || e.push(t);
|
|
1210
1243
|
}), e;
|
|
@@ -1219,7 +1252,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1219
1252
|
writable: !0,
|
|
1220
1253
|
enumerable: !0,
|
|
1221
1254
|
configurable: !0
|
|
1222
|
-
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] =
|
|
1255
|
+
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = P(r[t], i, { depth: n - 1 }));
|
|
1223
1256
|
} else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
|
|
1224
1257
|
value: i,
|
|
1225
1258
|
writable: !0,
|
|
@@ -1229,13 +1262,13 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1229
1262
|
});
|
|
1230
1263
|
}
|
|
1231
1264
|
return e;
|
|
1232
|
-
}, "assignWithDepth"), F =
|
|
1265
|
+
}, "assignWithDepth"), F = P, I = "#ffffff", L = "#f2f2f2", R = /* @__PURE__ */ e((e, t) => t ? x(e, {
|
|
1233
1266
|
s: -40,
|
|
1234
1267
|
l: 10
|
|
1235
1268
|
}) : x(e, {
|
|
1236
1269
|
s: -40,
|
|
1237
1270
|
l: -10
|
|
1238
|
-
}), "mkBorder"),
|
|
1271
|
+
}), "mkBorder"), yt = class {
|
|
1239
1272
|
static {
|
|
1240
1273
|
e(this, "Theme");
|
|
1241
1274
|
}
|
|
@@ -1246,12 +1279,12 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1246
1279
|
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
1247
1280
|
h: 180,
|
|
1248
1281
|
l: 5
|
|
1249
|
-
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor ||
|
|
1282
|
+
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
|
|
1250
1283
|
h: 210,
|
|
1251
1284
|
l: 150
|
|
1252
1285
|
}), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
1253
1286
|
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
1254
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1287
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1255
1288
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
1256
1289
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1257
1290
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
@@ -1366,6 +1399,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1366
1399
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1367
1400
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1368
1401
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1402
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1369
1403
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1370
1404
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1371
1405
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1375,7 +1409,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1375
1409
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1376
1410
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1377
1411
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1378
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 ||
|
|
1412
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
1379
1413
|
}
|
|
1380
1414
|
calculate(e) {
|
|
1381
1415
|
if (typeof e != "object") {
|
|
@@ -1389,19 +1423,19 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1389
1423
|
this[t] = e[t];
|
|
1390
1424
|
});
|
|
1391
1425
|
}
|
|
1392
|
-
},
|
|
1393
|
-
let t = new
|
|
1426
|
+
}, bt = /* @__PURE__ */ e((e) => {
|
|
1427
|
+
let t = new yt();
|
|
1394
1428
|
return t.calculate(e), t;
|
|
1395
|
-
}, "getThemeVariables"),
|
|
1429
|
+
}, "getThemeVariables"), z = class {
|
|
1396
1430
|
static {
|
|
1397
1431
|
e(this, "Theme");
|
|
1398
1432
|
}
|
|
1399
1433
|
constructor() {
|
|
1400
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor =
|
|
1434
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(C("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = g(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = g(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
|
|
1401
1435
|
}
|
|
1402
1436
|
updateColors() {
|
|
1403
|
-
this.secondBkg = y(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = y(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = y(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor =
|
|
1404
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1437
|
+
this.secondBkg = y(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = y(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = y(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = C(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
|
|
1438
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1405
1439
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10);
|
|
1406
1440
|
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || x(this.mainBkg, {
|
|
1407
1441
|
h: 30,
|
|
@@ -1461,6 +1495,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1461
1495
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1462
1496
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1463
1497
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1498
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1464
1499
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1465
1500
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1466
1501
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1501,7 +1536,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1501
1536
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1502
1537
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1503
1538
|
annotationFill: this.wardley?.annotationFill || this.mainBkg
|
|
1504
|
-
}, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = y(this.secondaryColor, 20), this.git1 = y(this.pie2 || this.secondaryColor, 20), this.git2 = y(this.pie3 || this.tertiaryColor, 20), this.git3 = y(this.pie4 || x(this.primaryColor, { h: -30 }), 20), this.git4 = y(this.pie5 || x(this.primaryColor, { h: -60 }), 20), this.git5 = y(this.pie6 || x(this.primaryColor, { h: -90 }), 10), this.git6 = y(this.pie7 || x(this.primaryColor, { h: 60 }), 10), this.git7 = y(this.pie8 || x(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 ||
|
|
1539
|
+
}, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = y(this.secondaryColor, 20), this.git1 = y(this.pie2 || this.secondaryColor, 20), this.git2 = y(this.pie3 || this.tertiaryColor, 20), this.git3 = y(this.pie4 || x(this.primaryColor, { h: -30 }), 20), this.git4 = y(this.pie5 || x(this.primaryColor, { h: -60 }), 20), this.git5 = y(this.pie6 || x(this.primaryColor, { h: -90 }), 10), this.git6 = y(this.pie7 || x(this.primaryColor, { h: 60 }), 10), this.git7 = y(this.pie8 || x(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || y("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || y("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || y("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || y("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || y(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || y(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || y(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || y(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
1505
1540
|
}
|
|
1506
1541
|
calculate(e) {
|
|
1507
1542
|
if (typeof e != "object") {
|
|
@@ -1515,15 +1550,15 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1515
1550
|
this[t] = e[t];
|
|
1516
1551
|
});
|
|
1517
1552
|
}
|
|
1518
|
-
},
|
|
1519
|
-
let t = new
|
|
1553
|
+
}, xt = /* @__PURE__ */ e((e) => {
|
|
1554
|
+
let t = new z();
|
|
1520
1555
|
return t.calculate(e), t;
|
|
1521
|
-
}, "getThemeVariables"),
|
|
1556
|
+
}, "getThemeVariables"), St = class {
|
|
1522
1557
|
static {
|
|
1523
1558
|
e(this, "Theme");
|
|
1524
1559
|
}
|
|
1525
1560
|
constructor() {
|
|
1526
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor =
|
|
1561
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = g(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
|
|
1527
1562
|
}
|
|
1528
1563
|
updateColors() {
|
|
1529
1564
|
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
|
|
@@ -1537,7 +1572,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1537
1572
|
l: -(7 + e * 5)
|
|
1538
1573
|
});
|
|
1539
1574
|
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
1540
|
-
this.cScaleLabel0 = this.cScaleLabel0 ||
|
|
1575
|
+
this.cScaleLabel0 = this.cScaleLabel0 || C(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || C(this.labelTextColor);
|
|
1541
1576
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
1542
1577
|
}
|
|
1543
1578
|
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || y(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || y(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || x(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || x(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || x(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || x(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || x(this.primaryColor, {
|
|
@@ -1641,6 +1676,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1641
1676
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1642
1677
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1643
1678
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1679
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1644
1680
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1645
1681
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1646
1682
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1650,7 +1686,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1650
1686
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1651
1687
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1652
1688
|
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
1653
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(
|
|
1689
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(C(this.git0), 25), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
|
|
1654
1690
|
}
|
|
1655
1691
|
calculate(e) {
|
|
1656
1692
|
if (Object.keys(this).forEach((e) => {
|
|
@@ -1666,15 +1702,15 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1666
1702
|
this[t] = e[t];
|
|
1667
1703
|
});
|
|
1668
1704
|
}
|
|
1669
|
-
},
|
|
1670
|
-
let t = new
|
|
1705
|
+
}, Ct = /* @__PURE__ */ e((e) => {
|
|
1706
|
+
let t = new St();
|
|
1671
1707
|
return t.calculate(e), t;
|
|
1672
|
-
}, "getThemeVariables"),
|
|
1708
|
+
}, "getThemeVariables"), wt = class {
|
|
1673
1709
|
static {
|
|
1674
1710
|
e(this, "Theme");
|
|
1675
1711
|
}
|
|
1676
1712
|
constructor() {
|
|
1677
|
-
this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = y("#cde498", 10), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor =
|
|
1713
|
+
this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = y("#cde498", 10), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.primaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
|
|
1678
1714
|
}
|
|
1679
1715
|
updateColors() {
|
|
1680
1716
|
this.actorBorder = b(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
|
|
@@ -1802,6 +1838,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1802
1838
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1803
1839
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1804
1840
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1841
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1805
1842
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1806
1843
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1807
1844
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1811,7 +1848,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1811
1848
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1812
1849
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1813
1850
|
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
1814
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 ||
|
|
1851
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || C(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || C(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
|
|
1815
1852
|
}
|
|
1816
1853
|
calculate(e) {
|
|
1817
1854
|
if (typeof e != "object") {
|
|
@@ -1825,19 +1862,19 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1825
1862
|
this[t] = e[t];
|
|
1826
1863
|
});
|
|
1827
1864
|
}
|
|
1828
|
-
},
|
|
1829
|
-
let t = new
|
|
1865
|
+
}, B = /* @__PURE__ */ e((e) => {
|
|
1866
|
+
let t = new wt();
|
|
1830
1867
|
return t.calculate(e), t;
|
|
1831
|
-
}, "getThemeVariables"),
|
|
1868
|
+
}, "getThemeVariables"), Tt = class {
|
|
1832
1869
|
static {
|
|
1833
1870
|
e(this, "Theme");
|
|
1834
1871
|
}
|
|
1835
1872
|
constructor() {
|
|
1836
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor =
|
|
1873
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = R(this.primaryColor, this.darkMode), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.lineColor = C(this.background), this.textColor = C(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
1837
1874
|
}
|
|
1838
1875
|
updateColors() {
|
|
1839
1876
|
this.secondBkg = y(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = y(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
|
|
1840
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1877
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1841
1878
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
1842
1879
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1843
1880
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
@@ -1890,6 +1927,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1890
1927
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1891
1928
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1892
1929
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1930
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1893
1931
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1894
1932
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1895
1933
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1923,7 +1961,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1923
1961
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1924
1962
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1925
1963
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
1926
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 ||
|
|
1964
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
|
|
1927
1965
|
}
|
|
1928
1966
|
calculate(e) {
|
|
1929
1967
|
if (typeof e != "object") {
|
|
@@ -1937,10 +1975,10 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1937
1975
|
this[t] = e[t];
|
|
1938
1976
|
});
|
|
1939
1977
|
}
|
|
1940
|
-
},
|
|
1941
|
-
let t = new
|
|
1978
|
+
}, Et = /* @__PURE__ */ e((e) => {
|
|
1979
|
+
let t = new Tt();
|
|
1942
1980
|
return t.calculate(e), t;
|
|
1943
|
-
}, "getThemeVariables"),
|
|
1981
|
+
}, "getThemeVariables"), Dt = class {
|
|
1944
1982
|
static {
|
|
1945
1983
|
e(this, "Theme");
|
|
1946
1984
|
}
|
|
@@ -1951,7 +1989,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1951
1989
|
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
1952
1990
|
h: 180,
|
|
1953
1991
|
l: 5
|
|
1954
|
-
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor ||
|
|
1992
|
+
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
1955
1993
|
let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
|
|
1956
1994
|
h: 180,
|
|
1957
1995
|
l: 5
|
|
@@ -1961,7 +1999,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
1961
1999
|
l: 150
|
|
1962
2000
|
}), this.cScale9 = this.cScale9 || x(e, { h: 270 }), this.cScale10 = this.cScale10 || x(e, { h: 300 }), this.cScale11 = this.cScale11 || x(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
1963
2001
|
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
1964
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2002
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
1965
2003
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
1966
2004
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1967
2005
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
@@ -2020,6 +2058,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2020
2058
|
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2021
2059
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2022
2060
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2061
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2023
2062
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2024
2063
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2025
2064
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2029,7 +2068,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2029
2068
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2030
2069
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2031
2070
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2032
|
-
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 ||
|
|
2071
|
+
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
|
|
2033
2072
|
}
|
|
2034
2073
|
calculate(e) {
|
|
2035
2074
|
if (typeof e != "object") {
|
|
@@ -2043,26 +2082,26 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2043
2082
|
this[t] = e[t];
|
|
2044
2083
|
});
|
|
2045
2084
|
}
|
|
2046
|
-
},
|
|
2047
|
-
let t = new
|
|
2085
|
+
}, Ot = /* @__PURE__ */ e((e) => {
|
|
2086
|
+
let t = new Dt();
|
|
2048
2087
|
return t.calculate(e), t;
|
|
2049
|
-
}, "getThemeVariables"),
|
|
2088
|
+
}, "getThemeVariables"), kt = class {
|
|
2050
2089
|
static {
|
|
2051
2090
|
e(this, "Theme");
|
|
2052
2091
|
}
|
|
2053
2092
|
constructor() {
|
|
2054
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor =
|
|
2093
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = C(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
2055
2094
|
}
|
|
2056
2095
|
updateColors() {
|
|
2057
2096
|
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2058
2097
|
h: 180,
|
|
2059
2098
|
l: 5
|
|
2060
|
-
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2099
|
+
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
|
|
2061
2100
|
h: 210,
|
|
2062
2101
|
l: 150
|
|
2063
2102
|
}), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
2064
2103
|
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
2065
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2104
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
2066
2105
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2067
2106
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2068
2107
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
@@ -2121,6 +2160,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2121
2160
|
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2122
2161
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2123
2162
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2163
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2124
2164
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2125
2165
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2126
2166
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2130,7 +2170,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2130
2170
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2131
2171
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2132
2172
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2133
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 ||
|
|
2173
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
|
|
2134
2174
|
}
|
|
2135
2175
|
calculate(e) {
|
|
2136
2176
|
if (typeof e != "object") {
|
|
@@ -2144,10 +2184,10 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2144
2184
|
this[t] = e[t];
|
|
2145
2185
|
});
|
|
2146
2186
|
}
|
|
2147
|
-
},
|
|
2148
|
-
let t = new
|
|
2187
|
+
}, At = /* @__PURE__ */ e((e) => {
|
|
2188
|
+
let t = new kt();
|
|
2149
2189
|
return t.calculate(e), t;
|
|
2150
|
-
}, "getThemeVariables"),
|
|
2190
|
+
}, "getThemeVariables"), jt = class {
|
|
2151
2191
|
static {
|
|
2152
2192
|
e(this, "Theme");
|
|
2153
2193
|
}
|
|
@@ -2158,7 +2198,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2158
2198
|
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2159
2199
|
h: 180,
|
|
2160
2200
|
l: 5
|
|
2161
|
-
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2201
|
+
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
2162
2202
|
let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
|
|
2163
2203
|
h: 180,
|
|
2164
2204
|
l: 5
|
|
@@ -2167,7 +2207,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2167
2207
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
|
|
2168
2208
|
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
2169
2209
|
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
2170
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2210
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
2171
2211
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2172
2212
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2173
2213
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
@@ -2226,6 +2266,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2226
2266
|
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2227
2267
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2228
2268
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2269
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2229
2270
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2230
2271
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2231
2272
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2235,7 +2276,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2235
2276
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2236
2277
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2237
2278
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2238
|
-
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 ||
|
|
2279
|
+
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
|
|
2239
2280
|
}
|
|
2240
2281
|
calculate(e) {
|
|
2241
2282
|
if (typeof e != "object") {
|
|
@@ -2249,26 +2290,26 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2249
2290
|
this[t] = e[t];
|
|
2250
2291
|
});
|
|
2251
2292
|
}
|
|
2252
|
-
},
|
|
2253
|
-
let t = new
|
|
2293
|
+
}, Mt = /* @__PURE__ */ e((e) => {
|
|
2294
|
+
let t = new jt();
|
|
2254
2295
|
return t.calculate(e), t;
|
|
2255
|
-
}, "getThemeVariables"),
|
|
2296
|
+
}, "getThemeVariables"), Nt = class {
|
|
2256
2297
|
static {
|
|
2257
2298
|
e(this, "Theme");
|
|
2258
2299
|
}
|
|
2259
2300
|
constructor() {
|
|
2260
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor =
|
|
2301
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = C(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
|
|
2261
2302
|
}
|
|
2262
2303
|
updateColors() {
|
|
2263
2304
|
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2264
2305
|
h: 180,
|
|
2265
2306
|
l: 5
|
|
2266
|
-
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2307
|
+
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
|
|
2267
2308
|
h: 210,
|
|
2268
2309
|
l: 150
|
|
2269
2310
|
}), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
2270
2311
|
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 25);
|
|
2271
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2312
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
2272
2313
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2273
2314
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2274
2315
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
@@ -2327,6 +2368,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2327
2368
|
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2328
2369
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2329
2370
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2371
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2330
2372
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2331
2373
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2332
2374
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2336,7 +2378,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2336
2378
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2337
2379
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2338
2380
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2339
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 ||
|
|
2381
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
|
|
2340
2382
|
}
|
|
2341
2383
|
calculate(e) {
|
|
2342
2384
|
if (typeof e != "object") {
|
|
@@ -2350,10 +2392,10 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2350
2392
|
this[t] = e[t];
|
|
2351
2393
|
});
|
|
2352
2394
|
}
|
|
2353
|
-
},
|
|
2354
|
-
let t = new
|
|
2395
|
+
}, Pt = /* @__PURE__ */ e((e) => {
|
|
2396
|
+
let t = new Nt();
|
|
2355
2397
|
return t.calculate(e), t;
|
|
2356
|
-
}, "getThemeVariables"),
|
|
2398
|
+
}, "getThemeVariables"), Ft = class {
|
|
2357
2399
|
static {
|
|
2358
2400
|
e(this, "Theme");
|
|
2359
2401
|
}
|
|
@@ -2390,13 +2432,13 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2390
2432
|
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2391
2433
|
h: 180,
|
|
2392
2434
|
l: 5
|
|
2393
|
-
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2435
|
+
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
2394
2436
|
let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
|
|
2395
2437
|
h: 180,
|
|
2396
2438
|
l: 5
|
|
2397
2439
|
});
|
|
2398
2440
|
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || y(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
2399
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2441
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
2400
2442
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2401
2443
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2402
2444
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
@@ -2455,6 +2497,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2455
2497
|
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2456
2498
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2457
2499
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2500
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2458
2501
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2459
2502
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2460
2503
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2464,7 +2507,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2464
2507
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2465
2508
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2466
2509
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2467
|
-
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 ||
|
|
2510
|
+
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
|
|
2468
2511
|
}
|
|
2469
2512
|
calculate(e) {
|
|
2470
2513
|
if (typeof e != "object") {
|
|
@@ -2478,15 +2521,15 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2478
2521
|
this[t] = e[t];
|
|
2479
2522
|
});
|
|
2480
2523
|
}
|
|
2481
|
-
},
|
|
2482
|
-
let t = new
|
|
2524
|
+
}, It = /* @__PURE__ */ e((e) => {
|
|
2525
|
+
let t = new Ft();
|
|
2483
2526
|
return t.calculate(e), t;
|
|
2484
|
-
}, "getThemeVariables"),
|
|
2527
|
+
}, "getThemeVariables"), Lt = class {
|
|
2485
2528
|
static {
|
|
2486
2529
|
e(this, "Theme");
|
|
2487
2530
|
}
|
|
2488
2531
|
constructor() {
|
|
2489
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor =
|
|
2532
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = C(this.background), this.secondaryBorderColor = R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = R(this.tertiaryColor, this.darkMode), this.primaryTextColor = C(this.primaryColor), this.secondaryTextColor = C(this.secondaryColor), this.tertiaryTextColor = C(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(C("#323D47"), 10), this.border1 = "#ccc", this.border2 = g(255, 255, 255, .25), this.arrowheadColor = C(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
2490
2533
|
"#E879F9",
|
|
2491
2534
|
"#2DD4BF",
|
|
2492
2535
|
"#FB923C",
|
|
@@ -2505,8 +2548,8 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2505
2548
|
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2506
2549
|
h: 180,
|
|
2507
2550
|
l: 5
|
|
2508
|
-
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor ||
|
|
2509
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2551
|
+
}), this.primaryBorderColor = this.primaryBorderColor || R(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || R(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || R(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || R(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || C(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || C(this.tertiaryColor), this.lineColor = this.lineColor || C(this.background), this.arrowheadColor = this.arrowheadColor || C(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || C(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || y(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
2552
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || C(this["cScale" + e]);
|
|
2510
2553
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2511
2554
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2512
2555
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = b(this["cScale" + e], 75);
|
|
@@ -2565,6 +2608,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2565
2608
|
}), this.quadrantPointFill = this.quadrantPointFill || _(this.quadrant1Fill) ? y(this.quadrant1Fill) : b(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2566
2609
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2567
2610
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2611
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2568
2612
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2569
2613
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2570
2614
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2574,7 +2618,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2574
2618
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2575
2619
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2576
2620
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2577
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 ||
|
|
2621
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? b(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || C(this.git0), this.gitInv1 = this.gitInv1 || C(this.git1), this.gitInv2 = this.gitInv2 || C(this.git2), this.gitInv3 = this.gitInv3 || C(this.git3), this.gitInv4 = this.gitInv4 || C(this.git4), this.gitInv5 = this.gitInv5 || C(this.git5), this.gitInv6 = this.gitInv6 || C(this.git6), this.gitInv7 = this.gitInv7 || C(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || I, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || L;
|
|
2578
2622
|
}
|
|
2579
2623
|
calculate(e) {
|
|
2580
2624
|
if (typeof e != "object") {
|
|
@@ -2588,22 +2632,22 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2588
2632
|
this[t] = e[t];
|
|
2589
2633
|
});
|
|
2590
2634
|
}
|
|
2591
|
-
},
|
|
2592
|
-
base: { getThemeVariables:
|
|
2593
|
-
dark: { getThemeVariables:
|
|
2594
|
-
default: { getThemeVariables:
|
|
2595
|
-
forest: { getThemeVariables:
|
|
2596
|
-
neutral: { getThemeVariables:
|
|
2597
|
-
neo: { getThemeVariables:
|
|
2598
|
-
"neo-dark": { getThemeVariables:
|
|
2599
|
-
redux: { getThemeVariables:
|
|
2600
|
-
"redux-dark": { getThemeVariables:
|
|
2601
|
-
"redux-color": { getThemeVariables:
|
|
2635
|
+
}, V = {
|
|
2636
|
+
base: { getThemeVariables: bt },
|
|
2637
|
+
dark: { getThemeVariables: xt },
|
|
2638
|
+
default: { getThemeVariables: Ct },
|
|
2639
|
+
forest: { getThemeVariables: B },
|
|
2640
|
+
neutral: { getThemeVariables: Et },
|
|
2641
|
+
neo: { getThemeVariables: Ot },
|
|
2642
|
+
"neo-dark": { getThemeVariables: At },
|
|
2643
|
+
redux: { getThemeVariables: Mt },
|
|
2644
|
+
"redux-dark": { getThemeVariables: Pt },
|
|
2645
|
+
"redux-color": { getThemeVariables: It },
|
|
2602
2646
|
"redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
|
|
2603
|
-
let t = new
|
|
2647
|
+
let t = new Lt();
|
|
2604
2648
|
return t.calculate(e), t;
|
|
2605
2649
|
}, "getThemeVariables") }
|
|
2606
|
-
},
|
|
2650
|
+
}, H = {
|
|
2607
2651
|
flowchart: {
|
|
2608
2652
|
useMaxWidth: !0,
|
|
2609
2653
|
titleTopMargin: 25,
|
|
@@ -2804,6 +2848,9 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
2804
2848
|
showDataLabel: !1,
|
|
2805
2849
|
showDataLabelOutsideBar: !1,
|
|
2806
2850
|
showTitle: !0,
|
|
2851
|
+
showLegend: !0,
|
|
2852
|
+
legendFontSize: 14,
|
|
2853
|
+
legendPadding: 10,
|
|
2807
2854
|
xAxis: {
|
|
2808
2855
|
$ref: "#/$defs/XYChartAxisConfig",
|
|
2809
2856
|
showLabel: !0,
|
|
@@ -3151,19 +3198,21 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
3151
3198
|
fontSize: 16,
|
|
3152
3199
|
markdownAutoWrap: !0,
|
|
3153
3200
|
suppressErrorRendering: !1
|
|
3154
|
-
},
|
|
3155
|
-
...
|
|
3201
|
+
}, U = {
|
|
3202
|
+
...H,
|
|
3156
3203
|
deterministicIDSeed: void 0,
|
|
3157
3204
|
elk: {
|
|
3158
3205
|
mergeEdges: !1,
|
|
3159
3206
|
nodePlacementStrategy: "BRANDES_KOEPF",
|
|
3207
|
+
nodePlacementAlignment: "NONE",
|
|
3160
3208
|
forceNodeModelOrder: !1,
|
|
3161
|
-
considerModelOrder: "NODES_AND_EDGES"
|
|
3209
|
+
considerModelOrder: "NODES_AND_EDGES",
|
|
3210
|
+
keepEntryNodeOnTop: !1
|
|
3162
3211
|
},
|
|
3163
3212
|
themeCSS: void 0,
|
|
3164
|
-
themeVariables:
|
|
3213
|
+
themeVariables: V.default.getThemeVariables(),
|
|
3165
3214
|
sequence: {
|
|
3166
|
-
...
|
|
3215
|
+
...H.sequence,
|
|
3167
3216
|
messageFont: /* @__PURE__ */ e(function() {
|
|
3168
3217
|
return {
|
|
3169
3218
|
fontFamily: this.messageFontFamily,
|
|
@@ -3187,16 +3236,17 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
3187
3236
|
}, "actorFont")
|
|
3188
3237
|
},
|
|
3189
3238
|
class: {
|
|
3239
|
+
defaultRenderer: "dagre-wrapper",
|
|
3190
3240
|
hideEmptyMembersBox: !1,
|
|
3191
3241
|
hierarchicalNamespaces: !0
|
|
3192
3242
|
},
|
|
3193
3243
|
gantt: {
|
|
3194
|
-
...
|
|
3244
|
+
...H.gantt,
|
|
3195
3245
|
tickInterval: void 0,
|
|
3196
3246
|
useWidth: void 0
|
|
3197
3247
|
},
|
|
3198
3248
|
c4: {
|
|
3199
|
-
...
|
|
3249
|
+
...H.c4,
|
|
3200
3250
|
useWidth: void 0,
|
|
3201
3251
|
personFont: /* @__PURE__ */ e(function() {
|
|
3202
3252
|
return {
|
|
@@ -3206,7 +3256,7 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
3206
3256
|
};
|
|
3207
3257
|
}, "personFont"),
|
|
3208
3258
|
flowchart: {
|
|
3209
|
-
...
|
|
3259
|
+
...H.flowchart,
|
|
3210
3260
|
inheritDir: !1
|
|
3211
3261
|
},
|
|
3212
3262
|
external_personFont: /* @__PURE__ */ e(function() {
|
|
@@ -3358,26 +3408,26 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
3358
3408
|
}, "messageFont")
|
|
3359
3409
|
},
|
|
3360
3410
|
pie: {
|
|
3361
|
-
...
|
|
3411
|
+
...H.pie,
|
|
3362
3412
|
useWidth: 984
|
|
3363
3413
|
},
|
|
3364
3414
|
xyChart: {
|
|
3365
|
-
...
|
|
3415
|
+
...H.xyChart,
|
|
3366
3416
|
useWidth: void 0
|
|
3367
3417
|
},
|
|
3368
3418
|
requirement: {
|
|
3369
|
-
...
|
|
3419
|
+
...H.requirement,
|
|
3370
3420
|
useWidth: void 0
|
|
3371
3421
|
},
|
|
3372
|
-
packet: { ...
|
|
3373
|
-
eventmodeling: { ...
|
|
3422
|
+
packet: { ...H.packet },
|
|
3423
|
+
eventmodeling: { ...H.eventmodeling },
|
|
3374
3424
|
treeView: {
|
|
3375
|
-
...
|
|
3425
|
+
...H.treeView,
|
|
3376
3426
|
useWidth: void 0
|
|
3377
3427
|
},
|
|
3378
|
-
radar: { ...
|
|
3428
|
+
radar: { ...H.radar },
|
|
3379
3429
|
railroad: {
|
|
3380
|
-
...
|
|
3430
|
+
...H.railroad,
|
|
3381
3431
|
fontSize: void 0,
|
|
3382
3432
|
fontFamily: void 0,
|
|
3383
3433
|
terminalFill: void 0,
|
|
@@ -3395,9 +3445,9 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
3395
3445
|
specialStroke: void 0,
|
|
3396
3446
|
ruleNameColor: void 0
|
|
3397
3447
|
},
|
|
3398
|
-
ishikawa: { ...
|
|
3448
|
+
ishikawa: { ...H.ishikawa },
|
|
3399
3449
|
sankey: {
|
|
3400
|
-
...
|
|
3450
|
+
...H.sankey,
|
|
3401
3451
|
nodeColors: void 0
|
|
3402
3452
|
},
|
|
3403
3453
|
treemap: {
|
|
@@ -3412,42 +3462,42 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
3412
3462
|
labelFontSize: 14,
|
|
3413
3463
|
valueFormat: ","
|
|
3414
3464
|
},
|
|
3415
|
-
venn: { ...
|
|
3416
|
-
cynefin: { ...
|
|
3417
|
-
},
|
|
3465
|
+
venn: { ...H.venn },
|
|
3466
|
+
cynefin: { ...H.cynefin }
|
|
3467
|
+
}, Rt = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
3418
3468
|
...n,
|
|
3419
3469
|
t + r,
|
|
3420
|
-
...
|
|
3421
|
-
] : [...n, t + r], []), "keyify"),
|
|
3470
|
+
...Rt(e[r], "")
|
|
3471
|
+
] : [...n, t + r], []), "keyify"), zt = new Set(Rt(U, "")), Bt = U, Vt = {
|
|
3422
3472
|
nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
|
|
3423
3473
|
filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
|
|
3424
3474
|
extensionIcons: /^[\w-]+(?::[\w-]+)?$/
|
|
3425
|
-
},
|
|
3475
|
+
}, Ht = /* @__PURE__ */ e((e, t) => {
|
|
3426
3476
|
for (let n of Object.keys(e)) {
|
|
3427
3477
|
let i = e[n];
|
|
3428
3478
|
(n.startsWith("__") || n.includes("proto") || n.includes("constr") || typeof i != "string" || !t.test(i)) && (r.debug("sanitize deleting dictionary entry:", n, i), delete e[n]);
|
|
3429
3479
|
}
|
|
3430
|
-
}, "sanitizeDictionaryConfig"),
|
|
3480
|
+
}, "sanitizeDictionaryConfig"), W = /* @__PURE__ */ e((e) => {
|
|
3431
3481
|
if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
|
|
3432
3482
|
if (Array.isArray(e)) {
|
|
3433
|
-
e.forEach((e) =>
|
|
3483
|
+
e.forEach((e) => W(e));
|
|
3434
3484
|
return;
|
|
3435
3485
|
}
|
|
3436
3486
|
for (let t of Object.keys(e)) {
|
|
3437
|
-
if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !
|
|
3487
|
+
if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !zt.has(t) || e[t] == null) {
|
|
3438
3488
|
r.debug("sanitize deleting key: ", t), delete e[t];
|
|
3439
3489
|
continue;
|
|
3440
3490
|
}
|
|
3441
3491
|
if (typeof e[t] == "object") {
|
|
3442
|
-
let n =
|
|
3443
|
-
n ?
|
|
3492
|
+
let n = Vt[t];
|
|
3493
|
+
n ? Ht(e[t], n) : (r.debug("sanitizing object", t), W(e[t]));
|
|
3444
3494
|
continue;
|
|
3445
3495
|
}
|
|
3446
3496
|
for (let n of [
|
|
3447
3497
|
"themeCSS",
|
|
3448
3498
|
"fontFamily",
|
|
3449
3499
|
"altFontFamily"
|
|
3450
|
-
]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] =
|
|
3500
|
+
]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = Ut(e[t]));
|
|
3451
3501
|
}
|
|
3452
3502
|
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
3453
3503
|
let n = e.themeVariables[t];
|
|
@@ -3455,177 +3505,176 @@ var P = pt(), mt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
|
3455
3505
|
}
|
|
3456
3506
|
r.debug("After sanitization", e);
|
|
3457
3507
|
}
|
|
3458
|
-
}, "sanitizeDirective"),
|
|
3508
|
+
}, "sanitizeDirective"), Ut = /* @__PURE__ */ e((e) => {
|
|
3459
3509
|
let t = 0, n = 0;
|
|
3460
3510
|
for (let r of e) {
|
|
3461
3511
|
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
3462
3512
|
r === "{" ? t++ : r === "}" && n++;
|
|
3463
3513
|
}
|
|
3464
3514
|
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
3465
|
-
}, "sanitizeCss"), G = Object.freeze(
|
|
3515
|
+
}, "sanitizeCss"), G = Object.freeze(Bt), K = /* @__PURE__ */ e((e) => !(e === !1 || [
|
|
3466
3516
|
"false",
|
|
3467
3517
|
"null",
|
|
3468
3518
|
"0"
|
|
3469
|
-
].includes(String(e).trim().toLowerCase())), "evaluate"),
|
|
3519
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), q = F({}, G), Wt, Gt = [], Kt = F({}, G), qt = /* @__PURE__ */ e((e, t) => {
|
|
3470
3520
|
let n = F({}, e), r = {};
|
|
3471
|
-
for (let e of t)
|
|
3472
|
-
if (n = F(n, r), r.theme && r.theme in
|
|
3473
|
-
let e = F(F({},
|
|
3474
|
-
n.theme && n.theme in
|
|
3475
|
-
}
|
|
3476
|
-
return
|
|
3477
|
-
}, "updateCurrentConfig"),
|
|
3478
|
-
|
|
3479
|
-
}, "saveConfigFromInitialize"),
|
|
3480
|
-
e && (["secure", ...
|
|
3521
|
+
for (let e of t) $t(e), r = F(r, e);
|
|
3522
|
+
if (n = F(n, r), r.theme && r.theme in V) {
|
|
3523
|
+
let e = F(F({}, Wt).themeVariables || {}, r.themeVariables);
|
|
3524
|
+
n.theme && n.theme in V && (n.themeVariables = V[n.theme].getThemeVariables(e));
|
|
3525
|
+
}
|
|
3526
|
+
return Kt = n, on(Kt), Kt;
|
|
3527
|
+
}, "updateCurrentConfig"), Jt = /* @__PURE__ */ e((e) => (q = F({}, G), q = F(q, e), e.theme && V[e.theme] && (q.themeVariables = V[e.theme].getThemeVariables(e.themeVariables)), qt(q, Gt), q), "setSiteConfig"), Yt = /* @__PURE__ */ e((e) => {
|
|
3528
|
+
Wt = F({}, e);
|
|
3529
|
+
}, "saveConfigFromInitialize"), Xt = /* @__PURE__ */ e((e) => (q = F(q, e), qt(q, Gt), q), "updateSiteConfig"), Zt = /* @__PURE__ */ e(() => F({}, q), "getSiteConfig"), Qt = /* @__PURE__ */ e((e) => (qt(Kt, [e]), J()), "setConfig"), J = /* @__PURE__ */ e(() => F({}, Kt), "getConfig"), $t = /* @__PURE__ */ e((e) => {
|
|
3530
|
+
e && (["secure", ...q.secure ?? []].forEach((t) => {
|
|
3481
3531
|
Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
|
|
3482
3532
|
}), Object.keys(e).forEach((t) => {
|
|
3483
3533
|
t.startsWith("__") && delete e[t];
|
|
3484
3534
|
}), Object.keys(e).forEach((t) => {
|
|
3485
|
-
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" &&
|
|
3535
|
+
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && $t(e[t]);
|
|
3486
3536
|
}));
|
|
3487
|
-
}, "sanitize"),
|
|
3488
|
-
|
|
3537
|
+
}, "sanitize"), en = /* @__PURE__ */ e((e) => {
|
|
3538
|
+
W(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
3489
3539
|
...e.themeVariables,
|
|
3490
3540
|
fontFamily: e.fontFamily
|
|
3491
|
-
}),
|
|
3492
|
-
}, "addDirective"),
|
|
3493
|
-
|
|
3494
|
-
}, "reset"),
|
|
3541
|
+
}), Gt.push(e), qt(q, Gt);
|
|
3542
|
+
}, "addDirective"), tn = /* @__PURE__ */ e((e = q) => {
|
|
3543
|
+
Gt = [], qt(e, Gt);
|
|
3544
|
+
}, "reset"), nn = {
|
|
3495
3545
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
3496
3546
|
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
3497
|
-
},
|
|
3498
|
-
|
|
3499
|
-
}, "issueWarning"),
|
|
3500
|
-
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) &&
|
|
3501
|
-
}, "checkConfig"),
|
|
3547
|
+
}, rn = {}, an = /* @__PURE__ */ e((e) => {
|
|
3548
|
+
rn[e] || (r.warn(nn[e]), rn[e] = !0);
|
|
3549
|
+
}, "issueWarning"), on = /* @__PURE__ */ e((e) => {
|
|
3550
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && an("LAZY_LOAD_DEPRECATED");
|
|
3551
|
+
}, "checkConfig"), sn = /* @__PURE__ */ e(() => {
|
|
3502
3552
|
let e = {};
|
|
3503
|
-
|
|
3504
|
-
for (let t of
|
|
3553
|
+
Wt && (e = F(e, Wt));
|
|
3554
|
+
for (let t of Gt) e = F(e, t);
|
|
3505
3555
|
return e;
|
|
3506
|
-
}, "getUserDefinedConfig"),
|
|
3556
|
+
}, "getUserDefinedConfig"), cn = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && an("FLOWCHART_HTML_LABELS_DEPRECATED"), K(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), ln = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, Y = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, un = /\s*%%.*\n/gm, dn = class extends Error {
|
|
3507
3557
|
static {
|
|
3508
3558
|
e(this, "UnknownDiagramError");
|
|
3509
3559
|
}
|
|
3510
3560
|
constructor(e) {
|
|
3511
3561
|
super(e), this.name = "UnknownDiagramError";
|
|
3512
3562
|
}
|
|
3513
|
-
},
|
|
3514
|
-
e = e.replace(
|
|
3515
|
-
for (let [n, { detector: r }] of Object.entries(
|
|
3516
|
-
throw new
|
|
3517
|
-
}, "detectType"),
|
|
3518
|
-
for (let { id: t, detector: n, loader: r } of e)
|
|
3519
|
-
}, "registerLazyLoadedDiagrams"),
|
|
3520
|
-
|
|
3563
|
+
}, X = {}, fn = /* @__PURE__ */ e(function(e, t) {
|
|
3564
|
+
e = e.replace(ln, "").replace(Y, "").replace(un, "\n");
|
|
3565
|
+
for (let [n, { detector: r }] of Object.entries(X)) if (r(e, t)) return n;
|
|
3566
|
+
throw new dn(`No diagram type detected matching given configuration for text: ${e}`);
|
|
3567
|
+
}, "detectType"), pn = /* @__PURE__ */ e((...e) => {
|
|
3568
|
+
for (let { id: t, detector: n, loader: r } of e) mn(t, n, r);
|
|
3569
|
+
}, "registerLazyLoadedDiagrams"), mn = /* @__PURE__ */ e((e, t, n) => {
|
|
3570
|
+
X[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), X[e] = {
|
|
3521
3571
|
detector: t,
|
|
3522
3572
|
loader: n
|
|
3523
3573
|
}, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
|
|
3524
|
-
}, "addDetector"),
|
|
3574
|
+
}, "addDetector"), hn = /* @__PURE__ */ e((e) => X[e].loader, "getDiagramLoader"), Z = /<br\s*\/?>/gi, gn = /* @__PURE__ */ e((e) => e ? wn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), _n = /* @__PURE__ */ (() => {
|
|
3525
3575
|
let e = !1;
|
|
3526
3576
|
return () => {
|
|
3527
|
-
e ||= (
|
|
3577
|
+
e ||= (vn(), !0);
|
|
3528
3578
|
};
|
|
3529
3579
|
})();
|
|
3530
|
-
function
|
|
3580
|
+
function vn() {
|
|
3531
3581
|
let e = "data-temp-href-target";
|
|
3532
|
-
|
|
3582
|
+
vt.addHook("beforeSanitizeAttributes", (t) => {
|
|
3533
3583
|
t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
|
|
3534
|
-
}),
|
|
3584
|
+
}), vt.addHook("afterSanitizeAttributes", (t) => {
|
|
3535
3585
|
t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
|
|
3536
3586
|
});
|
|
3537
3587
|
}
|
|
3538
|
-
e(
|
|
3539
|
-
var
|
|
3540
|
-
if (
|
|
3588
|
+
e(vn, "setupDompurifyHooks");
|
|
3589
|
+
var yn = /* @__PURE__ */ e((e) => (_n(), vt.sanitize(e)), "removeScript"), bn = /* @__PURE__ */ e((e, t) => {
|
|
3590
|
+
if (cn(t)) {
|
|
3541
3591
|
let n = t.securityLevel;
|
|
3542
|
-
n === "antiscript" || n === "strict" || n === "sandbox" ? e =
|
|
3592
|
+
n === "antiscript" || n === "strict" || n === "sandbox" ? e = yn(e) : n !== "loose" && (e = wn(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = Cn(e));
|
|
3543
3593
|
}
|
|
3544
3594
|
return e;
|
|
3545
|
-
}, "sanitizeMore"),
|
|
3595
|
+
}, "sanitizeMore"), Q = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? vt.sanitize(bn(e, t), t.dompurifyConfig).toString() : vt.sanitize(bn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), $ = /* @__PURE__ */ e((e, t) => typeof e == "string" ? Q(e, t) : e.flat().map((e) => Q(e, t)), "sanitizeTextOrArray"), xn = /* @__PURE__ */ e((e) => Z.test(e), "hasBreaks"), Sn = /* @__PURE__ */ e((e) => e.split(Z), "splitBreaks"), Cn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), wn = /* @__PURE__ */ e((e) => e.replace(Z, "#br#"), "breakToPlaceholder"), Tn = /* @__PURE__ */ e((e) => {
|
|
3546
3596
|
let t = "";
|
|
3547
3597
|
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
3548
|
-
}, "getUrl"),
|
|
3598
|
+
}, "getUrl"), En = /* @__PURE__ */ e(function(...e) {
|
|
3549
3599
|
let t = e.filter((e) => !isNaN(e));
|
|
3550
3600
|
return Math.max(...t);
|
|
3551
|
-
}, "getMax"),
|
|
3601
|
+
}, "getMax"), Dn = /* @__PURE__ */ e(function(...e) {
|
|
3552
3602
|
let t = e.filter((e) => !isNaN(e));
|
|
3553
3603
|
return Math.min(...t);
|
|
3554
|
-
}, "getMin"),
|
|
3604
|
+
}, "getMin"), On = /* @__PURE__ */ e(function(e) {
|
|
3555
3605
|
let t = e.split(/(,)/), n = [];
|
|
3556
3606
|
for (let e = 0; e < t.length; e++) {
|
|
3557
3607
|
let r = t[e];
|
|
3558
3608
|
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
3559
3609
|
let i = t[e - 1], a = t[e + 1];
|
|
3560
|
-
|
|
3610
|
+
An(i, a) && (r = i + "," + a, e++, n.pop());
|
|
3561
3611
|
}
|
|
3562
|
-
n.push(
|
|
3612
|
+
n.push(jn(r));
|
|
3563
3613
|
}
|
|
3564
3614
|
return n.join("");
|
|
3565
|
-
}, "parseGenericTypes"),
|
|
3566
|
-
let n =
|
|
3615
|
+
}, "parseGenericTypes"), kn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), An = /* @__PURE__ */ e((e, t) => {
|
|
3616
|
+
let n = kn(e, "~"), r = kn(t, "~");
|
|
3567
3617
|
return n === 1 && r === 1;
|
|
3568
|
-
}, "shouldCombineSets"),
|
|
3569
|
-
let t =
|
|
3618
|
+
}, "shouldCombineSets"), jn = /* @__PURE__ */ e((e) => {
|
|
3619
|
+
let t = kn(e, "~"), n = !1;
|
|
3570
3620
|
if (t <= 1) return e;
|
|
3571
3621
|
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
3572
3622
|
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3573
3623
|
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3574
3624
|
return n && r.unshift("~"), r.join("");
|
|
3575
|
-
}, "processSet"),
|
|
3625
|
+
}, "processSet"), Mn = /* @__PURE__ */ e(() => window.MathMLElement !== void 0, "isMathMLSupported"), Nn = /\$\$(.*?)\$\$/g, Pn = /* @__PURE__ */ e((e) => (e.match(Nn)?.length ?? 0) > 0, "hasKatex"), Fn = /* @__PURE__ */ e(async (e, t) => {
|
|
3576
3626
|
let n = document.createElement("div");
|
|
3577
|
-
n.innerHTML = await
|
|
3627
|
+
n.innerHTML = await Ln(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
|
|
3578
3628
|
let r = {
|
|
3579
3629
|
width: n.clientWidth,
|
|
3580
3630
|
height: n.clientHeight
|
|
3581
3631
|
};
|
|
3582
3632
|
return n.remove(), r;
|
|
3583
|
-
}, "calculateMathMLDimensions"),
|
|
3584
|
-
if (!
|
|
3585
|
-
if (!(
|
|
3633
|
+
}, "calculateMathMLDimensions"), In = /* @__PURE__ */ e(async (e, t) => {
|
|
3634
|
+
if (!Pn(e)) return e;
|
|
3635
|
+
if (!(Mn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Nn, "MathML is unsupported in this environment.");
|
|
3586
3636
|
{
|
|
3587
|
-
let { default: n } = await import("./
|
|
3588
|
-
return e.split(
|
|
3637
|
+
let { default: n } = await import("./katex-ohtLbxXc.js"), r = t.forceLegacyMathML || !Mn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
3638
|
+
return e.split(Z).map((e) => Pn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Nn, (e, t) => n.renderToString(t, {
|
|
3589
3639
|
throwOnError: !0,
|
|
3590
3640
|
displayMode: !0,
|
|
3591
3641
|
output: r
|
|
3592
3642
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
3593
3643
|
}
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
}, Fn = /* @__PURE__ */ e(function(e, t) {
|
|
3644
|
+
}, "renderKatexUnsanitized"), Ln = /* @__PURE__ */ e(async (e, t) => Q(await In(e, t), t), "renderKatexSanitized"), Rn = {
|
|
3645
|
+
getRows: gn,
|
|
3646
|
+
sanitizeText: Q,
|
|
3647
|
+
sanitizeTextOrArray: $,
|
|
3648
|
+
hasBreaks: xn,
|
|
3649
|
+
splitBreaks: Sn,
|
|
3650
|
+
lineBreakRegex: Z,
|
|
3651
|
+
removeScript: yn,
|
|
3652
|
+
getUrl: Tn,
|
|
3653
|
+
evaluate: K,
|
|
3654
|
+
getMax: En,
|
|
3655
|
+
getMin: Dn
|
|
3656
|
+
}, zn = /* @__PURE__ */ e(function(e, t) {
|
|
3608
3657
|
for (let n of t) e.attr(n[0], n[1]);
|
|
3609
|
-
}, "d3Attrs"),
|
|
3658
|
+
}, "d3Attrs"), Bn = /* @__PURE__ */ e(function(e, t, n) {
|
|
3610
3659
|
let r = /* @__PURE__ */ new Map();
|
|
3611
3660
|
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
3612
|
-
}, "calculateSvgSizeAttrs"),
|
|
3613
|
-
|
|
3614
|
-
}, "configureSvgSize"),
|
|
3661
|
+
}, "calculateSvgSizeAttrs"), Vn = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
3662
|
+
zn(e, Bn(t, n, r));
|
|
3663
|
+
}, "configureSvgSize"), Hn = /* @__PURE__ */ e(function(e, t, n, i) {
|
|
3615
3664
|
let a = t.node().getBBox(), o = a.width, s = a.height;
|
|
3616
3665
|
r.info(`SVG bounds: ${o}x${s}`, a);
|
|
3617
3666
|
let c = 0, l = 0;
|
|
3618
|
-
r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`),
|
|
3667
|
+
r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), Vn(t, l, c, i);
|
|
3619
3668
|
let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
|
|
3620
3669
|
t.attr("viewBox", u);
|
|
3621
|
-
}, "setupGraphViewbox"),
|
|
3622
|
-
function
|
|
3670
|
+
}, "setupGraphViewbox"), Un = {};
|
|
3671
|
+
function Wn(e) {
|
|
3623
3672
|
return [...e.cssRules].map((e) => e.cssText).join("\n");
|
|
3624
3673
|
}
|
|
3625
|
-
e(
|
|
3626
|
-
var
|
|
3674
|
+
e(Wn, "cssStyleSheetToString");
|
|
3675
|
+
var Gn = /* @__PURE__ */ e((e, t, n, i) => {
|
|
3627
3676
|
let a = "";
|
|
3628
|
-
return e in
|
|
3677
|
+
return e in Un && Un[e] ? a = Un[e]({
|
|
3629
3678
|
...n,
|
|
3630
3679
|
svgId: i
|
|
3631
3680
|
}) : r.warn(`No theme found for ${e}`), `& {
|
|
@@ -3750,32 +3799,32 @@ var Vn = /* @__PURE__ */ e((e, t, n, i) => {
|
|
|
3750
3799
|
|
|
3751
3800
|
${t}
|
|
3752
3801
|
`;
|
|
3753
|
-
}, "getStyles"),
|
|
3754
|
-
t !== void 0 && (
|
|
3755
|
-
}, "addStylesForDiagram"),
|
|
3756
|
-
t(
|
|
3757
|
-
clear: () =>
|
|
3758
|
-
getAccDescription: () =>
|
|
3759
|
-
getAccTitle: () =>
|
|
3760
|
-
getDiagramTitle: () =>
|
|
3761
|
-
setAccDescription: () =>
|
|
3762
|
-
setAccTitle: () =>
|
|
3763
|
-
setDiagramTitle: () =>
|
|
3802
|
+
}, "getStyles"), Kn = /* @__PURE__ */ e((e, t) => {
|
|
3803
|
+
t !== void 0 && (Un[e] = t);
|
|
3804
|
+
}, "addStylesForDiagram"), qn = Gn, Jn = {};
|
|
3805
|
+
t(Jn, {
|
|
3806
|
+
clear: () => $n,
|
|
3807
|
+
getAccDescription: () => rr,
|
|
3808
|
+
getAccTitle: () => tr,
|
|
3809
|
+
getDiagramTitle: () => ar,
|
|
3810
|
+
setAccDescription: () => nr,
|
|
3811
|
+
setAccTitle: () => er,
|
|
3812
|
+
setDiagramTitle: () => ir
|
|
3764
3813
|
});
|
|
3765
|
-
var
|
|
3766
|
-
|
|
3767
|
-
}, "clear"),
|
|
3768
|
-
|
|
3769
|
-
}, "setAccTitle"),
|
|
3770
|
-
|
|
3771
|
-
}, "setAccDescription"),
|
|
3772
|
-
|
|
3773
|
-
}, "setDiagramTitle"),
|
|
3774
|
-
|
|
3775
|
-
}, "registerDiagram"),
|
|
3776
|
-
if (e in
|
|
3777
|
-
throw new
|
|
3778
|
-
}, "getDiagram"),
|
|
3814
|
+
var Yn = "", Xn = "", Zn = "", Qn = /* @__PURE__ */ e((e) => Q(e, J()), "sanitizeText"), $n = /* @__PURE__ */ e(() => {
|
|
3815
|
+
Yn = "", Zn = "", Xn = "";
|
|
3816
|
+
}, "clear"), er = /* @__PURE__ */ e((e) => {
|
|
3817
|
+
Yn = Qn(e).replace(/^\s+/g, "");
|
|
3818
|
+
}, "setAccTitle"), tr = /* @__PURE__ */ e(() => Yn, "getAccTitle"), nr = /* @__PURE__ */ e((e) => {
|
|
3819
|
+
Zn = Qn(e).replace(/\n\s+/g, "\n");
|
|
3820
|
+
}, "setAccDescription"), rr = /* @__PURE__ */ e(() => Zn, "getAccDescription"), ir = /* @__PURE__ */ e((e) => {
|
|
3821
|
+
Xn = Qn(e);
|
|
3822
|
+
}, "setDiagramTitle"), ar = /* @__PURE__ */ e(() => Xn, "getDiagramTitle"), or = r, sr = n, cr = J, lr = Qt, ur = G, dr = /* @__PURE__ */ e((e) => Q(e, cr()), "sanitizeText"), fr = Hn, pr = /* @__PURE__ */ e(() => Jn, "getCommonDb"), mr = {}, hr = /* @__PURE__ */ e((e, t, n) => {
|
|
3823
|
+
mr[e] && or.warn(`Diagram with id ${e} already registered. Overwriting.`), mr[e] = t, n && mn(e, n), Kn(e, t.styles), t.injectUtils?.(or, sr, cr, dr, fr, pr(), () => {});
|
|
3824
|
+
}, "registerDiagram"), gr = /* @__PURE__ */ e((e) => {
|
|
3825
|
+
if (e in mr) return mr[e];
|
|
3826
|
+
throw new _r(e);
|
|
3827
|
+
}, "getDiagram"), _r = class extends Error {
|
|
3779
3828
|
static {
|
|
3780
3829
|
e(this, "DiagramNotFoundError");
|
|
3781
3830
|
}
|
|
@@ -3784,4 +3833,4 @@ var Gn = "", Kn = "", qn = "", Jn = /* @__PURE__ */ e((e) => hn(e, Y()), "saniti
|
|
|
3784
3833
|
}
|
|
3785
3834
|
};
|
|
3786
3835
|
//#endregion
|
|
3787
|
-
export {
|
|
3836
|
+
export { vt as $, Pn as A, dr as B, hn as C, Ct as D, Zt as E, Ln as F, lr as G, nr as H, tn as I, Hn as J, ir as K, Ut as L, On as M, hr as N, Tn as O, pn as P, Xt as Q, W as R, gr as S, cn as T, er as U, Yt as V, Qt as W, qn as X, fr as Y, V as Z, ln as _, $n as a, m as at, J as b, Vn as c, ur as d, b as et, Bt as f, K as g, Y as h, Fn as i, g as it, Z as j, sn as k, Wn as l, X as m, en as n, v as nt, Jn as o, a as ot, fn as p, Jt as q, F as r, _ as rt, Rn as s, dn as t, y as tt, G as u, rr as v, ar as w, cr as x, tr as y, Q as z };
|