doclific 0.2.8 → 0.3.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/bin/doclific.js +50 -1
- package/dist/core/ai.js +140 -0
- package/dist/core/codebase.js +49 -3
- package/dist/public/assets/Assistant-Bold-gm-uSS1B.woff2 +0 -0
- package/dist/public/assets/Assistant-Medium-DrcxCXg3.woff2 +0 -0
- package/dist/public/assets/Assistant-Regular-DVxZuzxb.woff2 +0 -0
- package/dist/public/assets/Assistant-SemiBold-SCI4bEL9.woff2 +0 -0
- package/dist/public/assets/Preview-CfLVfmH2.js +1 -0
- package/dist/public/assets/Preview-yL612J-Y.js +1 -0
- package/dist/public/assets/Tableau10-B-NsZVaP.js +1 -0
- package/dist/public/assets/ar-SA-G6X2FPQ2-nSShYC9c.js +10 -0
- package/dist/public/assets/ar-SA-G6X2FPQ2-zGa4nmKj.js +10 -0
- package/dist/public/assets/arc-DPZnwcfX.js +1 -0
- package/dist/public/assets/arc-RHlRFoUH.js +1 -0
- package/dist/public/assets/array-BKyUJesY.js +1 -0
- package/dist/public/assets/az-AZ-76LH7QW2-2ofaYqg_.js +1 -0
- package/dist/public/assets/az-AZ-76LH7QW2-DulzdJU-.js +1 -0
- package/dist/public/assets/bg-BG-XCXSNQG7-bifIDIiP.js +5 -0
- package/dist/public/assets/bg-BG-XCXSNQG7-djDKLEln.js +5 -0
- package/dist/public/assets/blockDiagram-38ab4fdb-BpDJl5wM.js +118 -0
- package/dist/public/assets/blockDiagram-38ab4fdb-CkyydZLe.js +118 -0
- package/dist/public/assets/bn-BD-2XOGV67Q-BvjZoveq.js +5 -0
- package/dist/public/assets/bn-BD-2XOGV67Q-DHBogyv-.js +5 -0
- package/dist/public/assets/c4Diagram-3d4e48cf-R8x2FAAi.js +10 -0
- package/dist/public/assets/c4Diagram-3d4e48cf-aEsToGmZ.js +10 -0
- package/dist/public/assets/ca-ES-6MX7JW3Y-OWWCWvuP.js +8 -0
- package/dist/public/assets/ca-ES-6MX7JW3Y-_GJrF93G.js +8 -0
- package/dist/public/assets/channel-BE2ulzlx.js +1 -0
- package/dist/public/assets/channel-DzTwH3ut.js +1 -0
- package/dist/public/assets/classDiagram-70f12bd4-BP-7G8u1.js +2 -0
- package/dist/public/assets/classDiagram-70f12bd4-BTycZwZN.js +2 -0
- package/dist/public/assets/classDiagram-v2-f2320105-k8KFvaSn.js +2 -0
- package/dist/public/assets/classDiagram-v2-f2320105-k_XaW7Mw.js +2 -0
- package/dist/public/assets/clone-axZLZjOa.js +1 -0
- package/dist/public/assets/clone-rdfclP1b.js +1 -0
- package/dist/public/assets/createText-2e5e7dd3-Cbi8xL03.js +7 -0
- package/dist/public/assets/createText-2e5e7dd3-DuYw4Tl5.js +7 -0
- package/dist/public/assets/cs-CZ-2BRQDIVT-B2fBOA1Y.js +11 -0
- package/dist/public/assets/cs-CZ-2BRQDIVT-CP9xiC8w.js +11 -0
- package/dist/public/assets/da-DK-5WZEPLOC-Cpbm5Bju.js +5 -0
- package/dist/public/assets/da-DK-5WZEPLOC-dDp_pJjn.js +5 -0
- package/dist/public/assets/de-DE-XR44H4JA-D8rOmKQW.js +8 -0
- package/dist/public/assets/de-DE-XR44H4JA-DC6YpEoE.js +8 -0
- package/dist/public/assets/directory-open-01563666-DWU9wJ6I.js +1 -0
- package/dist/public/assets/directory-open-4ed118d0-CunoC1EB.js +1 -0
- package/dist/public/assets/edges-e0da2a9e-Cv6SpBo3.js +4 -0
- package/dist/public/assets/edges-e0da2a9e-DfbFOUG6.js +4 -0
- package/dist/public/assets/el-GR-BZB4AONW-BgQNs1cl.js +10 -0
- package/dist/public/assets/el-GR-BZB4AONW-BulpRKs1.js +10 -0
- package/dist/public/assets/erDiagram-9861fffd-BFVcrfkn.js +51 -0
- package/dist/public/assets/erDiagram-9861fffd-CLds4aY4.js +51 -0
- package/dist/public/assets/es-ES-U4NZUMDT-C1M-3kUi.js +9 -0
- package/dist/public/assets/es-ES-U4NZUMDT-Ct28khSM.js +9 -0
- package/dist/public/assets/eu-ES-A7QVB2H4-CbyIkWcA.js +11 -0
- package/dist/public/assets/eu-ES-A7QVB2H4-sIoA4F86.js +11 -0
- package/dist/public/assets/fa-IR-HGAKTJCU-CBLdXTih.js +8 -0
- package/dist/public/assets/fa-IR-HGAKTJCU-CtmSfjBe.js +8 -0
- package/dist/public/assets/fi-FI-Z5N7JZ37-BzRFOkPN.js +6 -0
- package/dist/public/assets/fi-FI-Z5N7JZ37-CkqAf83a.js +6 -0
- package/dist/public/assets/file-open-002ab408-DIuFHtCF.js +1 -0
- package/dist/public/assets/file-open-7c801643-684qeFg4.js +1 -0
- package/dist/public/assets/file-save-3189631c-C1wFhQhH.js +1 -0
- package/dist/public/assets/file-save-745eba88-Bb9F9Kg7.js +1 -0
- package/dist/public/assets/flowDb-956e92f1-D2t0qhMs.js +10 -0
- package/dist/public/assets/flowDb-956e92f1-VASBzIvX.js +10 -0
- package/dist/public/assets/flowDiagram-66a62f08-00amExuc.js +4 -0
- package/dist/public/assets/flowDiagram-66a62f08-n0k1fu1f.js +4 -0
- package/dist/public/assets/flowDiagram-v2-96b9c2cf-DPV3KQs-.js +1 -0
- package/dist/public/assets/flowDiagram-v2-96b9c2cf-DvEC9OW-.js +1 -0
- package/dist/public/assets/flowchart-elk-definition-4a651766-Ckm-u0tB.js +139 -0
- package/dist/public/assets/flowchart-elk-definition-4a651766-DuK0a8x4.js +139 -0
- package/dist/public/assets/fr-FR-RHASNOE6-B0ZsTvE2.js +9 -0
- package/dist/public/assets/fr-FR-RHASNOE6-BLTlR38v.js +9 -0
- package/dist/public/assets/ganttDiagram-c361ad54--PpHRpmK.js +257 -0
- package/dist/public/assets/ganttDiagram-c361ad54-Bfv8sOWo.js +257 -0
- package/dist/public/assets/gitGraphDiagram-72cf32ee-CJcs55Tw.js +70 -0
- package/dist/public/assets/gitGraphDiagram-72cf32ee-wLpa30-u.js +70 -0
- package/dist/public/assets/gl-ES-HMX3MZ6V-8Dvu3COr.js +10 -0
- package/dist/public/assets/gl-ES-HMX3MZ6V-DiriMGaf.js +10 -0
- package/dist/public/assets/graph-CI2pnyC5.js +1 -0
- package/dist/public/assets/graph-CzpZTUYm.js +1 -0
- package/dist/public/assets/he-IL-6SHJWFNN-BGgOoPZG.js +10 -0
- package/dist/public/assets/he-IL-6SHJWFNN-CIKv515H.js +10 -0
- package/dist/public/assets/hi-IN-IWLTKZ5I-C4QTfw3M.js +4 -0
- package/dist/public/assets/hi-IN-IWLTKZ5I-Dq9i2dbW.js +4 -0
- package/dist/public/assets/hu-HU-A5ZG7DT2-DGtzDRRU.js +7 -0
- package/dist/public/assets/hu-HU-A5ZG7DT2-EAD1mJZb.js +7 -0
- package/dist/public/assets/id-ID-SAP4L64H-B951c4Ob.js +10 -0
- package/dist/public/assets/id-ID-SAP4L64H-CzcaN-wr.js +10 -0
- package/dist/public/assets/image-blob-reduce.esm-BLtmMM_J.js +2 -0
- package/dist/public/assets/index-3862675e-BHyuTWf3.js +1 -0
- package/dist/public/assets/index-3862675e-CyylykW1.js +1 -0
- package/dist/public/assets/index-BMiq8nhK.js +95 -0
- package/dist/public/assets/index-BZnxyWWd.js +613 -0
- package/dist/public/assets/index-Bu97Fipb.js +95 -0
- package/dist/public/assets/index-CbwMLPrZ.css +1 -0
- package/dist/public/assets/index-CpBi0vus.js +3299 -0
- package/dist/public/assets/index-Cr2gUYn7.js +613 -0
- package/dist/public/assets/index-DTAYnrjZ.css +1 -0
- package/dist/public/assets/index-rmPcGL9S.js +3299 -0
- package/dist/public/assets/infoDiagram-f8f76790-Bzs_oiEq.js +7 -0
- package/dist/public/assets/infoDiagram-f8f76790-DnC7uKZu.js +7 -0
- package/dist/public/assets/init-Gi6I4Gst.js +1 -0
- package/dist/public/assets/it-IT-JPQ66NNP-DEqzEHhG.js +11 -0
- package/dist/public/assets/it-IT-JPQ66NNP-FqEOs8V_.js +11 -0
- package/dist/public/assets/ja-JP-DBVTYXUO-1bI1uZ7i.js +8 -0
- package/dist/public/assets/ja-JP-DBVTYXUO-DQOZh6jj.js +8 -0
- package/dist/public/assets/journeyDiagram-49397b02-B8902FwX.js +139 -0
- package/dist/public/assets/journeyDiagram-49397b02-hbhF2GTs.js +139 -0
- package/dist/public/assets/kaa-6HZHGXH3-CIEfiJBq.js +1 -0
- package/dist/public/assets/kaa-6HZHGXH3-DAsn8pMz.js +1 -0
- package/dist/public/assets/kab-KAB-ZGHBKWFO-DufzFqgZ.js +8 -0
- package/dist/public/assets/kab-KAB-ZGHBKWFO-hbSn2yHo.js +8 -0
- package/dist/public/assets/kk-KZ-P5N5QNE5-CY4y9tDn.js +1 -0
- package/dist/public/assets/kk-KZ-P5N5QNE5-DJbDGpSa.js +1 -0
- package/dist/public/assets/km-KH-HSX4SM5Z-5whf9ZS1.js +11 -0
- package/dist/public/assets/km-KH-HSX4SM5Z-CF1cSYpx.js +11 -0
- package/dist/public/assets/ko-KR-MTYHY66A-CSj-Cw0T.js +9 -0
- package/dist/public/assets/ko-KR-MTYHY66A-D0j8sNVo.js +9 -0
- package/dist/public/assets/ku-TR-6OUDTVRD-DZ47lKMP.js +9 -0
- package/dist/public/assets/ku-TR-6OUDTVRD-ETLSr72d.js +9 -0
- package/dist/public/assets/layout-Ch5pbbc5.js +1 -0
- package/dist/public/assets/layout-DWyqbrTF.js +1 -0
- package/dist/public/assets/line-BEMT2b8O.js +1 -0
- package/dist/public/assets/line-OgJiSIcA.js +1 -0
- package/dist/public/assets/linear-DrlVBQ0m.js +1 -0
- package/dist/public/assets/linear-lQEAUsIr.js +1 -0
- package/dist/public/assets/lt-LT-XHIRWOB4-B_rQQq9i.js +3 -0
- package/dist/public/assets/lt-LT-XHIRWOB4-VDM_qh72.js +3 -0
- package/dist/public/assets/lv-LV-5QDEKY6T-CLpzoE_t.js +7 -0
- package/dist/public/assets/lv-LV-5QDEKY6T-owXNC2sk.js +7 -0
- package/dist/public/assets/mindmap-definition-fc14e90a-4BkML5nr.js +415 -0
- package/dist/public/assets/mindmap-definition-fc14e90a-I2HuZmtK.js +415 -0
- package/dist/public/assets/mr-IN-CRQNXWMA-BUEgszaQ.js +13 -0
- package/dist/public/assets/mr-IN-CRQNXWMA-mcuymSpi.js +13 -0
- package/dist/public/assets/my-MM-5M5IBNSE-BiJAlR2l.js +1 -0
- package/dist/public/assets/my-MM-5M5IBNSE-Dn6dj_g-.js +1 -0
- package/dist/public/assets/nb-NO-T6EIAALU-CDRfxO5D.js +10 -0
- package/dist/public/assets/nb-NO-T6EIAALU-W5EpHGX0.js +10 -0
- package/dist/public/assets/nl-NL-IS3SIHDZ-C7BWZ57w.js +8 -0
- package/dist/public/assets/nl-NL-IS3SIHDZ-D4djrptd.js +8 -0
- package/dist/public/assets/nn-NO-6E72VCQL-BjqkP7Au.js +8 -0
- package/dist/public/assets/nn-NO-6E72VCQL-DgWcUCmS.js +8 -0
- package/dist/public/assets/oc-FR-POXYY2M6-C64no2Sz.js +8 -0
- package/dist/public/assets/oc-FR-POXYY2M6-hkWhLsfj.js +8 -0
- package/dist/public/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/public/assets/pa-IN-N4M65BXN-BzVAnhAz.js +4 -0
- package/dist/public/assets/pa-IN-N4M65BXN-CdXAiUa-.js +4 -0
- package/dist/public/assets/path-CbwjOpE9.js +1 -0
- package/dist/public/assets/percentages-BXMCSKIN-B0roEqNs.js +159 -0
- package/dist/public/assets/percentages-BXMCSKIN-DmjnxD3b.js +159 -0
- package/dist/public/assets/pica-BI1bTxzy.js +2 -0
- package/dist/public/assets/pica-UyEFQr7o.js +2 -0
- package/dist/public/assets/pieDiagram-8a3498a8-BnZKl0HM.js +35 -0
- package/dist/public/assets/pieDiagram-8a3498a8-DToH0Umi.js +35 -0
- package/dist/public/assets/pl-PL-T2D74RX3-BfktR2GC.js +9 -0
- package/dist/public/assets/pl-PL-T2D74RX3-I3Od_pte.js +9 -0
- package/dist/public/assets/pt-BR-5N22H2LF-BMS0hGhj.js +9 -0
- package/dist/public/assets/pt-BR-5N22H2LF-DDlkalmL.js +9 -0
- package/dist/public/assets/pt-PT-UZXXM6DQ-BVksmEeI.js +9 -0
- package/dist/public/assets/pt-PT-UZXXM6DQ-Clt_m-aW.js +9 -0
- package/dist/public/assets/quadrantDiagram-120e2f19-CIZifO3c.js +7 -0
- package/dist/public/assets/quadrantDiagram-120e2f19-Cle8VMl3.js +7 -0
- package/dist/public/assets/react-8ZZPYhoA.js +6 -0
- package/dist/public/assets/react-AWXP2p19.js +6 -0
- package/dist/public/assets/react-B3b69yLH.js +21 -0
- package/dist/public/assets/react-BY3n_q7a.js +19 -0
- package/dist/public/assets/react-BZVgOt_z.js +22 -0
- package/dist/public/assets/react-BxN1Fkhi.js +34 -0
- package/dist/public/assets/react-COPmcfNO.js +1 -0
- package/dist/public/assets/react-Cgkl0rf4.js +19 -0
- package/dist/public/assets/react-D70vKkpT.js +19 -0
- package/dist/public/assets/react-DBLYdRms.js +21 -0
- package/dist/public/assets/react-DGFZQemO.js +1 -0
- package/dist/public/assets/react-DMuqKR18.js +17 -0
- package/dist/public/assets/react-DPzOK4iK.js +17 -0
- package/dist/public/assets/react-Ds4RMtsz.js +19 -0
- package/dist/public/assets/react-JOrDKzAZ.js +34 -0
- package/dist/public/assets/react-XtS51ONh.js +22 -0
- package/dist/public/assets/requirementDiagram-deff3bca-CYs2kOsx.js +52 -0
- package/dist/public/assets/requirementDiagram-deff3bca-D-aHYgF7.js +52 -0
- package/dist/public/assets/ro-RO-JPDTUUEW-8VZwJRTB.js +11 -0
- package/dist/public/assets/ro-RO-JPDTUUEW-CFz9EPTz.js +11 -0
- package/dist/public/assets/roundRect-mAH3dD0p.js +1 -0
- package/dist/public/assets/ru-RU-B4JR7IUQ-DXB6WjCJ.js +9 -0
- package/dist/public/assets/ru-RU-B4JR7IUQ-Dg_Ptvez.js +9 -0
- package/dist/public/assets/sankeyDiagram-04a897e0-CjgF0ShR.js +8 -0
- package/dist/public/assets/sankeyDiagram-04a897e0-Dfqu1Z59.js +8 -0
- package/dist/public/assets/sequenceDiagram-704730f1-DwTvFI-O.js +122 -0
- package/dist/public/assets/sequenceDiagram-704730f1-YZDjgz23.js +122 -0
- package/dist/public/assets/si-LK-N5RQ5JYF-3OCpve4d.js +1 -0
- package/dist/public/assets/si-LK-N5RQ5JYF-BGL74ce-.js +1 -0
- package/dist/public/assets/sk-SK-C5VTKIMK-BEWKAYUl.js +6 -0
- package/dist/public/assets/sk-SK-C5VTKIMK-a7S9S07m.js +6 -0
- package/dist/public/assets/sl-SI-NN7IZMDC-C_2tXhis.js +6 -0
- package/dist/public/assets/sl-SI-NN7IZMDC-CjuniHw8.js +6 -0
- package/dist/public/assets/stateDiagram-587899a1-BYww5TLf.js +1 -0
- package/dist/public/assets/stateDiagram-587899a1-CJKF3UH6.js +1 -0
- package/dist/public/assets/stateDiagram-v2-d93cdb3a-CuD2RI5c.js +1 -0
- package/dist/public/assets/stateDiagram-v2-d93cdb3a-_alqERD3.js +1 -0
- package/dist/public/assets/styles-6aaf32cf-D-L1HpzD.js +207 -0
- package/dist/public/assets/styles-6aaf32cf-DD-NSjsR.js +207 -0
- package/dist/public/assets/styles-9a916d00-CEw3szBU.js +160 -0
- package/dist/public/assets/styles-9a916d00-VifZbF1m.js +160 -0
- package/dist/public/assets/styles-c10674c1-BmyOVyx7.js +116 -0
- package/dist/public/assets/styles-c10674c1-PtYrOZV8.js +116 -0
- package/dist/public/assets/subset-shared.chunk-Brk9kdoc.js +22 -0
- package/dist/public/assets/subset-shared.chunk-BwUUnLRt.js +22 -0
- package/dist/public/assets/subset-worker.chunk-CHKbzn25.js +1 -0
- package/dist/public/assets/subset-worker.chunk-DA7gR3-1.js +1 -0
- package/dist/public/assets/sv-SE-XGPEYMSR-C02T2BPU.js +10 -0
- package/dist/public/assets/sv-SE-XGPEYMSR-tBT_anCV.js +10 -0
- package/dist/public/assets/svgDrawCommon-08f97a94-CEqvQOUt.js +1 -0
- package/dist/public/assets/svgDrawCommon-08f97a94-DKUomX3W.js +1 -0
- package/dist/public/assets/ta-IN-2NMHFXQM-BqK8b4tL.js +9 -0
- package/dist/public/assets/ta-IN-2NMHFXQM-Dwu_LpR7.js +9 -0
- package/dist/public/assets/th-TH-HPSO5L25-BAmgMbAJ.js +2 -0
- package/dist/public/assets/th-TH-HPSO5L25-DKdxRh3E.js +2 -0
- package/dist/public/assets/timeline-definition-85554ec2-B0w8BliX.js +61 -0
- package/dist/public/assets/timeline-definition-85554ec2-CFt0t_Cz.js +61 -0
- package/dist/public/assets/tr-TR-DEFEU3FU-8fP_g7lX.js +7 -0
- package/dist/public/assets/tr-TR-DEFEU3FU-vTO9xmBO.js +7 -0
- package/dist/public/assets/uk-UA-QMV73CPH-Mx0VvPGB.js +6 -0
- package/dist/public/assets/uk-UA-QMV73CPH-yUd9Af6s.js +6 -0
- package/dist/public/assets/vi-VN-M7AON7JQ-Cy6tHM0s.js +5 -0
- package/dist/public/assets/vi-VN-M7AON7JQ-_lTRG-8u.js +5 -0
- package/dist/public/assets/xychartDiagram-e933f94c-2LytheaB.js +7 -0
- package/dist/public/assets/xychartDiagram-e933f94c-3I_ghsu8.js +7 -0
- package/dist/public/assets/zh-CN-LNUGB5OW-BKmxs4M8.js +10 -0
- package/dist/public/assets/zh-CN-LNUGB5OW-CEpRPAMM.js +10 -0
- package/dist/public/assets/zh-HK-E62DVLB3-B7dqTsZx.js +1 -0
- package/dist/public/assets/zh-HK-E62DVLB3-CB9sD2Uu.js +1 -0
- package/dist/public/assets/zh-TW-RAJ6MFWO-C9A8RaNK.js +9 -0
- package/dist/public/assets/zh-TW-RAJ6MFWO-TZmXrCyi.js +9 -0
- package/dist/public/index.html +3 -3
- package/dist/server/index.js +1 -1
- package/dist/server/router.js +9 -0
- package/package.json +7 -1
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BZnxyWWd.js","assets/index-DTAYnrjZ.css","assets/c4Diagram-3d4e48cf-aEsToGmZ.js","assets/svgDrawCommon-08f97a94-DKUomX3W.js","assets/percentages-BXMCSKIN-B0roEqNs.js","assets/flowDiagram-66a62f08-n0k1fu1f.js","assets/flowDb-956e92f1-D2t0qhMs.js","assets/graph-CI2pnyC5.js","assets/layout-DWyqbrTF.js","assets/styles-c10674c1-BmyOVyx7.js","assets/index-3862675e-CyylykW1.js","assets/clone-rdfclP1b.js","assets/edges-e0da2a9e-DfbFOUG6.js","assets/createText-2e5e7dd3-DuYw4Tl5.js","assets/line-OgJiSIcA.js","assets/array-BKyUJesY.js","assets/path-CbwjOpE9.js","assets/channel-DzTwH3ut.js","assets/flowDiagram-v2-96b9c2cf-DPV3KQs-.js","assets/erDiagram-9861fffd-BFVcrfkn.js","assets/gitGraphDiagram-72cf32ee-wLpa30-u.js","assets/ganttDiagram-c361ad54--PpHRpmK.js","assets/linear-lQEAUsIr.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-f8f76790-DnC7uKZu.js","assets/pieDiagram-8a3498a8-DToH0Umi.js","assets/arc-RHlRFoUH.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-120e2f19-CIZifO3c.js","assets/xychartDiagram-e933f94c-2LytheaB.js","assets/requirementDiagram-deff3bca-D-aHYgF7.js","assets/sequenceDiagram-704730f1-DwTvFI-O.js","assets/classDiagram-70f12bd4-BTycZwZN.js","assets/styles-9a916d00-VifZbF1m.js","assets/classDiagram-v2-f2320105-k_XaW7Mw.js","assets/stateDiagram-587899a1-CJKF3UH6.js","assets/styles-6aaf32cf-DD-NSjsR.js","assets/stateDiagram-v2-d93cdb3a-CuD2RI5c.js","assets/journeyDiagram-49397b02-B8902FwX.js","assets/flowchart-elk-definition-4a651766-Ckm-u0tB.js","assets/timeline-definition-85554ec2-B0w8BliX.js","assets/mindmap-definition-fc14e90a-I2HuZmtK.js","assets/sankeyDiagram-04a897e0-Dfqu1Z59.js","assets/Tableau10-B-NsZVaP.js","assets/blockDiagram-38ab4fdb-BpDJl5wM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{g as Gc,_ as J}from"./index-BZnxyWWd.js";import{d as Vc}from"./percentages-BXMCSKIN-B0roEqNs.js";const Or=20,Kc={rect:"rectangle",circle:"ellipse"},Vo={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${Or*1.25}px`},maxEdges:500,maxTextSize:5e4};class Ir{constructor({converter:e}){this.convert=(i,r)=>this.converter(i,{...r,fontSize:r.fontSize||Or}),this.converter=e}}var ye;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond"})(ye||(ye={}));var Tn;(function(t){t.COLOR="color"})(Tn||(Tn={}));var Me;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})(Me||(Me={}));var ri={},Ko;function Zc(){if(Ko)return ri;Ko=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.removeMarkdown=void 0;var t=function(e,i){i===void 0&&(i={listUnicodeChar:""}),i=i||{},i.listUnicodeChar=i.hasOwnProperty("listUnicodeChar")?i.listUnicodeChar:!1,i.stripListLeaders=i.hasOwnProperty("stripListLeaders")?i.stripListLeaders:!0,i.gfm=i.hasOwnProperty("gfm")?i.gfm:!0,i.useImgAltText=i.hasOwnProperty("useImgAltText")?i.useImgAltText:!0,i.preserveLinks=i.hasOwnProperty("preserveLinks")?i.preserveLinks:!1;var r=e||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{i.stripListLeaders&&(i.listUnicodeChar?r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,i.listUnicodeChar+" $1"):r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),i.gfm&&(r=r.replace(/\n={2,}/g,`
|
|
3
|
+
`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),i.preserveLinks&&(r=r.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),r=r.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,i.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,`
|
|
4
|
+
|
|
5
|
+
`).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,`
|
|
6
|
+
|
|
7
|
+
`)}catch(n){return console.error(n),e}return r};return ri.removeMarkdown=t,ri}var Jc=Zc();const Qc={arrow_circle:{endArrowhead:"dot"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"dot",startArrowhead:"dot"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},th=t=>Qc[t],Hi=t=>{let e=t.text;return t.labelType==="markdown"&&(e=Jc.removeMarkdown(t.text)),eh(e)},eh=t=>{const e=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return t.replace(e,"")},ih=t=>{const e={};return Object.keys(t).forEach(i=>{switch(i){case Me.FILL:{e.backgroundColor=t[i],e.fillStyle="solid";break}case Me.STROKE:{e.strokeColor=t[i];break}case Me.STROKE_WIDTH:{e.strokeWidth=Number(t[i]?.split("px")[0]);break}case Me.STROKE_DASHARRAY:{e.strokeStyle="dashed";break}}}),e},rh=t=>{const e={};return Object.keys(t).forEach(i=>{switch(i){case Tn.COLOR:{e.strokeColor=t[i];break}}}),e},nh=t=>{const e={};t.subGraphs.map(r=>{r.nodeIds.forEach(n=>{e[r.id]={id:r.id,parent:null,isLeaf:!1},e[n]={id:n,parent:r.id,isLeaf:t.vertices[n]!==void 0}})});const i={};return[...Object.keys(t.vertices),...t.subGraphs.map(r=>r.id)].forEach(r=>{if(!e[r])return;let n=e[r];const s=[];for(n.isLeaf||s.push(`subgraph_group_${n.id}`);n.parent;)s.push(`subgraph_group_${n.parent}`),n=e[n.parent];i[r]=s}),{getGroupIds:r=>i[r]||[],getParentId:r=>e[r]?e[r].parent:null}},oh=new Ir({converter:(t,e)=>{const i=[],r=e.fontSize,{getGroupIds:n,getParentId:s}=nh(t);return t.subGraphs.reverse().forEach(o=>{const a=n(o.id),l={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,label:{groupIds:a,text:Hi(o),fontSize:r,verticalAlign:"top"}};i.push(l)}),Object.values(t.vertices).forEach(o=>{if(!o)return;const a=n(o.id),l=ih(o.containerStyle),c=rh(o.labelStyle);let h={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,strokeWidth:2,label:{groupIds:a,text:Hi(o),fontSize:r,...c},link:o.link||null,...l};switch(o.type){case ye.STADIUM:{h={...h,roundness:{type:3}};break}case ye.ROUND:{h={...h,roundness:{type:3}};break}case ye.DOUBLECIRCLE:{a.push(`doublecircle_${o.id}}`);const u={type:"ellipse",groupIds:a,x:o.x+5,y:o.y+5,width:o.width-10,height:o.height-10,strokeWidth:2,roundness:{type:3},label:{groupIds:a,text:Hi(o),fontSize:r}};h={...h,groupIds:a,type:"ellipse"},i.push(u);break}case ye.CIRCLE:{h.type="ellipse";break}case ye.DIAMOND:{h.type="diamond";break}}i.push(h)}),t.edges.forEach(o=>{let a=[];const l=s(o.start),c=s(o.end);l&&l===c&&(a=n(l));const{startX:h,startY:d,reflectionPoints:u}=o,f=u.map(x=>[x.x-u[0].x,x.y-u[0].y]),m=th(o.type),T={id:`${o.start}_${o.end}`,type:"arrow",groupIds:a,x:h,y:d,strokeWidth:o.stroke==="thick"?4:2,strokeStyle:o.stroke==="dotted"?"dashed":void 0,points:f,...o.text?{label:{text:Hi(o),fontSize:r,groupIds:a}}:{},roundness:{type:2},...m},E=i.find(x=>x.id===o.start),C=i.find(x=>x.id===o.end);!E||!C||(T.start={id:E.id||""},T.end={id:C.id||""},i.push(T))}),{elements:i}}});let Qt=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,i)=>(i&=63,i<36?e+=i.toString(36):i<62?e+=(i-26).toString(36).toUpperCase():i>62?e+="-":e+="_",e),"");const sh=new Ir({converter:t=>{const e=Qt(),{width:i,height:r}=t,n={type:"image",x:0,y:0,width:i,height:r,status:"saved",fileId:e};return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[n]}}}),jn=t=>t.replace(/\\n/g,`
|
|
8
|
+
`),mi=t=>{const e={type:"line",x:t.startX,y:t.startY,points:[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},cr=t=>{const e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:jn(t.text)||"",fontSize:t.fontSize,verticalAlign:"middle"};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},ui=t=>{let e={};t.type==="rectangle"&&t.subtype==="activation"&&(e={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:{text:jn(t?.label?.text||""),fontSize:t?.label?.fontSize,verticalAlign:t.label?.verticalAlign||"middle",strokeColor:t.label?.color||"#000",groupIds:t.groupId?[t.groupId]:[]},strokeStyle:t?.strokeStyle,strokeWidth:t?.strokeWidth,strokeColor:t?.strokeColor,backgroundColor:t?.bgColor,fillStyle:"solid",...e};return t.groupId&&Object.assign(i,{groupIds:[t.groupId]}),i},ya=t=>{const e={type:"arrow",x:t.startX,y:t.startY,points:t.points||[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t?.strokeStyle||"solid",endArrowhead:t?.endArrowhead||null,startArrowhead:t?.startArrowhead||null,label:{text:jn(t?.label?.text||""),fontSize:16},roundness:{type:2},start:t.start,end:t.end};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),e},ah=new Ir({converter:t=>{const e=[],i=[];if(Object.values(t.nodes).forEach(r=>{!r||!r.length||r.forEach(n=>{let s;switch(n.type){case"line":s=mi(n);break;case"rectangle":case"ellipse":s=ui(n);break;case"text":s=cr(n);break;default:throw`unknown type ${n.type}`}n.type==="rectangle"&&n?.subtype==="activation"?i.push(s):e.push(s)})}),Object.values(t.lines).forEach(r=>{r&&e.push(mi(r))}),Object.values(t.arrows).forEach(r=>{r&&(e.push(ya(r)),r.sequenceNumber&&e.push(ui(r.sequenceNumber)))}),e.push(...i),t.loops){const{lines:r,texts:n,nodes:s}=t.loops;r.forEach(o=>{e.push(mi(o))}),n.forEach(o=>{e.push(cr(o))}),s.forEach(o=>{e.push(ui(o))})}return t.groups&&t.groups.forEach(r=>{const{actorKeys:n,name:s}=r;let o=1/0,a=1/0,l=0,c=0;if(!n.length)return;e.filter(w=>{if(w.id){const Y=w.id.indexOf("-"),N=w.id.substring(0,Y);return n.includes(N)}}).forEach(w=>{if(w.x===void 0||w.y===void 0||w.width===void 0||w.height===void 0)throw new Error(`Actor attributes missing ${w}`);o=Math.min(o,w.x),a=Math.min(a,w.y),l=Math.max(l,w.x+w.width),c=Math.max(c,w.y+w.height)});const d=10,u=o-d,f=a-d,m=l-o+d*2,y=c-a+d*2,T=Qt(),E=ui({type:"rectangle",x:u,y:f,width:m,height:y,bgColor:r.fill,id:T});e.unshift(E);const C=Qt(),x=[T];e.forEach(w=>{if(w.type!=="frame"){if(w.x===void 0||w.y===void 0||w.width===void 0||w.height===void 0)throw new Error(`Element attributes missing ${w}`);if(w.x>=o&&w.x+w.width<=l&&w.y>=a&&w.y+w.height<=c){const Y=w.id||Qt();w.id||Object.assign(w,{id:Y}),x.push(Y)}}});const B={type:"frame",id:C,name:s,children:x};e.push(B)}),{elements:e}}}),lh=new Ir({converter:t=>{const e=[];return Object.values(t.nodes).forEach(i=>{!i||!i.length||i.forEach(r=>{let n;switch(r.type){case"line":n=mi(r);break;case"rectangle":case"ellipse":n=ui(r);break;case"text":n=cr(r);break;default:throw`unknown type ${r.type}`}e.push(n)})}),Object.values(t.lines).forEach(i=>{i&&e.push(mi(i))}),Object.values(t.arrows).forEach(i=>{if(!i)return;const r=ya(i);e.push(r)}),Object.values(t.text).forEach(i=>{const r=cr(i);e.push(r)}),Object.values(t.namespaces).forEach(i=>{const r=Object.keys(i.classes),n=[...r],s=[...t.lines,...t.arrows,...t.text];r.forEach(a=>{const l=s.filter(c=>c.metadata&&c.metadata.classId===a).map(c=>c.id);l.length&&n.push(...l)});const o={type:"frame",id:Qt(),name:i.id,children:n};e.push(o)}),{elements:e}}}),ch=(t,e={})=>{switch(t.type){case"graphImage":return sh.convert(t,e);case"flowchart":return oh.convert(t,e);case"sequence":return ah.convert(t,e);case"class":return lh.convert(t,e);default:throw new Error(`graphToExcalidraw: unknown graph type "${t.type}, only flowcharts are supported!"`)}};function hh(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(h){var d,u;return(u=(d=h.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&u!==void 0?u:0})):a},[]);if(n.length){var s=new RegExp(`
|
|
9
|
+
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(s,`
|
|
10
|
+
`)})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return e.forEach(function(a,l){var c=o.match(/(?:^|\n)( *)$/),h=c?c[1]:"",d=a;typeof a=="string"&&a.includes(`
|
|
11
|
+
`)&&(d=String(a).split(`
|
|
12
|
+
`).map(function(u,f){return f===0?u:""+h+u}).join(`
|
|
13
|
+
`)),o+=d+r[l+1]}),o}var Qi={exports:{}},uh=Qi.exports,Zo;function dh(){return Zo||(Zo=1,(function(t,e){(function(i,r){t.exports=r()})(uh,(function(){var i=1e3,r=6e4,n=36e5,s="millisecond",o="second",a="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",m="date",y="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var k=["th","st","nd","rd"],b=R%100;return"["+R+(k[(b-20)%10]||k[b]||k[0])+"]"}},x=function(R,k,b){var L=String(R);return!L||L.length>=k?R:""+Array(k+1-L.length).join(b)+R},B={s:x,z:function(R){var k=-R.utcOffset(),b=Math.abs(k),L=Math.floor(b/60),S=b%60;return(k<=0?"+":"-")+x(L,2,"0")+":"+x(S,2,"0")},m:function R(k,b){if(k.date()<b.date())return-R(b,k);var L=12*(b.year()-k.year())+(b.month()-k.month()),S=k.clone().add(L,d),M=b-S<0,W=k.clone().add(L+(M?-1:1),d);return+(-(L+(b-S)/(M?S-W:W-S))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:d,y:f,w:h,d:c,D:m,h:l,m:a,s:o,ms:s,Q:u}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},w="en",Y={};Y[w]=C;var N="$isDayjsObject",rt=function(R){return R instanceof Et||!(!R||!R[N])},V=function R(k,b,L){var S;if(!k)return w;if(typeof k=="string"){var M=k.toLowerCase();Y[M]&&(S=M),b&&(Y[M]=b,S=M);var W=k.split("-");if(!S&&W.length>1)return R(W[0])}else{var z=k.name;Y[z]=k,S=z}return!L&&S&&(w=S),S||!L&&w},H=function(R,k){if(rt(R))return R.clone();var b=typeof k=="object"?k:{};return b.date=R,b.args=arguments,new Et(b)},P=B;P.l=V,P.i=rt,P.w=function(R,k){return H(R,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var Et=(function(){function R(b){this.$L=V(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[N]=!0}var k=R.prototype;return k.parse=function(b){this.$d=(function(L){var S=L.date,M=L.utc;if(S===null)return new Date(NaN);if(P.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var W=S.match(T);if(W){var z=W[2]-1||0,Z=(W[7]||"0").substring(0,3);return M?new Date(Date.UTC(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,Z)):new Date(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,Z)}}return new Date(S)})(b),this.init()},k.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},k.$utils=function(){return P},k.isValid=function(){return this.$d.toString()!==y},k.isSame=function(b,L){var S=H(b);return this.startOf(L)<=S&&S<=this.endOf(L)},k.isAfter=function(b,L){return H(b)<this.startOf(L)},k.isBefore=function(b,L){return this.endOf(L)<H(b)},k.$g=function(b,L,S){return P.u(b)?this[L]:this.set(S,b)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(b,L){var S=this,M=!!P.u(L)||L,W=P.p(b),z=function(Lt,nt){var Ft=P.w(S.$u?Date.UTC(S.$y,nt,Lt):new Date(S.$y,nt,Lt),S);return M?Ft:Ft.endOf(c)},Z=function(Lt,nt){return P.w(S.toDate()[Lt].apply(S.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(nt)),S)},j=this.$W,et=this.$M,X=this.$D,Tt="set"+(this.$u?"UTC":"");switch(W){case f:return M?z(1,0):z(31,11);case d:return M?z(1,et):z(0,et+1);case h:var Bt=this.$locale().weekStart||0,ne=(j<Bt?j+7:j)-Bt;return z(M?X-ne:X+(6-ne),et);case c:case m:return Z(Tt+"Hours",0);case l:return Z(Tt+"Minutes",1);case a:return Z(Tt+"Seconds",2);case o:return Z(Tt+"Milliseconds",3);default:return this.clone()}},k.endOf=function(b){return this.startOf(b,!1)},k.$set=function(b,L){var S,M=P.p(b),W="set"+(this.$u?"UTC":""),z=(S={},S[c]=W+"Date",S[m]=W+"Date",S[d]=W+"Month",S[f]=W+"FullYear",S[l]=W+"Hours",S[a]=W+"Minutes",S[o]=W+"Seconds",S[s]=W+"Milliseconds",S)[M],Z=M===c?this.$D+(L-this.$W):L;if(M===d||M===f){var j=this.clone().set(m,1);j.$d[z](Z),j.init(),this.$d=j.set(m,Math.min(this.$D,j.daysInMonth())).$d}else z&&this.$d[z](Z);return this.init(),this},k.set=function(b,L){return this.clone().$set(b,L)},k.get=function(b){return this[P.p(b)]()},k.add=function(b,L){var S,M=this;b=Number(b);var W=P.p(L),z=function(et){var X=H(M);return P.w(X.date(X.date()+Math.round(et*b)),M)};if(W===d)return this.set(d,this.$M+b);if(W===f)return this.set(f,this.$y+b);if(W===c)return z(1);if(W===h)return z(7);var Z=(S={},S[a]=r,S[l]=n,S[o]=i,S)[W]||1,j=this.$d.getTime()+b*Z;return P.w(j,this)},k.subtract=function(b,L){return this.add(-1*b,L)},k.format=function(b){var L=this,S=this.$locale();if(!this.isValid())return S.invalidDate||y;var M=b||"YYYY-MM-DDTHH:mm:ssZ",W=P.z(this),z=this.$H,Z=this.$m,j=this.$M,et=S.weekdays,X=S.months,Tt=S.meridiem,Bt=function(nt,Ft,vt,oe){return nt&&(nt[Ft]||nt(L,M))||vt[Ft].slice(0,oe)},ne=function(nt){return P.s(z%12||12,nt,"0")},Lt=Tt||function(nt,Ft,vt){var oe=nt<12?"AM":"PM";return vt?oe.toLowerCase():oe};return M.replace(E,(function(nt,Ft){return Ft||(function(vt){switch(vt){case"YY":return String(L.$y).slice(-2);case"YYYY":return P.s(L.$y,4,"0");case"M":return j+1;case"MM":return P.s(j+1,2,"0");case"MMM":return Bt(S.monthsShort,j,X,3);case"MMMM":return Bt(X,j);case"D":return L.$D;case"DD":return P.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Bt(S.weekdaysMin,L.$W,et,2);case"ddd":return Bt(S.weekdaysShort,L.$W,et,3);case"dddd":return et[L.$W];case"H":return String(z);case"HH":return P.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return Lt(z,Z,!0);case"A":return Lt(z,Z,!1);case"m":return String(Z);case"mm":return P.s(Z,2,"0");case"s":return String(L.$s);case"ss":return P.s(L.$s,2,"0");case"SSS":return P.s(L.$ms,3,"0");case"Z":return W}return null})(nt)||W.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(b,L,S){var M,W=this,z=P.p(L),Z=H(b),j=(Z.utcOffset()-this.utcOffset())*r,et=this-Z,X=function(){return P.m(W,Z)};switch(z){case f:M=X()/12;break;case d:M=X();break;case u:M=X()/3;break;case h:M=(et-j)/6048e5;break;case c:M=(et-j)/864e5;break;case l:M=et/n;break;case a:M=et/r;break;case o:M=et/i;break;default:M=et}return S?M:P.a(M)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return Y[this.$L]},k.locale=function(b,L){if(!b)return this.$L;var S=this.clone(),M=V(b,L,!0);return M&&(S.$L=M),S},k.clone=function(){return P.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},R})(),re=Et.prototype;return H.prototype=re,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",c],["$M",d],["$y",f],["$D",m]].forEach((function(R){re[R[1]]=function(k){return this.$g(k,R[0],R[1])}})),H.extend=function(R,k){return R.$i||(R(k,Et,H),R.$i=!0),H},H.locale=V,H.isDayjs=rt,H.unix=function(R){return H(1e3*R)},H.en=Y[w],H.Ls=Y,H.p={},H}))})(Qi)),Qi.exports}var fh=dh();const ph=Gc(fh);var gh={value:()=>{}};function _a(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new tr(i)}function tr(t){this._=t}function mh(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}tr.prototype=_a.prototype={constructor:tr,on:function(t,e){var i=this._,r=mh(t+"",i),n,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((n=(t=r[s]).type)&&(n=yh(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(n=(t=r[s]).type)i[n]=Jo(i[n],t.name,e);else if(e==null)for(n in i)i[n]=Jo(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new tr(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,s;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,n=s.length;r<n;++r)s[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,s=r.length;n<s;++n)r[n].value.apply(e,i)}};function yh(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function Jo(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=gh,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var vn="http://www.w3.org/1999/xhtml";const Qo={svg:"http://www.w3.org/2000/svg",xhtml:vn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mr(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Qo.hasOwnProperty(e)?{space:Qo[e],local:t}:t}function _h(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===vn&&e.documentElement.namespaceURI===vn?e.createElement(t):e.createElementNS(i,t)}}function Ch(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ca(t){var e=Mr(t);return(e.local?Ch:_h)(e)}function xh(){}function Un(t){return t==null?xh:function(){return this.querySelector(t)}}function bh(t){typeof t!="function"&&(t=Un(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=new Array(o),l,c,h=0;h<o;++h)(l=s[h])&&(c=t.call(l,l.__data__,h,s))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new xt(r,this._parents)}function Th(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function vh(){return[]}function xa(t){return t==null?vh:function(){return this.querySelectorAll(t)}}function Sh(t){return function(){return Th(t.apply(this,arguments))}}function kh(t){typeof t=="function"?t=Sh(t):t=xa(t);for(var e=this._groups,i=e.length,r=[],n=[],s=0;s<i;++s)for(var o=e[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(r.push(t.call(l,l.__data__,c,o)),n.push(l));return new xt(r,n)}function ba(t){return function(){return this.matches(t)}}function Ta(t){return function(e){return e.matches(t)}}var wh=Array.prototype.find;function Ah(t){return function(){return wh.call(this.children,t)}}function Eh(){return this.firstElementChild}function Bh(t){return this.select(t==null?Eh:Ah(typeof t=="function"?t:Ta(t)))}var Lh=Array.prototype.filter;function Fh(){return Array.from(this.children)}function Oh(t){return function(){return Lh.call(this.children,t)}}function Ih(t){return this.selectAll(t==null?Fh:Oh(typeof t=="function"?t:Ta(t)))}function Mh(t){typeof t!="function"&&(t=ba(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new xt(r,this._parents)}function va(t){return new Array(t.length)}function $h(){return new xt(this._enter||this._groups.map(va),this._parents)}function hr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}hr.prototype={constructor:hr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Dh(t){return function(){return t}}function Nh(t,e,i,r,n,s){for(var o=0,a,l=e.length,c=s.length;o<c;++o)(a=e[o])?(a.__data__=s[o],r[o]=a):i[o]=new hr(t,s[o]);for(;o<l;++o)(a=e[o])&&(n[o]=a)}function Rh(t,e,i,r,n,s,o){var a,l,c=new Map,h=e.length,d=s.length,u=new Array(h),f;for(a=0;a<h;++a)(l=e[a])&&(u[a]=f=o.call(l,l.__data__,a,e)+"",c.has(f)?n[a]=l:c.set(f,l));for(a=0;a<d;++a)f=o.call(t,s[a],a,s)+"",(l=c.get(f))?(r[a]=l,l.__data__=s[a],c.delete(f)):i[a]=new hr(t,s[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(u[a])===l&&(n[a]=l)}function Ph(t){return t.__data__}function qh(t,e){if(!arguments.length)return Array.from(this,Ph);var i=e?Rh:Nh,r=this._parents,n=this._groups;typeof t!="function"&&(t=Dh(t));for(var s=n.length,o=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var h=r[c],d=n[c],u=d.length,f=zh(t.call(h,h&&h.__data__,c,r)),m=f.length,y=a[c]=new Array(m),T=o[c]=new Array(m),E=l[c]=new Array(u);i(h,d,y,T,E,f,e);for(var C=0,x=0,B,w;C<m;++C)if(B=y[C]){for(C>=x&&(x=C+1);!(w=T[x])&&++x<m;);B._next=w||null}}return o=new xt(o,r),o._enter=a,o._exit=l,o}function zh(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Wh(){return new xt(this._exit||this._groups.map(va),this._parents)}function Yh(t,e,i){var r=this.enter(),n=this,s=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?s.remove():i(s),r&&n?r.merge(n).order():n}function Hh(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,s=r.length,o=Math.min(n,s),a=new Array(n),l=0;l<o;++l)for(var c=i[l],h=r[l],d=c.length,u=a[l]=new Array(d),f,m=0;m<d;++m)(f=c[m]||h[m])&&(u[m]=f);for(;l<n;++l)a[l]=i[l];return new xt(a,this._parents)}function jh(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,s=r[n],o;--n>=0;)(o=r[n])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function Uh(t){t||(t=Xh);function e(d,u){return d&&u?t(d.__data__,u.__data__):!d-!u}for(var i=this._groups,r=i.length,n=new Array(r),s=0;s<r;++s){for(var o=i[s],a=o.length,l=n[s]=new Array(a),c,h=0;h<a;++h)(c=o[h])&&(l[h]=c);l.sort(e)}return new xt(n,this._parents).order()}function Xh(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Gh(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Vh(){return Array.from(this)}function Kh(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,s=r.length;n<s;++n){var o=r[n];if(o)return o}return null}function Zh(){let t=0;for(const e of this)++t;return t}function Jh(){return!this.node()}function Qh(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],s=0,o=n.length,a;s<o;++s)(a=n[s])&&t.call(a,a.__data__,s,n);return this}function tu(t){return function(){this.removeAttribute(t)}}function eu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function iu(t,e){return function(){this.setAttribute(t,e)}}function ru(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function nu(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function ou(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function su(t,e){var i=Mr(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?eu:tu:typeof e=="function"?i.local?ou:nu:i.local?ru:iu)(i,e))}function Sa(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function au(t){return function(){this.style.removeProperty(t)}}function lu(t,e,i){return function(){this.style.setProperty(t,e,i)}}function cu(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function hu(t,e,i){return arguments.length>1?this.each((e==null?au:typeof e=="function"?cu:lu)(t,e,i??"")):ze(this.node(),t)}function ze(t,e){return t.style.getPropertyValue(e)||Sa(t).getComputedStyle(t,null).getPropertyValue(e)}function uu(t){return function(){delete this[t]}}function du(t,e){return function(){this[t]=e}}function fu(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function pu(t,e){return arguments.length>1?this.each((e==null?uu:typeof e=="function"?fu:du)(t,e)):this.node()[t]}function ka(t){return t.trim().split(/^|\s+/)}function Xn(t){return t.classList||new wa(t)}function wa(t){this._node=t,this._names=ka(t.getAttribute("class")||"")}wa.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Aa(t,e){for(var i=Xn(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function Ea(t,e){for(var i=Xn(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function gu(t){return function(){Aa(this,t)}}function mu(t){return function(){Ea(this,t)}}function yu(t,e){return function(){(e.apply(this,arguments)?Aa:Ea)(this,t)}}function _u(t,e){var i=ka(t+"");if(arguments.length<2){for(var r=Xn(this.node()),n=-1,s=i.length;++n<s;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?yu:e?gu:mu)(i,e))}function Cu(){this.textContent=""}function xu(t){return function(){this.textContent=t}}function bu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Tu(t){return arguments.length?this.each(t==null?Cu:(typeof t=="function"?bu:xu)(t)):this.node().textContent}function vu(){this.innerHTML=""}function Su(t){return function(){this.innerHTML=t}}function ku(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function wu(t){return arguments.length?this.each(t==null?vu:(typeof t=="function"?ku:Su)(t)):this.node().innerHTML}function Au(){this.nextSibling&&this.parentNode.appendChild(this)}function Eu(){return this.each(Au)}function Bu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Lu(){return this.each(Bu)}function Fu(t){var e=typeof t=="function"?t:Ca(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Ou(){return null}function Iu(t,e){var i=typeof t=="function"?t:Ca(t),r=e==null?Ou:typeof e=="function"?e:Un(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function Mu(){var t=this.parentNode;t&&t.removeChild(this)}function $u(){return this.each(Mu)}function Du(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Nu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ru(t){return this.select(t?Nu:Du)}function Pu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function qu(t){return function(e){t.call(this,e,this.__data__)}}function zu(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function Wu(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,s;i<n;++i)s=e[i],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function Yu(t,e,i){return function(){var r=this.__on,n,s=qu(e);if(r){for(var o=0,a=r.length;o<a;++o)if((n=r[o]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=i),n.value=e;return}}this.addEventListener(t.type,s,i),n={type:t.type,name:t.name,value:e,listener:s,options:i},r?r.push(n):this.__on=[n]}}function Hu(t,e,i){var r=zu(t+""),n,s=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(n=0,h=a[l];n<s;++n)if((o=r[n]).type===h.type&&o.name===h.name)return h.value}return}for(a=e?Yu:Wu,n=0;n<s;++n)this.each(a(r[n],e,i));return this}function Ba(t,e,i){var r=Sa(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function ju(t,e){return function(){return Ba(this,t,e)}}function Uu(t,e){return function(){return Ba(this,t,e.apply(this,arguments))}}function Xu(t,e){return this.each((typeof e=="function"?Uu:ju)(t,e))}function*Gu(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,s=r.length,o;n<s;++n)(o=r[n])&&(yield o)}var La=[null];function xt(t,e){this._groups=t,this._parents=e}function Ii(){return new xt([[document.documentElement]],La)}function Vu(){return this}xt.prototype=Ii.prototype={constructor:xt,select:bh,selectAll:kh,selectChild:Bh,selectChildren:Ih,filter:Mh,data:qh,enter:$h,exit:Wh,join:Yh,merge:Hh,selection:Vu,order:jh,sort:Uh,call:Gh,nodes:Vh,node:Kh,size:Zh,empty:Jh,each:Qh,attr:su,style:hu,property:pu,classed:_u,text:Tu,html:wu,raise:Eu,lower:Lu,append:Fu,insert:Iu,remove:$u,clone:Ru,datum:Pu,on:Hu,dispatch:Xu,[Symbol.iterator]:Gu};function kt(t){return typeof t=="string"?new xt([[document.querySelector(t)]],[document.documentElement]):new xt([[t]],La)}function Gn(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Fa(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function Mi(){}var vi=.7,ur=1/vi,Ne="\\s*([+-]?\\d+)\\s*",Si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ku=/^#([0-9a-f]{3,8})$/,Zu=new RegExp(`^rgb\\(${Ne},${Ne},${Ne}\\)$`),Ju=new RegExp(`^rgb\\(${qt},${qt},${qt}\\)$`),Qu=new RegExp(`^rgba\\(${Ne},${Ne},${Ne},${Si}\\)$`),td=new RegExp(`^rgba\\(${qt},${qt},${qt},${Si}\\)$`),ed=new RegExp(`^hsl\\(${Si},${qt},${qt}\\)$`),id=new RegExp(`^hsla\\(${Si},${qt},${qt},${Si}\\)$`),ts={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gn(Mi,ki,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:es,formatHex:es,formatHex8:rd,formatHsl:nd,formatRgb:is,toString:is});function es(){return this.rgb().formatHex()}function rd(){return this.rgb().formatHex8()}function nd(){return Oa(this).formatHsl()}function is(){return this.rgb().formatRgb()}function ki(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Ku.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?rs(e):i===3?new yt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?ji(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?ji(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Zu.exec(t))?new yt(e[1],e[2],e[3],1):(e=Ju.exec(t))?new yt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qu.exec(t))?ji(e[1],e[2],e[3],e[4]):(e=td.exec(t))?ji(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=ed.exec(t))?ss(e[1],e[2]/100,e[3]/100,1):(e=id.exec(t))?ss(e[1],e[2]/100,e[3]/100,e[4]):ts.hasOwnProperty(t)?rs(ts[t]):t==="transparent"?new yt(NaN,NaN,NaN,0):null}function rs(t){return new yt(t>>16&255,t>>8&255,t&255,1)}function ji(t,e,i,r){return r<=0&&(t=e=i=NaN),new yt(t,e,i,r)}function od(t){return t instanceof Mi||(t=ki(t)),t?(t=t.rgb(),new yt(t.r,t.g,t.b,t.opacity)):new yt}function Sn(t,e,i,r){return arguments.length===1?od(t):new yt(t,e,i,r??1)}function yt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Gn(yt,Sn,Fa(Mi,{brighter(t){return t=t==null?ur:Math.pow(ur,t),new yt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?vi:Math.pow(vi,t),new yt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new yt(xe(this.r),xe(this.g),xe(this.b),dr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ns,formatHex:ns,formatHex8:sd,formatRgb:os,toString:os}));function ns(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}`}function sd(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}${_e((isNaN(this.opacity)?1:this.opacity)*255)}`}function os(){const t=dr(this.opacity);return`${t===1?"rgb(":"rgba("}${xe(this.r)}, ${xe(this.g)}, ${xe(this.b)}${t===1?")":`, ${t})`}`}function dr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function xe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _e(t){return t=xe(t),(t<16?"0":"")+t.toString(16)}function ss(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new It(t,e,i,r)}function Oa(t){if(t instanceof It)return new It(t.h,t.s,t.l,t.opacity);if(t instanceof Mi||(t=ki(t)),!t)return new It;if(t instanceof It)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),s=Math.max(e,i,r),o=NaN,a=s-n,l=(s+n)/2;return a?(e===s?o=(i-r)/a+(i<r)*6:i===s?o=(r-e)/a+2:o=(e-i)/a+4,a/=l<.5?s+n:2-s-n,o*=60):a=l>0&&l<1?0:o,new It(o,a,l,t.opacity)}function ad(t,e,i,r){return arguments.length===1?Oa(t):new It(t,e,i,r??1)}function It(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Gn(It,ad,Fa(Mi,{brighter(t){return t=t==null?ur:Math.pow(ur,t),new It(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?vi:Math.pow(vi,t),new It(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new yt(sn(t>=240?t-240:t+120,n,r),sn(t,n,r),sn(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new It(as(this.h),Ui(this.s),Ui(this.l),dr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=dr(this.opacity);return`${t===1?"hsl(":"hsla("}${as(this.h)}, ${Ui(this.s)*100}%, ${Ui(this.l)*100}%${t===1?")":`, ${t})`}`}}));function as(t){return t=(t||0)%360,t<0?t+360:t}function Ui(t){return Math.max(0,Math.min(1,t||0))}function sn(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Vn=t=>()=>t;function Ia(t,e){return function(i){return t+i*e}}function ld(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function P1(t,e){var i=e-t;return i?Ia(t,i>180||i<-180?i-360*Math.round(i/360):i):Vn(isNaN(t)?e:t)}function cd(t){return(t=+t)==1?Ma:function(e,i){return i-e?ld(e,i,t):Vn(isNaN(e)?i:e)}}function Ma(t,e){var i=e-t;return i?Ia(t,i):Vn(isNaN(t)?e:t)}const ls=(function t(e){var i=cd(e);function r(n,s){var o=i((n=Sn(n)).r,(s=Sn(s)).r),a=i(n.g,s.g),l=i(n.b,s.b),c=Ma(n.opacity,s.opacity);return function(h){return n.r=o(h),n.g=a(h),n.b=l(h),n.opacity=c(h),n+""}}return r.gamma=t,r})(1);function le(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var kn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,an=new RegExp(kn.source,"g");function hd(t){return function(){return t}}function ud(t){return function(e){return t(e)+""}}function dd(t,e){var i=kn.lastIndex=an.lastIndex=0,r,n,s,o=-1,a=[],l=[];for(t=t+"",e=e+"";(r=kn.exec(t))&&(n=an.exec(e));)(s=n.index)>i&&(s=e.slice(i,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:le(r,n)})),i=an.lastIndex;return i<e.length&&(s=e.slice(i),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?ud(l[0].x):hd(e):(e=l.length,function(c){for(var h=0,d;h<e;++h)a[(d=l[h]).i]=d.x(c);return a.join("")})}var cs=180/Math.PI,wn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $a(t,e,i,r,n,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,o=-o),{translateX:n,translateY:s,rotate:Math.atan2(e,t)*cs,skewX:Math.atan(l)*cs,scaleX:o,scaleY:a}}var Xi;function fd(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?wn:$a(e.a,e.b,e.c,e.d,e.e,e.f)}function pd(t){return t==null||(Xi||(Xi=document.createElementNS("http://www.w3.org/2000/svg","g")),Xi.setAttribute("transform",t),!(t=Xi.transform.baseVal.consolidate()))?wn:(t=t.matrix,$a(t.a,t.b,t.c,t.d,t.e,t.f))}function Da(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function s(c,h,d,u,f,m){if(c!==d||h!==u){var y=f.push("translate(",null,e,null,i);m.push({i:y-4,x:le(c,d)},{i:y-2,x:le(h,u)})}else(d||u)&&f.push("translate("+d+e+u+i)}function o(c,h,d,u){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),u.push({i:d.push(n(d)+"rotate(",null,r)-2,x:le(c,h)})):h&&d.push(n(d)+"rotate("+h+r)}function a(c,h,d,u){c!==h?u.push({i:d.push(n(d)+"skewX(",null,r)-2,x:le(c,h)}):h&&d.push(n(d)+"skewX("+h+r)}function l(c,h,d,u,f,m){if(c!==d||h!==u){var y=f.push(n(f)+"scale(",null,",",null,")");m.push({i:y-4,x:le(c,d)},{i:y-2,x:le(h,u)})}else(d!==1||u!==1)&&f.push(n(f)+"scale("+d+","+u+")")}return function(c,h){var d=[],u=[];return c=t(c),h=t(h),s(c.translateX,c.translateY,h.translateX,h.translateY,d,u),o(c.rotate,h.rotate,d,u),a(c.skewX,h.skewX,d,u),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,d,u),c=h=null,function(f){for(var m=-1,y=u.length,T;++m<y;)d[(T=u[m]).i]=T.x(f);return d.join("")}}}var gd=Da(fd,"px, ","px)","deg)"),md=Da(pd,", ",")",")"),We=0,di=0,ni=0,Na=1e3,fr,fi,pr=0,Te=0,$r=0,wi=typeof performance=="object"&&performance.now?performance:Date,Ra=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Kn(){return Te||(Ra(yd),Te=wi.now()+$r)}function yd(){Te=0}function gr(){this._call=this._time=this._next=null}gr.prototype=Pa.prototype={constructor:gr,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?Kn():+i)+(e==null?0:+e),!this._next&&fi!==this&&(fi?fi._next=this:fr=this,fi=this),this._call=t,this._time=i,An()},stop:function(){this._call&&(this._call=null,this._time=1/0,An())}};function Pa(t,e,i){var r=new gr;return r.restart(t,e,i),r}function _d(){Kn(),++We;for(var t=fr,e;t;)(e=Te-t._time)>=0&&t._call.call(void 0,e),t=t._next;--We}function hs(){Te=(pr=wi.now())+$r,We=di=0;try{_d()}finally{We=0,xd(),Te=0}}function Cd(){var t=wi.now(),e=t-pr;e>Na&&($r-=e,pr=t)}function xd(){for(var t,e=fr,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:fr=i);fi=t,An(r)}function An(t){if(!We){di&&(di=clearTimeout(di));var e=t-Te;e>24?(t<1/0&&(di=setTimeout(hs,t-wi.now()-$r)),ni&&(ni=clearInterval(ni))):(ni||(pr=wi.now(),ni=setInterval(Cd,Na)),We=1,Ra(hs))}}function us(t,e,i){var r=new gr;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var bd=_a("start","end","cancel","interrupt"),Td=[],qa=0,ds=1,En=2,er=3,fs=4,Bn=5,ir=6;function Dr(t,e,i,r,n,s){var o=t.__transition;if(!o)t.__transition={};else if(i in o)return;vd(t,i,{name:e,index:r,group:n,on:bd,tween:Td,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:qa})}function Zn(t,e){var i=$t(t,e);if(i.state>qa)throw new Error("too late; already scheduled");return i}function jt(t,e){var i=$t(t,e);if(i.state>er)throw new Error("too late; already running");return i}function $t(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function vd(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=Pa(s,0,i.time);function s(c){i.state=ds,i.timer.restart(o,i.delay,i.time),i.delay<=c&&o(c-i.delay)}function o(c){var h,d,u,f;if(i.state!==ds)return l();for(h in r)if(f=r[h],f.name===i.name){if(f.state===er)return us(o);f.state===fs?(f.state=ir,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[h]):+h<e&&(f.state=ir,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[h])}if(us(function(){i.state===er&&(i.state=fs,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=En,i.on.call("start",t,t.__data__,i.index,i.group),i.state===En){for(i.state=er,n=new Array(u=i.tween.length),h=0,d=-1;h<u;++h)(f=i.tween[h].value.call(t,t.__data__,i.index,i.group))&&(n[++d]=f);n.length=d+1}}function a(c){for(var h=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=Bn,1),d=-1,u=n.length;++d<u;)n[d].call(t,h);i.state===Bn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=ir,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function Sd(t,e){var i=t.__transition,r,n,s=!0,o;if(i){e=e==null?null:e+"";for(o in i){if((r=i[o]).name!==e){s=!1;continue}n=r.state>En&&r.state<Bn,r.state=ir,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[o]}s&&delete t.__transition}}function kd(t){return this.each(function(){Sd(this,t)})}function wd(t,e){var i,r;return function(){var n=jt(this,t),s=n.tween;if(s!==i){r=i=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}n.tween=r}}function Ad(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var s=jt(this,t),o=s.tween;if(o!==r){n=(r=o).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}s.tween=n}}function Ed(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=$t(this.node(),i).tween,n=0,s=r.length,o;n<s;++n)if((o=r[n]).name===t)return o.value;return null}return this.each((e==null?wd:Ad)(i,t,e))}function Jn(t,e,i){var r=t._id;return t.each(function(){var n=jt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return $t(n,r).value[e]}}function za(t,e){var i;return(typeof e=="number"?le:e instanceof ki?ls:(i=ki(e))?(e=i,ls):dd)(t,e)}function Bd(t){return function(){this.removeAttribute(t)}}function Ld(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Fd(t,e,i){var r,n=i+"",s;return function(){var o=this.getAttribute(t);return o===n?null:o===r?s:s=e(r=o,i)}}function Od(t,e,i){var r,n=i+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===r?s:s=e(r=o,i)}}function Id(t,e,i){var r,n,s;return function(){var o,a=i(this),l;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),l=a+"",o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a)))}}function Md(t,e,i){var r,n,s;return function(){var o,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),l=a+"",o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a)))}}function $d(t,e){var i=Mr(t),r=i==="transform"?md:za;return this.attrTween(t,typeof e=="function"?(i.local?Md:Id)(i,r,Jn(this,"attr."+t,e)):e==null?(i.local?Ld:Bd)(i):(i.local?Od:Fd)(i,r,e))}function Dd(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function Nd(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Rd(t,e){var i,r;function n(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&Nd(t,s)),i}return n._value=e,n}function Pd(t,e){var i,r;function n(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&Dd(t,s)),i}return n._value=e,n}function qd(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=Mr(t);return this.tween(i,(r.local?Rd:Pd)(r,e))}function zd(t,e){return function(){Zn(this,t).delay=+e.apply(this,arguments)}}function Wd(t,e){return e=+e,function(){Zn(this,t).delay=e}}function Yd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?zd:Wd)(e,t)):$t(this.node(),e).delay}function Hd(t,e){return function(){jt(this,t).duration=+e.apply(this,arguments)}}function jd(t,e){return e=+e,function(){jt(this,t).duration=e}}function Ud(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Hd:jd)(e,t)):$t(this.node(),e).duration}function Xd(t,e){if(typeof e!="function")throw new Error;return function(){jt(this,t).ease=e}}function Gd(t){var e=this._id;return arguments.length?this.each(Xd(e,t)):$t(this.node(),e).ease}function Vd(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;jt(this,t).ease=i}}function Kd(t){if(typeof t!="function")throw new Error;return this.each(Vd(this._id,t))}function Zd(t){typeof t!="function"&&(t=ba(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new ee(r,this._parents,this._name,this._id)}function Jd(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,s=Math.min(r,n),o=new Array(r),a=0;a<s;++a)for(var l=e[a],c=i[a],h=l.length,d=o[a]=new Array(h),u,f=0;f<h;++f)(u=l[f]||c[f])&&(d[f]=u);for(;a<r;++a)o[a]=e[a];return new ee(o,this._parents,this._name,this._id)}function Qd(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function tf(t,e,i){var r,n,s=Qd(e)?Zn:jt;return function(){var o=s(this,t),a=o.on;a!==r&&(n=(r=a).copy()).on(e,i),o.on=n}}function ef(t,e){var i=this._id;return arguments.length<2?$t(this.node(),i).on.on(t):this.each(tf(i,t,e))}function rf(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function nf(){return this.on("end.remove",rf(this._id))}function of(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Un(t));for(var r=this._groups,n=r.length,s=new Array(n),o=0;o<n;++o)for(var a=r[o],l=a.length,c=s[o]=new Array(l),h,d,u=0;u<l;++u)(h=a[u])&&(d=t.call(h,h.__data__,u,a))&&("__data__"in h&&(d.__data__=h.__data__),c[u]=d,Dr(c[u],e,i,u,c,$t(h,i)));return new ee(s,this._parents,e,i)}function sf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=xa(t));for(var r=this._groups,n=r.length,s=[],o=[],a=0;a<n;++a)for(var l=r[a],c=l.length,h,d=0;d<c;++d)if(h=l[d]){for(var u=t.call(h,h.__data__,d,l),f,m=$t(h,i),y=0,T=u.length;y<T;++y)(f=u[y])&&Dr(f,e,i,y,u,m);s.push(u),o.push(h)}return new ee(s,o,e,i)}var af=Ii.prototype.constructor;function lf(){return new af(this._groups,this._parents)}function cf(t,e){var i,r,n;return function(){var s=ze(this,t),o=(this.style.removeProperty(t),ze(this,t));return s===o?null:s===i&&o===r?n:n=e(i=s,r=o)}}function Wa(t){return function(){this.style.removeProperty(t)}}function hf(t,e,i){var r,n=i+"",s;return function(){var o=ze(this,t);return o===n?null:o===r?s:s=e(r=o,i)}}function uf(t,e,i){var r,n,s;return function(){var o=ze(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),ze(this,t))),o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a))}}function df(t,e){var i,r,n,s="style."+e,o="end."+s,a;return function(){var l=jt(this,t),c=l.on,h=l.value[s]==null?a||(a=Wa(e)):void 0;(c!==i||n!==h)&&(r=(i=c).copy()).on(o,n=h),l.on=r}}function ff(t,e,i){var r=(t+="")=="transform"?gd:za;return e==null?this.styleTween(t,cf(t,r)).on("end.style."+t,Wa(t)):typeof e=="function"?this.styleTween(t,uf(t,r,Jn(this,"style."+t,e))).each(df(this._id,t)):this.styleTween(t,hf(t,r,e),i).on("end.style."+t,null)}function pf(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function gf(t,e,i){var r,n;function s(){var o=e.apply(this,arguments);return o!==n&&(r=(n=o)&&pf(t,o,i)),r}return s._value=e,s}function mf(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,gf(t,e,i??""))}function yf(t){return function(){this.textContent=t}}function _f(t){return function(){var e=t(this);this.textContent=e??""}}function Cf(t){return this.tween("text",typeof t=="function"?_f(Jn(this,"text",t)):yf(t==null?"":t+""))}function xf(t){return function(e){this.textContent=t.call(this,e)}}function bf(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&xf(n)),e}return r._value=t,r}function Tf(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,bf(t))}function vf(){for(var t=this._name,e=this._id,i=Ya(),r=this._groups,n=r.length,s=0;s<n;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var h=$t(l,e);Dr(l,t,i,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ee(r,this._parents,t,i)}function Sf(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(s,o){var a={value:o},l={value:function(){--n===0&&s()}};i.each(function(){var c=jt(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&s()})}var kf=0;function ee(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function Ya(){return++kf}var Vt=Ii.prototype;ee.prototype={constructor:ee,select:of,selectAll:sf,selectChild:Vt.selectChild,selectChildren:Vt.selectChildren,filter:Zd,merge:Jd,selection:lf,transition:vf,call:Vt.call,nodes:Vt.nodes,node:Vt.node,size:Vt.size,empty:Vt.empty,each:Vt.each,on:ef,attr:$d,attrTween:qd,style:ff,styleTween:mf,text:Cf,textTween:Tf,remove:nf,tween:Ed,delay:Yd,duration:Ud,ease:Gd,easeVarying:Kd,end:Sf,[Symbol.iterator]:Vt[Symbol.iterator]};function wf(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Af={time:null,delay:0,duration:250,ease:wf};function Ef(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function Bf(t){var e,i;t instanceof ee?(e=t._id,t=t._name):(e=Ya(),(i=Af).time=Kn(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,s=0;s<n;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&Dr(l,t,e,c,o,i||Ef(l,e));return new ee(r,this._parents,t,e)}Ii.prototype.interrupt=kd;Ii.prototype.transition=Bf;const q1=Math.abs,z1=Math.atan2,W1=Math.cos,Y1=Math.max,H1=Math.min,j1=Math.sin,U1=Math.sqrt,ps=1e-12,Qn=Math.PI,gs=Qn/2,X1=2*Qn;function G1(t){return t>1?0:t<-1?Qn:Math.acos(t)}function V1(t){return t>=1?gs:t<=-1?-gs:Math.asin(t)}function Ha(t){this._context=t}Ha.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Lf(t){return new Ha(t)}class ja{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function Ff(t){return new ja(t,!0)}function Of(t){return new ja(t,!1)}function ue(){}function mr(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Nr(t){this._context=t}Nr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:mr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:mr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function If(t){return new Nr(t)}function Ua(t){this._context=t}Ua.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:mr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Mf(t){return new Ua(t)}function Xa(t){this._context=t}Xa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:mr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function $f(t){return new Xa(t)}function Ga(t,e){this._basis=new Nr(t),this._beta=e}Ga.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],s=t[i]-r,o=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*s),this._beta*e[a]+(1-this._beta)*(n+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Df=(function t(e){function i(r){return e===1?new Nr(r):new Ga(r,e)}return i.beta=function(r){return t(+r)},i})(.85);function yr(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function to(t,e){this._context=t,this._k=(1-e)/6}to.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:yr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Nf=(function t(e){function i(r){return new to(r,e)}return i.tension=function(r){return t(+r)},i})(0);function eo(t,e){this._context=t,this._k=(1-e)/6}eo.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:yr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Rf=(function t(e){function i(r){return new eo(r,e)}return i.tension=function(r){return t(+r)},i})(0);function io(t,e){this._context=t,this._k=(1-e)/6}io.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Pf=(function t(e){function i(r){return new io(r,e)}return i.tension=function(r){return t(+r)},i})(0);function ro(t,e,i){var r=t._x1,n=t._y1,s=t._x2,o=t._y2;if(t._l01_a>ps){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>ps){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-e*t._l12_2a)/h,o=(o*c+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(r,n,s,o,t._x2,t._y2)}function Va(t,e){this._context=t,this._alpha=e}Va.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ro(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const qf=(function t(e){function i(r){return e?new Va(r,e):new to(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function Ka(t,e){this._context=t,this._alpha=e}Ka.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ro(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const zf=(function t(e){function i(r){return e?new Ka(r,e):new eo(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function Za(t,e){this._context=t,this._alpha=e}Za.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ro(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Wf=(function t(e){function i(r){return e?new Za(r,e):new io(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function Ja(t){this._context=t}Ja.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Yf(t){return new Ja(t)}function ms(t){return t<0?-1:1}function ys(t,e,i){var r=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(r||n<0&&-0),o=(i-t._y1)/(n||r<0&&-0),a=(s*n+o*r)/(r+n);return(ms(s)+ms(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function _s(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function ln(t,e,i){var r=t._x0,n=t._y0,s=t._x1,o=t._y1,a=(s-r)/3;t._context.bezierCurveTo(r+a,n+a*e,s-a,o-a*i,s,o)}function _r(t){this._context=t}_r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ln(this,this._t0,_s(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ln(this,_s(this,i=ys(this,t,e)),i);break;default:ln(this,this._t0,i=ys(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Qa(t){this._context=new tl(t)}(Qa.prototype=Object.create(_r.prototype)).point=function(t,e){_r.prototype.point.call(this,e,t)};function tl(t){this._context=t}tl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,s){this._context.bezierCurveTo(e,t,r,i,s,n)}};function Hf(t){return new _r(t)}function jf(t){return new Qa(t)}function el(t){this._context=t}el.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Cs(t),n=Cs(e),s=0,o=1;o<i;++s,++o)this._context.bezierCurveTo(r[0][s],n[0][s],r[1][s],n[1][s],t[o],e[o]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Cs(t){var e,i=t.length-1,r,n=new Array(i),s=new Array(i),o=new Array(i);for(n[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,s[i-1]=7,o[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/s[e-1],s[e]-=r,o[e]-=r*o[e-1];for(n[i-1]=o[i-1]/s[i-1],e=i-2;e>=0;--e)n[e]=(o[e]-n[e+1])/s[e];for(s[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)s[e]=2*t[e+1]-n[e+1];return[n,s]}function Uf(t){return new el(t)}function Rr(t,e){this._context=t,this._t=e}Rr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function Xf(t){return new Rr(t,.5)}function Gf(t){return new Rr(t,0)}function Vf(t){return new Rr(t,1)}function pi(t,e,i){this.k=t,this.x=e,this.y=i}pi.prototype={constructor:pi,scale:function(t){return t===1?this:new pi(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new pi(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};pi.prototype;const{entries:il,setPrototypeOf:xs,isFrozen:Kf,getPrototypeOf:Zf,getOwnPropertyDescriptor:Jf}=Object;let{freeze:pt,seal:wt,create:rl}=Object,{apply:Ln,construct:Fn}=typeof Reflect<"u"&&Reflect;pt||(pt=function(e){return e});wt||(wt=function(e){return e});Ln||(Ln=function(e,i,r){return e.apply(i,r)});Fn||(Fn=function(e,i){return new e(...i)});const Gi=bt(Array.prototype.forEach),bs=bt(Array.prototype.pop),oi=bt(Array.prototype.push),rr=bt(String.prototype.toLowerCase),cn=bt(String.prototype.toString),Ts=bt(String.prototype.match),si=bt(String.prototype.replace),Qf=bt(String.prototype.indexOf),tp=bt(String.prototype.trim),Ot=bt(Object.prototype.hasOwnProperty),ut=bt(RegExp.prototype.test),ai=ep(TypeError);function bt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return Ln(t,e,r)}}function ep(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Fn(t,i)}}function U(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rr;xs&&xs(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const s=i(n);s!==n&&(Kf(e)||(e[r]=s),n=s)}t[n]=!0}return t}function ip(t){for(let e=0;e<t.length;e++)Ot(t,e)||(t[e]=null);return t}function ge(t){const e=rl(null);for(const[i,r]of il(t))Ot(t,i)&&(Array.isArray(r)?e[i]=ip(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=ge(r):e[i]=r);return e}function li(t,e){for(;t!==null;){const r=Jf(t,e);if(r){if(r.get)return bt(r.get);if(typeof r.value=="function")return bt(r.value)}t=Zf(t)}function i(){return null}return i}const vs=pt(["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","section","select","shadow","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"]),hn=pt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),un=pt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rp=pt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dn=pt(["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"]),np=pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ss=pt(["#text"]),ks=pt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),fn=pt(["accent-height","accumulate","additive","alignment-baseline","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","dur","edgemode","elevation","end","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","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","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","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","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","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"]),ws=pt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),Vi=pt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),op=wt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),sp=wt(/<%[\w\W]*|[\w\W]*%>/gm),ap=wt(/\${[\w\W]*}/gm),lp=wt(/^data-[\-\w.\u00B7-\uFFFF]/),cp=wt(/^aria-[\-\w]+$/),nl=wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hp=wt(/^(?:\w+script|data):/i),up=wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ol=wt(/^html$/i),dp=wt(/^[a-z][.\w]*(-[.\w]+)+$/i);var As=Object.freeze({__proto__:null,MUSTACHE_EXPR:op,ERB_EXPR:sp,TMPLIT_EXPR:ap,DATA_ATTR:lp,ARIA_ATTR:cp,IS_ALLOWED_URI:nl,IS_SCRIPT_OR_DATA:hp,ATTR_WHITESPACE:up,DOCTYPE_NAME:ol,CUSTOM_ELEMENT:dp});const ci={element:1,text:3,progressingInstruction:7,comment:8,document:9},fp=function(){return typeof window>"u"?null:window},pp=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function sl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fp();const e=F=>sl(F);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==ci.document)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:c,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:u,trustedTypes:f}=t,m=l.prototype,y=li(m,"cloneNode"),T=li(m,"remove"),E=li(m,"nextSibling"),C=li(m,"childNodes"),x=li(m,"parentNode");if(typeof o=="function"){const F=i.createElement("template");F.content&&F.content.ownerDocument&&(i=F.content.ownerDocument)}let B,w="";const{implementation:Y,createNodeIterator:N,createDocumentFragment:rt,getElementsByTagName:V}=i,{importNode:H}=r;let P={};e.isSupported=typeof il=="function"&&typeof x=="function"&&Y&&Y.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Et,ERB_EXPR:re,TMPLIT_EXPR:R,DATA_ATTR:k,ARIA_ATTR:b,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:S,CUSTOM_ELEMENT:M}=As;let{IS_ALLOWED_URI:W}=As,z=null;const Z=U({},[...vs,...hn,...un,...dn,...Ss]);let j=null;const et=U({},[...ks,...fn,...ws,...Vi]);let X=Object.seal(rl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,Bt=null,ne=!0,Lt=!0,nt=!1,Ft=!0,vt=!1,oe=!0,pe=!1,Jr=!1,Qr=!1,Ee=!1,Pi=!1,qi=!1,Eo=!0,Bo=!1;const qc="user-content-";let tn=!0,ti=!1,Be={},Le=null;const Lo=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fo=null;const Oo=U({},["audio","video","img","source","image","track"]);let en=null;const Io=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),zi="http://www.w3.org/1998/Math/MathML",Wi="http://www.w3.org/2000/svg",Xt="http://www.w3.org/1999/xhtml";let Fe=Xt,rn=!1,nn=null;const zc=U({},[zi,Wi,Xt],cn);let ei=null;const Wc=["application/xhtml+xml","text/html"],Yc="text/html";let it=null,Oe=null;const Hc=i.createElement("form"),Mo=function(p){return p instanceof RegExp||p instanceof Function},on=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Oe&&Oe===p)){if((!p||typeof p!="object")&&(p={}),p=ge(p),ei=Wc.indexOf(p.PARSER_MEDIA_TYPE)===-1?Yc:p.PARSER_MEDIA_TYPE,it=ei==="application/xhtml+xml"?cn:rr,z=Ot(p,"ALLOWED_TAGS")?U({},p.ALLOWED_TAGS,it):Z,j=Ot(p,"ALLOWED_ATTR")?U({},p.ALLOWED_ATTR,it):et,nn=Ot(p,"ALLOWED_NAMESPACES")?U({},p.ALLOWED_NAMESPACES,cn):zc,en=Ot(p,"ADD_URI_SAFE_ATTR")?U(ge(Io),p.ADD_URI_SAFE_ATTR,it):Io,Fo=Ot(p,"ADD_DATA_URI_TAGS")?U(ge(Oo),p.ADD_DATA_URI_TAGS,it):Oo,Le=Ot(p,"FORBID_CONTENTS")?U({},p.FORBID_CONTENTS,it):Lo,Tt=Ot(p,"FORBID_TAGS")?U({},p.FORBID_TAGS,it):{},Bt=Ot(p,"FORBID_ATTR")?U({},p.FORBID_ATTR,it):{},Be=Ot(p,"USE_PROFILES")?p.USE_PROFILES:!1,ne=p.ALLOW_ARIA_ATTR!==!1,Lt=p.ALLOW_DATA_ATTR!==!1,nt=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,vt=p.SAFE_FOR_TEMPLATES||!1,oe=p.SAFE_FOR_XML!==!1,pe=p.WHOLE_DOCUMENT||!1,Ee=p.RETURN_DOM||!1,Pi=p.RETURN_DOM_FRAGMENT||!1,qi=p.RETURN_TRUSTED_TYPE||!1,Qr=p.FORCE_BODY||!1,Eo=p.SANITIZE_DOM!==!1,Bo=p.SANITIZE_NAMED_PROPS||!1,tn=p.KEEP_CONTENT!==!1,ti=p.IN_PLACE||!1,W=p.ALLOWED_URI_REGEXP||nl,Fe=p.NAMESPACE||Xt,X=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Mo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Mo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),vt&&(Lt=!1),Pi&&(Ee=!0),Be&&(z=U({},Ss),j=[],Be.html===!0&&(U(z,vs),U(j,ks)),Be.svg===!0&&(U(z,hn),U(j,fn),U(j,Vi)),Be.svgFilters===!0&&(U(z,un),U(j,fn),U(j,Vi)),Be.mathMl===!0&&(U(z,dn),U(j,ws),U(j,Vi))),p.ADD_TAGS&&(z===Z&&(z=ge(z)),U(z,p.ADD_TAGS,it)),p.ADD_ATTR&&(j===et&&(j=ge(j)),U(j,p.ADD_ATTR,it)),p.ADD_URI_SAFE_ATTR&&U(en,p.ADD_URI_SAFE_ATTR,it),p.FORBID_CONTENTS&&(Le===Lo&&(Le=ge(Le)),U(Le,p.FORBID_CONTENTS,it)),tn&&(z["#text"]=!0),pe&&U(z,["html","head","body"]),z.table&&(U(z,["tbody"]),delete Tt.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw ai('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ai('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=p.TRUSTED_TYPES_POLICY,w=B.createHTML("")}else B===void 0&&(B=pp(f,n)),B!==null&&typeof w=="string"&&(w=B.createHTML(""));pt&&pt(p),Oe=p}},$o=U({},["mi","mo","mn","ms","mtext"]),Do=U({},["foreignobject","annotation-xml"]),jc=U({},["title","style","font","a","script"]),No=U({},[...hn,...un,...rp]),Ro=U({},[...dn,...np]),Uc=function(p){let _=x(p);(!_||!_.tagName)&&(_={namespaceURI:Fe,tagName:"template"});const A=rr(p.tagName),G=rr(_.tagName);return nn[p.namespaceURI]?p.namespaceURI===Wi?_.namespaceURI===Xt?A==="svg":_.namespaceURI===zi?A==="svg"&&(G==="annotation-xml"||$o[G]):!!No[A]:p.namespaceURI===zi?_.namespaceURI===Xt?A==="math":_.namespaceURI===Wi?A==="math"&&Do[G]:!!Ro[A]:p.namespaceURI===Xt?_.namespaceURI===Wi&&!Do[G]||_.namespaceURI===zi&&!$o[G]?!1:!Ro[A]&&(jc[A]||!No[A]):!!(ei==="application/xhtml+xml"&&nn[p.namespaceURI]):!1},Dt=function(p){oi(e.removed,{element:p});try{x(p).removeChild(p)}catch{T(p)}},Yi=function(p,_){try{oi(e.removed,{attribute:_.getAttributeNode(p),from:_})}catch{oi(e.removed,{attribute:null,from:_})}if(_.removeAttribute(p),p==="is"&&!j[p])if(Ee||Pi)try{Dt(_)}catch{}else try{_.setAttribute(p,"")}catch{}},Po=function(p){let _=null,A=null;if(Qr)p="<remove></remove>"+p;else{const ot=Ts(p,/^[\r\n\t ]+/);A=ot&&ot[0]}ei==="application/xhtml+xml"&&Fe===Xt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const G=B?B.createHTML(p):p;if(Fe===Xt)try{_=new u().parseFromString(G,ei)}catch{}if(!_||!_.documentElement){_=Y.createDocument(Fe,"template",null);try{_.documentElement.innerHTML=rn?w:G}catch{}}const st=_.body||_.documentElement;return p&&A&&st.insertBefore(i.createTextNode(A),st.childNodes[0]||null),Fe===Xt?V.call(_,pe?"html":"body")[0]:pe?_.documentElement:st},qo=function(p){return N.call(p.ownerDocument||p,p,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},zo=function(p){return p instanceof d&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof h)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Wo=function(p){return typeof a=="function"&&p instanceof a},Gt=function(p,_,A){P[p]&&Gi(P[p],G=>{G.call(e,_,A,Oe)})},Yo=function(p){let _=null;if(Gt("beforeSanitizeElements",p,null),zo(p))return Dt(p),!0;const A=it(p.nodeName);if(Gt("uponSanitizeElement",p,{tagName:A,allowedTags:z}),p.hasChildNodes()&&!Wo(p.firstElementChild)&&ut(/<[/\w]/g,p.innerHTML)&&ut(/<[/\w]/g,p.textContent)||p.nodeType===ci.progressingInstruction||oe&&p.nodeType===ci.comment&&ut(/<[/\w]/g,p.data))return Dt(p),!0;if(!z[A]||Tt[A]){if(!Tt[A]&&jo(A)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,A)||X.tagNameCheck instanceof Function&&X.tagNameCheck(A)))return!1;if(tn&&!Le[A]){const G=x(p)||p.parentNode,st=C(p)||p.childNodes;if(st&&G){const ot=st.length;for(let gt=ot-1;gt>=0;--gt){const Nt=y(st[gt],!0);Nt.__removalCount=(p.__removalCount||0)+1,G.insertBefore(Nt,E(p))}}}return Dt(p),!0}return p instanceof l&&!Uc(p)||(A==="noscript"||A==="noembed"||A==="noframes")&&ut(/<\/no(script|embed|frames)/i,p.innerHTML)?(Dt(p),!0):(vt&&p.nodeType===ci.text&&(_=p.textContent,Gi([Et,re,R],G=>{_=si(_,G," ")}),p.textContent!==_&&(oi(e.removed,{element:p.cloneNode()}),p.textContent=_)),Gt("afterSanitizeElements",p,null),!1)},Ho=function(p,_,A){if(Eo&&(_==="id"||_==="name")&&(A in i||A in Hc))return!1;if(!(Lt&&!Bt[_]&&ut(k,_))){if(!(ne&&ut(b,_))){if(!j[_]||Bt[_]){if(!(jo(p)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,p)||X.tagNameCheck instanceof Function&&X.tagNameCheck(p))&&(X.attributeNameCheck instanceof RegExp&&ut(X.attributeNameCheck,_)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(_))||_==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,A)||X.tagNameCheck instanceof Function&&X.tagNameCheck(A))))return!1}else if(!en[_]){if(!ut(W,si(A,S,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&p!=="script"&&Qf(A,"data:")===0&&Fo[p])){if(!(nt&&!ut(L,si(A,S,"")))){if(A)return!1}}}}}}return!0},jo=function(p){return p!=="annotation-xml"&&Ts(p,M)},Uo=function(p){Gt("beforeSanitizeAttributes",p,null);const{attributes:_}=p;if(!_)return;const A={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};let G=_.length;for(;G--;){const st=_[G],{name:ot,namespaceURI:gt,value:Nt}=st,ii=it(ot);let ht=ot==="value"?Nt:tp(Nt);if(A.attrName=ii,A.attrValue=ht,A.keepAttr=!0,A.forceKeepAttr=void 0,Gt("uponSanitizeAttribute",p,A),ht=A.attrValue,oe&&ut(/((--!?|])>)|<\/(style|title)/i,ht)){Yi(ot,p);continue}if(A.forceKeepAttr||(Yi(ot,p),!A.keepAttr))continue;if(!Ft&&ut(/\/>/i,ht)){Yi(ot,p);continue}vt&&Gi([Et,re,R],Go=>{ht=si(ht,Go," ")});const Xo=it(p.nodeName);if(Ho(Xo,ii,ht)){if(Bo&&(ii==="id"||ii==="name")&&(Yi(ot,p),ht=qc+ht),B&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!gt)switch(f.getAttributeType(Xo,ii)){case"TrustedHTML":{ht=B.createHTML(ht);break}case"TrustedScriptURL":{ht=B.createScriptURL(ht);break}}try{gt?p.setAttributeNS(gt,ot,ht):p.setAttribute(ot,ht),zo(p)?Dt(p):bs(e.removed)}catch{}}}Gt("afterSanitizeAttributes",p,null)},Xc=function F(p){let _=null;const A=qo(p);for(Gt("beforeSanitizeShadowDOM",p,null);_=A.nextNode();)Gt("uponSanitizeShadowNode",_,null),!Yo(_)&&(_.content instanceof s&&F(_.content),Uo(_));Gt("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(F){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,A=null,G=null,st=null;if(rn=!F,rn&&(F="<!-->"),typeof F!="string"&&!Wo(F))if(typeof F.toString=="function"){if(F=F.toString(),typeof F!="string")throw ai("dirty is not a string, aborting")}else throw ai("toString is not a function");if(!e.isSupported)return F;if(Jr||on(p),e.removed=[],typeof F=="string"&&(ti=!1),ti){if(F.nodeName){const Nt=it(F.nodeName);if(!z[Nt]||Tt[Nt])throw ai("root node is forbidden and cannot be sanitized in-place")}}else if(F instanceof a)_=Po("<!---->"),A=_.ownerDocument.importNode(F,!0),A.nodeType===ci.element&&A.nodeName==="BODY"||A.nodeName==="HTML"?_=A:_.appendChild(A);else{if(!Ee&&!vt&&!pe&&F.indexOf("<")===-1)return B&&qi?B.createHTML(F):F;if(_=Po(F),!_)return Ee?null:qi?w:""}_&&Qr&&Dt(_.firstChild);const ot=qo(ti?F:_);for(;G=ot.nextNode();)Yo(G)||(G.content instanceof s&&Xc(G.content),Uo(G));if(ti)return F;if(Ee){if(Pi)for(st=rt.call(_.ownerDocument);_.firstChild;)st.appendChild(_.firstChild);else st=_;return(j.shadowroot||j.shadowrootmode)&&(st=H.call(r,st,!0)),st}let gt=pe?_.outerHTML:_.innerHTML;return pe&&z["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&ut(ol,_.ownerDocument.doctype.name)&&(gt="<!DOCTYPE "+_.ownerDocument.doctype.name+`>
|
|
14
|
+
`+gt),vt&&Gi([Et,re,R],Nt=>{gt=si(gt,Nt," ")}),B&&qi?B.createHTML(gt):gt},e.setConfig=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};on(F),Jr=!0},e.clearConfig=function(){Oe=null,Jr=!1},e.isValidAttribute=function(F,p,_){Oe||on({});const A=it(F),G=it(p);return Ho(A,G,_)},e.addHook=function(F,p){typeof p=="function"&&(P[F]=P[F]||[],oi(P[F],p))},e.removeHook=function(F){if(P[F])return bs(P[F])},e.removeHooks=function(F){P[F]&&(P[F]=[])},e.removeAllHooks=function(){P={}},e}var Ye=sl();const nr={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,s=2*i-n;switch(r){case"r":return nr.hue2rgb(s,n,t+1/3)*255;case"g":return nr.hue2rgb(s,n,t)*255;case"b":return nr.hue2rgb(s,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),s=Math.min(t,e,i),o=(n+s)/2;if(r==="l")return o*100;if(n===s)return 0;const a=n-s,l=o>.5?a/(2-n-s):a/(n+s);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},gp={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},mp={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},q={channel:nr,lang:gp,unit:mp},ae={};for(let t=0;t<=255;t++)ae[t]=q.unit.dec2hex(t);const at={ALL:0,RGB:1,HSL:2};class yp{constructor(){this.type=at.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=at.ALL}is(e){return this.type===e}}class _p{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new yp}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=at.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(at.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(at.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(at.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(at.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(at.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(at.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Pr=new _p({r:0,g:0,b:0,a:0},"transparent"),Re={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Re.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,s=n%4===0,o=n>4,a=o?1:17,l=o?8:4,c=s?0:-1,h=o?255:15;return Pr.set({r:(r>>l*(c+3)&h)*a,g:(r>>l*(c+2)&h)*a,b:(r>>l*(c+1)&h)*a,a:s?(r&h)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${ae[Math.round(e)]}${ae[Math.round(i)]}${ae[Math.round(r)]}${ae[Math.round(n*255)]}`:`#${ae[Math.round(e)]}${ae[Math.round(i)]}${ae[Math.round(r)]}`}},Ce={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Ce.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return q.channel.clamp.h(parseFloat(i)*.9);case"rad":return q.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(i)*360)}}return q.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Ce.re);if(!i)return;const[,r,n,s,o,a]=i;return Pr.set({h:Ce._hue2deg(r),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(s)),a:o?q.channel.clamp.a(a?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%)`}},yi={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=yi.colors[t];if(e)return Re.parse(e)},stringify:t=>{const e=Re.stringify(t);for(const i in yi.colors)if(yi.colors[i]===e)return i}},gi={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(gi.re);if(!i)return;const[,r,n,s,o,a,l,c,h]=i;return Pr.set({r:q.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:q.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:q.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?q.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)})`}},Wt={format:{keyword:yi,hex:Re,rgb:gi,rgba:gi,hsl:Ce,hsla:Ce},parse:t=>{if(typeof t!="string")return t;const e=Re.parse(t)||gi.parse(t)||Ce.parse(t)||yi.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(at.HSL)||t.data.r===void 0?Ce.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?gi.stringify(t):Re.stringify(t)},al=(t,e)=>{const i=Wt.parse(t);for(const r in e)i[r]=q.channel.clamp[r](e[r]);return Wt.stringify(i)},_i=(t,e,i=0,r=1)=>{if(typeof t!="number")return al(t,{a:e});const n=Pr.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(i),a:q.channel.clamp.a(r)});return Wt.stringify(n)},Cp=t=>{const{r:e,g:i,b:r}=Wt.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(i)+.0722*q.channel.toLinear(r);return q.lang.round(n)},xp=t=>Cp(t)>=.5,$i=t=>!xp(t),ll=(t,e,i)=>{const r=Wt.parse(t),n=r[e],s=q.channel.clamp[e](n+i);return n!==s&&(r[e]=s),Wt.stringify(r)},O=(t,e)=>ll(t,"l",e),D=(t,e)=>ll(t,"l",-e),g=(t,e)=>{const i=Wt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return al(t,r)},bp=(t,e,i=50)=>{const{r,g:n,b:s,a:o}=Wt.parse(t),{r:a,g:l,b:c,a:h}=Wt.parse(e),d=i/100,u=d*2-1,f=o-h,y=((u*f===-1?u:(u+f)/(1+u*f))+1)/2,T=1-y,E=r*y+a*T,C=n*y+l*T,x=s*y+c*T,B=o*d+h*(1-d);return _i(E,C,x,B)},v=(t,e=100)=>{const i=Wt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,bp(i,t,e)};var cl=typeof global=="object"&&global&&global.Object===Object&&global,Tp=typeof self=="object"&&self&&self.Object===Object&&self,Ut=cl||Tp||Function("return this")(),Cr=Ut.Symbol,hl=Object.prototype,vp=hl.hasOwnProperty,Sp=hl.toString,hi=Cr?Cr.toStringTag:void 0;function kp(t){var e=vp.call(t,hi),i=t[hi];try{t[hi]=void 0;var r=!0}catch{}var n=Sp.call(t);return r&&(e?t[hi]=i:delete t[hi]),n}var wp=Object.prototype,Ap=wp.toString;function Ep(t){return Ap.call(t)}var Bp="[object Null]",Lp="[object Undefined]",Es=Cr?Cr.toStringTag:void 0;function Ke(t){return t==null?t===void 0?Lp:Bp:Es&&Es in Object(t)?kp(t):Ep(t)}function ke(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Fp="[object AsyncFunction]",Op="[object Function]",Ip="[object GeneratorFunction]",Mp="[object Proxy]";function no(t){if(!ke(t))return!1;var e=Ke(t);return e==Op||e==Ip||e==Fp||e==Mp}var pn=Ut["__core-js_shared__"],Bs=(function(){var t=/[^.]+$/.exec(pn&&pn.keys&&pn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function $p(t){return!!Bs&&Bs in t}var Dp=Function.prototype,Np=Dp.toString;function we(t){if(t!=null){try{return Np.call(t)}catch{}try{return t+""}catch{}}return""}var Rp=/[\\^$.*+?()[\]{}|]/g,Pp=/^\[object .+?Constructor\]$/,qp=Function.prototype,zp=Object.prototype,Wp=qp.toString,Yp=zp.hasOwnProperty,Hp=RegExp("^"+Wp.call(Yp).replace(Rp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jp(t){if(!ke(t)||$p(t))return!1;var e=no(t)?Hp:Pp;return e.test(we(t))}function Up(t,e){return t?.[e]}function Ae(t,e){var i=Up(t,e);return jp(i)?i:void 0}var Ai=Ae(Object,"create");function Xp(){this.__data__=Ai?Ai(null):{},this.size=0}function Gp(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Vp="__lodash_hash_undefined__",Kp=Object.prototype,Zp=Kp.hasOwnProperty;function Jp(t){var e=this.__data__;if(Ai){var i=e[t];return i===Vp?void 0:i}return Zp.call(e,t)?e[t]:void 0}var Qp=Object.prototype,tg=Qp.hasOwnProperty;function eg(t){var e=this.__data__;return Ai?e[t]!==void 0:tg.call(e,t)}var ig="__lodash_hash_undefined__";function rg(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Ai&&e===void 0?ig:e,this}function ve(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ve.prototype.clear=Xp;ve.prototype.delete=Gp;ve.prototype.get=Jp;ve.prototype.has=eg;ve.prototype.set=rg;function ng(){this.__data__=[],this.size=0}function qr(t,e){return t===e||t!==t&&e!==e}function zr(t,e){for(var i=t.length;i--;)if(qr(t[i][0],e))return i;return-1}var og=Array.prototype,sg=og.splice;function ag(t){var e=this.__data__,i=zr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():sg.call(e,i,1),--this.size,!0}function lg(t){var e=this.__data__,i=zr(e,t);return i<0?void 0:e[i][1]}function cg(t){return zr(this.__data__,t)>-1}function hg(t,e){var i=this.__data__,r=zr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function ie(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ie.prototype.clear=ng;ie.prototype.delete=ag;ie.prototype.get=lg;ie.prototype.has=cg;ie.prototype.set=hg;var Ei=Ae(Ut,"Map");function ug(){this.size=0,this.__data__={hash:new ve,map:new(Ei||ie),string:new ve}}function dg(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Wr(t,e){var i=t.__data__;return dg(e)?i[typeof e=="string"?"string":"hash"]:i.map}function fg(t){var e=Wr(this,t).delete(t);return this.size-=e?1:0,e}function pg(t){return Wr(this,t).get(t)}function gg(t){return Wr(this,t).has(t)}function mg(t,e){var i=Wr(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function fe(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}fe.prototype.clear=ug;fe.prototype.delete=fg;fe.prototype.get=pg;fe.prototype.has=gg;fe.prototype.set=mg;var yg="Expected a function";function Di(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(yg);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],s=i.cache;if(s.has(n))return s.get(n);var o=t.apply(this,r);return i.cache=s.set(n,o)||s,o};return i.cache=new(Di.Cache||fe),i}Di.Cache=fe;function _g(){this.__data__=new ie,this.size=0}function Cg(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function xg(t){return this.__data__.get(t)}function bg(t){return this.__data__.has(t)}var Tg=200;function vg(t,e){var i=this.__data__;if(i instanceof ie){var r=i.__data__;if(!Ei||r.length<Tg-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new fe(r)}return i.set(t,e),this.size=i.size,this}function Ze(t){var e=this.__data__=new ie(t);this.size=e.size}Ze.prototype.clear=_g;Ze.prototype.delete=Cg;Ze.prototype.get=xg;Ze.prototype.has=bg;Ze.prototype.set=vg;var xr=(function(){try{var t=Ae(Object,"defineProperty");return t({},"",{}),t}catch{}})();function oo(t,e,i){e=="__proto__"&&xr?xr(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function On(t,e,i){(i!==void 0&&!qr(t[e],i)||i===void 0&&!(e in t))&&oo(t,e,i)}function Sg(t){return function(e,i,r){for(var n=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++n];if(i(s[l],l,s)===!1)break}return e}}var kg=Sg(),ul=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ls=ul&&typeof module=="object"&&module&&!module.nodeType&&module,wg=Ls&&Ls.exports===ul,Fs=wg?Ut.Buffer:void 0,Os=Fs?Fs.allocUnsafe:void 0;function Ag(t,e){if(e)return t.slice();var i=t.length,r=Os?Os(i):new t.constructor(i);return t.copy(r),r}var Is=Ut.Uint8Array;function Eg(t){var e=new t.constructor(t.byteLength);return new Is(e).set(new Is(t)),e}function Bg(t,e){var i=e?Eg(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function Lg(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var Ms=Object.create,Fg=(function(){function t(){}return function(e){if(!ke(e))return{};if(Ms)return Ms(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}})();function dl(t,e){return function(i){return t(e(i))}}var fl=dl(Object.getPrototypeOf,Object),Og=Object.prototype;function Yr(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||Og;return t===i}function Ig(t){return typeof t.constructor=="function"&&!Yr(t)?Fg(fl(t)):{}}function Ni(t){return t!=null&&typeof t=="object"}var Mg="[object Arguments]";function $s(t){return Ni(t)&&Ke(t)==Mg}var pl=Object.prototype,$g=pl.hasOwnProperty,Dg=pl.propertyIsEnumerable,br=$s((function(){return arguments})())?$s:function(t){return Ni(t)&&$g.call(t,"callee")&&!Dg.call(t,"callee")},Tr=Array.isArray,Ng=9007199254740991;function gl(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ng}function Hr(t){return t!=null&&gl(t.length)&&!no(t)}function Rg(t){return Ni(t)&&Hr(t)}function Pg(){return!1}var ml=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ds=ml&&typeof module=="object"&&module&&!module.nodeType&&module,qg=Ds&&Ds.exports===ml,Ns=qg?Ut.Buffer:void 0,zg=Ns?Ns.isBuffer:void 0,so=zg||Pg,Wg="[object Object]",Yg=Function.prototype,Hg=Object.prototype,yl=Yg.toString,jg=Hg.hasOwnProperty,Ug=yl.call(Object);function Xg(t){if(!Ni(t)||Ke(t)!=Wg)return!1;var e=fl(t);if(e===null)return!0;var i=jg.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&yl.call(i)==Ug}var Gg="[object Arguments]",Vg="[object Array]",Kg="[object Boolean]",Zg="[object Date]",Jg="[object Error]",Qg="[object Function]",tm="[object Map]",em="[object Number]",im="[object Object]",rm="[object RegExp]",nm="[object Set]",om="[object String]",sm="[object WeakMap]",am="[object ArrayBuffer]",lm="[object DataView]",cm="[object Float32Array]",hm="[object Float64Array]",um="[object Int8Array]",dm="[object Int16Array]",fm="[object Int32Array]",pm="[object Uint8Array]",gm="[object Uint8ClampedArray]",mm="[object Uint16Array]",ym="[object Uint32Array]",K={};K[cm]=K[hm]=K[um]=K[dm]=K[fm]=K[pm]=K[gm]=K[mm]=K[ym]=!0;K[Gg]=K[Vg]=K[am]=K[Kg]=K[lm]=K[Zg]=K[Jg]=K[Qg]=K[tm]=K[em]=K[im]=K[rm]=K[nm]=K[om]=K[sm]=!1;function _m(t){return Ni(t)&&gl(t.length)&&!!K[Ke(t)]}function Cm(t){return function(e){return t(e)}}var _l=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ci=_l&&typeof module=="object"&&module&&!module.nodeType&&module,xm=Ci&&Ci.exports===_l,gn=xm&&cl.process,Rs=(function(){try{var t=Ci&&Ci.require&&Ci.require("util").types;return t||gn&&gn.binding&&gn.binding("util")}catch{}})(),Ps=Rs&&Rs.isTypedArray,ao=Ps?Cm(Ps):_m;function In(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var bm=Object.prototype,Tm=bm.hasOwnProperty;function vm(t,e,i){var r=t[e];(!(Tm.call(t,e)&&qr(r,i))||i===void 0&&!(e in t))&&oo(t,e,i)}function Sm(t,e,i,r){var n=!i;i||(i={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),n?oo(i,a,l):vm(i,a,l)}return i}function km(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var wm=9007199254740991,Am=/^(?:0|[1-9]\d*)$/;function Cl(t,e){var i=typeof t;return e=e??wm,!!e&&(i=="number"||i!="symbol"&&Am.test(t))&&t>-1&&t%1==0&&t<e}var Em=Object.prototype,Bm=Em.hasOwnProperty;function Lm(t,e){var i=Tr(t),r=!i&&br(t),n=!i&&!r&&so(t),s=!i&&!r&&!n&&ao(t),o=i||r||n||s,a=o?km(t.length,String):[],l=a.length;for(var c in t)(e||Bm.call(t,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Cl(c,l)))&&a.push(c);return a}function Fm(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var Om=Object.prototype,Im=Om.hasOwnProperty;function Mm(t){if(!ke(t))return Fm(t);var e=Yr(t),i=[];for(var r in t)r=="constructor"&&(e||!Im.call(t,r))||i.push(r);return i}function xl(t){return Hr(t)?Lm(t,!0):Mm(t)}function $m(t){return Sm(t,xl(t))}function Dm(t,e,i,r,n,s,o){var a=In(t,i),l=In(e,i),c=o.get(l);if(c){On(t,i,c);return}var h=s?s(a,l,i+"",t,e,o):void 0,d=h===void 0;if(d){var u=Tr(l),f=!u&&so(l),m=!u&&!f&&ao(l);h=l,u||f||m?Tr(a)?h=a:Rg(a)?h=Lg(a):f?(d=!1,h=Ag(l,!0)):m?(d=!1,h=Bg(l,!0)):h=[]:Xg(l)||br(l)?(h=a,br(a)?h=$m(a):(!ke(a)||no(a))&&(h=Ig(l))):d=!1}d&&(o.set(l,h),n(h,l,r,s,o),o.delete(l)),On(t,i,h)}function bl(t,e,i,r,n){t!==e&&kg(e,function(s,o){if(n||(n=new Ze),ke(s))Dm(t,e,o,i,bl,r,n);else{var a=r?r(In(t,o),s,o+"",t,e,n):void 0;a===void 0&&(a=s),On(t,o,a)}},xl)}function Tl(t){return t}function Nm(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var qs=Math.max;function Rm(t,e,i){return e=qs(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,s=qs(r.length-e,0),o=Array(s);++n<s;)o[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(o),Nm(t,this,a)}}function Pm(t){return function(){return t}}var qm=xr?function(t,e){return xr(t,"toString",{configurable:!0,enumerable:!1,value:Pm(e),writable:!0})}:Tl,zm=800,Wm=16,Ym=Date.now;function Hm(t){var e=0,i=0;return function(){var r=Ym(),n=Wm-(r-i);if(i=r,n>0){if(++e>=zm)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var jm=Hm(qm);function Um(t,e){return jm(Rm(t,e,Tl),t+"")}function Xm(t,e,i){if(!ke(i))return!1;var r=typeof e;return(r=="number"?Hr(i)&&Cl(e,i.length):r=="string"&&e in i)?qr(i[e],t):!1}function Gm(t){return Um(function(e,i){var r=-1,n=i.length,s=n>1?i[n-1]:void 0,o=n>2?i[2]:void 0;for(s=t.length>3&&typeof s=="function"?(n--,s):void 0,o&&Xm(i[0],i[1],o)&&(s=n<3?void 0:s,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,s)}return e})}var Vm=Gm(function(t,e,i){bl(t,e,i)}),vl="comm",Sl="rule",kl="decl",Km="@import",Zm="@namespace",Jm="@keyframes",Qm="@layer",wl=Math.abs,lo=String.fromCharCode;function Al(t){return t.trim()}function or(t,e,i){return t.replace(e,i)}function t0(t,e,i){return t.indexOf(e,i)}function Pe(t,e){return t.charCodeAt(e)|0}function He(t,e,i){return t.slice(e,i)}function Pt(t){return t.length}function e0(t){return t.length}function Ki(t,e){return e.push(t),t}var jr=1,je=1,El=0,At=0,Q=0,Je="";function co(t,e,i,r,n,s,o,a){return{value:t,root:e,parent:i,type:r,props:n,children:s,line:jr,column:je,length:o,return:"",siblings:a}}function i0(){return Q}function r0(){return Q=At>0?Pe(Je,--At):0,je--,Q===10&&(je=1,jr--),Q}function Mt(){return Q=At<El?Pe(Je,At++):0,je++,Q===10&&(je=1,jr++),Q}function ce(){return Pe(Je,At)}function sr(){return At}function Ur(t,e){return He(Je,t,e)}function Bi(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function n0(t){return jr=je=1,El=Pt(Je=t),At=0,[]}function o0(t){return Je="",t}function mn(t){return Al(Ur(At-1,Mn(t===91?t+2:t===40?t+1:t)))}function s0(t){for(;(Q=ce())&&Q<33;)Mt();return Bi(t)>2||Bi(Q)>3?"":" "}function a0(t,e){for(;--e&&Mt()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return Ur(t,sr()+(e<6&&ce()==32&&Mt()==32))}function Mn(t){for(;Mt();)switch(Q){case t:return At;case 34:case 39:t!==34&&t!==39&&Mn(Q);break;case 40:t===41&&Mn(t);break;case 92:Mt();break}return At}function l0(t,e){for(;Mt()&&t+Q!==57;)if(t+Q===84&&ce()===47)break;return"/*"+Ur(e,At-1)+"*"+lo(t===47?t:Mt())}function c0(t){for(;!Bi(ce());)Mt();return Ur(t,At)}function h0(t){return o0(ar("",null,null,null,[""],t=n0(t),0,[0],t))}function ar(t,e,i,r,n,s,o,a,l){for(var c=0,h=0,d=o,u=0,f=0,m=0,y=1,T=1,E=1,C=0,x="",B=n,w=s,Y=r,N=x;T;)switch(m=C,C=Mt()){case 40:if(m!=108&&Pe(N,d-1)==58){t0(N+=or(mn(C),"&","&\f"),"&\f",wl(c?a[c-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:N+=mn(C);break;case 9:case 10:case 13:case 32:N+=s0(m);break;case 92:N+=a0(sr()-1,7);continue;case 47:switch(ce()){case 42:case 47:Ki(u0(l0(Mt(),sr()),e,i,l),l),(Bi(m||1)==5||Bi(ce()||1)==5)&&Pt(N)&&He(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*y:a[c++]=Pt(N)*E;case 125*y:case 59:case 0:switch(C){case 0:case 125:T=0;case 59+h:E==-1&&(N=or(N,/\f/g,"")),f>0&&(Pt(N)-d||y===0&&m===47)&&Ki(f>32?Ws(N+";",r,i,d-1,l):Ws(or(N," ","")+";",r,i,d-2,l),l);break;case 59:N+=";";default:if(Ki(Y=zs(N,e,i,c,h,n,a,x,B=[],w=[],d,s),s),C===123)if(h===0)ar(N,e,Y,Y,B,s,d,a,w);else{switch(u){case 99:if(Pe(N,3)===110)break;case 108:if(Pe(N,2)===97)break;default:h=0;case 100:case 109:case 115:}h?ar(t,Y,Y,r&&Ki(zs(t,Y,Y,0,0,n,a,x,n,B=[],d,w),w),n,w,d,a,r?B:w):ar(N,Y,Y,Y,[""],w,0,a,w)}}c=h=f=0,y=E=1,x=N="",d=o;break;case 58:d=1+Pt(N),f=m;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&r0()==125)continue}switch(N+=lo(C),C*y){case 38:E=h>0?1:(N+="\f",-1);break;case 44:a[c++]=(Pt(N)-1)*E,E=1;break;case 64:ce()===45&&(N+=mn(Mt())),u=ce(),h=d=Pt(x=N+=c0(sr())),C++;break;case 45:m===45&&Pt(N)==2&&(y=0)}}return s}function zs(t,e,i,r,n,s,o,a,l,c,h,d){for(var u=n-1,f=n===0?s:[""],m=e0(f),y=0,T=0,E=0;y<r;++y)for(var C=0,x=He(t,u+1,u=wl(T=o[y])),B=t;C<m;++C)(B=Al(T>0?f[C]+" "+x:or(x,/&\f/g,f[C])))&&(l[E++]=B);return co(t,e,i,n===0?Sl:a,l,c,h,d)}function u0(t,e,i,r){return co(t,e,i,vl,lo(i0()),He(t,2,-2),0,r)}function Ws(t,e,i,r,n){return co(t,e,i,kl,He(t,0,r),He(t,r+1,-1),r,n)}function $n(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function d0(t,e,i,r){switch(t.type){case Qm:if(t.children.length)break;case Km:case Zm:case kl:return t.return=t.return||t.value;case vl:return"";case Jm:return t.return=t.value+"{"+$n(t.children,r)+"}";case Sl:if(!Pt(t.value=t.props.join(",")))return""}return Pt(i=$n(t.children,r))?t.return=t.value+"{"+i+"}":""}var f0=dl(Object.keys,Object),p0=Object.prototype,g0=p0.hasOwnProperty;function m0(t){if(!Yr(t))return f0(t);var e=[];for(var i in Object(t))g0.call(t,i)&&i!="constructor"&&e.push(i);return e}var Dn=Ae(Ut,"DataView"),Nn=Ae(Ut,"Promise"),Rn=Ae(Ut,"Set"),Pn=Ae(Ut,"WeakMap"),Ys="[object Map]",y0="[object Object]",Hs="[object Promise]",js="[object Set]",Us="[object WeakMap]",Xs="[object DataView]",_0=we(Dn),C0=we(Ei),x0=we(Nn),b0=we(Rn),T0=we(Pn),me=Ke;(Dn&&me(new Dn(new ArrayBuffer(1)))!=Xs||Ei&&me(new Ei)!=Ys||Nn&&me(Nn.resolve())!=Hs||Rn&&me(new Rn)!=js||Pn&&me(new Pn)!=Us)&&(me=function(t){var e=Ke(t),i=e==y0?t.constructor:void 0,r=i?we(i):"";if(r)switch(r){case _0:return Xs;case C0:return Ys;case x0:return Hs;case b0:return js;case T0:return Us}return e});var v0="[object Map]",S0="[object Set]",k0=Object.prototype,w0=k0.hasOwnProperty;function yn(t){if(t==null)return!0;if(Hr(t)&&(Tr(t)||typeof t=="string"||typeof t.splice=="function"||so(t)||ao(t)||br(t)))return!t.length;var e=me(t);if(e==v0||e==S0)return!t.size;if(Yr(t))return!m0(t).length;for(var i in t)if(w0.call(t,i))return!1;return!0}const Kt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},$={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},ho=function(t="fatal"){let e=Kt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Kt&&(e=Kt[t])):typeof t=="number"&&(e=t),$.trace=()=>{},$.debug=()=>{},$.info=()=>{},$.warn=()=>{},$.error=()=>{},$.fatal=()=>{},e<=Kt.fatal&&($.fatal=console.error?console.error.bind(console,St("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",St("FATAL"))),e<=Kt.error&&($.error=console.error?console.error.bind(console,St("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",St("ERROR"))),e<=Kt.warn&&($.warn=console.warn?console.warn.bind(console,St("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",St("WARN"))),e<=Kt.info&&($.info=console.info?console.info.bind(console,St("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",St("INFO"))),e<=Kt.debug&&($.debug=console.debug?console.debug.bind(console,St("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",St("DEBUG"))),e<=Kt.trace&&($.trace=console.debug?console.debug.bind(console,St("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",St("TRACE")))},St=t=>`%c${ph().format("ss.SSS")} : ${t} : `,Ri=/<br\s*\/?>/gi,A0=t=>t?Ll(t).replace(/\\n/g,"#br#").split("#br#"):[""],E0=(()=>{let t=!1;return()=>{t||(B0(),t=!0)}})();function B0(){const t="data-temp-href-target";Ye.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Ye.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Bl=t=>(E0(),Ye.sanitize(t)),Gs=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Bl(t):r!=="loose"&&(t=Ll(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=I0(t))}return t},Li=(t,e)=>t&&(e.dompurifyConfig?t=Ye.sanitize(Gs(t,e),e.dompurifyConfig).toString():t=Ye.sanitize(Gs(t,e),{FORBID_TAGS:["style"]}).toString(),t),L0=(t,e)=>typeof t=="string"?Li(t,e):t.flat().map(i=>Li(i,e)),F0=t=>Ri.test(t),O0=t=>t.split(Ri),I0=t=>t.replace(/#br#/g,"<br/>"),Ll=t=>t.replace(Ri,"#br#"),M0=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},Fl=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),$0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},D0=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},K1=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const s=e[r-1],o=e[r+1];N0(s,o)&&(n=s+","+o,r++,i.pop())}i.push(R0(n))}return i.join("")},qn=(t,e)=>Math.max(0,t.split(e).length-1),N0=(t,e)=>{const i=qn(t,"~"),r=qn(e,"~");return i===1&&r===1},R0=t=>{const e=qn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),s=r.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)r[n]="<",r[s]=">",n=r.indexOf("~"),s=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},Vs=()=>window.MathMLElement!==void 0,zn=/\$\$(.*)\$\$/g,Ks=t=>{var e;return(((e=t.match(zn))==null?void 0:e.length)??0)>0},Z1=async(t,e)=>{t=await P0(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r?.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},P0=async(t,e)=>{if(!Ks(t))return t;if(!Vs()&&!e.legacyMathML)return t.replace(zn,"MathML is unsupported in this environment.");const{default:i}=await J(async()=>{const{default:r}=await import("./index-BZnxyWWd.js").then(n=>n.t);return{default:r}},__vite__mapDeps([0,1]));return t.split(Ri).map(r=>Ks(r)?`
|
|
15
|
+
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
|
|
16
|
+
${r}
|
|
17
|
+
</div>
|
|
18
|
+
`:`<div>${r}</div>`).join("").replace(zn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:Vs()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},uo={getRows:A0,sanitizeText:Li,sanitizeTextOrArray:L0,hasBreaks:F0,splitBreaks:O0,lineBreakRegex:Ri,removeScript:Bl,getUrl:M0,evaluate:Fl,getMax:$0,getMin:D0},ft=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Xr="#ffffff",Gr="#f2f2f2";let q0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ft(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ft(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||v(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||v(this.tertiaryColor),this.lineColor=this.lineColor||v(this.background),this.arrowheadColor=this.arrowheadColor||v(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?D(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||"grey",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||D(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||v(this.lineColor),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||O(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.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||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||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||v(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||O(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||D(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const u=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||g(this.mainBkg,{h:180,s:-15,l:u*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||g(this.mainBkg,{h:180,s:-15,l:u*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$i(this.quadrant1Fill)?O(this.quadrant1Fill):D(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={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},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?D(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||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(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||Xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const z0=t=>{const e=new q0;return e.calculate(t),e};let W0=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=O(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.background),this.secondaryBorderColor=ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=O(v("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=_i(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.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.sectionBkgColor=D("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=D(this.sectionBkgColor,10),this.taskBorderColor=_i(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=_i(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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;this.secondBkg=O(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=O(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,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.altSectionBkgColor=this.background,this.taskBkgColor=O(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=this.darkTextColor,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=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(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||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScalePeer"+u]=this["cScalePeer"+u]||O(this["cScale"+u],10);for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-10+u*4)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-7+u*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$i(this.quadrant1Fill)?O(this.quadrant1Fill):D(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={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},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?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=O(this.secondaryColor,20),this.git1=O(this.pie2||this.secondaryColor,20),this.git2=O(this.pie3||this.tertiaryColor,20),this.git3=O(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=O(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=O(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=O(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=O(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||O(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Y0=t=>{const e=new W0;return e.calculate(t),e};let H0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,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="grey",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.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.sectionBkgColor=_i(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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,l:-(7+u*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||v(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||v(this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.labelTextColor}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=O(this.border1,23),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.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,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=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$i(this.quadrant1Fill)?O(this.quadrant1Fill):D(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={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},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||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||D(v(this.git0),25),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const j0=t=>{const e=new H0;return e.calculate(t),e};let U0=class{constructor(){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=O("#cde498",10),this.primaryBorderColor=ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.primaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.THEME_COLOR_LIMIT=12,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="grey",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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;this.actorBorder=D(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=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.primaryBorderColor,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=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$i(this.quadrant1Fill)?O(this.quadrant1Fill):D(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={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},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||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const X0=t=>{const e=new U0;return e.calculate(t),e};class G0{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=O(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ft(this.primaryColor,this.darkMode),this.secondaryBorderColor=ft(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ft(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(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.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="calculated",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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;this.secondBkg=O(this.contrast,55),this.border2=this.contrast,this.actorBorder=O(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,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";for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this.darkMode?this["cScalePeer"+u]=this["cScalePeer"+u]||O(this["cScale"+u],10):this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=O(this.contrast,30),this.sectionBkgColor2=O(this.contrast,30),this.taskBorderColor=D(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=O(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=D(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",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||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$i(this.quadrant1Fill)?O(this.quadrant1Fill):D(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={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},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=D(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(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.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Gr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const V0=t=>{const e=new G0;return e.calculate(t),e},te={base:{getThemeVariables:z0},dark:{getThemeVariables:Y0},default:{getThemeVariables:j0},forest:{getThemeVariables:X0},neutral:{getThemeVariables:V0}},Zt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Ol={...Zt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:te.default.getThemeVariables(),sequence:{...Zt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Zt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Zt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Zt.pie,useWidth:984},xyChart:{...Zt.xyChart,useWidth:void 0},requirement:{...Zt.requirement,useWidth:void 0},gitGraph:{...Zt.gitGraph,useMaxWidth:!1},sankey:{...Zt.sankey,useMaxWidth:!1}},Il=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Il(t[r],"")]:[...i,e+r],[]),K0=new Set(Il(Ol,"")),Z0=Ol,vr=t=>{if($.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>vr(e));return}for(const e of Object.keys(t)){if($.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!K0.has(e)||t[e]==null){$.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){$.debug("sanitizing object",e),vr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&($.debug("sanitizing css option",e),t[e]=J0(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i?.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}$.debug("After sanitization",t)}},J0=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},Ml=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,xi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Q0=/\s*%%.*\n/gm;class $l extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Ue={},Vr=function(t,e){t=t.replace(Ml,"").replace(xi,"").replace(Q0,`
|
|
19
|
+
`);for(const[i,{detector:r}]of Object.entries(Ue))if(r(t,e))return i;throw new $l(`No diagram type detected matching given configuration for text: ${t}`)},Dl=(...t)=>{for(const{id:e,detector:i,loader:r}of t)Nl(e,i,r)},Nl=(t,e,i)=>{Ue[t]?$.error(`Detector with key ${t} already exists`):Ue[t]={detector:e,loader:i},$.debug(`Detector with key ${t} added${i?" with loader":""}`)},ty=t=>Ue[t].loader,Wn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>Wn(t,s,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=Wn(t[s],e[s],{depth:i-1,clobber:r})):(r||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},lt=Wn,ey="",iy={curveBasis:If,curveBasisClosed:Mf,curveBasisOpen:$f,curveBumpX:Ff,curveBumpY:Of,curveBundle:Df,curveCardinalClosed:Rf,curveCardinalOpen:Pf,curveCardinal:Nf,curveCatmullRomClosed:zf,curveCatmullRomOpen:Wf,curveCatmullRom:qf,curveLinear:Lf,curveLinearClosed:Yf,curveMonotoneX:Hf,curveMonotoneY:jf,curveNatural:Uf,curveStep:Xf,curveStepAfter:Vf,curveStepBefore:Gf},ry=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ny=function(t,e){const i=Rl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const o=i.map(a=>a.args);vr(o),r=lt(r,[...o])}else r=i.args;if(!r)return;let n=Vr(t,e);const s="config";return r[s]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[s],delete r[s]),r},Rl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${ry.source})(?=[}][%]{2}).*
|
|
20
|
+
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),$.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=xi.exec(t))!==null;)if(r.index===xi.lastIndex&&xi.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const s=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:s,args:o})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return $.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},oy=function(t){return t.replace(xi,"")},sy=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function ay(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return iy[i]??e}function ly(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Vc.sanitizeUrl(i):i}const cy=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let s=window;for(let o=0;o<r;o++)if(s=s[i[o]],!s){$.error(`Function name: ${t} not found in window`);return}s[n](...e)};function Pl(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function hy(t){let e,i=0;t.forEach(n=>{i+=Pl(n,e),e=n});const r=i/2;return fo(t,r)}function uy(t){return t.length===1?t[0]:hy(t)}const Zs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},fo=(t,e)=>{let i,r=e;for(const n of t){if(i){const s=Pl(n,i);if(s<r)r-=s;else{const o=r/s;if(o<=0)return i;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:Zs((1-o)*i.x+o*n.x,5),y:Zs((1-o)*i.y+o*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},dy=(t,e,i)=>{$.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=fo(e,25),s=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(o)*s+(e[0].x+n.x)/2,a.y=-Math.cos(o)*s+(e[0].y+n.y)/2,a};function fy(t,e,i){const r=structuredClone(i);$.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,s=fo(r,n),o=10+t*.5,a=Math.atan2(r[0].y-s.y,r[0].x-s.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a+Math.PI)*o+(r[0].y+s.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a-Math.PI)*o+(r[0].y+s.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2-5):(l.x=Math.sin(a)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2),l}function py(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let Js=0;const gy=()=>(Js++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Js);function my(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const yy=t=>my(t.length),_y=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Cy=function(t,e){const i=e.text.replace(uo.lineBreakRegex," "),[,r]=go(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const s=n.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(i),n},xy=Di((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),uo.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let s="";return r.forEach((o,a)=>{const l=Sr(`${o} `,i),c=Sr(s,i);if(l>e){const{hyphenatedStrings:u,remainingWord:f}=by(o,e,"-",i);n.push(s,...u),s=f}else c+l>=e?(n.push(s),s=o):s=[s,o].filter(Boolean).join(" ");a+1===r.length&&n.push(s)}),n.filter(o=>o!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),by=Di((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],s=[];let o="";return n.forEach((a,l)=>{const c=`${o}${a}`;if(Sr(c,r)>=e){const d=l+1,u=n.length===d,f=`${c}${i}`;s.push(u?c:f),o=""}else o=c}),{hyphenatedStrings:s,remainingWord:o}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Ty(t,e){return po(t,e).height}function Sr(t,e){return po(t,e).width}const po=Di((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,s]=go(i),o=["sans-serif",r],a=t.split(uo.lineBreakRegex),l=[],c=kt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const u of o){let f=0;const m={width:0,height:0,lineHeight:0};for(const y of a){const T=_y();T.text=y||ey;const E=Cy(h,T).style("font-size",s).style("font-weight",n).style("font-family",u),C=(E._groups||E)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,C.width)),f=Math.round(C.height),m.height+=f,m.lineHeight=Math.round(Math.max(m.lineHeight,f))}l.push(m)}h.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class vy{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Zi;const Sy=function(t){return Zi=Zi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Zi.innerHTML=t,unescape(Zi.textContent)};function ql(t){return"str"in t}const ky=(t,e,i,r)=>{var n;if(!r)return;const s=(n=t.node())==null?void 0:n.getBBox();s&&t.append("text").text(r).attr("x",s.x+s.width/2).attr("y",-i).attr("class",e)},go=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function zl(t,e){return Vm({},t,e)}const bi={assignWithDepth:lt,wrapLabel:xy,calculateTextHeight:Ty,calculateTextWidth:Sr,calculateTextDimensions:po,cleanAndMerge:zl,detectInit:ny,detectDirective:Rl,isSubstringInArray:sy,interpolateToCurve:ay,calcLabelPosition:uy,calcCardinalityPosition:dy,calcTerminalLabelPosition:fy,formatUrl:ly,getStylesFromArray:py,generateId:gy,random:yy,runFunc:cy,entityDecode:Sy,insertTitle:ky,parseFontSize:go,InitIDGenerator:vy},wy=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},Ay=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Qs="10.9.3",Xe=Object.freeze(Z0);let mt=lt({},Xe),Wl,Ge=[],Ti=lt({},Xe);const Kr=(t,e)=>{let i=lt({},t),r={};for(const n of e)jl(n),r=lt(r,n);if(i=lt(i,r),r.theme&&r.theme in te){const n=lt({},Wl),s=lt(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in te&&(i.themeVariables=te[i.theme].getThemeVariables(s))}return Ti=i,Ul(Ti),Ti},Ey=t=>(mt=lt({},Xe),mt=lt(mt,t),t.theme&&te[t.theme]&&(mt.themeVariables=te[t.theme].getThemeVariables(t.themeVariables)),Kr(mt,Ge),mt),By=t=>{Wl=lt({},t)},Ly=t=>(mt=lt(mt,t),Kr(mt,Ge),mt),Yl=()=>lt({},mt),Hl=t=>(Ul(t),lt(Ti,t),Yt()),Yt=()=>lt({},Ti),jl=t=>{t&&(["secure",...mt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&($.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&jl(t[e])}))},Fy=t=>{vr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Ge.push(t),Kr(mt,Ge)},kr=(t=mt)=>{Ge=[],Kr(t,Ge)},Oy={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ta={},Iy=t=>{ta[t]||($.warn(Oy[t]),ta[t]=!0)},Ul=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Iy("LAZY_LOAD_DEPRECATED")},Xl="c4",My=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),$y=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./c4Diagram-3d4e48cf-aEsToGmZ.js");return{diagram:e}},__vite__mapDeps([2,3,4,0,1]));return{id:Xl,diagram:t}},Dy={id:Xl,detector:My,loader:$y},Ny=Dy,Gl="flowchart",Ry=(t,e)=>{var i,r;return((i=e?.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Py=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./flowDiagram-66a62f08-n0k1fu1f.js");return{diagram:e}},__vite__mapDeps([5,6,7,8,9,10,11,12,13,0,1,14,15,16,17,4]));return{id:Gl,diagram:t}},qy={id:Gl,detector:Ry,loader:Py},zy=qy,Vl="flowchart-v2",Wy=(t,e)=>{var i,r,n;return((i=e?.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e?.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},Yy=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./flowDiagram-v2-96b9c2cf-DPV3KQs-.js");return{diagram:e}},__vite__mapDeps([18,6,9,7,10,8,11,12,13,0,1,14,15,16,17,4]));return{id:Vl,diagram:t}},Hy={id:Vl,detector:Wy,loader:Yy},jy=Hy,Kl="er",Uy=t=>/^\s*erDiagram/.test(t),Xy=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./erDiagram-9861fffd-BFVcrfkn.js");return{diagram:e}},__vite__mapDeps([19,7,8,4,0,1,14,15,16]));return{id:Kl,diagram:t}},Gy={id:Kl,detector:Uy,loader:Xy},Vy=Gy,Zl="gitGraph",Ky=t=>/^\s*gitGraph/.test(t),Zy=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./gitGraphDiagram-72cf32ee-wLpa30-u.js");return{diagram:e}},__vite__mapDeps([20,4,0,1]));return{id:Zl,diagram:t}},Jy={id:Zl,detector:Ky,loader:Zy},Qy=Jy,Jl="gantt",t_=t=>/^\s*gantt/.test(t),e_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./ganttDiagram-c361ad54--PpHRpmK.js");return{diagram:e}},__vite__mapDeps([21,4,0,1,22,23]));return{id:Jl,diagram:t}},i_={id:Jl,detector:t_,loader:e_},r_=i_,Ql="info",n_=t=>/^\s*info/.test(t),o_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./infoDiagram-f8f76790-DnC7uKZu.js");return{diagram:e}},__vite__mapDeps([24,4,0,1]));return{id:Ql,diagram:t}},s_={id:Ql,detector:n_,loader:o_},tc="pie",a_=t=>/^\s*pie/.test(t),l_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./pieDiagram-8a3498a8-DToH0Umi.js");return{diagram:e}},__vite__mapDeps([25,4,0,1,26,16,27,23,15]));return{id:tc,diagram:t}},c_={id:tc,detector:a_,loader:l_},ec="quadrantChart",h_=t=>/^\s*quadrantChart/.test(t),u_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./quadrantDiagram-120e2f19-CIZifO3c.js");return{diagram:e}},__vite__mapDeps([28,4,0,1,22,23]));return{id:ec,diagram:t}},d_={id:ec,detector:h_,loader:u_},f_=d_,ic="xychart",p_=t=>/^\s*xychart-beta/.test(t),g_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./xychartDiagram-e933f94c-2LytheaB.js");return{diagram:e}},__vite__mapDeps([29,13,0,1,4,23,27,22,14,15,16]));return{id:ic,diagram:t}},m_={id:ic,detector:p_,loader:g_},y_=m_,rc="requirement",__=t=>/^\s*requirement(Diagram)?/.test(t),C_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./requirementDiagram-deff3bca-D-aHYgF7.js");return{diagram:e}},__vite__mapDeps([30,7,8,4,0,1,14,15,16]));return{id:rc,diagram:t}},x_={id:rc,detector:__,loader:C_},b_=x_,nc="sequence",T_=t=>/^\s*sequenceDiagram/.test(t),v_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./sequenceDiagram-704730f1-DwTvFI-O.js");return{diagram:e}},__vite__mapDeps([31,3,4,0,1]));return{id:nc,diagram:t}},S_={id:nc,detector:T_,loader:v_},k_=S_,oc="class",w_=(t,e)=>{var i;return((i=e?.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},A_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./classDiagram-70f12bd4-BTycZwZN.js");return{diagram:e}},__vite__mapDeps([32,33,7,8,4,0,1,14,15,16]));return{id:oc,diagram:t}},E_={id:oc,detector:w_,loader:A_},B_=E_,sc="classDiagram",L_=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e?.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},F_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./classDiagram-v2-f2320105-k_XaW7Mw.js");return{diagram:e}},__vite__mapDeps([34,33,7,10,8,11,12,13,0,1,14,15,16,4]));return{id:sc,diagram:t}},O_={id:sc,detector:L_,loader:F_},I_=O_,ac="state",M_=(t,e)=>{var i;return((i=e?.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},$_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./stateDiagram-587899a1-CJKF3UH6.js");return{diagram:e}},__vite__mapDeps([35,36,7,8,4,0,1,14,15,16]));return{id:ac,diagram:t}},D_={id:ac,detector:M_,loader:$_},N_=D_,lc="stateDiagram",R_=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e?.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},P_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./stateDiagram-v2-d93cdb3a-CuD2RI5c.js");return{diagram:e}},__vite__mapDeps([37,36,7,10,8,11,12,13,0,1,14,15,16,4]));return{id:lc,diagram:t}},q_={id:lc,detector:R_,loader:P_},z_=q_,cc="journey",W_=t=>/^\s*journey/.test(t),Y_=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./journeyDiagram-49397b02-B8902FwX.js");return{diagram:e}},__vite__mapDeps([38,3,4,0,1,26,16]));return{id:cc,diagram:t}},H_={id:cc,detector:W_,loader:Y_},j_=H_,U_=function(t,e){for(let i of e)t.attr(i[0],i[1])},X_=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},hc=function(t,e,i,r){const n=X_(e,i,r);U_(t,n)},G_=function(t,e,i,r){const n=e.node().getBBox(),s=n.width,o=n.height;$.info(`SVG bounds: ${s}x${o}`,n);let a=0,l=0;$.info(`Graph bounds: ${a}x${l}`,t),a=s+i*2,l=o+i*2,$.info(`Calculated bounds: ${a}x${l}`),hc(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},lr={},V_=(t,e,i)=>{let r="";return t in lr&&lr[t]?r=lr[t](i):$.warn(`No theme found for ${t}`),` & {
|
|
21
|
+
font-family: ${i.fontFamily};
|
|
22
|
+
font-size: ${i.fontSize};
|
|
23
|
+
fill: ${i.textColor}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Classes common for multiple diagrams */
|
|
27
|
+
|
|
28
|
+
& .error-icon {
|
|
29
|
+
fill: ${i.errorBkgColor};
|
|
30
|
+
}
|
|
31
|
+
& .error-text {
|
|
32
|
+
fill: ${i.errorTextColor};
|
|
33
|
+
stroke: ${i.errorTextColor};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
& .edge-thickness-normal {
|
|
37
|
+
stroke-width: 2px;
|
|
38
|
+
}
|
|
39
|
+
& .edge-thickness-thick {
|
|
40
|
+
stroke-width: 3.5px
|
|
41
|
+
}
|
|
42
|
+
& .edge-pattern-solid {
|
|
43
|
+
stroke-dasharray: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
& .edge-pattern-dashed{
|
|
47
|
+
stroke-dasharray: 3;
|
|
48
|
+
}
|
|
49
|
+
.edge-pattern-dotted {
|
|
50
|
+
stroke-dasharray: 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
& .marker {
|
|
54
|
+
fill: ${i.lineColor};
|
|
55
|
+
stroke: ${i.lineColor};
|
|
56
|
+
}
|
|
57
|
+
& .marker.cross {
|
|
58
|
+
stroke: ${i.lineColor};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
& svg {
|
|
62
|
+
font-family: ${i.fontFamily};
|
|
63
|
+
font-size: ${i.fontSize};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
${r}
|
|
67
|
+
|
|
68
|
+
${e}
|
|
69
|
+
`},K_=(t,e)=>{e!==void 0&&(lr[t]=e)},Z_=V_;let mo="",yo="",_o="";const Co=t=>Li(t,Yt()),J_=()=>{mo="",_o="",yo=""},Q_=t=>{mo=Co(t).replace(/^\s+/g,"")},tC=()=>mo,eC=t=>{_o=Co(t).replace(/\n\s+/g,`
|
|
70
|
+
`)},iC=()=>_o,rC=t=>{yo=Co(t)},nC=()=>yo,oC=Object.freeze(Object.defineProperty({__proto__:null,clear:J_,getAccDescription:iC,getAccTitle:tC,getDiagramTitle:nC,setAccDescription:eC,setAccTitle:Q_,setDiagramTitle:rC},Symbol.toStringTag,{value:"Module"})),sC=$,aC=ho,xo=Yt,iT=Hl,rT=Xe,lC=t=>Li(t,xo()),cC=G_,hC=()=>oC,wr={},Ar=(t,e,i)=>{var r;if(wr[t])throw new Error(`Diagram ${t} already registered.`);wr[t]=e,i&&Nl(t,i),K_(t,e.styles),(r=e.injectUtils)==null||r.call(e,sC,aC,xo,lC,cC,hC(),()=>{})},bo=t=>{if(t in wr)return wr[t];throw new uC(t)};class uC extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const dC=t=>{var e;const{securityLevel:i}=xo();let r=kt("body");if(i==="sandbox"){const o=((e=kt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=kt(o.body)}return r.select(`#${t}`)},fC=(t,e,i)=>{$.debug(`rendering svg for syntax error
|
|
71
|
+
`);const r=dC(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),hc(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},uc={draw:fC},pC=uc,gC={db:{},renderer:uc,parser:{parser:{yy:{}},parse:()=>{}}},mC=gC,dc="flowchart-elk",yC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e?.flowchart)==null?void 0:i.defaultRenderer)==="elk")},_C=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-4a651766-Ckm-u0tB.js");return{diagram:e}},__vite__mapDeps([39,6,12,13,0,1,14,15,16,4]));return{id:dc,diagram:t}},CC={id:dc,detector:yC,loader:_C},xC=CC,fc="timeline",bC=t=>/^\s*timeline/.test(t),TC=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./timeline-definition-85554ec2-B0w8BliX.js");return{diagram:e}},__vite__mapDeps([40,4,0,1,26,16]));return{id:fc,diagram:t}},vC={id:fc,detector:bC,loader:TC},SC=vC,pc="mindmap",kC=t=>/^\s*mindmap/.test(t),wC=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./mindmap-definition-fc14e90a-I2HuZmtK.js");return{diagram:e}},__vite__mapDeps([41,0,1,13,4]));return{id:pc,diagram:t}},AC={id:pc,detector:kC,loader:wC},EC=AC,gc="sankey",BC=t=>/^\s*sankey-beta/.test(t),LC=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./sankeyDiagram-04a897e0-Dfqu1Z59.js");return{diagram:e}},__vite__mapDeps([42,4,0,1,27,23,43]));return{id:gc,diagram:t}},FC={id:gc,detector:BC,loader:LC},OC=FC,mc="block",IC=t=>/^\s*block-beta/.test(t),MC=async()=>{const{diagram:t}=await J(async()=>{const{diagram:e}=await import("./blockDiagram-38ab4fdb-BpDJl5wM.js");return{diagram:e}},__vite__mapDeps([44,11,7,12,13,0,1,14,15,16,4,17,27,23,43]));return{id:mc,diagram:t}},$C={id:mc,detector:IC,loader:MC},DC=$C;let ea=!1;const To=()=>{ea||(ea=!0,Ar("error",mC,t=>t.toLowerCase().trim()==="error"),Ar("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Dl(Ny,I_,B_,Vy,r_,s_,c_,b_,k_,xC,jy,zy,EC,SC,Qy,z_,N_,j_,f_,OC,y_,DC))};class yc{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=wy(e),this.text+=`
|
|
72
|
+
`;const r=Yt();try{this.type=Vr(e,r)}catch(s){this.type="error",this.detectError=s}const n=bo(this.type);$.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,s;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const o=Yt();(r=this.init)==null||r.call(this,o),this.metadata.title&&((s=(n=this.db).setDiagramTitle)==null||s.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const NC=async(t,e={})=>{const i=Vr(t,Yt());try{bo(i)}catch{const n=ty(i);if(!n)throw new $l(`Diagram ${i} not found.`);const{id:s,diagram:o}=await n();Ar(s,o)}return new yc(t,e)};let ia=[];const RC=()=>{ia.forEach(t=>{t()}),ia=[]},PC="graphics-document document";function qC(t,e){t.attr("role",PC),e!==""&&t.attr("aria-roledescription",e)}function zC(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const WC=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function _c(t){return typeof t>"u"||t===null}function YC(t){return typeof t=="object"&&t!==null}function HC(t){return Array.isArray(t)?t:_c(t)?[]:[t]}function jC(t,e){var i,r,n,s;if(e)for(s=Object.keys(e),i=0,r=s.length;i<r;i+=1)n=s[i],t[n]=e[n];return t}function UC(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function XC(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var GC=_c,VC=YC,KC=HC,ZC=UC,JC=XC,QC=jC,dt={isNothing:GC,isObject:VC,toArray:KC,repeat:ZC,isNegativeZero:JC,extend:QC};function Cc(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
|
|
73
|
+
|
|
74
|
+
`+t.mark.snippet),r+" "+i):r}function Fi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Cc(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Fi.prototype=Object.create(Error.prototype);Fi.prototype.constructor=Fi;Fi.prototype.toString=function(e){return this.name+": "+Cc(this,e)};var Jt=Fi;function _n(t,e,i,r,n){var s="",o="",a=Math.floor(n/2)-1;return r-e>a&&(s=" ... ",e=r-a+s.length),i-r>a&&(o=" ...",i=r+a-o.length),{str:s+t.slice(e,i).replace(/\t/g,"→")+o,pos:r-e+s.length}}function Cn(t,e){return dt.repeat(" ",e-t.length)+t}function tx(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],s,o=-1;s=i.exec(t.buffer);)n.push(s.index),r.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var a="",l,c,h=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=_n(t.buffer,r[o-l],n[o-l],t.position-(r[o]-r[o-l]),d),a=dt.repeat(" ",e.indent)+Cn((t.line-l+1).toString(),h)+" | "+c.str+`
|
|
75
|
+
`+a;for(c=_n(t.buffer,r[o],n[o],t.position,d),a+=dt.repeat(" ",e.indent)+Cn((t.line+1).toString(),h)+" | "+c.str+`
|
|
76
|
+
`,a+=dt.repeat("-",e.indent+h+3+c.pos)+`^
|
|
77
|
+
`,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=_n(t.buffer,r[o+l],n[o+l],t.position-(r[o]-r[o+l]),d),a+=dt.repeat(" ",e.indent)+Cn((t.line+l+1).toString(),h)+" | "+c.str+`
|
|
78
|
+
`;return a.replace(/\n$/,"")}var ex=tx,ix=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],rx=["scalar","sequence","mapping"];function nx(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function ox(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(ix.indexOf(i)===-1)throw new Jt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=nx(e.styleAliases||null),rx.indexOf(this.kind)===-1)throw new Jt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ct=ox;function ra(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(s,o){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(n=o)}),i[n]=r}),i}function sx(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function Yn(t){return this.extend(t)}Yn.prototype.extend=function(e){var i=[],r=[];if(e instanceof ct)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Jt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(s){if(!(s instanceof ct))throw new Jt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Jt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Jt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof ct))throw new Jt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Yn.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=ra(n,"implicit"),n.compiledExplicit=ra(n,"explicit"),n.compiledTypeMap=sx(n.compiledImplicit,n.compiledExplicit),n};var ax=Yn,lx=new ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),cx=new ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),hx=new ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),ux=new ax({explicit:[lx,cx,hx]});function dx(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function fx(){return null}function px(t){return t===null}var gx=new ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:dx,construct:fx,predicate:px,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function mx(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function yx(t){return t==="true"||t==="True"||t==="TRUE"}function _x(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Cx=new ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:mx,construct:yx,predicate:_x,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function xx(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function bx(t){return 48<=t&&t<=55}function Tx(t){return 48<=t&&t<=57}function vx(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!xx(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!bx(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!Tx(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function Sx(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function kx(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!dt.isNegativeZero(t)}var wx=new ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:vx,construct:Sx,predicate:kx,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ax=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ex(t){return!(t===null||!Ax.test(t)||t[t.length-1]==="_")}function Bx(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var Lx=/^[-+]?[0-9]+e/;function Fx(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(dt.isNegativeZero(t))return"-0.0";return i=t.toString(10),Lx.test(i)?i.replace("e",".e"):i}function Ox(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||dt.isNegativeZero(t))}var Ix=new ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ex,construct:Bx,predicate:Ox,represent:Fx,defaultStyle:"lowercase"}),xc=ux.extend({implicit:[gx,Cx,wx,Ix]}),Mx=xc,bc=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Tc=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function $x(t){return t===null?!1:bc.exec(t)!==null||Tc.exec(t)!==null}function Dx(t){var e,i,r,n,s,o,a,l=0,c=null,h,d,u;if(e=bc.exec(t),e===null&&(e=Tc.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(h=+e[10],d=+(e[11]||0),c=(h*60+d)*6e4,e[9]==="-"&&(c=-c)),u=new Date(Date.UTC(i,r,n,s,o,a,l)),c&&u.setTime(u.getTime()-c),u}function Nx(t){return t.toISOString()}var Rx=new ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:$x,construct:Dx,instanceOf:Date,represent:Nx});function Px(t){return t==="<<"||t===null}var qx=new ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Px}),vo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
79
|
+
\r`;function zx(t){if(t===null)return!1;var e,i,r=0,n=t.length,s=vo;for(i=0;i<n;i++)if(e=s.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function Wx(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,s=vo,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):i===18?(a.push(o>>10&255),a.push(o>>2&255)):i===12&&a.push(o>>4&255),new Uint8Array(a)}function Yx(t){var e="",i=0,r,n,s=t.length,o=vo;for(r=0;r<s;r++)r%3===0&&r&&(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]),i=(i<<8)+t[r];return n=s%3,n===0?(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]):n===2?(e+=o[i>>10&63],e+=o[i>>4&63],e+=o[i<<2&63],e+=o[64]):n===1&&(e+=o[i>>2&63],e+=o[i<<4&63],e+=o[64],e+=o[64]),e}function Hx(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var jx=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:zx,construct:Wx,predicate:Hx,represent:Yx}),Ux=Object.prototype.hasOwnProperty,Xx=Object.prototype.toString;function Gx(t){if(t===null)return!0;var e=[],i,r,n,s,o,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],o=!1,Xx.call(n)!=="[object Object]")return!1;for(s in n)if(Ux.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function Vx(t){return t!==null?t:[]}var Kx=new ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Gx,construct:Vx}),Zx=Object.prototype.toString;function Jx(t){if(t===null)return!0;var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1){if(r=o[e],Zx.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;s[e]=[n[0],r[n[0]]]}return!0}function Qx(t){if(t===null)return[];var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1)r=o[e],n=Object.keys(r),s[e]=[n[0],r[n[0]]];return s}var tb=new ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Jx,construct:Qx}),eb=Object.prototype.hasOwnProperty;function ib(t){if(t===null)return!0;var e,i=t;for(e in i)if(eb.call(i,e)&&i[e]!==null)return!1;return!0}function rb(t){return t!==null?t:{}}var nb=new ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:ib,construct:rb}),ob=Mx.extend({implicit:[Rx,qx],explicit:[jx,Kx,tb,nb]}),de=Object.prototype.hasOwnProperty,Er=1,vc=2,Sc=3,Br=4,xn=1,sb=2,na=3,ab=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,lb=/[\x85\u2028\u2029]/,cb=/[,\[\]\{\}]/,kc=/^(?:!|!!|![a-z\-]+!)$/i,wc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function oa(t){return Object.prototype.toString.call(t)}function zt(t){return t===10||t===13}function be(t){return t===9||t===32}function _t(t){return t===9||t===32||t===10||t===13}function $e(t){return t===44||t===91||t===93||t===123||t===125}function hb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function ub(t){return t===120?2:t===117?4:t===85?8:0}function db(t){return 48<=t&&t<=57?t-48:-1}function sa(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
|
80
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"
":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function fb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Ac=new Array(256),Ec=new Array(256);for(var Ie=0;Ie<256;Ie++)Ac[Ie]=sa(Ie)?1:0,Ec[Ie]=sa(Ie);function pb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ob,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Bc(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=ex(i),new Jt(e,i)}function I(t,e){throw Bc(t,e)}function Lr(t,e){t.onWarning&&t.onWarning.call(null,Bc(t,e))}var aa={YAML:function(e,i,r){var n,s,o;e.version!==null&&I(e,"duplication of %YAML directive"),r.length!==1&&I(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&I(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&I(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Lr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,s;r.length!==2&&I(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],kc.test(n)||I(e,"ill-formed tag handle (first argument) of the TAG directive"),de.call(e.tagMap,n)&&I(e,'there is a previously declared suffix for "'+n+'" tag handle'),wc.test(s)||I(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{I(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function he(t,e,i,r){var n,s,o,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||I(t,"expected valid JSON character");else ab.test(a)&&I(t,"the stream contains non-printable characters");t.result+=a}}function la(t,e,i,r){var n,s,o,a;for(dt.isObject(i)||I(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),o=0,a=n.length;o<a;o+=1)s=n[o],de.call(e,s)||(e[s]=i[s],r[s]=!0)}function De(t,e,i,r,n,s,o,a,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&I(t,"nested arrays are not supported inside keys"),typeof n=="object"&&oa(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&oa(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,h=s.length;c<h;c+=1)la(t,e,s[c],i);else la(t,e,s,i);else!t.json&&!de.call(i,n)&&de.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,I(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete i[n];return e}function So(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):I(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function tt(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;be(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(zt(n))for(So(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&Lr(t,"deficient indentation"),r}function Zr(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||_t(i)))}function ko(t,e){e===1?t.result+=" ":e>1&&(t.result+=dt.repeat(`
|
|
81
|
+
`,e-1))}function gb(t,e,i){var r,n,s,o,a,l,c,h,d=t.kind,u=t.result,f;if(f=t.input.charCodeAt(t.position),_t(f)||$e(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(n=t.input.charCodeAt(t.position+1),_t(n)||i&&$e(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;f!==0;){if(f===58){if(n=t.input.charCodeAt(t.position+1),_t(n)||i&&$e(n))break}else if(f===35){if(r=t.input.charCodeAt(t.position-1),_t(r))break}else{if(t.position===t.lineStart&&Zr(t)||i&&$e(f))break;if(zt(f))if(l=t.line,c=t.lineStart,h=t.lineIndent,tt(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=h;break}}a&&(he(t,s,o,!1),ko(t,t.line-l),s=o=t.position,a=!1),be(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}return he(t,s,o,!1),t.result?!0:(t.kind=d,t.result=u,!1)}function mb(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(he(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else zt(i)?(he(t,r,n,!0),ko(t,tt(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Zr(t)?I(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);I(t,"unexpected end of the stream within a single quoted scalar")}function yb(t,e){var i,r,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return he(t,i,t.position,!0),t.position++,!0;if(a===92){if(he(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),zt(a))tt(t,!1,e);else if(a<256&&Ac[a])t.result+=Ec[a],t.position++;else if((o=ub(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=hb(a))>=0?s=(s<<4)+o:I(t,"expected hexadecimal character");t.result+=fb(s),t.position++}else I(t,"unknown escape sequence");i=r=t.position}else zt(a)?(he(t,i,r,!0),ko(t,tt(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Zr(t)?I(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}I(t,"unexpected end of the stream within a double quoted scalar")}function _b(t,e){var i=!0,r,n,s,o=t.tag,a,l=t.anchor,c,h,d,u,f,m=Object.create(null),y,T,E,C;if(C=t.input.charCodeAt(t.position),C===91)h=93,f=!1,a=[];else if(C===123)h=125,f=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if(tt(t,!0,e),C=t.input.charCodeAt(t.position),C===h)return t.position++,t.tag=o,t.anchor=l,t.kind=f?"mapping":"sequence",t.result=a,!0;i?C===44&&I(t,"expected the node content, but found ','"):I(t,"missed comma between flow collection entries"),T=y=E=null,d=u=!1,C===63&&(c=t.input.charCodeAt(t.position+1),_t(c)&&(d=u=!0,t.position++,tt(t,!0,e))),r=t.line,n=t.lineStart,s=t.position,Ve(t,e,Er,!1,!0),T=t.tag,y=t.result,tt(t,!0,e),C=t.input.charCodeAt(t.position),(u||t.line===r)&&C===58&&(d=!0,C=t.input.charCodeAt(++t.position),tt(t,!0,e),Ve(t,e,Er,!1,!0),E=t.result),f?De(t,a,m,T,y,E,r,n,s):d?a.push(De(t,null,m,T,y,E,r,n,s)):a.push(y),tt(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(i=!0,C=t.input.charCodeAt(++t.position)):i=!1}I(t,"unexpected end of the stream within a flow collection")}function Cb(t,e){var i,r,n=xn,s=!1,o=!1,a=e,l=0,c=!1,h,d;if(d=t.input.charCodeAt(t.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)xn===n?n=d===43?na:sb:I(t,"repeat of a chomping mode identifier");else if((h=db(d))>=0)h===0?I(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?I(t,"repeat of an indentation width identifier"):(a=e+h-1,o=!0);else break;if(be(d)){do d=t.input.charCodeAt(++t.position);while(be(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!zt(d)&&d!==0)}for(;d!==0;){for(So(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&d===32;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),zt(d)){l++;continue}if(t.lineIndent<a){n===na?t.result+=dt.repeat(`
|
|
82
|
+
`,s?1+l:l):n===xn&&s&&(t.result+=`
|
|
83
|
+
`);break}for(r?be(d)?(c=!0,t.result+=dt.repeat(`
|
|
84
|
+
`,s?1+l:l)):c?(c=!1,t.result+=dt.repeat(`
|
|
85
|
+
`,l+1)):l===0?s&&(t.result+=" "):t.result+=dt.repeat(`
|
|
86
|
+
`,l):t.result+=dt.repeat(`
|
|
87
|
+
`,s?1+l:l),s=!0,o=!0,l=0,i=t.position;!zt(d)&&d!==0;)d=t.input.charCodeAt(++t.position);he(t,i,t.position,!1)}return!0}function ca(t,e){var i,r=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,I(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!_t(o))));){if(a=!0,t.position++,tt(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Ve(t,e,Sc,!1,!0),s.push(t.result),tt(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)I(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function xb(t,e,i){var r,n,s,o,a,l,c=t.tag,h=t.anchor,d={},u=Object.create(null),f=null,m=null,y=null,T=!1,E=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),C=t.input.charCodeAt(t.position);C!==0;){if(!T&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,I(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),s=t.line,(C===63||C===58)&&_t(r))C===63?(T&&(De(t,d,u,f,m,null,o,a,l),f=m=y=null),E=!0,T=!0,n=!0):T?(T=!1,n=!0):I(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=r;else{if(o=t.line,a=t.lineStart,l=t.position,!Ve(t,i,vc,!1,!0))break;if(t.line===s){for(C=t.input.charCodeAt(t.position);be(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),_t(C)||I(t,"a whitespace character is expected after the key-value separator within a block mapping"),T&&(De(t,d,u,f,m,null,o,a,l),f=m=y=null),E=!0,T=!1,n=!1,f=t.tag,m=t.result;else if(E)I(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if(E)I(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=h,!0}if((t.line===s||t.lineIndent>e)&&(T&&(o=t.line,a=t.lineStart,l=t.position),Ve(t,e,Br,!0,n)&&(T?m=t.result:y=t.result),T||(De(t,d,u,f,m,y,o,a,l),f=m=y=null),tt(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&C!==0)I(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return T&&De(t,d,u,f,m,null,o,a,l),E&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=d),E}function bb(t){var e,i=!1,r=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&I(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(i=!0,o=t.input.charCodeAt(++t.position)):o===33?(r=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):I(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!_t(o);)o===33&&(r?I(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),kc.test(n)||I(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),cb.test(s)&&I(t,"tag suffix cannot contain flow indicator characters")}s&&!wc.test(s)&&I(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{I(t,"tag name is malformed: "+s)}return i?t.tag=s:de.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:I(t,'undeclared tag handle "'+n+'"'),!0}function Tb(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&I(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!_t(i)&&!$e(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&I(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function vb(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!_t(r)&&!$e(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&I(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),de.call(t.anchorMap,i)||I(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],tt(t,!0,-1),!0}function Ve(t,e,i,r,n){var s,o,a,l=1,c=!1,h=!1,d,u,f,m,y,T;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Br===i||Sc===i,r&&tt(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;bb(t)||Tb(t);)tt(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||Br===i)&&(Er===i||vc===i?y=e:y=e+1,T=t.position-t.lineStart,l===1?a&&(ca(t,T)||xb(t,T,y))||_b(t,y)?h=!0:(o&&Cb(t,y)||mb(t,y)||yb(t,y)?h=!0:vb(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&I(t,"alias node should not have any properties")):gb(t,y,Er===i)&&(h=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(h=a&&ca(t,T))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&I(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),d=0,u=t.implicitTypes.length;d<u;d+=1)if(m=t.implicitTypes[d],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(de.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,f=t.typeMap.multi[t.kind||"fallback"],d=0,u=f.length;d<u;d+=1)if(t.tag.slice(0,f[d].tag.length)===f[d].tag){m=f[d];break}m||I(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&I(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):I(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function Sb(t){var e=t.position,i,r,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(tt(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),i=t.position;o!==0&&!_t(o);)o=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&I(t,"directive name must not be less than one character in length");o!==0;){for(;be(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!zt(o));break}if(zt(o))break;for(i=t.position;o!==0&&!_t(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}o!==0&&So(t),de.call(aa,r)?aa[r](t,r,n):Lr(t,'unknown document directive "'+r+'"')}if(tt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,tt(t,!0,-1)):s&&I(t,"directives end mark is expected"),Ve(t,t.lineIndent-1,Br,!1,!0),tt(t,!0,-1),t.checkLineBreaks&&lb.test(t.input.slice(e,t.position))&&Lr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Zr(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,tt(t,!0,-1));return}if(t.position<t.length-1)I(t,"end of the stream or a document separator is expected");else return}function kb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
|
88
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new pb(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,I(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Sb(i);return i.documents}function wb(t,e){var i=kb(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Jt("expected a single document in the stream, but found more")}}var Ab=wb,Eb={load:Ab},Bb=xc,Lb=Eb.load;function Fb(t){const e=t.match(Ml);if(!e)return{text:t,metadata:{}};let i=Lb(e[1],{schema:Bb})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const Ob=t=>t.replace(/\r\n?/g,`
|
|
89
|
+
`).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),Ib=t=>{const{text:e,metadata:i}=Fb(t),{displayMode:r,title:n,config:s={}}=i;return r&&(s.gantt||(s.gantt={}),s.gantt.displayMode=r),{title:n,config:s,text:e}},Mb=t=>{const e=bi.detectInit(t)??{},i=bi.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):i?.type==="wrap"&&(e.wrap=!0),{text:oy(t),directive:e}};function Lc(t){const e=Ob(t),i=Ib(e),r=Mb(i.text),n=zl(i.config,r.directive);return t=WC(r.text),{code:t,title:i.title,config:n}}const $b=5e4,Db="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Nb="sandbox",Rb="loose",Pb="http://www.w3.org/2000/svg",qb="http://www.w3.org/1999/xlink",zb="http://www.w3.org/1999/xhtml",Wb="100%",Yb="100%",Hb="border:0;margin:0;",jb="margin:0",Ub="allow-top-navigation-by-user-activation allow-popups",Xb='The "iframe" tag is not supported by your browser.',Gb=["foreignobject"],Vb=["dominant-baseline"];function Fc(t){const e=Lc(t);return kr(),Fy(e.config??{}),e}async function Kb(t,e){To(),t=Fc(t).code;try{await wo(t)}catch(i){if(e?.suppressErrors)return!1;throw i}return!0}const ha=(t,e,i=[])=>`
|
|
90
|
+
.${t} ${e} { ${i.join(" !important; ")} !important; }`,Zb=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
|
|
91
|
+
${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
|
|
92
|
+
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
|
|
93
|
+
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!yn(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];yn(c.styles)||a.forEach(h=>{r+=ha(c.id,h,c.styles)}),yn(c.textStyles)||(r+=ha(c.id,"tspan",c.textStyles))}}return r},Jb=(t,e,i,r)=>{const n=Zb(t,i),s=Z_(e,n,t.themeVariables);return $n(h0(`${r}{${s}}`),d0)},Qb=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=Ay(r),r=r.replace(/<br>/g,"<br/>"),r},t1=(t="",e)=>{var i,r;const n=(r=(i=e?.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":Yb,s=btoa('<body style="'+jb+'">'+t+"</body>");return`<iframe style="width:${Wb};height:${n};${Hb}" src="data:text/html;base64,${s}" sandbox="${Ub}">
|
|
94
|
+
${Xb}
|
|
95
|
+
</iframe>`},ua=(t,e,i,r,n)=>{const s=t.append("div");s.attr("id",i),r&&s.attr("style",r);const o=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Pb);return n&&o.attr("xmlns:xlink",n),o.append("g"),t};function da(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const e1=(t,e,i,r)=>{var n,s,o;(n=t.getElementById(e))==null||n.remove(),(s=t.getElementById(i))==null||s.remove(),(o=t.getElementById(r))==null||o.remove()},i1=async function(t,e,i){var r,n,s,o,a,l;To();const c=Fc(e);e=c.code;const h=Yt();$.debug(h),e.length>(h?.maxTextSize??$b)&&(e=Db);const d="#"+t,u="i"+t,f="#"+u,m="d"+t,y="#"+m;let T=kt("body");const E=h.securityLevel===Nb,C=h.securityLevel===Rb,x=h.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),E){const M=da(kt(i),u);T=kt(M.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=kt(i);ua(T,t,m,`font-family: ${x}`,qb)}else{if(e1(document,t,m,u),E){const M=da(kt("body"),u);T=kt(M.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=kt("body");ua(T,t,m)}let B,w;try{B=await wo(e,{title:c.title})}catch(M){B=new yc("error"),w=M}const Y=T.select(y).node(),N=B.type,rt=Y.firstChild,V=rt.firstChild,H=(n=(r=B.renderer).getClasses)==null?void 0:n.call(r,e,B),P=Jb(h,N,H,d),Et=document.createElement("style");Et.innerHTML=P,rt.insertBefore(Et,V);try{await B.renderer.draw(e,t,Qs,B)}catch(M){throw pC.draw(e,t,Qs),M}const re=T.select(`${y} svg`),R=(o=(s=B.db).getAccTitle)==null?void 0:o.call(s),k=(l=(a=B.db).getAccDescription)==null?void 0:l.call(a);n1(N,re,R,k),T.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",zb);let b=T.select(y).node().innerHTML;if($.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),b=Qb(b,E,Fl(h.arrowMarkerAbsolute)),E){const M=T.select(y+" svg").node();b=t1(b,M)}else C||(b=Ye.sanitize(b,{ADD_TAGS:Gb,ADD_ATTR:Vb}));if(RC(),w)throw w;const S=kt(E?f:y).node();return S&&"remove"in S&&S.remove(),{svg:b,bindFunctions:B.db.bindFunctions}};function r1(t={}){var e;t?.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),By(t),t?.theme&&t.theme in te?t.themeVariables=te[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=te.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?Ey(t):Yl();ho(i.logLevel),To()}const wo=(t,e={})=>{const{code:i}=Lc(t);return NC(i,e)};function n1(t,e,i,r){qC(e,t),zC(e,i,r,e.attr("id"))}const Se=Object.freeze({render:i1,parse:Kb,getDiagramFromText:wo,initialize:r1,getConfig:Yt,setConfig:Hl,getSiteConfig:Yl,updateSiteConfig:Ly,reset:()=>{kr()},globalReset:()=>{kr(Xe)},defaultConfig:Xe});ho(Yt().logLevel);kr(Yt());const o1=async()=>{$.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Ue).map(async([i,{detector:r,loader:n}])=>{if(n)try{bo(i)}catch{try{const{diagram:o,id:a}=await n();Ar(a,o,r)}catch(o){throw $.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Ue[i],o}}}))).filter(i=>i.status==="rejected");if(e.length>0){$.error(`Failed to load ${e.length} external diagrams`);for(const i of e)$.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},s1=(t,e,i)=>{$.warn(t),ql(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Oc=async function(t={querySelector:".mermaid"}){try{await a1(t)}catch(e){if(ql(e)&&$.error(e.str),Ct.parseError&&Ct.parseError(e),!t.suppressErrors)throw $.error("Use the suppressErrors option to suppress these errors"),e}},a1=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Se.getConfig();$.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");$.debug(`Found ${n.length} diagrams`),r?.startOnLoad!==void 0&&($.debug("Start On Load: "+r?.startOnLoad),Se.updateSiteConfig({startOnLoad:r?.startOnLoad}));const s=new bi.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const a=[];for(const l of Array.from(n)){$.info("Rendering diagram: "+l.id);if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${s.next()}`;o=l.innerHTML,o=hh(bi.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=bi.detectInit(o);h&&$.debug("Detected early reinit: ",h);try{const{svg:d,bindFunctions:u}=await Dc(c,o,l);l.innerHTML=d,t&&await t(c),u&&u(l)}catch(d){s1(d,a,Ct.parseError)}}if(a.length>0)throw a[0]},Ic=function(t){Se.initialize(t)},l1=async function(t,e,i){$.warn("mermaid.init is deprecated. Please use run instead."),t&&Ic(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Oc(r)},c1=async(t,{lazyLoad:e=!0}={})=>{Dl(...t),e===!1&&await o1()},Mc=function(){if(Ct.startOnLoad){const{startOnLoad:t}=Se.getConfig();t&&Ct.run().catch(e=>$.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){window.addEventListener("load",Mc,!1)}const h1=function(t){Ct.parseError=t},Fr=[];let bn=!1;const $c=async()=>{if(!bn){for(bn=!0;Fr.length>0;){const t=Fr.shift();if(t)try{await t()}catch(e){$.error("Error executing queue",e)}}bn=!1}},u1=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((s,o)=>{Se.parse(t,e).then(a=>{s(a),i(a)},a=>{var l;$.error("Error parsing",a),(l=Ct.parseError)==null||l.call(Ct,a),o(a),r(a)})});Fr.push(n),$c().catch(r)}),Dc=(t,e,i)=>new Promise((r,n)=>{const s=()=>new Promise((o,a)=>{Se.render(t,e,i).then(l=>{o(l),r(l)},l=>{var c;$.error("Error parsing",l),(c=Ct.parseError)==null||c.call(Ct,l),a(l),n(l)})});Fr.push(s),$c().catch(n)}),Ct={startOnLoad:!0,mermaidAPI:Se,parse:u1,render:Dc,init:l1,run:Oc,registerExternalDiagrams:c1,initialize:Ic,parseError:void 0,contentLoaded:Mc,setParseErrorHandler:h1,detectType:Vr},Qe=t=>{t=f1(t);const e=t.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),i=document.createElement("textarea");return i.innerHTML=e,i.value},qe=t=>{const i=t.getAttribute("transform")?.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let r=0,n=0;return i&&(r=Number(i[1]),n=Number(i[2])),{transformX:r,transformY:n}},d1=t=>{let e=t;return e=e.replace(/style.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/classDef.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/#\w+;/g,i=>{const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?`fl°°${r}¶ß`:`fl°${r}¶ß`}),e},f1=function(t){return t.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Nc=(t,e={x:0,y:0})=>{if(t.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);const i=t.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const r=i.split(/(?=[LM])/),n=r[0].substring(1).split(",").map(a=>parseFloat(a)),s=r[r.length-1].substring(1).split(",").map(a=>parseFloat(a)),o=r.map(a=>{const l=a.substring(1).split(",").map(c=>parseFloat(c));return{x:l[0],y:l[1]}}).filter((a,l,c)=>{if(l===0||l===c.length-1)return!0;if(a.x===c[l-1].x&&a.y===c[l-1].y)return!1;if(l===c.length-2&&(c[l-1].x===a.x||c[l-1].y===a.y)){const h=c[c.length-1];return Math.hypot(h.x-a.x,h.y-a.y)>20}return a.x!==c[l-1].x||a.y!==c[l-1].y}).map(a=>({x:a.x+e.x,y:a.y+e.y}));return{startX:n[0]+e.x,startY:n[1]+e.y,endX:s[0]+e.x,endY:s[1]+e.y,reflectionPoints:o}},p1=(t,e)=>{const i=t.nodes.map(a=>a.startsWith("flowchart-")?a.split("-")[1]:a),r=e.querySelector(`[id='${t.id}']`);if(!r)throw new Error("SubGraph element not found");const n=Ao(r,e),s=r.getBBox(),o={width:s.width,height:s.height};return t.classes=void 0,t.dir=void 0,{...t,nodeIds:i,...n,...o,text:Qe(t.title)}},g1=(t,e)=>{const i=e.querySelector(`[id*="flowchart-${t.id}-"]`);if(!i)return;let r;i.parentElement?.tagName.toLowerCase()==="a"&&(r=i.parentElement.getAttribute("xlink:href"));const n=Ao(r?i.parentElement:i,e),s=i.getBBox(),o={width:s.width,height:s.height},a=i.querySelector(".label-container")?.getAttribute("style"),l=i.querySelector(".label")?.getAttribute("style"),c={};a?.split(";").forEach(d=>{if(!d)return;const u=d.split(":")[0].trim(),f=d.split(":")[1].trim();c[u]=f});const h={};return l?.split(";").forEach(d=>{if(!d)return;const u=d.split(":")[0].trim(),f=d.split(":")[1].trim();h[u]=f}),{id:t.id,labelType:t.labelType,text:Qe(t.text),type:t.type,link:r||void 0,...n,...o,containerStyle:c,labelStyle:h}},m1=(t,e,i)=>{const r=i.querySelector(`[id*="L-${t.start}-${t.end}-${e}"]`);if(!r)throw new Error("Edge element not found");const n=Ao(r,i),s=Nc(r,n);return t.length=void 0,{...t,...s,text:Qe(t.text)}},Ao=(t,e)=>{if(!t)throw new Error("Element not found");let i=t.parentElement?.parentElement;const r=t.childNodes[0];let n={x:0,y:0};if(r){const{transformX:l,transformY:c}=qe(r),h=r.getBBox();n={x:Number(r.getAttribute("x"))||l+h.x||0,y:Number(r.getAttribute("y"))||c+h.y||0}}const{transformX:s,transformY:o}=qe(t),a={x:s+n.x,y:o+n.y};for(;i&&i.id!==e.id;){if(i.classList.value==="root"&&i.hasAttribute("transform")){const{transformX:l,transformY:c}=qe(i);a.x+=l,a.y+=c}i=i.parentElement}return a},y1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getVertices();Object.keys(r).forEach(a=>{r[a]=g1(r[a],e)});const n=new Map,s=i.getEdges().filter(a=>e.querySelector(`[id*="L-${a.start}-${a.end}"]`)).map(a=>{const l=`${a.start}-${a.end}`,c=n.get(l)||0;return n.set(l,c+1),m1(a,c,e)});return{type:"flowchart",subGraphs:i.getSubGraphs().map(a=>p1(a,e)),vertices:r,edges:s}},_1=(t,e)=>{const i={};e?.label&&(i.label={text:Qe(e.label),fontSize:16});const r=t.tagName;if(r==="line")i.startX=Number(t.getAttribute("x1")),i.startY=Number(t.getAttribute("y1")),i.endX=Number(t.getAttribute("x2")),i.endY=Number(t.getAttribute("y2"));else if(r==="path"){const n=t.getAttribute("d");if(!n)throw new Error('Path element does not contain a "d" attribute');const s=n.split(/(?=[LC])/),o=s[0].substring(1).split(",").map(c=>parseFloat(c)),a=[];s.forEach(c=>{const h=c.substring(1).trim().split(" ").map(d=>{const[u,f]=d.split(",");return[parseFloat(u)-o[0],parseFloat(f)-o[1]]});a.push(...h)});const l=a[a.length-1];i.startX=o[0],i.startY=o[1],i.endX=l[0],i.endY=l[1],i.points=a}return e?.label&&(i.startY=i.startY-10,i.endY=i.endY-10),i.strokeColor=t.getAttribute("stroke"),i.strokeWidth=Number(t.getAttribute("stroke-width")),i.type="arrow",i.strokeStyle=e?.strokeStyle||"solid",i.startArrowhead=e?.startArrowhead||null,i.endArrowhead=e?.endArrowhead||null,i},Rc=(t,e,i,r,n)=>{const s={};return s.type="arrow",s.startX=t,s.startY=e,s.endX=i,s.endY=r,Object.assign(s,{...n}),s},Hn=(t,e,i,r)=>({type:"text",x:t,y:e,text:i,width:r?.width||20,height:r?.height||20,fontSize:r?.fontSize||Or,id:r?.id,groupId:r?.groupId,metadata:r?.metadata}),Pc=(t,e,i)=>{const r={},n=Number(t.getAttribute("x")),s=Number(t.getAttribute("y"));r.type="text",r.text=Qe(e),i?.id&&(r.id=i.id),i?.groupId&&(r.groupId=i.groupId);const o=t.getBBox();r.width=o.width,r.height=o.height,r.x=n-o.width/2,r.y=s;const a=parseInt(getComputedStyle(t).fontSize);return r.fontSize=a,r},Ht=(t,e,i={})=>{const r={};r.type=e;const{label:n,subtype:s,id:o,groupId:a}=i;r.id=o,a&&(r.groupId=a),n&&(r.label={text:Qe(n.text),fontSize:16,verticalAlign:n?.verticalAlign});const l=t.getBBox();switch(r.x=l.x,r.y=l.y,r.width=l.width,r.height=l.height,r.subtype=s,s){case"highlight":const c=t.getAttribute("fill");c&&(r.bgColor=c);break;case"note":r.strokeStyle="dashed";break}return r},Oi=(t,e,i,r,n,s)=>{const o={};return o.startX=e,o.startY=i,o.endX=r,s?.groupId&&(o.groupId=s.groupId),s?.id&&(o.id=s.id),o.endY=n,o.strokeColor=t.getAttribute("stroke"),o.strokeWidth=Number(t.getAttribute("stroke-width")),o.type="line",o},fa={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},Rt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},C1=t=>{let e;switch(t){case Rt.SOLID:case Rt.SOLID_CROSS:case Rt.SOLID_OPEN:case Rt.SOLID_POINT:e="solid";break;case Rt.DOTTED:case Rt.DOTTED_CROSS:case Rt.DOTTED_OPEN:case Rt.DOTTED_POINT:e="dotted";break;default:e="solid";break}return e},x1=(t,e)=>{if(!!t.nextElementSibling?.classList.contains("sequenceNumber")){const r=t.nextElementSibling?.textContent;if(!r)throw new Error("sequence number not present");const n=30,s=n/2,a={type:"rectangle",x:e.startX-10,y:e.startY-s,label:{text:r,fontSize:14},bgColor:"#e9ecef",height:n,subtype:"sequence"};Object.assign(e,{sequenceNumber:a})}},pa=(t,e,i)=>{if(!t)throw"root node not found";const r=Qt(),n=Array.from(t.children),s=[];return n.forEach((o,a)=>{const l=`${i?.id}-${a}`;let c;switch(o.tagName){case"line":const h=Number(o.getAttribute("x1")),d=Number(o.getAttribute("y1")),u=Number(o.getAttribute("x2")),f=Number(o.getAttribute("y2"));c=Oi(o,h,d,u,f,{groupId:r,id:l});break;case"text":c=Pc(o,e,{groupId:r,id:l});break;case"circle":c=Ht(o,"ellipse",{label:o.textContent?{text:o.textContent}:void 0,groupId:r,id:l});default:c=Ht(o,Kc[o.tagName],{label:o.textContent?{text:o.textContent}:void 0,groupId:r,id:l})}s.push(c)}),s},b1=(t,e)=>{const i=Array.from(e.querySelectorAll(".actor-top")),r=Array.from(e.querySelectorAll(".actor-bottom")),n=[],s=[];return Object.values(t).forEach((o,a)=>{const l=i.find(d=>d.getAttribute("name")===o.name),c=r.find(d=>d.getAttribute("name")===o.name);if(!l||!c)throw"root not found";const h=o.description;if(o.type==="participant"){const d=Ht(l,"rectangle",{id:`${o.name}-top`,label:{text:h},subtype:"actor"});if(!d)throw"Top Node element not found!";n.push([d]);const u=Ht(c,"rectangle",{id:`${o.name}-bottom`,label:{text:h},subtype:"actor"});n.push([u]);const f=l?.parentElement?.previousElementSibling;if(f?.tagName!=="line")throw"Line not found";const m=Number(f.getAttribute("x1"));if(!d.height)throw"Top node element height is null";const y=d.y+d.height,T=u.y,E=Number(f.getAttribute("x2")),C=Oi(f,m,y,E,T);s.push(C)}else if(o.type==="actor"){const d=pa(l,h,{id:`${o.name}-top`});n.push(d);const u=pa(c,h,{id:`${o.name}-bottom`});n.push(u);const f=l.previousElementSibling;if(f?.tagName!=="line")throw"Line not found";const m=Number(f.getAttribute("x1")),y=Number(f.getAttribute("y1")),T=Number(f.getAttribute("x2")),E=u.find(C=>C.type==="ellipse");if(E){const C=E.y,x=Oi(f,m,y,T,C);s.push(x)}}}),{nodes:n,lines:s}},T1=(t,e)=>{const i=[],r=Array.from(e.querySelectorAll('[class*="messageLine"]')),n=Object.keys(fa),s=t.filter(o=>n.includes(o.type.toString()));return r.forEach((o,a)=>{const l=s[a],c=fa[l.type],h=_1(o,{label:l?.message,strokeStyle:C1(l.type),endArrowhead:c==="SOLID_OPEN"||c==="DOTTED_OPEN"?null:"arrow"});x1(o,h),i.push(h)}),i},v1=(t,e)=>{const i=Array.from(e.querySelectorAll(".note")).map(s=>s.parentElement),r=t.filter(s=>s.type===Rt.NOTE),n=[];return i.forEach((s,o)=>{if(!s)return;const a=s.firstChild,l=r[o].message,c=Ht(a,"rectangle",{label:{text:l},subtype:"note"});n.push(c)}),n},S1=t=>{const e=Array.from(t.querySelectorAll("[class*=activation]")),i=[];return e.forEach(r=>{const n=Ht(r,"rectangle",{label:{text:""},subtype:"activation"});i.push(n)}),i},k1=(t,e)=>{const i=Array.from(e.querySelectorAll(".loopLine")),r=[],n=[],s=[];i.forEach(h=>{const d=Number(h.getAttribute("x1")),u=Number(h.getAttribute("y1")),f=Number(h.getAttribute("x2")),m=Number(h.getAttribute("y2")),y=Oi(h,d,u,f,m);y.strokeStyle="dotted",y.strokeColor="#adb5bd",y.strokeWidth=2,r.push(y)});const o=Array.from(e.querySelectorAll(".loopText")),a=t.filter(h=>h.type===Rt.CRITICAL_START).map(h=>h.message);o.forEach(h=>{const d=h.textContent||"",u=Pc(h,d),f=d.match(/\[(.*?)\]/)?.[1]||"";a.includes(f)&&(u.x+=16),n.push(u)});const l=Array.from(e?.querySelectorAll(".labelBox")),c=Array.from(e?.querySelectorAll(".labelText"));return l.forEach((h,d)=>{const u=c[d]?.textContent||"",f=Ht(h,"rectangle",{label:{text:u}});f.strokeColor="#adb5bd",f.bgColor="#e9ecef",f.width=void 0,s.push(f)}),{lines:r,texts:n,nodes:s}},w1=t=>{const e=Array.from(t.querySelectorAll(".rect")).filter(r=>r.parentElement?.tagName!=="g"),i=[];return e.forEach(r=>{const n=Ht(r,"rectangle",{label:{text:""},subtype:"highlight"});i.push(n)}),i},A1=(t,e)=>{t.parse();const i=t.parser.yy,r=[],n=i.getBoxes(),s=w1(e),o=i.getActors(),{nodes:a,lines:l}=b1(o,e),c=i.getMessages(),h=T1(c,e),d=v1(c,e),u=S1(e),f=k1(c,e);return r.push(s),r.push(...a),r.push(d),r.push(u),{type:"sequence",lines:l,arrows:h,nodes:r,loops:f,groups:n}},Ji={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},ga={LINE:0,DOTTED_LINE:1},se=16,E1=t=>{let e;switch(t){case ga.LINE:e="solid";break;case ga.DOTTED_LINE:e="dotted";break;default:e="solid"}return e},ma=t=>{let e;switch(t){case Ji.AGGREGATION:e="diamond_outline";break;case Ji.COMPOSITION:e="diamond";break;case Ji.EXTENSION:e="triangle_outline";break;case"none":e=null;break;case Ji.DEPENDENCY:default:e="arrow";break}return e},B1=(t,e)=>{const i=[],r=[],n=[];return Object.values(t).forEach(s=>{const{domId:o,id:a}=s,l=Qt(),c=e.querySelector(`[data-id=${a}]`);if(!c)throw Error(`DOM Node with id ${o} not found`);const{transformX:h,transformY:d}=qe(c),u=Ht(c.firstChild,"rectangle",{id:a,groupId:l});u.x+=h,u.y+=d,u.metadata={classId:a},i.push(u),Array.from(c.querySelectorAll(".divider")).forEach(y=>{const T=Number(y.getAttribute("x1")),E=Number(y.getAttribute("y1")),C=Number(y.getAttribute("x2")),x=Number(y.getAttribute("y2")),B=Oi(y,T,E,C,x,{groupId:l,id:Qt()});B.startX+=h,B.startY+=d,B.endX+=h,B.endY+=d,B.metadata={classId:a},r.push(B)});const m=c.querySelector(".label")?.children;if(!m)throw"label nodes not found";Array.from(m).forEach(y=>{const T=y.textContent;if(!T)return;const E=Qt(),{transformX:C,transformY:x}=qe(y),B=y.getBBox(),Y=Hn(h+C,d+x+10,T,{width:B.width,height:B.height,id:E,groupId:l,metadata:{classId:a}});n.push(Y)})}),{nodes:i,lines:r,text:n}},L1=(t,e)=>{const i=["triangle_outline","diamond","diamond_outline"],r=e.startArrowhead&&i.includes(e.startArrowhead),n=e.endArrowhead&&i.includes(e.endArrowhead);return!n&&!r||(r&&(t==="LR"?e.startX-=se:t==="RL"?e.startX+=se:t==="TB"?e.startY-=se:t==="BT"&&(e.startY+=se)),n&&(t==="LR"?e.endX+=se:t==="RL"?e.endX-=se:t==="TB"?e.endY+=se:t==="BT"&&(e.endY-=se))),e},F1=(t,e,i,r)=>{const n=i.querySelector(".edgePaths")?.children;if(!n)throw new Error("No Edges found!");const s=[],o=[];return t.forEach((a,l)=>{const{id1:c,id2:h,relation:d}=a,u=e.find(P=>P.id===c),f=e.find(P=>P.id===h),m=E1(d.lineType),y=ma(d.type1),T=ma(d.type2),E=Nc(n[l]),C=Rc(E.startX,E.startY,E.endX,E.endY,{strokeStyle:m,startArrowhead:y,endArrowhead:T,label:a.title?{text:a.title}:void 0,start:{type:"rectangle",id:u.id},end:{type:"rectangle",id:f.id}}),x=L1(r,C);s.push(x);const{relationTitle1:B,relationTitle2:w}=a,Y=20,N=15,rt=15;let V,H;if(B&&B!=="none"){switch(r){case"TB":V=x.startX-Y,x.endX<x.startX&&(V-=rt),H=x.startY+N;break;case"BT":V=x.startX+Y,x.endX>x.startX&&(V+=rt),H=x.startY-N;break;case"LR":V=x.startX+Y,H=x.startY+N,x.endY>x.startY&&(H+=rt);break;case"RL":V=x.startX-Y,H=x.startY-N,x.startY>x.endY&&(H-=rt);break;default:V=x.startX-Y,H=x.startY+N}const P=Hn(V,H,B,{fontSize:16});o.push(P)}if(w&&w!=="none"){switch(r){case"TB":V=x.endX+Y,x.endX<x.startX&&(V+=rt),H=x.endY-N;break;case"BT":V=x.endX-Y,x.endX>x.startX&&(V-=rt),H=x.endY+N;break;case"LR":V=x.endX-Y,H=x.endY-N,x.endY>x.startY&&(H-=rt);break;case"RL":V=x.endX+Y,H=x.endY+N,x.startY>x.endY&&(H+=rt);break;default:V=x.endX+Y,H=x.endY-N}const P=Hn(V,H,w,{fontSize:16});o.push(P)}}),{arrows:s,text:o}},O1=(t,e,i)=>{const r=[],n=[];return t.forEach(s=>{const{id:o,text:a,class:l}=s,c=e.querySelector(`#${o}`);if(!c)throw new Error(`Node with id ${o} not found!`);const{transformX:h,transformY:d}=qe(c),u=c.firstChild,f=Ht(u,"rectangle",{id:o,subtype:"note",label:{text:a}});if(Object.assign(f,{x:f.x+h,y:f.y+d}),r.push(f),l){const m=i.find(B=>B.id===l);if(!m)throw new Error(`class node with id ${l} not found!`);const y=f.x+(f.width||0)/2,T=f.y+(f.height||0),E=y,C=m.y,x=Rc(y,T,E,C,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:f.id,type:"rectangle"},end:{id:m.id,type:"rectangle"}});n.push(x)}}),{notes:r,connectors:n}},I1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getDirection(),n=[],s=[],o=[],a=[],l=i.getNamespaces(),c=i.getClasses();if(Object.keys(c).length){const y=B1(c,e);n.push(y.nodes),s.push(...y.lines),o.push(...y.text),a.push(...y.nodes)}const h=i.getRelations(),{arrows:d,text:u}=F1(h,a,e,r),{notes:f,connectors:m}=O1(i.getNotes(),e,a);return n.push(f),d.push(...m),o.push(...u),{type:"class",nodes:n,lines:s,arrows:d,text:o,namespaces:l}},M1=t=>{const e=t.querySelector("svg");if(!e)throw new Error("SVG element not found");const i=e.getBoundingClientRect(),r=i.width,n=i.height;e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`);const s="image/svg+xml",o=unescape(encodeURIComponent(e.outerHTML)),l=`data:image/svg+xml;base64,${btoa(o)}`;return{type:"graphImage",mimeType:s,dataURL:l,width:r,height:n}},$1=async(t,e=Vo)=>{Ct.initialize({...Vo,...e});const i=await Ct.mermaidAPI.getDiagramFromText(d1(t)),{svg:r}=await Ct.render("mermaid-to-excalidraw",t),n=document.createElement("div");n.setAttribute("style","opacity: 0; position: relative; z-index: -1;"),n.innerHTML=r,n.id="mermaid-diagram",document.body.appendChild(n);let s;switch(i.type){case"flowchart-v2":{s=y1(i,n);break}case"sequence":{s=A1(i,n);break}case"classDiagram":{s=I1(i,n);break}default:s=M1(n)}return n.remove(),s},D1=async(t,e)=>{const i=e||{},r=parseInt(i.themeVariables?.fontSize??"")||Or,n=await $1(t,{...i,themeVariables:{...i.themeVariables,fontSize:`${r*1.25}px`}});return ch(n,{fontSize:r})},nT=Object.freeze(Object.defineProperty({__proto__:null,parseMermaidToExcalidraw:D1},Symbol.toStringTag,{value:"Module"}));export{ay as $,dC as A,Qn as B,Wt as C,W1 as D,j1 as E,gs as F,ps as G,X1 as H,U1 as I,H1 as J,q1 as K,z1 as L,V1 as M,Y1 as N,G1 as O,Z0 as P,j0 as Q,Ks as R,Z1 as S,go as T,q as U,P0 as V,Yt as W,K1 as X,G_ as Y,ey as Z,py as _,iC as a,Is as a$,Lf as a0,gy as a1,$i as a2,O as a3,D as a4,oC as a5,_i as a6,zl as a7,xt as a8,La as a9,kg as aA,oo as aB,Tl as aC,Cl as aD,vm as aE,Cm as aF,Pm as aG,Vm as aH,Ni as aI,Ke as aJ,Cr as aK,Lm as aL,m0 as aM,Di as aN,br as aO,Sm as aP,fl as aQ,Eg as aR,Bg as aS,me as aT,Rs as aU,Lg as aV,so as aW,Ag as aX,Ig as aY,Ze as aZ,fe as a_,Th as aa,Xg as ab,no as ac,yt as ad,od as ae,Gn as af,Fa as ag,Mi as ah,Ma as ai,P1 as aj,ph as ak,Vn as al,le as am,ls as an,dd as ao,ki as ap,hh as aq,ke as ar,jm as as,Rm as at,Um as au,Xm as av,xl as aw,qr as ax,Hr as ay,Tr as az,tC as b,ao as b0,gl as b1,Rn as b2,Rg as b3,yn as b4,nT as b5,Q_ as c,kt as d,hc as e,lt as f,xo as g,Sr as h,Li as i,uo as j,Ty as k,$ as l,Ri as m,nC as n,rC as o,rT as p,J_ as q,If as r,eC as s,Fl as t,bi as u,Ay as v,xy as w,iT as x,cC as y,yy as z};
|