lookatstudy-mobile 0.36.0 → 0.37.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/package.json +1 -1
- package/server.cjs +10 -4
- package/web/assets/{CanvasStage-2yeV4nPH.js → CanvasStage-DNJ3CvSQ.js} +1 -1
- package/web/assets/{CommandPalette-BFX8tcFC.js → CommandPalette-0omhbLg3.js} +1 -1
- package/web/assets/{CompanionBotLab-DTlObSeR.js → CompanionBotLab-CT_JHmNI.js} +1 -1
- package/web/assets/{CourseSearchPanel-DiuZkUSE.js → CourseSearchPanel-DVtN9ACi.js} +1 -1
- package/web/assets/{ExamView-fx7mUx8Q.js → ExamView-DPMDpplK.js} +1 -1
- package/web/assets/MermaidArtifact-BaJ5RvRv.js +9 -0
- package/web/assets/{PersonalProfileModal-CivNUd4y.js → PersonalProfileModal-IhrruXfg.js} +1 -1
- package/web/assets/{ReviewPanel-CdgUqKuF.js → ReviewPanel-C1ldctfO.js} +1 -1
- package/web/assets/{SettingsView-pzj-Jlrz.js → SettingsView-B6w445fE.js} +3 -3
- package/web/assets/{VoicePanel-Cyopy3sr.js → VoicePanel-CcYGhBPb.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-Dn5J4BZu.js → abnfDiagram-VCTEODGH-BU9D6UxH.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-ODA7YWAP-6WuG0Nt3.js → abnfDiagram-VCTEODGH-ODA7YWAP-CbNOQFqA.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-C4PU3XN7-BtKh8197.js → architectureDiagram-5GKGNRK7-C4PU3XN7-T9qCk6kM.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-jrCKwrXL.js → architectureDiagram-5GKGNRK7-CKMhI1Ee.js} +1 -1
- package/web/assets/{blockDiagram-I7D4REHJ-CWtkTOLG.js → blockDiagram-I7D4REHJ-Bik9DaYN.js} +1 -1
- package/web/assets/{blockDiagram-NRAW4CY4-UMJ6PMQQ-DHl4tIPo.js → blockDiagram-NRAW4CY4-UMJ6PMQQ-Dy4ybhQI.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-DvgOYbmL.js → c4Diagram-7LVT6UL2-IRtYuDM_.js} +1 -1
- package/web/assets/{c4Diagram-UCG6FXSJ-75X3U2P3-8t5uU1V0.js → c4Diagram-UCG6FXSJ-75X3U2P3-BCGvMp1I.js} +1 -1
- package/web/assets/channel-D6qbQnDp.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-D-MRkRaW.js → chunk-2Q5K7J3B-DSi_blpC.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-DgMwQtQx.js → chunk-5VM5RSS4-JiyA-wo9.js} +1 -1
- package/web/assets/{chunk-7XDTSPCN-C6CLiznJ.js → chunk-7XDTSPCN-Cvb-oYet.js} +1 -1
- package/web/assets/{chunk-CTNIYPP6-CM1Z69qf.js → chunk-CTNIYPP6-HjnzrVvf.js} +1 -1
- package/web/assets/{chunk-CXNFBKHE-B6ieqKBL.js → chunk-CXNFBKHE-DzkNdxBi.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-AboV3MjF.js → chunk-F27PBJKO-DqqFugb1.js} +1 -1
- package/web/assets/{chunk-IMKFNOWR-BRfxTcG3.js → chunk-IMKFNOWR-0q0swfWT.js} +1 -1
- package/web/assets/{chunk-ISA7TJRJ-BA6VnLlf.js → chunk-ISA7TJRJ-BX1hKFZw.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-CM5DFf0Z.js → chunk-JWPE2WC7-BGDdCd7e.js} +1 -1
- package/web/assets/{chunk-LV3HUYFY-DtT0YyqZ.js → chunk-LV3HUYFY-DXfPtXuN.js} +1 -1
- package/web/assets/{chunk-M3IUQBOH-DGSTxKRB.js → chunk-M3IUQBOH-BGP9XzSA.js} +1 -1
- package/web/assets/{chunk-NDIOYS4C-BDCIN1Cv.js → chunk-NDIOYS4C-CzRGOiBm.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-CRs1ouKF.js → chunk-POPQ4Y6H-CJEN76eb.js} +1 -1
- package/web/assets/{chunk-RE4WF27V-CPwQc2vn.js → chunk-RE4WF27V-CwpP9UVY.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-Cbw7rxkD.js → chunk-SVP7TREG-DKVY1S0P.js} +1 -1
- package/web/assets/{chunk-TICWLB2K-CJpuBU6m.js → chunk-TICWLB2K-DnGZt5_T.js} +1 -1
- package/web/assets/{chunk-VII2H2IX-udiwuRgE.js → chunk-VII2H2IX-DXWnTQhH.js} +1 -1
- package/web/assets/{chunk-X5GNSKZ3-DvVFKhTQ.js → chunk-X5GNSKZ3-EYUWZKOs.js} +1 -1
- package/web/assets/{chunk-XCWWM2C3-EFZq_oj4.js → chunk-XCWWM2C3-DX7b36ww.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-BCxGit2x.js → chunk-XXDRQBXY-B_w3KgBK.js} +1 -1
- package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-D2p8cYeb.js +1 -0
- package/web/assets/classDiagram-ZZMXUADV-CFJO056W.js +1 -0
- package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-D2p8cYeb.js +1 -0
- package/web/assets/classDiagram-v2-VYDZK3BY-CFJO056W.js +1 -0
- package/web/assets/{core-CTdCef6f.js → core-BKUioWC8.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-Dfkex2fo.js → cose-bilkent-JH36ORCC-BQ05JG_e.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-OB24KH3T-CE0-pZTl.js → cose-bilkent-JH36ORCC-OB24KH3T-7k2xivYC.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-DeRfvx8D.js → cynefin-OW5HDTMX-DOvceb57.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-GVF3BKWE-WBE1vO13.js → cynefin-OW5HDTMX-GVF3BKWE-CyNo44Ct.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-Bh5b3wB1.js → cynefinDiagram-5FMLGOSQ-CLzU5hRI.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-H3WIRU3N-BJvz82EQ.js → cynefinDiagram-5FMLGOSQ-H3WIRU3N-CLiDmyFZ.js} +1 -1
- package/web/assets/{dagre-3AP2YEHR-DCERTXHT-XAHjclga.js → dagre-3AP2YEHR-DCERTXHT-AZC3Sd7-.js} +1 -1
- package/web/assets/{dagre-GXQ25YYZ-DrM7-QVm.js → dagre-GXQ25YYZ-XMzOJ88I.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-DuzIHkVE.js → diagram-S7CK7UJ4-BrCtmOAD.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-MULGZGEL-DPqhnzpl.js → diagram-S7CK7UJ4-MULGZGEL-Cm4Xy-pF.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-DhVHhLx3.js → diagram-UQ7AKVKN-CCcvTlE_.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-YQBY353J-CtxlSSGF.js → diagram-UQ7AKVKN-YQBY353J-CVJLwP7S.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-KRouqsun.js → diagram-VSXAHHWV-CdYFta9M.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-WLNH2ELY-CIR4bpme.js → diagram-VSXAHHWV-WLNH2ELY-CaWgm0pD.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-CTJ3vljk.js → diagram-VX7I27RA-CM05zRwP.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-XW6YQV5G-BpP1BFMf.js → diagram-VX7I27RA-XW6YQV5G-DKYJGziA.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-HG7RF65D-BYiYU7xi.js → diagram-Z3DM3KII-HG7RF65D-kC8Vko9Q.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-D5hgo2N9.js → diagram-Z3DM3KII-He0OkO1p.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-DamZ_7Vh.js → ebnfDiagram-PWID7BFC-D6LQclit.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-OKY4VHYD-yPy84C7F.js → ebnfDiagram-PWID7BFC-OKY4VHYD-BPNXBqdL.js} +1 -1
- package/web/assets/{elk.bundled-Bnb7YbCz.js → elk.bundled-Oi_dp_Nb.js} +1 -1
- package/web/assets/{erDiagram-RLTQ6QDP-DXutINWC.js → erDiagram-RLTQ6QDP-BC8Dyxni.js} +1 -1
- package/web/assets/{erDiagram-SSCWMZ5O-PIPKOIK7-ZtlmPRSG.js → erDiagram-SSCWMZ5O-PIPKOIK7-BM5hP7pq.js} +1 -1
- package/web/assets/{flowDiagram-A5DVABFB-2Z4AVO5R-RWiTsxAA.js → flowDiagram-A5DVABFB-2Z4AVO5R-BI_HnDMS.js} +1 -1
- package/web/assets/{flowDiagram-HODETNUW-C0v4xgVs.js → flowDiagram-HODETNUW-CQB-KRdk.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-C10Pxkpf.js → ganttDiagram-EL5Y4UJY-DtkBZQfB.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-JZNG7GOG-C3JHepgy.js → ganttDiagram-EL5Y4UJY-JZNG7GOG-CAuwhLrG.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-DnhwejId.js → gitGraphDiagram-WWUBYQGX-CXMxBD1j.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-DMWMLL3G-Dvo5dray.js → gitGraphDiagram-WWUBYQGX-DMWMLL3G-CibDMxH5.js} +1 -1
- package/web/assets/{index-C06x750C.js → index-CLC7uJBc.js} +1 -1
- package/web/assets/{index-D5O6zEt9.js → index-DKUjXJrj.js} +1 -1
- package/web/assets/index-DNBtAT86.css +1 -0
- package/web/assets/index-DwG4tw4S.js +53 -0
- package/web/assets/index-pqxwzTgM.js +14 -0
- package/web/assets/{infoDiagram-27XIBGKW-BCK0GNZi.js → infoDiagram-27XIBGKW-BxdeKm2M.js} +1 -1
- package/web/assets/{infoDiagram-RXCK75RN-HANS5KVC-DnIuK4Ld.js → infoDiagram-RXCK75RN-HANS5KVC-XymudzPp.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-7GCIT7WU-D7H0PvCT.js → ishikawaDiagram-5VMMS53U-7GCIT7WU-Ca0czL-r.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-CwfpIEur.js → ishikawaDiagram-5VMMS53U-YiLbdVr3.js} +1 -1
- package/web/assets/{journeyDiagram-3NMN7TZE-D7yc5_ha.js → journeyDiagram-3NMN7TZE-o507o7V3.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-OAPELBT7-BxN0kQu5.js → journeyDiagram-EYS64GPL-OAPELBT7-COjG9fsS.js} +1 -1
- package/web/assets/{kanban-definition-3QL26DDD-I7RKWQQY-4n8YjWaH.js → kanban-definition-3QL26DDD-I7RKWQQY-dIeka5z7.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-jCn6YBMx.js → kanban-definition-UXKFOSKX-DPIPqDMI.js} +1 -1
- package/web/assets/{katex-N6JRN4PM-Dsye9nhm.js → katex-N6JRN4PM-C1WPCW7o.js} +1 -1
- package/web/assets/{layout-BGHeGqee.js → layout-CoYqjJku.js} +1 -1
- package/web/assets/{main-D7WqSbOt.js → main-s-bCU9xp.js} +117 -117
- package/web/assets/{mermaid-layout-elk.core-DTUF3xdW.js → mermaid-layout-elk.core-BDxAYedV.js} +2 -2
- package/web/assets/{mermaid.core-C-NqYAhX.js → mermaid.core-DP9HBKfF.js} +5 -5
- package/web/assets/{mindmap-definition-FBJOCRG2-KIYZG64Y-DfNqXTK3.js → mindmap-definition-FBJOCRG2-KIYZG64Y-B0M0vSNL.js} +1 -1
- package/web/assets/{mindmap-definition-YA3MSWOX-D3sKf06e.js → mindmap-definition-YA3MSWOX-CZNKLpKf.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-CVKDjCVA.js → pegDiagram-XKGWAZYB-BABqVbYU.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-OIP57N6J-DS2aCbPH.js → pegDiagram-XKGWAZYB-OIP57N6J-ChBhHDWi.js} +1 -1
- package/web/assets/{pet-Du-sCSbe.js → pet-BILzsmZE.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-2UOTW327-yjF7mWxr.js → pieDiagram-E7YTZNPT-2UOTW327-Dh29Zr3p.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-Bv5akhT4.js → pieDiagram-E7YTZNPT-van1IvDV.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-O95BF4oR.js → quadrantDiagram-AXDQQJYC-BKgVVqxX.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-SN3ASJJK-BLrtldcO.js → quadrantDiagram-AXDQQJYC-SN3ASJJK-CZYkjMJl.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-34742W6X-D8Re17Lm.js → railroadDiagram-O6MQD6OU-34742W6X-BpIuTMjt.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-C4dT_AHN.js → railroadDiagram-O6MQD6OU-CAJ_285V.js} +1 -1
- package/web/assets/{render-O7CIS3YK-C1LKCRfk.js → render-O7CIS3YK-Ca_t2BjR.js} +7 -7
- package/web/assets/{requirementDiagram-BXWQKSXE-DRoAJ0A4.js → requirementDiagram-BXWQKSXE-yAxTDLdz.js} +1 -1
- package/web/assets/{requirementDiagram-EFPCY7ZU-NGAFFSMB-BRpdn_yZ.js → requirementDiagram-EFPCY7ZU-NGAFFSMB-qHev6ewP.js} +1 -1
- package/web/assets/{rotate-ccw-BS0Lg3XV.js → rotate-ccw-BcZP2n0D.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-3D3M4XPB-U2MyqhHx.js → sankeyDiagram-P5KCCOFB-3D3M4XPB-C0dgNg43.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-DhLHY7NO.js → sankeyDiagram-P5KCCOFB-DzYIq4fM.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-Q2IOPB4R-C3se4pTd.js → sequenceDiagram-WJ2MYXX4-Q2IOPB4R-CYgHEbKX.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-C5QbVOkW.js → sequenceDiagram-WJ2MYXX4-bSfs95J7.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-Ds6O28WR.js → sizeCapture-INFHLROL-6sblijow.js} +1 -1
- package/web/assets/{sizeCapture-X5ZJPWSS-PSGVOMYM-Dalg_GSB.js → sizeCapture-X5ZJPWSS-PSGVOMYM-BmietHRl.js} +1 -1
- package/web/assets/{stateDiagram-D77RDMKH-C4Loqn2S.js → stateDiagram-D77RDMKH-BqN2X_4K.js} +1 -1
- package/web/assets/{stateDiagram-HBIQ2CUA-4M2S6MAN-CYg9tFmx.js → stateDiagram-HBIQ2CUA-4M2S6MAN-B7l4qfxn.js} +1 -1
- package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-DnMNJ_k7.js +1 -0
- package/web/assets/stateDiagram-v2-MP3YSRHH-DjlfW1YP.js +1 -0
- package/web/assets/{swimlanes-42K2YHIH-B95g1myb.js → swimlanes-42K2YHIH-BdpdGi8U.js} +1 -1
- package/web/assets/{swimlanes-XN3QIQJK-N6N2CCQ6-BVCO5pth.js → swimlanes-XN3QIQJK-N6N2CCQ6-DeA0ywq0.js} +1 -1
- package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-rqMW1YeU.js +8 -0
- package/web/assets/swimlanesDiagram-VR7AAH4N-SUwVZHzH.js +8 -0
- package/web/assets/{timeline-definition-24CTP7MA-DfbDTQSt.js → timeline-definition-24CTP7MA-C4WRMueq.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-KN7RSRVM-Ba1F1ajL.js → timeline-definition-24CTP7MA-KN7RSRVM-DCfXzMAD.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-AKJ7LXAN-B9Nx1RWB.js → vennDiagram-4TSXK5OY-AKJ7LXAN-B22sFTL4.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-B-uAb-fo.js → vennDiagram-4TSXK5OY-Czwyh2Ss.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-3B6A3BN5-v-icjHpd.js → wardleyDiagram-VM6X3IG4-3B6A3BN5-DUtEE3hD.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-Cr0_wFiw.js → wardleyDiagram-VM6X3IG4-BaWPp6GW.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-DwsgX-jd.js → xychartDiagram-S5SC5T6Z-BzArL7i2.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-OBDNV6WG-BX7F_LDu.js → xychartDiagram-S5SC5T6Z-OBDNV6WG-C3eeDBv5.js} +1 -1
- package/web/index.html +3 -3
- package/web/pet.html +3 -3
- package/web/assets/channel-CSAHJ2BV.js +0 -1
- package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-4hLnkbwM.js +0 -1
- package/web/assets/classDiagram-ZZMXUADV-CMAUnrA5.js +0 -1
- package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-4hLnkbwM.js +0 -1
- package/web/assets/classDiagram-v2-VYDZK3BY-CMAUnrA5.js +0 -1
- package/web/assets/index-BeI-qOIb.js +0 -21
- package/web/assets/index-By7sA5iY.css +0 -1
- package/web/assets/index-C8cLLejx.js +0 -53
- package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-CMhstoHU.js +0 -1
- package/web/assets/stateDiagram-v2-MP3YSRHH-CcPVgXyv.js +0 -1
- package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-CqJNI91T.js +0 -8
- package/web/assets/swimlanesDiagram-VR7AAH4N-BrEEiqe7.js +0 -8
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./elk.bundled-Oi_dp_Nb.js","./index-DwG4tw4S.js","./index-DNBtAT86.css","./_commonjs-dynamic-modules-TDtrdbi3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as g,j as e,c as Q}from"./index-DwG4tw4S.js";import{c as Z,_ as ee,u as R,Z as te,z as T,$ as se,a0 as ne,A as ae,k as re,j as ie,a1 as oe,q as D,X as G,a2 as ce,a3 as le,a4 as de,a5 as he}from"./main-s-bCU9xp.js";import{D as H,M as ue}from"./MermaidArtifact-BaJ5RvRv.js";import{M as K,C as B}from"./CanvasStage-DNJ3CvSQ.js";import{R as xe}from"./rotate-ccw-BcZP2n0D.js";/**
|
|
3
|
+
* @license lucide-react v0.468.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const fe=Z("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
8
|
+
* @license lucide-react v0.468.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/const me=Z("Dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]);function z(s,t=13){let n=0;for(const a of s)n+=/[\u2e80-\u9fff\uf900-\ufaff\uff00-\uffef\u3000-\u303f]/.test(a)?t:t*.58;return n}const q=118;function ge(s){if(z(s)<=q)return[s];const t=[];for(let d=0;d<s.length;d++)/[\s/\-—·]/.test(s[d]??"")&&t.push(d);const n=s.length/2;let a=-1,r=1/0;for(const d of t){const f=Math.abs(d+1-n);f<r&&(r=f,a=d)}let i,c;if(a>=0)i=s.slice(0,a+1).trim(),c=s.slice(a+1).trim();else{let d=0,f=0;for(const b of s)if(d+=z(b),f++,d>=z(s)/2)break;i=s.slice(0,f),c=s.slice(f)}if(z(i)<=q&&z(c)<=q)return[i,c];const o=d=>{let f="";for(const b of d){if(z(f+b+"…")>q)break;f+=b}return f+"…"};return[z(i)>q?o(i):i,z(c)>q?o(c):c]}function J(s,t){const n=ge(s),a=t?14:13,r=Math.max(...n.map(d=>z(d,a))),i=t?30:24,c=17,o=t?18:14;return{width:Math.min(t?200:180,Math.max(t?92:76,r+i)),height:o+n.length*c,lines:n}}function pe(s,t,n){const a=new Set(s.map(r=>r.id));if(Array.isArray(n)&&n.length>0){const r=new Set,i=[];for(const c of n){if(!c||typeof c.id!="string"||!c.id)continue;const o=Array.isArray(c.nodeIds)?[...new Set(c.nodeIds.filter(d=>typeof d=="string"&&a.has(d)&&!r.has(d)))]:[];o.length<2||(o.forEach(d=>r.add(d)),i.push({id:c.id,label:typeof c.label=="string"&&c.label?c.label:"分组",nodeIds:o}))}if(i.length>0&&!(i.length===1&&r.size===s.length&&s.length>2))return{groups:i,fallback:!1}}return{groups:be(s,t),fallback:!0}}function be(s,t){if(s.length<4)return[];const n=new Map(s.map((h,l)=>[h.id,l])),a=new Map;for(const h of s)a.set(h.id,[]);const r=new Set;for(const h of t){if(!n.has(h.from)||!n.has(h.to)||h.from===h.to)continue;const l=[h.from,h.to].sort().join("→");r.has(l)||(r.add(l),a.get(h.from).push(h.to),a.get(h.to).push(h.from))}const i=[...s].sort((h,l)=>{const x=a.get(h.id).length,k=a.get(l.id).length;return x!==k?k-x:(n.get(h.id)??0)-(n.get(l.id)??0)}),c=Math.min(3,Math.max(1,Math.ceil(s.length/4))),o=i.slice(0,c).filter(h=>{var l;return(((l=a.get(h.id))==null?void 0:l.length)??0)>0});if(o.length===0)return[];const d=new Map;o.forEach((h,l)=>d.set(h.id,l));const f=o.map(h=>h.id);for(;f.length;){const h=f.shift(),l=d.get(h);for(const x of a.get(h)??[])d.has(x)||(d.set(x,l),f.push(x))}const b=[];return o.forEach((h,l)=>{const x=s.filter(k=>d.get(k.id)===l).map(k=>k.id);x.length<2||b.push({id:`grp-${h.id}`,label:h.label.length<=5?`${h.label}相关`:h.label,nodeIds:x})}),b}const O=34;function we(s,t,n){var h;const a=new Set(s.map(l=>l.id)),r=new Map;for(const l of s)r.set(l.id,0);const i=new Set,c=[];for(const l of t){if(!a.has(l.from)||!a.has(l.to)||l.from===l.to)continue;const x=[l.from,l.to].sort().join("→");i.has(x)||(i.add(x),c.push(l),r.set(l.from,r.get(l.from)+1),r.set(l.to,r.get(l.to)+1))}let o=((h=s[0])==null?void 0:h.id)??"";for(const l of s)(r.get(l.id)??0)>(r.get(o)??0)&&(o=l.id);const d=new Map;for(const l of n)for(const x of l.nodeIds)a.has(x)&&!d.has(x)&&d.set(x,l.id);const f=l=>{const x=J(l.label,l.id===o||(r.get(l.id)??0)>=4);return{id:l.id,width:Math.ceil(x.width),height:Math.ceil(x.height)}},b=[];for(const l of n){const x=l.nodeIds.filter(k=>d.get(k)===l.id&&a.has(k));x.length!==0&&b.push({id:`g:${l.id}`,layoutOptions:{"elk.padding":`[top=${O},left=14,bottom=12,right=14]`},children:x.map(k=>f(s.find(p=>p.id===k)))})}for(const l of s)d.has(l.id)||b.push(f(l));return{id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"DOWN","elk.edgeRouting":"ORTHOGONAL","elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.spacing.nodeNode":"34","elk.spacing.edgeNode":"26","elk.spacing.componentComponent":"48","elk.layered.spacing.nodeNodeBetweenLayers":"56"},children:b,edges:c.map((l,x)=>({id:`e${x}`,sources:[l.from],targets:[l.to]}))}}function je(s){if(s.length===0)return{x:0,y:0};if(s.length===1)return s[0];const t=[];let n=0;for(let r=1;r<s.length;r++){const i=Math.hypot(s[r].x-s[r-1].x,s[r].y-s[r-1].y);t.push(i),n+=i}let a=n/2;for(let r=0;r<t.length;r++){if(a<=t[r]||r===t.length-1){const i=t[r]===0?0:a/t[r];return{x:s[r].x+(s[r+1].x-s[r].x)*i,y:s[r].y+(s[r+1].y-s[r].y)*i}}a-=t[r]}return s[s.length-1]}function ye(s,t,n,a,r,i){var y;const c=new Map(t.map(u=>[u.id,u])),o=new Map;a.forEach((u,m)=>o.set(u.id,m%5));const d=new Map(a.map(u=>[u.id,u])),f=new Map;for(const u of a)for(const m of u.nodeIds)f.has(m)||f.set(m,u.id);const b=[],h=[],l=[],x=new Map([["root",{x:0,y:0}]]),k=[],p=(u,m,v,S)=>{var M;for(const N of u.children??[]){const C=m+(N.x??0),$=v+(N.y??0);if((M=N.children)!=null&&M.length){const w=N.id.startsWith("g:")?N.id.slice(2):N.id,j=d.get(w);h.push({id:w,label:(j==null?void 0:j.label)??"分组",x:C,y:$,w:N.width??0,h:N.height??0,colorIdx:o.get(w)??0}),x.set(N.id,{x:C,y:$}),p(N,C,$,w)}else{const w=c.get(N.id);if(!w)continue;const j=J(w.label,w.id===i),E=f.get(w.id)??null;b.push({id:w.id,x:C,y:$,w:N.width??Math.ceil(j.width),h:N.height??Math.ceil(j.height),lines:j.lines,hub:w.id===i,groupId:S,colorIdx:E!=null?o.get(E)??0:-1})}}for(const N of u.edges??[])k.push({e:N,fallback:{x:m,y:v}})};p(s,0,0,null);for(const{e:u,fallback:m}of k){const v=(y=u.sections)==null?void 0:y[0];if(!v)continue;const S=(u.container!=null?x.get(u.container):void 0)??m,M=[v.startPoint,...v.bendPoints??[],v.endPoint].map($=>({x:$.x+S.x,y:$.y+S.y})),N=Number(u.id.slice(1)),C=n[N];C&&l.push({from:C.from,to:C.to,label:C.label,pts:M,labelPt:C.label?je(M):null})}return{width:Math.ceil(s.width??0),height:Math.ceil(s.height??0),nodes:b,groups:h,edges:l,hubId:i,groupsFallback:r}}let X=null;function ke(){return X??(X=ee(()=>import("./elk.bundled-Oi_dp_Nb.js").then(s=>s.e),__vite__mapDeps([0,1,2,3]),import.meta.url).then(s=>{const t=s,n=t.default??t;return new n})),X}async function ve(s,t,n){const a=pe(s,t,n),r=we(s,t,a.groups),i=Ne(s,t),o=await(await ke()).layout(r);return ye(o,s,t,a.groups,a.fallback,i)}function Ne(s,t){var c;const n=new Set(s.map(o=>o.id)),a=new Map;for(const o of s)a.set(o.id,0);const r=new Set;for(const o of t){if(!n.has(o.from)||!n.has(o.to)||o.from===o.to)continue;const d=[o.from,o.to].sort().join("→");r.has(d)||(r.add(d),a.set(o.from,a.get(o.from)+1),a.set(o.to,a.get(o.to)+1))}let i=((c=s[0])==null?void 0:c.id)??"";for(const o of s)(a.get(o.id)??0)>(a.get(i)??0)&&(i=o.id);return i}const L=.4,W=2.5,_=.2;function Me(s){return s.map((t,n)=>`${n===0?"M":"L"} ${t.x.toFixed(1)} ${t.y.toFixed(1)}`).join(" ")}function P({layout:s}){return e.jsxs("svg",{width:s.width,height:s.height,viewBox:`0 0 ${s.width} ${s.height}`,style:{display:"block"},"data-testid":"conceptmap-svg",children:[e.jsx("defs",{children:e.jsx("marker",{id:"cm-arrow",viewBox:"0 0 10 10",refX:9,refY:5,markerWidth:6.5,markerHeight:6.5,orient:"auto-start-reverse",children:e.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",className:"fill-ink-faint"})})}),s.groups.map((t,n)=>e.jsxs("g",{className:"cm-enter",style:{animationDelay:`${n*60}ms`},children:[e.jsx("rect",{x:t.x,y:t.y,width:t.w,height:t.h,rx:14,className:"cm-group-box",style:{fill:`var(--cm-c${t.colorIdx}-fill)`,stroke:`var(--cm-c${t.colorIdx}-line)`}}),e.jsx("rect",{x:t.x,y:t.y,width:t.w,height:O,rx:14,className:"cm-group-head",style:{fill:`var(--cm-c${t.colorIdx}-line)`}}),e.jsx("rect",{x:t.x,y:t.y+O/2,width:t.w,height:O/2,className:"cm-group-head",style:{fill:`var(--cm-c${t.colorIdx}-line)`}}),e.jsx("text",{x:t.x+14,y:t.y+22,fontSize:12,fontWeight:600,fill:`var(--cm-c${t.colorIdx}-line)`,"data-testid":"conceptmap-group-label",children:t.label})]},`g-${t.id}`)),s.edges.map((t,n)=>{const a=t.label?{width:z(t.label,12)+16,height:19}:null;return e.jsxs("g",{className:"cm-enter",style:{animationDelay:`${(s.groups.length+1)*60+n*30}ms`},children:[e.jsx("path",{d:Me(t.pts),className:"fill-none stroke-ink-faint/80",strokeWidth:1.6,markerEnd:"url(#cm-arrow)"}),t.label&&a&&t.labelPt&&e.jsxs("g",{children:[e.jsx("rect",{x:t.labelPt.x-a.width/2,y:t.labelPt.y-a.height/2,width:a.width,height:a.height,rx:a.height/2,className:"fill-surface-0/95 stroke-[var(--border-faint)]",strokeWidth:1}),e.jsx("text",{x:t.labelPt.x,y:t.labelPt.y+3.5,textAnchor:"middle",fontSize:12,className:"fill-ink-muted font-medium",style:{paintOrder:"stroke"},stroke:"var(--surface-0)",strokeWidth:3,children:t.label})]})]},`e-${n}`)}),s.nodes.map((t,n)=>{const a=t.colorIdx>=0?`var(--cm-c${t.colorIdx}-fill)`:"var(--surface-3)",r=t.colorIdx>=0?`var(--cm-c${t.colorIdx}-line)`:"var(--border)",i=t.hub?14:13;return e.jsxs("g",{className:"cm-enter",style:{animationDelay:`${(s.groups.length+2)*60+n*35}ms`},children:[e.jsx("rect",{x:t.x,y:t.y,width:t.w,height:t.h,rx:t.hub?12:10,fill:a,stroke:r,strokeWidth:t.hub?1.8:1.4}),t.lines.map((c,o)=>e.jsx("text",{x:t.x+t.w/2,y:t.y+t.h/2+(o-(t.lines.length-1)/2)*17+4.5,textAnchor:"middle",fontSize:i,className:t.hub?"fill-ink-strong font-bold":"fill-ink",children:c},o))]},t.id)})]})}function Se({data:s,variant:t="card"}){const n=s,a=R(),r=g.useMemo(()=>JSON.stringify({n:n.nodes,e:n.edges,g:n.groups??null}),[n.nodes,n.edges,n.groups]),[i,c]=g.useState(null);g.useEffect(()=>{let y=!0;return c(null),ve(n.nodes,n.edges,n.groups??null).then(u=>{y&&c(u)}).catch(()=>{}),()=>{y=!1}},[r]);const[o,d]=g.useState(1),[f,b]=g.useState(!1),h=g.useRef(null);g.useEffect(()=>{const y=h.current;if(!y||!i)return;const u=()=>{const v=(y.clientWidth-16)/i.width;v<1&&d(Math.max(L,+v.toFixed(2)))};u();const m=new ResizeObserver(u);return m.observe(y),()=>m.disconnect()},[i==null?void 0:i.width,i]);const l=g.useCallback(()=>d(y=>Math.min(W,+(y+_).toFixed(2))),[]),x=g.useCallback(()=>d(y=>Math.max(L,+(y-_).toFixed(2))),[]),k=g.useCallback(()=>d(1),[]),p=g.useCallback(y=>{if(!y.ctrlKey&&!y.metaKey)return;y.preventDefault();const u=y.deltaY>0?-_:_;d(m=>Math.min(W,Math.max(L,+(m+u).toFixed(2))))},[]);return t==="canvas"?e.jsx("div",{"data-testid":"conceptmap-canvas-content",children:i?e.jsx(P,{layout:i}):e.jsx("div",{style:{minWidth:320,minHeight:160}})}):e.jsxs("div",{className:"surface-card p-4","data-testid":"artifact-concept-map",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3 gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[e.jsx(te,{className:"w-4 h-4 text-ink-muted shrink-0"}),e.jsx("h3",{className:"text-body font-bold text-ink truncate",children:n.title})]}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[e.jsxs("div",{className:"flex items-center gap-1","data-testid":"conceptmap-zoom-controls",children:[e.jsx("button",{onClick:x,disabled:o<=L,className:"w-6 h-6 rounded border border-[var(--border)] text-ink-muted hover:bg-surface-3 disabled:opacity-30 text-label font-bold flex items-center justify-center",title:a("artifact.zoomOut"),children:"−"}),e.jsxs("button",{onClick:k,className:"px-1.5 h-6 rounded border border-[var(--border)] text-ink-muted hover:bg-surface-3 text-caption font-bold tabular-nums",title:a("artifact.zoomReset"),children:[Math.round(o*100),"%"]}),e.jsx("button",{onClick:l,disabled:o>=W,className:"w-6 h-6 rounded border border-[var(--border)] text-ink-muted hover:bg-surface-3 disabled:opacity-30 text-label font-bold flex items-center justify-center",title:a("artifact.zoomIn"),children:"+"})]}),e.jsx("button",{onClick:()=>b(!0),"data-testid":"conceptmap-expand","aria-label":a("artifact.viewer.open"),"data-tooltip":a("artifact.viewer.open"),className:"w-6 h-6 rounded border border-[var(--border)] text-ink-muted hover:bg-surface-3 flex items-center justify-center",children:e.jsx(K,{className:"w-3.5 h-3.5"})})]})]}),e.jsx("div",{ref:h,onClick:()=>b(!0),onWheel:p,className:"bg-surface-0/40 rounded-lg p-2 overflow-auto min-h-[160px] max-h-[500px] select-none",style:{touchAction:"pan-x pan-y"},"data-testid":"conceptmap-render-area","data-noswipe":"",children:i?e.jsx("div",{style:{width:i.width*o,height:i.height*o,margin:"0 auto"},children:e.jsx("div",{style:{transform:`scale(${o})`,transformOrigin:"top left",width:i.width,height:i.height},children:e.jsx(P,{layout:i})})}):e.jsx("div",{className:"h-[152px] flex items-center justify-center text-caption text-ink-muted","data-testid":"conceptmap-loading",children:"…"})}),e.jsx("div",{className:"mt-1.5 flex items-center justify-between text-caption text-ink-muted",children:e.jsx("span",{children:a("artifact.conceptmap.stats",{nodes:n.nodes.length,edges:n.edges.length})})}),n.warnings&&n.warnings.length>0&&e.jsxs("div",{className:"mt-1 text-caption text-warning flex items-start gap-1","data-testid":"artifact-warnings",children:[e.jsx(T,{className:"w-3.5 h-3.5 shrink-0 mt-0.5"}),e.jsx("span",{children:n.warnings.join("; ")})]}),f&&e.jsx(H,{title:n.title,onClose:()=>b(!1),children:e.jsx("div",{className:"h-full w-full rounded-xl overflow-hidden bg-surface-0/60",children:e.jsx(B,{testid:"conceptmap-modal-stage",children:i?e.jsx(P,{layout:i}):e.jsx("div",{className:"min-w-[320px] min-h-[160px]"})})})})]})}function Ce(s,t){const{correct:n,total:a}=s,r=a>0&&n===a,i=a>0&&n<a,c=t!=null&&t>=se,o=t!=null&&t>=ne;return i?[{id:"explain-wrong"},{id:"retry"}]:r&&c?[{id:"next-topic"},{id:"go-deeper"}]:r&&o?[{id:"mark-mastered",advancesMastery:!0},{id:"next-topic"},{id:"go-deeper"}]:[{id:"go-deeper"},{id:"retry"}]}const ze="ls-quiz-progress:";function $e(s){const t=s.questions.map(a=>`${a.prompt}|${(a.options??[]).join("/")}#${a.answer??""}`).join(`
|
|
13
|
+
`);let n=2166136261;for(let a=0;a<t.length;a++)n^=t.charCodeAt(a),n=Math.imul(n,16777619);return`${ze}${(n>>>0).toString(36)}`}function Ee(s){var t,n;try{const a=localStorage.getItem(s);if(!a)return null;const r=JSON.parse(a);return typeof(r==null?void 0:r.current)=="number"&&r.current>=0&&typeof((t=r==null?void 0:r.score)==null?void 0:t.correct)=="number"&&typeof((n=r==null?void 0:r.score)==null?void 0:n.total)=="number"?r:null}catch{return null}}function Ie(s,t){try{localStorage.setItem(s,JSON.stringify(t))}catch{}}const qe={"explain-wrong":{icon:fe,labelKey:"quiz.action.explainWrong",message:"我刚才有题答错了,帮我讲讲为什么错、正确的思路是什么。"},retry:{icon:xe,labelKey:"quiz.action.retry",message:"再来一组类似的题巩固一下。"},"go-deeper":{icon:ie,labelKey:"quiz.action.goDeeper",message:"这组我答得不错,帮我深入讲讲背后的原理和容易混淆的地方。"},"mark-mastered":{icon:re,labelKey:"quiz.action.markMastered",message:"这课我觉得掌握了,帮我确认一下——出个综合题检验,通过了就标记为掌握。"},"next-topic":{icon:ae,labelKey:"quiz.action.nextTopic",message:"进入下一个知识点。"}};function Re({data:s,onAnswered:t,quizMastery:n,onPickAction:a,onQuizCompleted:r}){const i=s,c=R(),o=g.useMemo(()=>$e(i),[i]),d=g.useMemo(()=>Ee(o),[o]),[f,b]=g.useState((d==null?void 0:d.current)??0),[h,l]=g.useState(null),[x,k]=g.useState(!1),[p,y]=g.useState((d==null?void 0:d.score)??{correct:0,total:0}),u=g.useRef([]),m=g.useRef(null);g.useEffect(()=>{Ie(o,{current:f,score:p})},[o,f,p]);const[v,S]=g.useState(!1);if(f>=i.questions.length){const w=!!a&&!r;if(r)return e.jsxs("div",{className:"surface-card p-4 text-center","data-testid":"artifact-quiz-done",children:[e.jsx("div",{className:"text-2xl mb-2",children:p.correct===p.total?"🎉":"📚"}),e.jsx("div",{className:"text-body font-bold text-ink",children:c("quiz.scoreSummary",{correct:p.correct,total:p.total})}),v?e.jsx("div",{className:"text-label text-ink-muted mt-1","data-testid":"quiz-hook-sent",children:c("quiz.hook.sent")}):e.jsx("button",{onClick:()=>{S(!0),r({title:i.title??"",correct:p.correct,total:p.total,detail:[...u.current]})},"data-testid":"quiz-hook-finish",className:"btn-3d-brand mt-3 px-5 py-2 text-body",children:c("quiz.hook.finish")})]});const j=w?Ce(p,n??null):[];return e.jsxs("div",{className:"surface-card p-4 text-center","data-testid":"artifact-quiz-done",children:[e.jsx("div",{className:"text-2xl mb-2",children:p.correct===p.total?"🎉":"📚"}),e.jsx("div",{className:"text-body font-bold text-ink",children:c("quiz.scoreSummary",{correct:p.correct,total:p.total})}),e.jsx("div",{className:"text-label text-ink-muted mt-1",children:p.correct===p.total?c("quiz.allCorrectHint"):c("quiz.tryAgainHint")}),j.length>0&&e.jsxs("div",{className:"mt-3 space-y-2 text-left","data-testid":"quiz-next-actions",children:[e.jsx("div",{className:"text-label text-ink-muted",children:c("quiz.action.nextPrompt")}),j.map((E,A)=>{const I=qe[E.id],Y=I.icon;return e.jsxs("button",{onClick:()=>a==null?void 0:a(I.message),"data-testid":`quiz-action-${E.id}`,className:`${A===0?"btn-3d-brand":"btn-3d-neutral"} w-full py-2 text-body flex items-center justify-center gap-1.5`,children:[e.jsx(Y,{className:"w-4 h-4"}),c(I.labelKey)]},E.id)})]})]})}const M=i.questions[f],N=x&&h===M.answer,C=()=>{if(h===null)return;k(!0);const w=h===M.answer;y(j=>({correct:j.correct+(w?1:0),total:j.total+1})),t==null||t(M,h,w),u.current.push({prompt:M.prompt,chosen:M.options[h]??"?",answerText:M.options[M.answer]??"?",correct:w}),Q(w?"correct":"wrong",{origin:w&&m.current?(()=>{const j=m.current.getBoundingClientRect();return{x:j.right-48,y:j.top+24}})():void 0})},$=()=>{f===i.questions.length-1&&r&&!v&&(S(!0),r({title:i.title??"",correct:p.correct,total:p.total,detail:[...u.current]})),b(w=>w+1),l(null),k(!1)};return e.jsxs("div",{ref:m,className:"surface-card p-4","data-testid":"artifact-quiz",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(oe,{className:"w-4 h-4 text-brand"}),e.jsx("span",{className:"text-label font-bold text-brand",children:c("quiz.questionProgress",{cur:f+1,total:i.questions.length})})]}),e.jsx("span",{className:"text-label text-ink-muted",children:c("quiz.answeredCorrect",{n:p.correct})})]}),e.jsx("div",{className:"text-body text-ink font-medium mb-3 leading-relaxed",children:M.prompt}),e.jsx("div",{className:"space-y-2 mb-3",children:M.options.map((w,j)=>{const E=h===j,A=x&&j===M.answer,I=x&&E&&!A;return e.jsxs("button",{onClick:()=>!x&&l(j),disabled:x,"data-testid":`quiz-option-${j}`,className:`w-full text-left text-body p-2.5 rounded-lg border-2 font-medium transition-colors ${A?"border-brand bg-brand/10 text-brand animate-answer-correct":I?"border-warning bg-warning/10 text-warning animate-answer-wrong":E?"border-accent bg-accent/10 text-accent":"border-[var(--border)] text-ink-muted hover:border-[var(--border)]"} ${x?"cursor-default":"cursor-pointer"}`,children:[e.jsx("span",{className:"font-bold mr-2",children:String.fromCharCode(65+j)}),w,A&&e.jsx("span",{className:"float-right",children:e.jsx(D,{className:"w-4 h-4 inline-block"})}),I&&e.jsx("span",{className:"float-right",children:e.jsx(G,{className:"w-4 h-4 inline-block"})})]},j)})}),x&&e.jsxs("div",{className:`rounded-lg p-3 mb-3 text-body leading-relaxed animate-artifact-render ${N?"bg-brand/10 border border-brand/30 text-brand":"bg-warning/10 border border-warning/30 text-warning"}`,"data-testid":"quiz-explanation",children:[e.jsxs("div",{className:"font-bold mb-1 flex items-center gap-1.5",children:[N?e.jsx(D,{className:"w-4 h-4"}):e.jsx(G,{className:"w-4 h-4"}),e.jsx("span",{children:c(N?"quiz.correct":"quiz.wrong")})]}),e.jsx("div",{className:"text-ink-muted",children:M.explanation})]}),x?e.jsx("button",{onClick:$,"data-testid":"quiz-next",className:"btn-3d-brand w-full py-2 text-body",children:f+1<i.questions.length?c("exercise.next"):c("quiz.finish")}):e.jsx("button",{onClick:C,disabled:h===null,"data-testid":"quiz-submit",className:"btn-3d-brand w-full py-2 text-body disabled:opacity-40",children:c("exercise.submit")}),i.warnings&&i.warnings.length>0&&e.jsxs("div",{className:"mt-2 text-caption text-warning flex items-start gap-1","data-testid":"artifact-warnings",children:[e.jsx(T,{className:"w-3.5 h-3.5 shrink-0 mt-0.5"}),e.jsx("span",{children:i.warnings.join("; ")})]})]})}function U({data:s,variant:t="card"}){const n=s,a=R(),[r,i]=g.useState(!1),c=e.jsxs("table",{className:"text-body",style:{width:"max-content",minWidth:"100%"},children:[e.jsx("thead",{children:e.jsx("tr",{className:"bg-surface-3/60",children:n.headers.map((o,d)=>e.jsx("th",{className:`px-3 py-2.5 text-left font-bold border-b border-[var(--border)] ${d===0?"text-ink-strong":"text-ink"}`,children:o},d))})}),e.jsx("tbody",{children:n.rows.map((o,d)=>e.jsx("tr",{className:d%2===0?"bg-surface-0/40":"",children:o.map((f,b)=>e.jsx("td",{className:`px-3 py-2.5 border-b border-[var(--border-faint)] align-top leading-relaxed ${b===0?"font-bold text-ink-strong whitespace-nowrap bg-surface-1/40":"text-ink-muted"}`,style:b===0?void 0:{maxWidth:260,overflowWrap:"anywhere"},children:f},b))},d))})]});return t==="canvas"?e.jsx("div",{className:"w-fit","data-testid":"comparetable-canvas-content",children:c}):e.jsxs("div",{className:"surface-card p-4","data-testid":"artifact-compare-table",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 mb-3",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx(ce,{className:"w-4 h-4 text-ink-muted shrink-0"}),e.jsx("h3",{className:"text-body font-bold text-ink truncate",children:n.title})]}),e.jsx("button",{onClick:()=>i(!0),"data-testid":"comparetable-expand","aria-label":a("artifact.viewer.open"),"data-tooltip":a("artifact.viewer.open"),className:"w-6 h-6 rounded border border-[var(--border)] text-ink-muted hover:bg-surface-3 flex items-center justify-center shrink-0",children:e.jsx(K,{className:"w-3.5 h-3.5"})})]}),e.jsx("div",{className:"overflow-x-auto rounded-lg border border-[var(--border-faint)]",onClick:()=>i(!0),style:{touchAction:"pan-x pan-y"},"data-noswipe":"",children:c}),n.warnings&&n.warnings.length>0&&e.jsxs("div",{className:"mt-2 text-caption text-warning flex items-start gap-1","data-testid":"artifact-warnings",children:[e.jsx(T,{className:"w-3.5 h-3.5 shrink-0 mt-0.5"}),e.jsx("span",{children:n.warnings.join("; ")})]}),r&&e.jsx(H,{title:n.title,onClose:()=>i(!1),children:e.jsx("div",{className:"h-full w-full rounded-xl overflow-hidden bg-surface-0/60",children:e.jsx(B,{testid:"comparetable-modal-stage",children:e.jsx("div",{className:"p-2 surface-card",children:e.jsx(U,{data:s,variant:"canvas"})})})})})]})}function V({data:s,variant:t="card"}){const n=s,a=R(),[r,i]=g.useState(null),[c,o]=g.useState(!1),d=g.useRef([]),f=g.useRef([]),b=n.code.split(`
|
|
14
|
+
`),[h,l]=g.useState(null);g.useEffect(()=>{let u=!0;return le(n.code,n.language).then(m=>{u&&m&&l(m)}),()=>{u=!1}},[n.code,n.language]);const x=u=>{if(r===null)return!1;const m=n.annotations[r];return m&&u>=m.lineStart&&u<=m.lineEnd},k=u=>{const m=r===u?null:u;if(i(m),m!==null){const v=n.annotations[m],S=(c?f:d).current[v.lineStart-1];S==null||S.scrollIntoView({behavior:"smooth",block:"center"})}},p=u=>e.jsx("div",{className:"bg-neutral-950 rounded-lg overflow-hidden border border-neutral-800 max-h-[420px] overflow-y-auto",children:e.jsx("pre",{className:"text-label font-mono leading-relaxed overflow-x-auto",children:e.jsx("code",{children:b.map((m,v)=>{const S=v+1;return e.jsxs("div",{ref:M=>{u.current[v]=M},className:`flex ${x(S)?"bg-brand/15":""}`,children:[e.jsx("span",{className:"select-none text-neutral-600 pr-3 pl-3 text-right w-10 shrink-0 border-r border-neutral-800 tabular-nums",children:S}),h&&h[v]!=null?e.jsx("span",{className:"pl-3 whitespace-pre text-neutral-200","data-testid":"walk-shiki-line",dangerouslySetInnerHTML:{__html:h[v]||" "}}):e.jsx("span",{className:"text-neutral-200 pl-3 whitespace-pre",children:m||" "})]},v)})})})}),y=e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-caption font-bold text-ink-muted",children:a("artifact.codewalk.sectionLabel")}),n.annotations.map((u,m)=>e.jsxs("button",{onClick:()=>k(m),"data-testid":`annotation-${m}`,className:`w-full text-left p-2.5 rounded-lg border transition-colors ${r===m?"border-brand bg-brand/10":"border-[var(--border-faint)] hover:border-[var(--border)]"}`,children:[e.jsx("div",{className:"text-caption font-bold text-brand mb-0.5",children:u.lineEnd!==u.lineStart?a("artifact.codewalk.lineRange",{a:u.lineStart,b:u.lineEnd}):a("artifact.codewalk.lineSingle",{n:u.lineStart})}),e.jsx("div",{className:"text-body text-ink-muted leading-relaxed",children:u.note})]},m))]});return t==="canvas"?e.jsx("div",{className:"w-fit","data-testid":"codewalk-canvas-content",children:p(f)}):e.jsxs("div",{className:"surface-card p-4","data-testid":"artifact-code-walkthrough",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 mb-3",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx(de,{className:"w-4 h-4 text-ink-muted shrink-0"}),e.jsx("h3",{className:"text-body font-bold text-ink truncate",children:n.title}),e.jsx("span",{className:"text-caption font-bold px-1.5 py-0.5 rounded bg-surface-3 text-ink-muted font-mono shrink-0",children:n.language})]}),e.jsx("button",{onClick:()=>o(!0),"data-testid":"codewalk-expand","aria-label":a("artifact.viewer.open"),"data-tooltip":a("artifact.viewer.open"),className:"w-6 h-6 rounded border border-[var(--border)] text-ink-muted hover:bg-surface-3 flex items-center justify-center shrink-0",children:e.jsx(K,{className:"w-3.5 h-3.5"})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-3",children:[e.jsx("div",{onClick:()=>{c||o(!0)},style:{touchAction:"pan-x pan-y"},"data-noswipe":"",children:p(d)}),y]}),n.warnings&&n.warnings.length>0&&e.jsxs("div",{className:"mt-2 text-caption text-warning flex items-start gap-1","data-testid":"artifact-warnings",children:[e.jsx(T,{className:"w-3.5 h-3.5 shrink-0 mt-0.5"}),e.jsx("span",{children:n.warnings.join("; ")})]}),c&&e.jsx(H,{title:n.title,onClose:()=>o(!1),children:e.jsx("div",{className:"h-full w-full rounded-xl overflow-hidden bg-surface-0/60",children:e.jsx(B,{testid:"codewalk-modal-stage",children:e.jsx(V,{data:s,variant:"canvas"})})})})]})}function Ae({data:s,onPickAction:t}){const n=s,a=R(),[r,i]=g.useState(null),c=o=>{r||(i(o.id),t==null||t(`${a("guess.pickedPrefix")}${o.label}`))};return e.jsxs("div",{className:"surface-card p-4","data-testid":"artifact-guess",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(me,{className:"w-4 h-4 text-accent"}),e.jsx("span",{className:"text-label font-bold text-accent",children:a("guess.header")})]}),e.jsx("div",{className:"text-body text-ink font-medium mb-3 leading-relaxed",children:n.prompt}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 mb-2",children:n.options.map(o=>{const d=r===o.id,f=r!==null;return e.jsxs("button",{onClick:()=>c(o),disabled:f,"data-testid":`guess-option-${o.id}`,className:`text-body p-2.5 rounded-lg border-2 font-medium transition-colors text-left flex items-center justify-between gap-2 ${d?"border-accent bg-accent/10 text-accent":f?"border-[var(--border-faint)] text-ink-faint cursor-default":"border-[var(--border)] text-ink-muted hover:border-accent hover:text-accent cursor-pointer"}`,children:[e.jsx("span",{children:o.label}),d&&e.jsx(D,{className:"w-4 h-4 shrink-0"})]},o.id)})}),r&&e.jsx("div",{className:"text-label text-ink-muted mt-1","data-testid":"guess-picked-hint",children:a("guess.waitReveal")}),n.warnings&&n.warnings.length>0&&e.jsx("div",{className:"mt-2 text-caption text-warning","data-testid":"artifact-warnings",children:n.warnings.join("; ")})]})}function Pe({data:s,onQuizAnswered:t,quizMastery:n,onPickAction:a,onQuizCompleted:r,variant:i="card"}){const c=s;if(!c||!c.artifactType)return e.jsx(F,{data:s});switch(c.artifactType){case"concept_map":return e.jsx(Se,{data:s,variant:i});case"quiz":return e.jsx(Re,{data:s,onAnswered:t,quizMastery:n,onPickAction:a,onQuizCompleted:r});case"compare_table":return e.jsx(U,{data:s,variant:i});case"diagram":return e.jsx(ue,{data:s,variant:i});case"code_walkthrough":return e.jsx(V,{data:s,variant:i});case"guess":return e.jsx(Ae,{data:s,onPickAction:a});default:return e.jsx(F,{data:s})}}function F({data:s}){var n;const t=R();return e.jsxs("div",{className:"surface-card p-4 text-body text-ink-muted","data-testid":"artifact-unknown",children:[e.jsxs("div",{className:"font-bold mb-1 flex items-center gap-1.5",children:[e.jsx(he,{className:"w-4 h-4"}),t("artifact.unknownHeader")]}),e.jsx("pre",{className:"text-caption overflow-x-auto text-ink-muted",children:(n=JSON.stringify(s,null,2))==null?void 0:n.slice(0,200)})]})}export{Pe as ArtifactRenderer,V as CodeWalkthroughArtifact,U as CompareTableArtifact,Se as ConceptMapArtifact,Ae as GuessArtifact,ue as MermaidArtifact,Re as QuizArtifact};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,l as s,F as n,d as i}from"./mermaid.core-
|
|
1
|
+
import{_ as e,l as s,F as n,d as i}from"./mermaid.core-DP9HBKfF.js";import{p}from"./cynefin-OW5HDTMX-DOvceb57.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";import"./transform-Bd_a5eGM.js";var g={parse:e(async r=>{const a=await p("info",r);s.debug(a)},"parse")},d={version:"11.17.2"},v=e(()=>d.version,"getVersion"),m={getVersion:v},c=e((r,a,o)=>{s.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=n(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),l={draw:c},y={parser:g,db:m,renderer:l};export{y as diagram};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as i}from"./cynefin-OW5HDTMX-GVF3BKWE-
|
|
1
|
+
import{p as i}from"./cynefin-OW5HDTMX-GVF3BKWE-CyNo44Ct.js";import{_ as e,l as o,G as n,d as p}from"./render-O7CIS3YK-Ca_t2BjR.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";import"./mermaid-layout-elk.core-BDxAYedV.js";import"./transform-Bd_a5eGM.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var g={parse:e(async r=>{const a=await i("info",r);o.debug(a)},"parse")},d={version:"11.17.0"},m=e(()=>d.version,"getVersion"),v={getVersion:m},c=e((r,a,s)=>{o.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=n(a);p(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${s}`)},"draw"),l={draw:c},z={parser:g,db:v,renderer:l};export{z as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as o,c as ht,H as dt,G as yt,aI as pt,p as ft,i as gt,n as st,a as kt,b as mt,g as wt,s as _t,o as xt,d as bt}from"./render-O7CIS3YK-
|
|
1
|
+
import{_ as o,c as ht,H as dt,G as yt,aI as pt,p as ft,i as gt,n as st,a as kt,b as mt,g as wt,s as _t,o as xt,d as bt}from"./render-O7CIS3YK-Ca_t2BjR.js";import{_ as $}from"./mermaid-layout-elk.core-BDxAYedV.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";import"./transform-Bd_a5eGM.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var et=(function(){var e=o(function(P,t,s,i){for(s=s||{},i=P.length;i--;s[P[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],b=[1,6,7,11,13,14],D={trace:o($(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o($(function(t,s,i,u,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(b,[2,8]),e(b,[2,9]),e(b,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(b,[2,11]),e(b,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o($(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),"parseError"),parse:o($(function(t){var s=this,i=[0],u=[],f=[null],n=[],v=this.table,w="",L=0,E=0,T=2,I=1,V=n.slice.call(arguments,1),x=Object.create(this.lexer),R={yy:{}};for(var G in this.yy)Object.prototype.hasOwnProperty.call(this.yy,G)&&(R.yy[G]=this.yy[G]);x.setInput(t,R.yy),R.yy.lexer=x,R.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var M=x.yylloc;n.push(M);var O=x.options&&x.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(B){i.length=i.length-2*B,f.length=f.length-B,n.length=n.length-B}$(z,"popStack"),o(z,"popStack");function F(){var B;return B=u.pop()||x.lex()||I,typeof B!="number"&&(B instanceof Array&&(u=B,B=u.pop()),B=s.symbols_[B]||B),B}$(F,"lex"),o(F,"lex");for(var A,j,N,Q,U={},Y,W,it,K;;){if(j=i[i.length-1],this.defaultActions[j]?N=this.defaultActions[j]:((A===null||typeof A>"u")&&(A=F()),N=v[j]&&v[j][A]),typeof N>"u"||!N.length||!N[0]){var J="";K=[];for(Y in v[j])this.terminals_[Y]&&Y>T&&K.push("'"+this.terminals_[Y]+"'");x.showPosition?J="Parse error on line "+(L+1)+`:
|
|
2
2
|
`+x.showPosition()+`
|
|
3
3
|
Expecting `+K.join(", ")+", got '"+(this.terminals_[A]||A)+"'":J="Parse error on line "+(L+1)+": Unexpected "+(A==I?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(J,{text:x.match,token:this.terminals_[A]||A,line:x.yylineno,loc:M,expected:K})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+A);switch(N[0]){case 1:i.push(A),f.push(x.yytext),n.push(x.yylloc),i.push(N[1]),A=null,E=x.yyleng,w=x.yytext,L=x.yylineno,M=x.yylloc;break;case 2:if(W=this.productions_[N[1]][1],U.$=f[f.length-W],U._$={first_line:n[n.length-(W||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(W||1)].first_column,last_column:n[n.length-1].last_column},O&&(U._$.range=[n[n.length-(W||1)].range[0],n[n.length-1].range[1]]),Q=this.performAction.apply(U,[w,E,L,R.yy,N[1],f,n].concat(V)),typeof Q<"u")return Q;W&&(i=i.slice(0,-1*W*2),f=f.slice(0,-1*W),n=n.slice(0,-1*W)),i.push(this.productions_[N[1]][0]),f.push(U.$),n.push(U._$),it=v[i[i.length-2]][i[i.length-1]],i.push(it);break;case 3:return!0}}return!0},"parse"),"parse")},C=(function(){var P={EOF:1,parseError:o($(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
package/web/assets/{ishikawaDiagram-5VMMS53U-CwfpIEur.js → ishikawaDiagram-5VMMS53U-YiLbdVr3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as o,c as ot,G as ut,F as dt,a6 as yt,q as ft,j as pt,o as it,a as gt,b as kt,g as mt,s as wt,p as _t,d as bt}from"./mermaid.core-
|
|
1
|
+
import{_ as o,c as ot,G as ut,F as dt,a6 as yt,q as ft,j as pt,o as it,a as gt,b as kt,g as mt,s as wt,p as _t,d as bt}from"./mermaid.core-DP9HBKfF.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";import"./transform-Bd_a5eGM.js";var tt=(function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],N={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,u,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],u=[],p=[null],n=[],v=this.table,w="",I=0,S=0,L=2,E=1,R=n.slice.call(arguments,1),b=Object.create(this.lexer),C={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(C.yy[W]=this.yy[W]);b.setInput(t,C.yy),C.yy.lexer=b,C.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var T=b.yylloc;n.push(T);var D=b.options&&b.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(j,"popStack");function z(){var P;return P=u.pop()||b.lex()||E,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}o(z,"lex");for(var A,F,B,K,H={},X,V,et,Y;;){if(F=i[i.length-1],this.defaultActions[F]?B=this.defaultActions[F]:((A===null||typeof A>"u")&&(A=z()),B=v[F]&&v[F][A]),typeof B>"u"||!B.length||!B[0]){var Q="";Y=[];for(X in v[F])this.terminals_[X]&&X>L&&Y.push("'"+this.terminals_[X]+"'");b.showPosition?Q="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+Y.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on line "+(I+1)+": Unexpected "+(A==E?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Q,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:T,expected:Y})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+A);switch(B[0]){case 1:i.push(A),p.push(b.yytext),n.push(b.yylloc),i.push(B[1]),A=null,S=b.yyleng,w=b.yytext,I=b.yylineno,T=b.yylloc;break;case 2:if(V=this.productions_[B[1]][1],H.$=p[p.length-V],H._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},D&&(H._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(H,[w,S,I,C.yy,B[1],p,n].concat(R)),typeof K<"u")return K;V&&(i=i.slice(0,-1*V*2),p=p.slice(0,-1*V),n=n.slice(0,-1*V)),i.push(this.productions_[B[1]][0]),p.push(H.$),n.push(H._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var M={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
package/web/assets/{journeyDiagram-3NMN7TZE-D7yc5_ha.js → journeyDiagram-3NMN7TZE-o507o7V3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./chunk-5VM5RSS4-
|
|
1
|
+
import{g as gt}from"./chunk-5VM5RSS4-JiyA-wo9.js";import{a as mt,b as lt,h as xt,d as kt}from"./chunk-F27PBJKO-DqqFugb1.js";import{g as _t,s as vt,a as bt,b as wt,p as Tt,o as St,_ as s,c as R,d as $t,q as Mt}from"./mermaid.core-DP9HBKfF.js";import{s as X}from"./transform-Bd_a5eGM.js";import{d as it}from"./arc-D2ssjz3E.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as mt}from"./chunk-CXNFBKHE-
|
|
1
|
+
import{g as mt}from"./chunk-CXNFBKHE-DzkNdxBi.js";import{a as xt,b as ht,h as kt,d as _t}from"./chunk-LV3HUYFY-DXfPtXuN.js";import{_ as k}from"./mermaid-layout-elk.core-BDxAYedV.js";import{g as bt,s as vt,a as wt,b as Tt,o as St,n as $t,_ as s,c as L,d as Mt,p as Et}from"./render-O7CIS3YK-Ca_t2BjR.js";import{s as U}from"./transform-Bd_a5eGM.js";import{d as st}from"./arc-D2ssjz3E.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var J=(function(){var t=s(function(h,i,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=i);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],p=[1,10],r=[1,11],u=[1,12],f=[1,13],o=[1,14],g={trace:s(k(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(k(function(i,n,l,y,d,c,v){var _=c.length-1;switch(d){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 13:y.addTask(c[_-1],c[_]),this.$="task";break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:p,14:r,16:u,17:f,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:p,14:r,16:u,17:f,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(k(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),"parseError"),parse:s(k(function(i){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,_="",P=0,et=0,pt=2,rt=1,ft=c.slice.call(arguments,1),b=Object.create(this.lexer),A={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(A.yy[Y]=this.yy[Y]);b.setInput(i,A.yy),A.yy.lexer=b,A.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;c.push(q);var gt=b.options&&b.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(T){l.length=l.length-2*T,d.length=d.length-T,c.length=c.length-T}k(it,"popStack"),s(it,"popStack");function H(){var T;return T=y.pop()||b.lex()||rt,typeof T!="number"&&(T instanceof Array&&(y=T,T=y.pop()),T=n.symbols_[T]||T),T}k(H,"lex"),s(H,"lex");for(var w,F,S,X,R={},z,E,nt,W;;){if(F=l[l.length-1],this.defaultActions[F]?S=this.defaultActions[F]:((w===null||typeof w>"u")&&(w=H()),S=v[F]&&v[F][w]),typeof S>"u"||!S.length||!S[0]){var G="";W=[];for(z in v[F])this.terminals_[z]&&z>pt&&W.push("'"+this.terminals_[z]+"'");b.showPosition?G="Parse error on line "+(P+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+W.join(", ")+", got '"+(this.terminals_[w]||w)+"'":G="Parse error on line "+(P+1)+": Unexpected "+(w==rt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(G,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:q,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+w);switch(S[0]){case 1:l.push(w),d.push(b.yytext),c.push(b.yylloc),l.push(S[1]),w=null,et=b.yyleng,_=b.yytext,P=b.yylineno,q=b.yylloc;break;case 2:if(E=this.productions_[S[1]][1],R.$=d[d.length-E],R._$={first_line:c[c.length-(E||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(E||1)].first_column,last_column:c[c.length-1].last_column},gt&&(R._$.range=[c[c.length-(E||1)].range[0],c[c.length-1].range[1]]),X=this.performAction.apply(R,[_,et,P,A.yy,S[1],d,c].concat(ft)),typeof X<"u")return X;E&&(l=l.slice(0,-1*E*2),d=d.slice(0,-1*E),c=c.slice(0,-1*E)),l.push(this.productions_[S[1]][0]),d.push(R.$),c.push(R._$),nt=v[l[l.length-2]][l[l.length-1]],l.push(nt);break;case 3:return!0}}return!0},"parse"),"parse")},m=(function(){var h={EOF:1,parseError:s(k(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),"parseError"),setInput:s(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var n=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as c,l as se,c as z,G as ye,at as me,au as be,av as _e,aq as ke,D as q,h as M,L as Ee,M as Se,an as Ne,ao as he,ap as ue}from"./render-O7CIS3YK-
|
|
1
|
+
import{_ as c,l as se,c as z,G as ye,at as me,au as be,av as _e,aq as ke,D as q,h as M,L as Ee,M as Se,an as Ne,ao as he,ap as ue}from"./render-O7CIS3YK-Ca_t2BjR.js";import{g as xe}from"./chunk-CXNFBKHE-DzkNdxBi.js";import{_ as k}from"./mermaid-layout-elk.core-BDxAYedV.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";import"./transform-Bd_a5eGM.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var te=(function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],E=[1,16],f=[1,20],h=[1,19],O=[6,7,8],w=[1,26],A=[1,24],x=[1,25],i=[6,7,11],U=[1,31],v=[6,7,11,24],V=[1,6,13,16,17,20,23],j=[1,35],H=[1,36],T=[1,6,7,11,13,16,17,20,23],W=[1,38],B={trace:c(k(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(k(function(s,n,a,o,u,e,G){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(O,[2,3]),{1:[2,2]},t(O,[2,4]),t(O,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:w,7:A,10:23,11:x},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:U}),t(i,[2,22]),t(i,[2,23]),t(v,[2,25]),t(v,[2,26]),t(v,[2,28],{20:[1,32]}),{21:[1,33]},{6:w,7:A,10:34,11:x},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(V,[2,14],{7:j,11:H}),t(T,[2,8]),t(T,[2,9]),t(T,[2,10]),t(i,[2,16],{15:37,24:U}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:W}),t(v,[2,31]),{21:[1,39]},{22:[1,40]},t(V,[2,13],{7:j,11:H}),t(T,[2,11]),t(T,[2,12]),t(i,[2,15],{24:W}),t(v,[2,30]),{22:[1,41]},t(v,[2,27]),t(v,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(k(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),"parseError"),parse:c(k(function(s){var n=this,a=[0],o=[],u=[null],e=[],G=this.table,l="",X=0,ae=0,de=2,oe=1,pe=e.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Q=b.yylloc;e.push(Q);var fe=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function le(N){a.length=a.length-2*N,u.length=u.length-N,e.length=e.length-N}k(le,"popStack"),c(le,"popStack");function Z(){var N;return N=o.pop()||b.lex()||oe,typeof N!="number"&&(N instanceof Array&&(o=N,N=o.pop()),N=n.symbols_[N]||N),N}k(Z,"lex"),c(Z,"lex");for(var S,P,D,$,F={},K,C,ce,Y;;){if(P=a[a.length-1],this.defaultActions[P]?D=this.defaultActions[P]:((S===null||typeof S>"u")&&(S=Z()),D=G[P]&&G[P][S]),typeof D>"u"||!D.length||!D[0]){var ee="";Y=[];for(K in G[P])this.terminals_[K]&&K>de&&Y.push("'"+this.terminals_[K]+"'");b.showPosition?ee="Parse error on line "+(X+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+Y.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ee="Parse error on line "+(X+1)+": Unexpected "+(S==oe?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ee,{text:b.match,token:this.terminals_[S]||S,line:b.yylineno,loc:Q,expected:Y})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+S);switch(D[0]){case 1:a.push(S),u.push(b.yytext),e.push(b.yylloc),a.push(D[1]),S=null,ae=b.yyleng,l=b.yytext,X=b.yylineno,Q=b.yylloc;break;case 2:if(C=this.productions_[D[1]][1],F.$=u[u.length-C],F._$={first_line:e[e.length-(C||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(C||1)].first_column,last_column:e[e.length-1].last_column},fe&&(F._$.range=[e[e.length-(C||1)].range[0],e[e.length-1].range[1]]),$=this.performAction.apply(F,[l,ae,X,R.yy,D[1],u,e].concat(pe)),typeof $<"u")return $;C&&(a=a.slice(0,-1*C*2),u=u.slice(0,-1*C),e=e.slice(0,-1*C)),a.push(this.productions_[D[1]][0]),u.push(F.$),e.push(F._$),ce=G[a[a.length-2]][a[a.length-1]],a.push(ce);break;case 3:return!0}}return!0},"parse"),"parse")},y=(function(){var _={EOF:1,parseError:c(k(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),"parseError"),setInput:c(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
package/web/assets/{kanban-definition-UXKFOSKX-jCn6YBMx.js → kanban-definition-UXKFOSKX-DPIPqDMI.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as c,l as te,c as W,F as fe,a0 as ye,a1 as be,a2 as me,Y as _e,D as Y,i as G,K as ke,L as Ee,V as Se,W as le,X as ce}from"./mermaid.core-
|
|
1
|
+
import{_ as c,l as te,c as W,F as fe,a0 as ye,a1 as be,a2 as me,Y as _e,D as Y,i as G,K as ke,L as Ee,V as Se,W as le,X as ce}from"./mermaid.core-DP9HBKfF.js";import{g as Ne}from"./chunk-5VM5RSS4-JiyA-wo9.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";import"./transform-Bd_a5eGM.js";var $=(function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],k=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],M=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],U=[1,35],j=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:M}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(P,[2,14],{7:U,11:j}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:M}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:U,11:j}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);m.setInput(s,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;e.push(q);var de=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var E,R,v,Q,F={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((E===null||typeof E>"u")&&(E=ae()),v=B[R]&&B[R][E]),typeof v>"u"||!v.length||!v[0]){var Z="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");m.showPosition?Z="Parse error on line "+(z+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+K.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(z+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:q,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+E);switch(v[0]){case 1:a.push(E),u.push(m.yytext),e.push(m.yylloc),a.push(v[1]),E=null,ie=m.yyleng,l=m.yytext,z=m.yylineno,q=m.yylloc;break;case 2:if(I=this.productions_[v[1]][1],F.$=u[u.length-I],F._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(F._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Q=this.performAction.apply(F,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof Q<"u")return Q;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(F.$),e.push(F._$),oe=B[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},y=(function(){var _={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as d}from"./mermaid-layout-elk.core-
|
|
1
|
+
import{_ as d}from"./mermaid-layout-elk.core-BDxAYedV.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";var Z0,B=(Z0=class extends Error{constructor(e,t){var a="KaTeX parse error: "+e,i,s,u=t&&t.loc;if(u&&u.start<=u.end){var h=u.lexer.input;i=u.start,s=u.end,i===h.length?a+=" at end of input: ":a+=" at position "+(i+1)+": ";var c=h.slice(i,s).replace(/[^]/g,"$&̲"),p;i>15?p="…"+h.slice(i-15,i):p=h.slice(0,i);var g;s+15<h.length?g=h.slice(s,s+15)+"…":g=h.slice(s),a+=p+c+g}super(a),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Z0.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=e}},d(Z0,"ParseError"),Z0),Ca=/([A-Z])/g,za=d(r=>r.replace(Ca,"-$1").toLowerCase(),"hyphenate"),Ma={"&":"&",">":">","<":"<",'"':""","'":"'"},Ea=/[&><"']/g,s0=d(r=>String(r).replace(Ea,e=>Ma[e]),"escape"),at=d(r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?at(r.body[0]):r:r.type==="font"?at(r.body):r,"getBaseElem"),Ta=new Set(["mathord","textord","atom"]),F0=d(r=>Ta.has(at(r).type),"isCharacterBox"),Da=d(r=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(r);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},"protocolFromUrl"),Lt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:d(r=>"#"+r,"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:d((r,e)=>(e.push(r),e),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:d(r=>Math.max(0,r),"processor"),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:d(r=>Math.max(0,r),"processor"),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:d(r=>Math.max(0,r),"processor"),cli:"-e, --max-expand <n>",cliProcessor:d(r=>r==="Infinity"?1/0:parseInt(r),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}};function c1(r){if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}d(c1,"getImplicitDefault");function d1(r){if(r.default!==void 0)return r.default;var e=Array.isArray(r.type)?r.type[0]:r.type;return c1(e)}d(d1,"getDefaultValue");function v1(r,e,t,a){var i=t[e];r[e]=i!==void 0?a.processor?a.processor(i):i:d1(a)}d(v1,"applySetting");var ne,lr=(ne=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t of Object.keys(Lt)){var a=Lt[t];a&&v1(this,t,e,a)}}reportNonstrict(e,t,a){var i=this.strict;if(typeof i=="function"&&(i=i(e,t,a)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new B("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var i=this.strict;if(typeof i=="function")try{i=i(e,t,a)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=Da(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}},d(ne,"Settings"),ne),se,L0=(se=class{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return k0[Fa[this.id]]}sub(){return k0[qa[this.id]]}fracNum(){return k0[Na[this.id]]}fracDen(){return k0[Ra[this.id]]}cramp(){return k0[Ia[this.id]]}text(){return k0[Oa[this.id]]}isTight(){return this.size>=2}},d(se,"Style"),se),ur=0,st=1,ie=2,T0=3,Re=4,g0=5,we=6,u0=7,k0=[new L0(ur,0,!1),new L0(st,0,!0),new L0(ie,1,!1),new L0(T0,1,!0),new L0(Re,2,!1),new L0(g0,2,!0),new L0(we,3,!1),new L0(u0,3,!0)],Fa=[Re,g0,Re,g0,we,u0,we,u0],qa=[g0,g0,g0,g0,u0,u0,u0,u0],Na=[ie,T0,Re,g0,we,u0,we,u0],Ra=[T0,T0,g0,g0,u0,u0,u0,u0],Ia=[st,st,T0,T0,g0,g0,u0,u0],Oa=[ur,st,ie,T0,ie,T0,ie,T0],I={DISPLAY:k0[ur],TEXT:k0[ie],SCRIPT:k0[Re],SCRIPTSCRIPT:k0[we]},Pt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function f1(r){for(var e=0;e<Pt.length;e++)for(var t=Pt[e],a=0;a<t.blocks.length;a++){var i=t.blocks[a];if(r>=i[0]&&r<=i[1])return t.name}return null}d(f1,"scriptFromCodepoint");var it=[];Pt.forEach(r=>r.blocks.forEach(e=>it.push(...e)));function or(r){for(var e=0;e<it.length;e+=2)if(r>=it[e]&&r<=it[e+1])return!0;return!1}d(or,"supportedCodepoint");var a0=d(r=>r+" "+r,"doubleBrushStroke"),ae=80,Ha=d(function(e,t){return"M95,"+(622+e+t)+`
|
|
2
2
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
3
3
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
4
4
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aU as B,aV as y,aW as ye,aX as V,aY as U,aZ as Ue,a_ as oe,a$ as We,b0 as Cn,b1 as qe,b2 as _n,b3 as In,b4 as jn,b5 as ue,b6 as An,b7 as Mn,b8 as xe,b9 as Oe,ba as fe,bb as de,bc as G,bd as Xe,be as He,bf as Sn,bg as T,bh as Rn,bi as $n,bj as Fn,bk as Ee,bl as Bn,bm as Ke,bn as N,bo as Gn,bp as Dn,bq as Yn,br as R,bs as ze,bt as Ze,bu as Vn,bv as se,bw as Je,bx as Un,by as Qe,bz as Wn,bA as qn,S as x,bB as c,bC as Xn,bD as m,bE as M,bF as P,bG as W}from"./mermaid.core-C-NqYAhX.js";var Hn=/\s/;function Kn(e){for(var n=e.length;n--&&Hn.test(e.charAt(n)););return n}var zn=/^\s+/;function Zn(e){return e&&e.slice(0,Kn(e)+1).replace(zn,"")}var Te=NaN,Jn=/^[-+]0x[0-9a-f]+$/i,Qn=/^0b[01]+$/i,er=/^0o[0-7]+$/i,nr=parseInt;function rr(e){if(typeof e=="number")return e;if(B(e))return Te;if(y(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=y(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Zn(e);var r=Qn.test(e);return r||er.test(e)?nr(e.slice(2),r?2:8):Jn.test(e)?Te:+e}var Pe=1/0,tr=17976931348623157e292;function $(e){if(!e)return e===0?e:0;if(e=rr(e),e===Pe||e===-Pe){var n=e<0?-1:1;return n*tr}return e===e?e:0}function ir(e){var n=$(e),r=n%1;return n===n?r?n-r:n:0}var Le=Object.create,ar=(function(){function e(){}return function(n){if(!y(n))return{};if(Le)return Le(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}})();function or(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}function q(e,n,r){n=="__proto__"&&ye?ye(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var ur=Object.prototype,fr=ur.hasOwnProperty;function X(e,n,r){var t=e[n];(!(fr.call(e,n)&&V(t,r))||r===void 0&&!(n in e))&&q(e,n,r)}function dr(e,n,r,t){var i=!r;r||(r={});for(var o=-1,a=n.length;++o<a;){var u=n[o],f=void 0;f===void 0&&(f=e[u]),i?q(r,u,f):X(r,u,f)}return r}function I(e,n,r){if(!y(r))return!1;var t=typeof n;return(t=="number"?U(r)&&Ue(n,r.length):t=="string"&&n in r)?V(r[n],e):!1}function sr(e){return oe(function(n,r){var t=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&I(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),n=Object(n);++t<i;){var u=r[t];u&&e(n,u,t,o)}return n})}function cr(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var lr=Object.prototype,hr=lr.hasOwnProperty;function vr(e){if(!y(e))return cr(e);var n=We(e),r=[];for(var t in e)t=="constructor"&&(n||!hr.call(e,t))||r.push(t);return r}function H(e){return U(e)?Cn(e,!0):vr(e)}function k(e){var n=e==null?0:e.length;return n?qe(e):[]}function pr(e){return _n(In(e,void 0,k),e+"")}var en=jn(Object.getPrototypeOf,Object),br="[object Object]",wr=Function.prototype,gr=Object.prototype,nn=wr.toString,mr=gr.hasOwnProperty,yr=nn.call(Object);function xr(e){if(!ue(e)||An(e)!=br)return!1;var n=en(e);if(n===null)return!0;var r=mr.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&nn.call(r)==yr}var rn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ne=rn&&typeof module=="object"&&module&&!module.nodeType&&module,Or=Ne&&Ne.exports===rn,ke=Or?Mn.Buffer:void 0,Ce=ke?ke.allocUnsafe:void 0;function tn(e,n){if(n)return e.slice();var r=e.length,t=Ce?Ce(r):new e.constructor(r);return e.copy(t),t}var Er=Object.prototype,Tr=Er.hasOwnProperty;function Pr(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Tr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ce(e){var n=new e.constructor(e.byteLength);return new xe(n).set(new xe(e)),n}function Lr(e,n){var r=ce(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var Nr=/\w*$/;function kr(e){var n=new e.constructor(e.source,Nr.exec(e));return n.lastIndex=e.lastIndex,n}var _e=Oe?Oe.prototype:void 0,Ie=_e?_e.valueOf:void 0;function Cr(e){return Ie?Object(Ie.call(e)):{}}function an(e,n){var r=n?ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var _r="[object Boolean]",Ir="[object Date]",jr="[object Map]",Ar="[object Number]",Mr="[object RegExp]",Sr="[object Set]",Rr="[object String]",$r="[object Symbol]",Fr="[object ArrayBuffer]",Br="[object DataView]",Gr="[object Float32Array]",Dr="[object Float64Array]",Yr="[object Int8Array]",Vr="[object Int16Array]",Ur="[object Int32Array]",Wr="[object Uint8Array]",qr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Hr="[object Uint32Array]";function Kr(e,n,r){var t=e.constructor;switch(n){case Fr:return ce(e);case _r:case Ir:return new t(+e);case Br:return Lr(e);case Gr:case Dr:case Yr:case Vr:case Ur:case Wr:case qr:case Xr:case Hr:return an(e,r);case jr:return new t;case Ar:case Rr:return new t(e);case Mr:return kr(e);case Sr:return new t;case $r:return Cr(e)}}function on(e){return typeof e.constructor=="function"&&!We(e)?ar(en(e)):{}}var zr="[object Map]";function Zr(e){return ue(e)&&fe(e)==zr}var je=G&&G.isMap,Jr=je?de(je):Zr,Qr="[object Set]";function et(e){return ue(e)&&fe(e)==Qr}var Ae=G&&G.isSet,nt=Ae?de(Ae):et,rt=1,un="[object Arguments]",tt="[object Array]",it="[object Boolean]",at="[object Date]",ot="[object Error]",fn="[object Function]",ut="[object GeneratorFunction]",ft="[object Map]",dt="[object Number]",dn="[object Object]",st="[object RegExp]",ct="[object Set]",lt="[object String]",ht="[object Symbol]",vt="[object WeakMap]",pt="[object ArrayBuffer]",bt="[object DataView]",wt="[object Float32Array]",gt="[object Float64Array]",mt="[object Int8Array]",yt="[object Int16Array]",xt="[object Int32Array]",Ot="[object Uint8Array]",Et="[object Uint8ClampedArray]",Tt="[object Uint16Array]",Pt="[object Uint32Array]",b={};b[un]=b[tt]=b[pt]=b[bt]=b[it]=b[at]=b[wt]=b[gt]=b[mt]=b[yt]=b[xt]=b[ft]=b[dt]=b[dn]=b[st]=b[ct]=b[lt]=b[ht]=b[Ot]=b[Et]=b[Tt]=b[Pt]=!0;b[ot]=b[fn]=b[vt]=!1;function F(e,n,r,t,i,o){var a,u=n&rt;if(a!==void 0)return a;if(!y(e))return e;var f=T(e);if(f)a=Pr(e);else{var d=fe(e),s=d==fn||d==ut;if(Xe(e))return tn(e,u);if(d==dn||d==un||s&&!i)a=s?{}:on(e);else{if(!b[d])return i?e:{};a=Kr(e,d,u)}}o||(o=new He);var l=o.get(e);if(l)return l;o.set(e,a),nt(e)?e.forEach(function(v){a.add(F(v,n,r,v,e,o))}):Jr(e)&&e.forEach(function(v,w){a.set(w,F(v,n,r,w,e,o))});var h=Rn,p=f?void 0:h(e);return Sn(p||e,function(v,w){p&&(w=v,v=e[w]),X(a,w,F(v,n,r,w,e,o))}),a}var Lt=1,Nt=4;function kt(e){return F(e,Lt|Nt)}var sn=Object.prototype,Ct=sn.hasOwnProperty,_t=oe(function(e,n){e=Object(e);var r=-1,t=n.length,i=t>2?n[2]:void 0;for(i&&I(n[0],n[1],i)&&(t=1);++r<t;)for(var o=n[r],a=H(o),u=-1,f=a.length;++u<f;){var d=a[u],s=e[d];(s===void 0||V(s,sn[d])&&!Ct.call(e,d))&&(e[d]=o[d])}return e});function re(e,n,r){(r!==void 0&&!V(e[n],r)||r===void 0&&!(n in e))&&q(e,n,r)}function te(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}function It(e){return dr(e,H(e))}function jt(e,n,r,t,i,o,a){var u=te(e,r),f=te(n,r),d=a.get(f);if(d){re(e,r,d);return}var s=o?o(u,f,r+"",e,n,a):void 0,l=s===void 0;if(l){var h=T(f),p=!h&&Xe(f),v=!h&&!p&&$n(f);s=f,h||p||v?T(u)?s=u:Fn(u)?s=or(u):p?(l=!1,s=tn(f,!0)):v?(l=!1,s=an(f,!0)):s=[]:xr(f)||Ee(f)?(s=u,Ee(u)?s=It(u):(!y(u)||Bn(u))&&(s=on(f))):l=!1}l&&(a.set(f,s),i(s,f,t,o,a),a.delete(f)),re(e,r,s)}function cn(e,n,r,t,i){e!==n&&Ke(n,function(o,a){if(i||(i=new He),y(o))jt(e,n,a,r,cn,t,i);else{var u=t?t(te(e,a),o,a+"",e,n,i):void 0;u===void 0&&(u=o),re(e,a,u)}},H)}function D(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function At(e){return function(n,r,t){var i=Object(n);if(!U(n)){var o=N(r);n=Gn(n),r=function(u){return o(i[u],u,i)}}var a=e(n,r,t);return a>-1?i[o?n[a]:a]:void 0}}var Mt=Math.max;function St(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var i=r==null?0:ir(r);return i<0&&(i=Mt(t+i,0)),Dn(e,N(n),i)}var le=At(St);function ln(e,n){var r=-1,t=U(e)?Array(e.length):[];return Yn(e,function(i,o,a){t[++r]=n(i,o,a)}),t}function g(e,n){var r=T(e)?R:ln;return r(e,N(n))}function Rt(e,n){return e==null?e:Ke(e,ze(n),H)}function $t(e,n){return e&&Ze(e,ze(n))}function Ft(e,n){return e>n}var Bt=Object.prototype,Gt=Bt.hasOwnProperty;function Dt(e,n){return e!=null&&Gt.call(e,n)}function hn(e,n){return e!=null&&Vn(e,n,Dt)}function vn(e,n){return e<n}function K(e,n){var r={};return n=N(n),Ze(e,function(t,i,o){q(r,i,n(t,i,o))}),r}function he(e,n,r){for(var t=-1,i=e.length;++t<i;){var o=e[t],a=n(o);if(a!=null&&(u===void 0?a===a&&!B(a):r(a,u)))var u=a,f=o}return f}function O(e){return e&&e.length?he(e,se,Ft):void 0}var ie=sr(function(e,n,r){cn(e,n,r)});function j(e){return e&&e.length?he(e,se,vn):void 0}function ve(e,n){return e&&e.length?he(e,N(n),vn):void 0}function Yt(e,n,r,t){if(!y(e))return e;n=Je(n,e);for(var i=-1,o=n.length,a=o-1,u=e;u!=null&&++i<o;){var f=Un(n[i]),d=r;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(i!=a){var s=u[f];d=void 0,d===void 0&&(d=y(s)?s:Ue(n[i+1])?[]:{})}X(u,f,d),u=u[f]}return e}function Vt(e,n,r){for(var t=-1,i=n.length,o={};++t<i;){var a=n[t],u=Qe(e,a);r(u,a)&&Yt(o,Je(a,e),u)}return o}function Ut(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function Wt(e,n){if(e!==n){var r=e!==void 0,t=e===null,i=e===e,o=B(e),a=n!==void 0,u=n===null,f=n===n,d=B(n);if(!u&&!d&&!o&&e>n||o&&a&&f&&!u&&!d||t&&a&&f||!r&&f||!i)return 1;if(!t&&!o&&!d&&e<n||d&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!f)return-1}return 0}function qt(e,n,r){for(var t=-1,i=e.criteria,o=n.criteria,a=i.length,u=r.length;++t<a;){var f=Wt(i[t],o[t]);if(f){if(t>=u)return f;var d=r[t];return f*(d=="desc"?-1:1)}}return e.index-n.index}function Xt(e,n,r){n.length?n=R(n,function(o){return T(o)?function(a){return Qe(a,o.length===1?o[0]:o)}:o}):n=[se];var t=-1;n=R(n,de(N));var i=ln(e,function(o,a,u){var f=R(n,function(d){return d(o)});return{criteria:f,index:++t,value:o}});return Ut(i,function(o,a){return qt(o,a,r)})}function Ht(e,n){return Vt(e,n,function(r,t){return Wn(e,t)})}var Y=pr(function(e,n){return e==null?{}:Ht(e,n)}),Kt=Math.ceil,zt=Math.max;function Zt(e,n,r,t){for(var i=-1,o=zt(Kt((n-e)/(r||1)),0),a=Array(o);o--;)a[++i]=e,e+=r;return a}function Jt(e){return function(n,r,t){return t&&typeof t!="number"&&I(n,r,t)&&(r=t=void 0),n=$(n),r===void 0?(r=n,n=0):r=$(r),t=t===void 0?n<r?1:-1:$(t),Zt(n,r,t)}}var L=Jt(),S=oe(function(e,n){if(e==null)return[];var r=n.length;return r>1&&I(e,n[0],n[1])?n=[]:r>2&&I(n[0],n[1],n[2])&&(n=[n[0]]),Xt(e,qe(n),[])}),Qt=0;function pe(e){var n=++Qt;return qn(e)+n}function ei(e,n,r){for(var t=-1,i=e.length,o=n.length,a={};++t<i;){var u=t<o?n[t]:void 0;r(a,e[t],u)}return a}function ni(e,n){return ei(e||[],n||[],X)}class ri{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return Me(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&Me(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,ti)),t=t._prev;return"["+n.join(", ")+"]"}}function Me(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function ti(e,n){if(e!=="_next"&&e!=="_prev")return n}var ii=Xn(1);function ai(e,n){if(e.nodeCount()<=1)return[];var r=ui(e,n||ii),t=oi(r.graph,r.buckets,r.zeroIdx);return k(g(t,function(i){return e.outEdges(i.v,i.w)}))}function oi(e,n,r){for(var t=[],i=n[n.length-1],o=n[0],a;e.nodeCount();){for(;a=o.dequeue();)Z(e,n,r,a);for(;a=i.dequeue();)Z(e,n,r,a);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(a=n[u].dequeue(),a){t=t.concat(Z(e,n,r,a,!0));break}}}return t}function Z(e,n,r,t,i){var o=i?[]:void 0;return c(e.inEdges(t.v),function(a){var u=e.edge(a),f=e.node(a.v);i&&o.push({v:a.v,w:a.w}),f.out-=u,ae(n,r,f)}),c(e.outEdges(t.v),function(a){var u=e.edge(a),f=a.w,d=e.node(f);d.in-=u,ae(n,r,d)}),e.removeNode(t.v),o}function ui(e,n){var r=new x,t=0,i=0;c(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),c(e.edges(),function(u){var f=r.edge(u.v,u.w)||0,d=n(u),s=f+d;r.setEdge(u.v,u.w,s),i=Math.max(i,r.node(u.v).out+=d),t=Math.max(t,r.node(u.w).in+=d)});var o=L(i+t+3).map(function(){return new ri}),a=t+1;return c(r.nodes(),function(u){ae(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function ae(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function fi(e){var n=e.graph().acyclicer==="greedy"?ai(e,r(e)):di(e);c(n,function(t){var i=e.edge(t);e.removeEdge(t),i.forwardName=t.name,i.reversed=!0,e.setEdge(t.w,t.v,i,pe("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function di(e){var n=[],r={},t={};function i(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,c(e.outEdges(o),function(a){Object.prototype.hasOwnProperty.call(r,a.w)?n.push(a):i(a.w)}),delete r[o])}return c(e.nodes(),i),n}function si(e){c(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function C(e,n,r,t){var i;do i=pe(t);while(e.hasNode(i));return r.dummy=n,e.setNode(i,r),i}function ci(e){var n=new x().setGraph(e.graph());return c(e.nodes(),function(r){n.setNode(r,e.node(r))}),c(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),n}function pn(e){var n=new x({multigraph:e.isMultigraph()}).setGraph(e.graph());return c(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),c(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function Se(e,n){var r=e.x,t=e.y,i=n.x-r,o=n.y-t,a=e.width/2,u=e.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var f,d;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),f=u*i/o,d=u):(i<0&&(a=-a),f=a,d=a*o/i),{x:r+f,y:t+d}}function z(e){var n=g(L(bn(e)+1),function(){return[]});return c(e.nodes(),function(r){var t=e.node(r),i=t.rank;m(i)||(n[i][t.order]=r)}),n}function li(e){var n=j(g(e.nodes(),function(r){return e.node(r).rank}));c(e.nodes(),function(r){var t=e.node(r);hn(t,"rank")&&(t.rank-=n)})}function hi(e){var n=j(g(e.nodes(),function(o){return e.node(o).rank})),r=[];c(e.nodes(),function(o){var a=e.node(o).rank-n;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=e.graph().nodeRankFactor;c(r,function(o,a){m(o)&&a%i!==0?--t:t&&c(o,function(u){e.node(u).rank+=t})})}function Re(e,n,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(e,"border",i,n)}function bn(e){return O(g(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function vi(e,n){var r={lhs:[],rhs:[]};return c(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function pi(e,n){return n()}function bi(e){function n(r){var t=e.children(r),i=e.node(r);if(t.length&&c(t,n),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)$e(e,"borderLeft","_bl",r,i,o),$e(e,"borderRight","_br",r,i,o)}}c(e.children(),n)}function $e(e,n,r,t,i,o){var a={width:0,height:0,rank:o,borderType:n},u=i[n][o-1],f=C(e,"border",a,r);i[n][o]=f,e.setParent(f,t),u&&e.setEdge(u,f,{weight:1})}function wi(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&wn(e)}function gi(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&mi(e),(n==="lr"||n==="rl")&&(yi(e),wn(e))}function wn(e){c(e.nodes(),function(n){Fe(e.node(n))}),c(e.edges(),function(n){Fe(e.edge(n))})}function Fe(e){var n=e.width;e.width=e.height,e.height=n}function mi(e){c(e.nodes(),function(n){J(e.node(n))}),c(e.edges(),function(n){var r=e.edge(n);c(r.points,J),Object.prototype.hasOwnProperty.call(r,"y")&&J(r)})}function J(e){e.y=-e.y}function yi(e){c(e.nodes(),function(n){Q(e.node(n))}),c(e.edges(),function(n){var r=e.edge(n);c(r.points,Q),Object.prototype.hasOwnProperty.call(r,"x")&&Q(r)})}function Q(e){var n=e.x;e.x=e.y,e.y=n}function xi(e){e.graph().dummyChains=[],c(e.edges(),function(n){Oi(e,n)})}function Oi(e,n){var r=n.v,t=e.node(r).rank,i=n.w,o=e.node(i).rank,a=n.name,u=e.edge(n),f=u.labelRank;if(o!==t+1){e.removeEdge(n);var d=void 0,s,l;for(l=0,++t;t<o;++l,++t)u.points=[],d={width:0,height:0,edgeLabel:u,edgeObj:n,rank:t},s=C(e,"edge",d,"_d"),t===f&&(d.width=u.width,d.height=u.height,d.dummy="edge-label",d.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},a),l===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,i,{weight:u.weight},a)}}function Ei(e){c(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,i;for(e.setEdge(r.edgeObj,t);r.dummy;)i=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=i,r=e.node(n)})}function be(e){var n={};function r(t){var i=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return i.rank;n[t]=!0;var o=j(g(e.outEdges(t),function(a){return r(a.w)-e.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}c(e.sources(),r)}function A(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function gn(e){var n=new x({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var i,o;Ti(n,e)<t;)i=Pi(n,e),o=n.hasNode(i.v)?A(e,i):-A(e,i),Li(n,e,o);return n}function Ti(e,n){function r(t){c(n.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!e.hasNode(a)&&!A(n,i)&&(e.setNode(a,{}),e.setEdge(t,a,{}),r(a))})}return c(e.nodes(),r),e.nodeCount()}function Pi(e,n){return ve(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return A(n,r)})}function Li(e,n,r){c(e.nodes(),function(t){n.node(t).rank+=r})}function Ni(){}Ni.prototype=new Error;function mn(e,n,r){T(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],o={};return c(n,function(a){if(!e.hasNode(a))throw new Error("Graph does not have node: "+a);yn(e,a,r==="post",o,t,i)}),i}function yn(e,n,r,t,i,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),c(i(n),function(a){yn(e,a,r,t,i,o)}),r&&o.push(n))}function ki(e,n){return mn(e,n,"post")}function Ci(e,n){return mn(e,n,"pre")}E.initLowLimValues=ge;E.initCutValues=we;E.calcCutValue=xn;E.leaveEdge=En;E.enterEdge=Tn;E.exchangeEdges=Pn;function E(e){e=ci(e),be(e);var n=gn(e);ge(n),we(n,e);for(var r,t;r=En(n);)t=Tn(n,e,r),Pn(n,e,r,t)}function we(e,n){var r=ki(e,e.nodes());r=r.slice(0,r.length-1),c(r,function(t){_i(e,n,t)})}function _i(e,n,r){var t=e.node(r),i=t.parent;e.edge(r,i).cutvalue=xn(e,n,r)}function xn(e,n,r){var t=e.node(r),i=t.parent,o=!0,a=n.edge(r,i),u=0;return a||(o=!1,a=n.edge(i,r)),u=a.weight,c(n.nodeEdges(r),function(f){var d=f.v===r,s=d?f.w:f.v;if(s!==i){var l=d===o,h=n.edge(f).weight;if(u+=l?h:-h,ji(e,r,s)){var p=e.edge(r,s).cutvalue;u+=l?-p:p}}}),u}function ge(e,n){arguments.length<2&&(n=e.nodes()[0]),On(e,{},1,n)}function On(e,n,r,t,i){var o=r,a=e.node(t);return n[t]=!0,c(e.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=On(e,n,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function En(e){return le(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Tn(e,n,r){var t=r.v,i=r.w;n.hasEdge(t,i)||(t=r.w,i=r.v);var o=e.node(t),a=e.node(i),u=o,f=!1;o.lim>a.lim&&(u=a,f=!0);var d=M(n.edges(),function(s){return f===Be(e,e.node(s.v),u)&&f!==Be(e,e.node(s.w),u)});return ve(d,function(s){return A(n,s)})}function Pn(e,n,r,t){var i=r.v,o=r.w;e.removeEdge(i,o),e.setEdge(t.v,t.w,{}),ge(e),we(e,n),Ii(e,n)}function Ii(e,n){var r=le(e.nodes(),function(i){return!n.node(i).parent}),t=Ci(e,r);t=t.slice(1),c(t,function(i){var o=e.node(i).parent,a=n.edge(i,o),u=!1;a||(a=n.edge(o,i),u=!0),n.node(i).rank=n.node(o).rank+(u?a.minlen:-a.minlen)})}function ji(e,n,r){return e.hasEdge(n,r)}function Be(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function Ai(e){switch(e.graph().ranker){case"network-simplex":Ge(e);break;case"tight-tree":Si(e);break;case"longest-path":Mi(e);break;default:Ge(e)}}var Mi=be;function Si(e){be(e),gn(e)}function Ge(e){E(e)}function Ri(e){var n=C(e,"root",{},"_root"),r=$i(e),t=O(P(r))-1,i=2*t+1;e.graph().nestingRoot=n,c(e.edges(),function(a){e.edge(a).minlen*=i});var o=Fi(e)+1;c(e.children(),function(a){Ln(e,n,i,o,t,r,a)}),e.graph().nodeRankFactor=i}function Ln(e,n,r,t,i,o,a){var u=e.children(a);if(!u.length){a!==n&&e.setEdge(n,a,{weight:0,minlen:r});return}var f=Re(e,"_bt"),d=Re(e,"_bb"),s=e.node(a);e.setParent(f,a),s.borderTop=f,e.setParent(d,a),s.borderBottom=d,c(u,function(l){Ln(e,n,r,t,i,o,l);var h=e.node(l),p=h.borderTop?h.borderTop:l,v=h.borderBottom?h.borderBottom:l,w=h.borderTop?t:2*t,_=p!==v?1:i-o[a]+1;e.setEdge(f,p,{weight:w,minlen:_,nestingEdge:!0}),e.setEdge(v,d,{weight:w,minlen:_,nestingEdge:!0})}),e.parent(a)||e.setEdge(n,f,{weight:0,minlen:i+o[a]})}function $i(e){var n={};function r(t,i){var o=e.children(t);o&&o.length&&c(o,function(a){r(a,i+1)}),n[t]=i}return c(e.children(),function(t){r(t,1)}),n}function Fi(e){return W(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Bi(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,c(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Gi(e,n,r){var t={},i;c(r,function(o){for(var a=e.parent(o),u,f;a;){if(u=e.parent(a),u?(f=t[u],t[u]=a):(f=i,i=a),f&&f!==a){n.setEdge(f,a);return}a=u}})}function Di(e,n,r){var t=Yi(e),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return c(e.nodes(),function(o){var a=e.node(o),u=e.parent(o);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),c(e[r](o),function(f){var d=f.v===o?f.w:f.v,s=i.edge(d,o),l=m(s)?0:s.weight;i.setEdge(d,o,{weight:e.edge(f).weight+l})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),i}function Yi(e){for(var n;e.hasNode(n=pe("_root")););return n}function Vi(e,n){for(var r=0,t=1;t<n.length;++t)r+=Ui(e,n[t-1],n[t]);return r}function Ui(e,n,r){for(var t=ni(r,g(r,function(d,s){return s})),i=k(g(n,function(d){return S(g(e.outEdges(d),function(s){return{pos:t[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=g(new Array(a),function(){return 0}),f=0;return c(i.forEach(function(d){var s=d.pos+o;u[s]+=d.weight;for(var l=0;s>0;)s%2&&(l+=u[s+1]),s=s-1>>1,u[s]+=d.weight;f+=d.weight*l})),f}function Wi(e){var n={},r=M(e.nodes(),function(u){return!e.children(u).length}),t=O(g(r,function(u){return e.node(u).rank})),i=g(L(t+1),function(){return[]});function o(u){if(!hn(n,u)){n[u]=!0;var f=e.node(u);i[f.rank].push(u),c(e.successors(u),o)}}var a=S(r,function(u){return e.node(u).rank});return c(a,o),i}function qi(e,n){return g(n,function(r){var t=e.inEdges(r);if(t.length){var i=W(t,function(o,a){var u=e.edge(a),f=e.node(a.v);return{sum:o.sum+u.weight*f.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Xi(e,n){var r={};c(e,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};m(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),c(n.edges(),function(i){var o=r[i.v],a=r[i.w];!m(o)&&!m(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return Hi(t)}function Hi(e){var n=[];function r(o){return function(a){a.merged||(m(a.barycenter)||m(o.barycenter)||a.barycenter>=o.barycenter)&&Ki(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&e.push(a)}}for(;e.length;){var i=e.pop();n.push(i),c(i.in.reverse(),r(i)),c(i.out,t(i))}return g(M(n,function(o){return!o.merged}),function(o){return Y(o,["vs","i","barycenter","weight"])})}function Ki(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function zi(e,n){var r=vi(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),t=r.lhs,i=S(r.rhs,function(s){return-s.i}),o=[],a=0,u=0,f=0;t.sort(Zi(!!n)),f=De(o,i,f),c(t,function(s){f+=s.vs.length,o.push(s.vs),a+=s.barycenter*s.weight,u+=s.weight,f=De(o,i,f)});var d={vs:k(o)};return u&&(d.barycenter=a/u,d.weight=u),d}function De(e,n,r){for(var t;n.length&&(t=D(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function Zi(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function Nn(e,n,r,t){var i=e.children(n),o=e.node(n),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,f={};a&&(i=M(i,function(v){return v!==a&&v!==u}));var d=qi(e,i);c(d,function(v){if(e.children(v.v).length){var w=Nn(e,v.v,r,t);f[v.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&Qi(v,w)}});var s=Xi(d,r);Ji(s,f);var l=zi(s,t);if(a&&(l.vs=k([a,l.vs,u]),e.predecessors(a).length)){var h=e.node(e.predecessors(a)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+p.order)/(l.weight+2),l.weight+=2}return l}function Ji(e,n){c(e,function(r){r.vs=k(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Qi(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function ea(e){var n=bn(e),r=Ye(e,L(1,n+1),"inEdges"),t=Ye(e,L(n-1,-1,-1),"outEdges"),i=Wi(e);Ve(e,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,f=0;f<4;++u,++f){na(u%2?r:t,u%4>=2),i=z(e);var d=Vi(e,i);d<o&&(f=0,a=kt(i),o=d)}Ve(e,a)}function Ye(e,n,r){return g(n,function(t){return Di(e,t,r)})}function na(e,n){var r=new x;c(e,function(t){var i=t.graph().root,o=Nn(t,i,r,n);c(o.vs,function(a,u){t.node(a).order=u}),Gi(t,r,o.vs)})}function Ve(e,n){c(n,function(r){c(r,function(t,i){e.node(t).order=i})})}function ra(e){var n=ia(e);c(e.graph().dummyChains,function(r){for(var t=e.node(r),i=t.edgeObj,o=ta(e,n,i.v,i.w),a=o.path,u=o.lca,f=0,d=a[f],s=!0;r!==i.w;){if(t=e.node(r),s){for(;(d=a[f])!==u&&e.node(d).maxRank<t.rank;)f++;d===u&&(s=!1)}if(!s){for(;f<a.length-1&&e.node(d=a[f+1]).minRank<=t.rank;)f++;d=a[f]}e.setParent(r,d),r=e.successors(r)[0]}})}function ta(e,n,r,t){var i=[],o=[],a=Math.min(n[r].low,n[t].low),u=Math.max(n[r].lim,n[t].lim),f,d;f=r;do f=e.parent(f),i.push(f);while(f&&(n[f].low>a||u>n[f].lim));for(d=f,f=t;(f=e.parent(f))!==d;)o.push(f);return{path:i.concat(o.reverse()),lca:d}}function ia(e){var n={},r=0;function t(i){var o=r;c(e.children(i),t),n[i]={low:o,lim:r++}}return c(e.children(),t),n}function aa(e,n){var r={};function t(i,o){var a=0,u=0,f=i.length,d=D(o);return c(o,function(s,l){var h=ua(e,s),p=h?e.node(h).order:f;(h||s===d)&&(c(o.slice(u,l+1),function(v){c(e.predecessors(v),function(w){var _=e.node(w),me=_.order;(me<a||p<me)&&!(_.dummy&&e.node(v).dummy)&&kn(r,w,v)})}),u=l+1,a=p)}),o}return W(n,t),r}function oa(e,n){var r={};function t(o,a,u,f,d){var s;c(L(a,u),function(l){s=o[l],e.node(s).dummy&&c(e.predecessors(s),function(h){var p=e.node(h);p.dummy&&(p.order<f||p.order>d)&&kn(r,h,s)})})}function i(o,a){var u=-1,f,d=0;return c(a,function(s,l){if(e.node(s).dummy==="border"){var h=e.predecessors(s);h.length&&(f=e.node(h[0]).order,t(a,d,l,u,f),d=l,u=f)}t(a,d,a.length,f,o.length)}),a}return W(n,i),r}function ua(e,n){if(e.node(n).dummy)return le(e.predecessors(n),function(r){return e.node(r).dummy})}function kn(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[n];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function fa(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function da(e,n,r,t){var i={},o={},a={};return c(n,function(u){c(u,function(f,d){i[f]=f,o[f]=f,a[f]=d})}),c(n,function(u){var f=-1;c(u,function(d){var s=t(d);if(s.length){s=S(s,function(w){return a[w]});for(var l=(s.length-1)/2,h=Math.floor(l),p=Math.ceil(l);h<=p;++h){var v=s[h];o[d]===d&&f<a[v]&&!fa(r,d,v)&&(o[v]=d,o[d]=i[d]=i[v],f=a[v])}}})}),{root:i,align:o}}function sa(e,n,r,t,i){var o={},a=ca(e,n,r,i),u=i?"borderLeft":"borderRight";function f(l,h){for(var p=a.nodes(),v=p.pop(),w={};v;)w[v]?l(v):(w[v]=!0,p.push(v),p=p.concat(h(v))),v=p.pop()}function d(l){o[l]=a.inEdges(l).reduce(function(h,p){return Math.max(h,o[p.v]+a.edge(p))},0)}function s(l){var h=a.outEdges(l).reduce(function(v,w){return Math.min(v,o[w.w]-a.edge(w))},Number.POSITIVE_INFINITY),p=e.node(l);h!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[l]=Math.max(o[l],h))}return f(d,a.predecessors.bind(a)),f(s,a.successors.bind(a)),c(t,function(l){o[l]=o[r[l]]}),o}function ca(e,n,r,t){var i=new x,o=e.graph(),a=ba(o.nodesep,o.edgesep,t);return c(n,function(u){var f;c(u,function(d){var s=r[d];if(i.setNode(s),f){var l=r[f],h=i.edge(l,s);i.setEdge(l,s,Math.max(a(e,d,f),h||0))}f=d})}),i}function la(e,n){return ve(P(n),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Rt(r,function(o,a){var u=wa(e,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function ha(e,n){var r=P(n),t=j(r),i=O(r);c(["u","d"],function(o){c(["l","r"],function(a){var u=o+a,f=e[u],d;if(f!==n){var s=P(f);d=a==="l"?t-j(s):i-O(s),d&&(e[u]=K(f,function(l){return l+d}))}})})}function va(e,n){return K(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var i=S(g(e,t));return(i[1]+i[2])/2})}function pa(e){var n=z(e),r=ie(aa(e,n),oa(e,n)),t={},i;c(["u","d"],function(a){i=a==="u"?n:P(n).reverse(),c(["l","r"],function(u){u==="r"&&(i=g(i,function(l){return P(l).reverse()}));var f=(a==="u"?e.predecessors:e.successors).bind(e),d=da(e,i,r,f),s=sa(e,i,d.root,d.align,u==="r");u==="r"&&(s=K(s,function(l){return-l})),t[a+u]=s})});var o=la(e,t);return ha(t,o),va(t,e.graph().align)}function ba(e,n,r){return function(t,i,o){var a=t.node(i),u=t.node(o),f=0,d;if(f+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":d=-a.width/2;break;case"r":d=a.width/2;break}if(d&&(f+=r?d:-d),d=0,f+=(a.dummy?n:e)/2,f+=(u.dummy?n:e)/2,f+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":d=u.width/2;break;case"r":d=-u.width/2;break}return d&&(f+=r?d:-d),d=0,f}}function wa(e,n){return e.node(n).width}function ga(e){e=pn(e),ma(e),$t(pa(e),function(n,r){e.node(r).x=n})}function ma(e){var n=z(e),r=e.graph().ranksep,t=0;c(n,function(i){var o=O(g(i,function(a){return e.node(a).height}));c(i,function(a){e.node(a).y=t+o/2}),t+=o+r})}function Ua(e,n){var r=pi;r("layout",()=>{var t=r(" buildLayoutGraph",()=>_a(e));r(" runLayout",()=>ya(t,r)),r(" updateInputGraph",()=>xa(e,t))})}function ya(e,n){n(" makeSpaceForEdgeLabels",()=>Ia(e)),n(" removeSelfEdges",()=>Ga(e)),n(" acyclic",()=>fi(e)),n(" nestingGraph.run",()=>Ri(e)),n(" rank",()=>Ai(pn(e))),n(" injectEdgeLabelProxies",()=>ja(e)),n(" removeEmptyRanks",()=>hi(e)),n(" nestingGraph.cleanup",()=>Bi(e)),n(" normalizeRanks",()=>li(e)),n(" assignRankMinMax",()=>Aa(e)),n(" removeEdgeLabelProxies",()=>Ma(e)),n(" normalize.run",()=>xi(e)),n(" parentDummyChains",()=>ra(e)),n(" addBorderSegments",()=>bi(e)),n(" order",()=>ea(e)),n(" insertSelfEdges",()=>Da(e)),n(" adjustCoordinateSystem",()=>wi(e)),n(" position",()=>ga(e)),n(" positionSelfEdges",()=>Ya(e)),n(" removeBorderNodes",()=>Ba(e)),n(" normalize.undo",()=>Ei(e)),n(" fixupEdgeLabelCoords",()=>$a(e)),n(" undoCoordinateSystem",()=>gi(e)),n(" translateGraph",()=>Sa(e)),n(" assignNodeIntersects",()=>Ra(e)),n(" reversePoints",()=>Fa(e)),n(" acyclic.undo",()=>si(e))}function xa(e,n){c(e.nodes(),function(r){var t=e.node(r),i=n.node(r);t&&(t.x=i.x,t.y=i.y,n.children(r).length&&(t.width=i.width,t.height=i.height))}),c(e.edges(),function(r){var t=e.edge(r),i=n.edge(r);t.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(t.x=i.x,t.y=i.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Oa=["nodesep","edgesep","ranksep","marginx","marginy"],Ea={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ta=["acyclicer","ranker","rankdir","align"],Pa=["width","height"],La={width:0,height:0},Na=["minlen","weight","width","height","labeloffset"],ka={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ca=["labelpos"];function _a(e){var n=new x({multigraph:!0,compound:!0}),r=ne(e.graph());return n.setGraph(ie({},Ea,ee(r,Oa),Y(r,Ta))),c(e.nodes(),function(t){var i=ne(e.node(t));n.setNode(t,_t(ee(i,Pa),La)),n.setParent(t,e.parent(t))}),c(e.edges(),function(t){var i=ne(e.edge(t));n.setEdge(t,ie({},ka,ee(i,Na),Y(i,Ca)))}),n}function Ia(e){var n=e.graph();n.ranksep/=2,c(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function ja(e){c(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),i=e.node(n.w),o={rank:(i.rank-t.rank)/2+t.rank,e:n};C(e,"edge-proxy",o,"_ep")}})}function Aa(e){var n=0;c(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=O(n,t.maxRank))}),e.graph().maxRank=n}function Ma(e){c(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Sa(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=e.graph(),a=o.marginx||0,u=o.marginy||0;function f(d){var s=d.x,l=d.y,h=d.width,p=d.height;n=Math.min(n,s-h/2),r=Math.max(r,s+h/2),t=Math.min(t,l-p/2),i=Math.max(i,l+p/2)}c(e.nodes(),function(d){f(e.node(d))}),c(e.edges(),function(d){var s=e.edge(d);Object.prototype.hasOwnProperty.call(s,"x")&&f(s)}),n-=a,t-=u,c(e.nodes(),function(d){var s=e.node(d);s.x-=n,s.y-=t}),c(e.edges(),function(d){var s=e.edge(d);c(s.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=t)}),o.width=r-n+a,o.height=i-t+u}function Ra(e){c(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),i=e.node(n.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(Se(t,o)),r.points.push(Se(i,a))})}function $a(e){c(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Fa(e){c(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Ba(e){c(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),i=e.node(r.borderBottom),o=e.node(D(r.borderLeft)),a=e.node(D(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),c(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Ga(e){c(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function Da(e){var n=z(e);c(n,function(r){var t=0;c(r,function(i,o){var a=e.node(i);a.order=o+t,c(a.selfEdges,function(u){C(e,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function Ya(e){c(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function ee(e,n){return K(Y(e,n),Number)}function ne(e){var n={};return c(e,function(r,t){n[t.toLowerCase()]=r}),n}export{Ua as l};
|
|
1
|
+
import{aU as B,aV as y,aW as ye,aX as V,aY as U,aZ as Ue,a_ as oe,a$ as We,b0 as Cn,b1 as qe,b2 as _n,b3 as In,b4 as jn,b5 as ue,b6 as An,b7 as Mn,b8 as xe,b9 as Oe,ba as fe,bb as de,bc as G,bd as Xe,be as He,bf as Sn,bg as T,bh as Rn,bi as $n,bj as Fn,bk as Ee,bl as Bn,bm as Ke,bn as N,bo as Gn,bp as Dn,bq as Yn,br as R,bs as ze,bt as Ze,bu as Vn,bv as se,bw as Je,bx as Un,by as Qe,bz as Wn,bA as qn,S as x,bB as c,bC as Xn,bD as m,bE as M,bF as P,bG as W}from"./mermaid.core-DP9HBKfF.js";var Hn=/\s/;function Kn(e){for(var n=e.length;n--&&Hn.test(e.charAt(n)););return n}var zn=/^\s+/;function Zn(e){return e&&e.slice(0,Kn(e)+1).replace(zn,"")}var Te=NaN,Jn=/^[-+]0x[0-9a-f]+$/i,Qn=/^0b[01]+$/i,er=/^0o[0-7]+$/i,nr=parseInt;function rr(e){if(typeof e=="number")return e;if(B(e))return Te;if(y(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=y(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Zn(e);var r=Qn.test(e);return r||er.test(e)?nr(e.slice(2),r?2:8):Jn.test(e)?Te:+e}var Pe=1/0,tr=17976931348623157e292;function $(e){if(!e)return e===0?e:0;if(e=rr(e),e===Pe||e===-Pe){var n=e<0?-1:1;return n*tr}return e===e?e:0}function ir(e){var n=$(e),r=n%1;return n===n?r?n-r:n:0}var Le=Object.create,ar=(function(){function e(){}return function(n){if(!y(n))return{};if(Le)return Le(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}})();function or(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}function q(e,n,r){n=="__proto__"&&ye?ye(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var ur=Object.prototype,fr=ur.hasOwnProperty;function X(e,n,r){var t=e[n];(!(fr.call(e,n)&&V(t,r))||r===void 0&&!(n in e))&&q(e,n,r)}function dr(e,n,r,t){var i=!r;r||(r={});for(var o=-1,a=n.length;++o<a;){var u=n[o],f=void 0;f===void 0&&(f=e[u]),i?q(r,u,f):X(r,u,f)}return r}function I(e,n,r){if(!y(r))return!1;var t=typeof n;return(t=="number"?U(r)&&Ue(n,r.length):t=="string"&&n in r)?V(r[n],e):!1}function sr(e){return oe(function(n,r){var t=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&I(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),n=Object(n);++t<i;){var u=r[t];u&&e(n,u,t,o)}return n})}function cr(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var lr=Object.prototype,hr=lr.hasOwnProperty;function vr(e){if(!y(e))return cr(e);var n=We(e),r=[];for(var t in e)t=="constructor"&&(n||!hr.call(e,t))||r.push(t);return r}function H(e){return U(e)?Cn(e,!0):vr(e)}function k(e){var n=e==null?0:e.length;return n?qe(e):[]}function pr(e){return _n(In(e,void 0,k),e+"")}var en=jn(Object.getPrototypeOf,Object),br="[object Object]",wr=Function.prototype,gr=Object.prototype,nn=wr.toString,mr=gr.hasOwnProperty,yr=nn.call(Object);function xr(e){if(!ue(e)||An(e)!=br)return!1;var n=en(e);if(n===null)return!0;var r=mr.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&nn.call(r)==yr}var rn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ne=rn&&typeof module=="object"&&module&&!module.nodeType&&module,Or=Ne&&Ne.exports===rn,ke=Or?Mn.Buffer:void 0,Ce=ke?ke.allocUnsafe:void 0;function tn(e,n){if(n)return e.slice();var r=e.length,t=Ce?Ce(r):new e.constructor(r);return e.copy(t),t}var Er=Object.prototype,Tr=Er.hasOwnProperty;function Pr(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Tr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ce(e){var n=new e.constructor(e.byteLength);return new xe(n).set(new xe(e)),n}function Lr(e,n){var r=ce(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var Nr=/\w*$/;function kr(e){var n=new e.constructor(e.source,Nr.exec(e));return n.lastIndex=e.lastIndex,n}var _e=Oe?Oe.prototype:void 0,Ie=_e?_e.valueOf:void 0;function Cr(e){return Ie?Object(Ie.call(e)):{}}function an(e,n){var r=n?ce(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var _r="[object Boolean]",Ir="[object Date]",jr="[object Map]",Ar="[object Number]",Mr="[object RegExp]",Sr="[object Set]",Rr="[object String]",$r="[object Symbol]",Fr="[object ArrayBuffer]",Br="[object DataView]",Gr="[object Float32Array]",Dr="[object Float64Array]",Yr="[object Int8Array]",Vr="[object Int16Array]",Ur="[object Int32Array]",Wr="[object Uint8Array]",qr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Hr="[object Uint32Array]";function Kr(e,n,r){var t=e.constructor;switch(n){case Fr:return ce(e);case _r:case Ir:return new t(+e);case Br:return Lr(e);case Gr:case Dr:case Yr:case Vr:case Ur:case Wr:case qr:case Xr:case Hr:return an(e,r);case jr:return new t;case Ar:case Rr:return new t(e);case Mr:return kr(e);case Sr:return new t;case $r:return Cr(e)}}function on(e){return typeof e.constructor=="function"&&!We(e)?ar(en(e)):{}}var zr="[object Map]";function Zr(e){return ue(e)&&fe(e)==zr}var je=G&&G.isMap,Jr=je?de(je):Zr,Qr="[object Set]";function et(e){return ue(e)&&fe(e)==Qr}var Ae=G&&G.isSet,nt=Ae?de(Ae):et,rt=1,un="[object Arguments]",tt="[object Array]",it="[object Boolean]",at="[object Date]",ot="[object Error]",fn="[object Function]",ut="[object GeneratorFunction]",ft="[object Map]",dt="[object Number]",dn="[object Object]",st="[object RegExp]",ct="[object Set]",lt="[object String]",ht="[object Symbol]",vt="[object WeakMap]",pt="[object ArrayBuffer]",bt="[object DataView]",wt="[object Float32Array]",gt="[object Float64Array]",mt="[object Int8Array]",yt="[object Int16Array]",xt="[object Int32Array]",Ot="[object Uint8Array]",Et="[object Uint8ClampedArray]",Tt="[object Uint16Array]",Pt="[object Uint32Array]",b={};b[un]=b[tt]=b[pt]=b[bt]=b[it]=b[at]=b[wt]=b[gt]=b[mt]=b[yt]=b[xt]=b[ft]=b[dt]=b[dn]=b[st]=b[ct]=b[lt]=b[ht]=b[Ot]=b[Et]=b[Tt]=b[Pt]=!0;b[ot]=b[fn]=b[vt]=!1;function F(e,n,r,t,i,o){var a,u=n&rt;if(a!==void 0)return a;if(!y(e))return e;var f=T(e);if(f)a=Pr(e);else{var d=fe(e),s=d==fn||d==ut;if(Xe(e))return tn(e,u);if(d==dn||d==un||s&&!i)a=s?{}:on(e);else{if(!b[d])return i?e:{};a=Kr(e,d,u)}}o||(o=new He);var l=o.get(e);if(l)return l;o.set(e,a),nt(e)?e.forEach(function(v){a.add(F(v,n,r,v,e,o))}):Jr(e)&&e.forEach(function(v,w){a.set(w,F(v,n,r,w,e,o))});var h=Rn,p=f?void 0:h(e);return Sn(p||e,function(v,w){p&&(w=v,v=e[w]),X(a,w,F(v,n,r,w,e,o))}),a}var Lt=1,Nt=4;function kt(e){return F(e,Lt|Nt)}var sn=Object.prototype,Ct=sn.hasOwnProperty,_t=oe(function(e,n){e=Object(e);var r=-1,t=n.length,i=t>2?n[2]:void 0;for(i&&I(n[0],n[1],i)&&(t=1);++r<t;)for(var o=n[r],a=H(o),u=-1,f=a.length;++u<f;){var d=a[u],s=e[d];(s===void 0||V(s,sn[d])&&!Ct.call(e,d))&&(e[d]=o[d])}return e});function re(e,n,r){(r!==void 0&&!V(e[n],r)||r===void 0&&!(n in e))&&q(e,n,r)}function te(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}function It(e){return dr(e,H(e))}function jt(e,n,r,t,i,o,a){var u=te(e,r),f=te(n,r),d=a.get(f);if(d){re(e,r,d);return}var s=o?o(u,f,r+"",e,n,a):void 0,l=s===void 0;if(l){var h=T(f),p=!h&&Xe(f),v=!h&&!p&&$n(f);s=f,h||p||v?T(u)?s=u:Fn(u)?s=or(u):p?(l=!1,s=tn(f,!0)):v?(l=!1,s=an(f,!0)):s=[]:xr(f)||Ee(f)?(s=u,Ee(u)?s=It(u):(!y(u)||Bn(u))&&(s=on(f))):l=!1}l&&(a.set(f,s),i(s,f,t,o,a),a.delete(f)),re(e,r,s)}function cn(e,n,r,t,i){e!==n&&Ke(n,function(o,a){if(i||(i=new He),y(o))jt(e,n,a,r,cn,t,i);else{var u=t?t(te(e,a),o,a+"",e,n,i):void 0;u===void 0&&(u=o),re(e,a,u)}},H)}function D(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function At(e){return function(n,r,t){var i=Object(n);if(!U(n)){var o=N(r);n=Gn(n),r=function(u){return o(i[u],u,i)}}var a=e(n,r,t);return a>-1?i[o?n[a]:a]:void 0}}var Mt=Math.max;function St(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var i=r==null?0:ir(r);return i<0&&(i=Mt(t+i,0)),Dn(e,N(n),i)}var le=At(St);function ln(e,n){var r=-1,t=U(e)?Array(e.length):[];return Yn(e,function(i,o,a){t[++r]=n(i,o,a)}),t}function g(e,n){var r=T(e)?R:ln;return r(e,N(n))}function Rt(e,n){return e==null?e:Ke(e,ze(n),H)}function $t(e,n){return e&&Ze(e,ze(n))}function Ft(e,n){return e>n}var Bt=Object.prototype,Gt=Bt.hasOwnProperty;function Dt(e,n){return e!=null&&Gt.call(e,n)}function hn(e,n){return e!=null&&Vn(e,n,Dt)}function vn(e,n){return e<n}function K(e,n){var r={};return n=N(n),Ze(e,function(t,i,o){q(r,i,n(t,i,o))}),r}function he(e,n,r){for(var t=-1,i=e.length;++t<i;){var o=e[t],a=n(o);if(a!=null&&(u===void 0?a===a&&!B(a):r(a,u)))var u=a,f=o}return f}function O(e){return e&&e.length?he(e,se,Ft):void 0}var ie=sr(function(e,n,r){cn(e,n,r)});function j(e){return e&&e.length?he(e,se,vn):void 0}function ve(e,n){return e&&e.length?he(e,N(n),vn):void 0}function Yt(e,n,r,t){if(!y(e))return e;n=Je(n,e);for(var i=-1,o=n.length,a=o-1,u=e;u!=null&&++i<o;){var f=Un(n[i]),d=r;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(i!=a){var s=u[f];d=void 0,d===void 0&&(d=y(s)?s:Ue(n[i+1])?[]:{})}X(u,f,d),u=u[f]}return e}function Vt(e,n,r){for(var t=-1,i=n.length,o={};++t<i;){var a=n[t],u=Qe(e,a);r(u,a)&&Yt(o,Je(a,e),u)}return o}function Ut(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function Wt(e,n){if(e!==n){var r=e!==void 0,t=e===null,i=e===e,o=B(e),a=n!==void 0,u=n===null,f=n===n,d=B(n);if(!u&&!d&&!o&&e>n||o&&a&&f&&!u&&!d||t&&a&&f||!r&&f||!i)return 1;if(!t&&!o&&!d&&e<n||d&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!f)return-1}return 0}function qt(e,n,r){for(var t=-1,i=e.criteria,o=n.criteria,a=i.length,u=r.length;++t<a;){var f=Wt(i[t],o[t]);if(f){if(t>=u)return f;var d=r[t];return f*(d=="desc"?-1:1)}}return e.index-n.index}function Xt(e,n,r){n.length?n=R(n,function(o){return T(o)?function(a){return Qe(a,o.length===1?o[0]:o)}:o}):n=[se];var t=-1;n=R(n,de(N));var i=ln(e,function(o,a,u){var f=R(n,function(d){return d(o)});return{criteria:f,index:++t,value:o}});return Ut(i,function(o,a){return qt(o,a,r)})}function Ht(e,n){return Vt(e,n,function(r,t){return Wn(e,t)})}var Y=pr(function(e,n){return e==null?{}:Ht(e,n)}),Kt=Math.ceil,zt=Math.max;function Zt(e,n,r,t){for(var i=-1,o=zt(Kt((n-e)/(r||1)),0),a=Array(o);o--;)a[++i]=e,e+=r;return a}function Jt(e){return function(n,r,t){return t&&typeof t!="number"&&I(n,r,t)&&(r=t=void 0),n=$(n),r===void 0?(r=n,n=0):r=$(r),t=t===void 0?n<r?1:-1:$(t),Zt(n,r,t)}}var L=Jt(),S=oe(function(e,n){if(e==null)return[];var r=n.length;return r>1&&I(e,n[0],n[1])?n=[]:r>2&&I(n[0],n[1],n[2])&&(n=[n[0]]),Xt(e,qe(n),[])}),Qt=0;function pe(e){var n=++Qt;return qn(e)+n}function ei(e,n,r){for(var t=-1,i=e.length,o=n.length,a={};++t<i;){var u=t<o?n[t]:void 0;r(a,e[t],u)}return a}function ni(e,n){return ei(e||[],n||[],X)}class ri{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return Me(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&Me(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,ti)),t=t._prev;return"["+n.join(", ")+"]"}}function Me(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function ti(e,n){if(e!=="_next"&&e!=="_prev")return n}var ii=Xn(1);function ai(e,n){if(e.nodeCount()<=1)return[];var r=ui(e,n||ii),t=oi(r.graph,r.buckets,r.zeroIdx);return k(g(t,function(i){return e.outEdges(i.v,i.w)}))}function oi(e,n,r){for(var t=[],i=n[n.length-1],o=n[0],a;e.nodeCount();){for(;a=o.dequeue();)Z(e,n,r,a);for(;a=i.dequeue();)Z(e,n,r,a);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(a=n[u].dequeue(),a){t=t.concat(Z(e,n,r,a,!0));break}}}return t}function Z(e,n,r,t,i){var o=i?[]:void 0;return c(e.inEdges(t.v),function(a){var u=e.edge(a),f=e.node(a.v);i&&o.push({v:a.v,w:a.w}),f.out-=u,ae(n,r,f)}),c(e.outEdges(t.v),function(a){var u=e.edge(a),f=a.w,d=e.node(f);d.in-=u,ae(n,r,d)}),e.removeNode(t.v),o}function ui(e,n){var r=new x,t=0,i=0;c(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),c(e.edges(),function(u){var f=r.edge(u.v,u.w)||0,d=n(u),s=f+d;r.setEdge(u.v,u.w,s),i=Math.max(i,r.node(u.v).out+=d),t=Math.max(t,r.node(u.w).in+=d)});var o=L(i+t+3).map(function(){return new ri}),a=t+1;return c(r.nodes(),function(u){ae(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function ae(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function fi(e){var n=e.graph().acyclicer==="greedy"?ai(e,r(e)):di(e);c(n,function(t){var i=e.edge(t);e.removeEdge(t),i.forwardName=t.name,i.reversed=!0,e.setEdge(t.w,t.v,i,pe("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function di(e){var n=[],r={},t={};function i(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,c(e.outEdges(o),function(a){Object.prototype.hasOwnProperty.call(r,a.w)?n.push(a):i(a.w)}),delete r[o])}return c(e.nodes(),i),n}function si(e){c(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function C(e,n,r,t){var i;do i=pe(t);while(e.hasNode(i));return r.dummy=n,e.setNode(i,r),i}function ci(e){var n=new x().setGraph(e.graph());return c(e.nodes(),function(r){n.setNode(r,e.node(r))}),c(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),n}function pn(e){var n=new x({multigraph:e.isMultigraph()}).setGraph(e.graph());return c(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),c(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function Se(e,n){var r=e.x,t=e.y,i=n.x-r,o=n.y-t,a=e.width/2,u=e.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var f,d;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),f=u*i/o,d=u):(i<0&&(a=-a),f=a,d=a*o/i),{x:r+f,y:t+d}}function z(e){var n=g(L(bn(e)+1),function(){return[]});return c(e.nodes(),function(r){var t=e.node(r),i=t.rank;m(i)||(n[i][t.order]=r)}),n}function li(e){var n=j(g(e.nodes(),function(r){return e.node(r).rank}));c(e.nodes(),function(r){var t=e.node(r);hn(t,"rank")&&(t.rank-=n)})}function hi(e){var n=j(g(e.nodes(),function(o){return e.node(o).rank})),r=[];c(e.nodes(),function(o){var a=e.node(o).rank-n;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=e.graph().nodeRankFactor;c(r,function(o,a){m(o)&&a%i!==0?--t:t&&c(o,function(u){e.node(u).rank+=t})})}function Re(e,n,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(e,"border",i,n)}function bn(e){return O(g(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function vi(e,n){var r={lhs:[],rhs:[]};return c(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function pi(e,n){return n()}function bi(e){function n(r){var t=e.children(r),i=e.node(r);if(t.length&&c(t,n),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)$e(e,"borderLeft","_bl",r,i,o),$e(e,"borderRight","_br",r,i,o)}}c(e.children(),n)}function $e(e,n,r,t,i,o){var a={width:0,height:0,rank:o,borderType:n},u=i[n][o-1],f=C(e,"border",a,r);i[n][o]=f,e.setParent(f,t),u&&e.setEdge(u,f,{weight:1})}function wi(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&wn(e)}function gi(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&mi(e),(n==="lr"||n==="rl")&&(yi(e),wn(e))}function wn(e){c(e.nodes(),function(n){Fe(e.node(n))}),c(e.edges(),function(n){Fe(e.edge(n))})}function Fe(e){var n=e.width;e.width=e.height,e.height=n}function mi(e){c(e.nodes(),function(n){J(e.node(n))}),c(e.edges(),function(n){var r=e.edge(n);c(r.points,J),Object.prototype.hasOwnProperty.call(r,"y")&&J(r)})}function J(e){e.y=-e.y}function yi(e){c(e.nodes(),function(n){Q(e.node(n))}),c(e.edges(),function(n){var r=e.edge(n);c(r.points,Q),Object.prototype.hasOwnProperty.call(r,"x")&&Q(r)})}function Q(e){var n=e.x;e.x=e.y,e.y=n}function xi(e){e.graph().dummyChains=[],c(e.edges(),function(n){Oi(e,n)})}function Oi(e,n){var r=n.v,t=e.node(r).rank,i=n.w,o=e.node(i).rank,a=n.name,u=e.edge(n),f=u.labelRank;if(o!==t+1){e.removeEdge(n);var d=void 0,s,l;for(l=0,++t;t<o;++l,++t)u.points=[],d={width:0,height:0,edgeLabel:u,edgeObj:n,rank:t},s=C(e,"edge",d,"_d"),t===f&&(d.width=u.width,d.height=u.height,d.dummy="edge-label",d.labelpos=u.labelpos),e.setEdge(r,s,{weight:u.weight},a),l===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,i,{weight:u.weight},a)}}function Ei(e){c(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,i;for(e.setEdge(r.edgeObj,t);r.dummy;)i=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=i,r=e.node(n)})}function be(e){var n={};function r(t){var i=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return i.rank;n[t]=!0;var o=j(g(e.outEdges(t),function(a){return r(a.w)-e.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}c(e.sources(),r)}function A(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function gn(e){var n=new x({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var i,o;Ti(n,e)<t;)i=Pi(n,e),o=n.hasNode(i.v)?A(e,i):-A(e,i),Li(n,e,o);return n}function Ti(e,n){function r(t){c(n.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!e.hasNode(a)&&!A(n,i)&&(e.setNode(a,{}),e.setEdge(t,a,{}),r(a))})}return c(e.nodes(),r),e.nodeCount()}function Pi(e,n){return ve(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return A(n,r)})}function Li(e,n,r){c(e.nodes(),function(t){n.node(t).rank+=r})}function Ni(){}Ni.prototype=new Error;function mn(e,n,r){T(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],o={};return c(n,function(a){if(!e.hasNode(a))throw new Error("Graph does not have node: "+a);yn(e,a,r==="post",o,t,i)}),i}function yn(e,n,r,t,i,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),c(i(n),function(a){yn(e,a,r,t,i,o)}),r&&o.push(n))}function ki(e,n){return mn(e,n,"post")}function Ci(e,n){return mn(e,n,"pre")}E.initLowLimValues=ge;E.initCutValues=we;E.calcCutValue=xn;E.leaveEdge=En;E.enterEdge=Tn;E.exchangeEdges=Pn;function E(e){e=ci(e),be(e);var n=gn(e);ge(n),we(n,e);for(var r,t;r=En(n);)t=Tn(n,e,r),Pn(n,e,r,t)}function we(e,n){var r=ki(e,e.nodes());r=r.slice(0,r.length-1),c(r,function(t){_i(e,n,t)})}function _i(e,n,r){var t=e.node(r),i=t.parent;e.edge(r,i).cutvalue=xn(e,n,r)}function xn(e,n,r){var t=e.node(r),i=t.parent,o=!0,a=n.edge(r,i),u=0;return a||(o=!1,a=n.edge(i,r)),u=a.weight,c(n.nodeEdges(r),function(f){var d=f.v===r,s=d?f.w:f.v;if(s!==i){var l=d===o,h=n.edge(f).weight;if(u+=l?h:-h,ji(e,r,s)){var p=e.edge(r,s).cutvalue;u+=l?-p:p}}}),u}function ge(e,n){arguments.length<2&&(n=e.nodes()[0]),On(e,{},1,n)}function On(e,n,r,t,i){var o=r,a=e.node(t);return n[t]=!0,c(e.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=On(e,n,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function En(e){return le(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Tn(e,n,r){var t=r.v,i=r.w;n.hasEdge(t,i)||(t=r.w,i=r.v);var o=e.node(t),a=e.node(i),u=o,f=!1;o.lim>a.lim&&(u=a,f=!0);var d=M(n.edges(),function(s){return f===Be(e,e.node(s.v),u)&&f!==Be(e,e.node(s.w),u)});return ve(d,function(s){return A(n,s)})}function Pn(e,n,r,t){var i=r.v,o=r.w;e.removeEdge(i,o),e.setEdge(t.v,t.w,{}),ge(e),we(e,n),Ii(e,n)}function Ii(e,n){var r=le(e.nodes(),function(i){return!n.node(i).parent}),t=Ci(e,r);t=t.slice(1),c(t,function(i){var o=e.node(i).parent,a=n.edge(i,o),u=!1;a||(a=n.edge(o,i),u=!0),n.node(i).rank=n.node(o).rank+(u?a.minlen:-a.minlen)})}function ji(e,n,r){return e.hasEdge(n,r)}function Be(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function Ai(e){switch(e.graph().ranker){case"network-simplex":Ge(e);break;case"tight-tree":Si(e);break;case"longest-path":Mi(e);break;default:Ge(e)}}var Mi=be;function Si(e){be(e),gn(e)}function Ge(e){E(e)}function Ri(e){var n=C(e,"root",{},"_root"),r=$i(e),t=O(P(r))-1,i=2*t+1;e.graph().nestingRoot=n,c(e.edges(),function(a){e.edge(a).minlen*=i});var o=Fi(e)+1;c(e.children(),function(a){Ln(e,n,i,o,t,r,a)}),e.graph().nodeRankFactor=i}function Ln(e,n,r,t,i,o,a){var u=e.children(a);if(!u.length){a!==n&&e.setEdge(n,a,{weight:0,minlen:r});return}var f=Re(e,"_bt"),d=Re(e,"_bb"),s=e.node(a);e.setParent(f,a),s.borderTop=f,e.setParent(d,a),s.borderBottom=d,c(u,function(l){Ln(e,n,r,t,i,o,l);var h=e.node(l),p=h.borderTop?h.borderTop:l,v=h.borderBottom?h.borderBottom:l,w=h.borderTop?t:2*t,_=p!==v?1:i-o[a]+1;e.setEdge(f,p,{weight:w,minlen:_,nestingEdge:!0}),e.setEdge(v,d,{weight:w,minlen:_,nestingEdge:!0})}),e.parent(a)||e.setEdge(n,f,{weight:0,minlen:i+o[a]})}function $i(e){var n={};function r(t,i){var o=e.children(t);o&&o.length&&c(o,function(a){r(a,i+1)}),n[t]=i}return c(e.children(),function(t){r(t,1)}),n}function Fi(e){return W(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Bi(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,c(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Gi(e,n,r){var t={},i;c(r,function(o){for(var a=e.parent(o),u,f;a;){if(u=e.parent(a),u?(f=t[u],t[u]=a):(f=i,i=a),f&&f!==a){n.setEdge(f,a);return}a=u}})}function Di(e,n,r){var t=Yi(e),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return c(e.nodes(),function(o){var a=e.node(o),u=e.parent(o);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),c(e[r](o),function(f){var d=f.v===o?f.w:f.v,s=i.edge(d,o),l=m(s)?0:s.weight;i.setEdge(d,o,{weight:e.edge(f).weight+l})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),i}function Yi(e){for(var n;e.hasNode(n=pe("_root")););return n}function Vi(e,n){for(var r=0,t=1;t<n.length;++t)r+=Ui(e,n[t-1],n[t]);return r}function Ui(e,n,r){for(var t=ni(r,g(r,function(d,s){return s})),i=k(g(n,function(d){return S(g(e.outEdges(d),function(s){return{pos:t[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=g(new Array(a),function(){return 0}),f=0;return c(i.forEach(function(d){var s=d.pos+o;u[s]+=d.weight;for(var l=0;s>0;)s%2&&(l+=u[s+1]),s=s-1>>1,u[s]+=d.weight;f+=d.weight*l})),f}function Wi(e){var n={},r=M(e.nodes(),function(u){return!e.children(u).length}),t=O(g(r,function(u){return e.node(u).rank})),i=g(L(t+1),function(){return[]});function o(u){if(!hn(n,u)){n[u]=!0;var f=e.node(u);i[f.rank].push(u),c(e.successors(u),o)}}var a=S(r,function(u){return e.node(u).rank});return c(a,o),i}function qi(e,n){return g(n,function(r){var t=e.inEdges(r);if(t.length){var i=W(t,function(o,a){var u=e.edge(a),f=e.node(a.v);return{sum:o.sum+u.weight*f.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Xi(e,n){var r={};c(e,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};m(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),c(n.edges(),function(i){var o=r[i.v],a=r[i.w];!m(o)&&!m(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return Hi(t)}function Hi(e){var n=[];function r(o){return function(a){a.merged||(m(a.barycenter)||m(o.barycenter)||a.barycenter>=o.barycenter)&&Ki(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&e.push(a)}}for(;e.length;){var i=e.pop();n.push(i),c(i.in.reverse(),r(i)),c(i.out,t(i))}return g(M(n,function(o){return!o.merged}),function(o){return Y(o,["vs","i","barycenter","weight"])})}function Ki(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function zi(e,n){var r=vi(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),t=r.lhs,i=S(r.rhs,function(s){return-s.i}),o=[],a=0,u=0,f=0;t.sort(Zi(!!n)),f=De(o,i,f),c(t,function(s){f+=s.vs.length,o.push(s.vs),a+=s.barycenter*s.weight,u+=s.weight,f=De(o,i,f)});var d={vs:k(o)};return u&&(d.barycenter=a/u,d.weight=u),d}function De(e,n,r){for(var t;n.length&&(t=D(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function Zi(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function Nn(e,n,r,t){var i=e.children(n),o=e.node(n),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,f={};a&&(i=M(i,function(v){return v!==a&&v!==u}));var d=qi(e,i);c(d,function(v){if(e.children(v.v).length){var w=Nn(e,v.v,r,t);f[v.v]=w,Object.prototype.hasOwnProperty.call(w,"barycenter")&&Qi(v,w)}});var s=Xi(d,r);Ji(s,f);var l=zi(s,t);if(a&&(l.vs=k([a,l.vs,u]),e.predecessors(a).length)){var h=e.node(e.predecessors(a)[0]),p=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+p.order)/(l.weight+2),l.weight+=2}return l}function Ji(e,n){c(e,function(r){r.vs=k(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Qi(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function ea(e){var n=bn(e),r=Ye(e,L(1,n+1),"inEdges"),t=Ye(e,L(n-1,-1,-1),"outEdges"),i=Wi(e);Ve(e,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,f=0;f<4;++u,++f){na(u%2?r:t,u%4>=2),i=z(e);var d=Vi(e,i);d<o&&(f=0,a=kt(i),o=d)}Ve(e,a)}function Ye(e,n,r){return g(n,function(t){return Di(e,t,r)})}function na(e,n){var r=new x;c(e,function(t){var i=t.graph().root,o=Nn(t,i,r,n);c(o.vs,function(a,u){t.node(a).order=u}),Gi(t,r,o.vs)})}function Ve(e,n){c(n,function(r){c(r,function(t,i){e.node(t).order=i})})}function ra(e){var n=ia(e);c(e.graph().dummyChains,function(r){for(var t=e.node(r),i=t.edgeObj,o=ta(e,n,i.v,i.w),a=o.path,u=o.lca,f=0,d=a[f],s=!0;r!==i.w;){if(t=e.node(r),s){for(;(d=a[f])!==u&&e.node(d).maxRank<t.rank;)f++;d===u&&(s=!1)}if(!s){for(;f<a.length-1&&e.node(d=a[f+1]).minRank<=t.rank;)f++;d=a[f]}e.setParent(r,d),r=e.successors(r)[0]}})}function ta(e,n,r,t){var i=[],o=[],a=Math.min(n[r].low,n[t].low),u=Math.max(n[r].lim,n[t].lim),f,d;f=r;do f=e.parent(f),i.push(f);while(f&&(n[f].low>a||u>n[f].lim));for(d=f,f=t;(f=e.parent(f))!==d;)o.push(f);return{path:i.concat(o.reverse()),lca:d}}function ia(e){var n={},r=0;function t(i){var o=r;c(e.children(i),t),n[i]={low:o,lim:r++}}return c(e.children(),t),n}function aa(e,n){var r={};function t(i,o){var a=0,u=0,f=i.length,d=D(o);return c(o,function(s,l){var h=ua(e,s),p=h?e.node(h).order:f;(h||s===d)&&(c(o.slice(u,l+1),function(v){c(e.predecessors(v),function(w){var _=e.node(w),me=_.order;(me<a||p<me)&&!(_.dummy&&e.node(v).dummy)&&kn(r,w,v)})}),u=l+1,a=p)}),o}return W(n,t),r}function oa(e,n){var r={};function t(o,a,u,f,d){var s;c(L(a,u),function(l){s=o[l],e.node(s).dummy&&c(e.predecessors(s),function(h){var p=e.node(h);p.dummy&&(p.order<f||p.order>d)&&kn(r,h,s)})})}function i(o,a){var u=-1,f,d=0;return c(a,function(s,l){if(e.node(s).dummy==="border"){var h=e.predecessors(s);h.length&&(f=e.node(h[0]).order,t(a,d,l,u,f),d=l,u=f)}t(a,d,a.length,f,o.length)}),a}return W(n,i),r}function ua(e,n){if(e.node(n).dummy)return le(e.predecessors(n),function(r){return e.node(r).dummy})}function kn(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[n];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function fa(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function da(e,n,r,t){var i={},o={},a={};return c(n,function(u){c(u,function(f,d){i[f]=f,o[f]=f,a[f]=d})}),c(n,function(u){var f=-1;c(u,function(d){var s=t(d);if(s.length){s=S(s,function(w){return a[w]});for(var l=(s.length-1)/2,h=Math.floor(l),p=Math.ceil(l);h<=p;++h){var v=s[h];o[d]===d&&f<a[v]&&!fa(r,d,v)&&(o[v]=d,o[d]=i[d]=i[v],f=a[v])}}})}),{root:i,align:o}}function sa(e,n,r,t,i){var o={},a=ca(e,n,r,i),u=i?"borderLeft":"borderRight";function f(l,h){for(var p=a.nodes(),v=p.pop(),w={};v;)w[v]?l(v):(w[v]=!0,p.push(v),p=p.concat(h(v))),v=p.pop()}function d(l){o[l]=a.inEdges(l).reduce(function(h,p){return Math.max(h,o[p.v]+a.edge(p))},0)}function s(l){var h=a.outEdges(l).reduce(function(v,w){return Math.min(v,o[w.w]-a.edge(w))},Number.POSITIVE_INFINITY),p=e.node(l);h!==Number.POSITIVE_INFINITY&&p.borderType!==u&&(o[l]=Math.max(o[l],h))}return f(d,a.predecessors.bind(a)),f(s,a.successors.bind(a)),c(t,function(l){o[l]=o[r[l]]}),o}function ca(e,n,r,t){var i=new x,o=e.graph(),a=ba(o.nodesep,o.edgesep,t);return c(n,function(u){var f;c(u,function(d){var s=r[d];if(i.setNode(s),f){var l=r[f],h=i.edge(l,s);i.setEdge(l,s,Math.max(a(e,d,f),h||0))}f=d})}),i}function la(e,n){return ve(P(n),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Rt(r,function(o,a){var u=wa(e,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function ha(e,n){var r=P(n),t=j(r),i=O(r);c(["u","d"],function(o){c(["l","r"],function(a){var u=o+a,f=e[u],d;if(f!==n){var s=P(f);d=a==="l"?t-j(s):i-O(s),d&&(e[u]=K(f,function(l){return l+d}))}})})}function va(e,n){return K(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var i=S(g(e,t));return(i[1]+i[2])/2})}function pa(e){var n=z(e),r=ie(aa(e,n),oa(e,n)),t={},i;c(["u","d"],function(a){i=a==="u"?n:P(n).reverse(),c(["l","r"],function(u){u==="r"&&(i=g(i,function(l){return P(l).reverse()}));var f=(a==="u"?e.predecessors:e.successors).bind(e),d=da(e,i,r,f),s=sa(e,i,d.root,d.align,u==="r");u==="r"&&(s=K(s,function(l){return-l})),t[a+u]=s})});var o=la(e,t);return ha(t,o),va(t,e.graph().align)}function ba(e,n,r){return function(t,i,o){var a=t.node(i),u=t.node(o),f=0,d;if(f+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":d=-a.width/2;break;case"r":d=a.width/2;break}if(d&&(f+=r?d:-d),d=0,f+=(a.dummy?n:e)/2,f+=(u.dummy?n:e)/2,f+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":d=u.width/2;break;case"r":d=-u.width/2;break}return d&&(f+=r?d:-d),d=0,f}}function wa(e,n){return e.node(n).width}function ga(e){e=pn(e),ma(e),$t(pa(e),function(n,r){e.node(r).x=n})}function ma(e){var n=z(e),r=e.graph().ranksep,t=0;c(n,function(i){var o=O(g(i,function(a){return e.node(a).height}));c(i,function(a){e.node(a).y=t+o/2}),t+=o+r})}function Ua(e,n){var r=pi;r("layout",()=>{var t=r(" buildLayoutGraph",()=>_a(e));r(" runLayout",()=>ya(t,r)),r(" updateInputGraph",()=>xa(e,t))})}function ya(e,n){n(" makeSpaceForEdgeLabels",()=>Ia(e)),n(" removeSelfEdges",()=>Ga(e)),n(" acyclic",()=>fi(e)),n(" nestingGraph.run",()=>Ri(e)),n(" rank",()=>Ai(pn(e))),n(" injectEdgeLabelProxies",()=>ja(e)),n(" removeEmptyRanks",()=>hi(e)),n(" nestingGraph.cleanup",()=>Bi(e)),n(" normalizeRanks",()=>li(e)),n(" assignRankMinMax",()=>Aa(e)),n(" removeEdgeLabelProxies",()=>Ma(e)),n(" normalize.run",()=>xi(e)),n(" parentDummyChains",()=>ra(e)),n(" addBorderSegments",()=>bi(e)),n(" order",()=>ea(e)),n(" insertSelfEdges",()=>Da(e)),n(" adjustCoordinateSystem",()=>wi(e)),n(" position",()=>ga(e)),n(" positionSelfEdges",()=>Ya(e)),n(" removeBorderNodes",()=>Ba(e)),n(" normalize.undo",()=>Ei(e)),n(" fixupEdgeLabelCoords",()=>$a(e)),n(" undoCoordinateSystem",()=>gi(e)),n(" translateGraph",()=>Sa(e)),n(" assignNodeIntersects",()=>Ra(e)),n(" reversePoints",()=>Fa(e)),n(" acyclic.undo",()=>si(e))}function xa(e,n){c(e.nodes(),function(r){var t=e.node(r),i=n.node(r);t&&(t.x=i.x,t.y=i.y,n.children(r).length&&(t.width=i.width,t.height=i.height))}),c(e.edges(),function(r){var t=e.edge(r),i=n.edge(r);t.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(t.x=i.x,t.y=i.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Oa=["nodesep","edgesep","ranksep","marginx","marginy"],Ea={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ta=["acyclicer","ranker","rankdir","align"],Pa=["width","height"],La={width:0,height:0},Na=["minlen","weight","width","height","labeloffset"],ka={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ca=["labelpos"];function _a(e){var n=new x({multigraph:!0,compound:!0}),r=ne(e.graph());return n.setGraph(ie({},Ea,ee(r,Oa),Y(r,Ta))),c(e.nodes(),function(t){var i=ne(e.node(t));n.setNode(t,_t(ee(i,Pa),La)),n.setParent(t,e.parent(t))}),c(e.edges(),function(t){var i=ne(e.edge(t));n.setEdge(t,ie({},ka,ee(i,Na),Y(i,Ca)))}),n}function Ia(e){var n=e.graph();n.ranksep/=2,c(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function ja(e){c(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),i=e.node(n.w),o={rank:(i.rank-t.rank)/2+t.rank,e:n};C(e,"edge-proxy",o,"_ep")}})}function Aa(e){var n=0;c(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=O(n,t.maxRank))}),e.graph().maxRank=n}function Ma(e){c(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Sa(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=e.graph(),a=o.marginx||0,u=o.marginy||0;function f(d){var s=d.x,l=d.y,h=d.width,p=d.height;n=Math.min(n,s-h/2),r=Math.max(r,s+h/2),t=Math.min(t,l-p/2),i=Math.max(i,l+p/2)}c(e.nodes(),function(d){f(e.node(d))}),c(e.edges(),function(d){var s=e.edge(d);Object.prototype.hasOwnProperty.call(s,"x")&&f(s)}),n-=a,t-=u,c(e.nodes(),function(d){var s=e.node(d);s.x-=n,s.y-=t}),c(e.edges(),function(d){var s=e.edge(d);c(s.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=t)}),o.width=r-n+a,o.height=i-t+u}function Ra(e){c(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),i=e.node(n.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(Se(t,o)),r.points.push(Se(i,a))})}function $a(e){c(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Fa(e){c(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Ba(e){c(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),i=e.node(r.borderBottom),o=e.node(D(r.borderLeft)),a=e.node(D(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),c(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Ga(e){c(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function Da(e){var n=z(e);c(n,function(r){var t=0;c(r,function(i,o){var a=e.node(i);a.order=o+t,c(a.selfEdges,function(u){C(e,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function Ya(e){c(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function ee(e,n){return K(Y(e,n),Number)}function ne(e){var n={};return c(e,function(r,t){n[t.toLowerCase()]=r}),n}export{Ua as l};
|