cli-jaw 2.17.73 → 2.17.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +10 -10
- package/README.ko.md +10 -10
- package/README.md +10 -10
- package/README.zh-CN.md +10 -10
- package/dist/server.js +33 -1
- package/dist/server.js.map +1 -1
- package/dist/src/agent/claude-runtime-run.js +9 -2
- package/dist/src/agent/claude-runtime-run.js.map +1 -1
- package/dist/src/agent/lifecycle-handler.js +5 -3
- package/dist/src/agent/lifecycle-handler.js.map +1 -1
- package/dist/src/agent/runtime/claude-sdk-events.js +18 -5
- package/dist/src/agent/runtime/claude-sdk-events.js.map +1 -1
- package/dist/src/agent/runtime/claude-sdk-messages.js +10 -4
- package/dist/src/agent/runtime/claude-sdk-messages.js.map +1 -1
- package/dist/src/agent/runtime/claude-sdk-session.js +8 -0
- package/dist/src/agent/runtime/claude-sdk-session.js.map +1 -1
- package/dist/src/agent/runtime/claude-sdk-version.js +1 -1
- package/dist/src/agent/runtime/codex-projection.js +9 -1
- package/dist/src/agent/runtime/codex-projection.js.map +1 -1
- package/dist/src/agent/runtime/print-activity.js +5 -8
- package/dist/src/agent/runtime/print-activity.js.map +1 -1
- package/dist/src/agent/runtime/projection.js +9 -6
- package/dist/src/agent/runtime/projection.js.map +1 -1
- package/dist/src/agent/spawn/queue.js +3 -0
- package/dist/src/agent/spawn/queue.js.map +1 -1
- package/dist/src/agent/spawn.js +4 -2
- package/dist/src/agent/spawn.js.map +1 -1
- package/dist/src/cli/claude-models.js +2 -0
- package/dist/src/cli/claude-models.js.map +1 -1
- package/dist/src/cli/handlers-runtime.js +1 -0
- package/dist/src/cli/handlers-runtime.js.map +1 -1
- package/dist/src/code-mode/manager.js +75 -18
- package/dist/src/code-mode/manager.js.map +1 -1
- package/dist/src/code-mode/normalize.js +222 -12
- package/dist/src/code-mode/normalize.js.map +1 -1
- package/dist/src/code-mode/session.js +9 -4
- package/dist/src/code-mode/session.js.map +1 -1
- package/dist/src/code-mode/store.js +57 -8
- package/dist/src/code-mode/store.js.map +1 -1
- package/dist/src/core/config.js +3 -0
- package/dist/src/core/config.js.map +1 -1
- package/dist/src/manager/routes/embedded-browser.js +317 -50
- package/dist/src/manager/routes/embedded-browser.js.map +1 -1
- package/dist/src/memory/heartbeat-mention-watch.js +15 -1
- package/dist/src/memory/heartbeat-mention-watch.js.map +1 -1
- package/dist/src/memory/heartbeat.js +82 -17
- package/dist/src/memory/heartbeat.js.map +1 -1
- package/dist/src/messaging/silent-reply.js +20 -0
- package/dist/src/messaging/silent-reply.js.map +1 -0
- package/dist/src/messaging/slack-pre-send-hook.js +192 -0
- package/dist/src/messaging/slack-pre-send-hook.js.map +1 -0
- package/dist/src/orchestrator/gateway.js +5 -4
- package/dist/src/orchestrator/gateway.js.map +1 -1
- package/dist/src/orchestrator/pipeline.js +5 -0
- package/dist/src/orchestrator/pipeline.js.map +1 -1
- package/dist/src/routes/code-native.js +39 -16
- package/dist/src/routes/code-native.js.map +1 -1
- package/dist/src/routes/messaging.js +38 -4
- package/dist/src/routes/messaging.js.map +1 -1
- package/dist/src/shared/markdown-table.js +99 -0
- package/dist/src/shared/markdown-table.js.map +1 -0
- package/dist/src/slack/action-runtime.js +74 -5
- package/dist/src/slack/action-runtime.js.map +1 -1
- package/dist/src/slack/action-store.js +65 -1
- package/dist/src/slack/action-store.js.map +1 -1
- package/dist/src/slack/actions-message.js +3 -1
- package/dist/src/slack/actions-message.js.map +1 -1
- package/dist/src/slack/bot.js +72 -10
- package/dist/src/slack/bot.js.map +1 -1
- package/dist/src/slack/event-tap.js +97 -0
- package/dist/src/slack/event-tap.js.map +1 -0
- package/dist/src/slack/failure-routing.js +55 -0
- package/dist/src/slack/failure-routing.js.map +1 -0
- package/dist/src/slack/failure-store.js +22 -0
- package/dist/src/slack/failure-store.js.map +1 -0
- package/dist/src/slack/forwarder.js +14 -0
- package/dist/src/slack/forwarder.js.map +1 -1
- package/dist/src/slack/ingress.js +1 -0
- package/dist/src/slack/ingress.js.map +1 -1
- package/dist/src/slack/progress-lifecycle.js +4 -0
- package/dist/src/slack/progress-lifecycle.js.map +1 -1
- package/dist/src/slack/progress.js +15 -0
- package/dist/src/slack/progress.js.map +1 -1
- package/dist/src/slack/tool-context.js +63 -0
- package/dist/src/slack/tool-context.js.map +1 -1
- package/dist/src/slack/workflow.js +7 -3
- package/dist/src/slack/workflow.js.map +1 -1
- package/dist/src/trace/redact.js +1 -1
- package/dist/src/trace/redact.js.map +1 -1
- package/package.json +2 -3
- package/public/css/markdown.css +17 -1
- package/public/dist/.vite/manifest.json +1389 -1378
- package/public/dist/assets/Activity-_mROd5PB.js +1 -0
- package/public/dist/assets/AdvancedExport-BVZC_94z.js +1 -0
- package/public/dist/assets/Agent-Bl8JPzQg.js +1 -0
- package/public/dist/assets/{AsideSelectionFields-DvU5xWAP.js → AsideSelectionFields-Br5O1IGF.js} +1 -1
- package/public/dist/assets/Browser-S8JF5UNK.js +1 -0
- package/public/dist/assets/BrowserPanel-BblnraGJ.js +3 -0
- package/public/dist/assets/ChannelEnablementControl-BoXzEMji.js +85 -0
- package/public/dist/assets/{ChannelSetupEntry-B0b4TdhH.js → ChannelSetupEntry-5ovZkhmE.js} +1 -1
- package/public/dist/assets/ChannelsDiscord-DBRRtuL0.js +1 -0
- package/public/dist/assets/ChannelsSlack-mWMsKekl.js +1 -0
- package/public/dist/assets/ChannelsTelegram-6p1lbx3c.js +1 -0
- package/public/dist/assets/CodeCanvas-Ba7ROkA8.js +3 -0
- package/public/dist/assets/{DashboardMeta-wjEuh9-E.js → DashboardMeta-DbRne9as.js} +1 -1
- package/public/dist/assets/DesignPanel-CeaqySk2.js +2 -0
- package/public/dist/assets/{Developer-B3cDkldo.js → Developer-Bza2nF82.js} +1 -1
- package/public/dist/assets/DiffPanel-wAvVWJ9I.js +3 -0
- package/public/dist/assets/Display-B2Z-lPGo.js +1 -0
- package/public/dist/assets/Display-D3WNkayx.js +1 -0
- package/public/dist/assets/DocPanel-Jq6Ks-W-.js +1 -0
- package/public/dist/assets/{Embedding-D-T92-En.js → Embedding-B7d2-LKQ.js} +1 -1
- package/public/dist/assets/{Employees-Cf4IeF0N.js → Employees-D_ywKQYu.js} +1 -1
- package/public/dist/assets/{FolderPanel-DOLT_syh.js → FolderPanel-CRi8MS5C.js} +3 -3
- package/public/dist/assets/Heartbeat-BmjddZ9I.js +1 -0
- package/public/dist/assets/{InlineWarn-Cq4z28F3.js → InlineWarn-vBHtuiN7.js} +1 -1
- package/public/dist/assets/MarkdownRenderer-BamzcuOK.js +18 -0
- package/public/dist/assets/MarkdownRenderer-CYlCMwtr.js +1 -0
- package/public/dist/assets/Mcp-BvEl62A8.js +4 -0
- package/public/dist/assets/Memory-BZDSveeA.js +1 -0
- package/public/dist/assets/MilkdownWysiwygEditor-BMJcCB5B.js +160 -0
- package/public/dist/assets/ModelProvider-79Zqa21N.js +1 -0
- package/public/dist/assets/Network-CR0UDby3.js +1 -0
- package/public/dist/assets/NotesGraphWorkspace-C1iPvDzX.js +1 -0
- package/public/dist/assets/{PanelLayoutProvider-DRZ4QkBC.js → PanelLayoutProvider-KQn0EFin.js} +1 -1
- package/public/dist/assets/Permissions-C3HpdG9D.js +1 -0
- package/public/dist/assets/Permissions-IIfbAYtc.js +1 -0
- package/public/dist/assets/Profile-Bp2Uo1Gp.js +1 -0
- package/public/dist/assets/{Prompts-BRAgZLNQ.js → Prompts-LW2LqJ8Y.js} +1 -1
- package/public/dist/assets/SpeechKeys-CWXYXkBo.js +1 -0
- package/public/dist/assets/TelegramHub-C8oyn0KM.js +1 -0
- package/public/dist/assets/TerminalPanel-CQjHkHn3.js +16 -0
- package/public/dist/assets/abnfDiagram-VCTEODGH-D0TruaAU.js +1 -0
- package/public/dist/assets/agent-meta-Mkoa-pwP.js +1 -0
- package/public/dist/assets/api-DktmZuf7.js +1 -0
- package/public/dist/assets/{app-BjKzqXCv.css → app-COVWLybB.css} +1 -1
- package/public/dist/assets/app-DdjJ1Rt9.js +59 -0
- package/public/dist/assets/architecture-7GRP2DOG-BwOkVmWy.js +1 -0
- package/public/dist/assets/architectureDiagram-5GKGNRK7-C3bEV5EG.js +36 -0
- package/public/dist/assets/{bgtask-badge-tYRnplEV.js → bgtask-badge-I2LnGkDF.js} +5 -5
- package/public/dist/assets/bgtask-badge-WlheipWK.js +1 -0
- package/public/dist/assets/blockDiagram-I7D4REHJ-DRVJQPQr.js +129 -0
- package/public/dist/assets/{c4Diagram-7LVT6UL2-LEkz5bLc.js → c4Diagram-7LVT6UL2-BTpAk0Oh.js} +8 -8
- package/public/dist/assets/channel-BADgdbiz.js +1 -0
- package/public/dist/assets/chunk-2E4U76K2-DCQ4--ve.js +1 -0
- package/public/dist/assets/chunk-2ZTRR5NV-DQcXEc4G.js +2 -0
- package/public/dist/assets/{chunk-3Z5EZCMW-udVqggne.js → chunk-3Z5EZCMW-DGWuRk8Z.js} +1 -1
- package/public/dist/assets/chunk-4HAMMTFA-DlwZo5aH.js +62 -0
- package/public/dist/assets/{chunk-5V3GS4D5-ecLo0f1p.js → chunk-5V3GS4D5-CeS4BpM4.js} +1 -1
- package/public/dist/assets/{chunk-6AZGARVD-Cou1D2Ji.js → chunk-6AZGARVD-CX6-4vg6.js} +1 -1
- package/public/dist/assets/{chunk-6EIED4P4-DeqPLKcQ.js → chunk-6EIED4P4-BGCUyOFp.js} +1 -1
- package/public/dist/assets/{chunk-6K3QC6MW-Cn9odKk7.js → chunk-6K3QC6MW-DKCbN7g0.js} +1 -1
- package/public/dist/assets/{chunk-6TQVIW2G-IVBzI7O8.js → chunk-6TQVIW2G-B6frloLT.js} +1 -1
- package/public/dist/assets/chunk-747NJXEK-DTfS-BUy.js +2 -0
- package/public/dist/assets/{chunk-75Z2AOVW-BbE6Kwgh.js → chunk-75Z2AOVW-s9GsKoLq.js} +2 -2
- package/public/dist/assets/chunk-CLGD4ZFX-CkbMx7nz.js +1 -0
- package/public/dist/assets/{chunk-DU6HZSFF-zk1cX9hK.js → chunk-DU6HZSFF-Kve-uAsf.js} +31 -31
- package/public/dist/assets/{chunk-F27PBJKO-B30QZPgt.js → chunk-F27PBJKO-Cnx_Y017.js} +1 -1
- package/public/dist/assets/{chunk-FOHPRMQF-CoA4358r.js → chunk-FOHPRMQF-DhwWuAwv.js} +9 -9
- package/public/dist/assets/chunk-GMAD6QVW-CSmc-wky.js +13 -0
- package/public/dist/assets/chunk-GVQU2GXP-CYwps-Ca.js +1 -0
- package/public/dist/assets/{chunk-I5DQTOEV-BYKVfZyL.js → chunk-I5DQTOEV-BgzlyjId.js} +1 -1
- package/public/dist/assets/{chunk-ICYGCRZG-hvV-gq8M.js → chunk-ICYGCRZG-DdylDSek.js} +1 -1
- package/public/dist/assets/{chunk-IH6LHLGP-DTNFuJiP.js → chunk-IH6LHLGP-CnJ_zIDM.js} +1 -1
- package/public/dist/assets/{chunk-ZLD2IHE6-IhoyCIEM.js → chunk-IMKFNOWR-B_O5cXo1.js} +6 -6
- package/public/dist/assets/{chunk-KI3K4JFJ-B4ZziqcX.js → chunk-KI3K4JFJ-AR6SSfUs.js} +1 -1
- package/public/dist/assets/chunk-L3NEJ4N5-C-UQbl_D.js +1 -0
- package/public/dist/assets/{chunk-LNGE3PJU-5-SxdO55.js → chunk-LNGE3PJU-DRjopGY8.js} +4 -4
- package/public/dist/assets/chunk-OSK3NFVY-Icg4EkJ4.js +10 -0
- package/public/dist/assets/chunk-OUJLGHUK-7bP2ipuY.js +2 -0
- package/public/dist/assets/{chunk-P2QGCYS3-8ni2cD3V.js → chunk-P2QGCYS3-rLsFrWD2.js} +1 -1
- package/public/dist/assets/chunk-POPQ4Y6H-pvS-jwKT.js +1 -0
- package/public/dist/assets/chunk-PWAF6VOD-NCpbd1-V.js +1 -0
- package/public/dist/assets/chunk-SHT3W25Y-BzgLgk7J.js +168 -0
- package/public/dist/assets/{chunk-SVP7TREG-Chm-3YCY.js → chunk-SVP7TREG-CTaIV4CJ.js} +4 -4
- package/public/dist/assets/{chunk-HLEWEB6X-CrFaTtiN.js → chunk-TICWLB2K-BgBwrDZH.js} +54 -54
- package/public/dist/assets/{chunk-LQGUR6SS-xn-VsXhF.js → chunk-TLUHSLCS-u75X_M3m.js} +1 -1
- package/public/dist/assets/{chunk-UY3FDG6J-BVPsKpVN.js → chunk-UY3FDG6J-ypI7r5Zu.js} +1 -1
- package/public/dist/assets/chunk-X3CZISLH-NOpCnvgE.js +1 -0
- package/public/dist/assets/{chunk-XHIXRSVI-CQipzMEr.js → chunk-XHIXRSVI-DMHeA0L3.js} +1 -1
- package/public/dist/assets/{chunk-XXDRQBXY-Uq2wLB4L.js → chunk-XXDRQBXY-B2HRxRu1.js} +1 -1
- package/public/dist/assets/classDiagram-ZZMXUADV-DS57CaUF.js +1 -0
- package/public/dist/assets/classDiagram-v2-VYDZK3BY-DS57CaUF.js +1 -0
- package/public/dist/assets/client-Btezu8ky.js +9 -0
- package/public/dist/assets/{clike-D_6L3tnO.js → clike-xvONpD0Z.js} +1 -1
- package/public/dist/assets/constants-CTqPY2lB.js +1 -0
- package/public/dist/assets/cose-bilkent-JH36ORCC-DK8lEzSx.js +1 -0
- package/public/dist/assets/crystal-Bl6YKCG_.js +1 -0
- package/public/dist/assets/cynefin-OW5HDTMX-ChJg9RfW.js +1 -0
- package/public/dist/assets/cynefinDiagram-5FMLGOSQ-CfCxGNBe.js +62 -0
- package/public/dist/assets/cytoscape.esm-D6khvY9F.js +321 -0
- package/public/dist/assets/dagre-BN2sb7bz.js +1 -0
- package/public/dist/assets/dagre-GXQ25YYZ-D7ldzbwc.js +4 -0
- package/public/dist/assets/diagram-S7CK7UJ4-BS7z1jhb.js +30 -0
- package/public/dist/assets/diagram-UQ7AKVKN-ClWq_iyn.js +41 -0
- package/public/dist/assets/diagram-VSXAHHWV-CqQIYz-g.js +3 -0
- package/public/dist/assets/diagram-VX7I27RA-B_TWoS1x.js +24 -0
- package/public/dist/assets/{diagram-Z3DM3KII-HOm2nOM1.js → diagram-Z3DM3KII-C-9G6cjK.js} +1 -1
- package/public/dist/assets/{dist-lsEiXLAb.js → dist-5eQbxmQw.js} +1 -1
- package/public/dist/assets/{dist-Bp7q5-Qc.js → dist-BB-jv8rL.js} +9 -9
- package/public/dist/assets/dist-BI6iarO4.js +1 -0
- package/public/dist/assets/{dist-kYfyPZP9.js → dist-BJYSqj-d.js} +1 -1
- package/public/dist/assets/{dist-CHO5CBK1.js → dist-BTHqiFV5.js} +1 -1
- package/public/dist/assets/dist-BTJL3ijr.js +1 -0
- package/public/dist/assets/dist-BTdw__Ac.js +1 -0
- package/public/dist/assets/dist-BabEweR0.js +1 -0
- package/public/dist/assets/{dist-DJGc9cyj.js → dist-BhiOE4Je.js} +1 -1
- package/public/dist/assets/dist-BilTf2R_.js +1 -0
- package/public/dist/assets/{dist-B_o5XbiL.js → dist-C3TcSBS9.js} +1 -1
- package/public/dist/assets/{dist-CJNnOuaA.js → dist-CGsf1rFO.js} +1 -1
- package/public/dist/assets/{dist-CcmA2WLJ.js → dist-CGzsRBzE.js} +1 -1
- package/public/dist/assets/{dist-XM8qpb8C.js → dist-CMbSipnS.js} +1 -1
- package/public/dist/assets/{dist-D011G-p-.js → dist-CUMQ4CVq.js} +6 -6
- package/public/dist/assets/{dist-TN2_Nms3.js → dist-CnD_n59I.js} +2 -2
- package/public/dist/assets/{dist-Ds6qQDMC.js → dist-D2b8rFhK.js} +1 -1
- package/public/dist/assets/dist-D4DqSwQ2.js +23 -0
- package/public/dist/assets/dist-D9HfhF9D.js +1 -0
- package/public/dist/assets/{dist-DUl4SBwX.js → dist-DWokXs00.js} +1 -1
- package/public/dist/assets/dist-DdqvA4zv.js +9 -0
- package/public/dist/assets/dist-DeyC1sN9.js +1 -0
- package/public/dist/assets/dist-Di0v3BEu.js +1 -0
- package/public/dist/assets/{dist-DBX5LjYY.js → dist-DoBloT63.js} +1 -1
- package/public/dist/assets/dist-JPv0hNyT.js +1 -0
- package/public/dist/assets/dist-KSYtBgaM.js +1 -0
- package/public/dist/assets/dist-LdDcGdMi.js +1 -0
- package/public/dist/assets/dist-NkMr7bN9.js +1 -0
- package/public/dist/assets/{dist-B6-H00Bu.js → dist-cfKP2EZP.js} +1 -1
- package/public/dist/assets/{dist-ClT6EIJP.js → dist-r7Uj7aHZ.js} +1 -1
- package/public/dist/assets/{dist-Ohtnri73.js → dist-sD6o13f2.js} +5 -5
- package/public/dist/assets/{dylan-BCDoL_-p.js → dylan-S7ucR4pR.js} +1 -1
- package/public/dist/assets/ebnfDiagram-PWID7BFC-D-UUemMX.js +1 -0
- package/public/dist/assets/employees-HGGmvr9h.js +33 -0
- package/public/dist/assets/erDiagram-RLTQ6QDP-DWrD2gMN.js +99 -0
- package/public/dist/assets/{error-normalize-jnjrKZDu.js → error-normalize-B1Qok_rC.js} +1 -1
- package/public/dist/assets/esm-DiXGSyHP.js +4 -0
- package/public/dist/assets/eventmodeling-NTZA5JFV-CQtXR2mx.js +1 -0
- package/public/dist/assets/{fields-CicOWY-X.js → fields-BjZx5voq.js} +1 -1
- package/public/dist/assets/flowDiagram-HODETNUW-OcVWrbeH.js +1 -0
- package/public/dist/assets/ganttDiagram-EL5Y4UJY-B63PfZl2.js +292 -0
- package/public/dist/assets/gitGraph-4MIJSDKK-BhtE9IvL.js +1 -0
- package/public/dist/assets/gitGraphDiagram-WWUBYQGX-LSbqOlPw.js +106 -0
- package/public/dist/assets/{graphlib-CGJNr7IJ.js → graphlib-DVKScnWL.js} +1 -1
- package/public/dist/assets/groovy-CUrWKPia.js +1 -0
- package/public/dist/assets/{icons-QgChTDzZ.js → icons-ChnWzzCc.js} +1 -1
- package/public/dist/assets/idb-cache-B9lPiu4R.js +1 -0
- package/public/dist/assets/idb-cache-DCRNTYaU.js +1 -0
- package/public/dist/assets/iframe-renderer-CY6EkgYf.js +1 -0
- package/public/dist/assets/iframe-renderer-Diy4kgO2.js +142 -0
- package/public/dist/assets/info-A6RAGUB7-CdvjKg5T.js +1 -0
- package/public/dist/assets/infoDiagram-27XIBGKW-D46ogWRs.js +2 -0
- package/public/dist/assets/{ishikawaDiagram-5VMMS53U-clFsYLNd.js → ishikawaDiagram-5VMMS53U-AWno_NcU.js} +6 -6
- package/public/dist/assets/javascript-DZ4Qsoqy.js +1 -0
- package/public/dist/assets/javascript-lj9EKOz0.js +1 -0
- package/public/dist/assets/journeyDiagram-3NMN7TZE-Ck2NRLBr.js +139 -0
- package/public/dist/assets/{jsx-runtime-CkEUZM6i.js → jsx-runtime-DZDtxMw1.js} +1 -1
- package/public/dist/assets/kanban-definition-UXKFOSKX-DZHZVYP8.js +89 -0
- package/public/dist/assets/katex-Cy4J_nNl.js +1 -0
- package/public/dist/assets/manager-DIaOU2Vf.js +5 -0
- package/public/dist/assets/manager-DQjyj2aO.css +1 -0
- package/public/dist/assets/memory-BwOHZFr3.js +1 -0
- package/public/dist/assets/memory-eUFypRgE.js +20 -0
- package/public/dist/assets/mermaid-loader-Bc8dzRYA.js +1 -0
- package/public/dist/assets/mermaid-parser.core-BR4wyv6_.js +3 -0
- package/public/dist/assets/mermaid-preprocess-C0kIneRY.js +7 -0
- package/public/dist/assets/mermaid.core-CFjSTb5z.js +1 -0
- package/public/dist/assets/mermaid.core-LL322ONn.js +11 -0
- package/public/dist/assets/message-history-B_ZNUY2q.js +4 -0
- package/public/dist/assets/message-history-CiLUEwFc.js +1 -0
- package/public/dist/assets/{mindmap-definition-THT77NOG-BoWJfXfW.js → mindmap-definition-YA3MSWOX-C83w8Lkx.js} +29 -29
- package/public/dist/assets/{nginx-8H7HVH4w.js → nginx-C-ORUuei.js} +1 -1
- package/public/dist/assets/{ntriples-B9h1VB_g.js → ntriples-CzMBulkp.js} +1 -1
- package/public/dist/assets/packet-AYTQ26CC-E4FuQ9SS.js +1 -0
- package/public/dist/assets/{page-shell-Cz2ylri8.js → page-shell-DNmz6ho8.js} +1 -1
- package/public/dist/assets/pegDiagram-XKGWAZYB-Ce99veKU.js +1 -0
- package/public/dist/assets/{pi-settings-tRVfevu-.js → pi-settings-BNsQ8qT6.js} +1 -1
- package/public/dist/assets/pi-settings-Dqzh0ayi.js +1 -0
- package/public/dist/assets/pie-WAS4IAKB-DfFXe2Ls.js +1 -0
- package/public/dist/assets/pieDiagram-E7YTZNPT-DJdA9QnZ.js +39 -0
- package/public/dist/assets/{powershell-BcIto6Sf.js → powershell-D8WpQPaX.js} +1 -1
- package/public/dist/assets/preload-helper-BZ2o5wmf.js +1 -0
- package/public/dist/assets/presentation-preference-D9SOadIN.js +1 -0
- package/public/dist/assets/presentation-preference-nMt8km7E.js +1 -0
- package/public/dist/assets/pug-CGoiHVBP.js +1 -0
- package/public/dist/assets/{quadrantDiagram-AXDQQJYC-T6Sv85w7.js → quadrantDiagram-AXDQQJYC-hH3v4DNs.js} +6 -6
- package/public/dist/assets/radar-RG4KPBEZ-YAc2iOvS.js +1 -0
- package/public/dist/assets/railroad-74A4TZTK-BFJqYnkA.js +1 -0
- package/public/dist/assets/railroad-abnf-HS5TGJTU-BHlt04u9.js +1 -0
- package/public/dist/assets/railroad-ebnf-LZEXJU2U-TT-f7Txi.js +1 -0
- package/public/dist/assets/railroad-peg-WCYAUIDC-AyjfvGmk.js +1 -0
- package/public/dist/assets/railroadDiagram-O6MQD6OU-BblhUBBS.js +1 -0
- package/public/dist/assets/{react-dom-URBLzV3w.js → react-dom-W24aPQgI.js} +1 -1
- package/public/dist/assets/render-Dgs3nzCZ.js +159 -0
- package/public/dist/assets/{requirementDiagram-IS5BZ75X-Bwa18E8d.js → requirementDiagram-BXWQKSXE-tKxc5G-A.js} +8 -8
- package/public/dist/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/public/dist/assets/{sankeyDiagram-P5KCCOFB-io3P7h-z.js → sankeyDiagram-P5KCCOFB-Cq32xL01.js} +7 -7
- package/public/dist/assets/sequenceDiagram-WJ2MYXX4-BEC_IyrM.js +162 -0
- package/public/dist/assets/settings-8hkzL8Bg.js +1 -0
- package/public/dist/assets/settings-BSMxaup8.js +1 -0
- package/public/dist/assets/settings-DFh4jovJ.js +217 -0
- package/public/dist/assets/settings-core-BgsJJaG5.js +2 -0
- package/public/dist/assets/settings-core-U-fx_-9v.js +1 -0
- package/public/dist/assets/settings-embedding-CXjrQCpY.js +1 -0
- package/public/dist/assets/{shared-CftvKNY9.js → shared-D-HRoQ5T.js} +1 -1
- package/public/dist/assets/sidebar-DB-vrWeg.js +49 -0
- package/public/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/public/dist/assets/skills-4zBHjNB1.js +1 -0
- package/public/dist/assets/skills-JAP5Y-C7.js +12 -0
- package/public/dist/assets/slash-commands-1ZpHCSXN.js +1 -0
- package/public/dist/assets/slash-commands-D9MK2ST2.js +20 -0
- package/public/dist/assets/stateDiagram-D77RDMKH-BXew1iLw.js +1 -0
- package/public/dist/assets/stateDiagram-v2-MP3YSRHH-BKp55ebb.js +1 -0
- package/public/dist/assets/swimlanes-42K2YHIH-DYlh--m0.js +1 -0
- package/public/dist/assets/swimlanesDiagram-VR7AAH4N-DJjv7fhP.js +8 -0
- package/public/dist/assets/{tiki-AK6FwT8q.js → tiki-CvUEFusT.js} +1 -1
- package/public/dist/assets/timeline-definition-24CTP7MA-C4Ig5tHv.js +120 -0
- package/public/dist/assets/{tool-input-DI7uu8Ah.js → tool-input-C7u0AQMw.js} +1 -1
- package/public/dist/assets/{trace-drawer-B4O0Tl1M.js → trace-drawer-BLGCCu8f.js} +4 -4
- package/public/dist/assets/treeView-Q6P3EWNA-BzFpnMzS.js +1 -0
- package/public/dist/assets/treemap-WGGIJYW6-DlrbAd29.js +1 -0
- package/public/dist/assets/ui-Bp2LVZ2v.js +2 -0
- package/public/dist/assets/ui-Cx4Qp6jr.js +1 -0
- package/public/dist/assets/{vendor-render-BsyPjvQm.js → vendor-render-CnRVYDPP.js} +32 -32
- package/public/dist/assets/vendor-utils-BXzsw95K.js +1 -0
- package/public/dist/assets/{vennDiagram-4TSXK5OY-Zw3mI5Km.js → vennDiagram-4TSXK5OY-CJuv3pW9.js} +8 -8
- package/public/dist/assets/wardley-WFR3VGLG-iSfZtkCK.js +1 -0
- package/public/dist/assets/wardleyDiagram-VM6X3IG4-C6kLelFN.js +78 -0
- package/public/dist/assets/wiki-link-resolver-DknqRIaW.js +22 -0
- package/public/dist/assets/{xychartDiagram-S5SC5T6Z-B1_1yNTd.js → xychartDiagram-S5SC5T6Z-BQavBx4y.js} +7 -7
- package/public/dist/index.html +2 -2
- package/public/dist/manager/index.html +3 -3
- package/public/dist/settings/index.html +1 -1
- package/public/js/constants.ts +1 -0
- package/public/js/render/delegations.ts +2 -0
- package/public/js/render/markdown.ts +14 -2
- package/public/js/render/sanitize.ts +1 -1
- package/public/js/render/table-actions.ts +161 -0
- package/public/js/ui.ts +2 -1
- package/public/locales/en.json +9 -0
- package/public/locales/ja.json +9 -0
- package/public/locales/ko.json +9 -0
- package/public/locales/zh.json +9 -0
- package/public/manager/src/browser-panel/use-embedded-target-sync.ts +161 -113
- package/public/manager/src/code/CodeTranscript.tsx +60 -37
- package/public/manager/src/code/CodeWorkbench.tsx +4 -3
- package/public/manager/src/code/code-controller-draft-storage.ts +9 -4
- package/public/manager/src/code/code-controller-drafts.ts +13 -3
- package/public/manager/src/code/code-controller-runtime.ts +193 -21
- package/public/manager/src/code/code-controller-types.ts +2 -0
- package/public/manager/src/code/code-session-client.ts +20 -2
- package/public/manager/src/code/code-types.ts +7 -0
- package/public/manager/src/code/code.css +31 -0
- package/public/manager/src/code/tool-summary.ts +24 -7
- package/public/manager/src/code/transcript-view-memory.ts +25 -0
- package/public/manager/src/code/use-code-transcript-scroll.ts +85 -45
- package/public/manager/src/code/useCodeTranscriptVirtualRows.ts +16 -1
- package/public/manager/src/notes/rendering/MarkdownRenderer.tsx +25 -5
- package/public/manager/src/notes/rendering/MarkdownTableActions.tsx +81 -0
- package/public/manager/src/notes/rendering/markdown-table-model.ts +62 -0
- package/public/manager/src/panels/desktop-bridge.ts +8 -4
- package/public/manager/src/settings/pages/components/agent/agent-meta.ts +1 -0
- package/scripts/collect-fresh-install-evidence.sh +1 -1
- package/scripts/ensure-pty-spawn-helper.cjs +63 -0
- package/scripts/install-wsl.sh +1 -1
- package/scripts/install.ps1 +1 -1
- package/scripts/install.sh +1 -1
- package/scripts/promote-to-main.sh +2 -294
- package/scripts/release-gates.mjs +5 -26
- package/scripts/release-preview.sh +2 -423
- package/scripts/release-version.mjs +63 -0
- package/scripts/release.sh +182 -0
- package/scripts/require-release-evidence.mjs +6 -10
- package/scripts/verify-npm-provenance.mjs +34 -0
- package/scripts/windows-support-contract.json +1 -1
- package/public/dist/assets/Activity-DsBgOkCP.js +0 -1
- package/public/dist/assets/AdvancedExport-COGQ7vbK.js +0 -1
- package/public/dist/assets/Agent-6qGQN7lY.js +0 -1
- package/public/dist/assets/Browser-r09vOsR1.js +0 -1
- package/public/dist/assets/BrowserPanel-Bb-Bge6B.js +0 -3
- package/public/dist/assets/ChannelEnablementControl-ooOkdd-Q.js +0 -85
- package/public/dist/assets/ChannelsDiscord-9EMLt5b3.js +0 -1
- package/public/dist/assets/ChannelsSlack-B8ETzWFt.js +0 -1
- package/public/dist/assets/ChannelsTelegram-CflLUsQw.js +0 -1
- package/public/dist/assets/CodeCanvas-DKFuJurF.js +0 -3
- package/public/dist/assets/DesignPanel-BOb-HMbl.js +0 -2
- package/public/dist/assets/DiffPanel-D9Cch5FG.js +0 -3
- package/public/dist/assets/Display-BXQxpv6-.js +0 -1
- package/public/dist/assets/Display-Cl4DD334.js +0 -1
- package/public/dist/assets/DocPanel-CMDbvBGX.js +0 -1
- package/public/dist/assets/Heartbeat-Bj8V_bUM.js +0 -1
- package/public/dist/assets/MarkdownRenderer-5xz8Wyte.js +0 -1
- package/public/dist/assets/MarkdownRenderer-C77VMHhX.js +0 -15
- package/public/dist/assets/Mcp-jAcut_fw.js +0 -4
- package/public/dist/assets/Memory-BOXkBFKg.js +0 -1
- package/public/dist/assets/MilkdownWysiwygEditor-BK26KbJ4.js +0 -160
- package/public/dist/assets/ModelProvider-DIDQ37z-.js +0 -1
- package/public/dist/assets/Network-I5eOe2hf.js +0 -1
- package/public/dist/assets/NotesGraphWorkspace-DO9LtVGF.js +0 -1
- package/public/dist/assets/Permissions-B7PthH01.js +0 -1
- package/public/dist/assets/Permissions-BCYUfJg1.js +0 -1
- package/public/dist/assets/Profile-CYPMVhQM.js +0 -1
- package/public/dist/assets/SpeechKeys-UlXNSFoe.js +0 -1
- package/public/dist/assets/TelegramHub-BhUFhIcv.js +0 -1
- package/public/dist/assets/TerminalPanel-c1xhiy53.js +0 -16
- package/public/dist/assets/abnfDiagram-VCTEODGH-CKwWysIF.js +0 -1
- package/public/dist/assets/agent-meta-v4jNRAbX.js +0 -1
- package/public/dist/assets/api-CLHen33W.js +0 -1
- package/public/dist/assets/app-SVIyP1TT.js +0 -59
- package/public/dist/assets/architecture-7GRP2DOG-Bp3iCG16.js +0 -1
- package/public/dist/assets/architectureDiagram-5GKGNRK7-B9qqrT3E.js +0 -36
- package/public/dist/assets/bgtask-badge-HIrvpcr_.js +0 -1
- package/public/dist/assets/blockDiagram-OSKFZWR5-BjdWo_0R.js +0 -129
- package/public/dist/assets/channel-J_3cbKDK.js +0 -1
- package/public/dist/assets/chunk-2ZTRR5NV-BFt7Dm5O.js +0 -2
- package/public/dist/assets/chunk-3NF5O7KM-D30d98yD.js +0 -168
- package/public/dist/assets/chunk-4HAMMTFA-47nees_K.js +0 -62
- package/public/dist/assets/chunk-747NJXEK-Bxgd5wfl.js +0 -2
- package/public/dist/assets/chunk-CLGD4ZFX-CuX1dWxe.js +0 -1
- package/public/dist/assets/chunk-GMAD6QVW-1bgL6bkT.js +0 -13
- package/public/dist/assets/chunk-GVQU2GXP-DPd6VgIg.js +0 -1
- package/public/dist/assets/chunk-H2I77ZZE-BS90ONOa.js +0 -1
- package/public/dist/assets/chunk-L3NEJ4N5-BU_TE1Gv.js +0 -1
- package/public/dist/assets/chunk-OSK3NFVY-hIzY7BE2.js +0 -10
- package/public/dist/assets/chunk-OUJLGHUK-CTWiVXba.js +0 -2
- package/public/dist/assets/chunk-POPQ4Y6H-XK7yYMir.js +0 -1
- package/public/dist/assets/chunk-PWAF6VOD-bnJEdC3p.js +0 -1
- package/public/dist/assets/chunk-X3CZISLH-ChyOdCnY.js +0 -1
- package/public/dist/assets/classDiagram-CYGNFDIV-j1lFRpNs.js +0 -1
- package/public/dist/assets/classDiagram-v2-TLXNO2FR-j1lFRpNs.js +0 -1
- package/public/dist/assets/constants-_iw-lnKY.js +0 -1
- package/public/dist/assets/cose-bilkent-JH36ORCC-BqCMCbxR.js +0 -1
- package/public/dist/assets/crystal-Bsdphhtm.js +0 -1
- package/public/dist/assets/cynefin-OW5HDTMX-57vG-IQU.js +0 -1
- package/public/dist/assets/cynefinDiagram-5FMLGOSQ-jN-7O_sZ.js +0 -62
- package/public/dist/assets/cytoscape.esm-Ql0ZPabT.js +0 -321
- package/public/dist/assets/dagre-Fg-GCROL.js +0 -1
- package/public/dist/assets/dagre-OS7QT2EB-CFjTsoYe.js +0 -4
- package/public/dist/assets/diagram-S7CK7UJ4-J-pfE07X.js +0 -30
- package/public/dist/assets/diagram-UQ7AKVKN-Cxj9eMt1.js +0 -41
- package/public/dist/assets/diagram-VSXAHHWV-CEieVcAW.js +0 -3
- package/public/dist/assets/diagram-VX7I27RA-D4x2ePaD.js +0 -24
- package/public/dist/assets/dist--wUCkuiC.js +0 -9
- package/public/dist/assets/dist-B2ugUS7T.js +0 -1
- package/public/dist/assets/dist-Bn361Kgk.js +0 -23
- package/public/dist/assets/dist-Box-O1ow.js +0 -1
- package/public/dist/assets/dist-C9i-hLBK.js +0 -1
- package/public/dist/assets/dist-CGUtB2hn.js +0 -1
- package/public/dist/assets/dist-CPYD5RoF.js +0 -1
- package/public/dist/assets/dist-CW1HDUim.js +0 -1
- package/public/dist/assets/dist-Cbkb9LHa.js +0 -1
- package/public/dist/assets/dist-DBpt7gM8.js +0 -1
- package/public/dist/assets/dist-DWvaIPaS.js +0 -1
- package/public/dist/assets/dist-Dxy8kUAu.js +0 -1
- package/public/dist/assets/dist-OaQUa3cd.js +0 -1
- package/public/dist/assets/dist-Y0iINzVl.js +0 -1
- package/public/dist/assets/ebnfDiagram-PWID7BFC-UEkYjpJn.js +0 -1
- package/public/dist/assets/employees-DNTPcxtZ.js +0 -33
- package/public/dist/assets/erDiagram-2YWLMYGG-BWn9ynBx.js +0 -99
- package/public/dist/assets/esm-Q6VOkDbn.js +0 -4
- package/public/dist/assets/eventmodeling-NTZA5JFV-Dz1yjNT-.js +0 -1
- package/public/dist/assets/flowDiagram-T62WH6J4-DolY8JK4.js +0 -1
- package/public/dist/assets/ganttDiagram-EL5Y4UJY-CVIT3S7m.js +0 -292
- package/public/dist/assets/gitGraph-4MIJSDKK-NIO2XoGv.js +0 -1
- package/public/dist/assets/gitGraphDiagram-WWUBYQGX-Y8ZCUmfW.js +0 -106
- package/public/dist/assets/groovy-CUpZ7dEl.js +0 -1
- package/public/dist/assets/idb-cache-BRpjf_a8.js +0 -1
- package/public/dist/assets/idb-cache-CFBnPfHz.js +0 -1
- package/public/dist/assets/iframe-renderer--lHbKTDh.js +0 -142
- package/public/dist/assets/iframe-renderer-DigNC5FU.js +0 -1
- package/public/dist/assets/info-A6RAGUB7-yRMwEr76.js +0 -1
- package/public/dist/assets/infoDiagram-FKFFQAWI-DT2EWjxa.js +0 -2
- package/public/dist/assets/javascript-B9I2pbsP.js +0 -1
- package/public/dist/assets/javascript-DctB8BJo.js +0 -1
- package/public/dist/assets/journeyDiagram-EYS64GPL-DMxKSsKZ.js +0 -139
- package/public/dist/assets/kanban-definition-UXKFOSKX-CbCpLSup.js +0 -89
- package/public/dist/assets/katex-1VKIni13.js +0 -1
- package/public/dist/assets/manager-B9imHVqw.css +0 -1
- package/public/dist/assets/manager-qGH-xUZ7.js +0 -5
- package/public/dist/assets/memory-BAdRkBdk.js +0 -20
- package/public/dist/assets/memory-DA8x5314.js +0 -1
- package/public/dist/assets/mermaid-loader-CCSp7XfV.js +0 -1
- package/public/dist/assets/mermaid-parser.core-J035_CYr.js +0 -3
- package/public/dist/assets/mermaid-preprocess-BtbPvSni.js +0 -5
- package/public/dist/assets/mermaid.core--NXRyXtf.js +0 -1
- package/public/dist/assets/mermaid.core-C6YN2KGZ.js +0 -11
- package/public/dist/assets/message-history-CGOgZH4l.js +0 -1
- package/public/dist/assets/message-history-PAYeKmia.js +0 -4
- package/public/dist/assets/packet-AYTQ26CC-BreuCLNh.js +0 -1
- package/public/dist/assets/pegDiagram-XKGWAZYB-C6MTHw9U.js +0 -1
- package/public/dist/assets/pi-settings-Ch6XdqIF.js +0 -1
- package/public/dist/assets/pie-WAS4IAKB-Co3_rQ80.js +0 -1
- package/public/dist/assets/pieDiagram-E7YTZNPT-CiTFZJAT.js +0 -39
- package/public/dist/assets/preload-helper-CfbQpVni.js +0 -1
- package/public/dist/assets/presentation-preference-BYEPPRPg.js +0 -1
- package/public/dist/assets/presentation-preference-D9u6LD07.js +0 -1
- package/public/dist/assets/pug-CqqUmdG7.js +0 -1
- package/public/dist/assets/radar-RG4KPBEZ-C2cOxc85.js +0 -1
- package/public/dist/assets/railroad-74A4TZTK-BZ4umY4g.js +0 -1
- package/public/dist/assets/railroad-abnf-HS5TGJTU-DxbXiuYs.js +0 -1
- package/public/dist/assets/railroad-ebnf-LZEXJU2U-Bthp2_-B.js +0 -1
- package/public/dist/assets/railroad-peg-WCYAUIDC-YcQ4ouxQ.js +0 -1
- package/public/dist/assets/railroadDiagram-O6MQD6OU-5wGap_iU.js +0 -1
- package/public/dist/assets/render-F6xF6w6c.js +0 -157
- package/public/dist/assets/rolldown-runtime-hePW80VL.js +0 -1
- package/public/dist/assets/sequenceDiagram-WJ2MYXX4-BXE7_NFT.js +0 -162
- package/public/dist/assets/settings-DMbNzuTm.js +0 -1
- package/public/dist/assets/settings-DZ2-ca8T.js +0 -1
- package/public/dist/assets/settings-W0WFhBf2.js +0 -217
- package/public/dist/assets/settings-core-2vZXNf6n.js +0 -2
- package/public/dist/assets/settings-core-BofMyzL9.js +0 -1
- package/public/dist/assets/settings-embedding-Bjwpe8xu.js +0 -9
- package/public/dist/assets/sidebar-Clkqd78q.js +0 -49
- package/public/dist/assets/sizeCapture-INFHLROL-B0uUizjq.js +0 -1
- package/public/dist/assets/skills-0aA-RuN9.js +0 -12
- package/public/dist/assets/skills-SqmQXndw.js +0 -1
- package/public/dist/assets/slash-commands-4zHHXEeU.js +0 -20
- package/public/dist/assets/slash-commands-D5LqONzL.js +0 -1
- package/public/dist/assets/stateDiagram-XQSTLZYL-D4fdsjJT.js +0 -1
- package/public/dist/assets/stateDiagram-v2-IH3M54BS-C0qjVfYw.js +0 -1
- package/public/dist/assets/swimlanes-V6O3JKXN-BGnQAfcf.js +0 -1
- package/public/dist/assets/swimlanesDiagram-JKAHXJPX-CO8ucSKU.js +0 -8
- package/public/dist/assets/timeline-definition-24CTP7MA-DokSBeMC.js +0 -120
- package/public/dist/assets/treeView-Q6P3EWNA-CDjnLfDO.js +0 -1
- package/public/dist/assets/treemap-WGGIJYW6-CbGUwvA1.js +0 -1
- package/public/dist/assets/ui-CVtGpivr.js +0 -2
- package/public/dist/assets/ui-_cqgseFX.js +0 -1
- package/public/dist/assets/vendor-utils-C1xaEGmb.js +0 -1
- package/public/dist/assets/wardley-WFR3VGLG-Cj73o4Iq.js +0 -1
- package/public/dist/assets/wardleyDiagram-VM6X3IG4-CKWgGmAD.js +0 -78
- package/public/dist/assets/wiki-link-resolver-5Pkm1Mtc.js +0 -22
- package/scripts/promotion-checkout.sh +0 -141
- package/scripts/promotion-state.mjs +0 -133
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{g as n}from"./chunk-75Z2AOVW-s9GsKoLq.js";import{H as r,K as i,U as a,a as o,c as s,s as c,v as l,w as u,x as d,y as f}from"./chunk-DU6HZSFF-Kve-uAsf.js";import{r as p,t as m}from"./chunk-X3CZISLH-NOpCnvgE.js";import{n as h}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as g}from"./dist-BJYSqj-d.js";import{Bt as _,Ct as v,Dt as y,Et as b,Ht as x,Rt as S,St as C,Tt as w,Ut as T,Vt as E,Wt as D,_t as O,bt as k,ft as A,gt as j,ht as M,mt as ee,pt as te,vt as N,wt as ne,xt as re,yt as ie}from"./vendor-utils-BXzsw95K.js";var ae=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(n,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),P=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(n,(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`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),F=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(n,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`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((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),I=t(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(n,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms;return f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),oe=g(),L=e(p(),1),se=e(ae(),1),ce=e(P(),1),le=e(F(),1),ue=e(I(),1),de=(function(){var e=h(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[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],r=[1,27],i=[1,28],a=[1,29],o=[1,30],s=[1,31],c=[1,32],l=[1,33],u=[1,34],d=[1,9],f=[1,10],p=[1,11],m=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:h(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:h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:h(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);m.setInput(e,g.yy),g.yy.lexer=m,g.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var v=m.yylloc;a.push(v);var y=m.options&&m.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}h(b,`popStack`);function x(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
|
+
`+m.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==f?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:m.match,token:this.terminals_[S]||S,line:m.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(m.yytext),a.push(m.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,v=m.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(p)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:h(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:h(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:h(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:h(function(){return this._more=!0,this},`more`),reject:h(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
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:h(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:h(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:h(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:h(function(){return this.next()||this.lex()},`lex`),begin:h(function(e){this.conditionStack.push(e)},`begin`),popState:h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:h(function(e){this.begin(e)},`pushState`),stateStackSize:h(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:h(function(e,t,n,r){switch(n){case 0:return this.begin(`open_directive`),`open_directive`;case 1:return this.begin(`acc_title`),31;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),33;case 4:return this.popState(),`acc_descr_value`;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}}}})();function O(){this.yy={}}return h(O,`Parser`),O.prototype=D,D.Parser=O,new O})();de.parser=de;var fe=de;L.default.extend(se.default),L.default.extend(ce.default),L.default.extend(le.default);var pe={friday:5,saturday:6},R=``,me=``,he=void 0,ge=``,z=[],B=[],V=new Map,H=[],U=[],W=``,_e=``,ve=[`active`,`done`,`crit`,`milestone`,`vert`],ye=[],G=``,K=!1,be=!1,xe=`sunday`,q=`saturday`,Se=0,Ce=h(function(){H=[],U=[],W=``,ye=[],rt=0,ot=void 0,Y=void 0,X=[],R=``,me=``,_e=``,he=void 0,ge=``,z=[],B=[],K=!1,be=!1,Se=0,V=new Map,G=``,o(),xe=`sunday`,q=`saturday`},`clear`),we=h(function(e){G=e},`setDiagramId`),Te=h(function(e){me=e},`setAxisFormat`),Ee=h(function(){return me},`getAxisFormat`),De=h(function(e){he=e},`setTickInterval`),Oe=h(function(){return he},`getTickInterval`),ke=h(function(e){ge=e},`setTodayMarker`),Ae=h(function(){return ge},`getTodayMarker`),je=h(function(e){R=e},`setDateFormat`),Me=h(function(){K=!0},`enableInclusiveEndDates`),Ne=h(function(){return K},`endDatesAreInclusive`),Pe=h(function(){be=!0},`enableTopAxis`),Fe=h(function(){return be},`topAxisEnabled`),Ie=h(function(e){_e=e},`setDisplayMode`),Le=h(function(){return _e},`getDisplayMode`),Re=h(function(){return R},`getDateFormat`),ze=h((e,t)=>{let n=t.toLowerCase().split(/[\s,]+/).filter(e=>e!==``);return[...new Set([...e,...n])]},`mergeTokens`),Be=h(function(e){z=ze(z,e)},`setIncludes`),Ve=h(function(){return z},`getIncludes`),He=h(function(e){B=ze(B,e)},`setExcludes`),Ue=h(function(){return B},`getExcludes`),We=h(function(){return V},`getLinks`),Ge=h(function(e){W=e,H.push(e)},`addSection`),Ke=h(function(){return H},`getSections`),qe=h(function(){let e=ut(),t=0;for(;!e&&t<10;)e=ut(),t++;return U=X,U},`getTasks`),Je=h(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===pe[q]||e.isoWeekday()===pe[q]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),Ye=h(function(e){xe=e},`setWeekday`),Xe=h(function(){return xe},`getWeekday`),Ze=h(function(e){q=e},`setWeekend`),Qe=h(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,L.default)(e.startTime):(0,L.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,L.default)(e.endTime):(0,L.default)(e.endTime,t,!0);let[o,s]=$e(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),$e=h(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=Je(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),et=h(function(e,t,n){if(n=n.trim(),h(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(t)&&/^\d+$/.test(n))return new Date(Number(n));let r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(r!==null){let e=null;for(let t of r.groups.ids.split(` `)){let n=Z(t);n!==void 0&&(!e||n.endTime>e.endTime)&&(e=n)}if(e)return e.endTime;let t=new Date;return t.setHours(0,0,0,0),t}let i=(0,L.default)(n,t.trim(),!0);if(i.isValid())return i.toDate();{m.debug(`Invalid date:`+n),m.debug(`With date format:`+t.trim());let e=new Date(n);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+n);return e}},`getStartDate`),tt=h(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),nt=h(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Z(t);n!==void 0&&(!e||n.startTime<e.startTime)&&(e=n)}if(e)return e.startTime;let t=new Date;return t.setHours(0,0,0,0),t}let a=(0,L.default)(n,t.trim(),!0);if(a.isValid())return r&&(a=a.add(1,`d`)),a.toDate();let o=(0,L.default)(e),[s,c]=tt(n);if(!Number.isNaN(s)){let e=o.add(s,c);e.isValid()&&(o=e)}return o.toDate()},`getEndDate`),rt=0,J=h(function(e){return e===void 0?(rt+=1,`task`+rt):e},`parseId`),it=h(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};Q(r,i,ve);for(let e=0;e<r.length;e++)r[e]=r[e].trim();let a=``;switch(r.length){case 1:i.id=J(),i.startTime=e.endTime,a=r[0];break;case 2:i.id=J(),i.startTime=et(void 0,R,r[0]),a=r[1];break;case 3:i.id=J(r[0]),i.startTime=et(void 0,R,r[1]),a=r[2]}return a&&(i.endTime=nt(i.startTime,R,a,K),i.manualEndTime=(0,L.default)(a,`YYYY-MM-DD`,!0).isValid(),Qe(i,R,B,z)),i},`compileData`),at=h(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};Q(r,i,ve);for(let e=0;e<r.length;e++)r[e]=r[e].trim();switch(r.length){case 1:i.id=J(),i.startTime={type:`prevTaskEnd`,id:e},i.endTime={data:r[0]};break;case 2:i.id=J(),i.startTime={type:`getStartDate`,startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=J(r[0]),i.startTime={type:`getStartDate`,startData:r[1]},i.endTime={data:r[2]}}return i},`parseData`),ot,Y,X=[],st={},ct=h(function(e,t){let n={section:W,type:W,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=at(Y,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Y,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.vert?n.order=-1:(n.order=Se,Se++);let i=X.push(n);Y=n.id,st[n.id]=i-1},`addTask`),Z=h(function(e){let t=st[e];return X[t]},`findTaskById`),lt=h(function(e,t){let n={section:W,type:W,description:e,task:e,classes:[]},r=it(ot,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,ot=n,U.push(n)},`addTaskOrg`),ut=h(function(){let e=h(function(e){let t=X[e],n=``;switch(X[e].raw.startTime.type){case`prevTaskEnd`:t.startTime=Z(t.prevTaskId).endTime;break;case`getStartDate`:n=et(void 0,R,X[e].raw.startTime.startData),n&&(X[e].startTime=n)}return X[e].startTime&&(X[e].endTime=nt(X[e].startTime,R,X[e].raw.endTime.data,K),X[e].endTime&&(X[e].processed=!0,X[e].manualEndTime=(0,L.default)(X[e].raw.endTime.data,`YYYY-MM-DD`,!0).isValid(),Qe(X[e],R,B,z))),X[e].processed},`compileTask`),t=!0;for(let[n,r]of X.entries())e(n),t&&=r.processed;return t},`compileTasks`),dt=h(function(e,t){let n=t;d().securityLevel!==`loose`&&(n=(0,oe.sanitizeUrl)(t)),e.split(`,`).forEach(function(e){Z(e)!==void 0&&(mt(e,()=>{window.open(n,`_self`)}),V.set(e,n))}),ft(e,`clickable`)},`setLink`),ft=h(function(e,t){e.split(`,`).forEach(function(e){let n=Z(e);n!==void 0&&n.classes.push(t)})},`setClass`),pt=h(function(e,t,r){if(d().securityLevel!==`loose`||t===void 0)return;let i=[];if(typeof r==`string`){i=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<i.length;e++){let t=i[e].trim();t.startsWith(`"`)&&t.endsWith(`"`)&&(t=t.substr(1,t.length-2)),i[e]=t}}i.length===0&&i.push(e),Z(e)!==void 0&&mt(e,()=>{n.runFunc(t,...i)})},`setClickFun`),mt=h(function(e,t){ye.push(function(){let n=G?`${G}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=G?`${G}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),ht={getConfig:h(()=>d().gantt,`getConfig`),clear:Ce,setDateFormat:je,getDateFormat:Re,enableInclusiveEndDates:Me,endDatesAreInclusive:Ne,enableTopAxis:Pe,topAxisEnabled:Fe,setAxisFormat:Te,getAxisFormat:Ee,setTickInterval:De,getTickInterval:Oe,setTodayMarker:ke,getTodayMarker:Ae,setAccTitle:a,getAccTitle:f,setDiagramTitle:i,getDiagramTitle:u,setDiagramId:we,setDisplayMode:Ie,getDisplayMode:Le,setAccDescription:r,getAccDescription:l,addSection:Ge,getSections:Ke,getTasks:qe,addTask:ct,findTaskById:Z,addTaskOrg:lt,setIncludes:Be,getIncludes:Ve,setExcludes:He,getExcludes:Ue,setClickEvent:h(function(e,t,n){e.split(`,`).forEach(function(e){pt(e,t,n)}),ft(e,`clickable`)},`setClickEvent`),setLink:dt,getLinks:We,bindFunctions:h(function(e){ye.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:tt,isInvalidDate:Je,setWeekday:Ye,getWeekday:Xe,setWeekend:Ze};function Q(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}h(Q,`getTaskTags`),L.default.extend(ue.default);var gt=h(function(){m.debug(`Something is calling, setConf, remove the call`)},`setConf`),_t={monday:j,tuesday:k,wednesday:re,thursday:ie,friday:M,saturday:O,sunday:N},vt=h((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r<n.length;r++)if(e.startTime>=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),$,yt=1e4,bt={parser:fe,db:ht,renderer:{setConf:gt,draw:h(function(e,t,n,r){let i=d().gantt;r.db.setDiagramId(t);let a=d().securityLevel,o;a===`sandbox`&&(o=_(`#i`+t));let l=_(a===`sandbox`?o.nodes()[0].contentDocument.body:`body`),u=a===`sandbox`?o.nodes()[0].contentDocument:document,f=u.getElementById(t);$=f.parentElement.offsetWidth,$===void 0&&($=1200),i.useWidth!==void 0&&($=i.useWidth);let p=r.db.getTasks(),g=p.filter(e=>!e.vert),O=[];for(let e of g)O.push(e.type);O=ce(O);let k={},j=2*i.topPadding;if(r.db.getDisplayMode()===`compact`||i.displayMode===`compact`){let e={};for(let t of g)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=vt(e[n],t)+1;t+=r,j+=r*(i.barHeight+i.barGap),k[n]=r}}else{j+=g.length*(i.barHeight+i.barGap);for(let e of O)k[e]=g.filter(t=>t.type===e).length}f.setAttribute(`viewBox`,`0 0 `+$+` `+j);let M=l.select(`[id="${t}"]`),N=A().domain([T(p,function(e){return e.startTime}),D(p,function(e){return e.endTime})]).rangeRound([0,$-i.leftPadding-i.rightPadding]);function re(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i}h(re,`taskCompare`),p.sort(re),ie(p,$,j),s(M,j,$,i.useMaxWidth),M.append(`text`).text(r.db.getDiagramTitle()).attr(`x`,$/2).attr(`y`,i.titleTopMargin).attr(`class`,`titleText`);function ie(e,t,n){let a=i.barHeight,o=a+i.barGap,s=i.topPadding,c=i.leftPadding,l=y().domain([0,O.length]).range([`#00B9FA`,`#F95002`]).interpolate(S);P(o,s,c,t,n,e,r.db.getExcludes(),r.db.getIncludes()),I(c,s,t,n),ae(e,o,s,c,a,l,t,n),oe(o,s,c,a,l),se(c,s,t,n)}h(ie,`makeGantt`);function ae(e,n,a,o,s,c,l){e.sort((e,t)=>e.vert===t.vert?0:e.vert?1:-1);let u=e.filter(e=>!e.vert),f=[...new Set(u.map(e=>e.order))].map(e=>u.find(t=>t.order===e));M.append(`g`).selectAll(`rect`).data(f).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*n+a-2}).attr(`width`,function(){return l-i.rightPadding/2}).attr(`height`,n).attr(`class`,function(e){for(let[t,n]of O.entries())if(e.type===n)return`section section`+t%i.numberSectionStyles;return`section section0`}).enter();let p=M.append(`g`).selectAll(`rect`).data(e).enter(),m=r.db.getLinks();if(p.append(`rect`).attr(`id`,function(e){return t+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?N(e.startTime)+o+.5*(N(e.endTime)-N(e.startTime))-.5*s:N(e.startTime)+o}).attr(`y`,function(e,t){return t=e.order,e.vert?i.gridLineStartPadding:t*n+a}).attr(`width`,function(e){return e.milestone?s:e.vert?.08*s:N(e.renderEndTime||e.endTime)-N(e.startTime)}).attr(`height`,function(e){return e.vert?u.length*(i.barHeight+i.barGap)+i.barHeight*2:s}).attr(`transform-origin`,function(e,t){return t=e.order,(N(e.startTime)+o+.5*(N(e.endTime)-N(e.startTime))).toString()+`px `+(t*n+a+.5*s).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of O.entries())e.type===r&&(n=t%i.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),p.append(`text`).attr(`id`,function(e){return t+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,i.fontSize).attr(`x`,function(e){let t=N(e.startTime),n=N(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(N(e.endTime)-N(e.startTime))-.5*s,n=t+s),e.vert)return N(e.startTime)+o;let r=this.getBBox().width;return r>n-t?n+r+1.5*i.leftPadding>l?t+o-5:n+o+5:(n-t)/2+t+o}).attr(`y`,function(e,t){return e.vert?i.gridLineStartPadding+u.length*(i.barHeight+i.barGap)+60:(t=e.order,t*n+i.barHeight/2+(i.fontSize/2-2)+a)}).attr(`text-height`,s).attr(`class`,function(e){let t=N(e.startTime),n=N(e.endTime);e.milestone&&(n=t+s);let r=this.getBBox().width,a=``;e.classes.length>0&&(a=e.classes.join(` `));let o=0;for(let[t,n]of O.entries())e.type===n&&(o=t%i.numberSectionStyles);let c=``;return e.active&&(c=e.crit?`activeCritText`+o:`activeText`+o),e.done?c=e.crit?c+` doneCritText`+o:c+` doneText`+o:e.crit&&(c=c+` critText`+o),e.milestone&&(c+=` milestoneText`),e.vert&&(c+=` vertText`),r>n-t?n+r+1.5*i.leftPadding>l?a+` taskTextOutsideLeft taskTextOutside`+o+` `+c:a+` taskTextOutsideRight taskTextOutside`+o+` `+c+` width-`+r:a+` taskText taskText`+o+` `+c+` width-`+r}),d().securityLevel===`sandbox`){let e;e=_(`#i`+t);let n=e.nodes()[0].contentDocument;p.filter(function(e){return m.has(e.id)}).each(function(e){var r=n.querySelector(`#`+CSS.escape(t+`-`+e.id)),i=n.querySelector(`#`+CSS.escape(t+`-`+e.id+`-text`));let a=r.parentNode;var o=n.createElement(`a`);o.setAttribute(`xlink:href`,m.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(r),o.appendChild(i)})}}h(ae,`drawRects`);function P(e,n,a,o,s,c,l,u){if(l.length===0&&u.length===0)return;let d,f;for(let{startTime:e,endTime:t}of c)(d===void 0||e<d)&&(d=e),(f===void 0||t>f)&&(f=t);if(!d||!f)return;if((0,L.default)(f).diff((0,L.default)(d),`year`)>5){m.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 p=r.db.getDateFormat(),h=[],g=null,_=(0,L.default)(d);for(;_.valueOf()<=f;)r.db.isInvalidDate(_,p,l,u)?g?g.end=_:g={start:_,end:_}:g&&=(h.push(g),null),_=_.add(1,`d`);M.append(`g`).selectAll(`rect`).data(h).enter().append(`rect`).attr(`id`,e=>t+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>N(e.start.startOf(`day`))+a).attr(`y`,i.gridLineStartPadding).attr(`width`,e=>N(e.end.endOf(`day`))-N(e.start.startOf(`day`))).attr(`height`,s-n-i.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(N(t.start)+a+.5*(N(t.end)-N(t.start))).toString()+`px `+(n*e+.5*s).toString()+`px`}).attr(`class`,`exclude-range`)}h(P,`drawExcludeDays`);function F(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=L.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}h(F,`getEstimatedTickCount`);function I(e,t,n,a){let o=r.db.getDateFormat(),s=r.db.getAxisFormat(),c;c=s||(o===`D`?`%d`:i.axisFormat??`%Y-%m-%d`);let l=E(N).tickSize(-a+t+i.gridLineStartPadding).tickFormat(te(c)),u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(u!==null){let e=parseInt(u[1],10);if(isNaN(e)||e<=0)m.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let t=u[2],n=r.db.getWeekday()||i.weekday,a=N.domain(),o=a[0],s=a[1],c=F(o,s,e,t);if(c>yt)m.warn(`The tick interval "${e}${t}" would generate ${c} ticks, which exceeds the maximum allowed (${yt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:l.ticks(b.every(e));break;case`second`:l.ticks(w.every(e));break;case`minute`:l.ticks(ne.every(e));break;case`hour`:l.ticks(v.every(e));break;case`day`:l.ticks(C.every(e));break;case`week`:l.ticks(_t[n].every(e));break;case`month`:l.ticks(ee.every(e))}}}if(M.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(a-50)+`)`).call(l).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),r.db.topAxisEnabled()||i.topAxis){let n=x(N).tickSize(-a+t+i.gridLineStartPadding).tickFormat(te(c));if(u!==null){let e=parseInt(u[1],10);if(isNaN(e)||e<=0)m.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let t=u[2],a=r.db.getWeekday()||i.weekday,o=N.domain(),s=o[0],c=o[1];if(F(s,c,e,t)<=yt)switch(t){case`millisecond`:n.ticks(b.every(e));break;case`second`:n.ticks(w.every(e));break;case`minute`:n.ticks(ne.every(e));break;case`hour`:n.ticks(v.every(e));break;case`day`:n.ticks(C.every(e));break;case`week`:n.ticks(_t[a].every(e));break;case`month`:n.ticks(ee.every(e))}}}M.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(n).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}h(I,`makeGrid`);function oe(e,t){let n=0,r=Object.keys(k).map(e=>[e,k[e]]);M.append(`g`).selectAll(`text`).data(r).enter().append(function(e){let t=e[0].split(c.lineBreakRegex),n=-(t.length-1)/2,r=u.createElementNS(`http://www.w3.org/2000/svg`,`text`);r.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=u.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,r.appendChild(t)}return r}).attr(`x`,10).attr(`y`,function(i,a){if(a>0)for(let o=0;o<a;o++)return n+=r[a-1][1],i[1]*e/2+n*e+t;else return i[1]*e/2+t}).attr(`font-size`,i.sectionFontSize).attr(`class`,function(e){for(let[t,n]of O.entries())if(e[0]===n)return`sectionTitle sectionTitle`+t%i.numberSectionStyles;return`sectionTitle`})}h(oe,`vertLabels`);function se(e,t,n,a){let o=r.db.getTodayMarker();if(o===`off`)return;let s=M.append(`g`).attr(`class`,`today`),c=new Date,l=s.append(`line`);l.attr(`x1`,N(c)+e).attr(`x2`,N(c)+e).attr(`y1`,i.titleTopMargin).attr(`y2`,a-i.titleTopMargin).attr(`class`,`today`),o!==``&&l.attr(`style`,o.replace(/,/g,`;`))}h(se,`drawToday`);function ce(e){let t={},n=[];for(let r=0,i=e.length;r<i;++r)Object.prototype.hasOwnProperty.call(t,e[r])||(t[e[r]]=!0,n.push(e[r]));return n}h(ce,`checkUnique`)},`draw`)},styles:h(e=>`
|
|
7
|
+
.mermaid-main-font {
|
|
8
|
+
font-family: ${e.fontFamily};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.exclude-range {
|
|
12
|
+
fill: ${e.excludeBkgColor};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.section {
|
|
16
|
+
stroke: none;
|
|
17
|
+
opacity: 0.2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.section0 {
|
|
21
|
+
fill: ${e.sectionBkgColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.section2 {
|
|
25
|
+
fill: ${e.sectionBkgColor2};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.section1,
|
|
29
|
+
.section3 {
|
|
30
|
+
fill: ${e.altSectionBkgColor};
|
|
31
|
+
opacity: 0.2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sectionTitle0 {
|
|
35
|
+
fill: ${e.titleColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sectionTitle1 {
|
|
39
|
+
fill: ${e.titleColor};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.sectionTitle2 {
|
|
43
|
+
fill: ${e.titleColor};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sectionTitle3 {
|
|
47
|
+
fill: ${e.titleColor};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sectionTitle {
|
|
51
|
+
text-anchor: start;
|
|
52
|
+
font-family: ${e.fontFamily};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/* Grid and axis */
|
|
57
|
+
|
|
58
|
+
.grid .tick {
|
|
59
|
+
stroke: ${e.gridColor};
|
|
60
|
+
opacity: 0.8;
|
|
61
|
+
shape-rendering: crispEdges;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.grid .tick text {
|
|
65
|
+
font-family: ${e.fontFamily};
|
|
66
|
+
fill: ${e.textColor};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.grid path {
|
|
70
|
+
stroke-width: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/* Today line */
|
|
75
|
+
|
|
76
|
+
.today {
|
|
77
|
+
fill: none;
|
|
78
|
+
stroke: ${e.todayLineColor};
|
|
79
|
+
stroke-width: 2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/* Task styling */
|
|
84
|
+
|
|
85
|
+
/* Default task */
|
|
86
|
+
|
|
87
|
+
.task {
|
|
88
|
+
stroke-width: 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.taskText {
|
|
92
|
+
text-anchor: middle;
|
|
93
|
+
font-family: ${e.fontFamily};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.taskTextOutsideRight {
|
|
97
|
+
fill: ${e.taskTextDarkColor};
|
|
98
|
+
text-anchor: start;
|
|
99
|
+
font-family: ${e.fontFamily};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.taskTextOutsideLeft {
|
|
103
|
+
fill: ${e.taskTextDarkColor};
|
|
104
|
+
text-anchor: end;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/* Special case clickable */
|
|
109
|
+
|
|
110
|
+
.task.clickable {
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.taskText.clickable {
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
fill: ${e.taskTextClickableColor} !important;
|
|
117
|
+
font-weight: bold;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.taskTextOutsideLeft.clickable {
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
fill: ${e.taskTextClickableColor} !important;
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.taskTextOutsideRight.clickable {
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
fill: ${e.taskTextClickableColor} !important;
|
|
129
|
+
font-weight: bold;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/* Specific task settings for the sections*/
|
|
134
|
+
|
|
135
|
+
.taskText0,
|
|
136
|
+
.taskText1,
|
|
137
|
+
.taskText2,
|
|
138
|
+
.taskText3 {
|
|
139
|
+
fill: ${e.taskTextColor};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.task0,
|
|
143
|
+
.task1,
|
|
144
|
+
.task2,
|
|
145
|
+
.task3 {
|
|
146
|
+
fill: ${e.taskBkgColor};
|
|
147
|
+
stroke: ${e.taskBorderColor};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.taskTextOutside0,
|
|
151
|
+
.taskTextOutside2
|
|
152
|
+
{
|
|
153
|
+
fill: ${e.taskTextOutsideColor};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.taskTextOutside1,
|
|
157
|
+
.taskTextOutside3 {
|
|
158
|
+
fill: ${e.taskTextOutsideColor};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
/* Active task */
|
|
163
|
+
|
|
164
|
+
.active0,
|
|
165
|
+
.active1,
|
|
166
|
+
.active2,
|
|
167
|
+
.active3 {
|
|
168
|
+
fill: ${e.activeTaskBkgColor};
|
|
169
|
+
stroke: ${e.activeTaskBorderColor};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.activeText0,
|
|
173
|
+
.activeText1,
|
|
174
|
+
.activeText2,
|
|
175
|
+
.activeText3 {
|
|
176
|
+
fill: ${e.taskTextDarkColor} !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
/* Completed task */
|
|
181
|
+
|
|
182
|
+
.done0,
|
|
183
|
+
.done1,
|
|
184
|
+
.done2,
|
|
185
|
+
.done3 {
|
|
186
|
+
stroke: ${e.doneTaskBorderColor};
|
|
187
|
+
fill: ${e.doneTaskBkgColor};
|
|
188
|
+
stroke-width: 2;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.doneText0,
|
|
192
|
+
.doneText1,
|
|
193
|
+
.doneText2,
|
|
194
|
+
.doneText3 {
|
|
195
|
+
fill: ${e.taskTextDarkColor} !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Done task text displayed outside the bar sits against the diagram background,
|
|
199
|
+
not against the done-task bar, so it must use the outside/contrast color. */
|
|
200
|
+
.doneText0.taskTextOutsideLeft,
|
|
201
|
+
.doneText0.taskTextOutsideRight,
|
|
202
|
+
.doneText1.taskTextOutsideLeft,
|
|
203
|
+
.doneText1.taskTextOutsideRight,
|
|
204
|
+
.doneText2.taskTextOutsideLeft,
|
|
205
|
+
.doneText2.taskTextOutsideRight,
|
|
206
|
+
.doneText3.taskTextOutsideLeft,
|
|
207
|
+
.doneText3.taskTextOutsideRight {
|
|
208
|
+
fill: ${e.taskTextOutsideColor} !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/* Tasks on the critical line */
|
|
213
|
+
|
|
214
|
+
.crit0,
|
|
215
|
+
.crit1,
|
|
216
|
+
.crit2,
|
|
217
|
+
.crit3 {
|
|
218
|
+
stroke: ${e.critBorderColor};
|
|
219
|
+
fill: ${e.critBkgColor};
|
|
220
|
+
stroke-width: 2;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.activeCrit0,
|
|
224
|
+
.activeCrit1,
|
|
225
|
+
.activeCrit2,
|
|
226
|
+
.activeCrit3 {
|
|
227
|
+
stroke: ${e.critBorderColor};
|
|
228
|
+
fill: ${e.activeTaskBkgColor};
|
|
229
|
+
stroke-width: 2;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.doneCrit0,
|
|
233
|
+
.doneCrit1,
|
|
234
|
+
.doneCrit2,
|
|
235
|
+
.doneCrit3 {
|
|
236
|
+
stroke: ${e.critBorderColor};
|
|
237
|
+
fill: ${e.doneTaskBkgColor};
|
|
238
|
+
stroke-width: 2;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
shape-rendering: crispEdges;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.milestone {
|
|
244
|
+
transform: rotate(45deg) scale(0.8,0.8);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.milestoneText {
|
|
248
|
+
font-style: italic;
|
|
249
|
+
}
|
|
250
|
+
.doneCritText0,
|
|
251
|
+
.doneCritText1,
|
|
252
|
+
.doneCritText2,
|
|
253
|
+
.doneCritText3 {
|
|
254
|
+
fill: ${e.taskTextDarkColor} !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
|
|
258
|
+
.doneCritText0.taskTextOutsideLeft,
|
|
259
|
+
.doneCritText0.taskTextOutsideRight,
|
|
260
|
+
.doneCritText1.taskTextOutsideLeft,
|
|
261
|
+
.doneCritText1.taskTextOutsideRight,
|
|
262
|
+
.doneCritText2.taskTextOutsideLeft,
|
|
263
|
+
.doneCritText2.taskTextOutsideRight,
|
|
264
|
+
.doneCritText3.taskTextOutsideLeft,
|
|
265
|
+
.doneCritText3.taskTextOutsideRight {
|
|
266
|
+
fill: ${e.taskTextOutsideColor} !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.vert {
|
|
270
|
+
stroke: ${e.vertLineColor};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.vertText {
|
|
274
|
+
font-size: 15px;
|
|
275
|
+
text-anchor: middle;
|
|
276
|
+
fill: ${e.vertLineColor} !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.activeCritText0,
|
|
280
|
+
.activeCritText1,
|
|
281
|
+
.activeCritText2,
|
|
282
|
+
.activeCritText3 {
|
|
283
|
+
fill: ${e.taskTextDarkColor} !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.titleText {
|
|
287
|
+
text-anchor: middle;
|
|
288
|
+
font-size: 18px;
|
|
289
|
+
fill: ${e.titleColor||e.textColor};
|
|
290
|
+
font-family: ${e.fontFamily};
|
|
291
|
+
}
|
|
292
|
+
`,`getStyles`)};export{bt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{n as createGitGraphServices}from"./chunk-KI3K4JFJ-AR6SSfUs.js";import"./chunk-FOHPRMQF-DhwWuAwv.js";
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import{t as e}from"./chunk-2Q5K7J3B-C1jixKkw.js";import{t}from"./chunk-JWPE2WC7-DVXcaiue.js";import{g as n,i as r,m as i}from"./chunk-75Z2AOVW-s9GsKoLq.js";import{H as a,K as o,U as s,Y as c,a as l,b as u,f as d,s as f,v as p,w as m,x as h,y as g}from"./chunk-DU6HZSFF-Kve-uAsf.js";import{t as _}from"./chunk-X3CZISLH-NOpCnvgE.js";import{n as v}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as y}from"./mermaid-parser.core-BR4wyv6_.js";import{Bt as b}from"./vendor-utils-BXzsw95K.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=d.gitGraph,S=v(()=>r({...ee,...u().gitGraph}),`getConfig`),C=new e(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return i({length:7})}v(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}v(T,`uniqBy`);var te=v(function(e){C.records.direction=e},`setDirection`),ne=v(function(e){_.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{C.records.options=JSON.parse(e)}catch(e){_.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),re=v(function(){return C.records.options},`getOptions`),ie=v(function(e){let t=e.msg,n=e.id,r=e.type,i=e.tags;_.info(`commit`,t,n,r,i),_.debug(`Entering commit:`,t,n,r,i);let a=S();n=f.sanitizeText(n,a),t=f.sanitizeText(t,a),i=i?.map(e=>f.sanitizeText(e,a));let o={id:n||C.records.seq+`-`+w(),message:t,seq:C.records.seq++,type:r??x.NORMAL,tags:i??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=o,_.info(`main branch`,a.mainBranchName),C.records.commits.has(o.id)&&_.warn(`Commit ID ${o.id} already exists`),C.records.commits.set(o.id,o),C.records.branches.set(C.records.currBranch,o.id),_.debug(`in pushCommit `+o.id)},`commit`),ae=v(function(e){let t=e.name,n=e.order;if(t=f.sanitizeText(t,S()),C.records.branches.has(t))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 ${t}")`);C.records.branches.set(t,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(t,{name:t,order:n}),E(t),_.debug(`in createBranch`)},`branch`),oe=v(e=>{let t=e.branch,n=e.id,r=e.type,i=e.tags,a=S();t=f.sanitizeText(t,a),n&&=f.sanitizeText(n,a);let o=C.records.branches.get(C.records.currBranch),s=C.records.branches.get(t),c=o?C.records.commits.get(o):void 0,l=s?C.records.commits.get(s):void 0;if(c&&l&&c.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(C.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(c===void 0||!c){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!C.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(c===l){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&C.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${r} ${i?.join(` `)}`,token:`merge ${t} ${n} ${r} ${i?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${i?.join(` `)}`]},e}let u=s||``,d={id:n||`${C.records.seq}-${w()}`,message:`merged branch ${t} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,u],branch:C.records.currBranch,type:x.MERGE,customType:r,customId:!!n,tags:i??[]};C.records.head=d,C.records.commits.set(d.id,d),C.records.branches.set(C.records.currBranch,d.id),_.debug(C.records.branches),_.debug(`in mergeBranch`)},`merge`),se=v(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;_.debug(`Entering cherryPick:`,t,n,r);let a=S();if(t=f.sanitizeText(t,a),n=f.sanitizeText(n,a),r=r?.map(e=>f.sanitizeText(e,a)),i=f.sanitizeText(i,a),!t||!C.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(t);if(o===void 0||!o)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(i&&!(Array.isArray(o.parents)&&o.parents.includes(i)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let s=o.branch;if(o.type===x.MERGE&&!i)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!C.records.commits.has(n)){if(s===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=C.records.branches.get(C.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let a=C.records.commits.get(e);if(a===void 0||!a){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let c={id:C.records.seq+`-`+w(),message:`cherry-picked ${o?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,o.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${o.id}${o.type===x.MERGE?`|parent:${i}`:``}`]};C.records.head=c,C.records.commits.set(c.id,c),C.records.branches.set(C.records.currBranch,c.id),_.debug(C.records.branches),_.debug(`in cherryPick`)}},`cherryPick`),E=v(function(e){if(e=f.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}v(D,`upsert`);function O(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let r=[n,t.id,t.seq];for(let e in C.records.branches)C.records.branches.get(e)===t.id&&r.push(e);if(_.debug(r.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=C.records.commits.get(t.parents[0]);D(e,t,n),t.parents[1]&&e.push(C.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=C.records.commits.get(t.parents[0]);D(e,t,n)}e=T(e,e=>e.id),O(e)}v(O,`prettyPrintCommitHistory`);var ce=v(function(){_.debug(C.records.commits);let e=k()[0];O([e])},`prettyPrint`),le=v(function(){C.reset(),l()},`clear`),ue=v(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=v(function(){return C.records.branches},`getBranches`),fe=v(function(){return C.records.commits},`getCommits`),k=v(function(){let e=[...C.records.commits.values()];return e.forEach(function(e){_.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:v(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:v(function(){return C.records.direction},`getDirection`),getHead:v(function(){return C.records.head},`getHead`),setAccTitle:s,getAccTitle:g,getAccDescription:p,setAccDescription:a,setDiagramTitle:o,getDiagramTitle:m},pe=v((e,n)=>{t(e,n),e.dir&&n.setDirection(e.dir);for(let t of e.statements)me(t,n)},`populate`),me=v((e,t)=>{let n={Commit:v(e=>t.commit(he(e)),`Commit`),Branch:v(e=>t.branch(ge(e)),`Branch`),Merge:v(e=>t.merge(_e(e)),`Merge`),Checkout:v(e=>t.checkout(ve(e)),`Checkout`),CherryPicking:v(e=>t.cherryPick(ye(e)),`CherryPicking`)}[e.$type];n?n(e):_.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),he=v(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=v(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=v(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=v(e=>e.branch,`parseCheckout`),ye=v(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:v(async e=>{let t=await y(`gitGraph`,e);_.debug(t),pe(t,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=v((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,Se=v(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),q=v(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),J=v(e=>{let t,n,r;return K===`BT`?(n=v((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=v((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),Ce=v(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),we=v((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Ee(n),i=Math.max(r,i)):a.push(n),De(n,r)}),r=i,a.forEach(e=>{Oe(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Ce(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),Te=v(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Ee=v(e=>Te(e)+M,`calculateCommitPosition`),De=v((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),Oe=v((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),ke=v((e,t,n,r,i,a)=>{let{theme:o}=h(),s=I.has(o??``),c=R.has(o??``),l=xe.has(o??``);if(a===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===x.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===x.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),Ae=v((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel)){if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),je=v((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
2
|
+
${r-a/2-N/2},${l+P}
|
|
3
|
+
${r-a/2-N/2},${l-P}
|
|
4
|
+
${n.posWithOffset-a/2-N},${l-s-P}
|
|
5
|
+
${n.posWithOffset+a/2+N},${l-s-P}
|
|
6
|
+
${n.posWithOffset+a/2+N},${l+s+P}
|
|
7
|
+
${n.posWithOffset-a/2-N},${l+s+P}`),t.attr(`cy`,l).attr(`cx`,r-a/2+N/2).attr(`r`,1.5).attr(`class`,`tag-hole`),K===`TB`||K===`BT`){let o=r+c;i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
8
|
+
${n.x},${o+2}
|
|
9
|
+
${n.x},${o-2}
|
|
10
|
+
${n.x+j},${o-s-2}
|
|
11
|
+
${n.x+j+a+4},${o-s-2}
|
|
12
|
+
${n.x+j+a+4},${o+s+2}
|
|
13
|
+
${n.x+j},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+N/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),Me=v(e=>{switch(e.customType??e.type){case x.NORMAL:return`commit-normal`;case x.REVERSE:return`commit-reverse`;case x.HIGHLIGHT:return`commit-highlight`;case x.MERGE:return`commit-merge`;case x.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),Ne=v((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=J(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+M:t===`BT`?(r.get(e.id)??i).y-M:a.x+M}}else if(t===`TB`)return H;else if(t===`BT`)return(r.get(e.id)??i).y-M;else return 0;return 0},`calculatePosition`),Pe=v((e,t,n)=>{let r=K===`BT`&&n?t:t+j,i=B.get(e.branch)?.pos,a=K===`TB`||K===`BT`?B.get(e.branch)?.pos:r;if(a===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let o=I.has(h().theme??``);return{x:a,y:K===`TB`||K===`BT`?r:i+(o?L/2+1:-2),posWithOffset:r}},`getCommitPosition`),Y=v((e,t,n,r)=>{let i=e.append(`g`).attr(`class`,`commit-bullets`),a=e.append(`g`).attr(`class`,`commit-labels`),o=K===`TB`||K===`BT`?H:0,s=[...t.keys()],c=r.parallelCommits??!1,l=v((e,n)=>{let r=t.get(e)?.seq,i=t.get(n)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),u=s.sort(l);K===`BT`&&(c&&we(u,t,o),u=u.reverse()),u.forEach(e=>{let s=t.get(e);if(!s)throw Error(`Commit not found for key ${e}`);c&&(o=Ne(s,K,o,V));let l=Pe(s,o,c);if(n){let e=Me(s),t=s.customType??s.type,n=B.get(s.branch)?.index??0;ke(i,s,l,e,n,t),Ae(a,s,l,o,r),je(a,s,l,o)}K===`TB`||K===`BT`?V.set(s.id,{x:l.x,y:l.posWithOffset}):V.set(s.id,{x:l.posWithOffset,y:l.y}),o=K===`BT`&&c?o+M:o+M+j,o>G&&(G=o)})},`drawCommits`),Fe=v((e,t,n,r,i)=>{let a=(K===`TB`||K===`BT`?n.x<r.x:n.y<r.y)?t.branch:e.branch,o=v(e=>e.branch===a,`isOnBranchToGetCurve`),s=v(n=>n.seq>e.seq&&n.seq<t.seq,`isBetweenCommits`);return[...i.values()].some(e=>s(e)&&o(e))},`shouldRerouteArrow`),X=v((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:W.every(e=>Math.abs(e-r)>=10)?(W.push(r),r):X(e,t-Math.abs(e-t)/5,n+1)},`findLane`),Ie=v((e,t,n,r)=>{let{theme:i}=h(),a=R.has(i??``),o=V.get(t.id),s=V.get(n.id);if(o===void 0||s===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let c=Fe(t,n,o,s,r),l=``,u=``,d=0,f=0,p=B.get(n.branch)?.index;n.type===x.MERGE&&t.id!==n.parents[0]&&(p=B.get(t.branch)?.index);let m;if(c){l=`A 10 10, 0, 0, 0,`,u=`A 10 10, 0, 0, 1,`,d=10,f=10;let e=o.y<s.y?X(o.y,s.y):X(s.y,o.y),n=o.x<s.x?X(o.x,s.x):X(s.x,o.x);K===`TB`?o.x<s.x?m=`M ${o.x} ${o.y} L ${n-d} ${o.y} ${u} ${n} ${o.y+f} L ${n} ${s.y-d} ${l} ${n+f} ${s.y} L ${s.x} ${s.y}`:(p=B.get(t.branch)?.index,m=`M ${o.x} ${o.y} L ${n+d} ${o.y} ${l} ${n} ${o.y+f} L ${n} ${s.y-d} ${u} ${n-f} ${s.y} L ${s.x} ${s.y}`):K===`BT`?o.x<s.x?m=`M ${o.x} ${o.y} L ${n-d} ${o.y} ${l} ${n} ${o.y-f} L ${n} ${s.y+d} ${u} ${n+f} ${s.y} L ${s.x} ${s.y}`:(p=B.get(t.branch)?.index,m=`M ${o.x} ${o.y} L ${n+d} ${o.y} ${u} ${n} ${o.y-f} L ${n} ${s.y+d} ${l} ${n-f} ${s.y} L ${s.x} ${s.y}`):o.y<s.y?m=`M ${o.x} ${o.y} L ${o.x} ${e-d} ${l} ${o.x+f} ${e} L ${s.x-d} ${e} ${u} ${s.x} ${e+f} L ${s.x} ${s.y}`:(p=B.get(t.branch)?.index,m=`M ${o.x} ${o.y} L ${o.x} ${e+d} ${u} ${o.x+f} ${e} L ${s.x-d} ${e} ${l} ${s.x} ${e-f} L ${s.x} ${s.y}`)}else l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,d=20,f=20,K===`TB`?(o.x<s.x&&(m=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-d} ${l} ${o.x+f} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${u} ${s.x} ${o.y+f} L ${s.x} ${s.y}`),o.x>s.x&&(l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,d=20,f=20,m=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-d} ${u} ${o.x-f} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+d} ${o.y} ${l} ${s.x} ${o.y+f} L ${s.x} ${s.y}`),o.x===s.x&&(m=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):K===`BT`?(o.x<s.x&&(m=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+d} ${u} ${o.x+f} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${l} ${s.x} ${o.y-f} L ${s.x} ${s.y}`),o.x>s.x&&(l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,d=20,f=20,m=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+d} ${l} ${o.x-f} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+d} ${o.y} ${u} ${s.x} ${o.y-f} L ${s.x} ${s.y}`),o.x===s.x&&(m=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):(o.y<s.y&&(m=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${u} ${s.x} ${o.y+f} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y-d} ${l} ${o.x+f} ${s.y} L ${s.x} ${s.y}`),o.y>s.y&&(m=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${l} ${s.x} ${o.y-f} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y+d} ${u} ${o.x+f} ${s.y} L ${s.x} ${s.y}`),o.y===s.y&&(m=`M ${o.x} ${o.y} L ${s.x} ${s.y}`));if(m===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,m).attr(`class`,`arrow arrow`+z(p,F,a))},`drawArrow`),Le=v((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{Ie(n,t.get(e),r,t)})})},`drawArrows`),Re=v((e,t,n,r)=>{let{look:i,theme:a,themeVariables:o}=h(),{dropShadow:s,THEME_COLOR_LIMIT:c}=o,l=I.has(a??``),u=R.has(a??``),d=e.append(`g`);t.forEach((e,t)=>{let a=z(t,l?c:F,u),o=B.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let f=K===`TB`||K===`BT`?o:l?o+L/2+1:o-2,p=d.append(`line`);p.attr(`x1`,0),p.attr(`y1`,f),p.attr(`x2`,G),p.attr(`y2`,f),p.attr(`class`,`branch branch`+a),K===`TB`?(p.attr(`y1`,H),p.attr(`x1`,o),p.attr(`y2`,G),p.attr(`x2`,o)):K===`BT`&&(p.attr(`y1`,G),p.attr(`x1`,o),p.attr(`y2`,H),p.attr(`x2`,o)),W.push(f);let m=e.name,h=q(m),g=d.insert(`rect`),_=d.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+a);_.node().appendChild(h);let v=h.getBBox(),y=l?0:4,b=l?16:0,x=l?L:0;i===`neo`&&g.attr(`data-look`,`neo`),g.attr(`class`,`branchLabelBkg label`+a).attr(`style`,i===`neo`?`filter:${l?`url(#${r}-drop-shadow)`:s}`:``).attr(`rx`,y).attr(`ry`,y).attr(`x`,-v.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-v.height/2+10).attr(`width`,v.width+18+b).attr(`height`,v.height+4+x),_.attr(`transform`,`translate(`+(-v.width-14-(n.rotateCommitLabel===!0?30:0)+b/2)+`, `+(f-v.height/2-2)+`)`),K===`TB`?(g.attr(`x`,o-v.width/2-10).attr(`y`,0),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, 0)`),l&&(g.attr(`transform`,`translate(${-b/2-3}, ${-x-10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(-x*2+7)+`)`))):K===`BT`?(g.attr(`x`,o-v.width/2-10).attr(`y`,G),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+G+`)`),l&&(g.attr(`transform`,`translate(${-b/2-3}, ${x+10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(G+x*2+4)+`)`))):g.attr(`transform`,`translate(-19, `+(f-12-x/2)+`)`)})},`drawBranches`),ze=v(function(e,t,n,r,i){return B.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(K===`TB`||K===`BT`?r.width/2:0),t},`setBranchPosition`),Be={draw:v(function(e,t,r,i){Se(),_.debug(`in gitgraph renderer`,e+`
|
|
14
|
+
`,`id:`,t,r);let a=i.db;if(!a.getConfig){_.error(`getConfig method is not available on db`);return}let o=a.getConfig(),s=o.rotateCommitLabel??!1;U=a.getCommits();let l=a.getBranchesAsObjArray();K=a.getDirection();let u=b(`[id="${t}"]`),{look:d,theme:f,themeVariables:p}=h(),{useGradient:m,gradientStart:g,gradientStop:v,filterColor:y}=p;if(m){let e=u.append(`defs`).append(`linearGradient`).attr(`id`,t+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,v).attr(`stop-opacity`,1)}d===`neo`&&I.has(f??``)&&u.append(`defs`).append(`filter`).attr(`id`,t+`-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`,y);let x=0;l.forEach((e,t)=>{let n=q(e.name),r=u.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let o=n.getBBox();x=ze(e.name,x,t,o,s),a.remove(),i.remove(),r.remove()}),Y(u,U,!1,o),o.showBranches&&Re(u,l,o,t),Le(u,U),Y(u,U,!0,o),n.insertTitle(u,`gitTitleText`,o.titleTopMargin??0,a.getDiagramTitle()),c(void 0,u,o.diagramPadding,o.useMaxWidth)},`draw`)},Z=8,Q=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),$=new Set([`redux-color`,`redux-dark-color`]),Ve=new Set([`neo`,`neo-dark`]),He=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Ue=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),We=v(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r<e.THEME_COLOR_LIMIT;r++)n+=`
|
|
15
|
+
.label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
|
+
`;return n},`genGitGraphGradient`),Ge=v(e=>{let{theme:t,themeVariables:n}=u(),{borderColorArray:r}=n,i=Q.has(t);if(Ve.has(t)){let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(n===0)t+=`
|
|
17
|
+
.branch-label${n} { fill: ${e.nodeBorder};}
|
|
18
|
+
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
19
|
+
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
20
|
+
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
21
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
22
|
+
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
23
|
+
${We(e)}`;else{let r=n%Z;t+=`
|
|
24
|
+
.branch-label${n} { fill: ${e[`gitBranchLabel`+r]}; }
|
|
25
|
+
.commit${n} { stroke: ${e[`git`+r]}; fill: ${e[`git`+r]}; }
|
|
26
|
+
.commit-highlight${n} { stroke: ${e[`gitInv`+r]}; fill: ${e[`gitInv`+r]}; }
|
|
27
|
+
.arrow${n} { stroke: ${e[`git`+r]}; }
|
|
28
|
+
`}return t}if($.has(t)){let n=``;for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
|
|
29
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
|
|
30
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
31
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
|
|
32
|
+
.label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:``} }
|
|
33
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
34
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
35
|
+
`;else{let o=a%r.length;n+=`
|
|
36
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
|
|
37
|
+
.commit${a} { stroke: ${r[o]}; fill: ${r[o]}; }
|
|
38
|
+
.commit-highlight${a} { stroke: ${r[o]}; fill: ${r[o]}; }
|
|
39
|
+
.label${a} { fill: ${He.has(t)?e.mainBkg:r[o]}; stroke: ${r[o]}; stroke-width: ${e.strokeWidth}; }
|
|
40
|
+
.arrow${a} { stroke: ${r[o]}; }
|
|
41
|
+
`}return n}{let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)t+=`
|
|
42
|
+
.branch-label${n} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
|
|
43
|
+
.commit${n} { stroke: ${e.nodeBorder}; }
|
|
44
|
+
.commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
45
|
+
.label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:``}}
|
|
46
|
+
.arrow${n} { stroke: ${e.nodeBorder}; }
|
|
47
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
48
|
+
.commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
|
|
49
|
+
`;return t}},`genColor`),Ke=v(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%Z;return`
|
|
50
|
+
.branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; }
|
|
51
|
+
.commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; }
|
|
52
|
+
.commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; }
|
|
53
|
+
.label${t} { fill: ${e[`git`+n]}; }
|
|
54
|
+
.arrow${t} { stroke: ${e[`git`+n]}; }
|
|
55
|
+
`}).join(`
|
|
56
|
+
`)}`,`normalTheme`),qe={parser:be,db:A,renderer:Be,styles:v(e=>{let{theme:t}=u(),n=Ue.has(t);return`
|
|
57
|
+
.commit-id,
|
|
58
|
+
.commit-msg,
|
|
59
|
+
.branch-label {
|
|
60
|
+
fill: lightgrey;
|
|
61
|
+
color: lightgrey;
|
|
62
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
63
|
+
font-family: var(--mermaid-font-family);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
${n?Ge(e):Ke(e)}
|
|
67
|
+
|
|
68
|
+
.branch {
|
|
69
|
+
stroke-width: ${e.strokeWidth};
|
|
70
|
+
stroke: ${e.commitLineColor??e.lineColor};
|
|
71
|
+
stroke-dasharray: ${n?`4 2`:`2`};
|
|
72
|
+
}
|
|
73
|
+
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n?e.nodeBorder:e.commitLabelColor}; ${n?`font-weight:${e.noteFontWeight};`:``}}
|
|
74
|
+
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n?`transparent`:e.commitLabelBackground}; opacity: ${n?``:.5}; }
|
|
75
|
+
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
76
|
+
.tag-label-bkg { fill: ${n?e.mainBkg:e.tagLabelBackground}; stroke: ${n?e.nodeBorder:e.tagLabelBorder}; ${n?`filter:${e.dropShadow}`:``} }
|
|
77
|
+
.tag-hole { fill: ${e.textColor}; }
|
|
78
|
+
|
|
79
|
+
.commit-merge {
|
|
80
|
+
stroke: ${n?e.mainBkg:e.primaryColor};
|
|
81
|
+
fill: ${n?e.mainBkg:e.primaryColor};
|
|
82
|
+
}
|
|
83
|
+
.commit-reverse {
|
|
84
|
+
stroke: ${n?e.mainBkg:e.primaryColor};
|
|
85
|
+
fill: ${n?e.mainBkg:e.primaryColor};
|
|
86
|
+
stroke-width: ${n?e.strokeWidth:3};
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-outer {
|
|
89
|
+
}
|
|
90
|
+
.commit-highlight-inner {
|
|
91
|
+
stroke: ${n?e.mainBkg:e.primaryColor};
|
|
92
|
+
fill: ${n?e.mainBkg:e.primaryColor};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.arrow {
|
|
96
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
+
stroke-width: ${Q.has(t)?e.strokeWidth:8};
|
|
98
|
+
stroke-linecap: round;
|
|
99
|
+
fill: none
|
|
100
|
+
}
|
|
101
|
+
.gitTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
fill: ${e.textColor};
|
|
105
|
+
}
|
|
106
|
+
`},`getStyles`)};export{qe as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as e,L as t,O as n,R as r,S as i,b as a,f as o,k as s,l as c,x as l}from"./vendor-utils-
|
|
1
|
+
import{I as e,L as t,O as n,R as r,S as i,b as a,f as o,k as s,l as c,x as l}from"./vendor-utils-BXzsw95K.js";var u=`\0`,d=`\0`,f=``,p=class{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=t(void 0),this._defaultEdgeLabelFn=t(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[d]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return r(e)||(e=t(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return e(this._nodes)}sources(){var e=this;return n(this.nodes(),function(t){return l(e._in[t])})}sinks(){var e=this;return n(this.nodes(),function(t){return l(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return s(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=d,this._children[e]={},this._children[d][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var n=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],s(this.children(t),e=>{this.setParent(e)}),delete this._children[t]),s(e(this._in[t]),n),delete this._in[t],delete this._preds[t],s(e(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(a(t))t=d;else{t+=``;for(var n=t;!a(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==d)return t}}children(t){if(a(t)&&(t=d),this._isCompound){var n=this._children[t];if(n)return e(n)}else if(t===d)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var n=this._preds[t];if(n)return e(n)}successors(t){var n=this._sucs[t];if(n)return e(n)}neighbors(e){var t=this.predecessors(e);if(t)return c(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;s(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),s(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&s(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return r(e)||(e=t(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return i(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return o(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,o=arguments[0];typeof o==`object`&&o&&`v`in o?(e=o.v,t=o.w,n=o.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=o,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,a(n)||(n=``+n);var s=g(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return i&&(this._edgeLabels[s]=r),this;if(!a(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?r:this._defaultEdgeLabelFn(e,t,n);var c=_(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[s]=c,m(this._preds[t],e),m(this._sucs[e],t),this._in[t][s]=c,this._out[e][s]=c,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?v(this._isDirected,arguments[0]):g(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?v(this._isDirected,arguments[0]):g(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?v(this._isDirected,arguments[0]):g(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],h(this._preds[t],e),h(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var r=this._in[e];if(r){var a=i(r);return t?n(a,function(e){return e.v===t}):a}}outEdges(e,t){var r=this._out[e];if(r){var a=i(r);return t?n(a,function(e){return e.w===t}):a}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}};p.prototype._nodeCount=0,p.prototype._edgeCount=0;function m(e,t){e[t]?e[t]++:e[t]=1}function h(e,t){--e[t]||delete e[t]}function g(e,t,n,r){var i=``+t,o=``+n;if(!e&&i>o){var s=i;i=o,o=s}return i+f+o+f+(a(r)?u:r)}function _(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function v(e,t){return g(e,t.v,t.w,t.name)}export{p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){for(var t={},n=e.split(` `),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t=e(`abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while`),n=e(`catch class def do else enum finally for if interface switch trait try while`),r=e(`return break continue`),i=e(`null true false this`),a;function o(e,o){var c=e.next();if(c==`"`||c==`'`)return s(c,e,o);if(/[\[\]{}\(\),;\:\.]/.test(c))return a=c,null;if(/\d/.test(c))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),`number`;if(c==`/`){if(e.eat(`*`))return o.tokenize.push(u),u(e,o);if(e.eat(`/`))return e.skipToEnd(),`comment`;if(d(o.lastToken,!1))return s(c,e,o)}if(c==`-`&&e.eat(`>`))return a=`->`,null;if(/[+\-*&%=<>!?|\/~]/.test(c))return e.eatWhile(/[+\-*&%=<>|~]/),`operator`;if(e.eatWhile(/[\w\$_]/),c==`@`)return e.eatWhile(/[\w\$_\.]/),`meta`;if(o.lastToken==`.`)return`property`;if(e.eat(`:`))return a=`proplabel`,`property`;var l=e.current();return i.propertyIsEnumerable(l)?`atom`:t.propertyIsEnumerable(l)?(n.propertyIsEnumerable(l)?a=`newstatement`:r.propertyIsEnumerable(l)&&(a=`standalone`),`keyword`):`variable`}o.isBase=!0;function s(e,t,n){var r=!1;if(e!=`/`&&t.eat(e)){if(t.eat(e))r=!0;else return`string`}function i(t,n){for(var i=!1,a,o=!r;(a=t.next())!=null;){if(a==e&&!i){if(!r)break;if(t.match(e+e)){o=!0;break}}if(e==`"`&&a==`$`&&!i){if(t.eat(`{`))return n.tokenize.push(c()),`string`;if(t.match(/^\w/,!1))return n.tokenize.push(l),`string`}i=!i&&a==`\\`}return o&&n.tokenize.pop(),`string`}return n.tokenize.push(i),i(t,n)}function c(){var e=1;function t(t,n){if(t.peek()==`}`){if(e--,e==0)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else t.peek()==`{`&&e++;return o(t,n)}return t.isBase=!0,t}function l(e,t){var n=e.match(/^(\.|[\w\$_]+)/);return n&&e.match(n[0]==`.`?/^[\w$_]/:/^\./)||t.tokenize.pop(),n?n[0]==`.`?null:`variable`:t.tokenize[t.tokenize.length-1](e,t)}function u(e,t){for(var n=!1,r;r=e.next();){if(r==`/`&&n){t.tokenize.pop();break}n=r==`*`}return`comment`}function d(e,t){return!e||e==`operator`||e==`->`||/[\.\[\{\(,;:]/.test(e)||e==`newstatement`||e==`keyword`||e==`proplabel`||e==`standalone`&&!t}function f(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function p(e,t,n){return e.context=new f(e.indented,t,n,null,e.context)}function m(e){var t=e.context.type;return(t==`)`||t==`]`||t==`}`)&&(e.indented=e.context.indented),e.context=e.context.prev}var h={name:`groovy`,startState:function(e){return{tokenize:[o],context:new f(-e,0,`top`,!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(n.align??(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,n.type==`statement`&&!d(t.lastToken,!0)&&(m(t),n=t.context)),e.eatSpace())return null;a=null;var r=t.tokenize[t.tokenize.length-1](e,t);if(r==`comment`)return r;if(n.align??(n.align=!0),(a==`;`||a==`:`)&&n.type==`statement`)m(t);else if(a==`->`&&n.type==`statement`&&n.prev.type==`}`)m(t),t.context.align=!1;else if(a==`{`)p(t,e.column(),`}`);else if(a==`[`)p(t,e.column(),`]`);else if(a==`(`)p(t,e.column(),`)`);else if(a==`}`){for(;n.type==`statement`;)n=m(t);for(n.type==`}`&&(n=m(t));n.type==`statement`;)n=m(t)}else a==n.type?m(t):(n.type==`}`||n.type==`top`||n.type==`statement`&&a==`newstatement`)&&p(t,e.column(),`statement`);return t.startOfLine=!1,t.lastToken=a||r,r},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),i=e.context;i.type==`statement`&&!d(e.lastToken,!0)&&(i=i.prev);var a=r==i.type;return i.type==`statement`?i.indented+(r==`{`?0:n.unit):i.align?i.column+ +!a:i.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,`'''`,`"""`]}}};export{h as groovy};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{n as t,t as n}from"./jsx-runtime-DZDtxMw1.js";import{t as r}from"./react-dom-W24aPQgI.js";var i=e(t(),1),a=r(),o=n(),s=8;function c(e){return e.kind!==`separator`}function l(e){if(e.matches(`:disabled`)||e.closest(`[hidden], [inert]`))return!1;for(let t=e;t;t=t.parentElement){let e=window.getComputedStyle(t);if(e.display===`none`||e.visibility===`hidden`||e.visibility===`collapse`)return!1}return e.tabIndex>=0||e.hasAttribute(`tabindex`)||e.isContentEditable}function u(e){return e.tabIndex>=0&&l(e)}function d(e,t,n){if(!(e instanceof HTMLElement))return null;let r=Array.from(document.querySelectorAll(`*`)).filter(e=>!t?.contains(e)&&u(e)),i=r.indexOf(e);return i<0||r.length<2?null:r[(i+n+r.length)%r.length]??null}function f(){let[e,t]=(0,i.useState)(null),n=(0,i.useCallback)(()=>t(null),[]),r=(0,i.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let n=e.currentTarget,r=document.activeElement,i=r&&n.contains(r)?r:l(n)?n:Array.from(n.querySelectorAll(`*`)).find(l)??r;if(`clientX`in e&&(e.clientX!==0||e.clientY!==0)){t({x:e.clientX,y:e.clientY,opener:i});return}let a=n.getBoundingClientRect();t({x:a.left+8,y:a.bottom,opener:i})},[]),a=(0,i.useCallback)(e=>{let n=e.getBoundingClientRect();t({x:n.left,y:n.bottom+2,opener:e})},[]);return{state:e,open:e!==null,openAt:r,openAtElement:a,close:n}}function p({state:e,entries:t,label:n,onClose:r,className:l}){let u=(0,i.useRef)(null),f=(0,i.useRef)(!0),p=(0,i.useRef)(null),m=(0,i.useCallback)(()=>{p.current!==null&&(window.cancelAnimationFrame(p.current),p.current=null)},[]),[h,g]=(0,i.useState)(null),_=(0,i.useRef)(r);_.current=r;let v=e?.x,y=e?.y,b=e?.opener;if((0,i.useEffect)(()=>m,[m]),(0,i.useLayoutEffect)(()=>{if(v===void 0||y===void 0){g(null);return}let e=u.current,t=e?.offsetWidth??0,n=e?.offsetHeight??0,r=window.innerWidth-t-s,i=window.innerHeight-n-s;g({x:Math.max(s,Math.min(v,r)),y:Math.max(s,Math.min(y>i?y-n:y,i))})},[v,y]),(0,i.useEffect)(()=>{if(v===void 0||y===void 0)return;m();let e=()=>_.current();f.current=!0,(u.current?.querySelector(`:is([role="menuitem"], [role="menuitemradio"]):not(:disabled)`))?.focus({preventScroll:!0});let t=t=>{u.current&&t.target instanceof Node&&u.current.contains(t.target)||e()},n=t=>{t.key===`Escape`&&(t.preventDefault(),e())},r=()=>e(),i=t=>{u.current&&t.target instanceof Node&&u.current.contains(t.target)||e()};return window.addEventListener(`pointerdown`,t,!0),window.addEventListener(`keydown`,n),window.addEventListener(`blur`,r),window.addEventListener(`resize`,r),window.addEventListener(`scroll`,i,!0),()=>{window.removeEventListener(`pointerdown`,t,!0),window.removeEventListener(`keydown`,n),window.removeEventListener(`blur`,r),window.removeEventListener(`resize`,r),window.removeEventListener(`scroll`,i,!0),f.current&&b instanceof HTMLElement&&b.isConnected&&b.focus({preventScroll:!0})}},[v,y,b,m]),!e)return null;function x(e){let t=Array.from(u.current?.querySelectorAll(`:is([role="menuitem"], [role="menuitemradio"]):not(:disabled)`)??[]);if(!t.length)return;let n=t.indexOf(document.activeElement);t[e===`first`?0:e===`last`?t.length-1:(n+e+t.length)%t.length]?.focus({preventScroll:!0})}function S(e){let t={ArrowDown:1,ArrowUp:-1,Home:`first`,End:`last`}[e.key];if(t!==void 0)e.preventDefault(),x(t);else if(e.key===`Escape`)e.preventDefault(),r();else if(e.key===`Tab`){e.preventDefault();let t=d(b??null,u.current,e.shiftKey?-1:1);f.current=!1,r(),t?.focus({preventScroll:!0})}e.stopPropagation()}let C=h??e;return(0,a.createPortal)((0,o.jsx)(`div`,{ref:u,className:`jaw-context-menu${l?` ${l}`:``}`,role:`menu`,"aria-label":n,style:{left:C.x,top:C.y,visibility:h?`visible`:`hidden`},onKeyDown:S,onContextMenu:e=>e.preventDefault(),children:t.map(t=>c(t)?(0,o.jsxs)(`button`,{type:`button`,role:t.checked===void 0?`menuitem`:`menuitemradio`,"aria-checked":t.checked,disabled:t.disabled,title:t.title,className:`jaw-context-menu-item${t.danger?` is-danger`:``}`,onClick:()=>{let n=u.current,i=e.opener;f.current=!1,r(),t.onSelect(),m(),p.current=window.requestAnimationFrame(()=>{p.current=null;let e=document.activeElement;(!e||e===document.body||!e.isConnected||(n?.contains(e)??!1))&&i instanceof HTMLElement&&i.isConnected&&i.focus({preventScroll:!0})})},children:[(0,o.jsx)(`span`,{className:`jaw-context-menu-icon`,"aria-hidden":`true`,children:t.icon}),(0,o.jsx)(`span`,{className:`jaw-context-menu-label`,children:t.label}),t.shortcut&&(0,o.jsx)(`kbd`,{className:`jaw-context-menu-shortcut`,"aria-hidden":`true`,children:t.shortcut})]},t.id):(0,o.jsx)(`div`,{className:`jaw-context-menu-separator`,role:`separator`},t.id))}),document.body)}var m={viewBox:`0 0 16 16`,width:15,height:15,fill:`none`,stroke:`currentColor`,strokeWidth:1.4,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,focusable:!1};function h(){return(0,o.jsx)(`svg`,{...m,children:(0,o.jsx)(`path`,{d:`M10.8 2.7a1.6 1.6 0 0 1 2.3 2.3L5.6 12.5l-3 .8.8-3Z`})})}function g(){return(0,o.jsx)(`svg`,{...m,children:(0,o.jsx)(`path`,{d:`M9.7 2.3 13.7 6.3M10.6 3.2 6.9 6.1l-2.5-.3-1 1 5.8 5.8 1-1-.3-2.5 2.9-3.7M5.9 10.1 2.5 13.5`})})}function _(){return(0,o.jsxs)(`svg`,{...m,children:[(0,o.jsx)(`rect`,{x:`2.3`,y:`3`,width:`11.4`,height:`3`,rx:`0.8`}),(0,o.jsx)(`path`,{d:`M3.3 6v6.2a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8V6M6.5 8.8h3`})]})}function v(){return(0,o.jsxs)(`svg`,{...m,children:[(0,o.jsx)(`path`,{d:`M1.8 8S4 3.8 8 3.8 14.2 8 14.2 8 12 12.2 8 12.2 1.8 8 1.8 8Z`}),(0,o.jsx)(`circle`,{cx:`8`,cy:`8`,r:`1.8`})]})}function y(){return(0,o.jsxs)(`svg`,{...m,children:[(0,o.jsx)(`rect`,{x:`5.3`,y:`5.3`,width:`8`,height:`8`,rx:`1.2`}),(0,o.jsx)(`path`,{d:`M10.7 5.3V3.5a.8.8 0 0 0-.8-.8H3.5a.8.8 0 0 0-.8.8v6.4a.8.8 0 0 0 .8.8h1.8`})]})}function b(){return(0,o.jsx)(`svg`,{...m,children:(0,o.jsx)(`path`,{d:`M2.3 4.3a1 1 0 0 1 1-1h3l1.4 1.5h5a1 1 0 0 1 1 1v6.4a1 1 0 0 1-1 1H3.3a1 1 0 0 1-1-1Z`})})}function x(){return(0,o.jsx)(`svg`,{...m,children:(0,o.jsx)(`path`,{d:`M6 3H3.5a.8.8 0 0 0-.8.8v8.7a.8.8 0 0 0 .8.8h8.7a.8.8 0 0 0 .8-.8V10M9 2.7h4.3V7M13.3 2.7 7.5 8.5`})})}function S(){return(0,o.jsx)(`svg`,{...m,children:(0,o.jsx)(`path`,{d:`M4.5 3v10l8-5Z`})})}function C(){return(0,o.jsx)(`svg`,{...m,children:(0,o.jsx)(`rect`,{x:`3.5`,y:`3.5`,width:`9`,height:`9`,rx:`1.4`})})}function w(){return(0,o.jsx)(`svg`,{...m,children:(0,o.jsx)(`path`,{d:`M13 8a5 5 0 1 1-1.5-3.6M13 2.5v3h-3`})})}function T(){return(0,o.jsx)(`svg`,{...m,children:(0,o.jsx)(`path`,{d:`M3 8.8l3.2 3.2L13 5.2`})})}function E(){return(0,o.jsxs)(`svg`,{...m,children:[(0,o.jsx)(`path`,{d:`M8.7 3.2 5.3 6H3v4h2.3l3.4 2.8Z`}),(0,o.jsx)(`path`,{d:`M11 6a3 3 0 0 1 0 4M12.9 4a5.4 5.4 0 0 1 0 8`})]})}function D(){return(0,o.jsxs)(`svg`,{...m,children:[(0,o.jsx)(`path`,{d:`M4.3 2.5H9l2.7 2.7v8.3H4.3Z`}),(0,o.jsx)(`path`,{d:`M9 2.5v2.7h2.7M6.2 8.6h3.6M6.2 10.8h2.6`})]})}export{x as a,h as c,w as d,E as f,f as h,D as i,g as l,p as m,T as n,v as o,C as p,y as r,b as s,_ as t,S as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`messages`,t=`clijaw_scope`,n=localStorage.getItem(t)||`default`;function r(e){n=e||`default`,localStorage.setItem(t,n)}function i(){return n}var a=null;function o(){return a||(a=new Promise((t,n)=>{let r=indexedDB.open(`clijaw`,3);r.onupgradeneeded=t=>{let n=r.result,i=t.oldVersion;if(i<2){n.objectStoreNames.contains(e)&&n.deleteObjectStore(e);let t=n.createObjectStore(e,{keyPath:`id`,autoIncrement:!0});t.createIndex(`timestamp`,`timestamp`),t.createIndex(`scope`,`scope`)}else if(i===2){let t=r.transaction.objectStore(e);t.indexNames.contains(`scope`)||t.createIndex(`scope`,`scope`)}},r.onsuccess=()=>{let e=r.result;e.onversionchange=()=>{e.close(),a=null},e.onclose=()=>{a=null},t(e)},r.onblocked=()=>{console.warn(`[idb-cache] DB upgrade blocked by another tab`)},r.onerror=()=>{a=null,n(r.error)}}),a)}var s=2592e6,c=!1;async function l(t){if(!c){c=!0;try{let r=Date.now()-s,i=t.transaction(e,`readwrite`);if(!i.objectStore(e).indexNames.contains(`timestamp`))return;let a=i.objectStore(e).index(`timestamp`).openCursor(IDBKeyRange.upperBound(r));a.onsuccess=()=>{let e=a.result;e&&((e.value.scope||`default`)!==n&&e.delete(),e.continue())}}catch(e){console.warn(`[idb-cache] stale-scope sweep failed:`,e)}}}async function u(t,r){let i=r??n;try{if(t.length===0)return;let n=await o();l(n);let r=n.transaction(e,`readwrite`),a=r.objectStore(e),s=a.index(`scope`).openCursor(IDBKeyRange.only(i));s.onsuccess=()=>{let e=s.result;if(e)e.delete(),e.continue();else for(let e of t)a.add({message_id:e.message_id??e.id,role:e.role,content:e.content,cli:e.cli??null,tool_log:e.tool_log??null,...e.trace_run_id===void 0?{}:{trace_run_id:e.trace_run_id},...e.session_id===void 0?{}:{session_id:e.session_id},timestamp:e.timestamp||Date.now(),scope:i})},await new Promise((e,t)=>{r.oncomplete=()=>e(),r.onerror=()=>t(r.error)})}catch(e){console.warn(`[idb-cache] cacheMessages failed:`,e)}}async function d(t){let r=t.scope??n;try{let n=(await o()).transaction(e,`readwrite`);n.objectStore(e).add({message_id:t.message_id??t.id,role:t.role,content:t.content,cli:t.cli??null,tool_log:t.tool_log??null,trace_run_id:t.trace_run_id??null,...t.session_id===void 0?{}:{session_id:t.session_id},timestamp:t.timestamp||Date.now(),scope:r}),await new Promise((e,t)=>{n.oncomplete=()=>e(),n.onerror=()=>t(n.error)})}catch(e){console.warn(`[idb-cache] upsertMessage failed:`,e)}}async function f(t,n,r,i,a){let s=a!==void 0&&Number.isSafeInteger(a)&&a>0?a:void 0;try{let a=(await o()).transaction(e,`readwrite`),c=a.objectStore(e).index(`scope`).openCursor(IDBKeyRange.only(r));c.onsuccess=()=>{let e=c.result;if(!e)return;let a=e.value;a.scope!==r||a.role!==`assistant`||a.trace_run_id!==t||i!==void 0&&a.session_id!==i||s!==void 0&&a.message_id!=null&&a.message_id!==s||e.update({...a,content:n,...s===void 0?{}:{message_id:s}}),e.continue()},await new Promise((e,t)=>{a.oncomplete=()=>e(),a.onerror=()=>t(a.error)})}catch(e){console.warn(`[idb-cache] replaceCachedAnswer failed:`,e)}}async function p(t){try{let r=await o(),i=t||n;return new Promise((t,n)=>{let a=r.transaction(e,`readonly`).objectStore(e).index(`scope`).getAll(i);a.onsuccess=()=>t(a.result),a.onerror=()=>n(a.error)})}catch(e){return console.warn(`[idb-cache] getScopedMessages failed:`,e),[]}}async function m(){try{(await o()).transaction(e,`readwrite`).objectStore(e).clear()}catch(e){console.warn(`[idb-cache] clearCache failed:`,e)}}async function h(){let t=n;if(!t)await m();else try{let n=(await o()).transaction(e,`readwrite`),r=n.objectStore(e).index(`scope`).openCursor(IDBKeyRange.only(t));r.onsuccess=()=>{let e=r.result;e&&(e.delete(),e.continue())},await new Promise((e,t)=>{n.oncomplete=()=>e(),n.onerror=()=>t(n.error)})}catch(e){console.warn(`[idb-cache] clearScopedCache failed:`,e)}}export{p as a,d as c,i,m as n,f as o,h as r,r as s,u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{r as clearScopedCache}from"./idb-cache-B9lPiu4R.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as refreshFileWidget}from"./iframe-renderer-Diy4kgO2.js";
|