@kabmo-labs/kabmo 0.58.0 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +520 -489
- package/dist/client/static/js/{Body-karkrzkc.js → Body-jqq4654r.js} +3 -3
- package/dist/client/static/js/{CsvGrid-j03knmbe.js → CsvGrid-avw0taqb.js} +2 -2
- package/dist/client/static/js/{DocxView-e8408vzs.js → DocxView-d221vr6g.js} +3 -3
- package/dist/client/static/js/{DrawioView-fj4mfzch.js → DrawioView-gjsy7p01.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-9g8xwzgw.js → HtmlPreview-949393v1.js} +1 -1
- package/dist/client/static/js/ImageView-pan9pqtm.js +1 -0
- package/dist/client/static/js/LayoutWrapper-p0qmghgt.js +2 -0
- package/dist/client/static/js/MergeDiffView-swt467g7.js +1 -0
- package/dist/client/static/js/Modal-4spmcn44.js +60 -0
- package/dist/client/static/js/{PdfView-8jtdx5hd.js → PdfView-dzj2s6rj.js} +1 -1
- package/dist/client/static/js/SessionsView-b6szjdg5.js +1 -0
- package/dist/client/static/js/{SheetView-hwx8s864.js → SheetView-jpc178g5.js} +11 -11
- package/dist/client/static/js/{SvgPreview-ete36nzv.js → SvgPreview-94fap32p.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-7nsqzz6z.js → abnfDiagram-O67JEVCF-a6eyfzrj.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-bwn1drdz.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-xvpkfq2f.js → architectureDiagram-NJMV4G6O-pgmyfncy.js} +3 -3
- package/dist/client/static/js/{astro-rsrqgjjx.js → astro-ryr2ajmg.js} +1 -1
- package/dist/client/static/js/bash-zknkkwkw.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-0saahcs6.js → blockDiagram-BEXU5L5S-rf51jyb2.js} +6 -6
- package/dist/client/static/js/c-0w02jkxb.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-ktpqnb4a.js → c4Diagram-YGBWAQC7-0faj48jp.js} +2 -2
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-x67cz3ms.js → classDiagram-v2-NBCMYWYE-bvzsws8x.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-9wzmhkz8.js → cose-bilkent-JH36ORCC-j1amnd3m.js} +1 -1
- package/dist/client/static/js/cpp-p5b4vean.js +1 -0
- package/dist/client/static/js/css-9jzbvdyz.js +1 -0
- package/dist/client/static/js/css-sn00sq6v.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-jbc50ks8.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-dmmgmv99.js → cynefinDiagram-VND7K2PF-f73w6zzz.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-ygkkms1t.js → dagre-6A5THRUB-a5vgvjsg.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-qxj0pqb4.js → diagram-22UHCM2B-6y9efamp.js} +12 -12
- package/dist/client/static/js/{diagram-3UASUU5V-77k8w5dt.js → diagram-3UASUU5V-2mycy7xm.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-m0h86vf4.js → diagram-ATOU4E4O-10zgjb66.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-5v28kaeg.js → diagram-CDSNMT55-bewa52yf.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-zgcg9gaz.js → diagram-MLGK6HIB-mh3b7gd3.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-10c9s6e6.js → diagram-MPIPVDR6-gvdrbdm5.js} +2 -2
- package/dist/client/static/js/{dockerfile-dr9sdsqp.js → dockerfile-6bn19kg0.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-mz4022dz.js → ebnfDiagram-ZINNZB2B-2prre93c.js} +1 -1
- package/dist/client/static/js/{elixir-3dy25ex8.js → elixir-fyxw6d70.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-ccerbsag.js → elk-276RUBZZ-9t6t9kc6.js} +2 -2
- package/dist/client/static/js/{erDiagram-OPXOYQCR-a8vjyrrw.js → erDiagram-OPXOYQCR-etcggr5n.js} +6 -6
- package/dist/client/static/js/{erlang-v7344938.js → erlang-97ayje6m.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-b37ey01t.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-7c2ncsw7.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-sz1g29fp.js → ganttDiagram-FUAMR5RP-cdc4mwhs.js} +3 -3
- package/dist/client/static/js/gitGraph-4MIJSDKK-mvqq7tcs.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-efqk42q0.js → gitGraphDiagram-X574FWY7-55d0fa7x.js} +8 -8
- package/dist/client/static/js/graphql-xzykn0ba.js +1 -0
- package/dist/client/static/js/html-2zc3shky.js +1 -0
- package/dist/client/static/js/{index-mpyd7qxj.js → index-10vzyga1.js} +2 -2
- package/dist/client/static/js/{index-2f6psebk.js → index-27gwghmp.js} +2 -2
- package/dist/client/static/js/{index-t71k3b28.js → index-2f6afhze.js} +2 -2
- package/dist/client/static/js/{index-tnxp90ac.js → index-3akjcs82.js} +1 -1
- package/dist/client/static/js/{index-fhtnvqgf.js → index-3j2he86h.js} +2 -2
- package/dist/client/static/js/index-461ga40v.js +2 -0
- package/dist/client/static/js/{index-9qf2h9jb.js → index-51rbgeh9.js} +12 -12
- package/dist/client/static/js/{index-zh550byg.js → index-537m8a3x.js} +2 -2
- package/dist/client/static/js/{index-tdg7hz80.js → index-58z2hatp.js} +2 -2
- package/dist/client/static/js/{index-4tbdws4r.js → index-5e4e18tg.js} +2 -2
- package/dist/client/static/js/{index-xfyxmaj1.js → index-60cxxnpk.js} +62 -62
- package/dist/client/static/js/{index-th61y26d.js → index-69mnn71v.js} +2 -2
- package/dist/client/static/js/{index-8aqjj2x2.js → index-6bsez5n6.js} +1 -1
- package/dist/client/static/js/{index-gaa39w5q.js → index-8tzt0dek.js} +2 -2
- package/dist/client/static/js/{index-vb5a3g01.js → index-8z9aqgf3.js} +4 -4
- package/dist/client/static/js/{index-ewryzs4g.js → index-92h38pwg.js} +2 -2
- package/dist/client/static/js/{index-7ma44af3.js → index-9rvjegmy.js} +3 -3
- package/dist/client/static/js/{index-q0k1am0g.js → index-a3bpmw2r.js} +2 -2
- package/dist/client/static/js/{index-j863hg0d.js → index-a5ecn5yx.js} +6 -6
- package/dist/client/static/js/{index-6ey6y9em.js → index-ax8gaayq.js} +2 -2
- package/dist/client/static/js/{index-e42ys2q3.js → index-c253x7vt.js} +7 -7
- package/dist/client/static/js/{index-y0f3wbc3.js → index-d9sfavx1.js} +2 -2
- package/dist/client/static/js/{index-5tp3emtg.js → index-db6s66jr.js} +2 -2
- package/dist/client/static/js/index-eggbcdwx.js +481 -0
- package/dist/client/static/js/{index-ts8rhd06.js → index-f13ern5e.js} +1 -1
- package/dist/client/static/js/{index-ver116ed.js → index-f6t91mpp.js} +1 -1
- package/dist/client/static/js/{index-tc07gd33.js → index-fr91ghwb.js} +2 -2
- package/dist/client/static/js/{index-tq3t3qm4.js → index-fsa18ns9.js} +2 -2
- package/dist/client/static/js/{index-k56patms.js → index-fyt8m8ah.js} +2 -2
- package/dist/client/static/js/{index-gw4c5n3a.js → index-gcad7b6g.js} +2 -2
- package/dist/client/static/js/{index-rxt8sf9a.js → index-h1xbx74w.js} +2 -2
- package/dist/client/static/js/{index-q5q8a3qn.js → index-j1ksa4x2.js} +2 -2
- package/dist/client/static/js/{index-sxag9ptg.js → index-jct0jryd.js} +2 -2
- package/dist/client/static/js/{index-r1wrke3j.js → index-jpvng27a.js} +1 -1
- package/dist/client/static/js/{index-w5j1wgcz.js → index-me0b6wkw.js} +1 -1
- package/dist/client/static/js/{index-6x0kn8pb.js → index-mhrkjbjq.js} +2 -2
- package/dist/client/static/js/{index-nzq51nbb.js → index-mngpcca7.js} +5 -5
- package/dist/client/static/js/index-mttx9327.css +1 -0
- package/dist/client/static/js/{index-ssepzdaz.js → index-mx5y9vt9.js} +7 -7
- package/dist/client/static/js/{index-3ymw778n.js → index-ndqtff48.js} +2 -2
- package/dist/client/static/js/{index-wnk9k57k.js → index-nf4hq5tg.js} +55 -55
- package/dist/client/static/js/{index-f31c6jg8.js → index-njhrm5qa.js} +10 -10
- package/dist/client/static/js/index-nnwcbp2d.js +2 -0
- package/dist/client/static/js/{index-3p732mvs.js → index-np2rfq06.js} +2 -2
- package/dist/client/static/js/{index-kc5yt2cd.js → index-nwbr15b3.js} +2 -2
- package/dist/client/static/js/{index-2a0b9ya2.js → index-pa70qj4p.js} +1 -1
- package/dist/client/static/js/index-pe5f2gmn.js +1 -0
- package/dist/client/static/js/{index-qbqm3c91.js → index-pgy7ree5.js} +5 -5
- package/dist/client/static/js/index-pzwf6hwe.js +4 -0
- package/dist/client/static/js/{index-jnxmvxb8.js → index-q3k8r0ms.js} +11 -11
- package/dist/client/static/js/{index-qkcmspxq.js → index-rw84kefb.js} +2 -2
- package/dist/client/static/js/{index-gqsnyh8k.js → index-s9ts6qbj.js} +2 -2
- package/dist/client/static/js/{index-dqf0srrp.js → index-sg65xdey.js} +2 -2
- package/dist/client/static/js/{index-mkp3gwag.js → index-skvfxcd8.js} +1 -1
- package/dist/client/static/js/{index-6qqsy78z.js → index-sx2yz2wx.js} +1 -1
- package/dist/client/static/js/{index-6ac860yz.js → index-trq7bdvk.js} +2 -2
- package/dist/client/static/js/{index-v8xhgfeq.js → index-vs2y8gxr.js} +2 -2
- package/dist/client/static/js/index-wwyjzhgs.js +2 -0
- package/dist/client/static/js/{index-7s4dge1z.js → index-xe447cw3.js} +1 -1
- package/dist/client/static/js/index-y09de44h.js +2 -0
- package/dist/client/static/js/{index-jxsha63v.js → index-y4cx8cqf.js} +2 -2
- package/dist/client/static/js/{index-bkwax812.js → index-yg38s8t3.js} +1 -1
- package/dist/client/static/js/{index-dz18nn65.js → index-yh7gngsh.js} +2 -2
- package/dist/client/static/js/{index-3m1dksmy.js → index-yrwm437g.js} +2 -2
- package/dist/client/static/js/{index-7ynf3s2w.js → index-z82nd2bd.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-zkv4crz7.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-rykcacj5.js → infoDiagram-VRGFBTTK-9xph6cr5.js} +2 -2
- package/dist/client/static/js/ini-62r3vxaf.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-rj752kd8.js → ishikawaDiagram-OU5B5YK6-3gshs3v8.js} +2 -2
- package/dist/client/static/js/java-kacycary.js +1 -0
- package/dist/client/static/js/javascript-zc1qnyyp.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-mtetwn6f.js → journeyDiagram-ZHPQQLJL-fa8x56mf.js} +3 -3
- package/dist/client/static/js/json-yrwpn6bd.js +1 -0
- package/dist/client/static/js/jsx-b40ag8q1.js +1 -0
- package/dist/client/static/js/{julia-mxe3pnz3.js → julia-agc5kfvg.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-4h5pw5mm.js → kanban-definition-PNTS6WVX-fybp2hh4.js} +5 -5
- package/dist/client/static/js/lua-bk961f37.js +1 -0
- package/dist/client/static/js/markdown-b7rgzgd6.js +1 -0
- package/dist/client/static/js/mermaid.core-jjh5ggp0.js +12 -0
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-67s4xy7h.js → mindmap-definition-NLK3R4M7-gtfbg619.js} +5 -5
- package/dist/client/static/js/one-dark-pro-vht9rv39.js +1 -0
- package/dist/client/static/js/one-light-arxc5whh.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-dgpge627.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-qykb6ssk.js → pegDiagram-GJSIUBJH-1a51sbqv.js} +1 -1
- package/dist/client/static/js/{perl-a8eeaqkn.js → perl-v5vbtzgf.js} +1 -1
- package/dist/client/static/js/{php-6gq92zt8.js → php-83qwy98t.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-b8pgsqrd.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-mymrrvck.js → pieDiagram-5QR66LMP-zd9svyyn.js} +3 -3
- package/dist/client/static/js/properties-k8gbzggp.js +1 -0
- package/dist/client/static/js/python-343tspad.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-6f8ahd40.js → quadrantDiagram-O4NWA36T-5gtw2m6s.js} +3 -3
- package/dist/client/static/js/r-ycdwmv8g.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-fmfe5y27.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-b5tks4ce.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-0sf4m0ze.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pjfy3pt7.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-nr8ngt42.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-c3habpvw.js → railroadDiagram-XR7U4H2S-3ccwpfzz.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-nysqy6te.js → requirementDiagram-PLB6GJNP-sasndrrp.js} +4 -4
- package/dist/client/static/js/{ruby-mc826p2e.js → ruby-994n5j6e.js} +1 -1
- package/dist/client/static/js/{rust-m4f4vpvn.js → rust-n9z2c9m3.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-s5dtfp3z.js → sankeyDiagram-IPEJSGJF-2ahb4sda.js} +3 -3
- package/dist/client/static/js/{sass-8bq5r2tz.js → sass-p6g7qdv2.js} +1 -1
- package/dist/client/static/js/{scss-9wz47c6t.js → scss-4j4t3r6y.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-bb3yp049.js → sequenceDiagram-PO4LG4MO-bfj90kz1.js} +7 -7
- package/dist/client/static/js/{sizeCapture-INFHLROL-0m2msee7.js → sizeCapture-INFHLROL-5tygxmtc.js} +1 -1
- package/dist/client/static/js/sql-kwpd5w07.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-cd0qgj6t.js → stateDiagram-v2-GCMORJYK-533xw76e.js} +3 -3
- package/dist/client/static/js/{svelte-5vrwkc13.js → svelte-bek3h1sz.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-rpb01f7p.js → swimlanes-2SLR337P-gd3d04pk.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xxmvdyg4.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-tqw2e6y1.js → timeline-definition-EJHVYXUP-fvqvgqvg.js} +3 -3
- package/dist/client/static/js/treeView-Q6P3EWNA-23r9fa68.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-mxxzdrj6.js +1 -0
- package/dist/client/static/js/tsx-gjxfjnbk.js +1 -0
- package/dist/client/static/js/typescript-4dchbnya.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-dhf4d5xg.js → usecaseDiagram-POWQR4AR-tm1f0m4x.js} +25 -25
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-ztkk79dv.js → vennDiagram-UO4OBE2U-2vdvv1hd.js} +4 -4
- package/dist/client/static/js/{vue-gmjnxjm3.js → vue-y44m889c.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-cbqtax1x.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-ahre5tmv.js → wardleyDiagram-VNRHLVJA-7avcjznx.js} +4 -4
- package/dist/client/static/js/xml-xs6qz3ya.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-vak2c50n.js → xychartDiagram-PMCCYNJV-g39y526n.js} +4 -4
- package/dist/client/static/js/yaml-174nk5bn.js +1 -0
- package/package.json +7 -7
- package/src/client/borders.css +15 -3
- package/src/client/components/common/ComposerTextarea.test.tsx +13 -1
- package/src/client/components/common/ComposerTextarea.tsx +8 -2
- package/src/client/components/common/MarkdownRenderer.tsx +11 -2
- package/src/client/components/common/anchored-menu/index.tsx +11 -4
- package/src/client/components/common/harness-glyph/harness-glyph.test.ts +0 -4
- package/src/client/components/common/harness-glyph/index.tsx +4 -5
- package/src/client/components/common/markdown-inline-file.test.tsx +90 -15
- package/src/client/components/common/session-actions-menu/index.test.tsx +45 -0
- package/src/client/components/common/session-actions-menu/index.tsx +6 -1
- package/src/client/components/common/session-row/TrailingSlot.tsx +6 -2
- package/src/client/components/common/session-row/index.tsx +32 -16
- package/src/client/components/common/session-row/session-row.test.tsx +56 -18
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +4 -1
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +28 -35
- package/src/client/components/layout/desktop-layout/index.tsx +5 -3
- package/src/client/components/layout/desktop-layout/resizer/index.tsx +13 -3
- package/src/client/components/layout/desktop-layout/resizer/panel.test.ts +41 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +21 -1
- package/src/client/components/layout/session-sidebar/CategoryHeader.worktree.test.tsx +1 -0
- package/src/client/components/layout/session-sidebar/CategoryItem.tsx +8 -2
- package/src/client/components/layout/session-sidebar/ClassicView.tsx +2 -0
- package/src/client/components/layout/session-sidebar/SessionList.tsx +4 -0
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +22 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +46 -8
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +9 -3
- package/src/client/components/layout/session-sidebar/modern/index.tsx +2 -0
- package/src/client/components/layout/session-sidebar/modern/workspace-header.test.tsx +36 -0
- package/src/client/components/layout/session-sidebar/search-results.test.tsx +29 -16
- package/src/client/components/layout/session-sidebar/session-list-states.test.tsx +1 -0
- package/src/client/components/layout/session-sidebar/variant-props.ts +2 -0
- package/src/client/components/mobile/LayoutWrapper.tsx +9 -0
- package/src/client/components/mobile/SessionSidebar.tsx +4 -0
- package/src/client/components/mobile/left-drawer-nav.test.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +4 -0
- package/src/client/components/mobile/mobile-session-sidebar/ClassicDrawer.tsx +3 -0
- package/src/client/components/mobile/mobile-session-sidebar/Item.test.tsx +85 -0
- package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +30 -14
- package/src/client/components/mobile/mobile-session-sidebar/List.tsx +4 -0
- package/src/client/components/settings/apply-side-effects.test.ts +31 -0
- package/src/client/components/settings/apply-side-effects.ts +7 -0
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.tsx +3 -2
- package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.test.tsx +95 -0
- package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.tsx +35 -0
- package/src/client/components/workspace/chat-timeline/ChatOverlays.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/MessageItem.gutter.test.ts +26 -0
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +6 -3
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +5 -0
- package/src/client/components/workspace/chat-timeline/OrchestrationNotice.tsx +81 -162
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +7 -3
- package/src/client/components/workspace/chat-timeline/ThinkingSection.test.tsx +17 -0
- package/src/client/components/workspace/chat-timeline/ThinkingSection.tsx +21 -7
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/UserTurn.test.tsx +24 -6
- package/src/client/components/workspace/chat-timeline/UserTurn.tsx +17 -4
- package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +16 -0
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +104 -11
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +120 -43
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +28 -21
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.wait.test.tsx +48 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +47 -22
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +24 -0
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +44 -18
- package/src/client/components/workspace/chat-timeline/chat-input/GoalSurfaces.tsx +2 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +35 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +33 -12
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx +26 -2
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.tsx +67 -37
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +86 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +90 -135
- package/src/client/components/workspace/chat-timeline/chat-input/VoiceButton.tsx +58 -0
- package/src/client/components/workspace/chat-timeline/chat-input/access-capability.test.tsx +151 -0
- package/src/client/components/workspace/chat-timeline/chat-input/action-base.ts +42 -0
- package/src/client/components/workspace/chat-timeline/chat-input/index.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/chat-input/mode-icons.test.ts +108 -0
- package/src/client/components/workspace/chat-timeline/chat-input/mode-icons.tsx +122 -0
- package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +5 -0
- package/src/client/components/workspace/chat-timeline/chat-input/narrow.test.tsx +78 -20
- package/src/client/components/workspace/chat-timeline/chat-input/styles/index.tsx +11 -5
- package/src/client/components/workspace/chat-timeline/chat-input/styles.test.tsx +19 -0
- package/src/client/components/workspace/chat-timeline/composer-dock-frame.test.tsx +9 -0
- package/src/client/components/workspace/chat-timeline/fork-preview.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/ParentSessionPicker.test.tsx +21 -5
- package/src/client/components/workspace/chat-timeline/target-picker/ParentSessionPicker.tsx +100 -71
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +83 -66
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.test.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +36 -15
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OptionRow.test.tsx +125 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OptionRow.tsx +84 -27
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.test.tsx +18 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +14 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +7 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolRowActions.tsx +10 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Card.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Compact.tsx +11 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Minimal.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Trace.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +5 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +19 -12
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/parity.test.tsx +50 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/props.ts +2 -0
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +31 -10
- package/src/client/components/workspace/model-dropdown/Header.tsx +13 -5
- package/src/client/components/workspace/model-dropdown/Panel.tsx +18 -0
- package/src/client/components/workspace/model-dropdown/ThinkingLevels.tsx +51 -0
- package/src/client/components/workspace/model-dropdown/Trigger.tsx +99 -0
- package/src/client/components/workspace/model-dropdown/bands.ts +51 -0
- package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +21 -5
- package/src/client/components/workspace/model-dropdown/index.tsx +20 -47
- package/src/client/components/workspace/model-dropdown/thinking-levels.test.tsx +108 -0
- package/src/client/components/workspace/model-dropdown/trigger.test.ts +54 -8
- package/src/client/hooks/chat/composer/attachments.test.ts +12 -0
- package/src/client/hooks/chat/composer/attachments.ts +16 -4
- package/src/client/hooks/chat/composer/pipeline.test.ts +14 -0
- package/src/client/hooks/chat/composer/pipeline.ts +15 -6
- package/src/client/hooks/chat/omp/session-list.activity.test.ts +20 -0
- package/src/client/hooks/chat/omp/session-merges.ts +18 -6
- package/src/client/hooks/chat/omp/session-sidebar-controller.ts +4 -0
- package/src/client/hooks/chat/timeline/access-ladder-wiring.test.ts +111 -0
- package/src/client/hooks/chat/timeline/access-ladder.test.ts +66 -0
- package/src/client/hooks/chat/timeline/access-ladder.ts +72 -0
- package/src/client/hooks/chat/timeline/access-mode.ts +11 -1
- package/src/client/hooks/chat/timeline/index.ts +4 -5
- package/src/client/hooks/chat/timeline/modes-contract.ts +10 -1
- package/src/client/hooks/chat/timeline/modes.ts +10 -2
- package/src/client/hooks/chat/timeline/scope.test.ts +17 -0
- package/src/client/hooks/chat/timeline/scope.ts +6 -1
- package/src/client/hooks/chat/timeline/send-refusal.test.ts +19 -0
- package/src/client/hooks/chat/timeline/send-steer.test.ts +17 -0
- package/src/client/hooks/chat/timeline/send.ts +17 -0
- package/src/client/hooks/editor/quick-open.ts +41 -0
- package/src/client/hooks/ui/border-style.test.ts +13 -0
- package/src/client/hooks/ui/markdown-render.ts +11 -6
- package/src/client/hooks/ui/open-inline-file.test.ts +16 -0
- package/src/client/hooks/ui/open-inline-file.ts +4 -2
- package/src/client/hooks/ui/show-more.ts +11 -1
- package/src/client/hooks/ui/ui-feedback.test.ts +11 -0
- package/src/client/hooks/ui/verified-inline-files.test.tsx +143 -0
- package/src/client/hooks/ui/verified-inline-files.ts +165 -0
- package/src/client/hooks/workspace/mobile-workspace-panels.test.tsx +116 -0
- package/src/client/hooks/workspace/mobile-workspace-panels.ts +73 -0
- package/src/client/hooks/workspace/panel-resize.test.ts +127 -0
- package/src/client/hooks/workspace/panel-resize.ts +81 -0
- package/src/client/hooks/workspace/session-list-limit.test.ts +80 -0
- package/src/client/hooks/workspace/session-list-limit.ts +69 -0
- package/src/client/hooks/workspace/session-pin.ts +58 -0
- package/src/client/hooks/workspace/workspace-panels-mode.test.tsx +87 -0
- package/src/client/hooks/workspace/workspace-panels-mode.ts +76 -0
- package/src/client/lib/router/branch-params.test.ts +17 -1
- package/src/client/lib/router/branch-params.ts +18 -0
- package/src/client/lib/ui/pressed.ts +15 -0
- package/src/client/tailwind.css +30 -10
- package/src/server/lib/connect/cloudflared.lifecycle.test.ts +25 -9
- package/src/server/lib/db/schema.test.ts +1 -1
- package/src/server/lib/db/schema.ts +17 -0
- package/src/server/lib/harness/activity.server.test.ts +81 -0
- package/src/server/lib/harness/activity.server.ts +55 -0
- package/src/server/lib/harness/spawn.server.ts +9 -0
- package/src/server/lib/omp/session/delete.server.ts +4 -2
- package/src/server/lib/omp/session/sidebar-activity.server.test.ts +24 -2
- package/src/server/lib/omp/session/sidebar-data.canonical.test.ts +14 -0
- package/src/server/lib/realtime/topics/session-data.server.ts +6 -5
- package/src/server/lib/realtime/topics/session-data.test.ts +35 -0
- package/src/server/lib/sessions/last-opened.server.test.ts +17 -0
- package/src/server/lib/sessions/last-opened.server.ts +18 -1
- package/src/server/routes/sessions/index.ts +3 -2
- package/src/server/routes/sessions/routes.test.ts +29 -46
- package/src/server/routes/sessions/session.ts +40 -62
- package/src/server/routes/sessions/state.test.ts +89 -0
- package/src/server/routes/sessions/state.ts +86 -0
- package/src/shared/lib/chat/attachment-budget.test.ts +74 -0
- package/src/shared/lib/chat/attachment-budget.ts +111 -0
- package/src/shared/lib/chat/attachments.test.ts +0 -17
- package/src/shared/lib/chat/attachments.ts +0 -53
- package/src/shared/lib/chat/orchestration/outcome-markdown.test.ts +57 -0
- package/src/shared/lib/chat/orchestration/outcome-markdown.ts +74 -0
- package/src/shared/lib/chat/timeline/block-chrome.test.ts +35 -0
- package/src/shared/lib/chat/timeline/block-chrome.ts +21 -0
- package/src/shared/lib/markdown/degenerate-emphasis.test.ts +64 -0
- package/src/shared/lib/markdown/degenerate-emphasis.ts +90 -0
- package/src/shared/lib/markdown/inline-file.test.ts +79 -22
- package/src/shared/lib/markdown/inline-file.ts +57 -25
- package/src/shared/lib/markdown/marked.ts +5 -1
- package/src/shared/lib/settings/defaults.ts +2 -0
- package/src/shared/lib/theme/border-style.ts +1 -1
- package/src/shared/lib/workspace/active-project.test.ts +17 -1
- package/src/shared/lib/workspace/active-project.ts +9 -0
- package/src/shared/lib/workspace/project-settings-delete.test.ts +97 -0
- package/src/shared/lib/workspace/project-settings.test.ts +2 -34
- package/src/shared/lib/workspace/project-settings.ts +6 -0
- package/src/shared/lib/workspace/session-list-limit.test.ts +31 -0
- package/src/shared/lib/workspace/session-list-limit.ts +32 -0
- package/src/shared/lib/workspace/sidebar-sort.test.ts +21 -0
- package/src/shared/lib/workspace/workspace-panel-widths.ts +1 -1
- package/src/shared/lib/workspace/workspace-session.test.ts +34 -0
- package/src/shared/lib/workspace/workspace-session.ts +40 -0
- package/src/shared/types/settings/state.ts +10 -0
- package/dist/client/static/js/ImageView-sz4fzz9k.js +0 -1
- package/dist/client/static/js/LayoutWrapper-q6q4h04a.js +0 -2
- package/dist/client/static/js/MergeDiffView-b8f013ws.js +0 -1
- package/dist/client/static/js/Modal-ahecatp5.js +0 -60
- package/dist/client/static/js/SessionsView-jwp8xvw5.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-dc7zys46.js +0 -1
- package/dist/client/static/js/bash-n5d0esqg.js +0 -1
- package/dist/client/static/js/c-pk766wx0.js +0 -1
- package/dist/client/static/js/cpp-3pt91jvm.js +0 -1
- package/dist/client/static/js/css-9gak6bze.js +0 -1
- package/dist/client/static/js/css-sp1cgdbr.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-9fx59e89.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-61d2ee91.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-104ywb7w.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-zkb30q0t.js +0 -1
- package/dist/client/static/js/graphql-2ntm7jyh.js +0 -1
- package/dist/client/static/js/html-mt2yb43b.js +0 -1
- package/dist/client/static/js/index-6h46r2de.js +0 -1
- package/dist/client/static/js/index-f44k9k8d.css +0 -1
- package/dist/client/static/js/index-k1576e2m.js +0 -2
- package/dist/client/static/js/index-k4qshngy.js +0 -4
- package/dist/client/static/js/index-rr79n77k.js +0 -470
- package/dist/client/static/js/index-vf01q99d.js +0 -2
- package/dist/client/static/js/index-x7h04xzf.js +0 -2
- package/dist/client/static/js/index-xygk0v3e.js +0 -2
- package/dist/client/static/js/info-A6RAGUB7-xxvyt8p8.js +0 -1
- package/dist/client/static/js/ini-bdk46a3d.js +0 -1
- package/dist/client/static/js/java-3g3925cf.js +0 -1
- package/dist/client/static/js/javascript-0mqgcvps.js +0 -1
- package/dist/client/static/js/json-hdyzmffz.js +0 -1
- package/dist/client/static/js/jsx-y8r9mrdq.js +0 -1
- package/dist/client/static/js/lua-wf5k6p3r.js +0 -1
- package/dist/client/static/js/markdown-9bf16dx7.js +0 -1
- package/dist/client/static/js/mermaid.core-bs542jma.js +0 -12
- package/dist/client/static/js/one-dark-pro-541ed4b7.js +0 -1
- package/dist/client/static/js/one-light-nr79mykt.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-cm8jeesg.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-8b9xgcxv.js +0 -1
- package/dist/client/static/js/properties-xk4dn00p.js +0 -1
- package/dist/client/static/js/python-7sgz05n4.js +0 -1
- package/dist/client/static/js/r-w4qxm0pv.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-fxr2x2mf.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-5qd45xk1.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-6fa00vpk.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pcbtg7tj.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-r0fdhdtp.js +0 -1
- package/dist/client/static/js/sql-sd00wgem.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-zx36y2c8.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-9sn2h4ea.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-9fzms0pq.js +0 -1
- package/dist/client/static/js/tsx-h5yzg80q.js +0 -1
- package/dist/client/static/js/typescript-qy1sbhea.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-vy6rp5gp.js +0 -1
- package/dist/client/static/js/xml-mrk4xakv.js +0 -1
- package/dist/client/static/js/yaml-xaza6dra.js +0 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +0 -67
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{t,Jp,l,w,re,F,O,G,z,j,q,H,m,b,Xi,fc,es,jg,jn,fh,ui,To,cl,V}from"./index-xfyxmaj1.js";import{Zl,cd,Tp,ud,Aa}from"./index-dz18nn65.js";import{xn,zn}from"./index-kc5yt2cd.js";var fn=zn(function(Ke,tr){(function(e,r){typeof Ke=="object"&&typeof tr<"u"?tr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Ke,function(){var e="day";return function(r,n,i){var a=function(x){return x.add(4-x.isoWeekday(),e)},s=n.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(x){if(!this.$utils().u(x))return this.add(7*(x-this.isoWeek()),e);var D,E,_,rt,A=a(this),Y=(D=this.isoWeekYear(),E=this.$u,_=(E?i.utc:i)().year(D).startOf("year"),rt=4-_.isoWeekday(),_.isoWeekday()>4&&(rt+=7),_.add(rt,e));return A.diff(Y,"week")+1},s.isoWeekday=function(x){return this.$utils().u(x)?this.day()||7:this.day(this.day()%7?x:x-7)};var c=s.startOf;s.startOf=function(x,D){var E=this.$utils(),_=!!E.u(D)||D;return E.p(x)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(x,D)}}})});var dn=zn(function(er,rr){(function(e,r){typeof er=="object"&&typeof rr<"u"?rr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(er,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},x=function(W){return(W=+W)+(W>68?1900:2000)},D=function(W){return function(N){this[W]=+N}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(W){(this.zone||(this.zone={})).offset=function(N){if(!N)return 0;if(N==="Z")return 0;var I=N.match(/([+-]|\d\d)/g),J=60*I[1]+(+I[2]||0);return J===0?0:I[0]==="+"?-J:J}(W)}],_=function(W){var N=c[W];return N&&(N.indexOf?N:N.s.concat(N.f))},rt=function(W,N){var I,J=c.meridiem;if(J){for(var lt=1;lt<=24;lt+=1)if(W.indexOf(J(lt,0,N))>-1){I=lt>12;break}}else I=W===(N?"pm":"PM");return I},A={A:[s,function(W){this.afternoon=rt(W,!1)}],a:[s,function(W){this.afternoon=rt(W,!0)}],Q:[n,function(W){this.month=3*(W-1)+1}],S:[n,function(W){this.milliseconds=100*+W}],SS:[i,function(W){this.milliseconds=10*+W}],SSS:[/\d{3}/,function(W){this.milliseconds=+W}],s:[a,D("seconds")],ss:[a,D("seconds")],m:[a,D("minutes")],mm:[a,D("minutes")],H:[a,D("hours")],h:[a,D("hours")],HH:[a,D("hours")],hh:[a,D("hours")],D:[a,D("day")],DD:[i,D("day")],Do:[s,function(W){var N=c.ordinal,I=W.match(/\d+/);if(this.day=I[0],N)for(var J=1;J<=31;J+=1)N(J).replace(/\[|\]/g,"")===W&&(this.day=J)}],w:[a,D("week")],ww:[i,D("week")],M:[a,D("month")],MM:[i,D("month")],MMM:[s,function(W){var N=_("months"),I=(_("monthsShort")||N.map(function(J){return J.slice(0,3)})).indexOf(W)+1;if(I<1)throw Error();this.month=I%12||I}],MMMM:[s,function(W){var N=_("months").indexOf(W)+1;if(N<1)throw Error();this.month=N%12||N}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(W){this.year=x(W)}],YYYY:[/\d{4}/,D("year")],Z:E,ZZ:E};function Y(W){var N,I;N=W,I=c&&c.formats;for(var J=(W=N.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(tt,et,T){var S=T&&T.toUpperCase();return et||I[T]||e[T]||I[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,L,f){return L||f.slice(1)})})).match(r),lt=J.length,it=0;it<lt;it+=1){var P=J[it],M=A[P],u=M&&M[0],U=M&&M[1];J[it]=U?{regex:u,parser:U}:P.replace(/^\[|\]$/g,"")}return function(tt){for(var et={},T=0,S=0;T<lt;T+=1){var C=J[T];if(typeof C=="string")S+=C.length;else{var{regex:L,parser:f}=C,v=tt.slice(S),p=L.exec(v)[0];f.call(et,p),tt=tt.replace(p,"")}}return function(k){var Z=k.afternoon;if(Z!==void 0){var o=k.hours;Z?o<12&&(k.hours+=12):o===12&&(k.hours=0),delete k.afternoon}}(et),et}}return function(W,N,I){I.p.customParseFormat=!0,W&&W.parseTwoDigitYear&&(x=W.parseTwoDigitYear);var J=N.prototype,lt=J.parse;J.parse=function(it){var{date:P,utc:M,args:u}=it;this.$u=M;var U=u[1];if(typeof U=="string"){var tt=u[2]===!0,et=u[3]===!0,T=tt||et,S=u[2];et&&(S=u[2]),c=this.$locale(),!tt&&S&&(c=I.Ls[S]),this.$d=function(v,p,k,Z){try{if(["x","X"].indexOf(p)>-1)return new Date((p==="X"?1000:1)*v);var o=Y(p)(v),{year:X,month:h,day:dt,hours:d,minutes:B,seconds:Q,milliseconds:ct,zone:ut,week:nt}=o,g=new Date,R=dt||(X||h?1:g.getDate()),K=X||g.getFullYear(),y=0;X&&!h||(y=h>0?h-1:g.getMonth());var mt,at=d||0,st=B||0,ht=Q||0,yt=ct||0;return ut?new Date(Date.UTC(K,y,R,at,st,ht,yt+60*ut.offset*1000)):k?new Date(Date.UTC(K,y,R,at,st,ht,yt)):(mt=new Date(K,y,R,at,st,ht,yt),nt&&(mt=Z(mt).week(nt).toDate()),mt)}catch(pt){return new Date("")}}(P,U,M,I),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),T&&P!=this.format(U)&&(this.$d=new Date("")),c={}}else if(U instanceof Array)for(var C=U.length,L=1;L<=C;L+=1){u[1]=U[L-1];var f=I.apply(this,u);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}L===C&&(this.$d=new Date(""))}else lt.call(this,it)}}})});var mn=zn(function(nr,ir){(function(e,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(nr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(a){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var x=this.$utils(),D=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(E){switch(E){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return x.s(s.week(),E==="w"?1:2,"0");case"W":case"WW":return x.s(s.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return x.s(String(s.$H===0?24:s.$H),E==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1000);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return E}});return i.bind(this)(D)}}})});var hn=zn(function(ar,sr){(function(e,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ar,function(){var e,r,n=1000,i=60000,a=3600000,s=86400000,c=31536000000,x=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,E=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:c,months:x,days:s,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:604800000},rt=function(P){return P instanceof lt},A=function(P,M,u){return new lt(P,u,M.$l)},Y=function(P){return r.p(P)+"s"},W=function(P){return P<0},N=function(P){return W(P)?Math.ceil(P):Math.floor(P)},I=function(P){return Math.abs(P)},J=function(P,M){return P?W(P)?{negative:!0,format:""+I(P)+M}:{negative:!1,format:""+P+M}:{negative:!1,format:""}},lt=function(){function P(u,U,tt){var et=this;if(this.$d={},this.$l=tt,u===void 0&&(this.$ms=0,this.parseFromMilliseconds()),U)return A(u*_[Y(U)],this);if(typeof u=="number")return this.$ms=u,this.parseFromMilliseconds(),this;if(typeof u=="object")return Object.keys(u).forEach(function(C){et.$d[Y(C)]=u[C]}),this.calMilliseconds(),this;if(typeof u=="string"){var T=u.match(D);if(T){var S=T.slice(2).map(function(C){return C!=null?Number(C):0});return this.$d.years=S[0],this.$d.months=S[1],this.$d.weeks=S[2],this.$d.days=S[3],this.$d.hours=S[4],this.$d.minutes=S[5],this.$d.seconds=S[6],this.calMilliseconds(),this}}return this}var M=P.prototype;return M.calMilliseconds=function(){var u=this;this.$ms=Object.keys(this.$d).reduce(function(U,tt){return U+(u.$d[tt]||0)*_[tt]},0)},M.parseFromMilliseconds=function(){var u=this.$ms;this.$d.years=N(u/c),u%=c,this.$d.months=N(u/x),u%=x,this.$d.days=N(u/s),u%=s,this.$d.hours=N(u/a),u%=a,this.$d.minutes=N(u/i),u%=i,this.$d.seconds=N(u/n),u%=n,this.$d.milliseconds=u},M.toISOString=function(){var u=J(this.$d.years,"Y"),U=J(this.$d.months,"M"),tt=+this.$d.days||0;this.$d.weeks&&(tt+=7*this.$d.weeks);var et=J(tt,"D"),T=J(this.$d.hours,"H"),S=J(this.$d.minutes,"M"),C=this.$d.seconds||0;this.$d.milliseconds&&(C+=this.$d.milliseconds/1000,C=Math.round(1000*C)/1000);var L=J(C,"S"),f=u.negative||U.negative||et.negative||T.negative||S.negative||L.negative,v=T.format||S.format||L.format?"T":"",p=(f?"-":"")+"P"+u.format+U.format+et.format+v+T.format+S.format+L.format;return p==="P"||p==="-P"?"P0D":p},M.toJSON=function(){return this.toISOString()},M.format=function(u){var U=u||"YYYY-MM-DDTHH:mm:ss",tt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return U.replace(E,function(et,T){return T||String(tt[et])})},M.as=function(u){return this.$ms/_[Y(u)]},M.get=function(u){var U=this.$ms,tt=Y(u);return tt==="milliseconds"?U%=1000:U=tt==="weeks"?N(U/_[tt]):this.$d[tt],U||0},M.add=function(u,U,tt){var et;return et=U?u*_[Y(U)]:rt(u)?u.$ms:A(u,this).$ms,A(this.$ms+et*(tt?-1:1),this)},M.subtract=function(u,U){return this.add(u,U,!0)},M.locale=function(u){var U=this.clone();return U.$l=u,U},M.clone=function(){return A(this.$ms,this)},M.humanize=function(u){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!u)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},P}(),it=function(P,M,u){return P.add(M.years()*u,"y").add(M.months()*u,"M").add(M.days()*u,"d").add(M.hours()*u,"h").add(M.minutes()*u,"m").add(M.seconds()*u,"s").add(M.milliseconds()*u,"ms")};return function(P,M,u){e=u,r=u().$utils(),u.duration=function(et,T){var S=u.locale();return A(et,{$l:S},T)},u.isDuration=rt;var U=M.prototype.add,tt=M.prototype.subtract;M.prototype.add=function(et,T){return rt(et)?it(this,et,1):U.bind(this)(et,T)},M.prototype.subtract=function(et,T){return rt(et)?it(this,et,-1):tt.bind(this)(et,T)}}})});function Ie(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n<i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n<a||n===void 0&&a>=a))n=a}return n}function Ue(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n>i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n>a||n===void 0&&a>=a))n=a}return n}function Le(e){return e}var me=1,We=2,Ee=3,de=4,wr=0.000001;function Ln(e){return"translate("+e+",0)"}function Wn(e){return"translate(0,"+e+")"}function En(e){return(r)=>+e(r)}function An(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function On(){return!this.__axis}function Mr(e,r){var n=[],i=null,a=null,s=6,c=6,x=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,E=e===me||e===de?-1:1,_=e===de||e===We?"x":"y",rt=e===me||e===Ee?Ln:Wn;function A(Y){var W=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,N=a==null?r.tickFormat?r.tickFormat.apply(r,n):Le:a,I=Math.max(s,0)+x,J=r.range(),lt=+J[0]+D,it=+J[J.length-1]+D,P=(r.bandwidth?An:En)(r.copy(),D),M=Y.selection?Y.selection():Y,u=M.selectAll(".domain").data([null]),U=M.selectAll(".tick").data(W,r).order(),tt=U.exit(),et=U.enter().append("g").attr("class","tick"),T=U.select("line"),S=U.select("text");if(u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),U=U.merge(et),T=T.merge(et.append("line").attr("stroke","currentColor").attr(_+"2",E*s)),S=S.merge(et.append("text").attr("fill","currentColor").attr(_,E*I).attr("dy",e===me?"0em":e===Ee?"0.71em":"0.32em")),Y!==M)u=u.transition(Y),U=U.transition(Y),T=T.transition(Y),S=S.transition(Y),tt=tt.transition(Y).attr("opacity",wr).attr("transform",function(C){return isFinite(C=P(C))?rt(C+D):this.getAttribute("transform")}),et.attr("opacity",wr).attr("transform",function(C){var L=this.parentNode.__axis;return rt((L&&isFinite(L=L(C))?L:P(C))+D)});tt.remove(),u.attr("d",e===de||e===We?c?"M"+E*c+","+lt+"H"+D+"V"+it+"H"+E*c:"M"+D+","+lt+"V"+it:c?"M"+lt+","+E*c+"V"+D+"H"+it+"V"+E*c:"M"+lt+","+D+"H"+it),U.attr("opacity",1).attr("transform",function(C){return rt(P(C)+D)}),T.attr(_+"2",E*s),S.attr(_,E*I).text(N),M.filter(On).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===de?"end":"middle"),M.each(function(){this.__axis=P})}return A.scale=function(Y){return arguments.length?(r=Y,A):r},A.ticks=function(){return n=Array.from(arguments),A},A.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),A):n.slice()},A.tickValues=function(Y){return arguments.length?(i=Y==null?null:Array.from(Y),A):i&&i.slice()},A.tickFormat=function(Y){return arguments.length?(a=Y,A):a},A.tickSize=function(Y){return arguments.length?(s=c=+Y,A):s},A.tickSizeInner=function(Y){return arguments.length?(s=+Y,A):s},A.tickSizeOuter=function(Y){return arguments.length?(c=+Y,A):c},A.tickPadding=function(Y){return arguments.length?(x=+Y,A):x},A.offset=function(Y){return arguments.length?(D=+Y,A):D},A}function Ae(e){return Mr(me,e)}function Oe(e){return Mr(Ee,e)}var Dr=Math.PI/180,Cr=180/Math.PI;var he=18,Sr=0.96422,_r=1,Yr=0.82521,Fr=0.13793103448275862,Xt=0.20689655172413793,Ir=3*Xt*Xt,$n=Xt*Xt*Xt;function Ur(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof Wt)return Wr(e);if(!(e instanceof jn))e=jg(e);var r=Pe(e.r),n=Pe(e.g),i=Pe(e.b),a=$e((0.2225045*r+0.7168786*n+0.0606169*i)/_r),s,c;if(r===n&&n===i)s=c=a;else s=$e((0.4360747*r+0.3850649*n+0.1430804*i)/Sr),c=$e((0.0139322*r+0.0971045*n+0.7141733*i)/Yr);return new _t(116*a-16,500*(s-a),200*(a-c),e.opacity)}function Lr(e,r,n,i){return arguments.length===1?Ur(e):new _t(e,r,n,i==null?1:i)}function _t(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Xi(_t,Lr,fc(es,{brighter(e){return new _t(this.l+he*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(this.l-he*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Sr*He(r),e=_r*He(e),n=Yr*He(n),new jn(Ne(3.1338561*r-1.6168667*e-0.4906146*n),Ne(-0.9787684*r+1.9161415*e+0.033454*n),Ne(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function $e(e){return e>$n?Math.pow(e,0.3333333333333333):e/Ir+Fr}function He(e){return e>Xt?e*e*e:Ir*(e-Fr)}function Ne(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Pe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Hn(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);if(!(e instanceof _t))e=Ur(e);if(e.a===0&&e.b===0)return new Wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Cr;return new Wt(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ye(e,r,n,i){return arguments.length===1?Hn(e):new Wt(e,r,n,i==null?1:i)}function Wt(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Wr(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var r=e.h*Dr;return new _t(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Xi(Wt,ye,fc(es,{brighter(e){return new Wt(this.h,this.c,this.l+he*(e==null?1:e),this.opacity)},darker(e){return new Wt(this.h,this.c,this.l-he*(e==null?1:e),this.opacity)},rgb(){return Wr(this).rgb()}}));function Er(e){return function(r,n){var i=e((r=ye(r)).h,(n=ye(n)).h),a=ui(r.c,n.c),s=ui(r.l,n.l),c=ui(r.opacity,n.opacity);return function(x){return r.h=i(x),r.c=a(x),r.l=s(x),r.opacity=c(x),r+""}}}var Ar=Er(fh),Ds=Er(ui);function Ve(e,r){e=e.slice();var n=0,i=e.length-1,a=e[n],s=e[i],c;if(s<a)c=n,n=i,i=c,c=a,a=s,s=c;return e[n]=r.floor(a),e[i]=r.ceil(s),e}var ze=new Date,Re=new Date;function ft(e,r,n,i){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}if(a.floor=(s)=>(e(s=new Date(+s)),s),a.ceil=(s)=>(e(s=new Date(s-1)),r(s,1),e(s),s),a.round=(s)=>{let c=a(s),x=a.ceil(s);return s-c<x-s?c:x},a.offset=(s,c)=>(r(s=new Date(+s),c==null?1:Math.floor(c)),s),a.range=(s,c,x)=>{let D=[];if(s=a.ceil(s),x=x==null?1:Math.floor(x),!(s<c)||!(x>0))return D;let E;do D.push(E=new Date(+s)),r(s,x),e(s);while(E<s&&s<c);return D},a.filter=(s)=>ft((c)=>{if(c>=c)while(e(c),!s(c))c.setTime(c-1)},(c,x)=>{if(c>=c)if(x<0)while(++x<=0)while(r(c,-1),!s(c));else while(--x>=0)while(r(c,1),!s(c));}),n)a.count=(s,c)=>(ze.setTime(+s),Re.setTime(+c),e(ze),e(Re),Math.floor(n(ze,Re))),a.every=(s)=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:!(s>1)?a:a.filter(i?(c)=>i(c)%s===0:(c)=>a.count(0,c)%s===0));return a}var Yt=ft(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);Yt.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return Yt;return ft((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Or=Yt.range;var Mt=1000,Tt=60000,Ft=3600000,Ht=86400000,ie=604800000,Be=2592000000,ge=31536000000;var vt=ft((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Mt)},(e,r)=>(r-e)/Mt,(e)=>e.getUTCSeconds()),$r=vt.range;var Et=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getMinutes()),Nn=Et.range,ke=ft((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getUTCMinutes()),Pn=ke.range;var At=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt-e.getMinutes()*Tt)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getHours()),Vn=At.range,pe=ft((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getUTCHours()),Rn=pe.range;var Dt=ft((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/Ht,(e)=>e.getDate()-1),Bn=Dt.range,ae=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>e.getUTCDate()-1),Zn=ae.range,Te=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>Math.floor(e/Ht)),Xn=Te.range;function Vt(e){return ft((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*Tt)/ie)}var Ct=Vt(0),Nt=Vt(1),ve=Vt(2),xe=Vt(3),It=Vt(4),be=Vt(5),we=Vt(6),Hr=Ct.range,qn=Nt.range,Gn=ve.range,Qn=xe.range,Jn=It.range,Kn=be.range,ti=we.range;function zt(e){return ft((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/ie)}var Rt=zt(0),qt=zt(1),Nr=zt(2),Pr=zt(3),Pt=zt(4),Vr=zt(5),zr=zt(6),Rr=Rt.range,ei=qt.range,ri=Nr.range,ni=Pr.range,ii=Pt.range,ai=Vr.range,si=zr.range;var Ot=ft((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),oi=Ot.range,Me=ft((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),ci=Me.range;var xt=ft((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());xt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var li=xt.range,St=ft((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());St.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var fi=St.range;function Br(e,r,n,i,a,s){let c=[[vt,1,Mt],[vt,5,5*Mt],[vt,15,15*Mt],[vt,30,30*Mt],[s,1,Tt],[s,5,5*Tt],[s,15,15*Tt],[s,30,30*Tt],[a,1,Ft],[a,3,3*Ft],[a,6,6*Ft],[a,12,12*Ft],[i,1,Ht],[i,2,2*Ht],[n,1,ie],[r,1,Be],[r,3,3*Be],[e,1,ge]];function x(E,_,rt){let A=_<E;if(A)[E,_]=[_,E];let Y=rt&&typeof rt.range==="function"?rt:D(E,_,rt),W=Y?Y.range(E,+_+1):[];return A?W.reverse():W}function D(E,_,rt){let A=Math.abs(_-E)/rt,Y=Zl(([,,I])=>I).right(c,A);if(Y===c.length)return e.every(cd(E/ge,_/ge,rt));if(Y===0)return Yt.every(Math.max(cd(E,_,rt),1));let[W,N]=c[A/c[Y-1][2]<c[Y][2]/A?Y-1:Y];return W.every(N)}return[x,D]}var[di,mi]=Br(St,Me,Rt,Te,pe,ke),[Ze,je]=Br(xt,Ot,Ct,Dt,At,Et);function Xe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function se(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var{dateTime:r,date:n,time:i,periods:a,days:s,shortDays:c,months:x,shortMonths:D}=e,E=oe(a),_=ce(a),rt=oe(s),A=ce(s),Y=oe(c),W=ce(c),N=oe(x),I=ce(x),J=oe(D),lt=ce(D),it={a:k,A:Z,b:o,B:X,c:null,d:Qr,e:Qr,f:Ai,g:Zi,G:qi,H:Li,I:Wi,j:Ei,L:rn,m:Oi,M:$i,p:h,q:dt,Q:tn,s:en,S:Hi,u:Ni,U:Pi,V:Vi,w:zi,W:Ri,x:null,X:null,y:Bi,Y:ji,Z:Gi,"%":Kr},P={a:d,A:B,b:Q,B:ct,c:null,d:Jr,e:Jr,f:ta,g:la,G:da,H:Qi,I:Ji,j:Ki,L:an,m:ea,M:ra,p:ut,q:nt,Q:tn,s:en,S:na,u:ia,U:aa,V:sa,w:oa,W:ca,x:null,X:null,y:ua,Y:fa,Z:ma,"%":Kr},M={a:T,A:S,b:C,B:L,c:f,d:qr,e:qr,f:Yi,g:Xr,G:jr,H:Gr,I:Gr,j:Di,L:_i,m:Mi,M:Ci,p:et,q:wi,Q:Ii,s:Ui,S:Si,u:pi,U:Ti,V:vi,w:ki,W:xi,x:v,X:p,y:Xr,Y:jr,Z:bi,"%":Fi};it.x=u(n,it),it.X=u(i,it),it.c=u(r,it),P.x=u(n,P),P.X=u(i,P),P.c=u(r,P);function u(g,R){return function(K){var y=[],mt=-1,at=0,st=g.length,ht,yt,pt;if(!(K instanceof Date))K=new Date(+K);while(++mt<st)if(g.charCodeAt(mt)===37){if(y.push(g.slice(at,mt)),(yt=Zr[ht=g.charAt(++mt)])!=null)ht=g.charAt(++mt);else yt=ht==="e"?" ":"0";if(pt=R[ht])ht=pt(K,yt);y.push(ht),at=mt+1}return y.push(g.slice(at,mt)),y.join("")}}function U(g,R){return function(K){var y=se(1900,void 0,1),mt=tt(y,g,K+="",0),at,st;if(mt!=K.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(R&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)at=qe(se(y.y,0,1)),st=at.getUTCDay(),at=st>4||st===0?qt.ceil(at):qt(at),at=ae.offset(at,(y.V-1)*7),y.y=at.getUTCFullYear(),y.m=at.getUTCMonth(),y.d=at.getUTCDate()+(y.w+6)%7;else at=Xe(se(y.y,0,1)),st=at.getDay(),at=st>4||st===0?Nt.ceil(at):Nt(at),at=Dt.offset(at,(y.V-1)*7),y.y=at.getFullYear(),y.m=at.getMonth(),y.d=at.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;st="Z"in y?qe(se(y.y,0,1)).getUTCDay():Xe(se(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(st+5)%7:y.w+y.U*7-(st+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,qe(y);return Xe(y)}}function tt(g,R,K,y){var mt=0,at=R.length,st=K.length,ht,yt;while(mt<at){if(y>=st)return-1;if(ht=R.charCodeAt(mt++),ht===37){if(ht=R.charAt(mt++),yt=M[ht in Zr?R.charAt(mt++):ht],!yt||(y=yt(g,K,y))<0)return-1}else if(ht!=K.charCodeAt(y++))return-1}return y}function et(g,R,K){var y=E.exec(R.slice(K));return y?(g.p=_.get(y[0].toLowerCase()),K+y[0].length):-1}function T(g,R,K){var y=Y.exec(R.slice(K));return y?(g.w=W.get(y[0].toLowerCase()),K+y[0].length):-1}function S(g,R,K){var y=rt.exec(R.slice(K));return y?(g.w=A.get(y[0].toLowerCase()),K+y[0].length):-1}function C(g,R,K){var y=J.exec(R.slice(K));return y?(g.m=lt.get(y[0].toLowerCase()),K+y[0].length):-1}function L(g,R,K){var y=N.exec(R.slice(K));return y?(g.m=I.get(y[0].toLowerCase()),K+y[0].length):-1}function f(g,R,K){return tt(g,r,R,K)}function v(g,R,K){return tt(g,n,R,K)}function p(g,R,K){return tt(g,i,R,K)}function k(g){return c[g.getDay()]}function Z(g){return s[g.getDay()]}function o(g){return D[g.getMonth()]}function X(g){return x[g.getMonth()]}function h(g){return a[+(g.getHours()>=12)]}function dt(g){return 1+~~(g.getMonth()/3)}function d(g){return c[g.getUTCDay()]}function B(g){return s[g.getUTCDay()]}function Q(g){return D[g.getUTCMonth()]}function ct(g){return x[g.getUTCMonth()]}function ut(g){return a[+(g.getUTCHours()>=12)]}function nt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var R=u(g+="",it);return R.toString=function(){return g},R},parse:function(g){var R=U(g+="",!1);return R.toString=function(){return g},R},utcFormat:function(g){var R=u(g+="",P);return R.toString=function(){return g},R},utcParse:function(g){var R=U(g+="",!0);return R.toString=function(){return g},R}}}var Zr={"-":"",_:" ","0":"0"},kt=/^\s*\d+/,hi=/^%/,yi=/[\\^$*+?|[\]().{}]/g;function ot(e,r,n){var i=e<0?"-":"",a=(i?-e:e)+"",s=a.length;return i+(s<n?Array(n-s+1).join(r)+a:a)}function gi(e){return e.replace(yi,"\\$&")}function oe(e){return new RegExp("^(?:"+e.map(gi).join("|")+")","i")}function ce(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function ki(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function pi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Ti(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function vi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function xi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function jr(e,r,n){var i=kt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Xr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function bi(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function wi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Mi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function qr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Di(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Gr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ci(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Si(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=kt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Fi(e,r,n){var i=hi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Ii(e,r,n){var i=kt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Ui(e,r,n){var i=kt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Qr(e,r){return ot(e.getDate(),r,2)}function Li(e,r){return ot(e.getHours(),r,2)}function Wi(e,r){return ot(e.getHours()%12||12,r,2)}function Ei(e,r){return ot(1+Dt.count(xt(e),e),r,3)}function rn(e,r){return ot(e.getMilliseconds(),r,3)}function Ai(e,r){return rn(e,r)+"000"}function Oi(e,r){return ot(e.getMonth()+1,r,2)}function $i(e,r){return ot(e.getMinutes(),r,2)}function Hi(e,r){return ot(e.getSeconds(),r,2)}function Ni(e){var r=e.getDay();return r===0?7:r}function Pi(e,r){return ot(Ct.count(xt(e)-1,e),r,2)}function nn(e){var r=e.getDay();return r>=4||r===0?It(e):It.ceil(e)}function Vi(e,r){return e=nn(e),ot(It.count(xt(e),e)+(xt(e).getDay()===4),r,2)}function zi(e){return e.getDay()}function Ri(e,r){return ot(Nt.count(xt(e)-1,e),r,2)}function Bi(e,r){return ot(e.getFullYear()%100,r,2)}function Zi(e,r){return e=nn(e),ot(e.getFullYear()%100,r,2)}function ji(e,r){return ot(e.getFullYear()%1e4,r,4)}function qi(e,r){var n=e.getDay();return e=n>=4||n===0?It(e):It.ceil(e),ot(e.getFullYear()%1e4,r,4)}function Gi(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ot(r/60|0,"0",2)+ot(r%60,"0",2)}function Jr(e,r){return ot(e.getUTCDate(),r,2)}function Qi(e,r){return ot(e.getUTCHours(),r,2)}function Ji(e,r){return ot(e.getUTCHours()%12||12,r,2)}function Ki(e,r){return ot(1+ae.count(St(e),e),r,3)}function an(e,r){return ot(e.getUTCMilliseconds(),r,3)}function ta(e,r){return an(e,r)+"000"}function ea(e,r){return ot(e.getUTCMonth()+1,r,2)}function ra(e,r){return ot(e.getUTCMinutes(),r,2)}function na(e,r){return ot(e.getUTCSeconds(),r,2)}function ia(e){var r=e.getUTCDay();return r===0?7:r}function aa(e,r){return ot(Rt.count(St(e)-1,e),r,2)}function sn(e){var r=e.getUTCDay();return r>=4||r===0?Pt(e):Pt.ceil(e)}function sa(e,r){return e=sn(e),ot(Pt.count(St(e),e)+(St(e).getUTCDay()===4),r,2)}function oa(e){return e.getUTCDay()}function ca(e,r){return ot(qt.count(St(e)-1,e),r,2)}function ua(e,r){return ot(e.getUTCFullYear()%100,r,2)}function la(e,r){return e=sn(e),ot(e.getUTCFullYear()%100,r,2)}function fa(e,r){return ot(e.getUTCFullYear()%1e4,r,4)}function da(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Pt(e):Pt.ceil(e),ot(e.getUTCFullYear()%1e4,r,4)}function ma(){return"+0000"}function Kr(){return"%"}function tn(e){return+e}function en(e){return Math.floor(+e/1000)}var Gt,Bt,on,cn,un;Qe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qe(e){return Gt=Ge(e),Bt=Gt.format,on=Gt.parse,cn=Gt.utcFormat,un=Gt.utcParse,Gt}function ha(e){return new Date(e)}function ya(e){return e instanceof Date?+e:+new Date(+e)}function ln(e,r,n,i,a,s,c,x,D,E){var _=ud(),{invert:rt,domain:A}=_,Y=E(".%L"),W=E(":%S"),N=E("%I:%M"),I=E("%I %p"),J=E("%a %d"),lt=E("%b %d"),it=E("%B"),P=E("%Y");function M(u){return(D(u)<u?Y:x(u)<u?W:c(u)<u?N:s(u)<u?I:i(u)<u?a(u)<u?J:lt:n(u)<u?it:P)(u)}return _.invert=function(u){return new Date(rt(u))},_.domain=function(u){return arguments.length?A(Array.from(u,ya)):A().map(ha)},_.ticks=function(u){var U=A();return e(U[0],U[U.length-1],u==null?10:u)},_.tickFormat=function(u,U){return U==null?M:E(U)},_.nice=function(u){var U=A();if(!u||typeof u.range!=="function")u=r(U[0],U[U.length-1],u==null?10:u);return u?A(Ve(U,u)):_},_.copy=function(){return Tp(_,ln(e,r,n,i,a,s,c,x,D,E))},_}function Je(){return To.apply(ln(Ze,je,xt,Ot,Ct,Dt,At,Et,vt,Bt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var pn=xn(cl(),1),bt=xn(Jp(),1),Tn=xn(fn(),1),vn=xn(dn(),1),bn=xn(mn(),1),Jt=xn(Jp(),1),Un=xn(hn(),1);var cr=function(){var e=t(function(L,f,v,p){for(v=v||{},p=L.length;p--;v[L[p]]=f);return v},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],a=[1,28],s=[1,29],c=[1,30],x=[1,31],D=[1,32],E=[1,33],_=[1,34],rt=[1,9],A=[1,10],Y=[1,11],W=[1,12],N=[1,13],I=[1,14],J=[1,15],lt=[1,16],it=[1,19],P=[1,20],M=[1,21],u=[1,22],U=[1,23],tt=[1,25],et=[1,35],T={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(f,v,p,k,Z,o,X){var h=o.length-1;switch(Z){case 1:return o[h-1];case 2:this.$=[];break;case 3:o[h-1].push(o[h]),this.$=o[h-1];break;case 4:case 5:this.$=o[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[h].substr(18);break;case 19:k.TopAxis(),this.$=o[h].substr(8);break;case 20:k.setAxisFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 21:k.setTickInterval(o[h].substr(13)),this.$=o[h].substr(13);break;case 22:k.setExcludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 23:k.setIncludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 24:k.setTodayMarker(o[h].substr(12)),this.$=o[h].substr(12);break;case 27:k.setDiagramTitle(o[h].substr(6)),this.$=o[h].substr(6);break;case 28:this.$=o[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[h].substr(8)),this.$=o[h].substr(8);break;case 33:k.addTask(o[h-1],o[h]),this.$="task";break;case 34:this.$=o[h-1],k.setClickEvent(o[h-1],o[h],null);break;case 35:this.$=o[h-2],k.setClickEvent(o[h-2],o[h-1],o[h]);break;case 36:this.$=o[h-2],k.setClickEvent(o[h-2],o[h-1],null),k.setLink(o[h-2],o[h]);break;case 37:this.$=o[h-3],k.setClickEvent(o[h-3],o[h-2],o[h-1]),k.setLink(o[h-3],o[h]);break;case 38:this.$=o[h-2],k.setClickEvent(o[h-2],o[h],null),k.setLink(o[h-2],o[h-1]);break;case 39:this.$=o[h-3],k.setClickEvent(o[h-3],o[h-1],o[h]),k.setLink(o[h-3],o[h-2]);break;case 40:this.$=o[h-1],k.setLink(o[h-1],o[h]);break;case 41:case 47:this.$=o[h-1]+" "+o[h];break;case 42:case 43:case 45:this.$=o[h-2]+" "+o[h-1]+" "+o[h];break;case 44:case 46:this.$=o[h-3]+" "+o[h-2]+" "+o[h-1]+" "+o[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:c,17:x,18:D,19:18,20:E,21:_,22:rt,23:A,24:Y,25:W,26:N,27:I,28:J,29:lt,30:it,31:P,33:M,35:u,36:U,37:24,38:tt,40:et},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:c,17:x,18:D,19:18,20:E,21:_,22:rt,23:A,24:Y,25:W,26:N,27:I,28:J,29:lt,30:it,31:P,33:M,35:u,36:U,37:24,38:tt,40:et},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(f,v){if(v.recoverable)this.trace(f);else{var p=Error(f);throw p.hash=v,p}},"parseError"),parse:t(function(f){var v=this,p=[0],k=[],Z=[null],o=[],X=this.table,h="",dt=0,d=0,B=0,Q=2,ct=1,ut=o.slice.call(arguments,1),nt=Object.create(this.lexer),g={yy:{}};for(var R in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,R))g.yy[R]=this.yy[R];if(nt.setInput(f,g.yy),g.yy.lexer=nt,g.yy.parser=this,typeof nt.yylloc>"u")nt.yylloc={};var K=nt.yylloc;o.push(K);var y=nt.options&&nt.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(wt){p.length=p.length-2*wt,Z.length=Z.length-wt,o.length=o.length-wt}t(mt,"popStack");function at(){var wt=k.pop()||nt.lex()||ct;if(typeof wt!=="number"){if(wt instanceof Array)k=wt,wt=k.pop();wt=v.symbols_[wt]||wt}return wt}t(at,"lex");var st,ht,yt,pt,cs,Ye,jt={},le,Lt,br,fe;while(!0){if(yt=p[p.length-1],this.defaultActions[yt])pt=this.defaultActions[yt];else{if(st===null||typeof st>"u")st=at();pt=X[yt]&&X[yt][st]}if(typeof pt>"u"||!pt.length||!pt[0]){var Fe="";fe=[];for(le in X[yt])if(this.terminals_[le]&&le>Q)fe.push("'"+this.terminals_[le]+"'");if(nt.showPosition)Fe="Parse error on line "+(dt+1)+`:
|
|
1
|
+
import{t,am,l,w,ne,F,O,G,z,j,q,H,m,b,rs,xc,as,Zg,Gn,Ch,fi,Qo,fl,V}from"./index-60cxxnpk.js";import{ic,gd,Fp,Ad,ya}from"./index-yh7gngsh.js";import{xn,$n}from"./index-nwbr15b3.js";var fn=$n(function(Ke,tr){(function(e,r){typeof Ke=="object"&&typeof tr<"u"?tr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Ke,function(){var e="day";return function(r,n,i){var a=function(x){return x.add(4-x.isoWeekday(),e)},s=n.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(x){if(!this.$utils().u(x))return this.add(7*(x-this.isoWeek()),e);var D,E,_,rt,A=a(this),Y=(D=this.isoWeekYear(),E=this.$u,_=(E?i.utc:i)().year(D).startOf("year"),rt=4-_.isoWeekday(),_.isoWeekday()>4&&(rt+=7),_.add(rt,e));return A.diff(Y,"week")+1},s.isoWeekday=function(x){return this.$utils().u(x)?this.day()||7:this.day(this.day()%7?x:x-7)};var c=s.startOf;s.startOf=function(x,D){var E=this.$utils(),_=!!E.u(D)||D;return E.p(x)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(x,D)}}})});var dn=$n(function(er,rr){(function(e,r){typeof er=="object"&&typeof rr<"u"?rr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(er,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},x=function(W){return(W=+W)+(W>68?1900:2000)},D=function(W){return function(N){this[W]=+N}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(W){(this.zone||(this.zone={})).offset=function(N){if(!N)return 0;if(N==="Z")return 0;var I=N.match(/([+-]|\d\d)/g),J=60*I[1]+(+I[2]||0);return J===0?0:I[0]==="+"?-J:J}(W)}],_=function(W){var N=c[W];return N&&(N.indexOf?N:N.s.concat(N.f))},rt=function(W,N){var I,J=c.meridiem;if(J){for(var lt=1;lt<=24;lt+=1)if(W.indexOf(J(lt,0,N))>-1){I=lt>12;break}}else I=W===(N?"pm":"PM");return I},A={A:[s,function(W){this.afternoon=rt(W,!1)}],a:[s,function(W){this.afternoon=rt(W,!0)}],Q:[n,function(W){this.month=3*(W-1)+1}],S:[n,function(W){this.milliseconds=100*+W}],SS:[i,function(W){this.milliseconds=10*+W}],SSS:[/\d{3}/,function(W){this.milliseconds=+W}],s:[a,D("seconds")],ss:[a,D("seconds")],m:[a,D("minutes")],mm:[a,D("minutes")],H:[a,D("hours")],h:[a,D("hours")],HH:[a,D("hours")],hh:[a,D("hours")],D:[a,D("day")],DD:[i,D("day")],Do:[s,function(W){var N=c.ordinal,I=W.match(/\d+/);if(this.day=I[0],N)for(var J=1;J<=31;J+=1)N(J).replace(/\[|\]/g,"")===W&&(this.day=J)}],w:[a,D("week")],ww:[i,D("week")],M:[a,D("month")],MM:[i,D("month")],MMM:[s,function(W){var N=_("months"),I=(_("monthsShort")||N.map(function(J){return J.slice(0,3)})).indexOf(W)+1;if(I<1)throw Error();this.month=I%12||I}],MMMM:[s,function(W){var N=_("months").indexOf(W)+1;if(N<1)throw Error();this.month=N%12||N}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(W){this.year=x(W)}],YYYY:[/\d{4}/,D("year")],Z:E,ZZ:E};function Y(W){var N,I;N=W,I=c&&c.formats;for(var J=(W=N.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(tt,et,T){var S=T&&T.toUpperCase();return et||I[T]||e[T]||I[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,L,f){return L||f.slice(1)})})).match(r),lt=J.length,it=0;it<lt;it+=1){var P=J[it],M=A[P],u=M&&M[0],U=M&&M[1];J[it]=U?{regex:u,parser:U}:P.replace(/^\[|\]$/g,"")}return function(tt){for(var et={},T=0,S=0;T<lt;T+=1){var C=J[T];if(typeof C=="string")S+=C.length;else{var{regex:L,parser:f}=C,v=tt.slice(S),p=L.exec(v)[0];f.call(et,p),tt=tt.replace(p,"")}}return function(k){var Z=k.afternoon;if(Z!==void 0){var o=k.hours;Z?o<12&&(k.hours+=12):o===12&&(k.hours=0),delete k.afternoon}}(et),et}}return function(W,N,I){I.p.customParseFormat=!0,W&&W.parseTwoDigitYear&&(x=W.parseTwoDigitYear);var J=N.prototype,lt=J.parse;J.parse=function(it){var{date:P,utc:M,args:u}=it;this.$u=M;var U=u[1];if(typeof U=="string"){var tt=u[2]===!0,et=u[3]===!0,T=tt||et,S=u[2];et&&(S=u[2]),c=this.$locale(),!tt&&S&&(c=I.Ls[S]),this.$d=function(v,p,k,Z){try{if(["x","X"].indexOf(p)>-1)return new Date((p==="X"?1000:1)*v);var o=Y(p)(v),{year:X,month:h,day:dt,hours:d,minutes:B,seconds:Q,milliseconds:ct,zone:ut,week:nt}=o,g=new Date,R=dt||(X||h?1:g.getDate()),K=X||g.getFullYear(),y=0;X&&!h||(y=h>0?h-1:g.getMonth());var mt,at=d||0,st=B||0,ht=Q||0,yt=ct||0;return ut?new Date(Date.UTC(K,y,R,at,st,ht,yt+60*ut.offset*1000)):k?new Date(Date.UTC(K,y,R,at,st,ht,yt)):(mt=new Date(K,y,R,at,st,ht,yt),nt&&(mt=Z(mt).week(nt).toDate()),mt)}catch(pt){return new Date("")}}(P,U,M,I),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),T&&P!=this.format(U)&&(this.$d=new Date("")),c={}}else if(U instanceof Array)for(var C=U.length,L=1;L<=C;L+=1){u[1]=U[L-1];var f=I.apply(this,u);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}L===C&&(this.$d=new Date(""))}else lt.call(this,it)}}})});var mn=$n(function(nr,ir){(function(e,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(nr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(a){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var x=this.$utils(),D=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(E){switch(E){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return x.s(s.week(),E==="w"?1:2,"0");case"W":case"WW":return x.s(s.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return x.s(String(s.$H===0?24:s.$H),E==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1000);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return E}});return i.bind(this)(D)}}})});var hn=$n(function(ar,sr){(function(e,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ar,function(){var e,r,n=1000,i=60000,a=3600000,s=86400000,c=31536000000,x=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,E=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:c,months:x,days:s,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:604800000},rt=function(P){return P instanceof lt},A=function(P,M,u){return new lt(P,u,M.$l)},Y=function(P){return r.p(P)+"s"},W=function(P){return P<0},N=function(P){return W(P)?Math.ceil(P):Math.floor(P)},I=function(P){return Math.abs(P)},J=function(P,M){return P?W(P)?{negative:!0,format:""+I(P)+M}:{negative:!1,format:""+P+M}:{negative:!1,format:""}},lt=function(){function P(u,U,tt){var et=this;if(this.$d={},this.$l=tt,u===void 0&&(this.$ms=0,this.parseFromMilliseconds()),U)return A(u*_[Y(U)],this);if(typeof u=="number")return this.$ms=u,this.parseFromMilliseconds(),this;if(typeof u=="object")return Object.keys(u).forEach(function(C){et.$d[Y(C)]=u[C]}),this.calMilliseconds(),this;if(typeof u=="string"){var T=u.match(D);if(T){var S=T.slice(2).map(function(C){return C!=null?Number(C):0});return this.$d.years=S[0],this.$d.months=S[1],this.$d.weeks=S[2],this.$d.days=S[3],this.$d.hours=S[4],this.$d.minutes=S[5],this.$d.seconds=S[6],this.calMilliseconds(),this}}return this}var M=P.prototype;return M.calMilliseconds=function(){var u=this;this.$ms=Object.keys(this.$d).reduce(function(U,tt){return U+(u.$d[tt]||0)*_[tt]},0)},M.parseFromMilliseconds=function(){var u=this.$ms;this.$d.years=N(u/c),u%=c,this.$d.months=N(u/x),u%=x,this.$d.days=N(u/s),u%=s,this.$d.hours=N(u/a),u%=a,this.$d.minutes=N(u/i),u%=i,this.$d.seconds=N(u/n),u%=n,this.$d.milliseconds=u},M.toISOString=function(){var u=J(this.$d.years,"Y"),U=J(this.$d.months,"M"),tt=+this.$d.days||0;this.$d.weeks&&(tt+=7*this.$d.weeks);var et=J(tt,"D"),T=J(this.$d.hours,"H"),S=J(this.$d.minutes,"M"),C=this.$d.seconds||0;this.$d.milliseconds&&(C+=this.$d.milliseconds/1000,C=Math.round(1000*C)/1000);var L=J(C,"S"),f=u.negative||U.negative||et.negative||T.negative||S.negative||L.negative,v=T.format||S.format||L.format?"T":"",p=(f?"-":"")+"P"+u.format+U.format+et.format+v+T.format+S.format+L.format;return p==="P"||p==="-P"?"P0D":p},M.toJSON=function(){return this.toISOString()},M.format=function(u){var U=u||"YYYY-MM-DDTHH:mm:ss",tt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return U.replace(E,function(et,T){return T||String(tt[et])})},M.as=function(u){return this.$ms/_[Y(u)]},M.get=function(u){var U=this.$ms,tt=Y(u);return tt==="milliseconds"?U%=1000:U=tt==="weeks"?N(U/_[tt]):this.$d[tt],U||0},M.add=function(u,U,tt){var et;return et=U?u*_[Y(U)]:rt(u)?u.$ms:A(u,this).$ms,A(this.$ms+et*(tt?-1:1),this)},M.subtract=function(u,U){return this.add(u,U,!0)},M.locale=function(u){var U=this.clone();return U.$l=u,U},M.clone=function(){return A(this.$ms,this)},M.humanize=function(u){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!u)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},P}(),it=function(P,M,u){return P.add(M.years()*u,"y").add(M.months()*u,"M").add(M.days()*u,"d").add(M.hours()*u,"h").add(M.minutes()*u,"m").add(M.seconds()*u,"s").add(M.milliseconds()*u,"ms")};return function(P,M,u){e=u,r=u().$utils(),u.duration=function(et,T){var S=u.locale();return A(et,{$l:S},T)},u.isDuration=rt;var U=M.prototype.add,tt=M.prototype.subtract;M.prototype.add=function(et,T){return rt(et)?it(this,et,1):U.bind(this)(et,T)},M.prototype.subtract=function(et,T){return rt(et)?it(this,et,-1):tt.bind(this)(et,T)}}})});function Ie(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n<i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n<a||n===void 0&&a>=a))n=a}return n}function Ue(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n>i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n>a||n===void 0&&a>=a))n=a}return n}function Le(e){return e}var me=1,We=2,Ee=3,de=4,wr=0.000001;function Ln(e){return"translate("+e+",0)"}function Wn(e){return"translate(0,"+e+")"}function En(e){return(r)=>+e(r)}function An(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function On(){return!this.__axis}function Mr(e,r){var n=[],i=null,a=null,s=6,c=6,x=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,E=e===me||e===de?-1:1,_=e===de||e===We?"x":"y",rt=e===me||e===Ee?Ln:Wn;function A(Y){var W=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,N=a==null?r.tickFormat?r.tickFormat.apply(r,n):Le:a,I=Math.max(s,0)+x,J=r.range(),lt=+J[0]+D,it=+J[J.length-1]+D,P=(r.bandwidth?An:En)(r.copy(),D),M=Y.selection?Y.selection():Y,u=M.selectAll(".domain").data([null]),U=M.selectAll(".tick").data(W,r).order(),tt=U.exit(),et=U.enter().append("g").attr("class","tick"),T=U.select("line"),S=U.select("text");if(u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),U=U.merge(et),T=T.merge(et.append("line").attr("stroke","currentColor").attr(_+"2",E*s)),S=S.merge(et.append("text").attr("fill","currentColor").attr(_,E*I).attr("dy",e===me?"0em":e===Ee?"0.71em":"0.32em")),Y!==M)u=u.transition(Y),U=U.transition(Y),T=T.transition(Y),S=S.transition(Y),tt=tt.transition(Y).attr("opacity",wr).attr("transform",function(C){return isFinite(C=P(C))?rt(C+D):this.getAttribute("transform")}),et.attr("opacity",wr).attr("transform",function(C){var L=this.parentNode.__axis;return rt((L&&isFinite(L=L(C))?L:P(C))+D)});tt.remove(),u.attr("d",e===de||e===We?c?"M"+E*c+","+lt+"H"+D+"V"+it+"H"+E*c:"M"+D+","+lt+"V"+it:c?"M"+lt+","+E*c+"V"+D+"H"+it+"V"+E*c:"M"+lt+","+D+"H"+it),U.attr("opacity",1).attr("transform",function(C){return rt(P(C)+D)}),T.attr(_+"2",E*s),S.attr(_,E*I).text(N),M.filter(On).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===de?"end":"middle"),M.each(function(){this.__axis=P})}return A.scale=function(Y){return arguments.length?(r=Y,A):r},A.ticks=function(){return n=Array.from(arguments),A},A.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),A):n.slice()},A.tickValues=function(Y){return arguments.length?(i=Y==null?null:Array.from(Y),A):i&&i.slice()},A.tickFormat=function(Y){return arguments.length?(a=Y,A):a},A.tickSize=function(Y){return arguments.length?(s=c=+Y,A):s},A.tickSizeInner=function(Y){return arguments.length?(s=+Y,A):s},A.tickSizeOuter=function(Y){return arguments.length?(c=+Y,A):c},A.tickPadding=function(Y){return arguments.length?(x=+Y,A):x},A.offset=function(Y){return arguments.length?(D=+Y,A):D},A}function Ae(e){return Mr(me,e)}function Oe(e){return Mr(Ee,e)}var Dr=Math.PI/180,Cr=180/Math.PI;var he=18,Sr=0.96422,_r=1,Yr=0.82521,Fr=0.13793103448275862,Xt=0.20689655172413793,Ir=3*Xt*Xt,Hn=Xt*Xt*Xt;function Ur(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof Wt)return Wr(e);if(!(e instanceof Gn))e=Zg(e);var r=Pe(e.r),n=Pe(e.g),i=Pe(e.b),a=$e((0.2225045*r+0.7168786*n+0.0606169*i)/_r),s,c;if(r===n&&n===i)s=c=a;else s=$e((0.4360747*r+0.3850649*n+0.1430804*i)/Sr),c=$e((0.0139322*r+0.0971045*n+0.7141733*i)/Yr);return new _t(116*a-16,500*(s-a),200*(a-c),e.opacity)}function Lr(e,r,n,i){return arguments.length===1?Ur(e):new _t(e,r,n,i==null?1:i)}function _t(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}rs(_t,Lr,xc(as,{brighter(e){return new _t(this.l+he*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(this.l-he*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Sr*He(r),e=_r*He(e),n=Yr*He(n),new Gn(Ne(3.1338561*r-1.6168667*e-0.4906146*n),Ne(-0.9787684*r+1.9161415*e+0.033454*n),Ne(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function $e(e){return e>Hn?Math.pow(e,0.3333333333333333):e/Ir+Fr}function He(e){return e>Xt?e*e*e:Ir*(e-Fr)}function Ne(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Pe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Nn(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);if(!(e instanceof _t))e=Ur(e);if(e.a===0&&e.b===0)return new Wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Cr;return new Wt(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ye(e,r,n,i){return arguments.length===1?Nn(e):new Wt(e,r,n,i==null?1:i)}function Wt(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Wr(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var r=e.h*Dr;return new _t(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}rs(Wt,ye,xc(as,{brighter(e){return new Wt(this.h,this.c,this.l+he*(e==null?1:e),this.opacity)},darker(e){return new Wt(this.h,this.c,this.l-he*(e==null?1:e),this.opacity)},rgb(){return Wr(this).rgb()}}));function Er(e){return function(r,n){var i=e((r=ye(r)).h,(n=ye(n)).h),a=fi(r.c,n.c),s=fi(r.l,n.l),c=fi(r.opacity,n.opacity);return function(x){return r.h=i(x),r.c=a(x),r.l=s(x),r.opacity=c(x),r+""}}}var Ar=Er(Ch),Ds=Er(fi);function Ve(e,r){e=e.slice();var n=0,i=e.length-1,a=e[n],s=e[i],c;if(s<a)c=n,n=i,i=c,c=a,a=s,s=c;return e[n]=r.floor(a),e[i]=r.ceil(s),e}var ze=new Date,Re=new Date;function ft(e,r,n,i){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}if(a.floor=(s)=>(e(s=new Date(+s)),s),a.ceil=(s)=>(e(s=new Date(s-1)),r(s,1),e(s),s),a.round=(s)=>{let c=a(s),x=a.ceil(s);return s-c<x-s?c:x},a.offset=(s,c)=>(r(s=new Date(+s),c==null?1:Math.floor(c)),s),a.range=(s,c,x)=>{let D=[];if(s=a.ceil(s),x=x==null?1:Math.floor(x),!(s<c)||!(x>0))return D;let E;do D.push(E=new Date(+s)),r(s,x),e(s);while(E<s&&s<c);return D},a.filter=(s)=>ft((c)=>{if(c>=c)while(e(c),!s(c))c.setTime(c-1)},(c,x)=>{if(c>=c)if(x<0)while(++x<=0)while(r(c,-1),!s(c));else while(--x>=0)while(r(c,1),!s(c));}),n)a.count=(s,c)=>(ze.setTime(+s),Re.setTime(+c),e(ze),e(Re),Math.floor(n(ze,Re))),a.every=(s)=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:!(s>1)?a:a.filter(i?(c)=>i(c)%s===0:(c)=>a.count(0,c)%s===0));return a}var Yt=ft(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);Yt.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return Yt;return ft((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Or=Yt.range;var Mt=1000,Tt=60000,Ft=3600000,Ht=86400000,ie=604800000,Be=2592000000,ge=31536000000;var vt=ft((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Mt)},(e,r)=>(r-e)/Mt,(e)=>e.getUTCSeconds()),$r=vt.range;var Et=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getMinutes()),Pn=Et.range,ke=ft((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getUTCMinutes()),Vn=ke.range;var At=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt-e.getMinutes()*Tt)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getHours()),zn=At.range,pe=ft((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getUTCHours()),Rn=pe.range;var Dt=ft((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/Ht,(e)=>e.getDate()-1),Bn=Dt.range,ae=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>e.getUTCDate()-1),Zn=ae.range,Te=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>Math.floor(e/Ht)),jn=Te.range;function Vt(e){return ft((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*Tt)/ie)}var Ct=Vt(0),Nt=Vt(1),ve=Vt(2),xe=Vt(3),It=Vt(4),be=Vt(5),we=Vt(6),Hr=Ct.range,Xn=Nt.range,qn=ve.range,Qn=xe.range,Jn=It.range,Kn=be.range,ti=we.range;function zt(e){return ft((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/ie)}var Rt=zt(0),qt=zt(1),Nr=zt(2),Pr=zt(3),Pt=zt(4),Vr=zt(5),zr=zt(6),Rr=Rt.range,ei=qt.range,ri=Nr.range,ni=Pr.range,ii=Pt.range,ai=Vr.range,si=zr.range;var Ot=ft((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),oi=Ot.range,Me=ft((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),ci=Me.range;var xt=ft((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());xt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var ui=xt.range,St=ft((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());St.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var li=St.range;function Br(e,r,n,i,a,s){let c=[[vt,1,Mt],[vt,5,5*Mt],[vt,15,15*Mt],[vt,30,30*Mt],[s,1,Tt],[s,5,5*Tt],[s,15,15*Tt],[s,30,30*Tt],[a,1,Ft],[a,3,3*Ft],[a,6,6*Ft],[a,12,12*Ft],[i,1,Ht],[i,2,2*Ht],[n,1,ie],[r,1,Be],[r,3,3*Be],[e,1,ge]];function x(E,_,rt){let A=_<E;if(A)[E,_]=[_,E];let Y=rt&&typeof rt.range==="function"?rt:D(E,_,rt),W=Y?Y.range(E,+_+1):[];return A?W.reverse():W}function D(E,_,rt){let A=Math.abs(_-E)/rt,Y=ic(([,,I])=>I).right(c,A);if(Y===c.length)return e.every(gd(E/ge,_/ge,rt));if(Y===0)return Yt.every(Math.max(gd(E,_,rt),1));let[W,N]=c[A/c[Y-1][2]<c[Y][2]/A?Y-1:Y];return W.every(N)}return[x,D]}var[di,mi]=Br(St,Me,Rt,Te,pe,ke),[Ze,je]=Br(xt,Ot,Ct,Dt,At,Et);function Xe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function se(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var{dateTime:r,date:n,time:i,periods:a,days:s,shortDays:c,months:x,shortMonths:D}=e,E=oe(a),_=ce(a),rt=oe(s),A=ce(s),Y=oe(c),W=ce(c),N=oe(x),I=ce(x),J=oe(D),lt=ce(D),it={a:k,A:Z,b:o,B:X,c:null,d:Qr,e:Qr,f:Ai,g:Zi,G:Xi,H:Li,I:Wi,j:Ei,L:rn,m:Oi,M:$i,p:h,q:dt,Q:tn,s:en,S:Hi,u:Ni,U:Pi,V:Vi,w:zi,W:Ri,x:null,X:null,y:Bi,Y:ji,Z:qi,"%":Kr},P={a:d,A:B,b:Q,B:ct,c:null,d:Jr,e:Jr,f:Ki,g:ua,G:fa,H:Gi,I:Qi,j:Ji,L:an,m:ta,M:ea,p:ut,q:nt,Q:tn,s:en,S:ra,u:na,U:ia,V:aa,w:sa,W:oa,x:null,X:null,y:ca,Y:la,Z:da,"%":Kr},M={a:T,A:S,b:C,B:L,c:f,d:qr,e:qr,f:Yi,g:Xr,G:jr,H:Gr,I:Gr,j:Di,L:_i,m:Mi,M:Ci,p:et,q:wi,Q:Ii,s:Ui,S:Si,u:pi,U:Ti,V:vi,w:ki,W:xi,x:v,X:p,y:Xr,Y:jr,Z:bi,"%":Fi};it.x=u(n,it),it.X=u(i,it),it.c=u(r,it),P.x=u(n,P),P.X=u(i,P),P.c=u(r,P);function u(g,R){return function(K){var y=[],mt=-1,at=0,st=g.length,ht,yt,pt;if(!(K instanceof Date))K=new Date(+K);while(++mt<st)if(g.charCodeAt(mt)===37){if(y.push(g.slice(at,mt)),(yt=Zr[ht=g.charAt(++mt)])!=null)ht=g.charAt(++mt);else yt=ht==="e"?" ":"0";if(pt=R[ht])ht=pt(K,yt);y.push(ht),at=mt+1}return y.push(g.slice(at,mt)),y.join("")}}function U(g,R){return function(K){var y=se(1900,void 0,1),mt=tt(y,g,K+="",0),at,st;if(mt!=K.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(R&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)at=qe(se(y.y,0,1)),st=at.getUTCDay(),at=st>4||st===0?qt.ceil(at):qt(at),at=ae.offset(at,(y.V-1)*7),y.y=at.getUTCFullYear(),y.m=at.getUTCMonth(),y.d=at.getUTCDate()+(y.w+6)%7;else at=Xe(se(y.y,0,1)),st=at.getDay(),at=st>4||st===0?Nt.ceil(at):Nt(at),at=Dt.offset(at,(y.V-1)*7),y.y=at.getFullYear(),y.m=at.getMonth(),y.d=at.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;st="Z"in y?qe(se(y.y,0,1)).getUTCDay():Xe(se(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(st+5)%7:y.w+y.U*7-(st+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,qe(y);return Xe(y)}}function tt(g,R,K,y){var mt=0,at=R.length,st=K.length,ht,yt;while(mt<at){if(y>=st)return-1;if(ht=R.charCodeAt(mt++),ht===37){if(ht=R.charAt(mt++),yt=M[ht in Zr?R.charAt(mt++):ht],!yt||(y=yt(g,K,y))<0)return-1}else if(ht!=K.charCodeAt(y++))return-1}return y}function et(g,R,K){var y=E.exec(R.slice(K));return y?(g.p=_.get(y[0].toLowerCase()),K+y[0].length):-1}function T(g,R,K){var y=Y.exec(R.slice(K));return y?(g.w=W.get(y[0].toLowerCase()),K+y[0].length):-1}function S(g,R,K){var y=rt.exec(R.slice(K));return y?(g.w=A.get(y[0].toLowerCase()),K+y[0].length):-1}function C(g,R,K){var y=J.exec(R.slice(K));return y?(g.m=lt.get(y[0].toLowerCase()),K+y[0].length):-1}function L(g,R,K){var y=N.exec(R.slice(K));return y?(g.m=I.get(y[0].toLowerCase()),K+y[0].length):-1}function f(g,R,K){return tt(g,r,R,K)}function v(g,R,K){return tt(g,n,R,K)}function p(g,R,K){return tt(g,i,R,K)}function k(g){return c[g.getDay()]}function Z(g){return s[g.getDay()]}function o(g){return D[g.getMonth()]}function X(g){return x[g.getMonth()]}function h(g){return a[+(g.getHours()>=12)]}function dt(g){return 1+~~(g.getMonth()/3)}function d(g){return c[g.getUTCDay()]}function B(g){return s[g.getUTCDay()]}function Q(g){return D[g.getUTCMonth()]}function ct(g){return x[g.getUTCMonth()]}function ut(g){return a[+(g.getUTCHours()>=12)]}function nt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var R=u(g+="",it);return R.toString=function(){return g},R},parse:function(g){var R=U(g+="",!1);return R.toString=function(){return g},R},utcFormat:function(g){var R=u(g+="",P);return R.toString=function(){return g},R},utcParse:function(g){var R=U(g+="",!0);return R.toString=function(){return g},R}}}var Zr={"-":"",_:" ","0":"0"},kt=/^\s*\d+/,hi=/^%/,yi=/[\\^$*+?|[\]().{}]/g;function ot(e,r,n){var i=e<0?"-":"",a=(i?-e:e)+"",s=a.length;return i+(s<n?Array(n-s+1).join(r)+a:a)}function gi(e){return e.replace(yi,"\\$&")}function oe(e){return new RegExp("^(?:"+e.map(gi).join("|")+")","i")}function ce(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function ki(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function pi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Ti(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function vi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function xi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function jr(e,r,n){var i=kt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Xr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function bi(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function wi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Mi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function qr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Di(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Gr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ci(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Si(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=kt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Fi(e,r,n){var i=hi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Ii(e,r,n){var i=kt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Ui(e,r,n){var i=kt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Qr(e,r){return ot(e.getDate(),r,2)}function Li(e,r){return ot(e.getHours(),r,2)}function Wi(e,r){return ot(e.getHours()%12||12,r,2)}function Ei(e,r){return ot(1+Dt.count(xt(e),e),r,3)}function rn(e,r){return ot(e.getMilliseconds(),r,3)}function Ai(e,r){return rn(e,r)+"000"}function Oi(e,r){return ot(e.getMonth()+1,r,2)}function $i(e,r){return ot(e.getMinutes(),r,2)}function Hi(e,r){return ot(e.getSeconds(),r,2)}function Ni(e){var r=e.getDay();return r===0?7:r}function Pi(e,r){return ot(Ct.count(xt(e)-1,e),r,2)}function nn(e){var r=e.getDay();return r>=4||r===0?It(e):It.ceil(e)}function Vi(e,r){return e=nn(e),ot(It.count(xt(e),e)+(xt(e).getDay()===4),r,2)}function zi(e){return e.getDay()}function Ri(e,r){return ot(Nt.count(xt(e)-1,e),r,2)}function Bi(e,r){return ot(e.getFullYear()%100,r,2)}function Zi(e,r){return e=nn(e),ot(e.getFullYear()%100,r,2)}function ji(e,r){return ot(e.getFullYear()%1e4,r,4)}function Xi(e,r){var n=e.getDay();return e=n>=4||n===0?It(e):It.ceil(e),ot(e.getFullYear()%1e4,r,4)}function qi(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ot(r/60|0,"0",2)+ot(r%60,"0",2)}function Jr(e,r){return ot(e.getUTCDate(),r,2)}function Gi(e,r){return ot(e.getUTCHours(),r,2)}function Qi(e,r){return ot(e.getUTCHours()%12||12,r,2)}function Ji(e,r){return ot(1+ae.count(St(e),e),r,3)}function an(e,r){return ot(e.getUTCMilliseconds(),r,3)}function Ki(e,r){return an(e,r)+"000"}function ta(e,r){return ot(e.getUTCMonth()+1,r,2)}function ea(e,r){return ot(e.getUTCMinutes(),r,2)}function ra(e,r){return ot(e.getUTCSeconds(),r,2)}function na(e){var r=e.getUTCDay();return r===0?7:r}function ia(e,r){return ot(Rt.count(St(e)-1,e),r,2)}function sn(e){var r=e.getUTCDay();return r>=4||r===0?Pt(e):Pt.ceil(e)}function aa(e,r){return e=sn(e),ot(Pt.count(St(e),e)+(St(e).getUTCDay()===4),r,2)}function sa(e){return e.getUTCDay()}function oa(e,r){return ot(qt.count(St(e)-1,e),r,2)}function ca(e,r){return ot(e.getUTCFullYear()%100,r,2)}function ua(e,r){return e=sn(e),ot(e.getUTCFullYear()%100,r,2)}function la(e,r){return ot(e.getUTCFullYear()%1e4,r,4)}function fa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Pt(e):Pt.ceil(e),ot(e.getUTCFullYear()%1e4,r,4)}function da(){return"+0000"}function Kr(){return"%"}function tn(e){return+e}function en(e){return Math.floor(+e/1000)}var Gt,Bt,on,cn,un;Qe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qe(e){return Gt=Ge(e),Bt=Gt.format,on=Gt.parse,cn=Gt.utcFormat,un=Gt.utcParse,Gt}function ma(e){return new Date(e)}function ha(e){return e instanceof Date?+e:+new Date(+e)}function ln(e,r,n,i,a,s,c,x,D,E){var _=Ad(),{invert:rt,domain:A}=_,Y=E(".%L"),W=E(":%S"),N=E("%I:%M"),I=E("%I %p"),J=E("%a %d"),lt=E("%b %d"),it=E("%B"),P=E("%Y");function M(u){return(D(u)<u?Y:x(u)<u?W:c(u)<u?N:s(u)<u?I:i(u)<u?a(u)<u?J:lt:n(u)<u?it:P)(u)}return _.invert=function(u){return new Date(rt(u))},_.domain=function(u){return arguments.length?A(Array.from(u,ha)):A().map(ma)},_.ticks=function(u){var U=A();return e(U[0],U[U.length-1],u==null?10:u)},_.tickFormat=function(u,U){return U==null?M:E(U)},_.nice=function(u){var U=A();if(!u||typeof u.range!=="function")u=r(U[0],U[U.length-1],u==null?10:u);return u?A(Ve(U,u)):_},_.copy=function(){return Fp(_,ln(e,r,n,i,a,s,c,x,D,E))},_}function Je(){return Qo.apply(ln(Ze,je,xt,Ot,Ct,Dt,At,Et,vt,Bt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var pn=xn(fl(),1),bt=xn(am(),1),Tn=xn(fn(),1),vn=xn(dn(),1),bn=xn(mn(),1),Jt=xn(am(),1),Un=xn(hn(),1);var cr=function(){var e=t(function(L,f,v,p){for(v=v||{},p=L.length;p--;v[L[p]]=f);return v},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],a=[1,28],s=[1,29],c=[1,30],x=[1,31],D=[1,32],E=[1,33],_=[1,34],rt=[1,9],A=[1,10],Y=[1,11],W=[1,12],N=[1,13],I=[1,14],J=[1,15],lt=[1,16],it=[1,19],P=[1,20],M=[1,21],u=[1,22],U=[1,23],tt=[1,25],et=[1,35],T={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:t(function(f,v,p,k,Z,o,X){var h=o.length-1;switch(Z){case 1:return o[h-1];case 2:this.$=[];break;case 3:o[h-1].push(o[h]),this.$=o[h-1];break;case 4:case 5:this.$=o[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[h].substr(18);break;case 19:k.TopAxis(),this.$=o[h].substr(8);break;case 20:k.setAxisFormat(o[h].substr(11)),this.$=o[h].substr(11);break;case 21:k.setTickInterval(o[h].substr(13)),this.$=o[h].substr(13);break;case 22:k.setExcludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 23:k.setIncludes(o[h].substr(9)),this.$=o[h].substr(9);break;case 24:k.setTodayMarker(o[h].substr(12)),this.$=o[h].substr(12);break;case 27:k.setDiagramTitle(o[h].substr(6)),this.$=o[h].substr(6);break;case 28:this.$=o[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[h].substr(8)),this.$=o[h].substr(8);break;case 33:k.addTask(o[h-1],o[h]),this.$="task";break;case 34:this.$=o[h-1],k.setClickEvent(o[h-1],o[h],null);break;case 35:this.$=o[h-2],k.setClickEvent(o[h-2],o[h-1],o[h]);break;case 36:this.$=o[h-2],k.setClickEvent(o[h-2],o[h-1],null),k.setLink(o[h-2],o[h]);break;case 37:this.$=o[h-3],k.setClickEvent(o[h-3],o[h-2],o[h-1]),k.setLink(o[h-3],o[h]);break;case 38:this.$=o[h-2],k.setClickEvent(o[h-2],o[h],null),k.setLink(o[h-2],o[h-1]);break;case 39:this.$=o[h-3],k.setClickEvent(o[h-3],o[h-1],o[h]),k.setLink(o[h-3],o[h-2]);break;case 40:this.$=o[h-1],k.setLink(o[h-1],o[h]);break;case 41:case 47:this.$=o[h-1]+" "+o[h];break;case 42:case 43:case 45:this.$=o[h-2]+" "+o[h-1]+" "+o[h];break;case 44:case 46:this.$=o[h-3]+" "+o[h-2]+" "+o[h-1]+" "+o[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:c,17:x,18:D,19:18,20:E,21:_,22:rt,23:A,24:Y,25:W,26:N,27:I,28:J,29:lt,30:it,31:P,33:M,35:u,36:U,37:24,38:tt,40:et},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:c,17:x,18:D,19:18,20:E,21:_,22:rt,23:A,24:Y,25:W,26:N,27:I,28:J,29:lt,30:it,31:P,33:M,35:u,36:U,37:24,38:tt,40:et},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(f,v){if(v.recoverable)this.trace(f);else{var p=Error(f);throw p.hash=v,p}},"parseError"),parse:t(function(f){var v=this,p=[0],k=[],Z=[null],o=[],X=this.table,h="",dt=0,d=0,B=0,Q=2,ct=1,ut=o.slice.call(arguments,1),nt=Object.create(this.lexer),g={yy:{}};for(var R in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,R))g.yy[R]=this.yy[R];if(nt.setInput(f,g.yy),g.yy.lexer=nt,g.yy.parser=this,typeof nt.yylloc>"u")nt.yylloc={};var K=nt.yylloc;o.push(K);var y=nt.options&&nt.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(wt){p.length=p.length-2*wt,Z.length=Z.length-wt,o.length=o.length-wt}t(mt,"popStack");function at(){var wt=k.pop()||nt.lex()||ct;if(typeof wt!=="number"){if(wt instanceof Array)k=wt,wt=k.pop();wt=v.symbols_[wt]||wt}return wt}t(at,"lex");var st,ht,yt,pt,cs,Ye,jt={},le,Lt,br,fe;while(!0){if(yt=p[p.length-1],this.defaultActions[yt])pt=this.defaultActions[yt];else{if(st===null||typeof st>"u")st=at();pt=X[yt]&&X[yt][st]}if(typeof pt>"u"||!pt.length||!pt[0]){var Fe="";fe=[];for(le in X[yt])if(this.terminals_[le]&&le>Q)fe.push("'"+this.terminals_[le]+"'");if(nt.showPosition)Fe="Parse error on line "+(dt+1)+`:
|
|
2
2
|
`+nt.showPosition()+`
|
|
3
3
|
Expecting `+fe.join(", ")+", got '"+(this.terminals_[st]||st)+"'";else Fe="Parse error on line "+(dt+1)+": Unexpected "+(st==ct?"end of input":"'"+(this.terminals_[st]||st)+"'");this.parseError(Fe,{text:nt.match,token:this.terminals_[st]||st,line:nt.yylineno,loc:K,expected:fe})}if(pt[0]instanceof Array&&pt.length>1)throw Error("Parse Error: multiple actions possible at state: "+yt+", token: "+st);switch(pt[0]){case 1:if(p.push(st),Z.push(nt.yytext),o.push(nt.yylloc),p.push(pt[1]),st=null,!ht){if(d=nt.yyleng,h=nt.yytext,dt=nt.yylineno,K=nt.yylloc,B>0)B--}else st=ht,ht=null;break;case 2:if(Lt=this.productions_[pt[1]][1],jt.$=Z[Z.length-Lt],jt._$={first_line:o[o.length-(Lt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Lt||1)].first_column,last_column:o[o.length-1].last_column},y)jt._$.range=[o[o.length-(Lt||1)].range[0],o[o.length-1].range[1]];if(Ye=this.performAction.apply(jt,[h,d,dt,g.yy,pt[1],Z,o].concat(ut)),typeof Ye<"u")return Ye;if(Lt)p=p.slice(0,-1*Lt*2),Z=Z.slice(0,-1*Lt),o=o.slice(0,-1*Lt);p.push(this.productions_[pt[1]][0]),Z.push(jt.$),o.push(jt._$),br=X[p[p.length-2]][p[p.length-1]],p.push(br);break;case 3:return!0}}return!0},"parse")},S=function(){var L={EOF:1,parseError:t(function(v,p){if(this.yy.parser)this.yy.parser.parseError(v,p);else throw Error(v)},"parseError"),setInput:t(function(f,v){if(this.yy=v||this.yy||{},this._input=f,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];return this.offset=0,this},"setInput"),input:t(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var v=f.match(/(?:\r\n?|\n).*/g);if(v)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),f},"input"),unput:t(function(f){var v=f.length,p=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1)this.yylineno-=p.length-1;var Z=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===k.length?this.yylloc.first_column:0)+k[k.length-p.length].length-p[0].length:this.yylloc.first_column-v},this.options.ranges)this.yylloc.range=[Z[0],Z[0]+this.yyleng-v];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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:t(function(f){this.unput(this.match.slice(f))},"less"),pastInput:t(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var f=this.match;if(f.length<20)f+=this._input.substr(0,20-f.length);return(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var f=this.pastInput(),v=Array(f.length+1).join("-");return f+this.upcomingInput()+`
|
|
5
5
|
`+v+"^"},"showPosition"),test_match:t(function(f,v){var p,k,Z;if(this.options.backtrack_lexer){if(Z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Z.yylloc.range=this.yylloc.range.slice(0)}if(k=f[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+f[0].length},this.yytext+=f[0],this.match+=f[0],this.matches=f,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(f[0].length),this.matched+=f[0],p=this.performAction.call(this,this.yy,this,v,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(p)return p;else if(this._backtrack){for(var o in Z)this[o]=Z[o];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var f,v,p,k;if(!this._more)this.yytext="",this.match="";var Z=this._currentRules();for(var o=0;o<Z.length;o++)if(p=this._input.match(this.rules[Z[o]]),p&&(!v||p[0].length>v[0].length)){if(v=p,k=o,this.options.backtrack_lexer)if(f=this.test_match(p,Z[o]),f!==!1)return f;else if(this._backtrack){v=!1;continue}else return!1;else if(!this.options.flex)break}if(v){if(f=this.test_match(v,Z[k]),f!==!1)return f;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var v=this.next();if(v)return v;else return this.lex()},"lex"),begin:t(function(v){this.conditionStack.push(v)},"begin"),popState:t(function(){var v=this.conditionStack.length-1;if(v>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(v){if(v=this.conditionStack.length-1-Math.abs(v||0),v>=0)return this.conditionStack[v];else return"INITIAL"},"topState"),pushState:t(function(v){this.begin(v)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(v,p,k,Z){var o=Z;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return L}();T.lexer=S;function C(){this.yy={}}return t(C,"Parser"),C.prototype=T,T.Parser=C,new C}();cr.parser=cr;var ga=cr;bt.default.extend(Tn.default);bt.default.extend(vn.default);bt.default.extend(bn.default);var yn={friday:5,saturday:6},Ut="",dr="",mr=void 0,hr="",te=[],ee=[],yr=new Map,gr=[],Se=[],ne="",kr="",wn=["active","done","crit","milestone","vert"],pr=[],Qt="",ue=!1,Tr=!1,vr="sunday",_e="saturday",ur=0,ka=t(function(){gr=[],Se=[],ne="",pr=[],De=0,fr=void 0,Ce=void 0,gt=[],Ut="",dr="",kr="",mr=void 0,hr="",te=[],ee=[],ue=!1,Tr=!1,ur=0,yr=new Map,Qt="",F(),vr="sunday",_e="saturday"},"clear"),pa=t(function(e){Qt=e},"setDiagramId"),Ta=t(function(e){dr=e},"setAxisFormat"),va=t(function(){return dr},"getAxisFormat"),xa=t(function(e){mr=e},"setTickInterval"),ba=t(function(){return mr},"getTickInterval"),wa=t(function(e){hr=e},"setTodayMarker"),Ma=t(function(){return hr},"getTodayMarker"),Da=t(function(e){Ut=e},"setDateFormat"),Ca=t(function(){ue=!0},"enableInclusiveEndDates"),Sa=t(function(){return ue},"endDatesAreInclusive"),_a=t(function(){Tr=!0},"enableTopAxis"),Ya=t(function(){return Tr},"topAxisEnabled"),Fa=t(function(e){kr=e},"setDisplayMode"),Ia=t(function(){return kr},"getDisplayMode"),Ua=t(function(){return Ut},"getDateFormat"),Mn=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),La=t(function(e){te=Mn(te,e)},"setIncludes"),Wa=t(function(){return te},"getIncludes"),Ea=t(function(e){ee=Mn(ee,e)},"setExcludes"),Oa=t(function(){return ee},"getExcludes"),$a=t(function(){return yr},"getLinks"),Ha=t(function(e){ne=e,gr.push(e)},"addSection"),Na=t(function(){return gr},"getSections"),Pa=t(function(){let e=gn(),r=10,n=0;while(!e&&n<r)e=gn(),n++;return Se=gt,Se},"getTasks"),Dn=t(function(e,r,n,i){let a=e.format(r.trim()),s=e.format("YYYY-MM-DD");if(i.includes(a)||i.includes(s))return!1;if(n.includes("weekends")&&(e.isoWeekday()===yn[_e]||e.isoWeekday()===yn[_e]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(a)||n.includes(s)},"isInvalidDate"),Va=t(function(e){vr=e},"setWeekday"),za=t(function(){return vr},"getWeekday"),Ra=t(function(e){_e=e},"setWeekend"),Cn=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let a;if(e.startTime instanceof Date)a=bt.default(e.startTime);else a=bt.default(e.startTime,r,!0);a=a.add(1,"d");let s;if(e.endTime instanceof Date)s=bt.default(e.endTime);else s=bt.default(e.endTime,r,!0);let[c,x]=Ba(a,s,r,n,i);e.endTime=c.toDate(),e.renderEndTime=x},"checkTaskDates"),Ba=t(function(e,r,n,i,a){let s=!1,c=null,x=r.add(1e4,"d");while(e<=r){if(!s)c=r.toDate();if(s=Dn(e,n,i,a),s){if(r=r.add(1,"d"),r>x)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,c]},"fixTaskDates"),lr=t(function(e,r,n){if(n=n.trim(),t((x)=>{let D=x.trim();return D==="x"||D==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let s=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let x=null;for(let E of s.groups.ids.split(" ")){let _=Zt(E);if(_!==void 0&&(!x||_.endTime>x.endTime))x=_}if(x)return x.endTime;let D=new Date;return D.setHours(0,0,0,0),D}let c=bt.default(n,r.trim(),!0);if(c.isValid())return c.toDate();else{l.debug("Invalid date:"+n),l.debug("With date format:"+r.trim());let x=new Date(n);if(x===void 0||isNaN(x.getTime())||x.getFullYear()<-1e4||x.getFullYear()>1e4)throw Error("Invalid date:"+n);return x}},"getStartDate"),Sn=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),_n=t(function(e,r,n,i=!1){n=n.trim();let s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let _=null;for(let A of s.groups.ids.split(" ")){let Y=Zt(A);if(Y!==void 0&&(!_||Y.startTime<_.startTime))_=Y}if(_)return _.startTime;let rt=new Date;return rt.setHours(0,0,0,0),rt}let c=bt.default(n,r.trim(),!0);if(c.isValid()){if(i)c=c.add(1,"d");return c.toDate()}let x=bt.default(e),[D,E]=Sn(n);if(!Number.isNaN(D)){let _=x.add(D,E);if(_.isValid())x=_}return x.toDate()},"getEndDate"),De=0,Kt=t(function(e){if(e===void 0)return De=De+1,"task"+De;return e},"parseId"),Za=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),a={};xr(i,a,wn);for(let c=0;c<i.length;c++)i[c]=i[c].trim();let s="";switch(i.length){case 1:a.id=Kt(),a.startTime=e.endTime,s=i[0];break;case 2:a.id=Kt(),a.startTime=lr(void 0,Ut,i[0]),s=i[1];break;case 3:a.id=Kt(i[0]),a.startTime=lr(void 0,Ut,i[1]),s=i[2];break;default:}if(s)a.endTime=_n(a.startTime,Ut,s,ue),a.manualEndTime=bt.default(s,"YYYY-MM-DD",!0).isValid(),Cn(a,Ut,ee,te);return a},"compileData"),ja=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),a={};xr(i,a,wn);for(let s=0;s<i.length;s++)i[s]=i[s].trim();switch(i.length){case 1:a.id=Kt(),a.startTime={type:"prevTaskEnd",id:e},a.endTime={data:i[0]};break;case 2:a.id=Kt(),a.startTime={type:"getStartDate",startData:i[0]},a.endTime={data:i[1]};break;case 3:a.id=Kt(i[0]),a.startTime={type:"getStartDate",startData:i[1]},a.endTime={data:i[2]};break;default:}return a},"parseData"),fr,Ce,gt=[],Yn={},Xa=t(function(e,r){let n={section:ne,type:ne,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=ja(Ce,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Ce,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=ur,ur++;let a=gt.push(n);Ce=n.id,Yn[n.id]=a-1},"addTask"),Zt=t(function(e){let r=Yn[e];return gt[r]},"findTaskById"),qa=t(function(e,r){let n={section:ne,type:ne,description:e,task:e,classes:[]},i=Za(fr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,fr=n,Se.push(n)},"addTaskOrg"),gn=t(function(){let e=t(function(n){let i=gt[n],a="";switch(gt[n].raw.startTime.type){case"prevTaskEnd":{let s=Zt(i.prevTaskId);i.startTime=s.endTime;break}case"getStartDate":if(a=lr(void 0,Ut,gt[n].raw.startTime.startData),a)gt[n].startTime=a;break}if(gt[n].startTime){if(gt[n].endTime=_n(gt[n].startTime,Ut,gt[n].raw.endTime.data,ue),gt[n].endTime)gt[n].processed=!0,gt[n].manualEndTime=bt.default(gt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Cn(gt[n],Ut,ee,te)}return gt[n].processed},"compileTask"),r=!0;for(let[n,i]of gt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),Ga=t(function(e,r){let n=r;if(m().securityLevel!=="loose")n=pn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Zt(i)!==void 0)In(i,()=>{window.open(n,"_self")}),yr.set(i,n)}),Fn(e,"clickable")},"setLink"),Fn=t(function(e,r){e.split(",").forEach(function(n){let i=Zt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),Qa=t(function(e,r,n){if(m().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<i.length;s++){let c=i[s].trim();if(c.startsWith('"')&&c.endsWith('"'))c=c.substr(1,c.length-2);i[s]=c}}if(i.length===0)i.push(e);if(Zt(e)!==void 0)In(e,()=>{V.runFunc(r,...i)})},"setClickFun"),In=t(function(e,r){pr.push(function(){let n=Qt?`${Qt}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=Qt?`${Qt}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),Ja=t(function(e,r,n){e.split(",").forEach(function(i){Qa(i,r,n)}),Fn(e,"clickable")},"setClickEvent"),Ka=t(function(e){pr.forEach(function(r){r(e)})},"bindFunctions"),ts={getConfig:t(()=>m().gantt,"getConfig"),clear:ka,setDateFormat:Da,getDateFormat:Ua,enableInclusiveEndDates:Ca,endDatesAreInclusive:Sa,enableTopAxis:_a,topAxisEnabled:Ya,setAxisFormat:Ta,getAxisFormat:va,setTickInterval:xa,getTickInterval:ba,setTodayMarker:wa,getTodayMarker:Ma,setAccTitle:O,getAccTitle:G,setDiagramTitle:q,getDiagramTitle:H,setDiagramId:pa,setDisplayMode:Fa,getDisplayMode:Ia,setAccDescription:z,getAccDescription:j,addSection:Ha,getSections:Na,getTasks:Pa,addTask:Xa,findTaskById:Zt,addTaskOrg:qa,setIncludes:La,getIncludes:Wa,setExcludes:Ea,getExcludes:Oa,setClickEvent:Ja,setLink:Ga,getLinks:$a,bindFunctions:Ka,parseDuration:Sn,isInvalidDate:Dn,setWeekday:Va,getWeekday:za,setWeekend:Ra};function xr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(a){let s="^\\s*"+a+"\\s*$",c=new RegExp(s);if(e[0].match(c))r[a]=!0,e.shift(1),i=!0})}t(xr,"getTaskTags");Jt.default.extend(Un.default);var rs=t(function(){l.debug("Something is calling, setConf, remove the call")},"setConf"),kn={monday:Nt,tuesday:ve,wednesday:xe,thursday:It,friday:be,saturday:we,sunday:Ct},ns=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((s,c)=>s.startTime-c.startTime||s.order-c.order),a=0;for(let s of i)for(let c=0;c<n.length;c++)if(s.startTime>=n[c]){if(n[c]=s.endTime,s.order=c+r,c>a)a=c;break}return a},"getMaxIntersections"),$t,or=1e4,is=t(function(e,r,n,i){let a=m().gantt;i.db.setDiagramId(r);let s=m().securityLevel,c;if(s==="sandbox")c=b("#i"+r);let x=s==="sandbox"?b(c.nodes()[0].contentDocument.body):b("body"),D=s==="sandbox"?c.nodes()[0].contentDocument:document,E=D.getElementById(r);if($t=E.parentElement.offsetWidth,$t===void 0)$t=1200;if(a.useWidth!==void 0)$t=a.useWidth;let _=i.db.getTasks(),rt=_.filter((T)=>!T.vert),A=[];for(let T of rt)A.push(T.type);A=et(A);let Y={},W=2*a.topPadding;if(i.db.getDisplayMode()==="compact"||a.displayMode==="compact"){let T={};for(let C of rt)if(T[C.section]===void 0)T[C.section]=[C];else T[C.section].push(C);let S=0;for(let C of Object.keys(T)){let L=ns(T[C],S)+1;S+=L,W+=L*(a.barHeight+a.barGap),Y[C]=L}}else{W+=rt.length*(a.barHeight+a.barGap);for(let T of A)Y[T]=rt.filter((S)=>S.type===T).length}E.setAttribute("viewBox","0 0 "+$t+" "+W);let N=x.select(`[id="${r}"]`),I=Je().domain([Ue(_,function(T){return T.startTime}),Ie(_,function(T){return T.endTime})]).rangeRound([0,$t-a.leftPadding-a.rightPadding]);function J(T,S){let C=T.startTime,L=S.startTime,f=0;if(C>L)f=1;else if(C<L)f=-1;return f}t(J,"taskCompare"),_.sort(J),lt(_,$t,W),re(N,W,$t,a.useMaxWidth),N.append("text").text(i.db.getDiagramTitle()).attr("x",$t/2).attr("y",a.titleTopMargin).attr("class","titleText");function lt(T,S,C){let L=a.barHeight,f=L+a.barGap,{topPadding:v,leftPadding:p}=a,k=Aa().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(Ar);P(f,v,p,S,C,T,i.db.getExcludes(),i.db.getIncludes()),u(p,v,S,C),it(T,f,v,p,L,k,S,C),U(f,v,p,L,k),tt(p,v,S,C)}t(lt,"makeGantt");function it(T,S,C,L,f,v,p){T.sort((d,B)=>d.vert===B.vert?0:d.vert?1:-1);let k=T.filter((d)=>!d.vert),o=[...new Set(k.map((d)=>d.order))].map((d)=>k.find((B)=>B.order===d));N.append("g").selectAll("rect").data(o).enter().append("rect").attr("x",0).attr("y",function(d,B){return B=d.order,B*S+C-2}).attr("width",function(){return p-a.rightPadding/2}).attr("height",S).attr("class",function(d){for(let[B,Q]of A.entries())if(d.type===Q)return"section section"+B%a.numberSectionStyles;return"section section0"}).enter();let X=N.append("g").selectAll("rect").data(T).enter(),h=i.db.getLinks();if(X.append("rect").attr("id",function(d){return r+"-"+d.id}).attr("rx",3).attr("ry",3).attr("x",function(d){if(d.milestone)return I(d.startTime)+L+0.5*(I(d.endTime)-I(d.startTime))-0.5*f;return I(d.startTime)+L}).attr("y",function(d,B){if(B=d.order,d.vert)return a.gridLineStartPadding;return B*S+C}).attr("width",function(d){if(d.milestone)return f;if(d.vert)return 0.08*f;return I(d.renderEndTime||d.endTime)-I(d.startTime)}).attr("height",function(d){if(d.vert)return k.length*(a.barHeight+a.barGap)+a.barHeight*2;return f}).attr("transform-origin",function(d,B){return B=d.order,(I(d.startTime)+L+0.5*(I(d.endTime)-I(d.startTime))).toString()+"px "+(B*S+C+0.5*f).toString()+"px"}).attr("class",function(d){let Q="";if(d.classes.length>0)Q=d.classes.join(" ");let ct=0;for(let[nt,g]of A.entries())if(d.type===g)ct=nt%a.numberSectionStyles;let ut="";if(d.active)if(d.crit)ut+=" activeCrit";else ut=" active";else if(d.done)if(d.crit)ut=" doneCrit";else ut=" done";else if(d.crit)ut+=" crit";if(ut.length===0)ut=" task";if(d.milestone)ut=" milestone "+ut;if(d.vert)ut=" vert "+ut;return ut+=ct,ut+=" "+Q,"task"+ut}),X.append("text").attr("id",function(d){return r+"-"+d.id+"-text"}).text(function(d){return d.task}).attr("font-size",a.fontSize).attr("x",function(d){let B=I(d.startTime),Q=I(d.renderEndTime||d.endTime);if(d.milestone)B+=0.5*(I(d.endTime)-I(d.startTime))-0.5*f,Q=B+f;if(d.vert)return I(d.startTime)+L;let ct=this.getBBox().width;if(ct>Q-B)if(Q+ct+1.5*a.leftPadding>p)return B+L-5;else return Q+L+5;else return(Q-B)/2+B+L}).attr("y",function(d,B){if(d.vert)return a.gridLineStartPadding+k.length*(a.barHeight+a.barGap)+60;return B=d.order,B*S+a.barHeight/2+(a.fontSize/2-2)+C}).attr("text-height",f).attr("class",function(d){let B=I(d.startTime),Q=I(d.endTime);if(d.milestone)Q=B+f;let ct=this.getBBox().width,ut="";if(d.classes.length>0)ut=d.classes.join(" ");let nt=0;for(let[R,K]of A.entries())if(d.type===K)nt=R%a.numberSectionStyles;let g="";if(d.active)if(d.crit)g="activeCritText"+nt;else g="activeText"+nt;if(d.done)if(d.crit)g=g+" doneCritText"+nt;else g=g+" doneText"+nt;else if(d.crit)g=g+" critText"+nt;if(d.milestone)g+=" milestoneText";if(d.vert)g+=" vertText";if(ct>Q-B)if(Q+ct+1.5*a.leftPadding>p)return ut+" taskTextOutsideLeft taskTextOutside"+nt+" "+g;else return ut+" taskTextOutsideRight taskTextOutside"+nt+" "+g+" width-"+ct;else return ut+" taskText taskText"+nt+" "+g+" width-"+ct}),m().securityLevel==="sandbox"){let d;d=b("#i"+r);let B=d.nodes()[0].contentDocument;X.filter(function(Q){return h.has(Q.id)}).each(function(Q){var ct=B.querySelector("#"+CSS.escape(r+"-"+Q.id)),ut=B.querySelector("#"+CSS.escape(r+"-"+Q.id+"-text"));let nt=ct.parentNode;var g=B.createElement("a");g.setAttribute("xlink:href",h.get(Q.id)),g.setAttribute("target","_top"),nt.appendChild(g),g.appendChild(ct),g.appendChild(ut)})}}t(it,"drawRects");function P(T,S,C,L,f,v,p,k){if(p.length===0&&k.length===0)return;let Z,o;for(let{startTime:Q,endTime:ct}of v){if(Z===void 0||Q<Z)Z=Q;if(o===void 0||ct>o)o=ct}if(!Z||!o)return;if(Jt.default(o).diff(Jt.default(Z),"year")>5){l.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let X=i.db.getDateFormat(),h=[],dt=null,d=Jt.default(Z);while(d.valueOf()<=o){if(i.db.isInvalidDate(d,X,p,k))if(!dt)dt={start:d,end:d};else dt.end=d;else if(dt)h.push(dt),dt=null;d=d.add(1,"d")}N.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(Q)=>r+"-exclude-"+Q.start.format("YYYY-MM-DD")).attr("x",(Q)=>I(Q.start.startOf("day"))+C).attr("y",a.gridLineStartPadding).attr("width",(Q)=>I(Q.end.endOf("day"))-I(Q.start.startOf("day"))).attr("height",f-S-a.gridLineStartPadding).attr("transform-origin",function(Q,ct){return(I(Q.start)+C+0.5*(I(Q.end)-I(Q.start))).toString()+"px "+(ct*T+0.5*f).toString()+"px"}).attr("class","exclude-range")}t(P,"drawExcludeDays");function M(T,S,C,L){if(C<=0||T>S)return 1/0;let f=S-T,v=Jt.default.duration({[L??"day"]:C}).asMilliseconds();if(v<=0)return 1/0;return Math.ceil(f/v)}t(M,"getEstimatedTickCount");function u(T,S,C,L){let f=i.db.getDateFormat(),v=i.db.getAxisFormat(),p;if(v)p=v;else if(f==="D")p="%d";else p=a.axisFormat??"%Y-%m-%d";let k=Oe(I).tickSize(-L+S+a.gridLineStartPadding).tickFormat(Bt(p)),o=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||a.tickInterval);if(o!==null){let X=parseInt(o[1],10);if(isNaN(X)||X<=0)l.warn(`Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`);else{let h=o[2],dt=i.db.getWeekday()||a.weekday,d=I.domain(),B=d[0],Q=d[1],ct=M(B,Q,X,h);if(ct>or)l.warn(`The tick interval "${X}${h}" would generate ${ct} ticks, which exceeds the maximum allowed (${or}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(Yt.every(X));break;case"second":k.ticks(vt.every(X));break;case"minute":k.ticks(Et.every(X));break;case"hour":k.ticks(At.every(X));break;case"day":k.ticks(Dt.every(X));break;case"week":k.ticks(kn[dt].every(X));break;case"month":k.ticks(Ot.every(X));break}}}if(N.append("g").attr("class","grid").attr("transform","translate("+T+", "+(L-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||a.topAxis){let X=Ae(I).tickSize(-L+S+a.gridLineStartPadding).tickFormat(Bt(p));if(o!==null){let h=parseInt(o[1],10);if(isNaN(h)||h<=0)l.warn(`Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`);else{let dt=o[2],d=i.db.getWeekday()||a.weekday,B=I.domain(),Q=B[0],ct=B[1];if(M(Q,ct,h,dt)<=or)switch(dt){case"millisecond":X.ticks(Yt.every(h));break;case"second":X.ticks(vt.every(h));break;case"minute":X.ticks(Et.every(h));break;case"hour":X.ticks(At.every(h));break;case"day":X.ticks(Dt.every(h));break;case"week":X.ticks(kn[d].every(h));break;case"month":X.ticks(Ot.every(h));break}}}N.append("g").attr("class","grid").attr("transform","translate("+T+", "+S+")").call(X).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(u,"makeGrid");function U(T,S){let C=0,L=Object.keys(Y).map((f)=>[f,Y[f]]);N.append("g").selectAll("text").data(L).enter().append(function(f){let v=f[0].split(w.lineBreakRegex),p=-(v.length-1)/2,k=D.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",p+"em");for(let[Z,o]of v.entries()){let X=D.createElementNS("http://www.w3.org/2000/svg","tspan");if(X.setAttribute("alignment-baseline","central"),X.setAttribute("x","10"),Z>0)X.setAttribute("dy","1em");X.textContent=o,k.appendChild(X)}return k}).attr("x",10).attr("y",function(f,v){if(v>0)for(let p=0;p<v;p++)return C+=L[v-1][1],f[1]*T/2+C*T+S;else return f[1]*T/2+S}).attr("font-size",a.sectionFontSize).attr("class",function(f){for(let[v,p]of A.entries())if(f[0]===p)return"sectionTitle sectionTitle"+v%a.numberSectionStyles;return"sectionTitle"})}t(U,"vertLabels");function tt(T,S,C,L){let f=i.db.getTodayMarker();if(f==="off")return;let v=N.append("g").attr("class","today"),p=new Date,k=v.append("line");if(k.attr("x1",I(p)+T).attr("x2",I(p)+T).attr("y1",a.titleTopMargin).attr("y2",L-a.titleTopMargin).attr("class","today"),f!=="")k.attr("style",f.replace(/,/g,";"))}t(tt,"drawToday");function et(T){let S={},C=[];for(let L=0,f=T.length;L<f;++L)if(!Object.prototype.hasOwnProperty.call(S,T[L]))S[T[L]]=!0,C.push(T[L]);return C}t(et,"checkUnique")},"draw"),as={setConf:rs,draw:is},ss=t((e)=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var v=this.next();if(v)return v;else return this.lex()},"lex"),begin:t(function(v){this.conditionStack.push(v)},"begin"),popState:t(function(){var v=this.conditionStack.length-1;if(v>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(v){if(v=this.conditionStack.length-1-Math.abs(v||0),v>=0)return this.conditionStack[v];else return"INITIAL"},"topState"),pushState:t(function(v){this.begin(v)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(v,p,k,Z){var o=Z;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return L}();T.lexer=S;function C(){this.yy={}}return t(C,"Parser"),C.prototype=T,T.Parser=C,new C}();cr.parser=cr;var ga=cr;bt.default.extend(Tn.default);bt.default.extend(vn.default);bt.default.extend(bn.default);var yn={friday:5,saturday:6},Ut="",dr="",mr=void 0,hr="",te=[],ee=[],yr=new Map,gr=[],Se=[],re="",kr="",wn=["active","done","crit","milestone","vert"],pr=[],Qt="",ue=!1,Tr=!1,vr="sunday",_e="saturday",ur=0,ka=t(function(){gr=[],Se=[],re="",pr=[],De=0,fr=void 0,Ce=void 0,gt=[],Ut="",dr="",kr="",mr=void 0,hr="",te=[],ee=[],ue=!1,Tr=!1,ur=0,yr=new Map,Qt="",F(),vr="sunday",_e="saturday"},"clear"),pa=t(function(e){Qt=e},"setDiagramId"),Ta=t(function(e){dr=e},"setAxisFormat"),va=t(function(){return dr},"getAxisFormat"),xa=t(function(e){mr=e},"setTickInterval"),ba=t(function(){return mr},"getTickInterval"),wa=t(function(e){hr=e},"setTodayMarker"),Ma=t(function(){return hr},"getTodayMarker"),Da=t(function(e){Ut=e},"setDateFormat"),Ca=t(function(){ue=!0},"enableInclusiveEndDates"),Sa=t(function(){return ue},"endDatesAreInclusive"),_a=t(function(){Tr=!0},"enableTopAxis"),Ya=t(function(){return Tr},"topAxisEnabled"),Fa=t(function(e){kr=e},"setDisplayMode"),Ia=t(function(){return kr},"getDisplayMode"),Ua=t(function(){return Ut},"getDateFormat"),Mn=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),La=t(function(e){te=Mn(te,e)},"setIncludes"),Wa=t(function(){return te},"getIncludes"),Ea=t(function(e){ee=Mn(ee,e)},"setExcludes"),Aa=t(function(){return ee},"getExcludes"),Oa=t(function(){return yr},"getLinks"),$a=t(function(e){re=e,gr.push(e)},"addSection"),Ha=t(function(){return gr},"getSections"),Na=t(function(){let e=gn(),r=10,n=0;while(!e&&n<r)e=gn(),n++;return Se=gt,Se},"getTasks"),Dn=t(function(e,r,n,i){let a=e.format(r.trim()),s=e.format("YYYY-MM-DD");if(i.includes(a)||i.includes(s))return!1;if(n.includes("weekends")&&(e.isoWeekday()===yn[_e]||e.isoWeekday()===yn[_e]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(a)||n.includes(s)},"isInvalidDate"),Pa=t(function(e){vr=e},"setWeekday"),Va=t(function(){return vr},"getWeekday"),za=t(function(e){_e=e},"setWeekend"),Cn=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let a;if(e.startTime instanceof Date)a=bt.default(e.startTime);else a=bt.default(e.startTime,r,!0);a=a.add(1,"d");let s;if(e.endTime instanceof Date)s=bt.default(e.endTime);else s=bt.default(e.endTime,r,!0);let[c,x]=Ra(a,s,r,n,i);e.endTime=c.toDate(),e.renderEndTime=x},"checkTaskDates"),Ra=t(function(e,r,n,i,a){let s=!1,c=null,x=r.add(1e4,"d");while(e<=r){if(!s)c=r.toDate();if(s=Dn(e,n,i,a),s){if(r=r.add(1,"d"),r>x)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,c]},"fixTaskDates"),lr=t(function(e,r,n){if(n=n.trim(),t((x)=>{let D=x.trim();return D==="x"||D==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let s=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let x=null;for(let E of s.groups.ids.split(" ")){let _=Zt(E);if(_!==void 0&&(!x||_.endTime>x.endTime))x=_}if(x)return x.endTime;let D=new Date;return D.setHours(0,0,0,0),D}let c=bt.default(n,r.trim(),!0);if(c.isValid())return c.toDate();else{l.debug("Invalid date:"+n),l.debug("With date format:"+r.trim());let x=new Date(n);if(x===void 0||isNaN(x.getTime())||x.getFullYear()<-1e4||x.getFullYear()>1e4)throw Error("Invalid date:"+n);return x}},"getStartDate"),Sn=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),_n=t(function(e,r,n,i=!1){n=n.trim();let s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let _=null;for(let A of s.groups.ids.split(" ")){let Y=Zt(A);if(Y!==void 0&&(!_||Y.startTime<_.startTime))_=Y}if(_)return _.startTime;let rt=new Date;return rt.setHours(0,0,0,0),rt}let c=bt.default(n,r.trim(),!0);if(c.isValid()){if(i)c=c.add(1,"d");return c.toDate()}let x=bt.default(e),[D,E]=Sn(n);if(!Number.isNaN(D)){let _=x.add(D,E);if(_.isValid())x=_}return x.toDate()},"getEndDate"),De=0,Kt=t(function(e){if(e===void 0)return De=De+1,"task"+De;return e},"parseId"),Ba=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),a={};xr(i,a,wn);for(let c=0;c<i.length;c++)i[c]=i[c].trim();let s="";switch(i.length){case 1:a.id=Kt(),a.startTime=e.endTime,s=i[0];break;case 2:a.id=Kt(),a.startTime=lr(void 0,Ut,i[0]),s=i[1];break;case 3:a.id=Kt(i[0]),a.startTime=lr(void 0,Ut,i[1]),s=i[2];break;default:}if(s)a.endTime=_n(a.startTime,Ut,s,ue),a.manualEndTime=bt.default(s,"YYYY-MM-DD",!0).isValid(),Cn(a,Ut,ee,te);return a},"compileData"),Za=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),a={};xr(i,a,wn);for(let s=0;s<i.length;s++)i[s]=i[s].trim();switch(i.length){case 1:a.id=Kt(),a.startTime={type:"prevTaskEnd",id:e},a.endTime={data:i[0]};break;case 2:a.id=Kt(),a.startTime={type:"getStartDate",startData:i[0]},a.endTime={data:i[1]};break;case 3:a.id=Kt(i[0]),a.startTime={type:"getStartDate",startData:i[1]},a.endTime={data:i[2]};break;default:}return a},"parseData"),fr,Ce,gt=[],Yn={},ja=t(function(e,r){let n={section:re,type:re,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=Za(Ce,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Ce,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=ur,ur++;let a=gt.push(n);Ce=n.id,Yn[n.id]=a-1},"addTask"),Zt=t(function(e){let r=Yn[e];return gt[r]},"findTaskById"),Xa=t(function(e,r){let n={section:re,type:re,description:e,task:e,classes:[]},i=Ba(fr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,fr=n,Se.push(n)},"addTaskOrg"),gn=t(function(){let e=t(function(n){let i=gt[n],a="";switch(gt[n].raw.startTime.type){case"prevTaskEnd":{let s=Zt(i.prevTaskId);i.startTime=s.endTime;break}case"getStartDate":if(a=lr(void 0,Ut,gt[n].raw.startTime.startData),a)gt[n].startTime=a;break}if(gt[n].startTime){if(gt[n].endTime=_n(gt[n].startTime,Ut,gt[n].raw.endTime.data,ue),gt[n].endTime)gt[n].processed=!0,gt[n].manualEndTime=bt.default(gt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Cn(gt[n],Ut,ee,te)}return gt[n].processed},"compileTask"),r=!0;for(let[n,i]of gt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),qa=t(function(e,r){let n=r;if(m().securityLevel!=="loose")n=pn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Zt(i)!==void 0)In(i,()=>{window.open(n,"_self")}),yr.set(i,n)}),Fn(e,"clickable")},"setLink"),Fn=t(function(e,r){e.split(",").forEach(function(n){let i=Zt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),Ga=t(function(e,r,n){if(m().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<i.length;s++){let c=i[s].trim();if(c.startsWith('"')&&c.endsWith('"'))c=c.substr(1,c.length-2);i[s]=c}}if(i.length===0)i.push(e);if(Zt(e)!==void 0)In(e,()=>{V.runFunc(r,...i)})},"setClickFun"),In=t(function(e,r){pr.push(function(){let n=Qt?`${Qt}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=Qt?`${Qt}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),Qa=t(function(e,r,n){e.split(",").forEach(function(i){Ga(i,r,n)}),Fn(e,"clickable")},"setClickEvent"),Ja=t(function(e){pr.forEach(function(r){r(e)})},"bindFunctions"),Ka={getConfig:t(()=>m().gantt,"getConfig"),clear:ka,setDateFormat:Da,getDateFormat:Ua,enableInclusiveEndDates:Ca,endDatesAreInclusive:Sa,enableTopAxis:_a,topAxisEnabled:Ya,setAxisFormat:Ta,getAxisFormat:va,setTickInterval:xa,getTickInterval:ba,setTodayMarker:wa,getTodayMarker:Ma,setAccTitle:O,getAccTitle:G,setDiagramTitle:q,getDiagramTitle:H,setDiagramId:pa,setDisplayMode:Fa,getDisplayMode:Ia,setAccDescription:z,getAccDescription:j,addSection:$a,getSections:Ha,getTasks:Na,addTask:ja,findTaskById:Zt,addTaskOrg:Xa,setIncludes:La,getIncludes:Wa,setExcludes:Ea,getExcludes:Aa,setClickEvent:Qa,setLink:qa,getLinks:Oa,bindFunctions:Ja,parseDuration:Sn,isInvalidDate:Dn,setWeekday:Pa,getWeekday:Va,setWeekend:za};function xr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(a){let s="^\\s*"+a+"\\s*$",c=new RegExp(s);if(e[0].match(c))r[a]=!0,e.shift(1),i=!0})}t(xr,"getTaskTags");Jt.default.extend(Un.default);var ts=t(function(){l.debug("Something is calling, setConf, remove the call")},"setConf"),kn={monday:Nt,tuesday:ve,wednesday:xe,thursday:It,friday:be,saturday:we,sunday:Ct},es=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((s,c)=>s.startTime-c.startTime||s.order-c.order),a=0;for(let s of i)for(let c=0;c<n.length;c++)if(s.startTime>=n[c]){if(n[c]=s.endTime,s.order=c+r,c>a)a=c;break}return a},"getMaxIntersections"),$t,or=1e4,ns=t(function(e,r,n,i){let a=m().gantt;i.db.setDiagramId(r);let s=m().securityLevel,c;if(s==="sandbox")c=b("#i"+r);let x=s==="sandbox"?b(c.nodes()[0].contentDocument.body):b("body"),D=s==="sandbox"?c.nodes()[0].contentDocument:document,E=D.getElementById(r);if($t=E.parentElement.offsetWidth,$t===void 0)$t=1200;if(a.useWidth!==void 0)$t=a.useWidth;let _=i.db.getTasks(),rt=_.filter((T)=>!T.vert),A=[];for(let T of rt)A.push(T.type);A=et(A);let Y={},W=2*a.topPadding;if(i.db.getDisplayMode()==="compact"||a.displayMode==="compact"){let T={};for(let C of rt)if(T[C.section]===void 0)T[C.section]=[C];else T[C.section].push(C);let S=0;for(let C of Object.keys(T)){let L=es(T[C],S)+1;S+=L,W+=L*(a.barHeight+a.barGap),Y[C]=L}}else{W+=rt.length*(a.barHeight+a.barGap);for(let T of A)Y[T]=rt.filter((S)=>S.type===T).length}E.setAttribute("viewBox","0 0 "+$t+" "+W);let N=x.select(`[id="${r}"]`),I=Je().domain([Ue(_,function(T){return T.startTime}),Ie(_,function(T){return T.endTime})]).rangeRound([0,$t-a.leftPadding-a.rightPadding]);function J(T,S){let C=T.startTime,L=S.startTime,f=0;if(C>L)f=1;else if(C<L)f=-1;return f}t(J,"taskCompare"),_.sort(J),lt(_,$t,W),ne(N,W,$t,a.useMaxWidth),N.append("text").text(i.db.getDiagramTitle()).attr("x",$t/2).attr("y",a.titleTopMargin).attr("class","titleText");function lt(T,S,C){let L=a.barHeight,f=L+a.barGap,{topPadding:v,leftPadding:p}=a,k=ya().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(Ar);P(f,v,p,S,C,T,i.db.getExcludes(),i.db.getIncludes()),u(p,v,S,C),it(T,f,v,p,L,k,S,C),U(f,v,p,L,k),tt(p,v,S,C)}t(lt,"makeGantt");function it(T,S,C,L,f,v,p){T.sort((d,B)=>d.vert===B.vert?0:d.vert?1:-1);let k=T.filter((d)=>!d.vert),o=[...new Set(k.map((d)=>d.order))].map((d)=>k.find((B)=>B.order===d));N.append("g").selectAll("rect").data(o).enter().append("rect").attr("x",0).attr("y",function(d,B){return B=d.order,B*S+C-2}).attr("width",function(){return p-a.rightPadding/2}).attr("height",S).attr("class",function(d){for(let[B,Q]of A.entries())if(d.type===Q)return"section section"+B%a.numberSectionStyles;return"section section0"}).enter();let X=N.append("g").selectAll("rect").data(T).enter(),h=i.db.getLinks();if(X.append("rect").attr("id",function(d){return r+"-"+d.id}).attr("rx",3).attr("ry",3).attr("x",function(d){if(d.milestone)return I(d.startTime)+L+0.5*(I(d.endTime)-I(d.startTime))-0.5*f;return I(d.startTime)+L}).attr("y",function(d,B){if(B=d.order,d.vert)return a.gridLineStartPadding;return B*S+C}).attr("width",function(d){if(d.milestone)return f;if(d.vert)return 0.08*f;return I(d.renderEndTime||d.endTime)-I(d.startTime)}).attr("height",function(d){if(d.vert)return k.length*(a.barHeight+a.barGap)+a.barHeight*2;return f}).attr("transform-origin",function(d,B){return B=d.order,(I(d.startTime)+L+0.5*(I(d.endTime)-I(d.startTime))).toString()+"px "+(B*S+C+0.5*f).toString()+"px"}).attr("class",function(d){let Q="";if(d.classes.length>0)Q=d.classes.join(" ");let ct=0;for(let[nt,g]of A.entries())if(d.type===g)ct=nt%a.numberSectionStyles;let ut="";if(d.active)if(d.crit)ut+=" activeCrit";else ut=" active";else if(d.done)if(d.crit)ut=" doneCrit";else ut=" done";else if(d.crit)ut+=" crit";if(ut.length===0)ut=" task";if(d.milestone)ut=" milestone "+ut;if(d.vert)ut=" vert "+ut;return ut+=ct,ut+=" "+Q,"task"+ut}),X.append("text").attr("id",function(d){return r+"-"+d.id+"-text"}).text(function(d){return d.task}).attr("font-size",a.fontSize).attr("x",function(d){let B=I(d.startTime),Q=I(d.renderEndTime||d.endTime);if(d.milestone)B+=0.5*(I(d.endTime)-I(d.startTime))-0.5*f,Q=B+f;if(d.vert)return I(d.startTime)+L;let ct=this.getBBox().width;if(ct>Q-B)if(Q+ct+1.5*a.leftPadding>p)return B+L-5;else return Q+L+5;else return(Q-B)/2+B+L}).attr("y",function(d,B){if(d.vert)return a.gridLineStartPadding+k.length*(a.barHeight+a.barGap)+60;return B=d.order,B*S+a.barHeight/2+(a.fontSize/2-2)+C}).attr("text-height",f).attr("class",function(d){let B=I(d.startTime),Q=I(d.endTime);if(d.milestone)Q=B+f;let ct=this.getBBox().width,ut="";if(d.classes.length>0)ut=d.classes.join(" ");let nt=0;for(let[R,K]of A.entries())if(d.type===K)nt=R%a.numberSectionStyles;let g="";if(d.active)if(d.crit)g="activeCritText"+nt;else g="activeText"+nt;if(d.done)if(d.crit)g=g+" doneCritText"+nt;else g=g+" doneText"+nt;else if(d.crit)g=g+" critText"+nt;if(d.milestone)g+=" milestoneText";if(d.vert)g+=" vertText";if(ct>Q-B)if(Q+ct+1.5*a.leftPadding>p)return ut+" taskTextOutsideLeft taskTextOutside"+nt+" "+g;else return ut+" taskTextOutsideRight taskTextOutside"+nt+" "+g+" width-"+ct;else return ut+" taskText taskText"+nt+" "+g+" width-"+ct}),m().securityLevel==="sandbox"){let d;d=b("#i"+r);let B=d.nodes()[0].contentDocument;X.filter(function(Q){return h.has(Q.id)}).each(function(Q){var ct=B.querySelector("#"+CSS.escape(r+"-"+Q.id)),ut=B.querySelector("#"+CSS.escape(r+"-"+Q.id+"-text"));let nt=ct.parentNode;var g=B.createElement("a");g.setAttribute("xlink:href",h.get(Q.id)),g.setAttribute("target","_top"),nt.appendChild(g),g.appendChild(ct),g.appendChild(ut)})}}t(it,"drawRects");function P(T,S,C,L,f,v,p,k){if(p.length===0&&k.length===0)return;let Z,o;for(let{startTime:Q,endTime:ct}of v){if(Z===void 0||Q<Z)Z=Q;if(o===void 0||ct>o)o=ct}if(!Z||!o)return;if(Jt.default(o).diff(Jt.default(Z),"year")>5){l.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let X=i.db.getDateFormat(),h=[],dt=null,d=Jt.default(Z);while(d.valueOf()<=o){if(i.db.isInvalidDate(d,X,p,k))if(!dt)dt={start:d,end:d};else dt.end=d;else if(dt)h.push(dt),dt=null;d=d.add(1,"d")}N.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(Q)=>r+"-exclude-"+Q.start.format("YYYY-MM-DD")).attr("x",(Q)=>I(Q.start.startOf("day"))+C).attr("y",a.gridLineStartPadding).attr("width",(Q)=>I(Q.end.endOf("day"))-I(Q.start.startOf("day"))).attr("height",f-S-a.gridLineStartPadding).attr("transform-origin",function(Q,ct){return(I(Q.start)+C+0.5*(I(Q.end)-I(Q.start))).toString()+"px "+(ct*T+0.5*f).toString()+"px"}).attr("class","exclude-range")}t(P,"drawExcludeDays");function M(T,S,C,L){if(C<=0||T>S)return 1/0;let f=S-T,v=Jt.default.duration({[L??"day"]:C}).asMilliseconds();if(v<=0)return 1/0;return Math.ceil(f/v)}t(M,"getEstimatedTickCount");function u(T,S,C,L){let f=i.db.getDateFormat(),v=i.db.getAxisFormat(),p;if(v)p=v;else if(f==="D")p="%d";else p=a.axisFormat??"%Y-%m-%d";let k=Oe(I).tickSize(-L+S+a.gridLineStartPadding).tickFormat(Bt(p)),o=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||a.tickInterval);if(o!==null){let X=parseInt(o[1],10);if(isNaN(X)||X<=0)l.warn(`Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`);else{let h=o[2],dt=i.db.getWeekday()||a.weekday,d=I.domain(),B=d[0],Q=d[1],ct=M(B,Q,X,h);if(ct>or)l.warn(`The tick interval "${X}${h}" would generate ${ct} ticks, which exceeds the maximum allowed (${or}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(Yt.every(X));break;case"second":k.ticks(vt.every(X));break;case"minute":k.ticks(Et.every(X));break;case"hour":k.ticks(At.every(X));break;case"day":k.ticks(Dt.every(X));break;case"week":k.ticks(kn[dt].every(X));break;case"month":k.ticks(Ot.every(X));break}}}if(N.append("g").attr("class","grid").attr("transform","translate("+T+", "+(L-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||a.topAxis){let X=Ae(I).tickSize(-L+S+a.gridLineStartPadding).tickFormat(Bt(p));if(o!==null){let h=parseInt(o[1],10);if(isNaN(h)||h<=0)l.warn(`Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`);else{let dt=o[2],d=i.db.getWeekday()||a.weekday,B=I.domain(),Q=B[0],ct=B[1];if(M(Q,ct,h,dt)<=or)switch(dt){case"millisecond":X.ticks(Yt.every(h));break;case"second":X.ticks(vt.every(h));break;case"minute":X.ticks(Et.every(h));break;case"hour":X.ticks(At.every(h));break;case"day":X.ticks(Dt.every(h));break;case"week":X.ticks(kn[d].every(h));break;case"month":X.ticks(Ot.every(h));break}}}N.append("g").attr("class","grid").attr("transform","translate("+T+", "+S+")").call(X).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(u,"makeGrid");function U(T,S){let C=0,L=Object.keys(Y).map((f)=>[f,Y[f]]);N.append("g").selectAll("text").data(L).enter().append(function(f){let v=f[0].split(w.lineBreakRegex),p=-(v.length-1)/2,k=D.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",p+"em");for(let[Z,o]of v.entries()){let X=D.createElementNS("http://www.w3.org/2000/svg","tspan");if(X.setAttribute("alignment-baseline","central"),X.setAttribute("x","10"),Z>0)X.setAttribute("dy","1em");X.textContent=o,k.appendChild(X)}return k}).attr("x",10).attr("y",function(f,v){if(v>0)for(let p=0;p<v;p++)return C+=L[v-1][1],f[1]*T/2+C*T+S;else return f[1]*T/2+S}).attr("font-size",a.sectionFontSize).attr("class",function(f){for(let[v,p]of A.entries())if(f[0]===p)return"sectionTitle sectionTitle"+v%a.numberSectionStyles;return"sectionTitle"})}t(U,"vertLabels");function tt(T,S,C,L){let f=i.db.getTodayMarker();if(f==="off")return;let v=N.append("g").attr("class","today"),p=new Date,k=v.append("line");if(k.attr("x1",I(p)+T).attr("x2",I(p)+T).attr("y1",a.titleTopMargin).attr("y2",L-a.titleTopMargin).attr("class","today"),f!=="")k.attr("style",f.replace(/,/g,";"))}t(tt,"drawToday");function et(T){let S={},C=[];for(let L=0,f=T.length;L<f;++L)if(!Object.prototype.hasOwnProperty.call(S,T[L]))S[T[L]]=!0,C.push(T[L]);return C}t(et,"checkUnique")},"draw"),is={setConf:ts,draw:ns},ss=t((e)=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: ${e.fontFamily};
|
|
9
9
|
}
|
|
@@ -289,4 +289,4 @@ Expecting `+fe.join(", ")+", got '"+(this.terminals_[st]||st)+"'";else Fe="Parse
|
|
|
289
289
|
fill: ${e.titleColor||e.textColor};
|
|
290
290
|
font-family: ${e.fontFamily};
|
|
291
291
|
}
|
|
292
|
-
`,"getStyles"),os=ss,
|
|
292
|
+
`,"getStyles"),os=ss,Ao={parser:ga,db:Ka,renderer:is,styles:os};export{Ao as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fg}from"./index-nf4hq5tg.js";export{Fg as createGitGraphServices};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ui}from"./index-gqsnyh8k.js";import{xe}from"./index-ver116ed.js";import{t,l,Y,E,w,F,O,G,z,j,q,H,m,mc,b,Kg,ue,V}from"./index-xfyxmaj1.js";import{$e}from"./index-wnk9k57k.js";var k={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Ce=Y.gitGraph,U=t(()=>ue({...Ce,...E().gitGraph}),"getConfig"),h=new Ui(()=>{let e=U(),{mainBranchName:r,mainBranchOrder:a}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ae(){return Kg({length:7})}t(ae,"getID");function ge(e,r){let a=Object.create(null);return e.reduce((n,c)=>{let d=r(c);if(!a[d])a[d]=!0,n.push(c);return n},[])}t(ge,"uniqBy");var ve=t(function(e){h.records.direction=e},"setDirection"),Ee=t(function(e){l.debug("options str",e),e=e?.trim(),e=e||"{}";try{h.records.options=JSON.parse(e)}catch(r){l.error("error while parsing gitGraph options",r.message)}},"setOptions"),Te=t(function(){return h.records.options},"getOptions"),Le=t(function(e){let{msg:r,id:a,type:n,tags:c}=e;l.info("commit",r,a,n,c),l.debug("Entering commit:",r,a,n,c);let d=U();a=w.sanitizeText(a,d),r=w.sanitizeText(r,d),c=c?.map((o)=>w.sanitizeText(o,d));let s={id:a?a:h.records.seq+"-"+ae(),message:r,seq:h.records.seq++,type:n??k.NORMAL,tags:c??[],parents:h.records.head==null?[]:[h.records.head.id],branch:h.records.currBranch};if(h.records.head=s,l.info("main branch",d.mainBranchName),h.records.commits.has(s.id))l.warn(`Commit ID ${s.id} already exists`);h.records.commits.set(s.id,s),h.records.branches.set(h.records.currBranch,s.id),l.debug("in pushCommit "+s.id)},"commit"),Me=t(function(e){let{name:r,order:a}=e;if(r=w.sanitizeText(r,U()),h.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);h.records.branches.set(r,h.records.head!=null?h.records.head.id:null),h.records.branchConfig.set(r,{name:r,order:a}),fe(r),l.debug("in createBranch")},"branch"),Pe=t((e)=>{let{branch:r,id:a,type:n,tags:c}=e,d=U();if(r=w.sanitizeText(r,d),a)a=w.sanitizeText(a,d);let s=h.records.branches.get(h.records.currBranch),o=h.records.branches.get(r),g=s?h.records.commits.get(s):void 0,p=o?h.records.commits.get(o):void 0;if(g&&p&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(h.records.currBranch===r){let i=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(g===void 0||!g){let i=Error(`Incorrect usage of "merge". Current branch (${h.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!h.records.branches.has(r)){let i=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(p===void 0||!p){let i=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(g===p){let i=Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(a&&h.records.commits.has(a)){let i=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${a} ${n} ${c?.join(" ")}`,token:`merge ${r} ${a} ${n} ${c?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${n} ${c?.join(" ")}`]},i}let y=o?o:"",f={id:a||`${h.records.seq}-${ae()}`,message:`merged branch ${r} into ${h.records.currBranch}`,seq:h.records.seq++,parents:h.records.head==null?[]:[h.records.head.id,y],branch:h.records.currBranch,type:k.MERGE,customType:n,customId:a?!0:!1,tags:c??[]};h.records.head=f,h.records.commits.set(f.id,f),h.records.branches.set(h.records.currBranch,f.id),l.debug(h.records.branches),l.debug("in mergeBranch")},"merge"),Re=t(function(e){let{id:r,targetId:a,tags:n,parent:c}=e;l.debug("Entering cherryPick:",r,a,n);let d=U();if(r=w.sanitizeText(r,d),a=w.sanitizeText(a,d),n=n?.map((g)=>w.sanitizeText(g,d)),c=w.sanitizeText(c,d),!r||!h.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let s=h.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(c&&!(Array.isArray(s.parents)&&s.parents.includes(c)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===k.MERGE&&!c)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!h.records.commits.has(a)){if(o===h.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=h.records.branches.get(h.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${h.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let p=h.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${h.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let y={id:h.records.seq+"-"+ae(),message:`cherry-picked ${s?.message} into ${h.records.currBranch}`,seq:h.records.seq++,parents:h.records.head==null?[]:[h.records.head.id,s.id],branch:h.records.currBranch,type:k.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===k.MERGE?`|parent:${c}`:""}`]};h.records.head=y,h.records.commits.set(y.id,y),h.records.branches.set(h.records.currBranch,y.id),l.debug(h.records.branches),l.debug("in cherryPick")}},"cherryPick"),fe=t(function(e){if(e=w.sanitizeText(e,U()),!h.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{h.records.currBranch=e;let r=h.records.branches.get(h.records.currBranch);if(r===void 0||!r)h.records.head=null;else h.records.head=h.records.commits.get(r)??null}},"checkout");function ce(e,r,a){let n=e.indexOf(r);if(n===-1)e.push(a);else e.splice(n,1,a)}t(ce,"upsert");function de(e){let r=e.reduce((c,d)=>{if(c.seq>d.seq)return c;return d},e[0]),a="";e.forEach(function(c){if(c===r)a+="\t*";else a+="\t|"});let n=[a,r.id,r.seq];for(let c in h.records.branches)if(h.records.branches.get(c)===r.id)n.push(c);if(l.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let c=h.records.commits.get(r.parents[0]);if(ce(e,r,c),r.parents[1])e.push(h.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let c=h.records.commits.get(r.parents[0]);ce(e,r,c)}e=ge(e,(c)=>c.id),de(e)}t(de,"prettyPrintCommitHistory");var Oe=t(function(){l.debug(h.records.commits);let e=pe()[0];de([e])},"prettyPrint"),Ie=t(function(){h.reset(),F()},"clear"),_e=t(function(){return[...h.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=t(function(){return h.records.branches},"getBranches"),De=t(function(){return h.records.commits},"getCommits"),pe=t(function(){let e=[...h.records.commits.values()];return e.forEach(function(r){l.debug(r.id)}),e.sort((r,a)=>r.seq-a.seq),e},"getCommitsArray"),We=t(function(){return h.records.currBranch},"getCurrentBranch"),qe=t(function(){return h.records.direction},"getDirection"),Ae=t(function(){return h.records.head},"getHead"),ye={commitType:k,getConfig:U,setDirection:ve,setOptions:Ee,getOptions:Te,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:fe,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:pe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:O,getAccTitle:G,getAccDescription:j,setAccDescription:z,setDiagramTitle:q,getDiagramTitle:H},He=t((e,r)=>{if(xe(e,r),e.dir)r.setDirection(e.dir);for(let a of e.statements)Se(a,r)},"populate"),Se=t((e,r)=>{let n={Commit:t((c)=>r.commit(Ne(c)),"Commit"),Branch:t((c)=>r.branch(Fe(c)),"Branch"),Merge:t((c)=>r.merge(ze(c)),"Merge"),Checkout:t((c)=>r.checkout(Ye(c)),"Checkout"),CherryPicking:t((c)=>r.cherryPick(je(c)),"CherryPicking")}[e.$type];if(n)n(e);else l.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?k[e.type]:k.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?k[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await $e("gitGraph",e);l.debug(r),He(r,ye)},"parse")},A=10,S=40,I=4,D=2,N=8,oe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),ie=12,he=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),K=t((e,r,a=!1)=>{if(a&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),M=new Map,P=new Map,te=30,J=new Map,re=[],W=0,u="LR",Ve=t(()=>{M.clear(),P.clear(),J.clear(),W=0,re=[],u="LR"},"clear"),be=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((n)=>{let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}),r},"drawText"),we=t((e)=>{let r,a,n;if(u==="BT")a=t((c,d)=>c<=d,"comparisonFunc"),n=1/0;else a=t((c,d)=>c>=d,"comparisonFunc"),n=0;return e.forEach((c)=>{let d=u==="TB"||u=="BT"?P.get(c)?.y:P.get(c)?.x;if(d!==void 0&&a(d,n))r=c,n=d}),r},"findClosestParent"),Ze=t((e)=>{let r="",a=1/0;return e.forEach((n)=>{let c=P.get(n).y;if(c<=a)r=n,a=c}),r||void 0},"findClosestParentBT"),Xe=t((e,r,a)=>{let n=a,c=a,d=[];e.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)n=Qe(o),c=Math.max(n,c);else d.push(o);et(o,n)}),n=c,d.forEach((s)=>{tt(s,n,a)}),e.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let g=Ze(o.parents);if(n=P.get(g).y-S,n<=c)c=n;let p=M.get(o.branch).pos,y=n-A;P.set(o.id,{x:p,y})}})},"setParallelBTPos"),Je=t((e)=>{let r=we(e.parents.filter((n)=>n!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let a=P.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return a},"findClosestParentPos"),Qe=t((e)=>Je(e)+S,"calculateCommitPosition"),et=t((e,r)=>{let a=M.get(e.branch);if(!a)throw Error(`Branch not found for commit ${e.id}`);let n=a.pos,c=r+A;return P.set(e.id,{x:n,y:c}),{x:n,y:c}},"setCommitPosition"),tt=t((e,r,a)=>{let n=M.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let c=r+a,d=n.pos;P.set(e.id,{x:d,y:c})},"setRootPosition"),rt=t((e,r,a,n,c,d)=>{let{theme:s}=m(),o=oe.has(s??""),g=he.has(s??""),p=Ue.has(s??"");if(d===k.HIGHLIGHT)e.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${K(c,N,g)} ${n}-outer`),e.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${K(c,N,g)} ${n}-inner`);else if(d===k.CHERRY_PICK)e.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`);else{let y=e.append("circle");if(y.attr("cx",a.x),y.attr("cy",a.y),y.attr("r",o?7:10),y.attr("class",`commit ${r.id} commit${K(c,N,g)}`),d===k.MERGE){let f=e.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${n} ${r.id} commit${K(c,N,g)}`)}if(d===k.REVERSE){let f=e.append("path"),i=o?4:5;f.attr("d",`M ${a.x-i},${a.y-i}L${a.x+i},${a.y+i}M${a.x-i},${a.y+i}L${a.x+i},${a.y-i}`).attr("class",`commit ${n} ${r.id} commit${K(c,N,g)}`)}}},"drawCommitBullet"),at=t((e,r,a,n,c)=>{if(r.type!==k.CHERRY_PICK&&(r.customId&&r.type===k.MERGE||r.type!==k.MERGE)&&c.showCommitLabel){let d=e.append("g"),s=d.insert("rect").attr("class","commit-label-bkg"),o=d.append("text").attr("x",n).attr("y",a.y+25).attr("class","commit-label").text(r.id),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-D).attr("y",a.y+13.5).attr("width",g.width+2*D).attr("height",g.height+2*D),u==="TB"||u==="BT")s.attr("x",a.x-(g.width+4*I+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*I)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.width/2);if(c.rotateCommitLabel)if(u==="TB"||u==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let p=-7.5-(g.width+10)/25*9.5,y=10+g.width/25*8.5;d.attr("transform","translate("+p+", "+y+") rotate(-45, "+n+", "+a.y+")")}}}},"drawCommitLabel"),ot=t((e,r,a,n)=>{if(r.tags.length>0){let c=0,d=0,s=0,o=[];for(let g of r.tags.reverse()){let p=e.insert("polygon"),y=e.append("circle"),f=e.append("text").attr("y",a.y-16-c).attr("class","tag-label").text(g),i=f.node()?.getBBox();if(!i)throw Error("Tag bbox not found");d=Math.max(d,i.width),s=Math.max(s,i.height),f.attr("x",a.posWithOffset-i.width/2),o.push({tag:f,hole:y,rect:p,yOffset:c}),c+=20}for(let{tag:g,hole:p,rect:y,yOffset:f}of o){let i=s/2,B=a.y-19.2-f;if(y.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{qi}from"./index-s9ts6qbj.js";import{xe}from"./index-f6t91mpp.js";import{t,l,Y,E,w,F,O,G,z,j,q,H,m,kc,b,nA,ue,V}from"./index-60cxxnpk.js";import{je}from"./index-nf4hq5tg.js";var k={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ke=Y.gitGraph,U=t(()=>ue({...ke,...E().gitGraph}),"getConfig"),h=new qi(()=>{let e=U(),{mainBranchName:r,mainBranchOrder:a}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ae(){return nA({length:7})}t(ae,"getID");function ge(e,r){let a=Object.create(null);return e.reduce((n,c)=>{let d=r(c);if(!a[d])a[d]=!0,n.push(c);return n},[])}t(ge,"uniqBy");var Ce=t(function(e){h.records.direction=e},"setDirection"),ve=t(function(e){l.debug("options str",e),e=e?.trim(),e=e||"{}";try{h.records.options=JSON.parse(e)}catch(r){l.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ee=t(function(){return h.records.options},"getOptions"),Te=t(function(e){let{msg:r,id:a,type:n,tags:c}=e;l.info("commit",r,a,n,c),l.debug("Entering commit:",r,a,n,c);let d=U();a=w.sanitizeText(a,d),r=w.sanitizeText(r,d),c=c?.map((o)=>w.sanitizeText(o,d));let s={id:a?a:h.records.seq+"-"+ae(),message:r,seq:h.records.seq++,type:n??k.NORMAL,tags:c??[],parents:h.records.head==null?[]:[h.records.head.id],branch:h.records.currBranch};if(h.records.head=s,l.info("main branch",d.mainBranchName),h.records.commits.has(s.id))l.warn(`Commit ID ${s.id} already exists`);h.records.commits.set(s.id,s),h.records.branches.set(h.records.currBranch,s.id),l.debug("in pushCommit "+s.id)},"commit"),Le=t(function(e){let{name:r,order:a}=e;if(r=w.sanitizeText(r,U()),h.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);h.records.branches.set(r,h.records.head!=null?h.records.head.id:null),h.records.branchConfig.set(r,{name:r,order:a}),fe(r),l.debug("in createBranch")},"branch"),Me=t((e)=>{let{branch:r,id:a,type:n,tags:c}=e,d=U();if(r=w.sanitizeText(r,d),a)a=w.sanitizeText(a,d);let s=h.records.branches.get(h.records.currBranch),o=h.records.branches.get(r),g=s?h.records.commits.get(s):void 0,p=o?h.records.commits.get(o):void 0;if(g&&p&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(h.records.currBranch===r){let i=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(g===void 0||!g){let i=Error(`Incorrect usage of "merge". Current branch (${h.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!h.records.branches.has(r)){let i=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(p===void 0||!p){let i=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(g===p){let i=Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(a&&h.records.commits.has(a)){let i=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${a} ${n} ${c?.join(" ")}`,token:`merge ${r} ${a} ${n} ${c?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${n} ${c?.join(" ")}`]},i}let y=o?o:"",f={id:a||`${h.records.seq}-${ae()}`,message:`merged branch ${r} into ${h.records.currBranch}`,seq:h.records.seq++,parents:h.records.head==null?[]:[h.records.head.id,y],branch:h.records.currBranch,type:k.MERGE,customType:n,customId:a?!0:!1,tags:c??[]};h.records.head=f,h.records.commits.set(f.id,f),h.records.branches.set(h.records.currBranch,f.id),l.debug(h.records.branches),l.debug("in mergeBranch")},"merge"),Pe=t(function(e){let{id:r,targetId:a,tags:n,parent:c}=e;l.debug("Entering cherryPick:",r,a,n);let d=U();if(r=w.sanitizeText(r,d),a=w.sanitizeText(a,d),n=n?.map((g)=>w.sanitizeText(g,d)),c=w.sanitizeText(c,d),!r||!h.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let s=h.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(c&&!(Array.isArray(s.parents)&&s.parents.includes(c)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===k.MERGE&&!c)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!h.records.commits.has(a)){if(o===h.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=h.records.branches.get(h.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${h.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let p=h.records.commits.get(g);if(p===void 0||!p){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${h.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let y={id:h.records.seq+"-"+ae(),message:`cherry-picked ${s?.message} into ${h.records.currBranch}`,seq:h.records.seq++,parents:h.records.head==null?[]:[h.records.head.id,s.id],branch:h.records.currBranch,type:k.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===k.MERGE?`|parent:${c}`:""}`]};h.records.head=y,h.records.commits.set(y.id,y),h.records.branches.set(h.records.currBranch,y.id),l.debug(h.records.branches),l.debug("in cherryPick")}},"cherryPick"),fe=t(function(e){if(e=w.sanitizeText(e,U()),!h.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{h.records.currBranch=e;let r=h.records.branches.get(h.records.currBranch);if(r===void 0||!r)h.records.head=null;else h.records.head=h.records.commits.get(r)??null}},"checkout");function ce(e,r,a){let n=e.indexOf(r);if(n===-1)e.push(a);else e.splice(n,1,a)}t(ce,"upsert");function de(e){let r=e.reduce((c,d)=>{if(c.seq>d.seq)return c;return d},e[0]),a="";e.forEach(function(c){if(c===r)a+="\t*";else a+="\t|"});let n=[a,r.id,r.seq];for(let c in h.records.branches)if(h.records.branches.get(c)===r.id)n.push(c);if(l.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let c=h.records.commits.get(r.parents[0]);if(ce(e,r,c),r.parents[1])e.push(h.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let c=h.records.commits.get(r.parents[0]);ce(e,r,c)}e=ge(e,(c)=>c.id),de(e)}t(de,"prettyPrintCommitHistory");var Re=t(function(){l.debug(h.records.commits);let e=$e()[0];de([e])},"prettyPrint"),Oe=t(function(){h.reset(),F()},"clear"),Ie=t(function(){return[...h.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),_e=t(function(){return h.records.branches},"getBranches"),Ge=t(function(){return h.records.commits},"getCommits"),$e=t(function(){let e=[...h.records.commits.values()];return e.forEach(function(r){l.debug(r.id)}),e.sort((r,a)=>r.seq-a.seq),e},"getCommitsArray"),De=t(function(){return h.records.currBranch},"getCurrentBranch"),We=t(function(){return h.records.direction},"getDirection"),qe=t(function(){return h.records.head},"getHead"),pe={commitType:k,getConfig:U,setDirection:Ce,setOptions:ve,getOptions:Ee,commit:Te,branch:Le,merge:Me,cherryPick:Pe,checkout:fe,prettyPrint:Re,clear:Oe,getBranchesAsObjArray:Ie,getBranches:_e,getCommits:Ge,getCommitsArray:$e,getCurrentBranch:De,getDirection:We,getHead:qe,setAccTitle:O,getAccTitle:G,getAccDescription:j,setAccDescription:z,setDiagramTitle:q,getDiagramTitle:H},Ae=t((e,r)=>{if(xe(e,r),e.dir)r.setDirection(e.dir);for(let a of e.statements)He(a,r)},"populate"),He=t((e,r)=>{let n={Commit:t((c)=>r.commit(Se(c)),"Commit"),Branch:t((c)=>r.branch(Ne(c)),"Branch"),Merge:t((c)=>r.merge(Fe(c)),"Merge"),Checkout:t((c)=>r.checkout(ze(c)),"Checkout"),CherryPicking:t((c)=>r.cherryPick(Ye(c)),"CherryPicking")}[e.$type];if(n)n(e);else l.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Se=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?k[e.type]:k.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ne=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),Fe=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?k[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),ze=t((e)=>e.branch,"parseCheckout"),Ye=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await je("gitGraph",e);l.debug(r),Ae(r,pe)},"parse")},A=10,S=40,I=4,D=2,N=8,oe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),ie=12,he=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),K=t((e,r,a=!1)=>{if(a&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),M=new Map,P=new Map,te=30,J=new Map,re=[],W=0,u="LR",Ve=t(()=>{M.clear(),P.clear(),J.clear(),W=0,re=[],u="LR"},"clear"),ye=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((n)=>{let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}),r},"drawText"),be=t((e)=>{let r,a,n;if(u==="BT")a=t((c,d)=>c<=d,"comparisonFunc"),n=1/0;else a=t((c,d)=>c>=d,"comparisonFunc"),n=0;return e.forEach((c)=>{let d=u==="TB"||u=="BT"?P.get(c)?.y:P.get(c)?.x;if(d!==void 0&&a(d,n))r=c,n=d}),r},"findClosestParent"),Ze=t((e)=>{let r="",a=1/0;return e.forEach((n)=>{let c=P.get(n).y;if(c<=a)r=n,a=c}),r||void 0},"findClosestParentBT"),Xe=t((e,r,a)=>{let n=a,c=a,d=[];e.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)n=Qe(o),c=Math.max(n,c);else d.push(o);et(o,n)}),n=c,d.forEach((s)=>{tt(s,n,a)}),e.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let g=Ze(o.parents);if(n=P.get(g).y-S,n<=c)c=n;let p=M.get(o.branch).pos,y=n-A;P.set(o.id,{x:p,y})}})},"setParallelBTPos"),Je=t((e)=>{let r=be(e.parents.filter((n)=>n!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let a=P.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return a},"findClosestParentPos"),Qe=t((e)=>Je(e)+S,"calculateCommitPosition"),et=t((e,r)=>{let a=M.get(e.branch);if(!a)throw Error(`Branch not found for commit ${e.id}`);let n=a.pos,c=r+A;return P.set(e.id,{x:n,y:c}),{x:n,y:c}},"setCommitPosition"),tt=t((e,r,a)=>{let n=M.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let c=r+a,d=n.pos;P.set(e.id,{x:d,y:c})},"setRootPosition"),rt=t((e,r,a,n,c,d)=>{let{theme:s}=m(),o=oe.has(s??""),g=he.has(s??""),p=Ue.has(s??"");if(d===k.HIGHLIGHT)e.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${K(c,N,g)} ${n}-outer`),e.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${K(c,N,g)} ${n}-inner`);else if(d===k.CHERRY_PICK)e.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",p?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`);else{let y=e.append("circle");if(y.attr("cx",a.x),y.attr("cy",a.y),y.attr("r",o?7:10),y.attr("class",`commit ${r.id} commit${K(c,N,g)}`),d===k.MERGE){let f=e.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${n} ${r.id} commit${K(c,N,g)}`)}if(d===k.REVERSE){let f=e.append("path"),i=o?4:5;f.attr("d",`M ${a.x-i},${a.y-i}L${a.x+i},${a.y+i}M${a.x-i},${a.y+i}L${a.x+i},${a.y-i}`).attr("class",`commit ${n} ${r.id} commit${K(c,N,g)}`)}}},"drawCommitBullet"),at=t((e,r,a,n,c)=>{if(r.type!==k.CHERRY_PICK&&(r.customId&&r.type===k.MERGE||r.type!==k.MERGE)&&c.showCommitLabel){let d=e.append("g"),s=d.insert("rect").attr("class","commit-label-bkg"),o=d.append("text").attr("x",n).attr("y",a.y+25).attr("class","commit-label").text(r.id),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-D).attr("y",a.y+13.5).attr("width",g.width+2*D).attr("height",g.height+2*D),u==="TB"||u==="BT")s.attr("x",a.x-(g.width+4*I+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*I)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.width/2);if(c.rotateCommitLabel)if(u==="TB"||u==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let p=-7.5-(g.width+10)/25*9.5,y=10+g.width/25*8.5;d.attr("transform","translate("+p+", "+y+") rotate(-45, "+n+", "+a.y+")")}}}},"drawCommitLabel"),ot=t((e,r,a,n)=>{if(r.tags.length>0){let c=0,d=0,s=0,o=[];for(let g of r.tags.reverse()){let p=e.insert("polygon"),y=e.append("circle"),f=e.append("text").attr("y",a.y-16-c).attr("class","tag-label").text(g),i=f.node()?.getBBox();if(!i)throw Error("Tag bbox not found");d=Math.max(d,i.width),s=Math.max(s,i.height),f.attr("x",a.posWithOffset-i.width/2),o.push({tag:f,hole:y,rect:p,yOffset:c}),c+=20}for(let{tag:g,hole:p,rect:y,yOffset:f}of o){let i=s/2,B=a.y-19.2-f;if(y.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${n-d/2-I/2},${B+D}
|
|
3
3
|
${n-d/2-I/2},${B-D}
|
|
4
4
|
${a.posWithOffset-d/2-I},${B-i-D}
|
|
@@ -10,17 +10,17 @@ import{Ui}from"./index-gqsnyh8k.js";import{xe}from"./index-ver116ed.js";import{t
|
|
|
10
10
|
${a.x+A},${x-i-2}
|
|
11
11
|
${a.x+A+d+4},${x-i-2}
|
|
12
12
|
${a.x+A+d+4},${x+i+2}
|
|
13
|
-
${a.x+A},${x+i+2}`).attr("transform","translate(12,12) rotate(45, "+a.x+","+n+")"),p.attr("cx",a.x+I/2).attr("cy",x).attr("transform","translate(12,12) rotate(45, "+a.x+","+n+")"),g.attr("x",a.x+5).attr("y",x+3).attr("transform","translate(14,14) rotate(45, "+a.x+","+n+")")}}}},"drawCommitTags"),st=t((e)=>{switch(e.customType??e.type){case k.NORMAL:return"commit-normal";case k.REVERSE:return"commit-reverse";case k.HIGHLIGHT:return"commit-highlight";case k.MERGE:return"commit-merge";case k.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=t((e,r,a,n)=>{let c={x:0,y:0};if(e.parents.length>0){let d=
|
|
14
|
-
`,"id:",r,a);let c=n.db;if(!c.getConfig){l.error("getConfig method is not available on db");return}let d=c.getConfig(),s=d.rotateCommitLabel??!1;J=c.getCommits();let o=c.getBranchesAsObjArray();u=c.getDirection();let g=b(`[id="${r}"]`),{look:p,theme:y,themeVariables:f}=m(),{useGradient:i,gradientStart:B,gradientStop:x,filterColor:C}=f;if(i){let T=g.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");T.append("stop").attr("offset","0%").attr("stop-color",B).attr("stop-opacity",1),T.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}if(p==="neo"&&oe.has(y??""))g.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",C);let v=0;if(o.forEach((T,se)=>{let X=
|
|
13
|
+
${a.x+A},${x+i+2}`).attr("transform","translate(12,12) rotate(45, "+a.x+","+n+")"),p.attr("cx",a.x+I/2).attr("cy",x).attr("transform","translate(12,12) rotate(45, "+a.x+","+n+")"),g.attr("x",a.x+5).attr("y",x+3).attr("transform","translate(14,14) rotate(45, "+a.x+","+n+")")}}}},"drawCommitTags"),st=t((e)=>{switch(e.customType??e.type){case k.NORMAL:return"commit-normal";case k.REVERSE:return"commit-reverse";case k.HIGHLIGHT:return"commit-highlight";case k.MERGE:return"commit-merge";case k.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),nt=t((e,r,a,n)=>{let c={x:0,y:0};if(e.parents.length>0){let d=be(e.parents);if(d){let s=n.get(d)??c;if(r==="TB")return s.y+S;else if(r==="BT")return(n.get(e.id)??c).y-S;else return s.x+S}}else if(r==="TB")return te;else if(r==="BT")return(n.get(e.id)??c).y-S;else return 0;return 0},"calculatePosition"),ct=t((e,r,a)=>{let n=u==="BT"&&a?r:r+A,c=M.get(e.branch)?.pos,d=u==="TB"||u==="BT"?M.get(e.branch)?.pos:n;if(d===void 0||c===void 0)throw Error(`Position were undefined for commit ${e.id}`);let s=oe.has(m().theme??""),o=u==="TB"||u==="BT"?n:c+(s?ie/2+1:-2);return{x:d,y:o,posWithOffset:n}},"getCommitPosition"),me=t((e,r,a,n)=>{let c=e.append("g").attr("class","commit-bullets"),d=e.append("g").attr("class","commit-labels"),s=u==="TB"||u==="BT"?te:0,o=[...r.keys()],g=n.parallelCommits??!1,p=t((f,i)=>{let B=r.get(f)?.seq,x=r.get(i)?.seq;return B!==void 0&&x!==void 0?B-x:0},"sortKeys"),y=o.sort(p);if(u==="BT"){if(g)Xe(y,r,s);y=y.reverse()}y.forEach((f)=>{let i=r.get(f);if(!i)throw Error(`Commit not found for key ${f}`);if(g)s=nt(i,u,s,P);let B=ct(i,s,g);if(a){let x=st(i),C=i.customType??i.type,v=M.get(i.branch)?.index??0;rt(c,i,B,x,v,C),at(d,i,B,s,n),ot(d,i,B,s)}if(u==="TB"||u==="BT")P.set(i.id,{x:B.x,y:B.posWithOffset});else P.set(i.id,{x:B.posWithOffset,y:B.y});if(s=u==="BT"&&g?s+S:s+S+A,s>W)W=s})},"drawCommits"),it=t((e,r,a,n,c)=>{let s=(u==="TB"||u==="BT"?a.x<n.x:a.y<n.y)?r.branch:e.branch,o=t((p)=>p.branch===s,"isOnBranchToGetCurve"),g=t((p)=>p.seq>e.seq&&p.seq<r.seq,"isBetweenCommits");return[...c.values()].some((p)=>g(p)&&o(p))},"shouldRerouteArrow"),Q=t((e,r,a=0)=>{let n=e+Math.abs(e-r)/2;if(a>5)return n;if(re.every((s)=>Math.abs(s-n)>=10))return re.push(n),n;let d=Math.abs(e-r);return Q(e,r-d/5,a+1)},"findLane"),dt=t((e,r,a,n)=>{let{theme:c}=m(),d=he.has(c??""),s=P.get(r.id),o=P.get(a.id);if(s===void 0||o===void 0)throw Error(`Commit positions not found for commits ${r.id} and ${a.id}`);let g=it(r,a,s,o,n),p="",y="",f=0,i=0,B=M.get(a.branch)?.index;if(a.type===k.MERGE&&r.id!==a.parents[0])B=M.get(r.branch)?.index;let x;if(g){p="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",f=10,i=10;let C=s.y<o.y?Q(s.y,o.y):Q(o.y,s.y),v=s.x<o.x?Q(s.x,o.x):Q(o.x,s.x);if(u==="TB")if(s.x<o.x)x=`M ${s.x} ${s.y} L ${v-f} ${s.y} ${y} ${v} ${s.y+i} L ${v} ${o.y-f} ${p} ${v+i} ${o.y} L ${o.x} ${o.y}`;else B=M.get(r.branch)?.index,x=`M ${s.x} ${s.y} L ${v+f} ${s.y} ${p} ${v} ${s.y+i} L ${v} ${o.y-f} ${y} ${v-i} ${o.y} L ${o.x} ${o.y}`;else if(u==="BT")if(s.x<o.x)x=`M ${s.x} ${s.y} L ${v-f} ${s.y} ${p} ${v} ${s.y-i} L ${v} ${o.y+f} ${y} ${v+i} ${o.y} L ${o.x} ${o.y}`;else B=M.get(r.branch)?.index,x=`M ${s.x} ${s.y} L ${v+f} ${s.y} ${y} ${v} ${s.y-i} L ${v} ${o.y+f} ${p} ${v-i} ${o.y} L ${o.x} ${o.y}`;else if(s.y<o.y)x=`M ${s.x} ${s.y} L ${s.x} ${C-f} ${p} ${s.x+i} ${C} L ${o.x-f} ${C} ${y} ${o.x} ${C+i} L ${o.x} ${o.y}`;else B=M.get(r.branch)?.index,x=`M ${s.x} ${s.y} L ${s.x} ${C+f} ${y} ${s.x+i} ${C} L ${o.x-f} ${C} ${p} ${o.x} ${C-i} L ${o.x} ${o.y}`}else if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,i=20,u==="TB"){if(s.x<o.x)if(a.type===k.MERGE&&r.id!==a.parents[0])x=`M ${s.x} ${s.y} L ${s.x} ${o.y-f} ${p} ${s.x+i} ${o.y} L ${o.x} ${o.y}`;else x=`M ${s.x} ${s.y} L ${o.x-f} ${s.y} ${y} ${o.x} ${s.y+i} L ${o.x} ${o.y}`;if(s.x>o.x)if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,i=20,a.type===k.MERGE&&r.id!==a.parents[0])x=`M ${s.x} ${s.y} L ${s.x} ${o.y-f} ${y} ${s.x-i} ${o.y} L ${o.x} ${o.y}`;else x=`M ${s.x} ${s.y} L ${o.x+f} ${s.y} ${p} ${o.x} ${s.y+i} L ${o.x} ${o.y}`;if(s.x===o.x)x=`M ${s.x} ${s.y} L ${o.x} ${o.y}`}else if(u==="BT"){if(s.x<o.x)if(a.type===k.MERGE&&r.id!==a.parents[0])x=`M ${s.x} ${s.y} L ${s.x} ${o.y+f} ${y} ${s.x+i} ${o.y} L ${o.x} ${o.y}`;else x=`M ${s.x} ${s.y} L ${o.x-f} ${s.y} ${p} ${o.x} ${s.y-i} L ${o.x} ${o.y}`;if(s.x>o.x)if(p="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",f=20,i=20,a.type===k.MERGE&&r.id!==a.parents[0])x=`M ${s.x} ${s.y} L ${s.x} ${o.y+f} ${p} ${s.x-i} ${o.y} L ${o.x} ${o.y}`;else x=`M ${s.x} ${s.y} L ${o.x+f} ${s.y} ${y} ${o.x} ${s.y-i} L ${o.x} ${o.y}`;if(s.x===o.x)x=`M ${s.x} ${s.y} L ${o.x} ${o.y}`}else{if(s.y<o.y)if(a.type===k.MERGE&&r.id!==a.parents[0])x=`M ${s.x} ${s.y} L ${o.x-f} ${s.y} ${y} ${o.x} ${s.y+i} L ${o.x} ${o.y}`;else x=`M ${s.x} ${s.y} L ${s.x} ${o.y-f} ${p} ${s.x+i} ${o.y} L ${o.x} ${o.y}`;if(s.y>o.y)if(a.type===k.MERGE&&r.id!==a.parents[0])x=`M ${s.x} ${s.y} L ${o.x-f} ${s.y} ${p} ${o.x} ${s.y-i} L ${o.x} ${o.y}`;else x=`M ${s.x} ${s.y} L ${s.x} ${o.y+f} ${y} ${s.x+i} ${o.y} L ${o.x} ${o.y}`;if(s.y===o.y)x=`M ${s.x} ${s.y} L ${o.x} ${o.y}`}if(x===void 0)throw Error("Line definition not found");e.append("path").attr("d",x).attr("class","arrow arrow"+K(B,N,d))},"drawArrow"),ht=t((e,r)=>{let a=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach((n)=>{let c=r.get(n);if(c.parents&&c.parents.length>0)c.parents.forEach((d)=>{dt(a,r.get(d),c,r)})})},"drawArrows"),lt=t((e,r,a,n)=>{let{look:c,theme:d,themeVariables:s}=m(),{dropShadow:o,THEME_COLOR_LIMIT:g}=s,p=oe.has(d??""),y=he.has(d??""),f=e.append("g");r.forEach((i,B)=>{let x=K(B,p?g:N,y),C=M.get(i.name)?.pos;if(C===void 0)throw Error(`Position not found for branch ${i.name}`);let v=u==="TB"||u==="BT"?C:p?C+ie/2+1:C-2,T=f.append("line");if(T.attr("x1",0),T.attr("y1",v),T.attr("x2",W),T.attr("y2",v),T.attr("class","branch branch"+x),u==="TB")T.attr("y1",te),T.attr("x1",C),T.attr("y2",W),T.attr("x2",C);else if(u==="BT")T.attr("y1",W),T.attr("x1",C),T.attr("y2",te),T.attr("x2",C);re.push(v);let se=i.name,X=ye(se),R=f.insert("rect"),_=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+x);_.node().appendChild(X);let L=X.getBBox(),le=p?0:4,ee=p?16:0,Z=p?ie:0;if(c==="neo")R.attr("data-look","neo");if(R.attr("class","branchLabelBkg label"+x).attr("style",c==="neo"?`filter:${p?`url(#${n}-drop-shadow)`:o}`:"").attr("rx",le).attr("ry",le).attr("x",-L.width-4-(a.rotateCommitLabel===!0?30:0)).attr("y",-L.height/2+10).attr("width",L.width+18+ee).attr("height",L.height+4+Z),_.attr("transform","translate("+(-L.width-14-(a.rotateCommitLabel===!0?30:0)+ee/2)+", "+(v-L.height/2-2)+")"),u==="TB"){if(R.attr("x",C-L.width/2-10).attr("y",0),_.attr("transform","translate("+(C-L.width/2-5)+", 0)"),p)R.attr("transform",`translate(${-ee/2-3}, ${-Z-10})`),_.attr("transform","translate("+(C-L.width/2-5)+", "+(-Z*2+7)+")")}else if(u==="BT"){if(R.attr("x",C-L.width/2-10).attr("y",W),_.attr("transform","translate("+(C-L.width/2-5)+", "+W+")"),p)R.attr("transform",`translate(${-ee/2-3}, ${Z+10})`),_.attr("transform","translate("+(C-L.width/2-5)+", "+(W+Z*2+4)+")")}else R.attr("transform","translate(-19, "+(v-12-Z/2)+")")})},"drawBranches"),mt=t(function(e,r,a,n,c){return M.set(e,{pos:r,index:a}),r+=50+(c?40:0)+(u==="TB"||u==="BT"?n.width/2:0),r},"setBranchPosition"),gt=t(function(e,r,a,n){Ve(),l.debug("in gitgraph renderer",e+`
|
|
14
|
+
`,"id:",r,a);let c=n.db;if(!c.getConfig){l.error("getConfig method is not available on db");return}let d=c.getConfig(),s=d.rotateCommitLabel??!1;J=c.getCommits();let o=c.getBranchesAsObjArray();u=c.getDirection();let g=b(`[id="${r}"]`),{look:p,theme:y,themeVariables:f}=m(),{useGradient:i,gradientStart:B,gradientStop:x,filterColor:C}=f;if(i){let T=g.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");T.append("stop").attr("offset","0%").attr("stop-color",B).attr("stop-opacity",1),T.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}if(p==="neo"&&oe.has(y??""))g.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",C);let v=0;if(o.forEach((T,se)=>{let X=ye(T.name),R=g.append("g"),ne=R.insert("g").attr("class","branchLabel"),_=ne.insert("g").attr("class","label branch-label");_.node()?.appendChild(X);let L=X.getBBox();v=mt(T.name,v,se,L,s),_.remove(),ne.remove(),R.remove()}),me(g,J,!1,d),d.showBranches)lt(g,o,d,r);ht(g,J),me(g,J,!0,d),V.insertTitle(g,"gitTitleText",d.titleTopMargin??0,c.getDiagramTitle()),kc(void 0,g,d.diagramPadding,d.useMaxWidth)},"draw"),ft={draw:gt},we=8,Be=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),$t=new Set(["redux-color","redux-dark-color"]),pt=new Set(["neo","neo-dark"]),yt=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),xt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),ut=t((e)=>{let{svgId:r}=e,a="";if(e.useGradient&&r)for(let n=0;n<e.THEME_COLOR_LIMIT;n++)a+=`
|
|
15
15
|
.label${n} { fill: ${e.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
|
-
`;return a},"genGitGraphGradient"),bt=t((e)=>{let r=E(),{theme:a,themeVariables:n}=r,{borderColorArray:c}=n,d=
|
|
16
|
+
`;return a},"genGitGraphGradient"),bt=t((e)=>{let r=E(),{theme:a,themeVariables:n}=r,{borderColorArray:c}=n,d=Be.has(a);if(pt.has(a)){let s="";for(let o=0;o<e.THEME_COLOR_LIMIT;o++)if(o===0)s+=`
|
|
17
17
|
.branch-label${o} { fill: ${e.nodeBorder};}
|
|
18
18
|
.commit${o} { stroke: ${e.nodeBorder}; }
|
|
19
19
|
.commit-highlight${o} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
20
20
|
.arrow${o} { stroke: ${e.nodeBorder}; }
|
|
21
21
|
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
22
22
|
.commit-cherry-pick${o} { stroke: ${e.nodeBorder}; }
|
|
23
|
-
${ut(e)}`;else{let g=o%
|
|
23
|
+
${ut(e)}`;else{let g=o%we;s+=`
|
|
24
24
|
.branch-label${o} { fill: ${e["gitBranchLabel"+g]}; }
|
|
25
25
|
.commit${o} { stroke: ${e["git"+g]}; fill: ${e["git"+g]}; }
|
|
26
26
|
.commit-highlight${o} { stroke: ${e["gitInv"+g]}; fill: ${e["gitInv"+g]}; }
|
|
@@ -46,7 +46,7 @@ import{Ui}from"./index-gqsnyh8k.js";import{xe}from"./index-ver116ed.js";import{t
|
|
|
46
46
|
.commit-highlight${o} { stroke: ${c[g]}; fill: ${c[g]}; }
|
|
47
47
|
.label${o} { fill: ${yt.has(a)?e.mainBkg:c[g]}; stroke: ${c[g]}; stroke-width: ${e.strokeWidth}; }
|
|
48
48
|
.arrow${o} { stroke: ${c[g]}; }
|
|
49
|
-
`}return s}},"genColor"),wt=t((e)=>`${Array.from({length:e.THEME_COLOR_LIMIT},(r,a)=>a).map((r)=>{let a=r%
|
|
49
|
+
`}return s}},"genColor"),wt=t((e)=>`${Array.from({length:e.THEME_COLOR_LIMIT},(r,a)=>a).map((r)=>{let a=r%we;return`
|
|
50
50
|
.branch-label${r} { fill: ${e["gitBranchLabel"+a]}; }
|
|
51
51
|
.commit${r} { stroke: ${e["git"+a]}; fill: ${e["git"+a]}; }
|
|
52
52
|
.commit-highlight${r} { stroke: ${e["gitInv"+a]}; fill: ${e["gitInv"+a]}; }
|
|
@@ -94,7 +94,7 @@ import{Ui}from"./index-gqsnyh8k.js";import{xe}from"./index-ver116ed.js";import{t
|
|
|
94
94
|
|
|
95
95
|
.arrow {
|
|
96
96
|
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
-
stroke-width: ${
|
|
97
|
+
stroke-width: ${Be.has(a)?e.strokeWidth:8};
|
|
98
98
|
stroke-linecap: round;
|
|
99
99
|
fill: none
|
|
100
100
|
}
|
|
@@ -103,4 +103,4 @@ import{Ui}from"./index-gqsnyh8k.js";import{xe}from"./index-ver116ed.js";import{t
|
|
|
103
103
|
font-size: 18px;
|
|
104
104
|
fill: ${e.textColor};
|
|
105
105
|
}
|
|
106
|
-
`},"getStyles"),kt=Bt,Ot={parser:Ke,db:
|
|
106
|
+
`},"getStyles"),kt=Bt,Ot={parser:Ke,db:pe,renderer:ft,styles:kt};export{Ot as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{uA}from"./index-db6s66jr.js";import"./index-yrwm437g.js";import"./index-3j2he86h.js";import"./index-a3bpmw2r.js";import"./index-92h38pwg.js";export{uA as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{qn}from"./index-sg65xdey.js";import"./index-a3bpmw2r.js";import"./index-10vzyga1.js";export{qn as default};
|