@shawnstack/quickforge 1.7.4 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AgentProfilesPage-XNjuqJs7.js +1 -0
- package/dist/assets/ChatPanelHost-CuF-PZpc.js +292 -0
- package/dist/assets/CloudAccountSettingsPage-GJSoi6sO.js +1 -0
- package/dist/assets/PluginsPage-BQgp0qN-.js +1 -0
- package/dist/assets/ScheduledTasksPage-DdekATzq.js +2 -0
- package/dist/assets/{SettingsWorkspacePage-B53_eDf2.js → SettingsWorkspacePage-Cb54Ic91.js} +389 -378
- package/dist/assets/ShareLinksSettingsPage-C75WJpaF.js +1 -0
- package/dist/assets/SharedConversationPage-CjMtSQTW.js +1 -0
- package/dist/assets/{TerminalDock-Dgg-_ZmU.js → TerminalDock-D4zJBJc4.js} +2 -2
- package/dist/assets/WorkspaceInspector-D9kdnLDd.js +36 -0
- package/dist/assets/{abnfDiagram-VRR7QNED-Dy7veffk.js → abnfDiagram-VRR7QNED-CMhVoYUh.js} +1 -1
- package/dist/assets/{arc-Bo3p2lGy.js → arc-w21O0TLn.js} +1 -1
- package/dist/assets/architecture-TIHT7OUA-DMwFMHxq.js +1 -0
- package/dist/assets/{architectureDiagram-ZJ3FMSHR-Cwx8qOvu.js → architectureDiagram-ZJ3FMSHR-C52qL6Hg.js} +1 -1
- package/dist/assets/{blockDiagram-677ZJIJ3-BiuaAOFa.js → blockDiagram-677ZJIJ3-CM3XbLol.js} +1 -1
- package/dist/assets/{c4Diagram-LMCZKHZV-BTcGfhK2.js → c4Diagram-LMCZKHZV-D7Bh1ui1.js} +1 -1
- package/dist/assets/channel-Duu1CuH9.js +1 -0
- package/dist/assets/chunk-2Q5K7J3B-B6rHWc4S.js +1 -0
- package/dist/assets/{chunk-32BRIVSS-B9PuF_RF.js → chunk-32BRIVSS-xgrtbT8e.js} +1 -1
- package/dist/assets/{chunk-52WLFC77-3zGItfIM.js → chunk-52WLFC77-CDbaHw80.js} +1 -1
- package/dist/assets/{chunk-5FCAYU7R-DQ66qlmt.js → chunk-5FCAYU7R-CcSvVbPc.js} +1 -1
- package/dist/assets/{chunk-5HE753X5-CLqTO-VF.js → chunk-5HE753X5-erFpzzgx.js} +1 -1
- package/dist/assets/{chunk-5JV3BV7I-Csxv1jr6.js → chunk-5JV3BV7I-rEhN9F6G.js} +1 -1
- package/dist/assets/{chunk-5TONJI2A-BCQttpBr.js → chunk-5TONJI2A-D8L-QTwD.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-DEWJGSTb.js → chunk-5VM5RSS4-CjlfMBbM.js} +1 -1
- package/dist/assets/{chunk-7BUUIJ7U-DNorm9MM.js → chunk-7BUUIJ7U-CCcsI9XE.js} +1 -1
- package/dist/assets/{chunk-BIQX33UG-DgvY_BOT.js → chunk-BIQX33UG-FSqFbmb3.js} +1 -1
- package/dist/assets/{chunk-C7G6YPKG-DMvn9IPs.js → chunk-C7G6YPKG-ZMLUvfLy.js} +1 -1
- package/dist/assets/{chunk-CQNSW5MT-Dq2duUgr.js → chunk-CQNSW5MT-DZuBpk25.js} +1 -1
- package/dist/assets/{chunk-CYSBUYHQ-BovYyc4Y.js → chunk-CYSBUYHQ-CB26wsG0.js} +1 -1
- package/dist/assets/{chunk-EMLP6XTP-BMDOpuYN.js → chunk-EMLP6XTP-BbsM8oRw.js} +1 -1
- package/dist/assets/{chunk-EX3LRPZG-6eP2UPOf.js → chunk-EX3LRPZG-BcQhaqt7.js} +1 -1
- package/dist/assets/{chunk-FWX5IMBZ-D4q-wTSy.js → chunk-FWX5IMBZ-DrnrdrSu.js} +2 -2
- package/dist/assets/{chunk-HOUHSVGY-XjIcuzH7.js → chunk-HOUHSVGY-tdc-Z9eW.js} +1 -1
- package/dist/assets/{chunk-ICXQ74PX-YBXbanq9.js → chunk-ICXQ74PX-Cd7igVGt.js} +1 -1
- package/dist/assets/{chunk-JG7HCLWE-CcN3uNXF.js → chunk-JG7HCLWE-iXXGW8nf.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-Cwg6AUAt.js → chunk-JWPE2WC7-BZ87mXEv.js} +1 -1
- package/dist/assets/{chunk-MOJQB5TN-NNspcGIU.js → chunk-MOJQB5TN-CLTjV5ov.js} +1 -1
- package/dist/assets/{chunk-MOZMSUNE-pMJ_jMos.js → chunk-MOZMSUNE-B3SCBrRH.js} +1 -1
- package/dist/assets/{chunk-OGEWGWER-CJy-3Ldv.js → chunk-OGEWGWER-TgvkXkFX.js} +1 -1
- package/dist/assets/{chunk-OSBZ3O6U-D7cLHHOA.js → chunk-OSBZ3O6U-B9E2E5v1.js} +1 -1
- package/dist/assets/{chunk-PUDLZKDR-D5YBi1Pi.js → chunk-PUDLZKDR-C5GMVYup.js} +1 -1
- package/dist/assets/{chunk-Q4XR5HBZ-DYmqQdIf.js → chunk-Q4XR5HBZ-fo5-HsqY.js} +1 -1
- package/dist/assets/{chunk-QBLGF6JB-Bfcx00X0.js → chunk-QBLGF6JB-Dwfg8sKc.js} +1 -1
- package/dist/assets/{chunk-R7FJI6CG-oXzadpZY.js → chunk-R7FJI6CG-DpBrv4ni.js} +1 -1
- package/dist/assets/{chunk-RYQCIY6F-Dt3-8yUh.js → chunk-RYQCIY6F-DzzmTl11.js} +1 -1
- package/dist/assets/{chunk-U6XO7XAA-B55eSvpx.js → chunk-U6XO7XAA-Dw6aviKa.js} +1 -1
- package/dist/assets/{chunk-V7JOEXUC-Btk4JwCt.js → chunk-V7JOEXUC-CEDazV6w.js} +1 -1
- package/dist/assets/chunk-VAUOI2AC-CWYjg8zE.js +1 -0
- package/dist/assets/{chunk-VR4S4FIN-DgaSiVOY.js → chunk-VR4S4FIN-C_-eEj-9.js} +1 -1
- package/dist/assets/{chunk-WYO6CB5R-rRDZ_Tta.js → chunk-WYO6CB5R-NF-MsJJR.js} +3 -3
- package/dist/assets/chunk-XXDRQBXY-DzTwx8ZH.js +1 -0
- package/dist/assets/{chunk-YOTPTUD7-BnFxj5o4.js → chunk-YOTPTUD7-DqzqtdII.js} +1 -1
- package/dist/assets/{chunk-ZGVPDNZ5-CrnlPlmJ.js → chunk-ZGVPDNZ5-CRrAYi4g.js} +1 -1
- package/dist/assets/{chunk-ZIRB5QZD-BYTiATIH.js → chunk-ZIRB5QZD-Dc1s5bLM.js} +1 -1
- package/dist/assets/classDiagram-OUVF2IWQ-Cc63fLWP.js +1 -0
- package/dist/assets/classDiagram-v2-EOCWNBFH-CoXU0qT6.js +1 -0
- package/dist/assets/{cose-bilkent-JH36ORCC-BORKJRwF.js → cose-bilkent-JH36ORCC-cL247pHg.js} +1 -1
- package/dist/assets/cynefin-VYW2F7L2-C8yCvH_o.js +1 -0
- package/dist/assets/{cynefinDiagram-TSTJHNR4-BXKeaSl8.js → cynefinDiagram-TSTJHNR4-D4sZ7LYI.js} +1 -1
- package/dist/assets/{dagre-CrA0XVwJ.js → dagre-DmHb3Ctt.js} +1 -1
- package/dist/assets/{dagre-VKFMJZFB-ouq_lA1a.js → dagre-VKFMJZFB-BlsnSh-Q.js} +1 -1
- package/dist/assets/{diagram-FQU43EPY-BxR5kUiQ.js → diagram-FQU43EPY-DW1yQiRO.js} +1 -1
- package/dist/assets/{diagram-G47NLZAW-DWonk1sL.js → diagram-G47NLZAW-BTUAsFjb.js} +1 -1
- package/dist/assets/{diagram-NH7WQ7WH-fmV_wV5e.js → diagram-NH7WQ7WH-BcaomqSd.js} +1 -1
- package/dist/assets/{diagram-OA4YK3LP-DvOSRRiV.js → diagram-OA4YK3LP-DDLX7Xwr.js} +1 -1
- package/dist/assets/{diagram-WEI45ONY-Bp-xb3uS.js → diagram-WEI45ONY-CIave0An.js} +1 -1
- package/dist/assets/{ebnfDiagram-CCIWWBDH-BTlnwneA.js → ebnfDiagram-CCIWWBDH-Cr1Y6lPu.js} +1 -1
- package/dist/assets/{erDiagram-Q63AITRT-C3fFWGCm.js → erDiagram-Q63AITRT-D3EgiVVH.js} +1 -1
- package/dist/assets/{esm-oa69b5u4.js → esm-Df4edDpj.js} +2 -2
- package/dist/assets/eventmodeling-45OFAUF4-DO1vRTM0.js +1 -0
- package/dist/assets/flowDiagram-23GEKE2U-BS7KXcqn.js +1 -0
- package/dist/assets/{ganttDiagram-NO4QXBWP-DzAiojNi.js → ganttDiagram-NO4QXBWP-B0oyDIqK.js} +1 -1
- package/dist/assets/gitGraph-TEB2WS4Q-m5F5ef09.js +1 -0
- package/dist/assets/{gitGraphDiagram-IHSO6WYX-Cv57oNEA.js → gitGraphDiagram-IHSO6WYX-uQtr6IqK.js} +1 -1
- package/dist/assets/icons-CXPP1fFT.js +1 -0
- package/dist/assets/index-_ZhK6bvp.js +65 -0
- package/dist/assets/index-iVV2bP_f.css +3 -0
- package/dist/assets/info-DKCQHKI2-CZxPlQJ0.js +1 -0
- package/dist/assets/{infoDiagram-FWYZ7A6U-B5Z_O3Ro.js → infoDiagram-FWYZ7A6U-B_GzlLIM.js} +1 -1
- package/dist/assets/{ishikawaDiagram-FXEZZL3T-CKTK_TKV.js → ishikawaDiagram-FXEZZL3T-CKQIsSdU.js} +1 -1
- package/dist/assets/{journeyDiagram-5HDEW3XC-Cm9k4ywW.js → journeyDiagram-5HDEW3XC-DrrvzZL1.js} +1 -1
- package/dist/assets/{kanban-definition-HUTT4EX6-DzNteLwx.js → kanban-definition-HUTT4EX6-CJQRTdXz.js} +1 -1
- package/dist/assets/{line-BG78c_WJ.js → line-B4DxX7tC.js} +1 -1
- package/dist/assets/{linear-1X20_EGu.js → linear-U-nKUhyW.js} +1 -1
- package/dist/assets/{map-CCI8WZkS.js → map-BneTM-ri.js} +1 -1
- package/dist/assets/{mcp-servers-dialog-GXXD9K0U.js → mcp-servers-dialog-BUSPvaqI.js} +2 -2
- package/dist/assets/{mermaid-parser.core-Bb8HI_OS.js → mermaid-parser.core-BlKWrEdZ.js} +2 -2
- package/dist/assets/{mermaid-renderer-PIaNiXAz.js → mermaid-renderer-jEbqFaTe.js} +2 -2
- package/dist/assets/{mermaid.core-DUHOIwL5.js → mermaid.core-DWpShXCs.js} +3 -3
- package/dist/assets/{mindmap-definition-LN4V7U3C-Tnbszo7b.js → mindmap-definition-LN4V7U3C-CEVwZD78.js} +1 -1
- package/dist/assets/model-identity-CgA6_Pbm.js +1 -0
- package/dist/assets/model-reference-o41fJ6jQ.js +1 -0
- package/dist/assets/{monaco-BVtCspYZ.js → monaco-D6OhXgjg.js} +1 -1
- package/dist/assets/{ordinal-v4prQcuq.js → ordinal-B2r5L1v4.js} +1 -1
- package/dist/assets/{otel-D1LswXpM.js → otel-BFnphzjt.js} +1 -1
- package/dist/assets/packet-7NZHBO7P-zIioIZVN.js +1 -0
- package/dist/assets/{pegDiagram-2B236MQR-CX824Kd0.js → pegDiagram-2B236MQR-CBLkBdnQ.js} +1 -1
- package/dist/assets/{pi-ai-DAJlO9ZB.js → pi-ai-Cr2ee4a0.js} +2 -2
- package/dist/assets/{pi-web-ui-B-RJSxjR.js → pi-web-ui-DV5jKjSg.js} +1 -1
- package/dist/assets/pie-RZYD4A2V-GGWijBvB.js +1 -0
- package/dist/assets/{pieDiagram-ENE6RG2P-BT04VWPQ.js → pieDiagram-ENE6RG2P-8tCnwtWS.js} +1 -1
- package/dist/assets/{quadrantDiagram-ABIIQ3AL-BvOZxkBr.js → quadrantDiagram-ABIIQ3AL-CWd28cHF.js} +1 -1
- package/dist/assets/radar-I7S5WNFK-yvwFH3RV.js +1 -0
- package/dist/assets/railroad-3IZDKUUU-BVadlswB.js +1 -0
- package/dist/assets/railroad-abnf-AHOZXSZD-B7R-p_2-.js +1 -0
- package/dist/assets/railroad-ebnf-EBAXGLYW-BnbJxPug.js +1 -0
- package/dist/assets/railroad-peg-LSFZ7HO6-Ci3DcEuQ.js +1 -0
- package/dist/assets/{railroadDiagram-RFXS5EU6-DnTU--BV.js → railroadDiagram-RFXS5EU6-CI4ouOBs.js} +1 -1
- package/dist/assets/{react-vendor-eWH0QhNU.js → react-vendor-1KC5PyRx.js} +1 -1
- package/dist/assets/{requirementDiagram-TGXJPOKE--MZX_yEv.js → requirementDiagram-TGXJPOKE-DtFz7sw4.js} +1 -1
- package/dist/assets/{sankeyDiagram-HTMAVEWB-SEZkHhYn.js → sankeyDiagram-HTMAVEWB--VeOwwk9.js} +1 -1
- package/dist/assets/{sequenceDiagram-DBY2YBRQ-BhC2OHiz.js → sequenceDiagram-DBY2YBRQ-B8AHk5Oe.js} +1 -1
- package/dist/assets/{sizeCapture-X5ZJPWSS-Ci5LeToV.js → sizeCapture-X5ZJPWSS-vV_ArM8D.js} +1 -1
- package/dist/assets/{skills-dialog-DDh1h8eH.js → skills-dialog-BThnIUBs.js} +3 -3
- package/dist/assets/{src-CovulcRC.js → src-PYsDme0X.js} +1 -1
- package/dist/assets/{stateDiagram-2N3HPSRC-DKK5tFT4.js → stateDiagram-2N3HPSRC-etXnJ8X8.js} +1 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-Dms3pICj.js +1 -0
- package/dist/assets/{swimlanes-5IMT3BWC-DxxGCk67.js → swimlanes-5IMT3BWC-pabIKAmn.js} +2 -2
- package/dist/assets/swimlanesDiagram-G3AALYLV-B14aWjv6.js +8 -0
- package/dist/assets/{timeline-definition-FHXFAJF6-BPXB3Sue.js → timeline-definition-FHXFAJF6-C55MKm3L.js} +1 -1
- package/dist/assets/treeView-QDETBFTQ-Cru9B2zv.js +1 -0
- package/dist/assets/treemap-6X3UGDF4-DNOVHFaJ.js +1 -0
- package/dist/assets/{vennDiagram-L72KCM5P-CxcBCKye.js → vennDiagram-L72KCM5P-CgNf1Q9W.js} +1 -1
- package/dist/assets/wardley-OPB4EBWU-E3m1BOJQ.js +1 -0
- package/dist/assets/{wardleyDiagram-EHGQE667-DEL6Yes5.js → wardleyDiagram-EHGQE667-Drt5ytec.js} +1 -1
- package/dist/assets/{xychartDiagram-FW5EYKEG-N8cPbcjC.js → xychartDiagram-FW5EYKEG-hhoEo_Ar.js} +1 -1
- package/dist/index.html +9 -8
- package/package.json +3 -1
- package/plugins/{openai-documents → documents}/plugin.json +2 -2
- package/plugins/{openai-presentations → presentations}/plugin.json +2 -2
- package/plugins/{openai-spreadsheets → spreadsheets}/plugin.json +2 -2
- package/server/acp/server.mjs +36 -26
- package/server/agent-manager.mjs +130 -28
- package/server/agent-profile-files.mjs +8 -4
- package/server/agent-profile-schema.mjs +47 -23
- package/server/agent-profiles.mjs +1 -1
- package/server/ai-http-logger.mjs +98 -12
- package/server/cloud/chat-idempotency-store.mjs +96 -0
- package/server/cloud/client.mjs +102 -0
- package/server/cloud/config.mjs +53 -0
- package/server/cloud/credential-store.mjs +193 -0
- package/server/cloud/identity.mjs +355 -0
- package/server/cloud/index.mjs +7 -0
- package/server/cloud/models.mjs +80 -0
- package/server/cloud/runtime.mjs +129 -0
- package/server/cloud/service-config.mjs +77 -0
- package/server/index.mjs +28 -11
- package/server/model-catalog.mjs +262 -0
- package/server/plugins/registry.mjs +29 -5
- package/server/routes/agent-profiles.mjs +41 -7
- package/server/routes/agent.mjs +20 -11
- package/server/routes/backup.mjs +7 -1
- package/server/routes/cloud.mjs +227 -0
- package/server/routes/models.mjs +7 -1
- package/server/routes/scheduled-tasks.mjs +38 -8
- package/server/routes/shared-conversation.mjs +62 -58
- package/server/routes/shares.mjs +76 -1
- package/server/routes/storage.mjs +24 -1
- package/server/routes/workspace.mjs +6 -4
- package/server/share-store.mjs +168 -13
- package/server/skills.mjs +30 -3
- package/server/storage.mjs +7 -1
- package/server/subagents.mjs +3 -3
- package/server/tools/definitions.mjs +1 -1
- package/server/tools/index.mjs +2 -2
- package/server/utils/network.mjs +9 -0
- package/server/utils/response.mjs +8 -1
- package/skills/skill-creator/LICENSE.txt +202 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-creator/UPSTREAM.md +6 -0
- package/skills/skill-creator/agents/analyzer.md +274 -0
- package/skills/skill-creator/agents/comparator.md +202 -0
- package/skills/skill-creator/agents/grader.md +223 -0
- package/skills/skill-creator/assets/eval_review.html +146 -0
- package/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/skills/skill-creator/references/schemas.md +430 -0
- package/skills/skill-creator/scripts/__init__.py +0 -0
- package/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/skills/skill-creator/scripts/generate_report.py +326 -0
- package/skills/skill-creator/scripts/improve_description.py +247 -0
- package/skills/skill-creator/scripts/package_skill.py +136 -0
- package/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/skills/skill-creator/scripts/run_eval.py +310 -0
- package/skills/skill-creator/scripts/run_loop.py +328 -0
- package/skills/skill-creator/scripts/utils.py +47 -0
- package/dist/assets/AgentProfilesPage-B84w-r9S.js +0 -1
- package/dist/assets/ChatPanelHost-CyO8fEoj.js +0 -288
- package/dist/assets/PluginsPage-D2862wul.js +0 -1
- package/dist/assets/ScheduledTasksPage-GqbiJDPX.js +0 -2
- package/dist/assets/SharedConversationPage-Cw2QFnbC.js +0 -1
- package/dist/assets/WorkspaceInspector-3uLiu6Bv.js +0 -13
- package/dist/assets/architecture-TIHT7OUA-7FQo5GbP.js +0 -1
- package/dist/assets/channel-DToA8d-4.js +0 -1
- package/dist/assets/chunk-2Q5K7J3B-D_Wxpk-T.js +0 -1
- package/dist/assets/chunk-VAUOI2AC-CIZseNLi.js +0 -1
- package/dist/assets/chunk-XXDRQBXY-Do-XYxat.js +0 -1
- package/dist/assets/classDiagram-OUVF2IWQ-Bu24Sy-k.js +0 -1
- package/dist/assets/classDiagram-v2-EOCWNBFH-DKhh5HSW.js +0 -1
- package/dist/assets/cynefin-VYW2F7L2-oyiAgYC4.js +0 -1
- package/dist/assets/eventmodeling-45OFAUF4-YB_0MefX.js +0 -1
- package/dist/assets/flowDiagram-23GEKE2U-Bc73xdBd.js +0 -1
- package/dist/assets/gitGraph-TEB2WS4Q-Bvp27L0n.js +0 -1
- package/dist/assets/icons-cTkqD_Gi.js +0 -1
- package/dist/assets/index-B48prgLL.js +0 -65
- package/dist/assets/index-DQhwHHer.css +0 -3
- package/dist/assets/info-DKCQHKI2-BsLOivgq.js +0 -1
- package/dist/assets/packet-7NZHBO7P-BKQkXRtk.js +0 -1
- package/dist/assets/pie-RZYD4A2V-BTiTN5Ge.js +0 -1
- package/dist/assets/radar-I7S5WNFK-BU-oVjKM.js +0 -1
- package/dist/assets/railroad-3IZDKUUU-7H2hxNbL.js +0 -1
- package/dist/assets/railroad-abnf-AHOZXSZD-Mx6wf6XQ.js +0 -1
- package/dist/assets/railroad-ebnf-EBAXGLYW-BgXSKhYy.js +0 -1
- package/dist/assets/railroad-peg-LSFZ7HO6-DTEl2rAC.js +0 -1
- package/dist/assets/stateDiagram-v2-6OUMAXLB-D8x3mkni.js +0 -1
- package/dist/assets/swimlanesDiagram-G3AALYLV-C4nOBNp8.js +0 -8
- package/dist/assets/treeView-QDETBFTQ-DOE6NSdf.js +0 -1
- package/dist/assets/treemap-6X3UGDF4-Ca7QD_b4.js +0 -1
- package/dist/assets/wardley-OPB4EBWU-D9O4RKRm.js +0 -1
- /package/dist/assets/{array-DqLCdDFv.js → array-B9UHiPd-.js} +0 -0
- /package/dist/assets/{chunk-KEIR6QF5-s7Qq-R3i.js → chunk-KEIR6QF5-jrz1pRUS.js} +0 -0
- /package/dist/assets/{chunk-Y2CYZVJY-BgISNSiw.js → chunk-Y2CYZVJY-D6N-CrJv.js} +0 -0
- /package/dist/assets/{cytoscape.esm-iekjSZ2n.js → cytoscape.esm-DyfqweF2.js} +0 -0
- /package/dist/assets/{defaultLocale-CrJzLgRD.js → defaultLocale-5eAKkKJC.js} +0 -0
- /package/dist/assets/{dist-zzfqk5hx.js → dist-CLg13NtV.js} +0 -0
- /package/dist/assets/{graphlib-CIz_CfxW.js → graphlib-DJkmx0Cq.js} +0 -0
- /package/dist/assets/{init-C0r9Gk5G.js → init-DlZdxViB.js} +0 -0
- /package/dist/assets/{path-DIKpVbHL.js → path-6uRLdFF7.js} +0 -0
- /package/dist/assets/{plugin-api-C8hMT5W6.js → plugin-api-Uu2xAB4d.js} +0 -0
- /package/dist/assets/{rough.esm-BMOtDaaS.js → rough.esm-Bud4g4fh.js} +0 -0
- /package/dist/assets/{web-RgX7H-OH.js → web-DoV8MSMn.js} +0 -0
- /package/dist/assets/{xterm-BFzZ1FH4.js → xterm-Bm_IbozX.js} +0 -0
- /package/plugins/{openai-documents → documents}/commands/document.md +0 -0
- /package/plugins/{openai-documents → documents}/skills/documents/SKILL.md +0 -0
- /package/plugins/{openai-presentations → presentations}/commands/presentation.md +0 -0
- /package/plugins/{openai-presentations → presentations}/skills/presentations/SKILL.md +0 -0
- /package/plugins/{openai-spreadsheets → spreadsheets}/commands/spreadsheet.md +0 -0
- /package/plugins/{openai-spreadsheets → spreadsheets}/skills/spreadsheets/SKILL.md +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-DWdDZTNf.js";import{B as t,It as n,St as r,b as i,i as a,r as o,u as s,x as c}from"./icons-cTkqD_Gi.js";import{n as l}from"./react-vendor-eWH0QhNU.js";import{It as u,Mt as d}from"./index-B48prgLL.js";import{n as f,r as p,t as m}from"./plugin-api-C8hMT5W6.js";var h=e(n(),1),g=l();function _(e){return e===`loaded`?`quickforge-settings-badge-success`:e===`error`?`quickforge-settings-badge-danger`:`quickforge-settings-badge-muted`}function v(e){return e===`loaded`?u(`pluginStatusLoaded`):e===`disabled`?u(`pluginStatusDisabled`):e===`error`?u(`pluginStatusError`):e}function y(e){switch(e){case`openai-documents`:return{label:u(`pluginOpenaiDocumentsName`),description:u(`pluginOpenaiDocumentsDescription`)};case`openai-spreadsheets`:return{label:u(`pluginOpenaiSpreadsheetsName`),description:u(`pluginOpenaiSpreadsheetsDescription`)};case`openai-presentations`:return{label:u(`pluginOpenaiPresentationsName`),description:u(`pluginOpenaiPresentationsDescription`)};default:return null}}function b(e){return y(e.name)?.label||(e.displayName||e.name).replace(/^OpenAI\s+/i,``)}function x(e){return y(e.name)?.description||e.description||u(`noDescription`)}function S(e){return(e.label||e.name||e.quickForgeName).replace(/^OpenAI\s+/i,``)}function C({onChanged:e}){let[n,l]=(0,h.useState)(null),[y,C]=(0,h.useState)(!0),[w,T]=(0,h.useState)(null),[E,D]=(0,h.useState)(()=>new Set),[O,k]=(0,h.useState)(null),A=(0,h.useCallback)(async(t=`load`)=>{k(null),C(!0);try{l(t===`reload`?await f():await m()),t===`reload`&&e?.()}catch(e){k(e instanceof Error?e.message:u(`pluginsLoadFailed`))}finally{C(!1)}},[e]);(0,h.useEffect)(()=>{let e=!1;return m().then(t=>{e||l(t)}).catch(t=>{e||k(t instanceof Error?t.message:u(`pluginsLoadFailed`))}).finally(()=>{e||C(!1)}),()=>{e=!0}},[]);let j=(0,h.useMemo)(()=>{let e=n?.plugins||[];return{total:e.length,enabled:e.filter(e=>e.enabled).length,tools:e.reduce((e,t)=>e+t.tools.length,0)}},[n]),M=(0,h.useMemo)(()=>n?.plugins||[],[n]),N=(0,h.useCallback)(e=>{D(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),P=async(t,n)=>{T(t),k(null);try{l(await p(t,n)),e?.()}catch(e){k(e instanceof Error?e.message:u(`pluginsSaveFailed`))}finally{T(null)}};return(0,g.jsx)(`div`,{className:`quickforge-settings-stack`,children:(0,g.jsxs)(`section`,{className:`quickforge-settings-section`,"aria-label":u(`plugins`),children:[(0,g.jsxs)(`div`,{className:`quickforge-settings-toolbar`,children:[(0,g.jsxs)(`div`,{className:`quickforge-settings-row-main`,children:[(0,g.jsxs)(`div`,{className:`quickforge-settings-row-title`,children:[(0,g.jsx)(c,{className:`size-4 text-primary`}),u(`plugins`)]}),(0,g.jsx)(`div`,{className:`quickforge-settings-row-description`,children:u(`pluginsDescription`)}),(0,g.jsxs)(`div`,{className:`quickforge-settings-meta`,children:[(0,g.jsx)(`span`,{className:`quickforge-settings-badge quickforge-settings-badge-muted`,children:u(`pluginsCount`,j)}),(0,g.jsx)(`span`,{className:`quickforge-settings-badge quickforge-settings-badge-info`,children:u(`pluginToolsCount`,{count:j.tools})})]})]}),(0,g.jsxs)(`button`,{className:`quickforge-settings-button quickforge-settings-button-secondary`,type:`button`,onClick:()=>void A(`reload`),disabled:y,children:[y?(0,g.jsx)(t,{className:`mr-2 size-4 animate-spin`}):(0,g.jsx)(i,{className:`mr-2 size-4`}),u(`pluginsReload`)]})]}),O?(0,g.jsx)(`div`,{className:`quickforge-settings-alert quickforge-settings-warning-attached`,children:O}):null,n?.errors?.length?(0,g.jsxs)(`div`,{className:`quickforge-settings-warning quickforge-settings-warning-attached`,children:[(0,g.jsxs)(`div`,{className:`mb-2 inline-flex items-center gap-2 font-medium`,children:[(0,g.jsx)(a,{className:`size-4`}),u(`pluginDiscoveryErrors`)]}),n.errors.map((e,t)=>(0,g.jsxs)(`div`,{className:`break-all text-sm`,children:[(0,g.jsx)(`code`,{className:`quickforge-settings-command-name`,children:e.dir}),`: `,e.error]},`${e.dir}-${t}`))]}):null,y&&!n?(0,g.jsxs)(`div`,{className:`quickforge-settings-empty-row inline-flex items-center gap-2`,children:[(0,g.jsx)(t,{className:`size-4 animate-spin`}),u(`loadingPlugins`)]}):null,!y&&n&&n.plugins.length===0?(0,g.jsxs)(`div`,{className:`quickforge-settings-empty-row`,children:[(0,g.jsx)(`div`,{className:`quickforge-settings-row-title`,children:u(`noPlugins`)}),(0,g.jsx)(`div`,{className:`quickforge-settings-row-description`,children:u(`noPluginsDescription`)}),(0,g.jsx)(`div`,{className:`quickforge-settings-meta`,children:(n.searchPaths||[]).map(e=>(0,g.jsx)(`code`,{className:`quickforge-settings-command-name`,children:e},e))})]}):null,M.map(e=>{let t=E.has(e.name);return(0,g.jsxs)(`article`,{className:`quickforge-settings-list-item quickforge-settings-list-item--column`,children:[(0,g.jsxs)(`div`,{className:`quickforge-settings-list-item-header`,children:[(0,g.jsxs)(`button`,{type:`button`,className:`quickforge-settings-expand-toggle`,onClick:()=>N(e.name),"aria-expanded":t,children:[(0,g.jsx)(r,{className:d(`quickforge-settings-expand-chevron size-4`,t&&`rotate-90`)}),(0,g.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,g.jsxs)(`span`,{className:`quickforge-settings-row-title`,children:[b(e),(0,g.jsxs)(`span`,{className:`quickforge-settings-badge quickforge-settings-badge-muted`,children:[`v`,e.version]}),(0,g.jsx)(`span`,{className:d(`quickforge-settings-badge`,_(e.status)),children:v(e.status)})]}),(0,g.jsx)(`span`,{className:`quickforge-settings-row-description`,children:x(e)}),e.error?(0,g.jsx)(`span`,{className:`quickforge-settings-alert mt-3 block`,children:e.error}):null,(0,g.jsxs)(`span`,{className:`quickforge-settings-meta`,children:[(0,g.jsxs)(`span`,{className:`quickforge-settings-badge quickforge-settings-badge-muted`,children:[(0,g.jsx)(o,{className:`size-3`}),u(`pluginToolsCount`,{count:e.tools.length})]}),(0,g.jsxs)(`span`,{className:`quickforge-settings-badge quickforge-settings-badge-muted`,children:[(0,g.jsx)(s,{className:`size-3`}),u(`pluginPermissionsCount`,{count:e.permissions.length})]}),(0,g.jsx)(`span`,{className:d(`quickforge-settings-badge`,e.enabled?`quickforge-settings-badge-success`:`quickforge-settings-badge-muted`),children:e.enabled?u(`enabled`):u(`disabled`)})]})]})]}),(0,g.jsx)(`div`,{className:`quickforge-settings-list-item-actions`,onClick:e=>e.stopPropagation(),children:(0,g.jsxs)(`label`,{className:`quickforge-settings-switch`,"aria-disabled":w===e.name?`true`:`false`,children:[(0,g.jsx)(`input`,{type:`checkbox`,checked:e.enabled,disabled:w===e.name,onChange:t=>void P(e.name,t.target.checked)}),(0,g.jsx)(`span`,{"aria-hidden":`true`})]})})]}),t?(0,g.jsxs)(`div`,{className:`border-t border-border/60`,children:[(0,g.jsx)(`div`,{className:`quickforge-settings-row quickforge-settings-row-top`,children:(0,g.jsxs)(`div`,{className:`quickforge-settings-row-title`,children:[(0,g.jsx)(o,{className:`size-4 text-muted-foreground`}),u(`pluginTools`)]})}),(0,g.jsx)(`div`,{className:`quickforge-settings-nested-list`,children:e.tools.length?e.tools.map(e=>(0,g.jsx)(`div`,{className:`quickforge-settings-subrow`,children:(0,g.jsxs)(`div`,{className:`quickforge-settings-row-main`,children:[(0,g.jsx)(`div`,{className:`quickforge-settings-row-title`,children:S(e)}),e.description?(0,g.jsx)(`div`,{className:`quickforge-settings-row-description`,children:e.description}):null]})},e.quickForgeName)):(0,g.jsx)(`div`,{className:`quickforge-settings-empty-row`,children:u(`pluginNoTools`)})}),(0,g.jsx)(`div`,{className:`quickforge-settings-row quickforge-settings-row-top`,children:(0,g.jsxs)(`div`,{className:`quickforge-settings-row-title`,children:[(0,g.jsx)(s,{className:`size-4 text-muted-foreground`}),u(`pluginPermissions`)]})}),(0,g.jsxs)(`div`,{className:`p-4`,children:[e.permissions.length?(0,g.jsx)(`div`,{className:`quickforge-settings-meta`,children:e.permissions.map(e=>(0,g.jsx)(`code`,{className:`quickforge-settings-command-name`,children:e},e))}):(0,g.jsx)(`div`,{className:`quickforge-settings-empty-row`,children:u(`pluginNoPermissions`)}),(0,g.jsx)(`div`,{className:`quickforge-settings-row-description mt-3`,children:u(`pluginTrustedNotice`)})]})]}):null]},e.name)})]})})}export{C as PluginsPage};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-DWdDZTNf.js";import{Dt as t,E as n,Et as r,It as i,Nt as a,Y as ee,_ as te,a as ne,c as re,gt as ie,it as ae,mt as oe,nt as se,t as ce}from"./icons-cTkqD_Gi.js";import{n as o}from"./react-vendor-eWH0QhNU.js";import{It as s,J as le,Mt as c,St as ue,bt as de,jt as l,kt as fe,vt as pe,xt as me,yt as he}from"./index-B48prgLL.js";var u=e(i(),1),d=o(),ge=[{value:`off`,label:()=>s(`thinkingOff`)},{value:`low`,label:()=>s(`thinkingLow`)},{value:`medium`,label:()=>s(`thinkingMedium`)},{value:`high`,label:()=>s(`thinkingHigh`)},{value:`xhigh`,label:()=>s(`thinkingXHigh`)}];function _e(e){return`${e.provider} / ${e.id}`}function ve(e,t){return!!(e&&t&&e.api===t.api&&e.provider===t.provider&&e.id===t.id)}function f(e){return String(e).padStart(2,`0`)}function p(e){if(!e)return`-`;let t=new Date(e);return Number.isNaN(t.getTime())?`-`:`${t.getFullYear()}-${f(t.getMonth()+1)}-${f(t.getDate())} ${f(t.getHours())}:${f(t.getMinutes())}`}function ye(e,t=20){let n=String(e||``).trim();return n.length>t?`${n.slice(0,t)}...`:n}function be(){return{scheduleText:``,title:``,instruction:``,cronExpression:``,scheduleRule:``,nextRunAt:``,enabled:!0,agentId:``,executionMode:`serial`}}function m(){return{taskId:``,status:``,trigger:``,keyword:``,startedFrom:``,startedTo:``,page:1,pageSize:10}}function xe(e){return{scheduleText:[e.scheduleRule,e.instruction].filter(Boolean).join(`
|
|
2
|
-
`),title:e.title,instruction:e.instruction,cronExpression:e.cronExpression??``,scheduleRule:e.scheduleRule,nextRunAt:e.nextRunAt,enabled:e.status!==`paused`,agentId:e.agentId??``,executionMode:e.executionMode??`serial`}}function Se(e,t){return{...t,title:e.title,instruction:e.instruction,cronExpression:e.cronExpression??``,scheduleRule:e.scheduleRule,nextRunAt:e.nextRunAt,enabled:t.enabled}}function Ce(e){return{title:e.title.trim(),instruction:e.instruction.trim(),scheduleType:`cron`,scheduleRule:e.scheduleRule.trim()||e.cronExpression.trim(),cronExpression:e.cronExpression.trim(),nextRunAt:e.nextRunAt,enabled:e.enabled,agentId:e.agentId||null,executionMode:e.executionMode}}function h(e){return!!(e.currentRunId||e.currentRunIds?.length)}function we(e){return(e.executionMode??`serial`)===`parallel`||!h(e)}function Te(e){return s(e===`parallel`?`taskExecutionModeParallel`:`taskExecutionModeSerial`)}function Ee(e){return!!(e.title.trim()&&e.instruction.trim()&&e.cronExpression.trim())}function De(e){return s(e===`enabled`?`taskEnabled`:e===`running`?`taskRunning`:e===`paused`?`taskPaused`:e===`completed`?`taskFinished`:e===`success`?`executionSuccess`:`taskFailed`)}function Oe(e){return e===`enabled`||e===`success`?`bg-emerald-500/10 text-emerald-700`:e===`running`?`bg-blue-500/10 text-blue-700`:e===`paused`?`bg-amber-500/10 text-amber-700`:`bg-muted text-muted-foreground`}async function g(e,t){let n=await fetch(e,{...t,headers:{"content-type":`application/json`,...t?.headers}}),r=await n.json().catch(()=>null);if(!n.ok)throw Error(r?.error||`请求失败`);return r}function _({onOpenSession:e}){let[i,o]=(0,u.useState)([]),[f,_]=(0,u.useState)(`tasks`),[v,y]=(0,u.useState)(()=>be()),[b,ke]=(0,u.useState)(null),[x,S]=(0,u.useState)(null),[C,w]=(0,u.useState)(null),[T,E]=(0,u.useState)(!1),[D,O]=(0,u.useState)(null),[Ae,k]=(0,u.useState)(``),[A,j]=(0,u.useState)(!1),[M,N]=(0,u.useState)(``),[P,je]=(0,u.useState)([]),[F,I]=(0,u.useState)(),[L,R]=(0,u.useState)(`off`),[z,Me]=(0,u.useState)([]),[Ne,B]=(0,u.useState)(``),[V,H]=(0,u.useState)(()=>m()),[U,W]=(0,u.useState)(()=>m()),[G,Pe]=(0,u.useState)({runs:[],total:0,page:1,pageSize:10}),[Fe,Ie]=(0,u.useState)(!1),[Le,Re]=(0,u.useState)(null),[ze,Be]=(0,u.useState)([]),Ve=z[0]?.id??``;(0,u.useEffect)(()=>{if(!C)return;let e=()=>w(null);return window.addEventListener(`click`,e),window.addEventListener(`blur`,e),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`blur`,e)}},[C]);async function He(){o((await g(`/api/scheduled-tasks`)).tasks)}async function K(e=U){Ie(!0),N(``);try{let t=new URLSearchParams;t.set(`page`,String(e.page)),t.set(`pageSize`,String(e.pageSize)),e.taskId&&t.set(`taskId`,e.taskId),e.status&&t.set(`status`,e.status),e.trigger&&t.set(`trigger`,e.trigger),e.keyword.trim()&&t.set(`keyword`,e.keyword.trim()),e.startedFrom&&t.set(`startedFrom`,e.startedFrom),e.startedTo&&t.set(`startedTo`,e.startedTo),Pe(await g(`/api/scheduled-tasks/runs?${t.toString()}`))}catch(e){N(e instanceof Error?e.message:s(`requestFailed`))}finally{Ie(!1)}}(0,u.useEffect)(()=>{let e=!1;async function t(){try{let t=await g(`/api/project`);if(e)return;Me(t.projects??[])}catch{}}return t(),()=>{e=!0}},[]),(0,u.useEffect)(()=>{let e=!1;async function t(){try{let t=await de(),n=await he(t),r=await me(t),i=r.model??await ue(t)??n[0];if(e)return;je(n),I(i),R(r.thinkingLevel??pe(i))}catch(t){e||N(t instanceof Error?t.message:s(`requestFailed`))}}return t(),()=>{e=!0}},[]),(0,u.useEffect)(()=>{let e=!1,t=async()=>{try{let t=await g(`/api/scheduled-tasks`);e||o(t.tasks)}catch(t){e||N(t instanceof Error?t.message:s(`requestFailed`))}};t();let n=window.setInterval(t,10*1e3);return()=>{e=!0,window.clearInterval(n)}},[]),(0,u.useEffect)(()=>{let e=!1;async function t(){try{let t=await g(`/api/agent-profiles`);if(e)return;Be(t.agents)}catch(t){e||N(t instanceof Error?t.message:s(`requestFailed`))}}return t(),()=>{e=!0}},[]);let Ue=(0,u.useMemo)(()=>i.find(e=>e.id===b),[b,i]),q=(0,u.useMemo)(()=>i.find(e=>e.id===x)??null,[x,i]),We=(0,u.useMemo)(()=>i.filter(e=>e.status===`enabled`).length,[i]),J=Math.max(1,Math.ceil(G.total/G.pageSize));function Y(e){return e?ze.find(t=>t.id===e||t.name===e)?.label??e:s(`defaultAgent`)}function X(e,t){y(n=>({...n,[e]:t}))}function Z(e,t){H(n=>({...n,[e]:t}))}function Ge(){ke(null),B(Ve),y(be()),O(null),k(``),N(``)}function Ke(){Ge(),E(!0)}function Q(){A||(E(!1),Ge())}function qe(){let e={...V,page:1};H(e),W(e),K(e)}function Je(){let e=m();H(e),W(e),K(e)}function Ye(e){let t=Math.min(Math.max(1,e),J),n={...U,page:t};H(n),W(n),K(n)}function Xe(e){let t={...U,page:1,pageSize:e};H(t),W(t),K(t)}async function Ze(){let e=v.scheduleText.trim();if(e){j(!0),N(``);try{let t=await g(`/api/scheduled-tasks/parse`,{method:`POST`,body:JSON.stringify({instruction:e,model:F,thinkingLevel:L})});if(t.needMoreInfo||!t.task){k(t.question||`请补充任务信息。`),O(null);return}let n=t.task;k(``),O(n),y(e=>Se(n,e))}catch(e){N(e instanceof Error?e.message:s(`requestFailed`))}finally{j(!1)}}}async function Qe(){if(Ee(v)){j(!0),N(``);try{let e=z.find(e=>e.id===Ne),t={task:Ce(v),model:F,thinkingLevel:L,projectId:e?.id,projectName:e?.name};b?await g(`/api/scheduled-tasks/${encodeURIComponent(b)}`,{method:`PUT`,body:JSON.stringify(t)}):await g(`/api/scheduled-tasks`,{method:`POST`,body:JSON.stringify(t)}),Q(),await He(),f===`history`&&await K(U)}catch(e){N(e instanceof Error?e.message:s(`requestFailed`))}finally{j(!1)}}}function $e(e){w(null),ke(e.id),y(xe(e)),O(null),k(``),N(``),B(e.projectId??``),e.model&&I(e.model),e.thinkingLevel&&R(e.thinkingLevel),E(!0)}async function $(e,t){if(N(``),w(null),!(t===`delete`&&!await le({description:s(`confirmDeleteTask`),confirmLabel:s(`confirmDelete`),cancelLabel:s(`cancel`),variant:`destructive`})))try{t===`delete`?(await g(`/api/scheduled-tasks/${encodeURIComponent(e)}`,{method:`DELETE`}),b===e&&Q(),x===e&&S(null)):await g(`/api/scheduled-tasks/${encodeURIComponent(e)}/${t}`,{method:`POST`}),await He(),f===`history`&&await K(U)}catch(e){N(e instanceof Error?e.message:s(`requestFailed`))}}function et(t){return(0,d.jsxs)(`div`,{className:`mt-2 space-y-2 text-xs text-muted-foreground`,children:[t.sessionId?(0,d.jsx)(l,{variant:`outline`,size:`sm`,onClick:()=>e?.(t.sessionId),children:s(`viewConversation`)}):null,(0,d.jsxs)(`div`,{children:[s(`executionAgent`),t.agentLabel||Y(t.agentId)]}),t.warning?(0,d.jsx)(`div`,{className:`text-amber-600`,children:t.warning}):null,t.inputContent?(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`div`,{className:`font-medium text-foreground`,children:s(`runInputContent`)}),(0,d.jsx)(`pre`,{className:`mt-1 max-h-32 overflow-auto whitespace-pre-wrap`,children:t.inputContent})]}):null,t.aiResult||t.result?(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`div`,{className:`font-medium text-foreground`,children:s(`runAiResult`)}),(0,d.jsx)(`pre`,{className:`mt-1 max-h-48 overflow-auto whitespace-pre-wrap`,children:t.aiResult||t.result})]}):null,t.errorMessage?(0,d.jsx)(`div`,{className:`text-destructive`,children:t.errorMessage}):null,t.durationMs?(0,d.jsxs)(`div`,{children:[s(`runDuration`),t.durationMs,`ms`]}):null]})}return(0,d.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden bg-background`,children:[(0,d.jsxs)(`div`,{className:`border-b border-border px-6 py-5`,children:[(0,d.jsx)(`div`,{className:`flex flex-wrap items-center justify-end gap-3`,children:T||q?(0,d.jsxs)(l,{variant:`outline`,onClick:()=>{T?Q():S(null)},children:[(0,d.jsx)(a,{className:`mr-1 size-4`}),s(`back`)]}):(0,d.jsx)(l,{onClick:Ke,children:s(`createTask`)})}),!T&&!q?(0,d.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:[(0,d.jsxs)(`button`,{type:`button`,className:c(`rounded-full px-4 py-2 text-sm font-medium transition-colors`,f===`tasks`?`bg-primary text-primary-foreground`:`bg-muted text-muted-foreground hover:text-foreground`),onClick:()=>_(`tasks`),children:[s(`taskListTab`),` `,(0,d.jsx)(`span`,{className:`opacity-80`,children:i.length})]}),(0,d.jsx)(`button`,{type:`button`,className:c(`rounded-full px-4 py-2 text-sm font-medium transition-colors`,f===`history`?`bg-primary text-primary-foreground`:`bg-muted text-muted-foreground hover:text-foreground`),onClick:()=>{_(`history`),K(U)},children:s(`executionHistoryTab`)})]}):null]}),(0,d.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-6`,children:(0,d.jsx)(`div`,{className:`mx-auto max-w-5xl space-y-5`,children:T?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`rounded-xl border border-border bg-card p-5 space-y-4`,children:[(0,d.jsxs)(`h2`,{className:`inline-flex items-center gap-1.5 text-base font-semibold text-foreground`,children:[s(Ue?`editTask`:`createTask`),(0,d.jsx)(fe,{label:s(`quickAiParseTask`)})]}),(0,d.jsxs)(`label`,{className:`block text-sm font-medium text-foreground`,children:[s(`taskScheduleDescriptionLabel`),(0,d.jsx)(`textarea`,{className:`mt-1 min-h-24 w-full resize-y rounded-xl border border-input bg-background px-3 py-2 text-sm outline-none transition-colors placeholder:text-muted-foreground/65 focus:border-ring`,value:v.scheduleText,onChange:e=>X(`scheduleText`,e.target.value),placeholder:s(`taskScheduleDescriptionPlaceholder`)})]}),(0,d.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,d.jsxs)(l,{onClick:Ze,disabled:A||!F||!v.scheduleText.trim(),children:[(0,d.jsx)(re,{className:`mr-1 size-3.5`}),s(`aiParseTask`)]}),Ae?(0,d.jsx)(`span`,{className:`text-sm text-amber-600`,children:Ae}):null]}),(0,d.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,d.jsxs)(`label`,{className:`block text-sm font-medium text-foreground`,children:[s(`taskTitleLabel`),(0,d.jsx)(`input`,{className:`mt-1 h-10 w-full rounded-md border border-input bg-background px-3 text-sm outline-none focus:border-ring`,value:v.title,onChange:e=>X(`title`,e.target.value),placeholder:s(`taskTitlePlaceholder`)})]}),(0,d.jsxs)(`div`,{className:`block text-sm font-medium text-foreground`,children:[s(`executionRule`),(0,d.jsx)(`div`,{className:`mt-1 flex h-10 items-center rounded-md border border-input bg-muted/20 px-3 text-sm text-muted-foreground`,children:v.scheduleRule||`-`})]}),(0,d.jsxs)(`div`,{className:`block text-sm font-medium text-foreground`,children:[`cron`,(0,d.jsx)(`div`,{className:`mt-1 flex h-10 items-center rounded-md border border-input bg-muted/20 px-3 font-mono text-sm text-muted-foreground`,children:v.cronExpression||`-`})]}),(0,d.jsxs)(`div`,{className:`block text-sm font-medium text-foreground`,children:[s(`nextExecutionTime`),(0,d.jsx)(`div`,{className:`mt-1 flex h-10 items-center rounded-md border border-input bg-muted/20 px-3 text-sm text-muted-foreground`,children:p(v.nextRunAt)})]}),(0,d.jsxs)(`label`,{className:`block text-sm font-medium text-foreground sm:col-span-2`,children:[(0,d.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[s(`taskExecutionMode`),(0,d.jsx)(fe,{label:s(`taskExecutionModeHelp`)})]}),(0,d.jsxs)(`select`,{className:`mt-1 h-10 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:border-ring`,value:v.executionMode,onChange:e=>X(`executionMode`,e.target.value),children:[(0,d.jsx)(`option`,{value:`serial`,children:s(`taskExecutionModeSerial`)}),(0,d.jsx)(`option`,{value:`parallel`,children:s(`taskExecutionModeParallel`)})]})]}),(0,d.jsxs)(`label`,{className:`block text-sm font-medium text-foreground sm:col-span-2`,children:[s(`promptContentLabel`),(0,d.jsx)(`textarea`,{className:`mt-1 min-h-28 w-full resize-y rounded-xl border border-input bg-background px-3 py-2 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground/65 focus:border-ring`,value:v.instruction,onChange:e=>X(`instruction`,e.target.value),placeholder:s(`promptContentPlaceholder`)})]})]}),(0,d.jsxs)(`label`,{className:`flex items-center gap-2 text-sm text-foreground`,children:[(0,d.jsx)(`input`,{type:`checkbox`,checked:v.enabled,onChange:e=>X(`enabled`,e.target.checked)}),s(`taskEnabledSwitch`)]}),(0,d.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 rounded-xl border border-border bg-muted/20 px-2 py-2`,children:[(0,d.jsxs)(`span`,{className:`relative inline-flex items-center`,children:[(0,d.jsx)(re,{className:`pointer-events-none absolute left-2 size-3.5 text-muted-foreground/70`}),(0,d.jsxs)(`select`,{className:`h-8 max-w-[240px] rounded-md border border-transparent bg-transparent pl-7 pr-2 text-xs text-muted-foreground outline-none hover:bg-background focus:border-ring`,value:F?`${F.provider}\u0000${F.id}`:``,onChange:e=>{let t=P.find(t=>`${t.provider}\u0000${t.id}`===e.target.value);I(t),R(pe(t))},title:s(`taskModel`),children:[P.length===0?(0,d.jsx)(`option`,{value:``,children:s(`noModelAvailable`)}):null,P.map(e=>(0,d.jsxs)(`option`,{value:`${e.provider}\u0000${e.id}`,children:[_e(e),ve(e,F)?` ✓`:``]},`${e.provider}:${e.id}`))]})]}),(0,d.jsxs)(`span`,{className:`relative inline-flex items-center`,children:[(0,d.jsx)(r,{className:`pointer-events-none absolute left-2 size-3.5 text-muted-foreground/70`}),(0,d.jsx)(`select`,{className:`h-8 rounded-md border border-transparent bg-transparent pl-7 pr-2 text-xs text-muted-foreground outline-none hover:bg-background focus:border-ring`,value:L,onChange:e=>R(e.target.value),title:s(`taskThinking`),children:ge.map(e=>(0,d.jsx)(`option`,{value:e.value,children:e.label()},e.value))})]}),(0,d.jsxs)(`span`,{className:`relative inline-flex items-center`,children:[(0,d.jsx)(ee,{className:`pointer-events-none absolute left-2 size-3.5 text-muted-foreground/70`}),(0,d.jsxs)(`select`,{className:`h-8 max-w-[220px] rounded-md border border-transparent bg-transparent pl-7 pr-2 text-xs text-muted-foreground outline-none hover:bg-background focus:border-ring`,value:Ne,onChange:e=>B(e.target.value),title:s(`taskProjectLabel`),children:[(0,d.jsx)(`option`,{value:``,children:s(`noProjectBound`)}),z.map(e=>(0,d.jsx)(`option`,{value:e.id,children:e.name},e.id))]})]}),(0,d.jsxs)(`span`,{className:`relative inline-flex items-center`,children:[(0,d.jsx)(t,{className:`pointer-events-none absolute left-2 size-3.5 text-muted-foreground/70`}),(0,d.jsxs)(`select`,{className:`h-8 max-w-[220px] rounded-md border border-transparent bg-transparent pl-7 pr-2 text-xs text-muted-foreground outline-none hover:bg-background focus:border-ring`,value:v.agentId,onChange:e=>X(`agentId`,e.target.value),title:s(`executionAgent`),children:[(0,d.jsx)(`option`,{value:``,children:s(`defaultAgent`)}),ze.map(e=>(0,d.jsx)(`option`,{value:e.id,children:e.label},e.id))]})]})]}),D?(0,d.jsxs)(`div`,{className:`rounded-xl border border-border bg-muted/30 p-3 text-sm`,children:[(0,d.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 font-medium text-foreground`,children:[(0,d.jsx)(ie,{className:`size-4 text-emerald-600`}),s(`aiParsed`)]}),(0,d.jsxs)(`div`,{className:`grid gap-2 text-muted-foreground sm:grid-cols-2`,children:[(0,d.jsxs)(`div`,{children:[s(`taskName`),(0,d.jsx)(`span`,{className:`text-foreground`,children:D.title})]}),(0,d.jsxs)(`div`,{children:[s(`executionRule`),(0,d.jsx)(`span`,{className:`text-foreground`,children:D.scheduleRule})]}),(0,d.jsxs)(`div`,{children:[`cron:`,(0,d.jsx)(`span`,{className:`font-mono text-foreground`,children:D.cronExpression??`-`})]}),(0,d.jsxs)(`div`,{children:[s(`nextExecutionTime`),(0,d.jsx)(`span`,{className:`text-foreground`,children:p(D.nextRunAt)})]}),(0,d.jsxs)(`div`,{className:`sm:col-span-2`,children:[s(`aiInstruction`),(0,d.jsx)(`span`,{className:`text-foreground`,children:D.instruction})]})]})]}):null,M?(0,d.jsx)(`div`,{className:`rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive`,children:M}):null]}),(0,d.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,d.jsx)(l,{variant:`outline`,onClick:Q,disabled:A,children:s(`cancel`)}),(0,d.jsx)(l,{onClick:Qe,disabled:A||!F||!Ee(v),children:s(Ue?`saveTask`:`confirmCreate`)})]})]}):q?(0,d.jsxs)(`div`,{className:`rounded-xl border border-border bg-card`,children:[(0,d.jsx)(`div`,{className:`flex flex-wrap items-start justify-between gap-3 border-b border-border px-5 py-4`,children:(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h2`,{className:`text-base font-semibold text-foreground`,children:q.title}),(0,d.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:q.scheduleRule})]})}),(0,d.jsx)(`div`,{className:`px-5 py-4`,children:(0,d.jsxs)(`div`,{className:`space-y-4 text-sm`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`div`,{className:`mb-1 font-medium text-foreground`,children:s(`taskContent`)}),(0,d.jsx)(`pre`,{className:`max-h-48 overflow-auto whitespace-pre-wrap rounded-xl border border-border bg-muted/20 p-3 text-muted-foreground`,children:q.instruction})]}),(0,d.jsxs)(`div`,{className:`grid gap-3 text-muted-foreground sm:grid-cols-2`,children:[(0,d.jsxs)(`div`,{children:[s(`executionRule`),(0,d.jsx)(`span`,{className:`text-foreground`,children:q.scheduleRule})]}),(0,d.jsxs)(`div`,{children:[s(`taskExecutionMode`),`:`,(0,d.jsx)(`span`,{className:`text-foreground`,children:Te(q.executionMode)})]}),(0,d.jsxs)(`div`,{children:[`cron:`,(0,d.jsx)(`span`,{className:`font-mono text-foreground`,children:q.cronExpression??`-`})]}),(0,d.jsxs)(`div`,{children:[s(`lastExecution`),(0,d.jsx)(`span`,{className:`text-foreground`,children:p(q.lastRunAt)})]}),(0,d.jsxs)(`div`,{children:[s(`nextExecution`),(0,d.jsx)(`span`,{className:`text-foreground`,children:p(q.nextRunAt)})]}),(0,d.jsxs)(`div`,{children:[s(`executionAgent`),(0,d.jsx)(`span`,{className:`text-foreground`,children:Y(q.agentId)})]}),q.projectName?(0,d.jsxs)(`div`,{children:[s(`taskProject`),(0,d.jsx)(`span`,{className:`text-foreground`,children:q.projectName})]}):null,q.model?(0,d.jsxs)(`div`,{children:[s(`taskModel`),`:`,(0,d.jsx)(`span`,{className:`text-foreground`,children:_e(q.model)})]}):null,q.thinkingLevel?(0,d.jsxs)(`div`,{children:[s(`taskThinkingLevel`),(0,d.jsx)(`span`,{className:`text-foreground`,children:ge.find(e=>e.value===q.thinkingLevel)?.label()??q.thinkingLevel})]}):null,(0,d.jsxs)(`div`,{children:[s(`createdAt`),`:`,(0,d.jsx)(`span`,{className:`text-foreground`,children:p(q.createdAt)})]})]}),q.runs?.length>0?(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`div`,{className:`mb-2 font-medium text-foreground`,children:s(`recentExecutions`)}),(0,d.jsx)(`div`,{className:`space-y-2`,children:q.runs.slice(0,5).map(e=>(0,d.jsxs)(`details`,{className:`rounded-lg border border-border bg-muted/20 p-2 text-xs text-muted-foreground`,children:[(0,d.jsxs)(`summary`,{className:`cursor-pointer text-foreground`,children:[p(e.startedAt),` · `,e.trigger===`manual`?s(`manualRun`):s(`autoRun`),` · `,De(e.status)]}),et(e)]},e.id))})]}):null]})}),(0,d.jsx)(`div`,{className:`border-t border-border px-5 py-4`,children:(0,d.jsxs)(`div`,{className:`flex flex-wrap justify-end gap-2`,children:[q.lastSessionId?(0,d.jsx)(l,{variant:`outline`,onClick:()=>e?.(q.lastSessionId),children:s(`viewConversation`)}):null,(0,d.jsxs)(l,{variant:`outline`,disabled:!we(q),onClick:()=>void $(q.id,`run`),children:[(0,d.jsx)(ce,{className:`mr-1 size-3.5`}),s(`executeNow`)]}),(0,d.jsxs)(l,{variant:`outline`,disabled:h(q),onClick:()=>$e(q),children:[(0,d.jsx)(n,{className:`mr-1 size-3.5`}),s(`editTask`)]}),(0,d.jsxs)(l,{variant:`destructive`,disabled:h(q),onClick:()=>void $(q.id,`delete`),children:[(0,d.jsx)(ne,{className:`mr-1 size-3.5`}),s(`deleteTask`)]})]})})]}):(0,d.jsxs)(d.Fragment,{children:[M?(0,d.jsx)(`div`,{className:`rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive`,children:M}):null,f===`tasks`?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{className:`rounded-xl border border-border bg-card p-4`,children:(0,d.jsx)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h2`,{className:`text-base font-semibold text-foreground`,children:s(`taskList`)}),(0,d.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:s(`tasksCount`,{total:i.length,enabled:We})})]})})}),(0,d.jsx)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:i.length===0?(0,d.jsx)(`div`,{className:`rounded-lg px-3 py-3 text-center text-xs text-muted-foreground/55 md:col-span-2`,children:s(`noScheduledTasks`)}):i.map(e=>{let r=e.status===`enabled`,i=e.status===`completed`,a=h(e);return(0,d.jsxs)(`div`,{className:`relative cursor-pointer rounded-xl border border-border bg-card p-4 transition-colors hover:bg-muted/15`,onClick:()=>S(e.id),children:[(0,d.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,d.jsxs)(`div`,{className:`min-w-0`,children:[(0,d.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,d.jsx)(`h3`,{className:`truncate text-sm font-medium text-foreground/90`,children:e.title})}),(0,d.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:ye(e.instruction,20)})]}),(0,d.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,onClick:e=>e.stopPropagation(),children:[(0,d.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":r,disabled:i,className:c(`relative h-6 w-11 rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-60`,r?`bg-emerald-500`:`bg-muted-foreground/30`),onClick:()=>void $(e.id,e.status===`paused`?`resume`:`pause`),title:e.status===`paused`?s(`enable`):s(`pauseTask`),children:(0,d.jsx)(`span`,{className:c(`absolute left-0.5 top-0.5 size-5 rounded-full bg-white shadow transition-transform`,r?`translate-x-5`:`translate-x-0`)})}),(0,d.jsxs)(`div`,{className:`relative`,children:[(0,d.jsx)(l,{variant:`ghost`,size:`icon`,onClick:()=>w(C===e.id?null:e.id),title:s(`moreActions`),children:(0,d.jsx)(ae,{className:`size-4`})}),C===e.id?(0,d.jsxs)(`div`,{className:`absolute right-0 z-20 mt-1 w-36 overflow-hidden rounded-xl border border-border bg-popover py-1 text-sm shadow-quickforge`,children:[(0,d.jsxs)(`button`,{className:`flex w-full items-center gap-2 px-3 py-2 text-left hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50`,disabled:!we(e),onClick:()=>void $(e.id,`run`),children:[(0,d.jsx)(ce,{className:`size-3.5`}),s(`executeNow`)]}),(0,d.jsxs)(`button`,{className:`flex w-full items-center gap-2 px-3 py-2 text-left hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50`,disabled:a,onClick:()=>$e(e),children:[(0,d.jsx)(n,{className:`size-3.5`}),s(`editTask`)]}),(0,d.jsxs)(`button`,{className:`flex w-full items-center gap-2 px-3 py-2 text-left hover:bg-muted`,onClick:()=>{w(null),S(e.id)},children:[(0,d.jsx)(se,{className:`size-3.5`}),s(`viewDetails`)]}),(0,d.jsxs)(`button`,{className:`flex w-full items-center gap-2 px-3 py-2 text-left text-destructive hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50`,disabled:a,onClick:()=>void $(e.id,`delete`),children:[(0,d.jsx)(ne,{className:`size-3.5`}),s(`deleteTask`)]})]}):null]})]})]}),(0,d.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-x-4 gap-y-1 text-xs text-muted-foreground`,children:[(0,d.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,d.jsx)(oe,{className:`size-3`}),e.scheduleRule]}),(0,d.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,d.jsx)(t,{className:`size-3`}),Y(e.agentId)]}),(0,d.jsxs)(`span`,{children:[s(`taskExecutionMode`),`:`,Te(e.executionMode)]}),e.projectName?(0,d.jsxs)(`span`,{children:[s(`taskProject`),e.projectName]}):null]}),(0,d.jsxs)(`div`,{className:`mt-4 grid gap-2 border-t border-border pt-3 text-xs text-muted-foreground sm:grid-cols-2`,children:[(0,d.jsxs)(`span`,{children:[s(`lastExecution`),p(e.lastRunAt)]}),(0,d.jsxs)(`span`,{children:[s(`nextExecution`),p(e.nextRunAt)]})]})]},e.id)})})]}):(0,d.jsxs)(`div`,{className:`space-y-4`,children:[(0,d.jsxs)(`div`,{className:`rounded-xl border border-border bg-card p-4`,children:[(0,d.jsxs)(`div`,{className:`mb-3 flex items-center gap-2 text-sm font-medium text-foreground`,children:[(0,d.jsx)(te,{className:`size-4`}),s(`historyFilters`)]}),(0,d.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-3`,children:[(0,d.jsxs)(`label`,{className:`block text-xs font-medium text-muted-foreground`,children:[s(`taskName`),(0,d.jsxs)(`select`,{className:`mt-1 h-9 w-full rounded-md border border-input bg-background px-2 text-sm text-foreground`,value:V.taskId,onChange:e=>Z(`taskId`,e.target.value),children:[(0,d.jsx)(`option`,{value:``,children:s(`allTasks`)}),i.map(e=>(0,d.jsx)(`option`,{value:e.id,children:e.title},e.id))]})]}),(0,d.jsxs)(`label`,{className:`block text-xs font-medium text-muted-foreground`,children:[s(`status`),(0,d.jsxs)(`select`,{className:`mt-1 h-9 w-full rounded-md border border-input bg-background px-2 text-sm text-foreground`,value:V.status,onChange:e=>Z(`status`,e.target.value),children:[(0,d.jsx)(`option`,{value:``,children:s(`allStatuses`)}),(0,d.jsx)(`option`,{value:`running`,children:s(`executionRunning`)}),(0,d.jsx)(`option`,{value:`success`,children:s(`executionSuccess`)}),(0,d.jsx)(`option`,{value:`failed`,children:s(`taskFailed`)})]})]}),(0,d.jsxs)(`label`,{className:`block text-xs font-medium text-muted-foreground`,children:[s(`triggerType`),(0,d.jsxs)(`select`,{className:`mt-1 h-9 w-full rounded-md border border-input bg-background px-2 text-sm text-foreground`,value:V.trigger,onChange:e=>Z(`trigger`,e.target.value),children:[(0,d.jsx)(`option`,{value:``,children:s(`allTriggers`)}),(0,d.jsx)(`option`,{value:`schedule`,children:s(`autoRun`)}),(0,d.jsx)(`option`,{value:`manual`,children:s(`manualRun`)})]})]}),(0,d.jsxs)(`label`,{className:`block text-xs font-medium text-muted-foreground`,children:[s(`startTime`),(0,d.jsx)(`input`,{type:`datetime-local`,className:`mt-1 h-9 w-full rounded-md border border-input bg-background px-2 text-sm text-foreground`,value:V.startedFrom,onChange:e=>Z(`startedFrom`,e.target.value)})]}),(0,d.jsxs)(`label`,{className:`block text-xs font-medium text-muted-foreground`,children:[s(`endTime`),(0,d.jsx)(`input`,{type:`datetime-local`,className:`mt-1 h-9 w-full rounded-md border border-input bg-background px-2 text-sm text-foreground`,value:V.startedTo,onChange:e=>Z(`startedTo`,e.target.value)})]}),(0,d.jsxs)(`label`,{className:`block text-xs font-medium text-muted-foreground`,children:[s(`keyword`),(0,d.jsx)(`input`,{className:`mt-1 h-9 w-full rounded-md border border-input bg-background px-2 text-sm text-foreground`,value:V.keyword,onChange:e=>Z(`keyword`,e.target.value),placeholder:s(`keywordPlaceholder`)})]})]}),(0,d.jsxs)(`div`,{className:`mt-3 flex justify-end gap-2`,children:[(0,d.jsx)(l,{variant:`outline`,onClick:Je,children:s(`reset`)}),(0,d.jsx)(l,{onClick:qe,children:s(`query`)})]})]}),(0,d.jsxs)(`div`,{className:`overflow-x-auto rounded-xl border border-border bg-card`,children:[(0,d.jsxs)(`div`,{className:`grid min-w-[600px] grid-cols-[1.3fr_0.7fr_0.7fr_1fr_0.7fr] gap-3 border-b border-border px-4 py-3 text-xs font-medium text-muted-foreground`,children:[(0,d.jsx)(`span`,{children:s(`taskName`)}),(0,d.jsx)(`span`,{children:s(`status`)}),(0,d.jsx)(`span`,{children:s(`triggerType`)}),(0,d.jsx)(`span`,{children:s(`startTime`)}),(0,d.jsx)(`span`,{children:s(`runDuration`)})]}),Fe?(0,d.jsx)(`div`,{className:`p-8 text-center text-sm text-muted-foreground`,children:s(`loading`)}):G.runs.length===0?(0,d.jsx)(`div`,{className:`p-8 text-center text-sm text-muted-foreground`,children:s(`noExecutionHistory`)}):G.runs.map(e=>(0,d.jsxs)(`div`,{className:`border-b border-border last:border-b-0`,children:[(0,d.jsxs)(`button`,{type:`button`,className:`grid w-full min-w-[600px] grid-cols-[1.3fr_0.7fr_0.7fr_1fr_0.7fr] gap-3 px-4 py-3 text-left text-sm hover:bg-muted/40`,onClick:()=>Re(Le===e.id?null:e.id),children:[(0,d.jsx)(`span`,{className:`min-w-0 truncate text-foreground`,children:e.taskTitle}),(0,d.jsx)(`span`,{children:(0,d.jsx)(`span`,{className:c(`rounded-full px-2 py-0.5 text-xs`,Oe(e.status)),children:De(e.status)})}),(0,d.jsx)(`span`,{className:`text-muted-foreground`,children:e.trigger===`manual`?s(`manualRun`):s(`autoRun`)}),(0,d.jsx)(`span`,{className:`text-muted-foreground`,children:p(e.startedAt)}),(0,d.jsx)(`span`,{className:`text-muted-foreground`,children:e.durationMs?`${e.durationMs}ms`:`-`})]}),Le===e.id?(0,d.jsx)(`div`,{className:`border-t border-border bg-muted/20 px-4 py-3`,children:et(e)}):null]},`${e.taskId}:${e.id}`)),(0,d.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 px-4 py-3 text-sm text-muted-foreground`,children:[(0,d.jsx)(`span`,{children:s(`paginationSummary`,{page:G.page,pages:J,total:G.total})}),(0,d.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,d.jsx)(`select`,{className:`h-8 rounded-md border border-input bg-background px-2 text-sm`,value:G.pageSize,onChange:e=>Xe(Number(e.target.value)),children:[10,20,50,100].map(e=>(0,d.jsx)(`option`,{value:e,children:s(`pageSize`,{size:e})},e))}),(0,d.jsx)(l,{variant:`outline`,size:`sm`,disabled:G.page<=1,onClick:()=>Ye(G.page-1),children:s(`previousPage`)}),(0,d.jsx)(l,{variant:`outline`,size:`sm`,disabled:G.page>=J,onClick:()=>Ye(G.page+1),children:s(`nextPage`)})]})]})]})]})]})})})]})}export{_ as ScheduledTasksPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-DWdDZTNf.js";import{It as t,i as n,lt as r}from"./icons-cTkqD_Gi.js";import{n as i}from"./react-vendor-eWH0QhNU.js";import{S as a,b as o,d as s,f as c,p as l,u}from"./pi-web-ui-B-RJSxjR.js";import{U as d}from"./pi-ai-DAJlO9ZB.js";import{t as f}from"./logger-8REuLPGK.js";import{D as p,It as m,Mt as h,Ot as g,Q as _,X as v,Z as y,et as b,f as x,jt as S,m as C,nt as w,p as T,q as E,tt as D,vt as O}from"./index-B48prgLL.js";import{ChatPanelHost as k}from"./ChatPanelHost-CyO8fEoj.js";var A=e(t(),1),j=`quickforgeClientMessageId`;function M(e){let t=e?.metadata;return t&&typeof t==`object`&&!Array.isArray(t)?t:void 0}function N(e){let t=M(e)?.[j];return typeof t==`string`&&t?t:void 0}function P(){return`qfcm_${typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}`}function F(e){let t=N(e);if(t)return{message:e,clientMessageId:t};let n=P();return{message:{...e,metadata:{...M(e),[j]:n}},clientMessageId:n}}function I(e){return typeof e==`string`?e:Array.isArray(e)?e.filter(e=>e&&typeof e==`object`&&e.type===`text`).map(e=>e.text).filter(e=>typeof e==`string`).join(``):``}function L(e,t){if(!e||!t||e.role!==t.role)return!1;let n=N(e),r=N(t);return n&&r?n===r:I(e.content)===I(t.content)}async function R(e,t){let n=await fetch(e,{...t,cache:`no-store`,headers:{...t?.body?{"content-type":`application/json`}:void 0,...t?.headers}}),r=await n.json().catch(()=>null);if(!n.ok)throw Error(r?.error||`Request failed: ${n.status}`);return r}var z=class e{state;streamFn=d;getApiKey;sessionId;shareId;permission;listeners=new Set;eventSource=null;disposed=!1;reconnectTimer=null;reconnectDelay=1e3;baseUrl=``;syncingThinkingLevel=!1;planMode=!1;onPlanModeConsumed;constructor(e,t){this.shareId=e,this.sessionId=t.sessionId||t.id||e,this.permission=t.permission??`read`;let n={systemPrompt:t.systemPrompt??``,model:t.model??{provider:`shared`,id:`shared`},thinkingLevel:t.thinkingLevel??`off`,messages:t.messages?.slice()??[],tools:t.tools??[],isStreaming:!!t.isStreaming,streamingMessage:void 0,pendingToolCalls:new Set,errorMessage:t.errorMessage,contextCompaction:t.contextCompaction??null,contextUsage:t.contextUsage??null};this.state=new Proxy(n,{set:(e,t,n)=>{let r=e[t];return e[t]=n,t===`thinkingLevel`&&!this.syncingThinkingLevel&&n!==r&&this.updateThinkingLevel(n).catch(e=>{f.error(`Failed to update shared thinking level:`,e)}),!0}}),this.connectEvents()}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setNextPromptCapabilities(){}setPlanMode(e,t){this.planMode=e,this.onPlanModeConsumed=e?t:void 0}async prompt(e){if(this.disposed||this.permission!==`operate`)return;let{message:t,clientMessageId:n}=F(this.normalizeInput(e)),r=this.planMode?{type:`plan`}:void 0;if(this.planMode){this.planMode=!1;let e=this.onPlanModeConsumed;this.onPlanModeConsumed=void 0,e?.()}this.state.messages=[...this.state.messages,t],this.emit({type:`message_start`,message:t}),this.state.isStreaming||(this.state.isStreaming=!0,this.state.errorMessage=void 0,this.emit({type:`agent_start`}));try{await R(`/api/shared/${encodeURIComponent(this.shareId)}/message`,{method:`POST`,body:JSON.stringify({message:t,clientMessageId:n,command:r})})}catch(e){let t=e instanceof Error?e.message:String(e);throw this.state.errorMessage=t,this.state.isStreaming=!1,this.emit({type:`error`,error:t}),this.emit({type:`agent_end`,messages:this.state.messages}),e}}async updateModel(e){if(!(this.disposed||this.permission!==`operate`)){this.state.model=e;try{let t=await R(`/api/shared/${encodeURIComponent(this.shareId)}/model`,{method:`POST`,body:JSON.stringify({model:e})});t.model&&(this.state.model=t.model)}catch(e){let t=e instanceof Error?e.message:String(e);throw this.state.errorMessage=t,this.emit({type:`error`,error:t}),e}}}async updateThinkingLevel(e){if(!(this.disposed||this.permission!==`operate`)){!this.syncingThinkingLevel&&this.state.thinkingLevel!==e&&(this.state.thinkingLevel=e);try{let t=await R(`/api/shared/${encodeURIComponent(this.shareId)}/thinking-level`,{method:`POST`,body:JSON.stringify({thinkingLevel:e})});t.thinkingLevel&&(this.state.thinkingLevel=t.thinkingLevel)}catch(e){let t=e instanceof Error?e.message:String(e);throw this.state.errorMessage=t,this.emit({type:`error`,error:t}),e}}}abort(){this.permission===`operate`&&fetch(`/api/shared/${encodeURIComponent(this.shareId)}/abort`,{method:`POST`}).catch(e=>{f.error(`Failed to abort shared conversation:`,e)})}steer(){}followUp(){}reset(){this.state.messages=[],this.state.errorMessage=void 0,this.state.isStreaming=!1,this.state.streamingMessage=void 0,this.state.pendingToolCalls=new Set}async rollback(e){if(this.permission!==`operate`)return;let t=await R(`/api/shared/${encodeURIComponent(this.shareId)}/rollback`,{method:`POST`,body:JSON.stringify({messageIndex:e})});return this.applyState(t.session),this.emit({type:`messages_replaced`,messages:this.state.messages}),t}dispose(){this.disposed=!0,this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null,this.eventSource?.close(),this.eventSource=null,this.listeners.clear()}static async loadState(e){return R(`/api/shared/${encodeURIComponent(e)}/session`)}static async create(t){return new e(t,await e.loadState(t))}normalizeInput(e){return typeof e==`string`?{role:`user`,content:e,timestamp:Date.now()}:Array.isArray(e)?[...e].reverse().find(e=>e.role===`user`||e.role===`user-with-attachments`)??e[e.length-1]:e}connectEvents(){this.disposed||(this.eventSource?.close(),this.baseUrl=``,this.openEventSource())}openEventSource(){if(this.disposed)return;let e=`${this.baseUrl}/api/shared/${encodeURIComponent(this.shareId)}/events`;this.eventSource=new EventSource(e,{withCredentials:!0}),this.eventSource.onopen=()=>{this.reconnectDelay=1e3};let t=[`state`,`agent_start`,`agent_end`,`message_start`,`message_end`,`turn_start`,`turn_end`,`message_update`,`tool_execution_start`,`tool_execution_update`,`tool_execution_end`,`error`,`title_updated`,`messages_replaced`,`auto_compact_completed`],n=e=>t=>{try{let n=JSON.parse(t.data);this.handleEvent(e?{type:e,...n}:n)}catch{}};this.eventSource.onmessage=n();for(let e of t)this.eventSource.addEventListener(e,n(e));this.eventSource.onerror=()=>{this.eventSource?.close(),this.eventSource=null,this.scheduleReconnect()}}scheduleReconnect(){this.disposed||this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.reconnectDelay=Math.min(this.reconnectDelay*2,3e4),this.openEventSource()},this.reconnectDelay))}handleEvent(e){if(e.type){switch(e.type){case`state`:this.applyState(e);break;case`agent_start`:this.state.isStreaming=!0,this.state.errorMessage=void 0;break;case`agent_end`:this.state.isStreaming=!1,this.state.streamingMessage=void 0;break;case`message_start`:if(e.message){let t=this.state.messages.findIndex(t=>L(t,e.message));if(t>=0){let n=this.state.messages.slice();n[t]=e.message,this.state.messages=n}else this.state.messages=[...this.state.messages,e.message];this.state.contextUsage=null}break;case`message_update`:e.message&&(this.state.streamingMessage=e.message);break;case`message_end`:e.message&&(this.state.messages=D(this.state.messages,e.message)),this.state.contextUsage=`contextUsage`in e?e.contextUsage:null,this.state.streamingMessage=void 0;break;case`messages_replaced`:e.messages&&(this.state.messages=e.messages,this.state.streamingMessage=void 0),`contextCompaction`in e&&(this.state.contextCompaction=e.contextCompaction),`contextUsage`in e&&(this.state.contextUsage=e.contextUsage);break;case`auto_compact_completed`:`contextCompaction`in e&&(this.state.contextCompaction=e.contextCompaction),`contextUsage`in e&&(this.state.contextUsage=e.contextUsage);break;case`tool_execution_start`:{let t=e;t.toolCallId&&(this.state.messages=w(this.state.messages,b(t),!0),this.state.pendingToolCalls=new Set([...this.state.pendingToolCalls,t.toolCallId]));break}case`tool_execution_update`:{let t=e;this.state.messages=w(this.state.messages,t,!0),t.toolCallId&&(this.state.pendingToolCalls=new Set([...this.state.pendingToolCalls,t.toolCallId]));break}case`tool_execution_end`:{let t=e;if(this.state.messages=w(this.state.messages,t,!1),t.toolCallId){let e=new Set(this.state.pendingToolCalls);e.delete(t.toolCallId),this.state.pendingToolCalls=e}break}case`error`:this.state.errorMessage=typeof e.error==`string`?e.error:`Unknown error`,this.state.isStreaming=!1;break}this.emit(e)}}applyState(e){this.sessionId=e.sessionId||e.id||this.sessionId,e.messages&&(this.state.messages=e.messages,this.state.contextUsage=e.contextUsage===void 0?null:e.contextUsage),e.systemPrompt!==void 0&&(this.state.systemPrompt=e.systemPrompt),e.model&&(this.state.model=e.model),e.thinkingLevel&&(this.syncingThinkingLevel=!0,this.state.thinkingLevel=e.thinkingLevel,this.syncingThinkingLevel=!1),e.tools&&(this.state.tools=e.tools),e.isStreaming!==void 0&&(this.state.isStreaming=!!e.isStreaming),e.errorMessage!==void 0&&(this.state.errorMessage=e.errorMessage),e.contextCompaction!==void 0&&(this.state.contextCompaction=e.contextCompaction),e.contextUsage!==void 0&&(this.state.contextUsage=e.contextUsage)}emit(e){for(let t of this.listeners)try{t(e)}catch{}}},B=i();function V(e){return{id:`shared-${e.provider}`,name:e.provider,type:e.api,baseUrl:e.baseUrl??``,models:[e]}}async function H(e,t){try{let t=await T(e);if(t.providers?.length)return t.providers}catch{}return t?[V(t)]:[]}function U(e,t){let n=t.model??{provider:`shared`,id:`shared`};return new z(e,{...t,model:n,thinkingLevel:t.thinkingLevel??O(n)})}function W(e,t){let n={settings:new u,providerKeys:new c,sessions:new s,customProviders:new l},r=new g(``,{blockedStores:[`sessions`,`provider-keys`],fakeProviderKeys:t?[t.provider]:void 0,storeOverrides:t?{"custom-providers":{keys:async()=>(await H(e,t)).map(e=>e.name),get:async n=>(await H(e,t)).find(e=>e.name===n)??null,has:async n=>(await H(e,t)).some(e=>e.name===n)}}:void 0});n.settings.setBackend(r),n.providerKeys.setBackend(r),n.sessions.setBackend(r),n.customProviders.setBackend(r),a(new o(n.settings,n.providerKeys,n.sessions,n.customProviders,r))}function G({shareId:e}){let[t,i]=(0,A.useState)(``),[a,o]=(0,A.useState)(null),[s,c]=(0,A.useState)(`read`),[l,u]=(0,A.useState)(`QuickForge 分享对话`),[d,g]=(0,A.useState)(),[b,w]=(0,A.useState)(!1),[T,D]=(0,A.useState)(),O=(0,A.useRef)(!1),j=s===`operate`,M=!!a,N=!!a?.state.tools?.length;(0,A.useEffect)(()=>{W(e,a?.state.model)},[a?.state.model,e]),(0,A.useEffect)(()=>()=>a?.dispose(),[a]);let P=(0,A.useCallback)(async(n=t.trim())=>{g(void 0),w(!0);try{let t=await C(e,n);c(t.permission),u(t.title||t.share.titleSnapshot||`QuickForge 分享对话`);let r=await z.loadState(e);W(e,r.model),o(U(e,r))}catch(e){g(e instanceof Error?e.message:`Failed to unlock shared conversation`)}finally{w(!1)}},[t,e]);(0,A.useEffect)(()=>{if(M||b||O.current)return;O.current=!0;let t=window.setTimeout(()=>{(async()=>{try{(await x(e)).share.hasPassword||await P(``)}catch(e){g(e instanceof Error?e.message:`Failed to load shared conversation`)}})()},0);return()=>window.clearTimeout(t)},[b,e,P,M]);let F=(0,A.useCallback)(async e=>{await v(e)},[]),I=(0,A.useCallback)(async()=>{if(!(!a||a.permission!==`operate`))try{let t=(await H(e,a.state.model)).flatMap(e=>e.models??[]);if(!t.length)return;p(a.state.model,t,t=>{!t.reasoning&&a.state.thinkingLevel!==`off`&&a.updateThinkingLevel(`off`).catch(e=>{f.error(`Failed to update shared thinking level:`,e)}),W(e,t),a.updateModel(t).catch(e=>{g(e instanceof Error?e.message:`Failed to update model`)})},void 0,{thinkingLevel:a.state.thinkingLevel,onThinkingLevelSelect:e=>{a.updateThinkingLevel(e).catch(e=>{f.error(`Failed to update shared thinking level:`,e),g(e instanceof Error?e.message:`Failed to update thinking level`)})}})}catch(e){g(e instanceof Error?e.message:`Failed to load models`)}},[a,e]),L=(0,A.useCallback)(e=>{D(t=>t?.id===e?void 0:t)},[]),R=(0,A.useCallback)(async e=>{if(!a||a.permission!==`operate`)return;if(g(void 0),a.state.isStreaming){E(m(`generationStillRunning`));return}let t=_(a.state.messages,e),n=t>=0?a.state.messages[t]:void 0;if(!n){E(m(`noConversationTurnToRollback`));return}try{await a.rollback(e),D({id:Date.now(),sessionId:a.sessionId,text:y(n),attachments:n.role===`user-with-attachments`?n.attachments:void 0})}catch(e){g(e instanceof Error?e.message:`Failed to roll back`)}},[a]);return M?(0,B.jsxs)(`div`,{className:`flex h-screen min-h-0 flex-col bg-background text-foreground`,children:[(0,B.jsx)(`header`,{className:h(`shrink-0 border-b px-4 py-3`,j?`border-red-300 bg-red-50 text-red-950`:`border-border bg-background`),children:(0,B.jsxs)(`div`,{className:`mx-auto flex max-w-4xl items-start gap-3`,children:[(0,B.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,B.jsx)(`div`,{className:`truncate text-sm font-semibold`,children:l}),(0,B.jsxs)(`div`,{className:`mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs`,children:[(0,B.jsxs)(`span`,{className:h(`inline-flex items-center gap-1 rounded-full px-2 py-0.5 font-medium`,j?`bg-red-100 text-red-700`:`bg-muted text-muted-foreground`),children:[j?(0,B.jsx)(n,{className:`size-3.5`}):null,j?`高危可操作`:`只读分享`]}),(0,B.jsx)(`span`,{className:h(j?`text-red-800`:`text-muted-foreground`),children:j?`正在操作分享者的原始对话`:`只能查看,不能发送或修改`})]}),j?null:(0,B.jsx)(`div`,{className:`mt-1 text-xs leading-5 text-muted-foreground`,children:`界面与正常对话保持一致`})]}),(0,B.jsxs)(S,{variant:`ghost`,size:`sm`,className:h(`shrink-0`,j?`text-red-700 hover:bg-red-100 hover:text-red-800`:void 0),onClick:()=>void v(window.location.href),"aria-label":j?`复制高危分享链接`:`复制分享链接`,title:j?`复制高危分享链接`:`复制分享链接`,children:[(0,B.jsx)(r,{className:`size-4`}),(0,B.jsx)(`span`,{className:`hidden sm:inline`,children:j?`复制高危链接`:`复制链接`})]})]})}),d?(0,B.jsx)(`div`,{className:`mx-auto w-full max-w-4xl px-4 py-2 text-sm text-destructive`,children:d}):null,(0,B.jsx)(k,{agent:a,revision:0,agentAccessMode:N?`full-access`:`default`,workspaceToolsEnabled:N,onModelSelect:I,onAccessModeChange:()=>void 0,onRollbackFromMessage:R,onRetryFromMessage:()=>void 0,onCopyAnswer:F,onForkFromMessage:()=>void 0,onApproveToolCall:()=>void 0,onRejectToolCall:()=>void 0,disableFork:!0,rollbackConfirmTitle:m(`sharedRollbackConfirmTitle`),rollbackConfirmDescription:m(`sharedRollbackConfirm`),readOnly:!j,restoredDraft:T,onRestoredDraftConsumed:L,bypassClientApiKeyCheck:!0})]}):(0,B.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background p-6 text-foreground`,children:(0,B.jsxs)(`div`,{className:`w-full max-w-md rounded-2xl border border-border bg-background p-6 shadow-quickforge`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-2 text-base font-semibold`,children:[(0,B.jsx)(n,{className:`size-5 text-amber-500`}),`QuickForge 局域网对话分享`]}),(0,B.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:`如果分享者设置了密码,请输入密码。未设置密码的链接会自动打开。`}),(0,B.jsx)(`input`,{type:`password`,value:t,onChange:e=>i(e.target.value),onKeyDown:e=>{e.key===`Enter`&&P()},className:`mt-5 h-10 w-full rounded-md border border-input bg-background px-3 text-sm outline-none focus:border-primary`,placeholder:`密码`,autoFocus:!0}),d?(0,B.jsx)(`div`,{className:`mt-3 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive`,children:d}):null,(0,B.jsx)(S,{className:`mt-5 w-full`,onClick:()=>void P(),disabled:b||!t.trim(),children:b?m(`loading`):`用密码打开分享对话`})]})})}export{G as SharedConversationPage};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-DWdDZTNf.js";import{$ as t,B as n,Ct as r,D as i,It as a,K as o,L as s,M as c,Nt as l,Q as u,S as d,St as f,U as p,W as m,Y as h,_ as g,at as _,b as v,bt as y,ct as b,g as ee,i as te,it as x,j as S,kt as C,lt as w,n as T,nt as E,q as D,rt as ne,s as re,ut as ie,y as ae}from"./icons-cTkqD_Gi.js";import{n as oe}from"./react-vendor-eWH0QhNU.js";import{At as se,C as ce,It as O,J as le,L as ue,Mt as k,S as de,T as fe,_ as pe,at as me,b as he,c as A,ct as ge,d as _e,dt as ve,g as ye,h as be,it as xe,jt as j,l as Se,lt as Ce,o as we,ot as Te,q as Ee,rt as De,st as Oe,u as ke,ut as Ae,v as je,w as Me,x as Ne,y as Pe,z as M}from"./index-B48prgLL.js";import{n as Fe,r as N,t as Ie}from"./mermaid-renderer-PIaNiXAz.js";import{TerminalDock as Le,t as Re}from"./TerminalDock-Dgg-_ZmU.js";import{n as ze,t as Be}from"./monaco-BVtCspYZ.js";var P=e(a(),1),F=oe(),Ve={"not-found":{icon:u,title:`previewErrorNotFoundTitle`,description:`previewErrorNotFoundDescription`},unsupported:{icon:t,title:`artifactPreviewUnsupported`,description:`artifactPreviewUnsupportedDescription`},"too-large":{icon:p,title:`previewErrorTooLargeTitle`,description:`previewErrorTooLargeDescription`},"permission-denied":{icon:C,title:`previewErrorPermissionTitle`,description:`previewErrorPermissionDescription`},"service-failed":{icon:ee,title:`previewErrorServiceTitle`,description:`previewErrorServiceDescription`},unknown:{icon:te,title:`previewErrorUnknownTitle`,description:`previewErrorUnknownDescription`}};function He({issue:e,onRetry:t}){let n=Ve[e.kind],r=n.icon;return(0,F.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center overflow-auto px-8 py-10 text-center`,children:[(0,F.jsx)(r,{className:`size-20 shrink-0 stroke-[1.55] text-muted-foreground/75`}),(0,F.jsx)(`div`,{className:`mt-8 text-xl font-semibold tracking-tight text-foreground/88`,children:O(n.title)}),(0,F.jsx)(`div`,{className:`mt-4 max-w-md text-base leading-6 text-muted-foreground/82`,children:O(n.description)}),e.retryable&&t?(0,F.jsxs)(j,{type:`button`,variant:`outline`,size:`sm`,className:`mt-6`,onClick:t,children:[(0,F.jsx)(v,{className:`size-3.5`}),O(`retry`)]}):null,(0,F.jsxs)(`details`,{className:`mt-6 w-full max-w-xl rounded-xl border border-[color-mix(in_oklab,var(--border)_55%,transparent)] bg-background/65 text-left text-sm text-muted-foreground`,children:[(0,F.jsx)(`summary`,{className:`cursor-pointer select-none px-4 py-3 font-medium text-foreground/78 marker:text-muted-foreground`,children:O(`previewErrorDetails`)}),(0,F.jsxs)(`dl`,{className:`space-y-3 border-t border-border/60 px-4 py-3`,children:[typeof e.status==`number`?(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{className:`text-xs text-muted-foreground/70`,children:O(`previewErrorStatusCode`)}),(0,F.jsx)(`dd`,{className:`mt-1 font-mono text-xs text-foreground/82`,children:e.status})]}):null,e.code?(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{className:`text-xs text-muted-foreground/70`,children:O(`previewErrorCode`)}),(0,F.jsx)(`dd`,{className:`mt-1 break-all font-mono text-xs text-foreground/82`,children:e.code})]}):null,e.path?(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{className:`text-xs text-muted-foreground/70`,children:O(`previewErrorFilePath`)}),(0,F.jsx)(`dd`,{className:`mt-1 break-all font-mono text-xs text-foreground/82`,children:e.path})]}):null,(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{className:`text-xs text-muted-foreground/70`,children:O(`previewErrorRawMessage`)}),(0,F.jsx)(`dd`,{className:`mt-1 whitespace-pre-wrap break-all font-mono text-xs leading-5 text-foreground/82`,children:e.error})]})]})]})]})}function Ue(e){let t=e.status,n=e.code,r=`unknown`;return n===`PREVIEW_FILE_NOT_FOUND`||t===404?r=`not-found`:n===`PREVIEW_UNSUPPORTED_TYPE`||t===415?r=`unsupported`:n===`PREVIEW_FILE_TOO_LARGE`||t===413?r=`too-large`:n===`PREVIEW_PERMISSION_DENIED`||t===401||t===403?r=`permission-denied`:(n===`PREVIEW_SERVICE_FAILED`||typeof t==`number`&&t>=500)&&(r=`service-failed`),{kind:r,status:t,code:n,path:e.path,error:e.error||`Unknown preview error`,retryable:r!==`unsupported`&&r!==`permission-denied`}}function We(e){let t=e.indexOf(`#`),n=t>=0?e.slice(0,t):e;return`${n}${n.includes(`?`)?`&`:`?`}__quickforge_check=1`}function Ge(e){let t=e.trim();if(!t.startsWith(`/api/workspace/preview/`))return!1;try{let e=new URL(t,window.location.origin);return e.origin===window.location.origin&&e.pathname.startsWith(`/api/workspace/preview/`)}catch{return!1}}function Ke(e){let t=e.trim().replace(/\\/g,`/`);return t.startsWith(`/`)||/^[a-zA-Z]:\//.test(t)}function I(e,t){let n=e.trim();if(!t||!Ge(n))return n;try{let e=new URL(n,window.location.origin),r=`/api/workspace/preview/${encodeURIComponent(t)}/`;return e.pathname.startsWith(r)?e.pathname.slice(r.length).split(`/`).map(e=>decodeURIComponent(e)).join(`/`):n}catch{return n}}function L(e,t){let n=e.trim();if(!n)return{url:``,displayUrl:``,error:``};if(Ge(n)){let e=new URL(n,window.location.origin);return{url:`${e.pathname}${e.search}${e.hash}`,displayUrl:I(n,t),error:``}}if(t&&Ke(n))return{url:_e(t,n),displayUrl:n,error:``};let r=/^https?:\/\//i.test(n)?n:`http://${n}`;try{let e=new URL(r);return e.protocol!==`http:`&&e.protocol!==`https:`?{url:``,displayUrl:n,error:O(`invalidPreviewUrl`)}:{url:e.toString(),displayUrl:e.toString(),error:``}}catch{return{url:``,displayUrl:n,error:O(`invalidPreviewUrl`)}}}function qe({url:e,onUrlChange:t,projectId:n}){let r=(0,P.useMemo)(()=>L(e,n),[n,e]),[i,a]=(0,P.useState)({sourceUrl:e,value:r.displayUrl}),[o,s]=(0,P.useState)(``),[c,u]=(0,P.useState)(0),[f,p]=(0,P.useState)(!1),[h,g]=(0,P.useState)(100),[y,b]=(0,P.useState)(null),ee=(0,P.useRef)(null),te=(0,P.useRef)(null),x=r.url,C=x.startsWith(`/api/workspace/preview/`),w=C?r.displayUrl:``,T=(0,P.useMemo)(()=>w&&!Se(w)?Ue({status:415,code:`PREVIEW_UNSUPPORTED_TYPE`,path:w,error:`Unsupported preview file type`}):null,[w]),E=C?`${x}:${c}`:``,D=y?.key===E?y.issue:null,re=T??D,ie=C&&!T&&y?.key!==E,ae=!C||y?.key===E&&!y.issue,oe=C?`allow-scripts allow-same-origin allow-forms`:`allow-scripts allow-same-origin allow-forms allow-popups allow-downloads allow-modals allow-pointer-lock`,se=i.sourceUrl===e?i.value:r.displayUrl;(0,P.useEffect)(()=>{if(!f)return;function e(e){ee.current?.contains(e.target)||p(!1)}return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[f]),(0,P.useEffect)(()=>{if(!C||!w||T)return;let e=new AbortController;return fetch(We(x),{cache:`no-store`,signal:e.signal}).then(async e=>{let t=await e.json().catch(()=>null);if(e.ok){b({key:E,issue:null});return}b({key:E,issue:Ue({status:e.status,code:typeof t?.code==`string`?t.code:void 0,path:typeof t?.path==`string`?t.path:w,error:typeof t?.error==`string`?t.error:`${e.status} ${e.statusText}`.trim()})})}).catch(t=>{e.signal.aborted||b({key:E,issue:Ue({code:`PREVIEW_SERVICE_FAILED`,path:w,error:t instanceof Error?t.message:String(t)})})}),()=>e.abort()},[C,E,x,T,w]);function ce(){try{te.current?.contentWindow?.history.back()}catch{}}function le(e=se){let r=L(e,n);if(r.error){s(r.error);return}s(``),a({sourceUrl:r.displayUrl,value:r.displayUrl}),t(r.displayUrl),r.url&&u(e=>e+1)}function ue(){x&&u(e=>e+1)}function k(){x&&window.open(x,`_blank`,`noopener,noreferrer`)}return(0,F.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,F.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-2 border-b border-border p-3`,children:[(0,F.jsxs)(`form`,{className:`flex items-center gap-2`,onSubmit:e=>{e.preventDefault(),le()},children:[(0,F.jsx)(j,{type:`button`,variant:`ghost`,size:`icon`,onClick:ce,disabled:!x,"aria-label":O(`back`),title:O(`back`),children:(0,F.jsx)(l,{className:`size-4`})}),(0,F.jsx)(j,{type:`button`,variant:`ghost`,size:`icon`,onClick:ue,disabled:!x,"aria-label":O(`refreshPreview`),title:O(`refreshPreview`),children:(0,F.jsx)(v,{className:`size-4`})}),(0,F.jsxs)(`label`,{className:`mx-auto flex h-9 min-w-0 max-w-xl flex-1 items-center rounded-full border border-[color-mix(in_oklab,var(--border)_42%,transparent)] bg-muted/30 px-3 text-sm text-muted-foreground/65 focus-within:bg-background focus-within:text-foreground/85`,children:[(0,F.jsx)(`span`,{className:`sr-only`,children:O(`previewUrl`)}),(0,F.jsx)(`input`,{value:se,onChange:t=>{a({sourceUrl:e,value:t.target.value}),o&&s(``)},placeholder:O(`previewUrlPlaceholder`),className:`min-w-0 flex-1 bg-transparent text-center text-sm text-foreground/85 outline-none placeholder:text-muted-foreground/55`})]}),(0,F.jsx)(j,{type:`button`,variant:`ghost`,size:`icon`,onClick:k,disabled:!x,"aria-label":O(`openInBrowser`),title:O(`openInBrowser`),children:(0,F.jsx)(ne,{className:`size-4`})}),(0,F.jsxs)(`div`,{ref:ee,className:`relative shrink-0`,children:[(0,F.jsx)(j,{type:`button`,variant:`ghost`,size:`icon`,onClick:()=>p(e=>!e),"aria-label":O(`more`),title:O(`more`),"aria-haspopup":`menu`,"aria-expanded":f,children:(0,F.jsx)(_,{className:`size-4`})}),f?(0,F.jsxs)(`div`,{className:`absolute right-0 top-10 z-30 w-48 rounded-2xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-popover p-2 shadow-quickforge`,role:`menu`,children:[(0,F.jsx)(`div`,{className:`px-2 py-1.5 text-xs font-medium text-muted-foreground`,children:O(`zoom`)}),(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-2 rounded-xl px-1 py-1.5`,children:[(0,F.jsx)(j,{type:`button`,variant:`ghost`,size:`icon`,className:`size-8`,onClick:()=>g(e=>Math.max(50,e-10)),"aria-label":O(`zoomOut`),title:O(`zoomOut`),children:(0,F.jsx)(S,{className:`size-4`})}),(0,F.jsxs)(`button`,{type:`button`,className:`min-w-14 rounded-lg px-2 py-1 text-sm font-medium text-foreground/85 hover:bg-muted/50`,onClick:()=>g(100),title:O(`resetZoom`),children:[h,`%`]}),(0,F.jsx)(j,{type:`button`,variant:`ghost`,size:`icon`,className:`size-8`,onClick:()=>g(e=>Math.min(200,e+10)),"aria-label":O(`zoomIn`),title:O(`zoomIn`),children:(0,F.jsx)(d,{className:`size-4`})})]})]}):null]})]}),o?(0,F.jsx)(`div`,{className:`text-xs text-destructive`,children:o}):null]}),(0,F.jsx)(`div`,{className:`min-h-0 flex-1 bg-muted/10`,children:re?(0,F.jsx)(He,{issue:re,onRetry:ue}):ie?(0,F.jsxs)(`div`,{className:`flex h-full items-center justify-center text-sm text-muted-foreground/75`,children:[(0,F.jsx)(v,{className:`mr-2 size-4 animate-spin`}),O(`previewChecking`)]}):x&&ae?(0,F.jsx)(`div`,{className:`h-full w-full overflow-auto bg-background`,children:(0,F.jsx)(`iframe`,{ref:te,title:O(`webPreview`),src:x,sandbox:oe,className:`origin-top-left border-0 bg-background`,style:{width:`${1e4/h}%`,height:`${1e4/h}%`,transform:`scale(${h/100})`}},`${x}:${c}`)}):(0,F.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center px-8 text-center`,children:[(0,F.jsx)(m,{className:`size-20 stroke-[1.55] text-muted-foreground/75`}),(0,F.jsx)(`div`,{className:`mt-8 text-xl font-semibold tracking-tight text-foreground/88`,children:O(`noPreviewUrlTitle`)}),(0,F.jsx)(`div`,{className:`mt-4 max-w-xs text-base leading-6 text-muted-foreground/82`,children:O(`noPreviewUrlDescription`)})]})})]})}function R({source:e}){let[t,n]=(0,P.useState)({source:e,value:`preview`}),[r,i]=(0,P.useState)({source:``,dataUrl:``,error:!1});(0,P.useEffect)(()=>{let t=!1;return N(e).then(n=>{t||i({source:e,dataUrl:Ie(n),error:!1})}).catch(()=>{t||i({source:e,dataUrl:``,error:!0})}),()=>{t=!0}},[e]);let a=r.source===e?r:{source:e,dataUrl:``,error:!1},o=t.source===e?t.value:`preview`,s=r.source!==e,c=o===`source`||a.error;return(0,F.jsxs)(`figure`,{className:`my-5 overflow-hidden rounded-xl border border-border bg-muted/20`,children:[(0,F.jsxs)(`figcaption`,{className:`flex min-h-9 items-center justify-between gap-3 border-b border-border px-3 py-1.5`,children:[(0,F.jsx)(`span`,{className:`font-mono text-[11px] text-muted-foreground/65`,children:`mermaid`}),(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-md bg-background/70 p-0.5`,children:[(0,F.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1 text-[11px] text-muted-foreground transition-colors hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40`,disabled:!a.dataUrl,"aria-pressed":!c,onClick:()=>n({source:e,value:`preview`}),children:O(`svgPreviewMode`)}),(0,F.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1 text-[11px] text-muted-foreground transition-colors hover:text-foreground`,"aria-pressed":c,onClick:()=>n({source:e,value:`source`}),children:O(`svgSourceMode`)})]})]}),s?(0,F.jsx)(`div`,{className:`flex min-h-28 items-center justify-center px-4 py-8 text-xs text-muted-foreground/70`,role:`status`,children:O(`mermaidRendering`)}):c?(0,F.jsxs)(F.Fragment,{children:[a.error?(0,F.jsx)(`p`,{className:`px-4 pt-3 text-xs text-muted-foreground`,children:O(`mermaidRenderFailed`)}):null,(0,F.jsx)(`pre`,{className:`overflow-auto p-4 text-[12px] leading-5`,children:(0,F.jsx)(`code`,{children:e})})]}):(0,F.jsx)(`div`,{className:`flex min-h-28 justify-center overflow-auto bg-background/45 p-4`,children:(0,F.jsx)(`img`,{className:`h-auto max-w-full object-contain`,src:a.dataUrl,alt:O(`mermaidPreviewLabel`)})})]})}function z(){let[e,t]=(0,P.useState)(()=>M());return(0,P.useEffect)(()=>{if(typeof window>`u`)return;let e=()=>t(M());return window.addEventListener(ue,e),()=>window.removeEventListener(ue,e)},[]),e}function Je({path:e,content:t,language:n,wordWrap:r=!1}){let i=Re(),a=z();return(0,F.jsx)(Be,{value:t,language:n,theme:i===`dark`?`vs-dark`:`vs`,options:{readOnly:!0,contextmenu:!1,automaticLayout:!0,minimap:{enabled:!1},fontFamily:getComputedStyle(document.documentElement).getPropertyValue(`--font-mono`).trim()||`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace`,fontSize:a.fontSize,lineHeight:a.lineHeight,lineNumbers:`on`,scrollBeyondLastLine:!1,wordWrap:r?`on`:`off`,renderLineHighlight:`line`,folding:!1,glyphMargin:!1,scrollbar:{horizontal:r?`auto`:`visible`,horizontalScrollbarSize:10,verticalScrollbarSize:8}}},e)}function Ye(e){let t=e.trim();if(t&&!/^(javascript|data|vbscript):/i.test(t)&&/^(https?:|mailto:|#|\/|\.\.?\/)/i.test(t))return t}function B(e,t){let n=[],r=/`([^`]+)`|\[([^\]]+)\]\(([^)\s]+)(?:\s+"[^"]*")?\)|\*\*([^*]+)\*\*|__([^_]+)__|\*([^*\n]+)\*|_([^_\n]+)_/g,i=0,a=0,o;for(;o=r.exec(e);){o.index>i&&n.push(e.slice(i,o.index));let s=`${t}-inline-${a++}`;if(o[1])n.push((0,F.jsx)(`code`,{className:`rounded bg-muted/35 px-1 py-0.5 font-mono text-[0.85em] text-foreground/90`,children:o[1]},s));else if(o[2]&&o[3]){let e=Ye(o[3]);n.push(e?(0,F.jsx)(`a`,{className:`text-primary underline-offset-4 hover:underline`,href:e,target:e.startsWith(`http`)?`_blank`:void 0,rel:`noreferrer`,children:o[2]},s):`[${o[2]}](${o[3]})`)}else o[4]||o[5]?n.push((0,F.jsx)(`strong`,{className:`font-semibold text-foreground/95`,children:o[4]||o[5]},s)):(o[6]||o[7])&&n.push((0,F.jsx)(`em`,{className:`italic`,children:o[6]||o[7]},s));i=r.lastIndex}return i<e.length&&n.push(e.slice(i)),n.length?n:[e]}function Xe(e,t){return e.split(`
|
|
2
|
-
`).flatMap((e,n)=>{let r=B(e,`${t}-line-${n}`);return n===0?r:[(0,F.jsx)(`br`,{},`${t}-br-${n}`),...r]})}function V(e){return/^\s*(```|~~~)/.test(e)}function H(e){return/^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)+\|?\s*$/.test(e)}function Ze(e,t){return!!(e[t]?.includes(`|`)&&e[t+1]&&H(e[t+1]))}function Qe(e,t){let n=e[t]??``;return V(n)||Ze(e,t)||/^\s{0,3}#{1,6}\s+/.test(n)||/^\s{0,3}([-*_])(?:\s*\1){2,}\s*$/.test(n)||/^\s{0,3}>\s?/.test(n)||/^\s{0,3}[-*+]\s+/.test(n)||/^\s{0,3}\d+[.)]\s+/.test(n)}function $e(e){return e.trim().replace(/^\|/,``).replace(/\|$/,``).split(`|`).map(e=>e.trim())}function et(e){let t=e.replace(/\r\n?/g,`
|
|
3
|
-
`).split(`
|
|
4
|
-
`),n=[],r=0,i=0;for(;r<t.length;){let e=t[r],a=`markdown-block-${i++}`;if(!e.trim()){r+=1;continue}if(V(e)){let i=e.match(/^\s*(```|~~~)\s*([^`]*)$/),o=i?.[1]??"```",s=i?.[2]?.trim(),c=[];for(r+=1;r<t.length&&!t[r].trimStart().startsWith(o);)c.push(t[r]),r+=1;r<t.length&&(r+=1);let l=c.join(`
|
|
5
|
-
`);Fe(s)?n.push((0,F.jsx)(R,{source:l},a)):n.push((0,F.jsxs)(`figure`,{className:`my-5 overflow-hidden rounded-xl border border-border bg-muted/20`,children:[s?(0,F.jsx)(`figcaption`,{className:`border-b border-border px-3 py-1.5 font-mono text-[11px] text-muted-foreground/65`,children:s}):null,(0,F.jsx)(`pre`,{className:`overflow-auto p-4 text-[12px] leading-5`,children:(0,F.jsx)(`code`,{children:l})})]},a));continue}let o=e.match(/^\s{0,3}(#{1,6})\s+(.+?)\s*#*\s*$/);if(o){let e=o[1].length,t=o[2],i=[`mt-8 mb-3 border-border text-foreground/95`,e===1?`border-b pb-3 text-3xl font-semibold tracking-tight`:``,e===2?`border-b pb-2 text-2xl font-semibold tracking-tight`:``,e===3?`text-xl font-semibold`:``,e===4?`text-lg font-semibold`:``,e>=5?`text-base font-semibold`:``].filter(Boolean).join(` `),s=B(t,`${a}-heading`);e===1?n.push((0,F.jsx)(`h1`,{className:i,children:s},a)):e===2?n.push((0,F.jsx)(`h2`,{className:i,children:s},a)):e===3?n.push((0,F.jsx)(`h3`,{className:i,children:s},a)):e===4?n.push((0,F.jsx)(`h4`,{className:i,children:s},a)):e===5?n.push((0,F.jsx)(`h5`,{className:i,children:s},a)):n.push((0,F.jsx)(`h6`,{className:i,children:s},a)),r+=1;continue}if(/^\s{0,3}([-*_])(?:\s*\1){2,}\s*$/.test(e)){n.push((0,F.jsx)(`hr`,{className:`my-6 border-border`},a)),r+=1;continue}if(Ze(t,r)){let e=$e(t[r]);r+=2;let i=[];for(;r<t.length&&t[r].includes(`|`)&&t[r].trim();)i.push($e(t[r])),r+=1;n.push((0,F.jsx)(`div`,{className:`my-5 overflow-auto rounded-xl border border-border`,children:(0,F.jsxs)(`table`,{className:`w-full border-collapse text-left text-sm`,children:[(0,F.jsx)(`thead`,{className:`bg-muted/25 text-foreground/90`,children:(0,F.jsx)(`tr`,{children:e.map((e,t)=>(0,F.jsx)(`th`,{className:`border-b border-border px-3 py-2 font-semibold`,children:B(e,`${a}-th-${t}`)},`${a}-th-${t}`))})}),(0,F.jsx)(`tbody`,{children:i.map((t,n)=>(0,F.jsx)(`tr`,{className:`border-t border-border/70`,children:e.map((e,r)=>(0,F.jsx)(`td`,{className:`px-3 py-2 align-top text-foreground/85`,children:B(t[r]??``,`${a}-td-${n}-${r}`)},`${a}-td-${n}-${r}`))},`${a}-row-${n}`))})]})},a));continue}if(/^\s{0,3}>\s?/.test(e)){let e=[];for(;r<t.length&&/^\s{0,3}>\s?/.test(t[r]);)e.push(t[r].replace(/^\s{0,3}>\s?/,``)),r+=1;n.push((0,F.jsx)(`blockquote`,{className:`my-4 border-l-2 border-border pl-4 text-muted-foreground/85`,children:Xe(e.join(`
|
|
6
|
-
`),`${a}-quote`)},a));continue}if(/^\s{0,3}[-*+]\s+/.test(e)){let e=[];for(;r<t.length&&/^\s{0,3}[-*+]\s+/.test(t[r]);)e.push(t[r].replace(/^\s{0,3}[-*+]\s+/,``)),r+=1;n.push((0,F.jsx)(`ul`,{className:`my-4 list-disc space-y-1 pl-6`,children:e.map((e,t)=>(0,F.jsx)(`li`,{children:B(e,`${a}-li-${t}`)},`${a}-li-${t}`))},a));continue}if(/^\s{0,3}\d+[.)]\s+/.test(e)){let e=[];for(;r<t.length&&/^\s{0,3}\d+[.)]\s+/.test(t[r]);)e.push(t[r].replace(/^\s{0,3}\d+[.)]\s+/,``)),r+=1;n.push((0,F.jsx)(`ol`,{className:`my-4 list-decimal space-y-1 pl-6`,children:e.map((e,t)=>(0,F.jsx)(`li`,{children:B(e,`${a}-li-${t}`)},`${a}-li-${t}`))},a));continue}let s=[];for(;r<t.length&&t[r].trim()&&!Qe(t,r);)s.push(t[r].trim()),r+=1;n.push((0,F.jsx)(`p`,{className:`my-4 text-foreground/86`,children:B(s.join(` `),`${a}-p`)},a))}return n}function tt({path:e,content:t,language:n,mode:r,wordWrap:i=!1}){let a=(0,P.useMemo)(()=>et(t),[t]);return(0,F.jsx)(`div`,{className:`flex h-full min-h-0 flex-col bg-background`,children:(0,F.jsx)(`div`,{className:`min-h-0 flex-1`,children:r===`source`?(0,F.jsx)(Je,{path:e,content:t,language:n,wordWrap:i}):(0,F.jsx)(`div`,{className:`h-full overflow-auto bg-background`,children:(0,F.jsx)(`article`,{className:`quickforge-markdown-reader mx-auto max-w-3xl px-8 py-7 text-sm leading-7 text-foreground/88`,children:a.length?a:(0,F.jsx)(`p`,{className:`text-muted-foreground/70`,children:`This Markdown file is empty.`})})})})})}function nt({path:e,oldContent:t,newContent:n,language:r,status:i}){let a=Re(),o=z();return(0,F.jsx)(ze,{original:t,modified:n,language:r,theme:a===`dark`?`vs-dark`:`vs`,options:{readOnly:!0,contextmenu:!1,automaticLayout:!0,renderSideBySide:!0,minimap:{enabled:!1},fontFamily:getComputedStyle(document.documentElement).getPropertyValue(`--font-mono`).trim()||`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace`,fontSize:o.fontSize,lineHeight:o.lineHeight,scrollBeyondLastLine:!1,ignoreTrimWhitespace:!1,folding:!1,glyphMargin:!1,scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8}}},`${i}:${e}`)}function rt(e,t){let n=e.replace(/\r\n?/g,`
|
|
7
|
-
`).split(`
|
|
8
|
-
`),r=t.replace(/\r\n?/g,`
|
|
9
|
-
`).split(`
|
|
10
|
-
`),i=n.length,a=r.length;if(i*a>4e6)return;let o=Array(a+1).fill(0),s=Array(a+1).fill(0);for(let e=1;e<=i;e++){let t=n[e-1];for(let e=1;e<=a;e++)s[e]=t===r[e-1]?o[e-1]+1:Math.max(o[e],s[e-1]);let i=o;o=s,s=i}let c=o[a];return{added:a-c,removed:i-c}}var it=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ef5350'%20d='M16%202a14%2014%200%201%200%2014%2014A14%2014%200%200%200%2016%202m6%2010h-4v8a4%204%200%201%201-4-4%203.96%203.96%200%200%201%202%20.555V8h6Z'/%3e%3c/svg%3e`,at=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M19.563%2022A5.57%205.57%200%200%201%2014%2016.437v-2.873A5.57%205.57%200%200%201%2019.563%208H24V2h-4.437A11.563%2011.563%200%200%200%208%2013.563v2.873A11.564%2011.564%200%200%200%2019.563%2028H24v-6Z'/%3e%3c/svg%3e`,ot=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23ff5722'%20d='M2%202a1%201%200%200%200-1%201v7a1%201%200%200%200%201%201h6v3l2-1.25L12%2014v-3h2a1%201%200%200%200%201-1V3a1%201%200%200%200-1-1Zm0%201h4v1H2Zm6%200%202%201.25L12%203v2.5l2%201-2%201V10l-2-1.25L8%2010V7.5l-2-1%202-1zM2%205h3v1H2Zm0%202h3v1H2Zm0%202h4v1H2Z'/%3e%3c/svg%3e`,st=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23ff7043'%20d='M2%202a1%201%200%200%200-1%201v10c0%20.554.446%201%201%201h12c.554%200%201-.446%201-1V3a1%201%200%200%200-1-1zm0%203h12v8H2zm1%202%202%202-2%202%201%201%203-3-3-3zm5%203.5V12h5v-1.5z'/%3e%3c/svg%3e`,ct=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M28%2014v-4h-2v4h-6v-4h-2v4h-4v2h4v4h2v-4h6v4h2v-4h4v-2z'/%3e%3cpath%20fill='%230288d1'%20d='M13.563%2022A5.57%205.57%200%200%201%208%2016.437v-2.873A5.57%205.57%200%200%201%2013.563%208H18V2h-4.437A11.563%2011.563%200%200%200%202%2013.563v2.873A11.564%2011.564%200%200%200%2013.563%2028H18v-6Z'/%3e%3c/svg%3e`,lt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M30%2014v-2h-2V8h-2v4h-2V8h-2v4h-2v2h2v2h-2v2h2v4h2v-4h2v4h2v-4h2v-2h-2v-2Zm-4%202h-2v-2h2Zm-12.437%206A5.57%205.57%200%200%201%208%2016.437v-2.873A5.57%205.57%200%200%201%2013.563%208H18V2h-4.437A11.563%2011.563%200%200%200%202%2013.563v2.873A11.564%2011.564%200%200%200%2013.563%2028H18v-6Z'/%3e%3c/svg%3e`,ut=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%237e57c2'%20d='M20%2018h-2v-2h-2v2c0%20.193%200%20.703%201.254%201.033A3.345%203.345%200%200%201%2020%2022h2v2h2v-2c0-.388-.562-.851-1.254-1.034C20.356%2020.34%2020%2018.84%2020%2018m-3.254%202.966C14.356%2020.34%2014%2018.84%2014%2018h-2v-2h-2v8h2v-2h4v2h2v-2c0-.388-.562-.851-1.254-1.034'/%3e%3cpath%20fill='%237e57c2'%20d='M24%204H4v20a4%204%200%200%200%204%204h16.16A3.84%203.84%200%200%200%2028%2024.16V8a4%204%200%200%200-4-4m2%2014h-2v-2h-2v2c0%20.193%200%20.703%201.254%201.033A3.345%203.345%200%200%201%2026%2022v2a2%202%200%200%201-2%202h-2a2%202%200%200%201-2-2%202%202%200%200%201-2%202h-2a2%202%200%200%201-2-2%202%202%200%200%201-2%202h-2a2%202%200%200%201-2-2v-8a2%202%200%200%201%202-2h2a2%202%200%200%201%202%202%202%202%200%200%201%202-2h2a2%202%200%200%201%202%202%202%202%200%200%201%202-2h2a2%202%200%200%201%202%202Z'/%3e%3c/svg%3e`,U=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ffca28'%20d='M16%2024c-5.525%200-10-.9-10-2v4c0%201.1%204.475%202%2010%202s10-.9%2010-2v-4c0%201.1-4.475%202-10%202m0-8c-5.525%200-10-.9-10-2v4c0%201.1%204.475%202%2010%202s10-.9%2010-2v-4c0%201.1-4.475%202-10%202m0-12C10.477%204%206%204.895%206%206v4c0%201.1%204.475%202%2010%202s10-.9%2010-2V6c0-1.105-4.477-2-10-2'/%3e%3c/svg%3e`,dt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%230288d1'%20d='M21.81%2010.25c-.06-.04-.56-.43-1.64-.43-.28%200-.56.03-.84.08-.21-1.4-1.38-2.11-1.43-2.14l-.29-.17-.18.27c-.24.36-.43.77-.51%201.19-.2.8-.08%201.56.33%202.21-.49.28-1.29.35-1.46.35H2.62c-.34%200-.62.28-.62.63%200%201.15.18%202.3.58%203.38.45%201.19%201.13%202.07%202%202.61.98.6%202.59.94%204.42.94.79%200%201.61-.07%202.42-.22%201.12-.2%202.2-.59%203.19-1.16A8.3%208.3%200%200%200%2016.78%2016c1.05-1.17%201.67-2.5%202.12-3.65h.19c1.14%200%201.85-.46%202.24-.85.26-.24.45-.53.59-.87l.08-.24zm-17.96.99h1.76c.08%200%20.16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H3.85c-.09%200-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.43%200h1.76c.08%200%20.16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H6.28c-.09%200-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.47%200h1.75c.1%200%20.17-.07.17-.16V9.5c0-.08-.06-.16-.17-.16H8.75c-.08%200-.15.07-.15.16v1.58c0%20.09.06.16.15.16m2.44%200h1.77c.08%200%20.15-.07.15-.16V9.5c0-.08-.06-.16-.15-.16h-1.77c-.08%200-.15.07-.15.16v1.58c0%20.09.07.16.15.16M6.28%209h1.76c.08%200%20.16-.09.16-.18V7.25c0-.09-.07-.16-.16-.16H6.28c-.09%200-.16.06-.16.16v1.57c.01.09.07.18.16.18m2.47%200h1.75c.1%200%20.17-.09.17-.18V7.25c0-.09-.06-.16-.17-.16H8.75c-.08%200-.15.06-.15.16v1.57c0%20.09.06.18.15.18m2.44%200h1.77c.08%200%20.15-.09.15-.18V7.25c0-.09-.07-.16-.15-.16h-1.77c-.08%200-.15.06-.15.16v1.57c0%20.09.07.18.15.18m0-2.28h1.77c.08%200%20.15-.07.15-.16V5c0-.1-.07-.17-.15-.17h-1.77c-.08%200-.15.06-.15.17v1.56c0%20.08.07.16.15.16m2.46%204.52h1.76c.09%200%20.16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16h-1.76c-.08%200-.15.07-.15.16v1.58c0%20.09.07.16.15.16'/%3e%3c/svg%3e`,ft=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M8%2016h8v2H8zm0-4h8v2H8zm6-10H6c-1.1%200-2%20.9-2%202v16c0%201.1.89%202%201.99%202H18c1.1%200%202-.9%202-2V8zm4%2018H6V4h7v5h5z'/%3e%3c/svg%3e`,pt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%233f51b5'%20d='M22.713%204H9.287a.5.5%200%200%200-.432.248l-6.708%2011.5a.5.5%200%200%200%200%20.504l6.708%2011.5a.5.5%200%200%200%20.432.248h13.426a.5.5%200%200%200%20.432-.248l6.708-11.5a.5.5%200%200%200%200-.504l-6.708-11.5A.5.5%200%200%200%2022.713%204m-6.937%2020.888-7.5-3.75A.5.5%200%200%201%208%2020.691v-9.382a.5.5%200%200%201%20.276-.447l7.5-3.75a.5.5%200%200%201%20.448%200l7.5%203.75a.5.5%200%200%201%20.276.447v9.382a.5.5%200%200%201-.276.447l-7.5%203.75a.5.5%200%200%201-.448%200'/%3e%3cpath%20fill='%237986cb'%20d='M22%2019.441v-6.882a.5.5%200%200%200-.276-.447l-5.5-2.75a.5.5%200%200%200-.448%200l-5.5%202.75a.5.5%200%200%200-.276.447v6.882a.5.5%200%200%200%20.276.447l5.5%202.75a.5.5%200%200%200%20.448%200l5.5-2.75a.5.5%200%200%200%20.276-.447'/%3e%3c/svg%3e`,W=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23f44336'%20d='M24%2028h4L18%204h-4L4%2028h4l8-19.422'/%3e%3cpath%20fill='%23f44336'%20d='M8%2020h16v4H8z'/%3e%3c/svg%3e`,mt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e64a19'%20d='M13.172%202.828%2011.78%204.22l1.91%201.91%202%202A2.986%202.986%200%200%201%2020%2010.81a3.25%203.25%200%200%201-.31%201.31l2.06%202a2.68%202.68%200%200%201%203.37.57%202.86%202.86%200%200%201%20.88%202.117%203.02%203.02%200%200%201-.856%202.109A2.9%202.9%200%200%201%2023%2019.81a2.93%202.93%200%200%201-2.13-.87%202.694%202.694%200%200%201-.56-3.38l-2-2.06a3%203%200%200%201-.31.12V20a3%203%200%200%201%201.44%201.09%202.92%202.92%200%200%201%20.56%201.72%202.88%202.88%200%200%201-.878%202.128%202.98%202.98%200%200%201-2.048.871%202.981%202.981%200%200%201-2.514-4.719A3%203%200%200%201%2016%2020v-6.38a2.96%202.96%200%200%201-1.44-1.09%202.9%202.9%200%200%201-.56-1.72%202.9%202.9%200%200%201%20.31-1.31l-3.9-3.9-7.579%207.572a4%204%200%200%200-.001%205.658l10.342%2010.342a4%204%200%200%200%205.656%200l10.344-10.344a4%204%200%200%200%200-5.656L18.828%202.828a4%204%200%200%200-5.656%200'/%3e%3c/svg%3e`,ht=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2300acc1'%20d='M2%2012h4v2H2zm-2%204h6v2H0zm4%204h2v2H4zm16.954-5H14v3h3.239a4.42%204.42%200%200%201-3.531%202%202.65%202.65%200%200%201-2.053-.858%202.86%202.86%200%200%201-.628-2.28A4.515%204.515%200%200%201%2015.292%2013a2.73%202.73%200%200%201%201.749.584l2.962-1.185A5.6%205.6%200%200%200%2015.292%2010a7.526%207.526%200%200%200-7.243%206.5%205.614%205.614%200%200%200%205.659%206.5%207.526%207.526%200%200%200%207.243-6.5%206.4%206.4%200%200%200%20.003-1.5'/%3e%3cpath%20fill='%2300acc1'%20d='M26.292%2010a7.526%207.526%200%200%200-7.243%206.5%205.614%205.614%200%200%200%205.659%206.5%207.526%207.526%200%200%200%207.243-6.5%205.614%205.614%200%200%200-5.659-6.5m2.681%206.137A4.515%204.515%200%200%201%2024.708%2020a2.65%202.65%200%200%201-2.053-.858%202.86%202.86%200%200%201-.628-2.28A4.515%204.515%200%200%201%2026.292%2013a2.65%202.65%200%200%201%202.053.858%202.86%202.86%200%200%201%20.628%202.28Z'/%3e%3c/svg%3e`,gt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e65100'%20d='m4%204%202%2022%2010%202%2010-2%202-22Zm19.72%207H11.28l.29%203h11.86l-.802%209.335L15.99%2025l-6.635-1.646L8.93%2019h3.02l.19%202%203.86.77%203.84-.77.29-4H8.84L8%208h16Z'/%3e%3c/svg%3e`,G=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%2326a69a'%20d='M8.5%206h4l-4-4zM3.875%201H9.5l4%204v8.6c0%20.773-.616%201.4-1.375%201.4h-8.25c-.76%200-1.375-.627-1.375-1.4V2.4c0-.777.612-1.4%201.375-1.4M4%2013.6h8V8l-2.625%202.8L8%209.4zm1.25-7.7c-.76%200-1.375.627-1.375%201.4s.616%201.4%201.375%201.4c.76%200%201.375-.627%201.375-1.4S6.009%205.9%205.25%205.9'/%3e%3c/svg%3e`,_t=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23f44336'%20d='M4%2026h24v2H4zM28%204H7a1%201%200%200%200-1%201v13a4%204%200%200%200%204%204h10a4%204%200%200%200%204-4v-4h4a2%202%200%200%200%202-2V6a2%202%200%200%200-2-2m0%208h-4V6h4Z'/%3e%3c/svg%3e`,vt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23ffca28'%20d='M2%202v12h12V2zm6%206h1v4a1.003%201.003%200%200%201-1%201H7a1.003%201.003%200%200%201-1-1v-1h1v1h1zm3%200h2v1h-2v1h1a1.003%201.003%200%200%201%201%201v1a1.003%201.003%200%200%201-1%201h-2v-1h2v-1h-1a1.003%201.003%200%200%201-1-1V9a1.003%201.003%200%200%201%201-1'/%3e%3c/svg%3e`,yt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cg%20fill='%23ffca28'%3e%3cpath%20d='M12%205v1h1v7H6v-1H5l-.069%202%209.069.001V5z'/%3e%3cpath%20d='M2%202v9h9V2zm3%203h1v4a1.003%201.003%200%200%201-1%201H4a1.003%201.003%200%200%201-1-1V8h1v1h1zm3%200h2v1H8v1h1a1.003%201.003%200%200%201%201%201v1a1.003%201.003%200%200%201-1%201H7V9h2V8H8a1.003%201.003%200%200%201-1-1V6a1.003%201.003%200%200%201%201-1'/%3e%3c/g%3e%3c/svg%3e`,bt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%20-960%20960%20960'%3e%3cpath%20fill='%23f9a825'%20d='M560-160v-80h120q17%200%2028.5-11.5T720-280v-80q0-38%2022-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50%200%2085%2035t35%2085v80q0%2017%2011.5%2028.5T840-560h40v160h-40q-17%200-28.5%2011.5T800-360v80q0%2050-35%2085t-85%2035zm-280%200q-50%200-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17%200%2028.5-11.5T160-600v-80q0-50%2035-85t85-35h120v80H280q-17%200-28.5%2011.5T240-680v80q0%2038-22%2069t-58%2044v14q36%2013%2058%2044t22%2069v80q0%2017%2011.5%2028.5T280-240h120v80z'/%3e%3c/svg%3e`,K=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2326a69a'%20d='M30%2014H17.738a8%208%200%201%200%200%204H24v4h4v-4h2Zm-20%205a3%203%200%201%201%203-3%203.003%203.003%200%200%201-3%203'/%3e%3c/svg%3e`,xt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2024%2024'%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='1.725'%20x2='22.185'%20y1='22.67'%20y2='1.982'%20gradientTransform='translate(1.306%201.129)scale(.89324)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%237c4dff'/%3e%3cstop%20offset='.5'%20stop-color='%23d500f9'/%3e%3cstop%20offset='1'%20stop-color='%23ef5350'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20fill='url(%23a)'%20d='M2.975%202.976v18.048h18.05v-.03l-4.478-4.511-4.48-4.515%204.48-4.515%204.443-4.477z'/%3e%3c/svg%3e`,q=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%230277bd'%20d='M8%203a2%202%200%200%200-2%202v4a2%202%200%200%201-2%202H3v2h1a2%202%200%200%201%202%202v4a2%202%200%200%200%202%202h2v-2H8v-5a2%202%200%200%200-2-2%202%202%200%200%200%202-2V5h2V3m6%200a2%202%200%200%201%202%202v4a2%202%200%200%200%202%202h1v2h-1a2%202%200%200%200-2%202v4a2%202%200%200%201-2%202h-2v-2h2v-5a2%202%200%200%201%202-2%202%202%200%200%201-2-2V5h-2V3z'/%3e%3c/svg%3e`,J=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23ff5722'%20d='M8%201a5.5%205.5%200%200%200-4%209.26V15l4-1.5%204%201.5v-4.74A5.49%205.49%200%200%200%208%201m0%201.5a4%204%200%201%201%200%208%204%204%200%200%201%200-8m0%202a2%202%200%201%200%200%204%202%202%200%200%200%200-4'/%3e%3c/svg%3e`,St=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ffd54f'%20d='M25%2012h-3V8a6%206%200%200%200-12%200v4H7a1%201%200%200%200-1%201v16a1%201%200%200%200%201%201h18a1%201%200%200%200%201-1V13a1%201%200%200%200-1-1M14%208a2%202%200%200%201%204%200v4h-4Zm2%2017a4%204%200%201%201%204-4%204%204%200%200%201-4%204'/%3e%3c/svg%3e`,Ct=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%23afb42b'%20d='M19%205v9h-5v5H5V5zm0-2H5c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h10l6-6V5c0-1.1-.9-2-2-2m-7%2011H7v-2h5zm5-4H7V8h10z'/%3e%3c/svg%3e`,wt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ef5350'%20d='m29.5%2024.02-1.6-.92a4.4%204.4%200%200%200%20.09-.9A1.3%201.3%200%200%200%2028%2022a5.6%205.6%200%200%200-.1-1.1l1.6-.92a.493.493%200%200%200%20.18-.68l-1.5-2.6a.45.45%200%200%200-.18-.18V6.01a2.006%202.006%200%200%200-2-2H4a2.006%202.006%200%200%200-2%202V22a2.006%202.006%200%200%200%202%202h10.53l-.03.02a.493.493%200%200%200-.18.68l1.5%202.6a.493.493%200%200%200%20.68.18l1.6-.92a5.9%205.9%200%200%200%201.9%201.09v1.85a.495.495%200%200%200%20.5.5h3a.495.495%200%200%200%20.5-.5v-1.85a5.9%205.9%200%200%200%201.9-1.09l1.6.92a.493.493%200%200%200%20.68-.18l1.5-2.6a.493.493%200%200%200-.18-.68M24%2022.01a1.99%201.99%200%200%201-.88%201.65l-.18.11a2.04%202.04%200%200%201-1.88%200l-.18-.11a1.99%201.99%200%200%201-.88-1.65V22a2%202%200%200%201%20.88-1.66l.18-.11a2.04%202.04%200%200%201%201.88%200l.18.11A2%202%200%200%201%2024%2022Zm2-4.63-.1.06a5.9%205.9%200%200%200-1.9-1.09V14.5a.495.495%200%200%200-.5-.5h-3a.495.495%200%200%200-.5.5v1.85a5.9%205.9%200%200%200-1.9%201.09l-1.6-.92a.493.493%200%200%200-.68.18l-1.5%202.6a.493.493%200%200%200%20.18.68l1.6.92A5.6%205.6%200%200%200%2016%2022v.01L4%2022V10.01h22Z'/%3e%3c/svg%3e`,Tt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2342a5f5'%20d='m14%2010-4%203.5L6%2010H4v12h4v-6l2%202%202-2v6h4V10zm12%206v-6h-4v6h-4l6%208%206-8z'/%3e%3c/svg%3e`,Et=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%238bc34a'%20d='M16%2020.003v2h4a2%202%200%200%200%202-2v-2a2%202%200%200%200-2-2h-2v-2h4v-2h-4a2%202%200%200%200-2%202v2a2%202%200%200%200%202%202h2v2Z'/%3e%3cpath%20fill='%238bc34a'%20d='m16%203.003-12%207v14l4%202h6v-13.5a.5.5%200%200%200-.5-.5h-1a.5.5%200%200%200-.5.5v11.5H8l-2-1.034V11.15l10-5.833%2010%205.833v11.703l-10%205.833-1.745-1.022L13%2029.253l3%201.75%2012-7v-14Z'/%3e%3c/svg%3e`,Dt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23e53935'%20d='M4%204v24h24V4Zm20%2020h-4V12h-4v12H8V8h16Z'/%3e%3c/svg%3e`,Y=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23ef5350'%20d='M13%209h5.5L13%203.5zM6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2m4.93%2010.44c.41.9.93%201.64%201.53%202.15l.41.32c-.87.16-2.07.44-3.34.93l-.11.04.5-1.04c.45-.87.78-1.66%201.01-2.4m6.48%203.81c.18-.18.27-.41.28-.66.03-.2-.02-.39-.12-.55-.29-.47-1.04-.69-2.28-.69l-1.29.07-.87-.58c-.63-.52-1.2-1.43-1.6-2.56l.04-.14c.33-1.33.64-2.94-.02-3.6a.85.85%200%200%200-.61-.24h-.24c-.37%200-.7.39-.79.77-.37%201.33-.15%202.06.22%203.27v.01c-.25.88-.57%201.9-1.08%202.93l-.96%201.8-.89.49c-1.2.75-1.77%201.59-1.88%202.12-.04.19-.02.36.05.54l.03.05.48.31.44.11c.81%200%201.73-.95%202.97-3.07l.18-.07c1.03-.33%202.31-.56%204.03-.75%201.03.51%202.24.74%203%20.74.44%200%20.74-.11.91-.3m-.41-.71.09.11c-.01.1-.04.11-.09.13h-.04l-.19.02c-.46%200-1.17-.19-1.9-.51.09-.1.13-.1.23-.1%201.4%200%201.8.25%201.9.35M7.83%2017c-.65%201.19-1.24%201.85-1.69%202%20.05-.38.5-1.04%201.21-1.69zm3.02-6.91c-.23-.9-.24-1.63-.07-2.05l.07-.12.15.05c.17.24.19.56.09%201.1l-.03.16-.16.82z'/%3e%3c/svg%3e`,Ot=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%231e88e5'%20d='M12%2018.08c-6.63%200-12-2.72-12-6.08s5.37-6.08%2012-6.08S24%208.64%2024%2012s-5.37%206.08-12%206.08m-5.19-7.95c.54%200%20.91.1%201.09.31.18.2.22.56.13%201.03-.1.53-.29.87-.58%201.09q-.42.33-1.29.33h-.87l.53-2.76zm-3.5%205.55h1.44l.34-1.75h1.23c.54%200%20.98-.06%201.33-.17.35-.12.67-.31.96-.58.24-.22.43-.46.58-.73.15-.26.26-.56.31-.88.16-.78.05-1.39-.33-1.82-.39-.44-.99-.65-1.82-.65H4.59zm7.25-8.33-1.28%206.58h1.42l.74-3.77h1.14c.36%200%20.6.06.71.18s.13.34.07.66l-.57%202.93h1.45l.59-3.07c.13-.62.03-1.07-.27-1.36-.3-.27-.85-.4-1.65-.4h-1.27L12%207.35zM18%2010.13c.55%200%20.91.1%201.09.31.18.2.22.56.13%201.03-.1.53-.29.87-.57%201.09-.29.22-.72.33-1.3.33h-.85l.5-2.76zm-3.5%205.55h1.44l.34-1.75h1.22c.55%200%201-.06%201.35-.17.35-.12.65-.31.95-.58.24-.22.44-.46.58-.73.15-.26.26-.56.32-.88.15-.78.04-1.39-.34-1.82-.36-.44-.99-.65-1.82-.65h-2.75z'/%3e%3c/svg%3e`,kt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23e64a19'%20d='M6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2m7%201.5V9h5.5zM8%2011v2h1v6H8v1h4v-1h-1v-2h2a3%203%200%200%200%203-3%203%203%200%200%200-3-3zm5%202a1%201%200%200%201%201%201%201%201%200%200%201-1%201h-2v-2z'/%3e%3c/svg%3e`,X=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2303a9f4'%20d='M29.07%206H7.677A1.535%201.535%200%200%200%206.24%207.113l-4.2%2017.774A.852.852%200%200%200%202.93%2026h21.393a1.535%201.535%200%200%200%201.436-1.113L29.96%207.112A.852.852%200%200%200%2029.07%206M8.626%2023.797a1.4%201.4%200%200%201-1.814-.31l-.007-.009a1.075%201.075%200%200%201%20.315-1.599l9.6-6.061-6.102-5.852-.01-.01a1.068%201.068%200%200%201%20.084-1.625l.037-.03a1.38%201.38%200%200%201%201.8.07l7.233%206.957a1.1%201.1%200%200%201%20.236.739%201.08%201.08%200%200%201-.412.79c-.074.04-.146.119-10.951%206.935ZM24%2022.94A1.135%201.135%200%200%201%2022.803%2024h-5.634a1.061%201.061%200%201%201%20.001-2.112h5.633A1.134%201.134%200%200%201%2024%2022.938Z'/%3e%3c/svg%3e`,At=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23f44336'%20d='M2%208h4v1H2zm0%206h4v1H2zm9-10h3v1h-3zM2%202h3v1H2z'/%3e%3cpath%20fill='%23f9a825'%20d='M9%202h3v1H9zm1%204h4v1h-4zm-5%206h1v1H5zm-3-2h6v1H2z'/%3e%3cpath%20fill='%2326a69a'%20d='M2%2012h3v1H2zm7-4h5v1H9zM2%204h4v1H2zm3-2h4v1H5z'/%3e%3cpath%20fill='%23ba68c8'%20d='M2%206h3v1H2zm7-2h2v1H9zm-1%206h4v1H8z'/%3e%3c/svg%3e`,jt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%230288d1'%20d='M9.86%202A2.86%202.86%200%200%200%207%204.86v1.68h4.29c.39%200%20.71.57.71.96H4.86A2.86%202.86%200%200%200%202%2010.36v3.781a2.86%202.86%200%200%200%202.86%202.86h1.18v-2.68a2.85%202.85%200%200%201%202.85-2.86h5.25c1.58%200%202.86-1.271%202.86-2.851V4.86A2.86%202.86%200%200%200%2014.14%202zm-.72%201.61c.4%200%20.72.12.72.71s-.32.891-.72.891c-.39%200-.71-.3-.71-.89s.32-.711.71-.711'/%3e%3cpath%20fill='%23fdd835'%20d='M17.959%207v2.68a2.85%202.85%200%200%201-2.85%202.859H9.86A2.85%202.85%200%200%200%207%2015.389v3.75a2.86%202.86%200%200%200%202.86%202.86h4.28A2.86%202.86%200%200%200%2017%2019.14v-1.68h-4.291c-.39%200-.709-.57-.709-.96h7.14A2.86%202.86%200%200%200%2022%2013.64V9.86A2.86%202.86%200%200%200%2019.14%207zM8.32%2011.513l-.004.004.038-.004zm6.54%207.276c.39%200%20.71.3.71.89a.71.71%200%200%201-.71.71c-.4%200-.72-.12-.72-.71s.32-.89.72-.89'/%3e%3c/svg%3e`,Mt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2300bcd4'%20d='M16%2012c7.444%200%2012%202.59%2012%204s-4.556%204-12%204-12-2.59-12-4%204.556-4%2012-4m0-2c-7.732%200-14%202.686-14%206s6.268%206%2014%206%2014-2.686%2014-6-6.268-6-14-6'/%3e%3cpath%20fill='%2300bcd4'%20d='M16%2014a2%202%200%201%200%202%202%202%202%200%200%200-2-2'/%3e%3cpath%20fill='%2300bcd4'%20d='M10.458%205.507c2.017%200%205.937%203.177%209.006%208.493%203.722%206.447%203.757%2011.687%202.536%2012.392a.9.9%200%200%201-.457.1c-2.017%200-5.938-3.176-9.007-8.492C8.814%2011.553%208.779%206.313%2010%205.608a.9.9%200%200%201%20.458-.1m-.001-2A2.87%202.87%200%200%200%209%203.875C6.13%205.532%206.938%2012.304%2010.804%2019c3.284%205.69%207.72%209.493%2010.74%209.493A2.87%202.87%200%200%200%2023%2028.124c2.87-1.656%202.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z'/%3e%3cpath%20fill='%2300bcd4'%20d='M21.543%205.507a.9.9%200%200%201%20.457.1c1.221.706%201.186%205.946-2.536%2012.393-3.07%205.316-6.99%208.493-9.007%208.493a.9.9%200%200%201-.457-.1C8.779%2025.686%208.814%2020.446%2012.536%2014c3.07-5.316%206.99-8.493%209.007-8.493m0-2c-3.02%200-7.455%203.804-10.74%209.493C6.939%2019.696%206.13%2026.468%209%2028.124a2.87%202.87%200%200%200%201.457.369c3.02%200%207.455-3.804%2010.74-9.493C25.061%2012.304%2025.87%205.532%2023%203.876a2.87%202.87%200%200%200-1.457-.369'/%3e%3c/svg%3e`,Z=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M16%2012c7.444%200%2012%202.59%2012%204s-4.556%204-12%204-12-2.59-12-4%204.556-4%2012-4m0-2c-7.732%200-14%202.686-14%206s6.268%206%2014%206%2014-2.686%2014-6-6.268-6-14-6'/%3e%3cpath%20fill='%230288d1'%20d='M16%2014a2%202%200%201%200%202%202%202%202%200%200%200-2-2'/%3e%3cpath%20fill='%230288d1'%20d='M10.458%205.507c2.017%200%205.937%203.177%209.006%208.493%203.722%206.447%203.757%2011.687%202.536%2012.392a.9.9%200%200%201-.457.1c-2.017%200-5.938-3.176-9.007-8.492C8.814%2011.553%208.779%206.313%2010%205.608a.9.9%200%200%201%20.458-.1m-.001-2A2.87%202.87%200%200%200%209%203.875C6.13%205.532%206.938%2012.304%2010.804%2019c3.284%205.69%207.72%209.493%2010.74%209.493A2.87%202.87%200%200%200%2023%2028.124c2.87-1.656%202.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z'/%3e%3cpath%20fill='%230288d1'%20d='M21.543%205.507a.9.9%200%200%201%20.457.1c1.221.706%201.186%205.946-2.536%2012.393-3.07%205.316-6.99%208.493-9.007%208.493a.9.9%200%200%201-.457-.1C8.779%2025.686%208.814%2020.446%2012.536%2014c3.07-5.316%206.99-8.493%209.007-8.493m0-2c-3.02%200-7.455%203.804-10.74%209.493C6.939%2019.696%206.13%2026.468%209%2028.124a2.87%202.87%200%200%200%201.457.369c3.02%200%207.455-3.804%2010.74-9.493C25.061%2012.304%2025.87%205.532%2023%203.876a2.87%202.87%200%200%200-1.457-.369'/%3e%3c/svg%3e`,Nt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M8%201C4.136%201%201%204.136%201%208s3.136%207%207%207%207-3.136%207-7-3.136-7-7-7m1%2011H7V7.5h2zm0-6H7V4h2z'/%3e%3c/svg%3e`,Pt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23f44336'%20d='M18.041%203.177c2.24.382%202.879%201.919%202.843%203.527V6.67l-1.013%2013.266-13.132.897h.008c-1.093-.044-3.518-.151-3.634-3.545l1.217-2.222%202.462%205.74%202.097-6.77-.045.009.018-.018%206.85%202.186L13.945%209.3l6.53-.409-5.144-4.212%202.71-1.51v.009M3.113%2017.252v.017zM6.916%206.874c2.63-2.622%206.033-4.168%207.34-2.844%201.297%201.306-.072%204.523-2.702%207.135-2.666%202.613-6.015%204.248-7.322%202.933-1.306-1.324.036-4.612%202.675-7.224z'/%3e%3c/svg%3e`,Q=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ff7043'%20d='m30%2012-4-2V6h-4l-2-4-4%202-4-2-2%204H6v4l-4%202%202%204-2%204%204%202v4h4l2%204%204-2%204%202%202-4h4v-4l4-2-2-4ZM6%2016a9.9%209.9%200%200%201%20.842-4H10v8H6.842A9.9%209.9%200%200%201%206%2016m10%2010a9.98%209.98%200%200%201-7.978-4H16v-2h-2v-2h4c.819.819.297%202.308%201.179%203.37a1.89%201.89%200%200%200%201.46.63h3.34A9.98%209.98%200%200%201%2016%2026m-2-12v-2h4a1%201%200%200%201%200%202Zm11.158%206H24a2.006%202.006%200%200%201-2-2%202%202%200%200%200-2-2%203%203%200%200%200%203-3q0-.08-.004-.161A3.115%203.115%200%200%200%2019.83%2010H8.022a9.986%209.986%200%200%201%2017.136%2010'/%3e%3c/svg%3e`,Ft=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ec407a'%20d='M27.837%205.673a4.33%204.33%200%200%200-2.293-2.701c-2.362-1.261-6.11-1.298-9.548-.092a26.3%2026.3%200%200%200-8.76%204.966c-2.752%202.542-3.438%204.925-3.189%206.194.523%202.668%203.274%204.539%205.485%206.042.418.284.822.559%201.175.816-1.429.76-4.261%202.444-5.088%204.248a3.88%203.88%200%200%200-.118%203.332A2.37%202.37%200%200%200%206.869%2029.8a5.6%205.6%200%200%200%201.49.2%206.35%206.35%200%200%200%205.19-2.856%206.74%206.74%200%200%200%20.864-5.382%207.3%207.3%200%200%201%202.044-.03%203.92%203.92%200%200%201%202.816%201.311%201.82%201.82%200%200%201%20.423%201.262%201.55%201.55%200%200%201-.772%201.05c-.234.14-.586.355-.504.803.036.194.198.633.894.512a2.93%202.93%200%200%200%202.145-2.651%204%204%200%200%200-1.197-2.904%205.94%205.94%200%200%200-4.396-1.626%2010.6%2010.6%200%200%200-2.672.304%2020%2020%200%200%200-2.203-1.846c-1.712-1.3-3.33-2.529-3.235-4.26.125-2.263%202.468-4.532%206.964-6.744%204.016-1.976%207.254-2.037%208.944-1.438a2%202%200%200%201%201.204.883%202.77%202.77%200%200%201-.36%202.47%209.71%209.71%200%200%201-7.425%204.304%203.86%203.86%200%200%201-3.238-.757c-.278-.302-.593-.645-1.074-.383q-.565.31-.225%201.189a3.9%203.9%200%200%200%202.407%201.92%2011.7%2011.7%200%200%200%207.128-.671c3.527-1.35%206.681-5.202%205.756-8.787M11.895%2024.475a4%204%200%200%201-.192.468%204.5%204.5%200%200%201-.753%201.081%202.83%202.83%200%200%201-2.533%201.107c-.056-.032-.078-.146-.085-.193a3.28%203.28%200%200%201%201.076-2.284%2011.3%2011.3%200%200%201%202.644-1.933%203.85%203.85%200%200%201-.157%201.754'/%3e%3c/svg%3e`,It=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'/%3e%3cpath%20fill='%2342a5f5'%20d='M19.43%2012.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5%200%200%200-.61-.22l-2.49%201c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49%200%200%200%2014%202h-4c-.25%200-.46.18-.49.42l-.38%202.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6%200%200%200-.18-.03c-.17%200-.34.09-.43.25l-2%203.46c-.13.22-.07.49.12.64l2.11%201.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11%201.65c-.19.15-.24.42-.12.64l2%203.46a.5.5%200%200%200%20.61.22l2.49-1c.52.4%201.08.73%201.69.98l.38%202.65c.03.24.24.42.49.42h4c.25%200%20.46-.18.49-.42l.38-2.65c.61-.25%201.17-.59%201.69-.98l2.49%201q.09.03.18.03c.17%200%20.34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14%201.13.89.7%201.08.84-.7%201.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16%201.13-.2%201.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21%201.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21%201.27.51%201.04.42.9-.68c.43-.32.84-.56%201.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19%201.35.16%201.13%201.06.43c.43.18.83.41%201.23.71l.91.7%201.06-.43%201.27-.51.7%201.21-1.07.85-.89.7zM12%208c-2.21%200-4%201.79-4%204s1.79%204%204%204%204-1.79%204-4-1.79-4-4-4m0%206c-1.1%200-2-.9-2-2s.9-2%202-2%202%20.9%202%202-.9%202-2%202'/%3e%3c/svg%3e`,Lt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ffb300'%20d='M29.168%2014.03a2.7%202.7%200%200%200-1.968-.83%202.51%202.51%200%200%200-1.929.8h-4.443l3.078-3.078a2.835%202.835%200%200%200%202.857-2.842%202.6%202.6%200%200%200-.831-1.969%202.82%202.82%200%200%200-2.014-.788%202.67%202.67%200%200%200-1.968.788%202.36%202.36%200%200%200-.812%201.922L18%2011.17V6.726a2.51%202.51%200%200%200%20.8-1.929%202.7%202.7%200%200%200-.832-1.968%202.745%202.745%200%200%200-3.936%200%202.7%202.7%200%200%200-.832%201.968%202.51%202.51%200%200%200%20.8%201.93v4.443l-3.138-3.138a2.36%202.36%200%200%200-.812-1.922%202.66%202.66%200%200%200-1.968-.788%202.83%202.83%200%200%200-2.014.788%202.6%202.6%200%200%200-.831%201.969%202.74%202.74%200%200%200%20.831%202.013%202.8%202.8%200%200%200%202.026.829l3.078%203.078H6.729a2.51%202.51%200%200%200-1.929-.8%202.7%202.7%200%200%200-1.968.831%202.745%202.745%200%200%200%200%203.937%202.7%202.7%200%200%200%201.968.832%202.51%202.51%200%200%200%201.929-.8h4.443l-3.078%203.077a2.835%202.835%200%200%200-2.857%202.842%202.6%202.6%200%200%200%20.831%201.969%202.82%202.82%200%200%200%202.014.788%202.67%202.67%200%200%200%201.968-.788%202.36%202.36%200%200%200%20.812-1.922L14%2020.827v4.444a2.51%202.51%200%200%200-.8%201.929%202.784%202.784%200%200%200%204.768%201.968A2.7%202.7%200%200%200%2018.8%2027.2a2.51%202.51%200%200%200-.8-1.929v-4.444l3.138%203.138a2.36%202.36%200%200%200%20.812%201.922%202.66%202.66%200%200%200%201.968.788%202.83%202.83%200%200%200%202.014-.788%202.6%202.6%200%200%200%20.831-1.969%202.74%202.74%200%200%200-.831-2.013%202.8%202.8%200%200%200-2.026-.829L20.828%2018h4.443a2.51%202.51%200%200%200%201.93.8%202.784%202.784%200%200%200%201.967-4.769Z'/%3e%3c/svg%3e`,Rt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23ff6e40'%20d='M17.087%2019.721c-2.36%201.36-5.59%201.5-8.86.1a13.8%2013.8%200%200%201-6.23-5.32c.67.55%201.46%201%202.3%201.4%203.37%201.57%206.73%201.46%209.1%200-3.37-2.59-6.24-5.96-8.37-8.71-.45-.45-.78-1.01-1.12-1.51%208.28%206.05%207.92%207.59%202.41-1.01%204.89%204.94%209.43%207.74%209.43%207.74.16.09.25.16.36.22.1-.25.19-.51.26-.78.79-2.85-.11-6.12-2.08-8.81%204.55%202.75%207.25%207.91%206.12%2012.24-.03.11-.06.22-.05.39%202.24%202.83%201.64%205.78%201.35%205.22-1.21-2.39-3.48-1.65-4.62-1.17'/%3e%3c/svg%3e`,zt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%238bc34a'%20d='M6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2m7%201.5V9h5.5zm4%207.5h-4v2h1l-2%201.67L10%2013h1v-2H7v2h1l3%202.5L8%2018H7v2h4v-2h-1l2-1.67L14%2018h-1v2h4v-2h-1l-3-2.5%203-2.5h1z'/%3e%3c/svg%3e`,Bt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%234db6ac'%20d='M23.5%2012H8c.89-2.3%204.02-4%207.75-4s6.86%201.7%207.75%204M14%2012h15.5c-.89%202.3-4.02%204-7.75%204s-6.86-1.7-7.75-4m3.5%208H2c.89-2.3%204.02-4%207.75-4s6.86%201.7%207.75%204M8%2020h15.5c-.89%202.3-4.02%204-7.75%204S8.89%2022.3%208%2020'/%3e%3c/svg%3e`,Vt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ffca28'%20d='M20%204v2h-2v4.531l.264.461%207.473%2013.078a2%202%200%200%201%20.263.992V26a2%202%200%200%201-2%202H8a2%202%200%200%201-2-2v-.938a2%202%200%200%201%20.264-.992l7.473-13.078.263-.46V6h-2V4zm0-2h-8a2%202%200%200%200-2%202v2a2%202%200%200%200%202%202v2L4.527%2023.078A4%204%200%200%200%204%2025.062V26a4%204%200%200%200%204%204h16a4%204%200%200%200%204-4v-.938a4%204%200%200%200-.527-1.984L20%2010V8a2%202%200%200%200%202-2V4a2%202%200%200%200-2-2'/%3e%3ccircle%20cx='17'%20cy='17'%20r='1'%20fill='%23ffca28'/%3e%3cpath%20fill='%23ffca28'%20d='M19.72%2020.715a1%201%200%200%200-1.134-.318%205%205%200%200%201-1.18.262%203.95%203.95%200%200%201-1.862-.292%202.74%202.74%200%200%200-3.371.489%202%202%200%200%200-.237.35L10%2024h12Z'/%3e%3c/svg%3e`,Ht=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%2300bcd4'%20d='M20%204v2h-2v4.531l.264.461%207.473%2013.078a2%202%200%200%201%20.263.992V26a2%202%200%200%201-2%202H8a2%202%200%200%201-2-2v-.938a2%202%200%200%201%20.264-.992l7.473-13.078.263-.46V6h-2V4zm0-2h-8a2%202%200%200%200-2%202v2a2%202%200%200%200%202%202v2L4.527%2023.078A4%204%200%200%200%204%2025.062V26a4%204%200%200%200%204%204h16a4%204%200%200%200%204-4v-.938a4%204%200%200%200-.527-1.984L20%2010V8a2%202%200%200%200%202-2V4a2%202%200%200%200-2-2'/%3e%3ccircle%20cx='17'%20cy='17'%20r='1'%20fill='%2300bcd4'/%3e%3cpath%20fill='%2300bcd4'%20d='M19.72%2020.715a1%201%200%200%200-1.134-.318%205%205%200%200%201-1.18.262%203.95%203.95%200%200%201-1.862-.292%202.74%202.74%200%200%200-3.371.489%202%202%200%200%200-.237.35L10%2024h12Z'/%3e%3c/svg%3e`,Ut=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%230288d1'%20d='M20%204v2h-2v4.531l.264.461%207.473%2013.078a2%202%200%200%201%20.263.992V26a2%202%200%200%201-2%202H8a2%202%200%200%201-2-2v-.938a2%202%200%200%201%20.264-.992l7.473-13.078.263-.46V6h-2V4zm0-2h-8a2%202%200%200%200-2%202v2a2%202%200%200%200%202%202v2L4.527%2023.078A4%204%200%200%200%204%2025.062V26a4%204%200%200%200%204%204h16a4%204%200%200%200%204-4v-.938a4%204%200%200%200-.527-1.984L20%2010V8a2%202%200%200%200%202-2V4a2%202%200%200%200-2-2'/%3e%3ccircle%20cx='17'%20cy='17'%20r='1'%20fill='%230288d1'/%3e%3cpath%20fill='%230288d1'%20d='M19.72%2020.715a1%201%200%200%200-1.134-.318%205%205%200%200%201-1.18.262%203.95%203.95%200%200%201-1.862-.292%202.74%202.74%200%200%200-3.371.489%202%202%200%200%200-.237.35L10%2024h12Z'/%3e%3c/svg%3e`,Wt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%23cfd8dc'%20d='M4%206V4h8v2H9v7H7V6z'/%3e%3cpath%20fill='%23ef5350'%20d='M4%201v1H2v12h2v1H1V1zm8%200v1h2v12h-2v1h3V1z'/%3e%3c/svg%3e`,Gt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23757575'%20d='M15%202H6a2.006%202.006%200%200%200-2%202v22a2.006%202.006%200%200%200%202%202h6v-4H6v-2h6v-2H6v-2h6v-2H6v-2h6v-2h2V4l8%208h2v-1Z'%20data-mit-no-recolor='true'/%3e%3cpath%20fill='%230288d1'%20d='M12%2012v18h18V12Zm8%206h-2v8h-2v-8h-2v-2h6Zm8%200h-4v2h2a2.006%202.006%200%200%201%202%202v2a2.006%202.006%200%200%201-2%202h-4v-2h4v-2h-2a2.006%202.006%200%200%201-2-2v-2a2.006%202.006%200%200%201%202-2h4Z'/%3e%3c/svg%3e`,Kt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='%230288d1'%20d='M2%202v12h12V2zm4%206h3v1H8v4H7V9H6zm5%200h2v1h-2v1h1a1.003%201.003%200%200%201%201%201v1a1.003%201.003%200%200%201-1%201h-2v-1h2v-1h-1a1.003%201.003%200%200%201-1-1V9a1.003%201.003%200%200%201%201-1'/%3e%3c/svg%3e`,qt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cg%20fill='%230288d1'%3e%3cpath%20d='M2%202v12h12V2zm1%201h10v10H3z'/%3e%3cpath%20d='M5%207v1h1v4h1V8h1V7zm5%200a1.003%201.003%200%200%200-1%201v1a1.003%201.003%200%200%200%201%201h1v1H9v1h2a1.003%201.003%200%200%200%201-1v-1a1.003%201.003%200%200%200-1-1h-1V8h2V7z'/%3e%3c/g%3e%3c/svg%3e`,Jt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23ff9800'%20d='m24%206%202%206h-4l-2-6h-3l2%206h-4l-2-6h-3l2%206H8L6%206H5a3%203%200%200%200-3%203v14a3%203%200%200%200%203%203h22a3%203%200%200%200%203-3V6Z'/%3e%3c/svg%3e`,Yt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23a0f'%20d='M29.313%2012h-6.664a1.427%201.427%200%200%201-1.1-2.24l4.398-6.676A.703.703%200%200%200%2025.397%202H8.428a.62.62%200%200%200-.55.289l-5.77%208.627A.703.703%200%200%200%202.658%2012h8.175a1.427%201.427%200%200%201%201.099%202.24l-4.48%206.676A.702.702%200%200%200%208%2022l6.695.002A1.34%201.34%200%200%201%2016%2023.375v5.934a.652.652%200%200%200%201.168.433l12.694-16.586a.725.725%200%200%200-.55-1.156'/%3e%3c/svg%3e`,Xt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%2301579b'%20d='M6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2m7%201.5V9h5.5zM7%2013l1.5%207h2l1.5-3%201.5%203h2l1.5-7h1v-2h-4v2h1l-.9%204.2L13%2015h-2l-1.1%202.2L9%2013h1v-2H6v2z'/%3e%3c/svg%3e`,Zt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%238bc34a'%20d='M13%209h5.5L13%203.5zM6%202h8l6%206v12a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4c0-1.11.89-2%202-2m.12%2013.5%203.74%203.74%201.42-1.41-2.33-2.33%202.33-2.33-1.42-1.41zm11.16%200-3.74-3.74-1.42%201.41%202.33%202.33-2.33%202.33%201.42%201.41z'/%3e%3c/svg%3e`,Qt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23ff5252'%20d='M13%209h5.5L13%203.5zM6%202h8l6%206v12c0%201.1-.9%202-2%202H6c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2m12%2016v-2H9v2zm-4-4v-2H6v2z'/%3e%3c/svg%3e`,$t=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23afb42b'%20d='M14%2017h-2v-2h-2v-2h2v2h2m0-6h-2v2h2v2h-2v-2h-2V9h2V7h-2V5h2v2h2m5-4H5c-1.11%200-2%20.89-2%202v14a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2V5a2%202%200%200%200-2-2'/%3e%3c/svg%3e`,en=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23fbc02d'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23fffde7'%20d='M10%209H8v1h3V7h-1zm4%200V7h-1v3h3V9Zm-6%204h2v2h1v-3H8Zm5%200v2h1v-2h2v-1h-3z'/%3e%3c/svg%3e`,tn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%238d6e63'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23d7ccc8'%20d='M7.5%2011c-.277%200-.5.223-.5.5v2c0%20.277.223.5.5.5h8c.277%200%20.5-.223.5-.5v-2c0-.277-.223-.5-.5-.5Z'/%3e%3c/svg%3e`,nn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23c0ca33'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23f0f4c3'%20d='M6%2010h4v4H6zm5%200h4v4h-4zM6%205h4v4H6zm4.172%202L13%204.172%2015.829%207%2013%209.829z'/%3e%3c/svg%3e`,rn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%2300acc1'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%2380deea'%20d='M11.5%2012.075A1.6%201.6%200%200%201%209.882%2010.5a1.62%201.62%200%201%201%201.62%201.575m3.437-1.138a4%204%200%200%200%20.032-.438%204%204%200%200%200-.032-.45l.976-.733a.223.223%200%200%200%20.056-.288l-.926-1.556a.23.23%200%200%200-.283-.1l-1.15.45a3.4%203.4%200%200%200-.783-.44l-.171-1.193A.23.23%200%200%200%2012.425%206h-1.85a.23.23%200%200%200-.231.189l-.171%201.193a3.4%203.4%200%200%200-.781.44l-1.152-.45a.23.23%200%200%200-.282.1l-.926%201.556a.22.22%200%200%200%20.056.288l.975.734a4%204%200%200%200-.032.45%204%204%200%200%200%20.032.437l-.975.746a.22.22%200%200%200-.056.288l.925%201.558a.235.235%200%200%200%20.283.099l1.152-.455a3.2%203.2%200%200%200%20.781.446l.171%201.192a.23.23%200%200%200%20.232.189h1.85a.23.23%200%200%200%20.232-.189l.17-1.192a3.4%203.4%200%200%200%20.783-.446l1.15.455a.24.24%200%200%200%20.284-.1l.924-1.557a.223.223%200%200%200-.055-.288Z'/%3e%3c/svg%3e`,an=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cpath%20id='a'%20fill='%23d1c4e9'%20d='M7%2010V9H6v4h1v-1h1v1a1%201%200%200%201-1%201H6a1%201%200%200%201-1-1V9a1%201%200%200%201%201-1h1a1%201%200%200%201%201%201v1Zm5%200V9a1%201%200%200%200-1-1h-1a1%201%200%200%200-1%201v1c0%20.42.179%201.17%201.373%201.483.346.092.627.323.627.517v1h-1v-1H9v1a1%201%200%200%200%201%201h1a1%201%200%200%200%201-1v-1a1.67%201.67%200%200%200-1.373-1.483C10%2010.352%2010%2010.097%2010%2010V9h1v1Zm4%200V9a1%201%200%200%200-1-1h-1a1%201%200%200%200-1%201v1c0%20.42.179%201.17%201.373%201.483.346.092.627.323.627.517v1h-1v-1h-1v1a1%201%200%200%200%201%201h1a1%201%200%200%200%201-1v-1a1.67%201.67%200%200%200-1.373-1.483C14%2010.352%2014%2010.097%2014%2010V9h1v1Z'/%3e%3c/defs%3e%3cpath%20id='folder'%20fill='%237e57c2'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cg%20id='motive'%3e%3cuse%20xlink:href='%23a'/%3e%3cuse%20xlink:href='%23a'/%3e%3c/g%3e%3c/svg%3e`,on=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%230277bd'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23b3e5fc'%20d='M12%205H8.5a.5.5%200%200%200-.5.5v8a.5.5%200%200%200%20.5.5h6a.5.5%200%200%200%20.5-.5V8Zm0%208H9v-1h3zm2-2H9v-1h5zm-2.414-2.586V6L14%208.414Z'/%3e%3c/svg%3e`,sn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23ff7043'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23ffccbc'%20d='m6.297%209.295%202.892-2.897.846.85a.99.99%200%200%200%20.465%201.116v2.772a1%201%200%200%200-.5.865%201.001%201.001%200%200%200%202.001%200%201%201%200%200%200-.5-.865V8.704l1.035%201.046a.6.6%200%200%200-.035.25%201.001%201.001%200%201%200%201.001-1.001.6.6%200%200%200-.25.035l-1.287-1.285a.99.99%200%200%200-.575-1.171%201.05%201.05%200%200%200-.64-.045l-.851-.846.396-.39a.987.987%200%200%201%201.41%200l3.998%203.998a.987.987%200%200%201%200%201.41l-3.998%203.998a.987.987%200%200%201-1.41%200l-3.998-3.998a.987.987%200%200%201%200-1.41'/%3e%3c/svg%3e`,$=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%237e57c2'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23d1c4e9'%20d='M12.5%205A1.5%201.5%200%200%200%2011%206.5a1.5%201.5%200%200%200%201%201.41V12a1%201%200%200%201-2%200v-1h1L9%209v3a2%202%200%200%200%204%200V7.91a1.5%201.5%200%200%200%201-1.41A1.5%201.5%200%200%200%2012.5%205m0%201a.5.5%200%201%201%200%201%20.5.5%200%200%201%200-1'/%3e%3c/svg%3e`,cn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23009688'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23b2dfdb'%20d='M12%205H8.5a.5.5%200%200%200-.5.5v8a.5.5%200%200%200%20.5.5h6a.5.5%200%200%200%20.5-.5V8Zm-2%203a1%201%200%201%201-1%201%201.005%201.005%200%200%201%201-1m4%205H9l2-2%201%201%202-2zm-2.414-4.586V6L14%208.414Z'/%3e%3c/svg%3e`,ln=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23c0ca33'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23f0f4c3'%20d='M11.5%208a1.5%201.5%200%200%200%20.002-3H11.5A1.5%201.5%200%200%200%2010%206.5%201.5%201.5%200%200%200%2011.5%208m0%201.987C10.387%208.947%208.523%207.996%207%208v5c1.595%200%203.425%201.002%204.5%202%201.113-1.039%202.978-2.002%204.5-2V8c-1.522-.003-3.387.947-4.5%201.986'/%3e%3c/svg%3e`,un=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23039be5'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23b3e5fc'%20d='M11%205a5%205%200%201%200%205%205%205%205%200%200%200-5-5m3.459%203H12.98a8%208%200%200%200-.671-1.77A4.02%204.02%200%200%201%2014.459%208M11%206a7%207%200%200%201%20.945%202h-1.89A7%207%200%200%201%2011%206m-1.309.23A8%208%200%200%200%209.02%208H7.541a4.02%204.02%200%200%201%202.15-1.77M7.131%2011a3.85%203.85%200%200%201%200-2h1.704a7.8%207.8%200%200%200%200%202zm.41%201H9.02a8%208%200%200%200%20.671%201.77A4.02%204.02%200%200%201%207.541%2012M11%2014a7%207%200%200%201-.945-2h1.89A7%207%200%200%201%2011%2014m1.155-3h-2.31a6.7%206.7%200%200%201%200-2h2.31a6.7%206.7%200%200%201%200%202m.154%202.77A8%208%200%200%200%2012.98%2012h1.479a4.02%204.02%200%200%201-2.15%201.77m2.56-2.77h-1.704a7.8%207.8%200%200%200%200-2h1.704a3.85%203.85%200%200%201%200%202'/%3e%3c/svg%3e`,dn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23fbc02d'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23fff9c4'%20d='M9.5%206a.5.5%200%200%200-.5.5v6a.5.5%200%200%200%20.5.5h6a.5.5%200%200%200%20.5-.5v-6a.5.5%200%200%200-.5-.5zm.5%201h5v1h-5zM7%208v6.5a.5.5%200%200%200%20.5.5H14v-1H8V8zm3%201h5v1h-5zm0%202h3v1h-3z'/%3e%3c/svg%3e`,fn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%2343a047'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23c8e6c9'%20d='M8.707%207.293%2010%206H6v4l1.293-1.293%202.455%202.455a.85.85%200%200%201%20.252.608V14h2v-2.23a2.84%202.84%200%200%200-.838-2.022ZM14.68%206l-2.805%202.465.285.285a2.8%202.8%200%200%201%20.78%201.445L16%207.505Z'/%3e%3c/svg%3e`,pn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23546e7a'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23cfd8dc'%20d='M14%206h-3a2%202%200%200%200-2%202v4h1V8h4v4.947a1.04%201.04%200%200%201-.832%201.04A1%201%200%200%201%2012%2013H8a2%202%200%200%200%202%202h3a2%202%200%200%200%202-2V8h1a2%202%200%200%200-2-2'/%3e%3c/svg%3e`,mn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%23fbc02d'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23fffde7'%20d='M7%207.5v2a.5.5%200%200%200%20.5.5h8a.5.5%200%200%200%20.5-.5v-2a.5.5%200%200%200-.5-.5h-8a.5.5%200%200%200-.5.5M10%209H8V8h2zm2%200h-1V8h1zm-5%202.5v2a.5.5%200%200%200%20.5.5h8a.5.5%200%200%200%20.5-.5v-2a.5.5%200%200%200-.5-.5h-8a.5.5%200%200%200-.5.5m3%201.5H8v-1h2zm2%200h-1v-1h1z'/%3e%3c/svg%3e`,hn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%234caf50'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23c8e6c9'%20d='M9.225%2015a.5.5%200%200%201-.12-.014.57.568%200%200%201-.414-.661l1.549-7.872a.566.565%200%200%201%20.254-.372.53.53%200%200%201%20.4-.067.57.57%200%200%201%20.415.662l-1.552%207.872a.56.56%200%200%201-.253.371.53.53%200%200%201-.28.081m3.105-1h-.038a.54.54%200%200%201-.382-.206.583.582%200%200%201%20.057-.774l2.664-2.483-2.653-2.312a.583.582%200%200%201-.08-.772.54.54%200%200%201%20.377-.218.53.53%200%200%201%20.406.129l3.126%202.727a.579.578%200%200%201%20.002.862l-3.114%202.904a.536.535%200%200%201-.365.144zm-4.661%200a.536.535%200%200%201-.365-.146L4.186%2010.95a.58.58%200%200%201-.005-.846l.01-.01%203.128-2.726a.516.515%200%200%201%20.4-.13.54.54%200%200%201%20.38.218.583.582%200%200%201-.08.773l-2.65%202.31%202.663%202.482a.579.578%200%200%201%20.056.774.536.535%200%200%201-.381.206z'/%3e%3c/svg%3e`,gn=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%2300bfa5'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23a7ffeb'%20d='M8%206v1h1v6a2%202%200%200%200%204%200V7h1V6Zm2.5%207a.5.5%200%201%201%20.5-.5.5.5%200%200%201-.5.5m1-2a.5.5%200%201%201%20.5-.5.5.5%200%200%201-.5.5m.5-2h-2V7h2z'/%3e%3c/svg%3e`,_n=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpath%20id='folder'%20fill='%237cb342'%20d='m6.922%203.768-.644-.536A1%201%200%200%200%205.638%203H2a1%201%200%200%200-1%201v8a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1V5a1%201%200%200%200-1-1H7.562a1%201%200%200%201-.64-.232'/%3e%3cpath%20id='motive'%20fill='%23dcedc8'%20d='M9.5%206a.5.5%200%200%200-.5.5v6a.5.5%200%200%200%20.5.5h6a.5.5%200%200%200%20.5-.5v-6a.5.5%200%200%200-.5-.5zM12%207h1v2h2v1h-2v2h-1v-2h-2V9h2zM7%208v6.5a.5.5%200%200%200%20.5.5H14v-1H8V8z'/%3e%3c/svg%3e`,vn=new Set([`png`,`jpg`,`jpeg`,`gif`,`ico`,`webp`,`bmp`,`avif`]),yn=new Set([`zip`,`tar`,`gz`,`tgz`,`rar`,`7z`,`bz2`,`xz`]),bn=new Set([`csv`,`tsv`,`psv`,`xls`,`xlsx`,`xlsm`,`ods`]),xn=new Set([`aac`,`aiff`,`flac`,`m4a`,`mp3`,`ogg`,`opus`,`wav`,`wma`]),Sn=new Set([`avi`,`flv`,`m4v`,`mkv`,`mov`,`mp4`,`mpeg`,`mpg`,`webm`,`wmv`]),Cn=new Set([`eot`,`otf`,`ttf`,`woff`,`woff2`]),wn=new Set([`cer`,`cert`,`crt`,`der`,`p12`,`pfx`]),Tn=new Set([`asc`,`key`,`pem`,`pub`]),En=new Set([`doc`,`docx`,`odt`,`rtf`]),Dn=new Set([`odp`,`pot`,`potx`,`pps`,`ppsx`,`ppt`,`pptx`]),On=new Set([`cfg`,`cnf`,`conf`,`config`,`ini`,`option`,`prefs`,`properties`,`props`,`settings`]);function kn(e){return e.replace(/\\/g,`/`)}function An(e){let t=kn(e);return t.slice(t.lastIndexOf(`/`)+1)}function jn(e){let t=e.lastIndexOf(`.`);return t>0?e.slice(t+1):``}function Mn(e){return/(?:^|[.\-_])(spec|test)\.[^.]+$/i.test(e)||/(?:^|[.\-_])tests?\.[^.]+$/i.test(e)}function Nn(e){if(e===`readme`||e.startsWith(`readme.`))return`readme`;if(e===`license`||e.startsWith(`license.`)||e===`licence`||e.startsWith(`licence.`)||e===`copying`||e.startsWith(`copying.`))return`license`;if(e===`makefile`||e.startsWith(`makefile.`))return`makefile`;if(e===`dockerfile`||e.endsWith(`.dockerfile`)||e.startsWith(`docker-compose`)||e===`compose.yml`||e===`compose.yaml`)return`docker`;if(/^vite\.config\.(?:[cm]?[jt]s)$/.test(e))return`vite`;if(e===`package.json`||e===`package-lock.json`||e===`.nvmrc`||e===`.node-version`)return`nodejs`;if(e===`.npmignore`||e===`.npmrc`)return`npm`;if(e===`tsconfig.json`||e.startsWith(`tsconfig.`))return`tsconfig`;if(e===`eslint.config.js`||e===`eslint.config.mjs`||e===`eslint.config.cjs`||e===`eslint.config.ts`||e===`.eslintrc`||e.startsWith(`.eslintrc.`))return`eslint`;if(e===`.prettierrc`||e.startsWith(`.prettierrc.`)||e.startsWith(`prettier.config.`))return`prettier`;if(e.startsWith(`tailwind.config.`))return`tailwindcss`;if(e===`.gitignore`||e===`.gitattributes`||e===`.gitmodules`)return`git`;if(e===`.env`||e.startsWith(`.env.`))return`settings`;if(e.endsWith(`.lock`)||e.endsWith(`-lock.json`)||e.endsWith(`-lock.yaml`)||e.endsWith(`-lock.yml`))return`lock`}function Pn(e){let t=An(e).toLowerCase(),n=Nn(t);if(n)return n;let r=jn(t);return r===`tsx`?Mn(t)?`test-ts`:`react-ts`:r===`jsx`?Mn(t)?`test-jsx`:`react`:r===`ts`?t.endsWith(`.d.ts`)?`typescript-def`:Mn(t)?`test-ts`:`typescript`:r===`js`||r===`mjs`||r===`cjs`?Mn(t)?`test-js`:`javascript`:t.endsWith(`.js.map`)||t.endsWith(`.mjs.map`)||t.endsWith(`.cjs.map`)?`javascript-map`:vn.has(r)?`image`:r===`svg`?`svg`:yn.has(r)?`zip`:bn.has(r)?`table`:xn.has(r)?`audio`:Sn.has(r)?`video`:Cn.has(r)?`font`:wn.has(r)?`certificate`:Tn.has(r)?`key`:En.has(r)?`word`:Dn.has(r)?`powerpoint`:On.has(r)?`settings`:r===`json`||r===`jsonc`?`json`:r===`html`||r===`htm`?`html`:r===`css`?`css`:r===`scss`?`sass`:r===`less`?`less`:r===`md`||r===`mdx`||r===`markdown`?`markdown`:r===`yml`||r===`yaml`?`yaml`:r===`toml`?`toml`:r===`xml`?`xml`:r===`sql`?`database`:r===`py`?`python`:r===`go`?`go`:r===`rs`?`rust`:r===`java`?`java`:r===`c`||r===`h`?`c`:r===`cpp`||r===`cc`||r===`cxx`||r===`hpp`?`cpp`:r===`cs`?`csharp`:r===`php`?`php`:r===`rb`?`ruby`:r===`swift`?`swift`:r===`kt`||r===`kts`?`kotlin`:r===`ps1`?`powershell`:r===`sh`||r===`bash`||r===`zsh`?`console`:r===`pdf`?`pdf`:r===`log`?`log`:`document`}function Fn(e,t=!1){let n=An(e).toLowerCase();return n===`.git`||n===`.svn`||n===`.hg`||n===`git`?`folder-git`:n===`src`||n===`source`||n===`sources`?`folder-src`:n===`components`||n===`widgets`||n===`fragments`?`folder-components`:n===`test`||n===`tests`||n===`__test__`||n===`__tests__`||n===`spec`||n===`specs`?`folder-test`:n===`doc`||n===`docs`||n===`documentation`?`folder-docs`:n===`server`||n===`servers`||n===`backend`||n===`backends`?`folder-server`:n===`api`||n===`apis`||n===`restapi`?`folder-api`:n===`asset`||n===`assets`||n===`resource`||n===`resources`||n===`static`?`folder-resource`:n===`image`||n===`images`||n===`img`||n===`imgs`||n===`icons`?`folder-images`:n===`public`||n===`www`||n===`wwwroot`?`folder-public`:n===`config`||n===`configs`||n===`configuration`||n===`.config`?`folder-config`:n===`lib`||n===`libs`||n===`library`||n===`vendor`?`folder-lib`:n===`hook`||n===`hooks`?`folder-hook`:n===`util`||n===`utils`||n===`utility`||n===`utilities`?`folder-utils`:n===`route`||n===`routes`||n===`router`||n===`routers`?`folder-routes`:n===`script`||n===`scripts`||n===`scripting`?`folder-scripts`:n===`style`||n===`styles`||n===`stylesheet`||n===`stylesheets`||n===`css`?`folder-css`:`folder-base`}var In={audio:it,c:at,certificate:ot,console:st,cpp:ct,csharp:lt,css:ut,database:U,docker:dt,document:ft,eslint:pt,font:W,git:mt,go:ht,html:gt,image:G,java:_t,javascript:vt,"javascript-map":yt,json:bt,key:K,kotlin:xt,less:q,license:J,lock:St,log:Ct,makefile:wt,markdown:Tt,nodejs:Et,npm:Dt,pdf:Y,php:Ot,powerpoint:kt,powershell:X,prettier:At,python:jt,react:Mt,"react-ts":Z,readme:Nt,ruby:Pt,rust:Q,sass:Ft,settings:It,svg:Lt,swift:Rt,table:zt,tailwindcss:Bt,"test-js":Vt,"test-jsx":Ht,"test-ts":Ut,toml:Wt,tsconfig:Gt,typescript:Kt,"typescript-def":qt,video:Jt,vite:Yt,word:Xt,xml:Zt,yaml:Qt,zip:$t},Ln={"folder-api":en,"folder-base":tn,"folder-components":nn,"folder-config":rn,"folder-css":an,"folder-docs":on,"folder-git":sn,"folder-hook":$,"folder-images":cn,"folder-lib":ln,"folder-public":un,"folder-resource":dn,"folder-routes":fn,"folder-scripts":pn,"folder-server":mn,"folder-src":hn,"folder-test":gn,"folder-utils":_n};function Rn({src:e,className:t=`size-3.5`}){return(0,F.jsx)(`img`,{src:e,alt:``,"aria-hidden":`true`,draggable:!1,className:t})}function zn({path:e,className:t}){return(0,F.jsx)(Rn,{src:In[Pn(e)],className:t})}function Bn({name:e,open:t,className:n}){return(0,F.jsx)(Rn,{src:Ln[Fn(e,t)],className:n})}function Vn(e){let t=e?.trim();if(t){if(/^[a-zA-Z]:[\\/]/.test(t)||t.startsWith(`/`)&&!t.startsWith(`/api/`))return t;try{let e=new URL(t);return e.protocol===`file:`?decodeURIComponent(e.pathname):void 0}catch{return}}}function Hn(e){if(e.kind===`browser`)return Vn(e.url);if(e.kind===`reader`)return(e.readerTabs?.find(t=>t.id===e.activeReaderTabId)??e.readerTabs?.[0])?.path}var Un=3,Wn=5e7;function Gn(e){let t=e.replace(/\r\n/g,`
|
|
11
|
-
`).replace(/\r/g,`
|
|
12
|
-
`).split(`
|
|
13
|
-
`);return t.length>1&&t[t.length-1]===``&&t.pop(),t}function Kn(e,t){let n=Gn(e),r=Gn(t);if(n.length*r.length>Wn)return;let i=Array.from({length:n.length+1},()=>new Uint32Array(r.length+1));for(let e=n.length-1;e>=0;--e)for(let t=r.length-1;t>=0;--t)i[e][t]=n[e]===r[t]?i[e+1][t+1]+1:Math.max(i[e+1][t],i[e][t+1]);let a=[],o=0,s=0,c=1,l=1;for(;o<n.length||s<r.length;){if(o<n.length&&s<r.length&&n[o]===r[s]){a.push({kind:`context`,oldLine:c,newLine:l,text:n[o]}),o+=1,s+=1,c+=1,l+=1;continue}if(s<r.length&&(o>=n.length||i[o][s+1]>=i[o+1][s])){a.push({kind:`add`,newLine:l,text:r[s]}),s+=1,l+=1;continue}o<n.length&&(a.push({kind:`delete`,oldLine:c,text:n[o]}),o+=1,c+=1)}return a}function qn(e){let t=e.map(e=>e.kind!==`context`);e.forEach((n,r)=>{if(n.kind===`context`)return;let i=Math.max(0,r-Un),a=Math.min(e.length-1,r+Un);for(let e=i;e<=a;e+=1)t[e]=!0});let n=[],r=0,i=0;for(;r<e.length;){if(t[r]||e[r].kind!==`context`){n.push(e[r]),r+=1;continue}let a=r;for(;r<e.length&&!t[r]&&e[r].kind===`context`;)r+=1;let o=e.slice(a,r);n.push({kind:`collapsed`,id:`collapsed-${i++}-${a}`,count:o.length,rows:o})}return n}function Jn(e){return e===`add`?`bg-emerald-500/12 text-foreground`:e===`delete`?`bg-red-500/12 text-foreground`:`bg-background text-foreground/90`}function Yn(e){return e===`add`?`+`:e===`delete`?`-`:` `}function Xn({row:e}){let t=e.kind===`delete`?e.oldLine:e.newLine??e.oldLine;return(0,F.jsxs)(`div`,{className:k(`grid w-max min-w-full grid-cols-[3rem_auto] text-[13px] leading-6`,Jn(e.kind)),children:[(0,F.jsx)(`span`,{className:k(`select-none pr-3 text-right font-mono`,e.kind===`delete`&&`text-red-600 dark:text-red-500`,e.kind===`add`&&`text-emerald-600 dark:text-emerald-500`,e.kind===`context`&&`text-muted-foreground/62`),children:t??``}),(0,F.jsxs)(`code`,{className:`whitespace-pre pr-4 font-mono`,children:[(0,F.jsx)(`span`,{className:k(`mr-3 select-none`,e.kind===`add`&&`text-emerald-600 dark:text-emerald-500`,e.kind===`delete`&&`text-red-600 dark:text-red-500`),children:Yn(e.kind)}),e.text||` `]})]})}function Zn(e,t,n){let r=new Set(e[t]??[]);return r.has(n)?r.delete(n):r.add(n),{...e,[t]:[...r]}}function Qn({diff:e,loading:t,error:n}){let[r,i]=(0,P.useState)({}),a=e?`${e.path}\u0000${e.oldContent.length}\u0000${e.newContent.length}`:``,o=(0,P.useMemo)(()=>new Set(r[a]??[]),[a,r]),s=(0,P.useMemo)(()=>{if(!e)return;let t=Kn(e.oldContent,e.newContent);return t?qn(t):void 0},[e]);return t?(0,F.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-muted-foreground/70`,children:O(`workspaceLoadingDiff`)}):n?(0,F.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-destructive`,children:n}):e?s?s.length===0?(0,F.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-muted-foreground/70`,children:O(`workspaceNoDiffPreview`)}):(0,F.jsx)(`div`,{className:`min-w-0 max-w-full overflow-hidden rounded-b-xl border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background`,children:(0,F.jsx)(`div`,{className:`max-h-[28rem] min-w-0 overflow-auto pb-1`,children:(0,F.jsx)(`div`,{className:`w-max min-w-full py-2`,children:s.map(e=>{if(e.kind!==`collapsed`)return(0,F.jsx)(Xn,{row:e},`${e.kind}:${e.oldLine??``}:${e.newLine??``}:${e.text}`);let t=o.has(e.id);return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`div`,{className:`grid w-full min-w-0 grid-cols-[3rem_minmax(0,1fr)] gap-1 py-1 pr-4`,children:[(0,F.jsx)(`button`,{type:`button`,className:`flex h-12 items-center justify-center rounded-lg bg-muted/60 text-muted-foreground/75 transition-colors hover:bg-muted/78 hover:text-foreground/80`,onClick:()=>{i(t=>Zn(t,a,e.id))},"aria-expanded":t,title:O(`workspaceUnmodifiedLines`,{count:e.count}),children:(0,F.jsx)(f,{className:k(`size-4 transition-transform`,t&&`rotate-180`)})}),(0,F.jsx)(`button`,{type:`button`,className:`flex h-12 items-center rounded-lg bg-muted/60 px-4 text-left text-base font-medium text-muted-foreground/80 transition-colors hover:bg-muted/78 hover:text-foreground/80`,onClick:()=>{i(t=>Zn(t,a,e.id))},"aria-expanded":t,children:O(`workspaceUnmodifiedLines`,{count:e.count})})]}),t?e.rows.map(t=>(0,F.jsx)(Xn,{row:t},`hidden:${e.id}:${t.oldLine}:${t.newLine}`)):null]},e.id)})})})}):(0,F.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-muted-foreground/70`,children:O(`workspaceDiffTooLarge`)}):(0,F.jsx)(`div`,{className:`border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-3 py-4 text-sm text-muted-foreground/70`,children:O(`workspaceNoDiffPreview`)})}function $n(e){return O(e===`added`?`workspaceStatusAdded`:e===`deleted`?`workspaceStatusDeleted`:e===`renamed`?`workspaceStatusRenamed`:e===`untracked`?`workspaceStatusUntracked`:e===`conflicted`?`workspaceStatusConflict`:`workspaceStatusModified`)}function er(e){let t=e.replace(/\\/g,`/`);return t.split(`/`).filter(Boolean).pop()||t||`—`}function tr(e,t,n){return e?.action===t&&(n?e.path===n:!e.path)}function nr(e){return!!(e.unstaged||e.status===`untracked`||e.conflict||!e.staged)}function rr({files:e,selectedPath:t,expandedDiff:r,expandedLoading:i,expandedError:a,onSelectFile:o,onRestoreFile:s,onStageFile:c,onUnstageFile:l,onOpenFile:u,onRestoreAll:f,onStageAll:p,onUnstageAll:m,showUnstageAll:h=!1,pendingAction:g,emptyMessage:_=O(`workspaceNoWorkingTreeChanges`)}){let v=e.filter(nr),y=e.filter(e=>e.staged),b=tr(g,`restore`),ee=tr(g,`stage`),te=tr(g,`unstage`),x=!!g;return(0,F.jsxs)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 flex-col bg-background`,children:[(0,F.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-auto px-2 pb-20 pt-1`,children:e.length===0?(0,F.jsx)(`div`,{className:`px-3 py-4 text-xs text-muted-foreground/70`,children:_}):(0,F.jsx)(`div`,{className:`min-w-0 divide-y divide-[color-mix(in_oklab,var(--border)_28%,transparent)]`,children:e.map(e=>{let f=t===e.path,p=er(e.path),m=tr(g,`restore`,e.path),_=tr(g,`stage`,e.path),v=tr(g,`unstage`,e.path),y=e.status===`deleted`,b=h,ee=x||(b?!l||!e.staged:!c||!nr(e)),te=x||!s,C=x||!u||y,w=e.oldPath?`${e.oldPath} → ${e.path}`:e.path;return(0,F.jsxs)(`div`,{className:k(`group min-w-0 overflow-hidden`,f&&`rounded-xl bg-muted/30`),children:[(0,F.jsxs)(`div`,{className:k(`grid min-h-[40px] grid-cols-[minmax(0,1fr)_auto] items-center gap-2 rounded-xl transition-colors`,f?`bg-muted/40`:`hover:bg-muted/24`),children:[(0,F.jsxs)(`button`,{type:`button`,className:`grid min-w-0 grid-cols-[24px_minmax(0,1fr)_auto] items-center gap-3 px-3 py-2 text-left text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>o(e.path),title:`${$n(e.status)} · ${w}`,"aria-expanded":f,children:[(0,F.jsx)(zn,{path:e.path,className:`size-[15px] shrink-0`}),(0,F.jsx)(`span`,{className:`min-w-0 truncate font-medium leading-[18px] text-foreground/90`,children:p}),typeof e.additions==`number`&&typeof e.deletions==`number`?(0,F.jsxs)(`span`,{className:`min-w-[64px] shrink-0 whitespace-nowrap text-right font-mono text-sm font-medium leading-[18px]`,children:[(0,F.jsxs)(`span`,{className:`text-emerald-600 dark:text-emerald-500`,children:[`+`,e.additions]}),(0,F.jsxs)(`span`,{className:`ml-1.5 text-red-600 dark:text-red-500`,children:[`-`,e.deletions]})]}):(0,F.jsx)(`span`,{className:`min-w-[64px]`})]}),(0,F.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1 pr-2 text-muted-foreground/55 opacity-80 transition-opacity group-hover:opacity-100`,children:[(0,F.jsx)(`button`,{type:`button`,className:`inline-flex size-[26px] items-center justify-center rounded-full transition-colors hover:bg-destructive/10 hover:text-destructive disabled:cursor-not-allowed disabled:opacity-40`,onClick:()=>s?.(e),disabled:te,"aria-label":O(`workspaceRestoreFile`),title:O(`workspaceRestoreFile`),children:m?(0,F.jsx)(n,{className:`size-3.5 animate-spin`}):(0,F.jsx)(ae,{className:`size-4`})}),(0,F.jsx)(`button`,{type:`button`,className:k(`inline-flex size-[26px] items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-40`,b?`hover:bg-amber-500/10 hover:text-amber-600 dark:hover:text-amber-500`:`hover:bg-emerald-500/10 hover:text-emerald-600 dark:hover:text-emerald-500`),onClick:()=>b?l?.(e):c?.(e),disabled:ee,"aria-label":O(b?`workspaceUnstageFile`:`workspaceStageFile`),title:O(b?`workspaceUnstageFile`:`workspaceStageFile`),children:_||v?(0,F.jsx)(n,{className:`size-3.5 animate-spin`}):b?(0,F.jsx)(S,{className:`size-4`}):(0,F.jsx)(d,{className:`size-4`})}),(0,F.jsx)(`button`,{type:`button`,className:`inline-flex size-[26px] items-center justify-center rounded-full transition-colors hover:bg-muted/35 hover:text-foreground/85 disabled:cursor-not-allowed disabled:opacity-40`,onClick:()=>u?.(e),disabled:C,"aria-label":O(`workspaceOpenFileInNewTab`),title:O(y?`workspaceCannotOpenDeletedFile`:`workspaceOpenFileInNewTab`),children:(0,F.jsx)(ne,{className:`size-4`})})]})]}),f?(0,F.jsx)(Qn,{diff:r,loading:i,error:a}):null]},`${e.status}:${e.oldPath??``}:${e.path}`)})})}),(0,F.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-4 z-20 flex justify-center px-2`,children:(0,F.jsxs)(`div`,{className:`pointer-events-auto inline-flex max-w-full items-center gap-1 rounded-full border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background/95 p-1 shadow-quickforge`,children:[(0,F.jsxs)(`button`,{type:`button`,className:`inline-flex h-8 min-w-0 items-center gap-2 rounded-full px-3 text-sm font-medium text-muted-foreground/78 transition-colors hover:bg-destructive/10 hover:text-destructive disabled:cursor-not-allowed disabled:opacity-40`,onClick:f,disabled:!f||e.length===0||x,"aria-label":O(`workspaceRestoreAll`),title:O(`workspaceRestoreAll`),children:[b?(0,F.jsx)(n,{className:`size-3.5 animate-spin`}):(0,F.jsx)(ae,{className:`size-3.5`}),(0,F.jsx)(`span`,{className:`truncate`,children:O(`workspaceRestoreAll`)})]}),(0,F.jsxs)(`button`,{type:`button`,className:k(`inline-flex h-8 min-w-0 items-center gap-2 rounded-full px-3 text-sm font-medium text-muted-foreground/78 transition-colors disabled:cursor-not-allowed disabled:opacity-40`,h?`hover:bg-amber-500/10 hover:text-amber-600 dark:hover:text-amber-500`:`hover:bg-emerald-500/10 hover:text-emerald-600 dark:hover:text-emerald-500`),onClick:h?m:p,disabled:h?!m||y.length===0||x:!p||v.length===0||x,"aria-label":O(h?`workspaceUnstageAll`:`workspaceStageAll`),title:O(h?`workspaceUnstageAll`:`workspaceStageAll`),children:[ee||te?(0,F.jsx)(n,{className:`size-3.5 animate-spin`}):h?(0,F.jsx)(S,{className:`size-3.5`}):(0,F.jsx)(d,{className:`size-3.5`}),(0,F.jsx)(`span`,{className:`truncate`,children:O(h?`workspaceUnstageAll`:`workspaceStageAll`)})]})]})})]})}function ir(e){return e?e.status===`added`?`A`:e.status===`deleted`?`D`:e.status===`renamed`?`R`:e.status===`untracked`?`U`:`M`:``}function ar({projectId:e,path:t}){let[n,r]=(0,P.useState)(!1);return n?(0,F.jsx)(zn,{path:t,className:`size-4 shrink-0`}):(0,F.jsx)(`img`,{src:_e(e,t),alt:``,"aria-hidden":!0,loading:`lazy`,decoding:`async`,onError:()=>r(!0),className:`size-4 shrink-0 rounded-[3px] object-cover ring-1 ring-black/5 dark:ring-white/10`})}function or({node:e,depth:t,selectedPath:n,gitStatuses:r,onSelectFile:i,onPreviewFile:a,projectId:o}){let[s,c]=(0,P.useState)(!1),l=e.type===`directory`,u=n===e.path,d=ir(r[e.path]),f=(l?void 0:A(e.path))===`image`,p=!!o&&f,m=!!a&&Se(e.path);function h(){a?.(e.path)}return(0,F.jsxs)(`div`,{children:[(0,F.jsxs)(`button`,{type:`button`,className:`group flex h-8 w-full items-center gap-2 rounded-md px-2 text-left text-sm transition-colors ${u?`bg-muted/28 text-foreground/90`:`text-muted-foreground/72 hover:bg-muted/20 hover:text-foreground/85`}`,style:{paddingLeft:`${.5+t*.75}rem`},onClick:()=>{l?c(e=>!e):f&&a?h():i(e.path)},title:e.path,children:[l?(0,F.jsx)(y,{className:`size-3.5 shrink-0 transition-transform ${s?`rotate-90`:``}`}):(0,F.jsx)(`span`,{className:`w-3.5 shrink-0`}),l?(0,F.jsx)(Bn,{name:e.name,open:s,className:`size-4 shrink-0`}):p?(0,F.jsx)(ar,{projectId:o,path:e.path}):(0,F.jsx)(zn,{path:e.path,className:`size-4 shrink-0`}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),d?(0,F.jsx)(`span`,{className:`shrink-0 font-mono text-xs text-emerald-600 dark:text-emerald-500`,children:d}):null,m?(0,F.jsx)(`span`,{role:`button`,tabIndex:0,"aria-label":O(`openPreview`),title:O(`openPreview`),className:`-mr-1 shrink-0 rounded p-0.5 text-muted-foreground/60 opacity-0 transition-opacity hover:bg-muted/40 hover:text-foreground/85 focus-visible:opacity-100 focus-visible:text-foreground/85 focus-visible:outline-none group-hover:opacity-100`,onClick:e=>{e.stopPropagation(),h()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),h())},children:(0,F.jsx)(E,{className:`size-4`})}):null]}),l&&s?(0,F.jsx)(`div`,{children:(e.children??[]).map(e=>(0,F.jsx)(or,{node:e,depth:t+1,selectedPath:n,gitStatuses:r,onSelectFile:i,onPreviewFile:a,projectId:o},e.path))}):null]})}function sr({tree:e,selectedPath:t,gitStatuses:n={},onSelectFile:r,onPreviewFile:i,projectId:a}){return e.length===0?(0,F.jsx)(`div`,{className:`px-2 py-3 text-sm text-muted-foreground/70`,children:O(`workspaceNoFilesToDisplay`)}):(0,F.jsx)(`div`,{className:`space-y-0.5`,children:e.map(e=>(0,F.jsx)(or,{node:e,depth:0,selectedPath:t,gitStatuses:n,onSelectFile:r,onPreviewFile:i,projectId:a},e.path))})}function cr(e,t,n){return!!(e&&t&&e.projectId===t&&e.id!==n)}var lr=`quickforge:workspace-inspector-tabs:v1:`;function ur(e){return`${lr}${e}`}function dr(e,t){return e===`browser`?`browser`:`${e}:${t}`}function fr(e){return e===`files`||e===`review`||e===`terminal`||e===`browser`||e===`reader`}function pr(){try{return globalThis.localStorage}catch{return}}function mr(e){if(!Array.isArray(e))return[];let t=new Set,n=[];for(let r of e){if(!r||typeof r!=`object`||Array.isArray(r))continue;let e=r;if(!(typeof e.id!=`string`||!e.id||!fr(e.kind))){if(e.kind===`review`){if(t.has(e.kind))continue;t.add(e.kind)}if(e.kind===`reader`){let t=e.reader;if(!t||t.mode!==`file`||typeof t.path!=`string`||!t.path)continue;let r=dr(t.mode,t.path);n.push({id:e.id,kind:e.kind,readerTabs:[{id:r,mode:t.mode,path:t.path,loading:!0}],activeReaderTabId:r});continue}n.push({id:e.id,kind:e.kind,...e.kind===`browser`&&typeof e.url==`string`?{url:e.url}:{},...e.kind===`review`?{reviewView:e.reviewView===`review`?`review`:`changes`}:{},...e.kind===`terminal`&&typeof e.terminalSessionId==`string`?{terminalSessionId:e.terminalSessionId}:{},...e.kind===`files`||e.kind===`review`?{readerTabs:[],activeReaderTabId:void 0}:{}})}}return n}function hr(e,t=pr()){if(!t)return{tabs:[]};try{let n=t.getItem(ur(e));if(!n)return{tabs:[]};let r=JSON.parse(n),i=mr(r?.tabs),a=typeof r?.activePanelTabId==`string`&&i.some(e=>e.id===r.activePanelTabId)?r.activePanelTabId:i[0]?.id;return a?{tabs:i,activePanelTabId:a}:{tabs:i}}catch{return{tabs:[]}}}function gr(e,t){let n=e.flatMap(e=>{if(e.kind===`reader`){let t=e.readerTabs?.find(t=>t.id===e.activeReaderTabId)??e.readerTabs?.[0];return!t||t.mode!==`file`?[]:[{id:e.id,kind:e.kind,reader:{mode:t.mode,path:t.path}}]}return[{id:e.id,kind:e.kind,...e.kind===`browser`?{url:e.url||``}:{},...e.kind===`review`?{reviewView:e.reviewView||`changes`}:{},...e.kind===`terminal`&&e.terminalSessionId?{terminalSessionId:e.terminalSessionId}:{}}]});return{tabs:n,activePanelTabId:t&&n.some(e=>e.id===t)?t:n[0]?.id}}function _r(e,t,n,r=pr()){if(!r)return!1;try{return r.setItem(ur(e),JSON.stringify(gr(t,n))),!0}catch{return!1}}function vr(e,t,n){if(t===n)return e;let r=e.findIndex(e=>e.id===t),i=e.findIndex(e=>e.id===n);if(r===-1||i===-1)return e;let a=[...e],[o]=a.splice(r,1);return a.splice(i,0,o),a}function yr(e){return e.reduce((e,t)=>{let n=t.id.match(/-(\d+)$/);if(!n)return e;let r=Number(n[1]);return Number.isFinite(r)?Math.max(e,r):e},0)+1}function br(){let e,t=0;return{token:n=>(n!==e&&(e=n,t+=1),{projectId:n,epoch:t}),isCurrent:n=>n.projectId===e&&n.epoch===t,invalidate:()=>(t+=1,t)}}function xr(){if(typeof window>`u`)return 0;let e=window.getComputedStyle(document.body).getPropertyValue(`--quickforge-desktop-titlebar-height`).trim();if(!e)return 0;let t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function Sr(e,t){return e===`browser`?`browser`:`${e}:${t}`}var Cr=[{kind:`files`,label:O(`rightPanelFiles`),description:O(`rightPanelFilesDesc`),icon:h},{kind:`review`,label:O(`rightPanelReview`),description:O(`rightPanelReviewDesc`),icon:D},{kind:`terminal`,label:O(`rightPanelTerminal`),description:O(`rightPanelTerminalDesc`),icon:re},{kind:`browser`,label:O(`rightPanelBrowser`),description:O(`rightPanelBrowserDesc`),icon:m}],wr=[{value:`unstaged`,label:O(`workspaceReviewFilterUnstaged`)},{value:`staged`,label:O(`workspaceReviewFilterStaged`)},{value:`all`,label:O(`workspaceReviewFilterAllBranches`)},{value:`last`,label:O(`workspaceReviewFilterLastRun`)}],Tr=Object.fromEntries(Cr.map(e=>[e.kind,e]));function Er(e){return e===`review`?`changes`:e}function Dr(e){let t=e.trim();if(!t)return`about:blank`;if(/^[a-zA-Z]:[\\/]/.test(t))return we(t);try{let e=new URL(t);return e.protocol===`about:`?t:e.protocol===`file:`?we(decodeURIComponent(e.pathname)):e.host||t}catch{return we(t)}}function Or(e,t){if(e.kind===`terminal`)return t||O(`rightPanelTerminal`);if(e.kind===`browser`)return Dr(e.url||``);if(e.kind===`reader`){let t=e.readerTabs?.find(t=>t.id===e.activeReaderTabId)??e.readerTabs?.[0];return t?we(t.path):O(`rightPanelFiles`)}return Tr[e.kind].label}function kr(e,t){return e.kind===`browser`?e.url||t:e.kind===`reader`&&(e.readerTabs?.find(t=>t.id===e.activeReaderTabId)??e.readerTabs?.[0])?.path||t}function Ar({id:e,children:t}){let{attributes:n,listeners:r,setNodeRef:i,transform:a,transition:o,isDragging:s}=me({id:e});return(0,F.jsx)(`div`,{ref:i,style:{transform:ve.Translate.toString(a),transition:s?void 0:o},className:k(`flex shrink-0 items-center gap-1`,s&&`relative z-30 opacity-55 drop-shadow-sm`),children:t({listeners:r,attributes:n,isDragging:s})})}var jr=340,Mr=380,Nr=640,Pr=`quickforge_workspaceInspectorWidth_v2`,Fr=140,Ir=200,Lr=400;function Rr(){if(typeof window>`u`)return Mr;try{let e=window.localStorage.getItem(Pr);if(!e)return Mr;let t=Number(e);return Number.isFinite(t)?Math.min(Nr,Math.max(jr,t)):Mr}catch{return Mr}}function zr(e,t){let n=t.trim().toLowerCase();return n?e.flatMap(e=>{let t=e.children?zr(e.children,n):void 0;return!(e.name.toLowerCase().includes(n)||e.path.toLowerCase().includes(n))&&(!t||t.length===0)?[]:[{...e,...t?{children:t}:{}}]}):e}function Br(e,t){let n=e?.trim();if(!n)return``;let r=n.replace(/\\/g,`/`).replace(/^\.\/+/g,``),i=t?.trim().replace(/\\/g,`/`).replace(/\/+$/g,``);return i&&r.startsWith(`${i}/`)&&(r=r.slice(i.length+1)),r.replace(/^\/+/,``)}function Vr(e,t){let n=new Set;for(let r of e){let e=Br(r.path,t),i=Br(r.outputFile,t);e&&n.add(e),i&&n.add(i)}return n}function Hr(e){return O(e===`staged`?`workspaceNoStagedChanges`:e===`last`?`workspaceNoLastRunChanges`:`workspaceNoWorkingTreeChanges`)}function Ur(e){return e?e.language===`markdown`||/\.(md|mdx|markdown)$/i.test(e.path):!1}function Wr(e){return`Diff for ${e.oldPath?`${e.oldPath} -> ${e.path}`:e.path}\n\n--- OLD\n${e.oldContent}\n\n--- NEW\n${e.newContent}`}function Gr({project:e,path:t,mode:n,file:i,diff:a,loading:o,error:s,navigationVisible:c,onNavigationVisibleChange:l,allowExternalOpen:u=!0}){let[d,f]=(0,P.useState)(),[p,m]=(0,P.useState)(`preview`),[g,_]=(0,P.useState)(!1),[v,ee]=(0,P.useState)(!1),te=(0,P.useRef)(null);async function S(e,t){t&&(await navigator.clipboard.writeText(t),f(e),_(!1),window.setTimeout(()=>f(void 0),1200))}async function C(t){if(!(!e?.id||!T))try{await Pe(e.id,T,t)}catch(e){let n=O(t===`explorer`?`openInExplorerFailed`:t===`idea`?`openInIDEAFailed`:`openInVSCodeFailed`);await Ee(e instanceof Error?e.message:n)}}let T=n===`file`?i?.path||t:a?.path||t,E=(0,P.useMemo)(()=>Br(T).split(`/`).filter(Boolean),[T]),D=[e?.name,...E].filter(Boolean).join(` > `),ne=n===`file`&&Ur(i),re=n===`file`&&(!ne||p===`source`),ie=n===`file`?i?.content:a?Wr(a):void 0,ae=(0,P.useMemo)(()=>n===`diff`&&a?rt(a.oldContent,a.newContent):void 0,[n,a]);return(0,P.useEffect)(()=>{if(!g)return;let e=e=>{te.current?.contains(e.target)||_(!1)},t=e=>{e.key===`Escape`&&_(!1)};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[g]),(0,F.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,F.jsxs)(`div`,{className:`flex h-12 shrink-0 items-center gap-2 border-b border-border px-3`,children:[ae?(0,F.jsxs)(`span`,{className:`shrink-0 font-mono text-[11px] font-medium`,children:[(0,F.jsxs)(`span`,{className:`text-emerald-600 dark:text-emerald-400`,children:[`+`,ae.added]}),(0,F.jsxs)(`span`,{className:`ml-1.5 text-red-600 dark:text-red-400`,children:[`-`,ae.removed]})]}):null,(0,F.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden text-sm`,title:D||T,children:[e?.name?(0,F.jsx)(`span`,{className:`shrink-0 truncate text-muted-foreground/75`,children:e.name}):null,E.map((t,n)=>{let r=n===E.length-1;return(0,F.jsxs)(`div`,{className:k(`flex min-w-0 items-center gap-1.5`,r?`min-w-0`:`shrink-0`),children:[e?.name||n>0?(0,F.jsx)(y,{className:`size-4 shrink-0 text-muted-foreground/55`}):null,(0,F.jsx)(`span`,{className:k(`truncate`,r?`font-medium text-foreground/92`:`text-muted-foreground/75`),children:t})]},`${t}-${n}`)})]}),(0,F.jsxs)(`div`,{ref:te,className:`flex shrink-0 items-center gap-1`,children:[ne?(0,F.jsx)(`button`,{type:`button`,className:`inline-flex h-8 items-center rounded-xl px-2.5 text-sm font-medium text-foreground/82 transition-colors hover:bg-muted/30 hover:text-foreground`,onClick:()=>{m(e=>e===`preview`?`source`:`preview`),_(!1)},children:O(p===`preview`?`viewMarkdownSource`:`returnToMarkdownPreview`)}):null,(0,F.jsxs)(`div`,{className:`relative`,children:[(0,F.jsx)(j,{variant:`ghost`,size:`icon`,className:k(`size-8 rounded-xl text-muted-foreground/75`,g&&`bg-muted/45 text-foreground/90`),onClick:()=>_(e=>!e),"aria-label":O(`readerMoreActions`),title:O(`readerMoreActions`),"aria-haspopup":`menu`,"aria-expanded":g,children:(0,F.jsx)(x,{className:`size-4`})}),g?(0,F.jsxs)(`div`,{className:`absolute right-0 top-10 z-50 w-56 rounded-2xl border border-[color-mix(in_oklab,var(--border)_38%,transparent)] bg-popover p-1.5 text-popover-foreground shadow-quickforge`,role:`menu`,"aria-label":O(`readerMoreActions`),children:[(0,F.jsxs)(`button`,{type:`button`,className:`flex h-10 w-full items-center gap-3 rounded-xl px-3 text-left text-sm font-medium text-foreground/86 transition-colors hover:bg-accent hover:text-accent-foreground disabled:cursor-not-allowed disabled:opacity-45`,onClick:()=>void S(`path`,T),disabled:!T,role:`menuitem`,children:[d===`path`?(0,F.jsx)(r,{className:`size-4 shrink-0`}):(0,F.jsx)(w,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,F.jsx)(`span`,{children:O(`copyPath`)})]}),(0,F.jsxs)(`button`,{type:`button`,className:`flex h-10 w-full items-center gap-3 rounded-xl px-3 text-left text-sm font-medium text-foreground/86 transition-colors hover:bg-accent hover:text-accent-foreground disabled:cursor-not-allowed disabled:opacity-45`,onClick:()=>void S(`content`,ie),disabled:!ie,role:`menuitem`,children:[d===`content`?(0,F.jsx)(r,{className:`size-4 shrink-0`}):(0,F.jsx)(w,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,F.jsx)(`span`,{children:O(n===`file`?`copyFileContent`:`copyDiffContent`)})]}),(0,F.jsxs)(`button`,{type:`button`,className:`flex h-10 w-full items-center gap-3 rounded-xl px-3 text-left text-sm font-medium text-foreground/86 transition-colors hover:bg-accent hover:text-accent-foreground disabled:cursor-not-allowed disabled:opacity-45`,onClick:()=>{ee(e=>!e),_(!1)},disabled:!re,role:`menuitemcheckbox`,"aria-checked":v,children:[(0,F.jsx)(b,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1`,children:O(`enableWordWrap`)}),v?(0,F.jsx)(r,{className:`size-4 shrink-0 text-muted-foreground/80`}):null]})]}):null]}),(0,F.jsx)(j,{variant:`ghost`,size:`icon`,className:k(`size-8 rounded-xl text-muted-foreground/75`,c&&`bg-muted/45 text-foreground/90`),onClick:()=>l(!c),"aria-label":O(c?`hideFileNavigation`:`showFileNavigation`),title:O(c?`hideFileNavigation`:`showFileNavigation`),"aria-pressed":c,children:(0,F.jsx)(h,{className:`size-4`})}),u?(0,F.jsx)(se,{project:e,disabled:!T,onOpenInExplorer:()=>{C(`explorer`)},onOpenInVSCode:()=>{C(`vscode`)},onOpenInIDEA:()=>{C(`idea`)}}):null]})]}),(0,F.jsxs)(`div`,{className:`min-h-0 flex-1 bg-background`,children:[o?(0,F.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground/70`,children:O(`openingReader`)}):null,!o&&s?(0,F.jsx)(`div`,{className:`p-4 text-sm text-destructive`,children:s}):null,!o&&!s&&n===`file`&&i?ne?(0,F.jsx)(tt,{path:i.path,content:i.content,language:i.language,mode:p,wordWrap:v},i.path):(0,F.jsx)(Je,{path:i.path,content:i.content,language:i.language,wordWrap:v}):null,!o&&!s&&n===`diff`&&a?(0,F.jsx)(nt,{path:a.path,oldContent:a.oldContent,newContent:a.newContent,language:a.language,status:a.status}):null]})]})}function Kr({project:e,artifacts:t,changesCount:n,changedPaths:r,isGitRepository:i,gitBranch:a,onSelectFile:o,onSelectDiff:s,onPreviewFile:c}){let[l,u]=(0,P.useState)(!1),[d,p]=(0,P.useState)(()=>new Set),m=ke(t),h=t.filter(e=>e.command);function g(e){p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}return(0,F.jsxs)(`div`,{className:`space-y-3 p-2`,children:[(0,F.jsxs)(`div`,{className:`rounded-lg border border-border bg-background px-3 py-3`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-semibold text-foreground/90`,children:[(0,F.jsx)(ie,{className:`size-3.5 text-emerald-600 dark:text-emerald-500`}),O(`workspaceCurrentArtifacts`)]}),t.length===0?(0,F.jsx)(`div`,{className:`mt-2 text-xs leading-5 text-muted-foreground/70`,children:O(`workspaceNoArtifacts`)}):(0,F.jsxs)(`div`,{className:`mt-3 space-y-3`,children:[m.length?(0,F.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,F.jsxs)(`div`,{className:`text-[11px] font-medium uppercase tracking-wide text-muted-foreground/60`,children:[O(`workspaceFiles`),` `,m.length]}),m.slice(0,8).map(e=>{let t=e.path,n=Se(t),i=r.has(t),a=typeof e.addedLines==`number`||typeof e.removedLines==`number`;return(0,F.jsxs)(`div`,{className:`group flex min-w-0 items-center gap-2 rounded-md px-2 py-1.5 text-xs text-foreground/85 transition-colors hover:bg-muted/20`,children:[(0,F.jsx)(zn,{path:t,className:`size-3.5 shrink-0`}),(0,F.jsx)(`button`,{type:`button`,className:`min-w-0 flex-1 truncate text-left font-medium`,onClick:()=>n?c(t):i?s(t):o(t),title:t,children:e.title||we(t)}),a?(0,F.jsxs)(`span`,{className:`shrink-0 font-mono text-[10px] font-medium`,children:[(0,F.jsxs)(`span`,{className:`text-emerald-600 dark:text-emerald-400`,children:[`+`,e.addedLines??0]}),(0,F.jsxs)(`span`,{className:`ml-1 text-red-600 dark:text-red-400`,children:[`-`,e.removedLines??0]})]}):null,(0,F.jsx)(`span`,{className:`shrink-0 rounded-full bg-muted/30 px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground/70`,children:e.kind}),n?(0,F.jsx)(`button`,{type:`button`,className:`shrink-0 inline-flex size-5 items-center justify-center text-blue-600 opacity-0 transition-opacity hover:bg-blue-500/10 hover:text-blue-700 group-hover:opacity-100 dark:text-blue-400`,onClick:()=>c(t),"aria-label":O(`previewArtifact`),title:O(`previewArtifact`),children:(0,F.jsx)(E,{className:`size-3.5`})}):null,(0,F.jsx)(`button`,{type:`button`,className:`shrink-0 rounded-md px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground/70 opacity-0 transition-opacity hover:bg-muted/25 group-hover:opacity-100`,onClick:()=>i?s(t):o(t),children:O(i?`workspaceViewDiff`:`artifactPreviewViewSource`)})]},e.id)}),m.length>8?(0,F.jsxs)(`div`,{className:`px-2 text-[11px] text-muted-foreground/60`,children:[`+`,m.length-8]}):null]}):null,h.length?(0,F.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,F.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 rounded-md px-1 py-1 text-left text-[11px] font-medium uppercase tracking-wide text-muted-foreground/60 transition-colors hover:bg-muted/15 hover:text-foreground/75`,onClick:()=>u(e=>!e),"aria-expanded":l,children:[(0,F.jsx)(f,{className:k(`size-3.5 transition-transform`,l?``:`-rotate-90`)}),(0,F.jsxs)(`span`,{className:`min-w-0 flex-1 truncate`,children:[O(`workspaceCommands`),` `,h.length]})]}),l?(0,F.jsx)(`div`,{className:`space-y-1`,children:h.map((e,t)=>{let n=d.has(e.id);return(0,F.jsxs)(`div`,{className:`rounded-md bg-muted/15 text-[11px] text-muted-foreground/80`,children:[(0,F.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-2 px-2 py-1.5 text-left transition-colors hover:bg-muted/20`,onClick:()=>g(e.id),"aria-expanded":n,children:[(0,F.jsx)(f,{className:k(`size-3 shrink-0 transition-transform`,n?``:`-rotate-90`)}),(0,F.jsxs)(`span`,{className:`shrink-0 font-medium text-muted-foreground/65`,children:[`#`,t+1]}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono`,children:e.command})]}),n?(0,F.jsxs)(`div`,{className:`space-y-1 px-2 pb-2 pt-1.5`,children:[(0,F.jsx)(`pre`,{className:`whitespace-pre-wrap break-words font-mono text-[11px] leading-5 text-foreground/80`,children:e.command}),e.outputFile?(0,F.jsxs)(`div`,{className:`text-[10px] text-muted-foreground/65`,children:[O(`workspaceCommandOutput`),`: `,(0,F.jsx)(`span`,{className:`font-mono`,children:e.outputFile})]}):null]}):null]},e.id)})}):null]}):null]})]}),(0,F.jsxs)(`div`,{className:`rounded-lg border border-border bg-muted/10 px-3 py-3`,children:[(0,F.jsx)(`div`,{className:`text-xs font-medium text-foreground/85`,children:e?.name??O(`noProjectSelected`)}),(0,F.jsx)(`div`,{className:`mt-1 text-[11px] text-muted-foreground/65`,children:i?`${O(`workspaceCurrentBranch`)}: ${a||O(`unknown`)} · ${n} ${O(`workspaceChangeCount`)}`:O(`workspaceNotGitRepository`)})]})]})}function qr({project:e,open:t,onOpenChange:n,onOpenCommitPush:a,onOpenProjectInExplorer:l,onOpenProjectInVSCode:u,onOpenProjectInIDEA:p,onPreviewArtifact:m,request:_,onRequestHandled:y,artifacts:b=[],pendingTerminalCommand:ee,onPendingTerminalCommandHandled:te,globalTerminalOpen:x=!1,onShowGlobalTerminal:S,onFullscreenChange:C}){let[w,E]=(0,P.useState)([]),[D,ne]=(0,P.useState)([]),[ae,oe]=(0,P.useState)(),[ue,me]=(0,P.useState)(!1),[A,_e]=(0,P.useState)(!1),[ve,Se]=(0,P.useState)(),[we,ke]=(0,P.useState)(``),[M,Fe]=(0,P.useState)(`unstaged`),[N,Ie]=(0,P.useState)(),[Re,ze]=(0,P.useState)(),[Be,Ve]=(0,P.useState)(!1),[He,Ue]=(0,P.useState)(),We=!!S,Ge=(0,P.useMemo)(()=>We?Cr:Cr.filter(e=>e.kind!==`terminal`),[We]),Ke=(0,P.useRef)(void 0);Ke.current||=e?.id?hr(e.id):{tabs:[]};let[I,L]=(0,P.useState)(()=>{let e=Ke.current?.tabs??[];return We?e:e.filter(e=>e.kind!==`terminal`)}),[R,z]=(0,P.useState)(()=>Ke.current?.activePanelTabId),[Je,Ye]=(0,P.useState)(),[B,Xe]=(0,P.useState)(!1),[V,H]=(0,P.useState)(!1),[Ze,Qe]=(0,P.useState)(!1),[$e,et]=(0,P.useState)(),[tt,nt]=(0,P.useState)(Ir),[rt,it]=(0,P.useState)(!0),[at,ot]=(0,P.useState)(!1),[st,ct]=(0,P.useState)(t),[lt,ut]=(0,P.useState)(!1),[U,dt]=(0,P.useState)(Rr),[ft,pt]=(0,P.useState)(!1),[W,mt]=(0,P.useState)(!1),[ht,gt]=(0,P.useState)(!1),G=(0,P.useRef)(null),_t=(0,P.useRef)(null),vt=(0,P.useRef)(null),yt=(0,P.useRef)(null),bt=(0,P.useRef)(null),K=(0,P.useRef)(null),xt=(0,P.useRef)(null),q=(0,P.useRef)(null),J=(0,P.useRef)(null),St=(0,P.useRef)(null),Ct=(0,P.useRef)(null),wt=(0,P.useRef)(yr(Ke.current?.tabs??[])),Tt=(0,P.useRef)(void 0),Et=(0,P.useRef)(void 0),Dt=(0,P.useRef)(void 0),Y=(0,P.useRef)(br()),Ot=(0,P.useRef)(new Set),kt=(0,P.useRef)(0);(0,P.useEffect)(()=>{let e=Y.current;return()=>{e.invalidate()}},[]);let X=e?.id;X&&Y.current.token(X);let At=(0,P.useMemo)(()=>I.map(e=>e.id),[I]),jt=Ae(Ce(Oe,{activationConstraint:{distance:6}})),Mt=(0,P.useCallback)(e=>({...e.transform,y:0}),[]),Z=(0,P.useMemo)(()=>I.find(e=>e.id===R),[R,I]),Nt=Z?.activeReaderTabId,Pt=(0,P.useMemo)(()=>Z?.readerTabs||[],[Z?.readerTabs]),Q=(0,P.useMemo)(()=>Pt.find(e=>e.id===Nt),[Nt,Pt]),Ft=!!(Q&&Q.mode!==`browser`&&(Z?.kind===`reader`||Z?.kind===`review`&&Q.mode===`diff`)),It=Z?.kind===`files`,Lt=Ft||It,Rt=It||!Ft||rt,zt=Z?.kind===`review`?Z.reviewView===`review`?`overview`:`changes`:`files`,Bt=(0,P.useMemo)(()=>{let e={};for(let t of D)e[t.path]=t;return e},[D]),Vt=(0,P.useMemo)(()=>{let e=new Set;for(let t of D)e.add(t.path),t.oldPath&&e.add(t.oldPath);return e},[D]),Ht=(0,P.useMemo)(()=>zr(w,we),[we,w]),Ut=(0,P.useMemo)(()=>Vr(b,e?.path),[b,e?.path]),Wt=(0,P.useMemo)(()=>M===`staged`?D.filter(e=>e.staged):M===`all`?D:M===`last`?D.filter(e=>Ut.has(e.path)||(e.oldPath?Ut.has(e.oldPath):!1)):D.filter(e=>e.unstaged||e.status===`untracked`||e.conflict||e.status===`conflicted`),[D,Ut,M]),Gt=N?Wt.find(e=>e.path===N):void 0;function Kt(e){ne(e.files),oe(e.branch),me(e.isGitRepository)}async function qt(e,t,n,r){et({action:e,path:t});try{Kt(await n())}catch(e){await Ee(e instanceof Error?e.message:r)}finally{et(void 0)}}async function Jt(e){X&&await qt(`stage`,e.path,()=>ce(X,e.path),O(`workspaceStageFailed`))}async function Yt(){X&&await qt(`stage`,void 0,()=>de(X),O(`workspaceStageFailed`))}async function Xt(e){X&&await qt(`unstage`,e.path,()=>fe(X,e.path),O(`workspaceUnstageFailed`))}async function Zt(){X&&await qt(`unstage`,void 0,()=>Me(X),O(`workspaceUnstageFailed`))}async function Qt(e){X&&await le({title:O(`workspaceRestoreConfirmTitle`),description:O(`workspaceRestoreFileConfirm`,{path:e.path}),confirmLabel:O(`workspaceRestoreFile`),cancelLabel:O(`cancel`),variant:`destructive`})&&await qt(`restore`,e.path,()=>Ne(X,e.path),O(`workspaceRestoreFailed`))}async function $t(){X&&await le({title:O(`workspaceRestoreConfirmTitle`),description:O(`workspaceRestoreAllConfirm`),confirmLabel:O(`workspaceRestoreAll`),cancelLabel:O(`cancel`),variant:`destructive`})&&await qt(`restore`,void 0,()=>he(X),O(`workspaceRestoreFailed`))}function en(e){e.status!==`deleted`&&_n(e.path)}async function tn(t){if(e){if(!Gt){t===`explorer`?l?.(e):t===`idea`?p?.(e):u?.(e);return}if(X)try{await Pe(X,Gt.path,t)}catch(e){let n=O(t===`explorer`?`openInExplorerFailed`:t===`idea`?`openInIDEAFailed`:`openInVSCodeFailed`);await Ee(e instanceof Error?e.message:n)}}}(0,P.useEffect)(()=>{!N||Wt.some(e=>e.path===N)||(Ie(void 0),ze(void 0),Ue(void 0),Ve(!1))},[N,Wt]),(0,P.useEffect)(()=>{if(t){let e=!1;return queueMicrotask(()=>{e||(ct(!0),window.requestAnimationFrame(()=>{e||ut(!0)}))}),()=>{e=!0}}let e=!1;queueMicrotask(()=>{e||ut(!1)});let n=window.setTimeout(()=>ct(!1),180);return W&&(J.current?.cancel(),St.current=null,mt(!1),gt(!1),C?.(!1),G.current?.removeAttribute(`style`)),()=>{e=!0,window.clearTimeout(n)}},[W,C,t]),(0,P.useEffect)(()=>{if(!B&&!V&&!Ze)return;let e=e=>{let t=e.target;B&&!_t.current?.contains(t)&&Xe(!1),V&&!vt.current?.contains(t)&&H(!1),Ze&&!yt.current?.contains(t)&&Qe(!1)},t=e=>{e.key===`Escape`&&(Xe(!1),H(!1),Qe(!1))};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[B,Ze,V]),(0,P.useEffect)(()=>{!t||!cr(_,X,Dt.current)||(Dt.current=_.id,_.kind===`review`?Tt.current?.(`review`,_.view):_.kind===`reader`?Et.current?.(_.path):_.kind===`browser`?Tt.current?.(`browser`,`browser`,{url:_.url}):Tt.current?.(_.kind,Er(_.kind)),y?.(_.id))},[y,t,X,_]),(0,P.useEffect)(()=>{try{window.localStorage.setItem(Pr,String(U))}catch{}},[U]);let nn=(0,P.useCallback)(()=>{dt(e=>e<Nr?Nr:e)},[]);(0,P.useEffect)(()=>{!lt||W||(Z?.kind===`browser`||Z?.kind===`terminal`||Nt)&&nn()},[Z?.kind,Nt,lt,W,nn]);let rn=(0,P.useCallback)(async e=>{if(X){_e(!0),Se(void 0);try{let[t,n]=await Promise.all([je(X),ye(X)]);if(e?.())return;E(t.tree),ne(n.files),oe(n.branch),me(n.isGitRepository)}catch(t){e?.()||Se(t instanceof Error?t.message:O(`workspaceLoadFailed`))}finally{e?.()||_e(!1)}}},[X]);function an(){if(rn(),!Z||Q?.mode!==`file`)return;let e=Q.id;$(Z.id,t=>({...t,readerTabs:(t.readerTabs||[]).map(t=>t.id===e?{...t,loading:!0,error:void 0}:t)}))}(0,P.useEffect)(()=>{let e=!1;if(!(!X||!t))return queueMicrotask(()=>{e||rn(()=>e)}),()=>{e=!0}},[rn,t,X]),(0,P.useEffect)(()=>{X&&_r(X,I,R)},[R,I,X]),(0,P.useEffect)(()=>{!R||I.some(e=>e.id===R)||z(I[0]?.id)},[R,I]),(0,P.useEffect)(()=>{if(!X)return;let e=I.flatMap(e=>e.kind===`reader`?(e.readerTabs||[]).filter(e=>e.loading&&e.mode===`file`).map(t=>({panelTabId:e.id,reader:t})):[]);for(let{panelTabId:t,reader:n}of e){let e=`${X}:${n.id}`;if(Ot.current.has(e))continue;Ot.current.add(e);let r=Y.current.token(X);pe(X,n.path).then(e=>({file:e})).then(e=>{Y.current.isCurrent(r)&&$(t,t=>({...t,readerTabs:(t.readerTabs||[]).map(t=>t.id===n.id?{...t,...e,loading:!1,error:void 0}:t)}))}).catch(e=>{Y.current.isCurrent(r)&&$(t,t=>({...t,readerTabs:(t.readerTabs||[]).map(t=>t.id===n.id?{...t,loading:!1,error:e instanceof Error?e.message:O(`workspaceOpenFileFailed`)}:t)}))}).finally(()=>{Ot.current.delete(e)})}},[I,X]);function on(e,t){let n=`${e}-${wt.current++}`;return e===`browser`?{id:n,kind:e,url:t?.url||``}:e===`reader`?{id:n,kind:e,readerTabs:t?.readerTab?[t.readerTab]:[],activeReaderTabId:t?.readerTab?.id}:e===`files`||e===`review`?{id:n,kind:e,...e===`review`?{reviewView:t?.reviewView||`changes`}:{},readerTabs:t?.readerTab?[t.readerTab]:[],activeReaderTabId:t?.readerTab?.id}:{id:n,kind:e}}function sn(e){return on(`reader`,{readerTab:e})}function $(e,t){L(n=>n.map(n=>n.id===e?t(n):n))}function cn(e,t=Er(e),n){let r=e===`review`?I.find(e=>e.kind===`review`):void 0,i=r||on(e,{...n,...e===`review`?{reviewView:t===`review`?`review`:`changes`}:{}});return r||L(e=>[...e,i]),r?.kind===`review`&&$(r.id,e=>({...e,reviewView:t===`review`?`review`:`changes`})),z(i.id),Xe(!1),i}Tt.current=cn;function ln(e){z(e.id)}function un(e){Ye(e.active.id),Xe(!1),H(!1)}function dn(){Ye(void 0)}function fn(e){dn();let{active:t,over:n}=e;n&&L(e=>vr(e,t.id,n.id))}function pn(e){L(t=>{let r=t.findIndex(t=>t.id===e),i=t.filter(t=>t.id!==e);return i.length===0?(z(void 0),n(!1),i):(R===e&&z((i[r]??i[r-1])?.id),i)})}function mn(){L(e=>{let t=e.find(e=>e.id===R)??e[0];return t?(z(t.id),[t]):e}),H(!1)}function hn(){L([]),z(void 0),H(!1),n(!1)}function gn(e){if(m&&X){m(X,e);return}_n(e)}async function _n(e){if(!X)return;let t=Y.current.token(X),n=Sr(`file`,e),r=I.find(e=>e.kind===`reader`&&e.readerTabs?.some(e=>e.id===n));if(r){z(r.id),$(r.id,e=>({...e,activeReaderTabId:n}));return}let i=sn({id:n,mode:`file`,path:e,loading:!0});L(e=>[...e,i]),z(i.id);try{let r=await pe(X,e);if(!Y.current.isCurrent(t))return;$(i.id,e=>({...e,readerTabs:(e.readerTabs||[]).map(e=>e.id===n?{...e,file:r,loading:!1,error:void 0}:e)}))}catch(e){if(!Y.current.isCurrent(t))return;$(i.id,t=>({...t,readerTabs:(t.readerTabs||[]).map(t=>t.id===n?{...t,loading:!1,error:e instanceof Error?e.message:O(`workspaceOpenFileFailed`)}:t)}))}}Et.current=_n;async function vn(e,t){if(!X)return;let n=Y.current.token(X),r=I.find(e=>e.kind===`review`)||cn(`review`,t?`changes`:`review`);z(r.id),t&&r.kind===`review`&&$(r.id,e=>({...e,reviewView:`changes`}));let i=Sr(`diff`,e);if(r.readerTabs?.some(e=>e.id===i)){$(r.id,e=>({...e,activeReaderTabId:i}));return}let a={id:i,mode:`diff`,path:e,loading:!0};$(r.id,e=>({...e,readerTabs:[...e.readerTabs||[],a],activeReaderTabId:i}));try{let t=await be(X,e);if(!Y.current.isCurrent(n))return;$(r.id,e=>({...e,readerTabs:(e.readerTabs||[]).map(e=>e.id===i?{...e,diff:t,loading:!1,error:void 0}:e)}))}catch(e){if(!Y.current.isCurrent(n))return;$(r.id,t=>({...t,readerTabs:(t.readerTabs||[]).map(t=>t.id===i?{...t,loading:!1,error:e instanceof Error?e.message:O(`workspaceOpenDiffFailed`)}:t)}))}}async function yn(e){if(!X)return;let t=Y.current.token(X);if(N===e){kt.current+=1,Ie(void 0),ze(void 0),Ue(void 0),Ve(!1);return}let n=kt.current+1;kt.current=n,Ie(e),ze(void 0),Ue(void 0),Ve(!0);try{let r=await be(X,e);if(kt.current!==n||!Y.current.isCurrent(t))return;ze(r)}catch(e){if(kt.current!==n||!Y.current.isCurrent(t))return;Ue(e instanceof Error?e.message:O(`workspaceOpenDiffFailed`))}finally{kt.current===n&&Y.current.isCurrent(t)&&Ve(!1)}}async function bn(e){await vn(e,!1)}function xn(e){xt.current={startX:e.clientX,startWidth:U,currentWidth:U},Ct.current={cursor:document.body.style.cursor,userSelect:document.body.style.userSelect},document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,pt(!0),e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}}function Sn(e){let t=xt.current,n=G.current;!t||!n||(t.currentWidth=Math.min(Nr,Math.max(jr,t.startWidth+t.startX-e.clientX)),q.current===null&&(q.current=window.requestAnimationFrame(()=>{q.current=null;let e=xt.current;!e||!G.current||(G.current.style.width=`${e.currentWidth}px`)})))}function Cn(e){let t=xt.current?.currentWidth;xt.current=null,q.current!==null&&(window.cancelAnimationFrame(q.current),q.current=null),typeof t==`number`&&(G.current&&(G.current.style.width=`${t}px`),dt(t));let n=Ct.current;n&&(document.body.style.cursor=n.cursor,document.body.style.userSelect=n.userSelect,Ct.current=null),pt(!1);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}}function wn(e){bt.current={startX:e.clientX,startWidth:tt,currentWidth:tt},document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,ot(!0),e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}}function Tn(e){let t=bt.current;t&&(t.currentWidth=Math.min(Lr,Math.max(Fr,t.startWidth+t.startX-e.clientX)),K.current===null&&(K.current=window.requestAnimationFrame(()=>{K.current=null;let e=bt.current;e&&nt(e.currentWidth)})))}function En(e){let t=bt.current?.currentWidth;bt.current=null,K.current!==null&&(window.cancelAnimationFrame(K.current),K.current=null),typeof t==`number`&&nt(t),document.body.style.cursor=``,document.body.style.userSelect=``,ot(!1);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}}let Dn=(0,P.useCallback)(e=>{let t=G.current;if(!t){let t=!W;mt(t),C?.(t),t||e?.();return}W&&e&&(St.current=e),J.current?.cancel();let n=t.getBoundingClientRect(),r=window.innerWidth,i=xr(),a=window.innerHeight-i,o=`${i}px`,s=`${a}px`,c=`cubic-bezier(0.22, 1, 0.36, 1)`;if(gt(!0),!W){window.requestAnimationFrame(()=>{let e=G.current;if(!e)return;Object.assign(e.style,{position:`fixed`,left:`${n.left}px`,top:`${n.top}px`,right:`auto`,bottom:`auto`,width:`${n.width}px`,height:`${n.height}px`,minWidth:`0px`,maxWidth:`none`,zIndex:`40`});let t=e.animate([{left:`${n.left}px`,top:`${n.top}px`,width:`${n.width}px`,height:`${n.height}px`},{left:`0px`,top:o,width:`${r}px`,height:s}],{duration:240,easing:c,fill:`forwards`});J.current=t,t.onfinish=()=>{J.current=null,mt(!0),C?.(!0),window.requestAnimationFrame(()=>{t.cancel(),e.removeAttribute(`style`),window.requestAnimationFrame(()=>gt(!1))})},t.oncancel=()=>{J.current=null,St.current=null,gt(!1)}});return}window.requestAnimationFrame(()=>{let e=G.current;if(!e)return;Object.assign(e.style,{position:`fixed`,left:`0px`,top:o,right:`auto`,bottom:`auto`,width:`${n.width}px`,height:s,zIndex:`40`});let t=r-U,i=e.animate([{left:`0px`,top:o,width:`${n.width}px`,height:s},{left:`${t}px`,top:o,width:`${U}px`,height:s}],{duration:240,easing:c,fill:`forwards`});J.current=i,i.onfinish=()=>{J.current=null,mt(!1),C?.(!1);let t=St.current;St.current=null,window.requestAnimationFrame(()=>{i.cancel(),e.style.position=``,e.style.left=``,e.style.top=``,e.style.right=``,e.style.bottom=``,e.style.height=``,e.style.zIndex=``,e.style.width=`${U}px`,e.style.minWidth=`${jr}px`,e.style.maxWidth=`${Nr}px`,window.requestAnimationFrame(()=>{gt(!1),t?.()})})},i.oncancel=()=>{J.current=null,St.current=null,gt(!1)}})},[W,C,U]);return(0,P.useEffect)(()=>{if(!W)return;let e=e=>{e.key===`Escape`&&Dn()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[W,Dn]),(0,P.useEffect)(()=>()=>{C?.(!1)},[C]),(0,P.useEffect)(()=>()=>{q.current!==null&&window.cancelAnimationFrame(q.current),K.current!==null&&window.cancelAnimationFrame(K.current),J.current?.cancel(),G.current&&G.current.removeAttribute(`style`);let e=Ct.current;e&&(document.body.style.cursor=e.cursor,document.body.style.userSelect=e.userSelect)},[]),st?(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)(`aside`,{ref:G,className:k(`relative hidden shrink-0 overflow-hidden flex-col bg-background transition-[width,min-width,max-width,opacity,transform] duration-200 ease-out will-change-[width,opacity,transform] lg:flex`,lt?`translate-x-0 opacity-100`:`w-0 min-w-0 max-w-0 translate-x-4 opacity-0`,ft?`transition-none`:``,W?`quickforge-workspace-inspector-fullscreen z-40 rounded-none border-l-0`:void 0),style:lt?W?void 0:{width:U,minWidth:jr,maxWidth:Nr}:void 0,children:[lt&&!W?(0,F.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-valuemin":jr,"aria-valuemax":Nr,"aria-valuenow":U,className:`absolute inset-y-0 -left-2 z-20 w-4 cursor-col-resize bg-transparent`,onPointerDown:xn,onPointerMove:Sn,onPointerUp:Cn,onPointerCancel:Cn}):null,(0,F.jsxs)(`div`,{className:k(`flex h-14 shrink-0 items-center gap-2 border-b border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background pl-3 transition-opacity duration-150`,W?`pr-2`:`pr-[5.5rem]`,ht?`opacity-0`:`opacity-100`),children:[I.length>0?(0,F.jsxs)(`div`,{ref:vt,className:`relative shrink-0`,children:[(0,F.jsx)(`button`,{type:`button`,className:`flex size-9 items-center justify-center rounded-2xl bg-transparent text-muted-foreground/85 transition-colors hover:bg-muted/45 hover:text-foreground/90`,onClick:()=>H(e=>!e),"aria-label":O(`rightPanelOpenTabsTitle`),title:O(`rightPanelOpenTabsTitle`),"aria-haspopup":`menu`,"aria-expanded":V,children:(0,F.jsx)(f,{className:k(`size-4 transition-transform`,V&&`rotate-180`)})}),V?(0,F.jsxs)(`div`,{className:`absolute left-0 top-12 z-40 w-72 max-w-[calc(100vw-2rem)] rounded-2xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-popover p-2 shadow-quickforge`,role:`menu`,children:[I.map(t=>{let n=(t.kind===`reader`?void 0:Tr[t.kind])?.icon,r=Hn(t),i=t.id===R,a=Or(t,e?.name),o=kr(t,a);return(0,F.jsxs)(`div`,{className:k(`group flex h-10 w-full items-center gap-2 rounded-xl px-2 transition-colors`,i?`bg-muted/55 text-foreground`:`text-foreground/86 hover:bg-muted/34 hover:text-foreground`),role:`none`,children:[(0,F.jsxs)(`button`,{type:`button`,className:`flex min-w-0 flex-1 items-center gap-2 text-left text-sm font-medium`,onClick:()=>{ln(t),H(!1)},role:`menuitem`,title:o,children:[r?(0,F.jsx)(zn,{path:r,className:`size-4 shrink-0`}):n?(0,F.jsx)(n,{className:`size-4 shrink-0 text-muted-foreground/80`}):(0,F.jsx)(ie,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:a})]}),(0,F.jsx)(`button`,{type:`button`,className:`inline-flex size-7 shrink-0 items-center justify-center rounded-full text-muted-foreground/70 opacity-70 transition-colors hover:bg-destructive/10 hover:text-destructive group-hover:opacity-100`,onClick:e=>{e.stopPropagation(),pn(t.id)},"aria-label":O(`close`),children:(0,F.jsx)(T,{className:`size-3.5`})})]},t.id)}),(0,F.jsxs)(`div`,{className:`mt-2 border-t border-[color-mix(in_oklab,var(--border)_34%,transparent)] pt-2`,children:[(0,F.jsx)(`button`,{type:`button`,className:`flex h-9 w-full items-center rounded-xl px-3 text-left text-sm font-medium text-foreground/80 transition-colors hover:bg-muted/40 hover:text-foreground disabled:pointer-events-none disabled:opacity-40`,onClick:mn,disabled:I.length<=1,role:`menuitem`,children:O(`rightPanelCloseOtherTabs`)}),(0,F.jsx)(`button`,{type:`button`,className:`flex h-9 w-full items-center rounded-xl px-3 text-left text-sm font-medium text-foreground/80 transition-colors hover:bg-destructive/10 hover:text-destructive`,onClick:hn,role:`menuitem`,children:O(`rightPanelCloseAllTabs`)})]})]}):null]}):null,(0,F.jsx)(Te,{sensors:jt,collisionDetection:ge,onDragStart:un,onDragEnd:fn,onDragCancel:dn,modifiers:[Mt],children:(0,F.jsx)(De,{items:At,strategy:xe,children:(0,F.jsxs)(`div`,{className:k(`flex min-w-0 flex-1 items-center gap-1 overflow-x-auto`,Je&&`cursor-grabbing`),children:[I.map((t,n)=>{let r=(t.kind===`reader`?void 0:Tr[t.kind])?.icon,i=Hn(t),a=t.id===R,o=Or(t,e?.name),s=kr(t,o);return(0,F.jsx)(Ar,{id:t.id,children:({listeners:e,attributes:c,isDragging:l})=>(0,F.jsxs)(F.Fragment,{children:[n>0?(0,F.jsx)(`span`,{"aria-hidden":`true`,className:`mx-0.5 h-3.5 w-px bg-[color-mix(in_oklab,var(--muted-foreground)_18%,transparent)]`}):null,(0,F.jsxs)(`button`,{type:`button`,className:k(`group flex h-10 max-w-40 cursor-grab items-center gap-2 rounded-2xl px-3 text-[13px] font-medium transition-[background-color,color,box-shadow] active:cursor-grabbing`,a?`bg-[color-mix(in_oklab,var(--muted)_86%,transparent)] text-foreground/82 hover:bg-[color-mix(in_oklab,var(--muted)_86%,transparent)]`:`text-muted-foreground/45 hover:bg-[color-mix(in_oklab,var(--muted)_72%,transparent)] hover:text-muted-foreground/72`,l&&`shadow-quickforge`),onClick:()=>{Je||ln(t)},title:s,...e,...c,children:[i?(0,F.jsx)(zn,{path:i,className:k(`size-4 shrink-0 transition-opacity`,a?`opacity-100`:`opacity-55 group-hover:opacity-85`)}):r?(0,F.jsx)(r,{className:k(`size-4 shrink-0`,a?`text-foreground/74`:`text-muted-foreground/45 group-hover:text-muted-foreground/72`)}):(0,F.jsx)(ie,{className:k(`size-4 shrink-0`,a?`text-foreground/74`:`text-muted-foreground/45 group-hover:text-muted-foreground/72`)}),(0,F.jsx)(`span`,{className:`min-w-0 truncate`,children:o}),(0,F.jsx)(`span`,{role:`button`,tabIndex:0,className:k(`ml-0.5 inline-flex size-5 shrink-0 cursor-default items-center justify-center rounded-full opacity-0 transition-all hover:bg-black hover:text-white group-hover:opacity-100`,a&&`opacity-100`),onPointerDown:e=>e.stopPropagation(),onClick:e=>{e.stopPropagation(),pn(t.id)},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),pn(t.id))},"aria-label":O(`close`),children:(0,F.jsx)(T,{className:`size-3.5`})})]})]})},t.id)}),I.length===0?(0,F.jsx)(`div`,{className:`min-w-0 flex-1`}):null]})})}),(0,F.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[I.length>0||W?(0,F.jsxs)(`div`,{ref:_t,className:`relative shrink-0`,children:[(0,F.jsx)(j,{variant:`ghost`,size:`icon`,type:`button`,className:`rounded-[10px] text-muted-foreground/85 hover:bg-muted/45 hover:text-foreground/90 disabled:opacity-40`,onClick:()=>Xe(e=>!e),"aria-label":O(`rightPanelAddTab`),title:O(`rightPanelAddTab`),"aria-haspopup":`menu`,"aria-expanded":B,children:(0,F.jsx)(d,{className:`size-[18px] stroke-[1.85]`})}),B?(0,F.jsx)(`div`,{className:`absolute right-0 top-12 z-40 w-64 rounded-2xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-popover p-2 shadow-quickforge`,role:`menu`,children:Ge.map(e=>{let t=e.icon;return(0,F.jsxs)(`button`,{type:`button`,className:k(`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-[15px] font-medium transition-colors`,e.kind===Z?.kind?`bg-muted/55 text-foreground`:`text-foreground/86 hover:bg-muted/34 hover:text-foreground`),onClick:()=>cn(e.kind,Er(e.kind)),role:`menuitem`,children:[(0,F.jsx)(t,{className:`size-4 shrink-0 text-muted-foreground/80`}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label})]},e.kind)})}):null]}):null,(0,F.jsx)(j,{variant:`ghost`,size:`icon`,className:`shrink-0 rounded-[10px] text-muted-foreground/85 hover:bg-muted/45 hover:text-foreground/90 disabled:opacity-40`,disabled:ht,onClick:()=>Dn(),"aria-label":O(W?`workspaceExitFullscreen`:`workspaceFullscreen`),title:O(W?`workspaceExitFullscreen`:`workspaceFullscreen`),children:W?(0,F.jsx)(c,{className:`size-[18px] stroke-[1.85]`}):(0,F.jsx)(s,{className:`size-[18px] stroke-[1.85]`})}),W?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(j,{variant:`ghost`,size:`icon`,className:k(`shrink-0 rounded-[10px] text-muted-foreground/85 hover:bg-muted/45 hover:text-foreground/90 disabled:opacity-40`,x&&`bg-accent text-accent-foreground hover:bg-accent hover:text-accent-foreground`),disabled:ht||!S,onClick:()=>Dn(S),"aria-label":O(`rightPanelTerminal`),title:O(`rightPanelTerminal`),children:(0,F.jsx)(re,{className:`size-[18px] stroke-[1.85]`})}),(0,F.jsx)(j,{variant:`ghost`,size:`icon`,className:`shrink-0 rounded-[10px] bg-accent text-accent-foreground hover:bg-accent hover:text-accent-foreground disabled:opacity-40`,disabled:ht,onClick:()=>Dn(()=>n(!1)),"aria-label":O(`workspaceCollapseRightPanel`),title:O(`workspaceCollapseRightPanel`),children:(0,F.jsx)(i,{className:`size-[18px] stroke-[1.85]`})})]}):null]})]}),(0,F.jsx)(`div`,{className:k(`flex min-h-0 flex-1 transition-opacity duration-150`,ht?`opacity-0`:`opacity-100`),children:e?.id?Z?Z.kind===`browser`?(0,F.jsx)(qe,{url:Z.url||``,onUrlChange:e=>{$(Z.id,t=>({...t,url:e}))},projectId:e.id}):Z.kind===`terminal`?(0,F.jsx)(Le,{project:e,pendingCommand:ee,onPendingCommandHandled:te,onCollapse:()=>pn(Z.id),variant:`panel`,singleSession:!0,panelInstanceId:Z.id,panelSessionId:Z.terminalSessionId,onPanelSessionReady:e=>$(Z.id,t=>({...t,terminalSessionId:e}))},Z.id):(0,F.jsxs)(F.Fragment,{children:[Lt?(0,F.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-col bg-background`,children:Q?(0,F.jsx)(Gr,{project:e,path:Q.path,mode:Q.mode,file:Q.file,diff:Q.diff,loading:Q.loading,error:Q.error,navigationVisible:rt,onNavigationVisibleChange:it,allowExternalOpen:!!(l||u||p)},Q.id):It?(0,F.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center px-6`,children:(0,F.jsxs)(`div`,{className:`max-w-sm text-center`,children:[(0,F.jsx)(h,{className:`mx-auto size-8 stroke-[1.6] text-muted-foreground/35`}),(0,F.jsx)(`div`,{className:`mt-3 text-sm font-medium text-foreground/85`,children:O(`workspaceOpenFileTitle`)}),(0,F.jsx)(`div`,{className:`mt-1 text-xs leading-5 text-muted-foreground/60`,children:O(`workspaceOpenFileDescription`)})]})}):null}):null,Lt&&(It||rt)?(0,F.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-valuemin":Fr,"aria-valuemax":Lr,"aria-valuenow":tt,className:k(`group relative z-10 w-1.5 shrink-0 cursor-col-resize bg-transparent transition-colors`,at?`bg-primary/30`:`hover:bg-[color-mix(in_oklab,var(--border)_52%,transparent)]`),onPointerDown:wn,onPointerMove:Tn,onPointerUp:En,onPointerCancel:En}):null,Rt?(0,F.jsx)(`div`,{className:k(`flex min-h-0 min-w-0 flex-col bg-muted/20`,Lt?`shrink-0 border-l-[0.5px] border-[color-mix(in_oklab,var(--border)_34%,transparent)]`:`flex-1`),style:Lt?{width:tt,minWidth:Fr,maxWidth:Lr}:void 0,children:ve?(0,F.jsx)(`div`,{className:`p-4 text-sm text-destructive`,children:ve}):(0,F.jsxs)(`div`,{className:k(`min-h-0 min-w-0 flex-1 p-2`,zt===`changes`?`flex flex-col overflow-hidden`:`overflow-auto`),children:[A?(0,F.jsx)(`div`,{className:`px-2 py-3 text-xs text-muted-foreground/70`,children:O(`workspaceLoading`)}):null,!A&&zt===`overview`?(0,F.jsx)(Kr,{project:e,artifacts:b,changesCount:D.length,changedPaths:Vt,isGitRepository:ue,gitBranch:ae,onSelectFile:_n,onSelectDiff:bn,onPreviewFile:gn}):null,!A&&zt===`files`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`mb-2 flex items-center gap-1`,children:[(0,F.jsxs)(`label`,{className:`flex min-w-0 flex-1 items-center gap-2 rounded-md border-[0.5px] border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-background px-2.5 py-2 text-sm text-muted-foreground/65 focus-within:text-foreground/85`,children:[(0,F.jsx)(g,{className:`size-4 shrink-0`}),(0,F.jsx)(`input`,{value:we,onChange:e=>ke(e.target.value),placeholder:O(`workspaceFilterFiles`),className:`min-w-0 flex-1 bg-transparent text-sm text-foreground/85 outline-none placeholder:text-muted-foreground/50`})]}),(0,F.jsx)(`button`,{type:`button`,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-xl text-muted-foreground/72 transition-colors hover:bg-muted/30 hover:text-foreground/85 disabled:cursor-not-allowed disabled:opacity-60`,onClick:an,disabled:A,"aria-label":O(`refreshWorkspace`),title:O(`refreshWorkspace`),children:(0,F.jsx)(v,{className:k(`size-3.5`,A&&`animate-spin`)})})]}),(0,F.jsx)(sr,{tree:Ht,selectedPath:Q?.mode===`file`?Q.path:void 0,gitStatuses:Bt,onSelectFile:_n,onPreviewFile:gn,projectId:X})]}):null,!A&&zt===`changes`?ue?(0,F.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 shrink-0 flex-wrap items-center justify-between gap-x-2 gap-y-1.5 pb-2`,children:[(0,F.jsxs)(`div`,{ref:yt,className:`relative min-w-24 flex-1`,children:[(0,F.jsxs)(`button`,{type:`button`,className:`inline-flex h-8 w-full min-w-0 max-w-full items-center gap-2 rounded-xl border border-[color-mix(in_oklab,var(--border)_45%,transparent)] bg-background px-3 text-sm font-medium text-foreground/86 transition-colors hover:border-border/60 hover:bg-muted/30 hover:text-foreground`,onClick:()=>Qe(e=>!e),"aria-haspopup":`menu`,"aria-expanded":Ze,title:O(`workspaceReviewFilter`),children:[(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:wr.find(e=>e.value===M)?.label}),(0,F.jsx)(f,{className:k(`size-3.5 shrink-0 text-muted-foreground/70 transition-transform`,Ze&&`rotate-180`)})]}),Ze?(0,F.jsx)(`div`,{className:`absolute left-0 top-10 z-40 w-48 rounded-2xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-popover p-1.5 shadow-quickforge`,role:`menu`,"aria-label":O(`workspaceReviewFilter`),children:wr.map(e=>{let t=e.value===M;return(0,F.jsxs)(`button`,{type:`button`,className:k(`flex h-9 w-full items-center gap-2 rounded-xl px-2.5 text-left text-sm font-medium transition-colors`,t?`bg-muted/55 text-foreground`:`text-foreground/82 hover:bg-muted/34 hover:text-foreground`),onClick:()=>{Fe(e.value),Qe(!1)},role:`menuitemradio`,"aria-checked":t,children:[(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),t?(0,F.jsx)(r,{className:`size-3.5 shrink-0 text-muted-foreground/80`}):null]},e.value)})}):null]}),(0,F.jsxs)(`div`,{className:`ml-auto flex shrink-0 items-center gap-1`,children:[(0,F.jsx)(`button`,{type:`button`,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-xl text-muted-foreground/72 transition-colors hover:bg-muted/30 hover:text-foreground/85 disabled:cursor-not-allowed disabled:opacity-60`,onClick:()=>void rn(),disabled:A,"aria-label":O(`refreshWorkspace`),title:O(`refreshWorkspace`),children:(0,F.jsx)(v,{className:k(`size-3.5`,A&&`animate-spin`)})}),l||u||p?(0,F.jsx)(se,{project:e,disabledTargets:Gt?.status===`deleted`?{vscode:!0,idea:!0}:void 0,targetDisabledLabel:O(`workspaceCannotOpenDeletedFile`),onOpenInExplorer:()=>{tn(`explorer`)},onOpenInVSCode:()=>{tn(`vscode`)},onOpenInIDEA:()=>{tn(`idea`)}}):null,a?(0,F.jsx)(`button`,{type:`button`,className:`inline-flex size-8 shrink-0 items-center justify-center rounded-xl text-muted-foreground/72 transition-colors hover:bg-muted/30 hover:text-foreground/85`,onClick:a,"aria-label":O(`gitToolsCommitOrPush`),title:O(`gitToolsCommitOrPush`),children:(0,F.jsx)(o,{className:`size-3.5`})}):null]})]}),(0,F.jsx)(rr,{files:Wt,selectedPath:N,expandedDiff:Re,expandedLoading:Be,expandedError:He,onSelectFile:yn,onRestoreFile:Qt,onStageFile:Jt,onUnstageFile:Xt,onOpenFile:en,onRestoreAll:$t,onStageAll:Yt,onUnstageAll:Zt,showUnstageAll:M===`staged`,pendingAction:$e,emptyMessage:Hr(M)})]}):(0,F.jsx)(`div`,{className:`px-2 py-3 text-xs text-muted-foreground/70`,children:O(`workspaceNotGitRepository`)}):null]})}):null]}):(0,F.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center px-5`,children:(0,F.jsxs)(`div`,{className:`w-full max-w-[26rem] space-y-4`,children:[(0,F.jsxs)(`div`,{className:`text-center font-sans`,children:[(0,F.jsx)(`div`,{className:`text-lg font-semibold leading-tight tracking-[-0.01em] text-foreground/90`,children:O(`rightPanelOpenTabsTitle`)}),(0,F.jsx)(`div`,{className:`mt-2 text-sm leading-5 text-muted-foreground/70`,children:O(`rightPanelOpenTabsDescription`)})]}),(0,F.jsx)(`div`,{className:`space-y-2`,children:Ge.map(e=>{let t=e.icon;return(0,F.jsxs)(`button`,{type:`button`,className:`flex w-full cursor-pointer items-center gap-3 rounded-xl border border-[color-mix(in_oklab,var(--border)_34%,transparent)] bg-muted/60 px-4 py-3 text-left transition-colors hover:bg-muted/72 active:bg-muted/82`,onClick:()=>cn(e.kind,Er(e.kind)),children:[(0,F.jsx)(t,{className:`size-4 shrink-0 text-muted-foreground/78`}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`div`,{className:`text-sm font-medium text-foreground/90`,children:e.label}),(0,F.jsx)(`div`,{className:`mt-0.5 text-xs leading-4 text-muted-foreground/60`,children:e.description})]})]},e.kind)})})]})}):(0,F.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground/70`,children:O(`workspaceSelectProject`)})})]})}):null}export{qr as WorkspaceInspector};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-s7Qq-R3i.js";import{n as e}from"./chunk-MOZMSUNE-pMJ_jMos.js";export{e as createArchitectureServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{at as e,ot as t}from"./chunk-WYO6CB5R-rRDZ_Tta.js";var n=(n,r)=>t.lang.round(e.parse(n)[r]);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-BgISNSiw.js";var t=class{constructor(e){this.init=e,this.records=this.init()}static{e(this,`ImperativeState`)}reset(){this.records=this.init()}};export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-BgISNSiw.js";import{p as t}from"./src-CovulcRC.js";import{x as n}from"./chunk-WYO6CB5R-rRDZ_Tta.js";var r=e(e=>{let{securityLevel:r}=n(),i=t(`body`);return r===`sandbox`&&(i=t((t(`#i${e}`).node()?.contentDocument??document).body)),i.select(`#${e}`)},`selectSvgElement`);export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-BgISNSiw.js";import{p as t}from"./src-CovulcRC.js";var n=e((e,n)=>{let r;return n===`sandbox`&&(r=t(`#i`+e)),t(n===`sandbox`?r.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-BgISNSiw.js";import"./src-CovulcRC.js";import"./chunk-WYO6CB5R-rRDZ_Tta.js";import"./chunk-ICXQ74PX-YBXbanq9.js";import"./chunk-HOUHSVGY-XjIcuzH7.js";import"./chunk-Q4XR5HBZ-DYmqQdIf.js";import"./chunk-7BUUIJ7U-DNorm9MM.js";import"./chunk-OGEWGWER-CJy-3Ldv.js";import"./chunk-32BRIVSS-B9PuF_RF.js";import"./chunk-XXDRQBXY-Do-XYxat.js";import"./chunk-VR4S4FIN-DgaSiVOY.js";import"./chunk-C7G6YPKG-DMvn9IPs.js";import"./chunk-ZGVPDNZ5-CrnlPlmJ.js";import"./chunk-52WLFC77-3zGItfIM.js";import"./chunk-FWX5IMBZ-D4q-wTSy.js";import{i as t,n,r,t as i}from"./chunk-V7JOEXUC-Btk4JwCt.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-BgISNSiw.js";import"./src-CovulcRC.js";import"./chunk-WYO6CB5R-rRDZ_Tta.js";import"./chunk-ICXQ74PX-YBXbanq9.js";import"./chunk-HOUHSVGY-XjIcuzH7.js";import"./chunk-Q4XR5HBZ-DYmqQdIf.js";import"./chunk-7BUUIJ7U-DNorm9MM.js";import"./chunk-OGEWGWER-CJy-3Ldv.js";import"./chunk-32BRIVSS-B9PuF_RF.js";import"./chunk-XXDRQBXY-Do-XYxat.js";import"./chunk-VR4S4FIN-DgaSiVOY.js";import"./chunk-C7G6YPKG-DMvn9IPs.js";import"./chunk-ZGVPDNZ5-CrnlPlmJ.js";import"./chunk-52WLFC77-3zGItfIM.js";import"./chunk-FWX5IMBZ-D4q-wTSy.js";import{i as t,n,r,t as i}from"./chunk-V7JOEXUC-Btk4JwCt.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-s7Qq-R3i.js";import{n as e}from"./chunk-OSBZ3O6U-D7cLHHOA.js";export{e as createCynefinServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-s7Qq-R3i.js";import{n as e}from"./chunk-5JV3BV7I-Csxv1jr6.js";export{e as createEventModelingServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./src-CovulcRC.js";import"./chunk-WYO6CB5R-rRDZ_Tta.js";import"./chunk-ICXQ74PX-YBXbanq9.js";import"./chunk-HOUHSVGY-XjIcuzH7.js";import"./chunk-Q4XR5HBZ-DYmqQdIf.js";import"./chunk-7BUUIJ7U-DNorm9MM.js";import"./chunk-OGEWGWER-CJy-3Ldv.js";import"./chunk-32BRIVSS-B9PuF_RF.js";import"./chunk-XXDRQBXY-Do-XYxat.js";import"./chunk-VR4S4FIN-DgaSiVOY.js";import"./chunk-C7G6YPKG-DMvn9IPs.js";import"./chunk-ZGVPDNZ5-CrnlPlmJ.js";import"./chunk-52WLFC77-3zGItfIM.js";import"./chunk-FWX5IMBZ-D4q-wTSy.js";import"./chunk-ZIRB5QZD-BYTiATIH.js";import{n as e}from"./chunk-PUDLZKDR-D5YBi1Pi.js";export{e as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-s7Qq-R3i.js";import{n as e}from"./chunk-CYSBUYHQ-BovYyc4Y.js";export{e as createGitGraphServices};
|