@theodo/bernard 0.1.0-beta.0 → 0.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -12
- package/core/README.md +1 -1
- package/core/agents/review-quality.md +13 -12
- package/core/agents/review-security-bugs.md +1 -1
- package/core/agents/review-tests.md +1 -1
- package/core/coder/template/main.tf +14 -1
- package/core/skills/pull-request/SKILL.md +17 -7
- package/core/skills/pull-request/ci-fixer.md +3 -3
- package/dist/bin.mjs +4979 -3176
- package/dist/{config-BawD0TwQ.mjs → config-DtCwJKWe.mjs} +70 -6
- package/dist/config.d.mts +72 -4
- package/dist/config.mjs +1 -1
- package/dist/docs/404.html +23 -0
- package/dist/docs/CLAUDE.html +30 -0
- package/dist/docs/CONTEXT.html +30 -0
- package/dist/docs/CONTRIBUTING.html +62 -0
- package/dist/docs/assets/CLAUDE.md.BLSB-5gK.js +1 -0
- package/dist/docs/assets/CLAUDE.md.BLSB-5gK.lean.js +1 -0
- package/dist/docs/assets/CONTEXT.md.BovnvMGK.js +1 -0
- package/dist/docs/assets/CONTEXT.md.BovnvMGK.lean.js +1 -0
- package/dist/docs/assets/CONTRIBUTING.md.DwJsKrz3.js +33 -0
- package/dist/docs/assets/CONTRIBUTING.md.DwJsKrz3.lean.js +1 -0
- package/dist/docs/assets/app.URmpjWHb.js +312 -0
- package/dist/docs/assets/bernard.RCgrvDdX.svg +94 -0
- package/dist/docs/assets/chunks/@localSearchIndexroot.Ylq685Cw.js +1 -0
- package/dist/docs/assets/chunks/VPLocalSearchBox.C8gcRVj0.js +9 -0
- package/dist/docs/assets/chunks/dagre-GXQ25YYZ.2qvw8AqH.js +4 -0
- package/dist/docs/assets/chunks/framework.hgjl6W6o.js +20 -0
- package/dist/docs/assets/chunks/sizeCapture-INFHLROL.BEqL2zFi.js +1 -0
- package/dist/docs/assets/chunks/stateDiagram-v2-MP3YSRHH.3X7wNXKX.js +231 -0
- package/dist/docs/assets/chunks/theme.Cksh_UJH.js +2 -0
- package/dist/docs/assets/chunks/virtual_mermaid-config.DDnGl6nM.js +1 -0
- package/dist/docs/assets/core_README.md.DyxYsikc.js +15 -0
- package/dist/docs/assets/core_README.md.DyxYsikc.lean.js +1 -0
- package/dist/docs/assets/demo_README.md.Cpi2pUU9.js +18 -0
- package/dist/docs/assets/demo_README.md.Cpi2pUU9.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0001-what-the-core-is-built-for.md.BxOoMjST.js +1 -0
- package/dist/docs/assets/docs_adr_0001-what-the-core-is-built-for.md.BxOoMjST.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0002-which-harness-a-project-runs-on.md.2GwF-nj0.js +1 -0
- package/dist/docs/assets/docs_adr_0002-which-harness-a-project-runs-on.md.2GwF-nj0.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0003-how-core-content-reaches-each-harness.md.BMWE00Mf.js +1 -0
- package/dist/docs/assets/docs_adr_0003-how-core-content-reaches-each-harness.md.BMWE00Mf.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0004-how-the-core-uses-external-tools.md.B7dtE7MB.js +1 -0
- package/dist/docs/assets/docs_adr_0004-how-the-core-uses-external-tools.md.B7dtE7MB.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0005-what-drives-the-pipeline.md.DGn0CJeq.js +1 -0
- package/dist/docs/assets/docs_adr_0005-what-drives-the-pipeline.md.DGn0CJeq.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0006-what-steps-hand-off-to-each-other.md.BflT5ugJ.js +1 -0
- package/dist/docs/assets/docs_adr_0006-what-steps-hand-off-to-each-other.md.BflT5ugJ.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0007-how-humans-take-part-in-the-pipeline.md.CNX3gUD-.js +1 -0
- package/dist/docs/assets/docs_adr_0007-how-humans-take-part-in-the-pipeline.md.CNX3gUD-.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0008-where-a-steps-reviewers-run.md.aGbaBOpB.js +1 -0
- package/dist/docs/assets/docs_adr_0008-where-a-steps-reviewers-run.md.aGbaBOpB.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0009-where-pipeline-state-and-handoffs-live.md.C3tKmV-E.js +1 -0
- package/dist/docs/assets/docs_adr_0009-where-pipeline-state-and-handoffs-live.md.C3tKmV-E.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0010-how-a-project-adapts-the-core.md.Bp7N6tUE.js +1 -0
- package/dist/docs/assets/docs_adr_0010-how-a-project-adapts-the-core.md.Bp7N6tUE.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0011-how-the-factory-is-packaged-and-versioned.md.BBJIwnqa.js +1 -0
- package/dist/docs/assets/docs_adr_0011-how-the-factory-is-packaged-and-versioned.md.BBJIwnqa.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0012-how-a-steps-failures-are-told-apart-and-routed.md.uCyrBfug.js +1 -0
- package/dist/docs/assets/docs_adr_0012-how-a-steps-failures-are-told-apart-and-routed.md.uCyrBfug.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0013-when-code-lands.md.oXgiobfz.js +1 -0
- package/dist/docs/assets/docs_adr_0013-when-code-lands.md.oXgiobfz.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0014-what-a-step-may-change.md.Zslg3bnJ.js +1 -0
- package/dist/docs/assets/docs_adr_0014-what-a-step-may-change.md.Zslg3bnJ.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0015-how-a-project-shapes-its-ticket-flow.md.DNHMxwIT.js +1 -0
- package/dist/docs/assets/docs_adr_0015-how-a-project-shapes-its-ticket-flow.md.DNHMxwIT.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0016-which-core-the-factory-repo-runs.md.CLN6LqBZ.js +1 -0
- package/dist/docs/assets/docs_adr_0016-which-core-the-factory-repo-runs.md.CLN6LqBZ.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0017-where-a-tickets-record-lives.md.jjUeM-ex.js +1 -0
- package/dist/docs/assets/docs_adr_0017-where-a-tickets-record-lives.md.jjUeM-ex.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0018-the-products-name.md.6xaX9vDs.js +1 -0
- package/dist/docs/assets/docs_adr_0018-the-products-name.md.6xaX9vDs.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0019-how-a-finding-is-answered-and-judged.md.CKKoO9-3.js +1 -0
- package/dist/docs/assets/docs_adr_0019-how-a-finding-is-answered-and-judged.md.CKKoO9-3.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0020-how-an-interrupted-run-resumes.md.DTIP-MBK.js +1 -0
- package/dist/docs/assets/docs_adr_0020-how-an-interrupted-run-resumes.md.DTIP-MBK.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0021-how-a-step-runs-in-its-workspace.md.B2r3-FPg.js +1 -0
- package/dist/docs/assets/docs_adr_0021-how-a-step-runs-in-its-workspace.md.B2r3-FPg.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0022-who-names-the-branches.md.DaVk8X0i.js +1 -0
- package/dist/docs/assets/docs_adr_0022-who-names-the-branches.md.DaVk8X0i.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0023-how-a-version-ships-before-npm.md.C7-wuCbq.js +1 -0
- package/dist/docs/assets/docs_adr_0023-how-a-version-ships-before-npm.md.C7-wuCbq.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0024-how-the-config-type-carries-its-docs.md.CQmwhWXs.js +1 -0
- package/dist/docs/assets/docs_adr_0024-how-the-config-type-carries-its-docs.md.CQmwhWXs.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0025-how-a-steps-handoff-is-written-and-checked.md.CgXYdF2v.js +1 -0
- package/dist/docs/assets/docs_adr_0025-how-a-steps-handoff-is-written-and-checked.md.CgXYdF2v.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0026-support-for-github-copilot.md.DJsawm-R.js +1 -0
- package/dist/docs/assets/docs_adr_0026-support-for-github-copilot.md.DJsawm-R.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0027-which-forge-a-project-is-on.md.CY0qy9xh.js +1 -0
- package/dist/docs/assets/docs_adr_0027-which-forge-a-project-is-on.md.CY0qy9xh.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0028-several-ticket-flows-in-one-pipeline.md.oxffo2qg.js +1 -0
- package/dist/docs/assets/docs_adr_0028-several-ticket-flows-in-one-pipeline.md.oxffo2qg.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0029-the-branch-a-feature-works-on.md.CrgkP6YJ.js +1 -0
- package/dist/docs/assets/docs_adr_0029-the-branch-a-feature-works-on.md.CrgkP6YJ.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0030-a-runner-without-coder.md.CW8sF7jK.js +1 -0
- package/dist/docs/assets/docs_adr_0030-a-runner-without-coder.md.CW8sF7jK.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0031-how-the-run-viewer-reads-its-runs.md.opQYnVF2.js +1 -0
- package/dist/docs/assets/docs_adr_0031-how-the-run-viewer-reads-its-runs.md.opQYnVF2.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0032-how-a-project-gets-the-viewer.md.DB9NjYJf.js +1 -0
- package/dist/docs/assets/docs_adr_0032-how-a-project-gets-the-viewer.md.DB9NjYJf.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0033-the-repos-license.md.NPlkrPj8.js +1 -0
- package/dist/docs/assets/docs_adr_0033-the-repos-license.md.NPlkrPj8.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0034-how-code-review-launches-its-reviewers.md.DSNpkfaL.js +1 -0
- package/dist/docs/assets/docs_adr_0034-how-code-review-launches-its-reviewers.md.DSNpkfaL.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0035-how-the-package-is-published.md.C1f4B5eb.js +1 -0
- package/dist/docs/assets/docs_adr_0035-how-the-package-is-published.md.C1f4B5eb.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0036-what-the-cores-pull-request-skill-does.md.op39HLAT.js +1 -0
- package/dist/docs/assets/docs_adr_0036-what-the-cores-pull-request-skill-does.md.op39HLAT.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0037-how-a-team-reads-the-factorys-documentation.md.Dar_Xo4t.js +1 -0
- package/dist/docs/assets/docs_adr_0037-how-a-team-reads-the-factorys-documentation.md.Dar_Xo4t.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0038-where-adapters-live.md.CkVD3riv.js +1 -0
- package/dist/docs/assets/docs_adr_0038-where-adapters-live.md.CkVD3riv.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0039-the-repos-license.md.C_rraWpb.js +1 -0
- package/dist/docs/assets/docs_adr_0039-the-repos-license.md.C_rraWpb.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0040-how-a-version-is-released.md.CCdwC07z.js +1 -0
- package/dist/docs/assets/docs_adr_0040-how-a-version-is-released.md.CCdwC07z.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0041-who-opens-the-features-pull-request.md.qLu9WLaG.js +1 -0
- package/dist/docs/assets/docs_adr_0041-who-opens-the-features-pull-request.md.qLu9WLaG.lean.js +1 -0
- package/dist/docs/assets/docs_adr_0042-how-secrets-are-kept-out-of-committed-records.md.DJWazI4H.js +1 -0
- package/dist/docs/assets/docs_adr_0042-how-secrets-are-kept-out-of-committed-records.md.DJWazI4H.lean.js +1 -0
- package/dist/docs/assets/docs_getting-started.md.BpQFS8Gr.js +12 -0
- package/dist/docs/assets/docs_getting-started.md.BpQFS8Gr.lean.js +1 -0
- package/dist/docs/assets/docs_github.md.D4gkW71G.js +1 -0
- package/dist/docs/assets/docs_github.md.D4gkW71G.lean.js +1 -0
- package/dist/docs/assets/docs_overlay.md.DoWVb6OM.js +35 -0
- package/dist/docs/assets/docs_overlay.md.DoWVb6OM.lean.js +1 -0
- package/dist/docs/assets/docs_pipeline.md.DdHywWSk.js +1 -0
- package/dist/docs/assets/docs_pipeline.md.DdHywWSk.lean.js +1 -0
- package/dist/docs/assets/docs_recipes.md.8Xf6BsRA.js +45 -0
- package/dist/docs/assets/docs_recipes.md.8Xf6BsRA.lean.js +1 -0
- package/dist/docs/assets/fixtures_README.md.DzbQ0hft.js +1 -0
- package/dist/docs/assets/fixtures_README.md.DzbQ0hft.lean.js +1 -0
- package/dist/docs/assets/index.md.DHgL6CzS.js +28 -0
- package/dist/docs/assets/index.md.DHgL6CzS.lean.js +1 -0
- package/dist/docs/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 +0 -0
- package/dist/docs/assets/inter-italic-cyrillic.By2_1cv3.woff2 +0 -0
- package/dist/docs/assets/inter-italic-greek-ext.1u6EdAuj.woff2 +0 -0
- package/dist/docs/assets/inter-italic-greek.DJ8dCoTZ.woff2 +0 -0
- package/dist/docs/assets/inter-italic-latin-ext.CN1xVJS-.woff2 +0 -0
- package/dist/docs/assets/inter-italic-latin.C2AdPX0b.woff2 +0 -0
- package/dist/docs/assets/inter-italic-vietnamese.BSbpV94h.woff2 +0 -0
- package/dist/docs/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 +0 -0
- package/dist/docs/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 +0 -0
- package/dist/docs/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 +0 -0
- package/dist/docs/assets/inter-roman-greek.BBVDIX6e.woff2 +0 -0
- package/dist/docs/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 +0 -0
- package/dist/docs/assets/inter-roman-latin.Di8DUHzh.woff2 +0 -0
- package/dist/docs/assets/inter-roman-vietnamese.BjW4sHH5.woff2 +0 -0
- package/dist/docs/assets/packages_docs_README.md.PV1a27nC.js +3 -0
- package/dist/docs/assets/packages_docs_README.md.PV1a27nC.lean.js +1 -0
- package/dist/docs/assets/packages_viewer_README.md.BynKZSdN.js +3 -0
- package/dist/docs/assets/packages_viewer_README.md.BynKZSdN.lean.js +1 -0
- package/dist/docs/assets/style.C3E8Ltp6.css +1 -0
- package/dist/docs/bernard.svg +94 -0
- package/dist/docs/core/README.html +44 -0
- package/dist/docs/demo/README.html +47 -0
- package/dist/docs/docs/adr/0001-what-the-core-is-built-for.html +30 -0
- package/dist/docs/docs/adr/0002-which-harness-a-project-runs-on.html +30 -0
- package/dist/docs/docs/adr/0003-how-core-content-reaches-each-harness.html +30 -0
- package/dist/docs/docs/adr/0004-how-the-core-uses-external-tools.html +30 -0
- package/dist/docs/docs/adr/0005-what-drives-the-pipeline.html +30 -0
- package/dist/docs/docs/adr/0006-what-steps-hand-off-to-each-other.html +30 -0
- package/dist/docs/docs/adr/0007-how-humans-take-part-in-the-pipeline.html +30 -0
- package/dist/docs/docs/adr/0008-where-a-steps-reviewers-run.html +30 -0
- package/dist/docs/docs/adr/0009-where-pipeline-state-and-handoffs-live.html +30 -0
- package/dist/docs/docs/adr/0010-how-a-project-adapts-the-core.html +30 -0
- package/dist/docs/docs/adr/0011-how-the-factory-is-packaged-and-versioned.html +30 -0
- package/dist/docs/docs/adr/0012-how-a-steps-failures-are-told-apart-and-routed.html +30 -0
- package/dist/docs/docs/adr/0013-when-code-lands.html +30 -0
- package/dist/docs/docs/adr/0014-what-a-step-may-change.html +30 -0
- package/dist/docs/docs/adr/0015-how-a-project-shapes-its-ticket-flow.html +30 -0
- package/dist/docs/docs/adr/0016-which-core-the-factory-repo-runs.html +30 -0
- package/dist/docs/docs/adr/0017-where-a-tickets-record-lives.html +30 -0
- package/dist/docs/docs/adr/0018-the-products-name.html +30 -0
- package/dist/docs/docs/adr/0019-how-a-finding-is-answered-and-judged.html +30 -0
- package/dist/docs/docs/adr/0020-how-an-interrupted-run-resumes.html +30 -0
- package/dist/docs/docs/adr/0021-how-a-step-runs-in-its-workspace.html +30 -0
- package/dist/docs/docs/adr/0022-who-names-the-branches.html +30 -0
- package/dist/docs/docs/adr/0023-how-a-version-ships-before-npm.html +30 -0
- package/dist/docs/docs/adr/0024-how-the-config-type-carries-its-docs.html +30 -0
- package/dist/docs/docs/adr/0025-how-a-steps-handoff-is-written-and-checked.html +30 -0
- package/dist/docs/docs/adr/0026-support-for-github-copilot.html +30 -0
- package/dist/docs/docs/adr/0027-which-forge-a-project-is-on.html +30 -0
- package/dist/docs/docs/adr/0028-several-ticket-flows-in-one-pipeline.html +30 -0
- package/dist/docs/docs/adr/0029-the-branch-a-feature-works-on.html +30 -0
- package/dist/docs/docs/adr/0030-a-runner-without-coder.html +30 -0
- package/dist/docs/docs/adr/0031-how-the-run-viewer-reads-its-runs.html +30 -0
- package/dist/docs/docs/adr/0032-how-a-project-gets-the-viewer.html +30 -0
- package/dist/docs/docs/adr/0033-the-repos-license.html +30 -0
- package/dist/docs/docs/adr/0034-how-code-review-launches-its-reviewers.html +30 -0
- package/dist/docs/docs/adr/0035-how-the-package-is-published.html +30 -0
- package/dist/docs/docs/adr/0036-what-the-cores-pull-request-skill-does.html +30 -0
- package/dist/docs/docs/adr/0037-how-a-team-reads-the-factorys-documentation.html +30 -0
- package/dist/docs/docs/adr/0038-where-adapters-live.html +30 -0
- package/dist/docs/docs/adr/0039-the-repos-license.html +30 -0
- package/dist/docs/docs/adr/0040-how-a-version-is-released.html +30 -0
- package/dist/docs/docs/adr/0041-who-opens-the-features-pull-request.html +30 -0
- package/dist/docs/docs/adr/0042-how-secrets-are-kept-out-of-committed-records.html +30 -0
- package/dist/docs/docs/getting-started.html +41 -0
- package/dist/docs/docs/github.html +30 -0
- package/dist/docs/docs/overlay.html +64 -0
- package/dist/docs/docs/pipeline.html +30 -0
- package/dist/docs/docs/recipes.html +74 -0
- package/dist/docs/fixtures/README.html +30 -0
- package/dist/docs/hashmap.json +1 -0
- package/dist/docs/index.html +57 -0
- package/dist/docs/packages/docs/README.html +32 -0
- package/dist/docs/packages/viewer/README.html +32 -0
- package/dist/docs/vp-icons.css +0 -0
- package/dist/viewer/assets/Heading-C5Va5XMQ.js +1 -0
- package/dist/viewer/assets/SelectionIndicator-DxHiKGW_.js +1 -0
- package/dist/viewer/assets/alert-BI2omIo2.js +1 -0
- package/dist/viewer/assets/attempt-Dunc67N6.js +1 -0
- package/dist/viewer/assets/card-IsZ2ZhSn.js +1 -0
- package/dist/viewer/assets/{chunk-WQQL4CDK-DSpW9ZO8.js → chunk-WQQL4CDK-Bd4bkond.js} +1 -1
- package/dist/viewer/assets/context-CzP3x3DO.js +7 -0
- package/dist/viewer/assets/{dagre-NK4GIZVX-BzzW8pOj.js → dagre-NK4GIZVX-Bhq8pl9Y.js} +1 -1
- package/dist/viewer/assets/{index-CnzUhLCJ.css → index-B90XVeY-.css} +1 -1
- package/dist/viewer/assets/index-tH-KNwJL.js +10 -0
- package/dist/viewer/assets/{mermaid.core-D1FXi6mg.js → mermaid.core-I426eCuN.js} +4 -4
- package/dist/viewer/assets/pipeline-Hw_7tocN.js +1 -0
- package/dist/viewer/assets/routes-BOl7_JgK.js +1 -0
- package/dist/viewer/assets/runs._runId-D4q1mLCt.js +6 -0
- package/dist/viewer/assets/runs._runId.index-B-woIhKA.js +1 -0
- package/dist/viewer/assets/runs._runId.machines-SkWqrTI6.js +2 -0
- package/dist/viewer/assets/runs._runId.sessions-DBVWEbLY.js +1 -0
- package/dist/viewer/assets/{stateDiagram-v2-A6IESKWZ-J9KnYRFT.js → stateDiagram-v2-A6IESKWZ-DUwIje_A.js} +1 -1
- package/dist/viewer/assets/surface-B6LupC_E.js +1 -0
- package/dist/viewer/assets/table-B8t5lQz5.js +1 -0
- package/dist/viewer/assets/useEvent-DXj38gmC.js +1 -0
- package/dist/viewer/assets/useToggleState-D_NUC1vr.js +2 -0
- package/dist/viewer/index.html +5 -5
- package/fixtures/starters/azure-devops/.factory/factory.config.ts +2 -7
- package/fixtures/starters/azure-devops/.factory/factory.lock.json +7 -8
- package/fixtures/starters/github/.factory/factory.config.ts +2 -0
- package/fixtures/starters/github/.factory/factory.lock.json +6 -7
- package/fixtures/starters/gitlab/.factory/factory.config.ts +9 -0
- package/fixtures/starters/gitlab/.factory/factory.lock.json +19 -0
- package/fixtures/starters/gitlab/.factory/slots/checks.command.md +1 -0
- package/fixtures/starters/gitlab/.factory/slots/context.sources.md +3 -0
- package/fixtures/starters/gitlab/.factory/slots/review.detectors.md +5 -0
- package/package.json +9 -7
- package/core/skills/pull-request/scripts/pr-drive.sh +0 -208
- package/dist/viewer/assets/Heading-Dm1Q0gV2.js +0 -1
- package/dist/viewer/assets/api-C4lMOGdC.js +0 -7
- package/dist/viewer/assets/attempt-lbW5voCR.js +0 -1
- package/dist/viewer/assets/card-CtJKot3P.js +0 -1
- package/dist/viewer/assets/context-DEB-Y3Iz.js +0 -1
- package/dist/viewer/assets/index-Co9KwXRI.js +0 -10
- package/dist/viewer/assets/jsx-runtime-CkXRJ162.js +0 -1
- package/dist/viewer/assets/pipeline-B-myvM6K.js +0 -1
- package/dist/viewer/assets/routes-BzvVN6y-.js +0 -1
- package/dist/viewer/assets/runs._runId-BVT2VH_w.js +0 -6
- package/dist/viewer/assets/runs._runId.index-C3bbzwAC.js +0 -1
- package/dist/viewer/assets/runs._runId.machines-Cj21KdLd.js +0 -2
- package/dist/viewer/assets/runs._runId.sessions-Tg6Ou3_9.js +0 -1
- package/dist/viewer/assets/table-DzduWiYu.js +0 -1
- package/dist/viewer/assets/useEvent-CtTfOmE7.js +0 -1
- package/dist/viewer/assets/useToggleState-DfzJwOaN.js +0 -2
- package/fixtures/starters/azure-devops/.factory/skills/pull-request/SKILL.md +0 -29
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./rolldown-runtime-WkwZ5CU-.js";import{n,t as r}from"./jsx-runtime-CkXRJ162.js";import{A as i,At as a,B as o,Ct as s,D as c,E as l,F as u,Gt as d,J as f,Kt as p,O as m,Ot as h,Q as g,Rt as _,Vt as v,Wt as y,_t as b,at as x,bt as S,ft as C,ht as w,ot as T,pt as E,q as D,ut as ee,wt as te,yt as O,z as ne}from"./api-C4lMOGdC.js";var k=e(n(),1),A=k.use,re=k.useLayoutEffect;function j(e){return e[e.length-1]}function M(e,t){return typeof e==`function`?e(t):e}var ie=Object.prototype.hasOwnProperty;function ae(e){for(let t in e)if(ie.call(e,t))return!0;return!1}var oe=()=>Object.create(null),se=(e,t)=>N(e,t,!0);function N(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(ce(e)&&ce(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&j(a)!==`${o-1}`||c&&j(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let l=0,u,d,f;if(i){for(;l<c&&(f=l,d=e[f],u=t[f],u=d===u?d:typeof d==`object`?N(d,u,n,r):u,u===d);l++);if(l===c&&o===c)return e}else{let i=o===c,p=!0;for(;l<c;l++){f=s[l],d=e[f];let o=t[f];u=d===o?d:typeof d==`object`?N(d,o,n,r):o,i&&=u===d&&(a[l]===f||ie.call(e,f)),p&&=Object.is(u,o),a[l]=u}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(p)return t}let p=i?s.fill(0):n?oe():{};for(let o=0;o<c;o++)f=i?o:s[o],i?(d=e[f],o>l&&(u=t[f],u=d===u?d:typeof d==`object`?N(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function ce(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function P(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!P(a,o,n,r))return!1}return!0}if(ce(e)&&ce(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!P(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!P(e[a],t[a],n,r)))return!1;return i===0}return!1}function le(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var ue=/[\x00-\x1f\x7f"<>`{}]/g;function de(e){return e.replace(ue,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function fe(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return de(t)}var pe=[`http:`,`https:`,`mailto:`,`tel:`];function me(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var he=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function ge(e,t){if(!e)return!1;if(he.test(e))return!0;let n=me(e);return n?!t.has(n):!1}function _e(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=fe(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=fe(r?e.slice(r):e)}return t}function ve(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function ye(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function be(){throw Error(`Invariant failed`)}function xe(e){return e.replace(/\/{2,}/g,`/`)}function Se(e){return e===`/`?e:e.replace(/^\/+/,``)}function F(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function Ce(e){return F(Se(e))}function we(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Te(e,t,n=`never`,r){if(t.includes(`//`)&&(t=xe(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=xe(e)),o=e.split(`/`);o.length>1&&j(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(j(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?xe(s):s)||`/`;return a&&r&&r.set(a,c),c}function Ee(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function De(e){return e==null||e===``}function Oe(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function ke(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&De(f)){if(c===`/`&&!d)continue;f=``}o+=c+Oe(s,f,r)+(d||``)}}return o+a||`/`}function Ae(e){return e?.isNotFound===!0}function je(){try{return sessionStorage}catch{return}}var Me=`tsr-scroll-restoration-v1_3`,Ne=je();function Pe(){try{return JSON.parse(Ne?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var Fe=Pe(),Ie=`data-scroll-restoration-id`,Le=e=>e.state.__TSR_key||e.href;function Re(e){let t=e.getAttribute(Ie);if(t)return`[${Ie}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var ze=!1,Be=`window`;function Ve(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function He(e){let t=new Set;for(let n of e){if(n===Be)continue;let e=Ve(n);e&&t.add(e)}return t}function Ue(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Le,a=new Set,o=e=>{let t=Fe[e]||={};for(let e of a)e===document?t[Be]={scrollX,scrollY}:e.isConnected&&(t[Re(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,ze=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{ze||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{Ne?.setItem(Me,JSON.stringify(Fe))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=Fe[d];if(e){let t=Fe[u];for(let n in e){if(n===Be){if(s)continue}else{let e=Ve(n);if(!e||s&&o&&(l??=He(o),l.has(e)))continue}t||=Fe[u]={},t[n]??=e[n]}}}ze=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=He(o));let t=e&&i&&c,s=r.e?Fe[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Be){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Ve(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{ze=!1}}))}function We(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function Ge(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Ke(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Ge(r):Array.isArray(t)?t.push(Ge(r)):n[e]=[t,Ge(r)]}return n}var qe=/^(?:\s|["[{\d-]|fa|nu|tr)/,Je=Xe(JSON.parse),Ye=Ze(JSON.stringify,JSON.parse);function Xe(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=Ke(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!qe.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function Ze(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!qe.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=We(e,r);return t?`?${t}`:``}}var Qe=`__root__`;function $e(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function et(e){return e instanceof Response&&!!e.options}function tt(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var I=4,nt=5;function rt(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function it(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function at(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=j(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=it(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=st(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.slice(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=st(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.slice(m,u));let h=p?.slice();if(!r)return h;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=st(r,nt);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=st(r,I);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,g&&(r.route=t)),[r,o,h]}function ot(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function st(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function ct(e,t){let n=st(),r=[];function i(e,t,n,a){let[o,s,c]=at(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(ot);t.masksTree=n,t.flatCache=tt(1e3)}function lt(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=pt(e,t.masksTree);return t.flatCache.set(e,r),r}function ut(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=st(),at(t,{from:e},1,o),i.singleCache.set(a,o)),pt(r,o,n)}function dt(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=pt(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=ht(a.route)),t.matchCache.set(r,a),a}function ft(e,t=!1){let n=st(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&be(),i[e.id]=e,o!==0&&e.path){let t=F(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=at(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(ot);return{processedTree:{segmentTree:n,singleCache:tt(1e3),matchCache:tt(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function pt(e,t,n=!1){let r=e.split(`/`),i=_t(e,r,t,n);if(!i)return null;let[a]=mt(e,r,i);return{route:i.node.route,rawParams:a}}function mt(e,t,n){let r=gt(n.node),i=n.node.data&&rt(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===I)break;if(u.kind===nt){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function ht(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function gt(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function _t(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!j(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!xt(l,n))continue;if(i.parse){if(!bt(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==I&&xt(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===I||i.kind===2)&&xt(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(bt(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&yt(f,o))return n;xt(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+vt(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+vt(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+vt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+vt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function vt(e,t){return 2**(e-t-1)}function yt(e,t){return e===2**(t-1)-1}function bt(e,t,n){let r,i;try{[r,i]=mt(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function xt(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===I)>(e.node.kind===I)||t.node.kind===I==(e.node.kind===I)&&t.node.depth>e.node.depth)))}function St(e,t,n){let r=Ce(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=xe(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Ct(n,s.input({url:e})),output:({url:e})=>s.output({url:wt(n,e)})}:s}function Ct(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function wt(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Tt(e){let t=e;return{get(){return t},set(e){t=M(e,t)}}}function Et(e){return{get(){return e()}}}function Dt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{ye(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var L=`__TSR_index`,Ot=`popstate`,kt=`beforeunload`,At=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function jt(e){let t=At.exec(e);return t?`/`+e.slice(t[0].length):e}function Mt(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
2
|
-
\r`.includes(e)?``:encodeURIComponent(e))),jt(e)}function Nt(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=It(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[L];i=Pt(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[L];i=Pt(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[L]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function Pt(e,t){let n=Lt();return{...t,key:n,__TSR_key:n,[L]:e}}function Ft(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>Mt(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>It(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Lt();t.history.replaceState({[L]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=It(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[L]-l.state[L],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Nt({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(kt,x,{capture:!0}),t.removeEventListener(Ot,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(kt,x,{capture:!0}),t.addEventListener(Ot,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function It(e,t){let n=Mt(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=Lt();t={[L]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function Lt(){return(Math.random()+1).toString(36).slice(7)}function Rt(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function zt(e){return e.pathname+e.search+e.hash}function Bt(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Vt(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Ht({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Ut(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function Wt(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var Gt=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:Ft()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&Ce(n)?St(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Dt(this.latestLocation,e),Ue(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=ft(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&ct(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:tt(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:_e(e),external:!1,searchStr:o,search:se(t?.search,i),hash:_e(r.slice(1)),state:N(t?.state,a)}}let o=Ct(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:_e(jt(o.pathname)),external:!!this.rewrite&&Rt(o,this.origin),searchStr:c,search:se(t?.search,s),hash:_e(o.hash.slice(1)),state:N(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=dt(F(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=It(n.href,{});n={...n,to:Ct(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=Te(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[F(c)],u=c.includes(`$`),d;if(l)d=l._branch??=ht(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??at(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=Xt(n.params,e),!ae(p))break;p===e&&(p=Object.assign(oe(),p));try{Object.assign(p,t(p))}catch{}}}p??=Xt(n.params,Zt(n.params,f)?o()[3]:Qt);let m=e.leaveParams?c:jt(_e(f?ke(c,f,p,this.pathParamsDecoder):c)),h=$t(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,Yt(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?en(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||Qt,v=this.options.stringifySearch(_),y=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,b=y?`#${y}`:``,x=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Qt,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=wt(this.rewrite,e);C=zt(e),Rt(n,t)?(w=n.href,T=!0):w=jt(zt(n))}else C=ve(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:T,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=lt(r.pathname,this.processedTree);if(t){let i=Object.assign(oe(),t.rawParams),{from:a,params:o,...s}=t.route,c=Xt(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return Kt(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=F(this.latestLocation.href)===F(n.href)&&P(Ht(n.state),Ht(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?me(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return Kt(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await zn(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Vt(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&Bt(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(he.test(n)||(r=me(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:Rt(e,this.origin)||(n=zt(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=on,this.preloadRoute=e=>Bn(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?Te(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=ut(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!P(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?P(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=Ee(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Ye,parseSearch:e.parseSearch??Je,protocolAllowlist:e.protocolAllowlist??pe}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=at(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:F(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?tn(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=Yt(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof qt||(r=new qt(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let g=oe(),_=i._interpolation?ke(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,v=i.id+_+h,y=u(i,n),b=this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(g,d);let x;if(!b)try{nn(i,d)}catch(e){if(x=Ae(e)||et(e)?e:new Jt(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:se(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=Bt(i)?`pending`:`success`;C={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:_,updatedAt:Date.now(),search:y?se(y.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:x,context:{},abortController:t?._controller??new AbortController,cause:S,loaderDeps:y?N(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let w=s===i.id;C._notFound&&!w&&(C.error=void 0),C._notFound=w,c[n]=C}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?se(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=j(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=j(a),c={...e.search};for(let e of a)try{Object.assign(c,Yt(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{nn(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function Kt(e,t,{replace:n,ignoreBlocker:r}){if(!ge(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var qt=class extends Error{},Jt=class extends Error{};function Yt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new qt(`Async validation not supported`);if(n.issues)throw new qt(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Xt(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function Zt(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!ie.call(e,t[1]))}var Qt=Object.freeze({});function $t(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=Yt(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function en(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=M(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function tn(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Qe}function nn(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function rn(e,t){return e.options[t]?.preload?.()}function an(e,t){let n=rn(e,`component`),r=rn(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function on(e,t,n){let r=()=>t===!1?void 0:t?rn(e,t):an(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function sn(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function cn(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}var R=0,z=1,ln=2,B=3,V=[4];function un(e){return typeof e[0]==`number`}function H(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function U(e,t){return e.routesById[t.routeId]}function dn(e,t,n){return et(e)?[B,e]:Ae(e)?(e.routeId||=n,[ln,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[z,e]):[R,e]}function fn(e,t){let n=dn(t,!0,e.id);if(n[0]!==z)return n;try{e.options.onError?.(n[1])}catch(t){n=dn(t,!0,e.id)}return n}function pn(e,t,n,r,i){return i[0].signal.aborted?V:En(e,t,n,fn(n,r),i)}async function mn(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=U(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return W(e,r),[i,pn(e,t,u,a,n)]}if(c.aborted)return[i,V];let p=r.paramsError??r.searchError;if(p!==void 0)return W(e,r),[i,pn(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{_n(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?H(a,c):a);if(c.aborted)return[i,V];let s=En(e,t,u,dn(o,!1,u.id),n);if(s[0]!==R)return W(e,r),[i,s];r.context={...r.context,...o}}catch(a){return W(e,r),[i,pn(e,t,u,a,n)]}finally{r.status=h,_n(e,r,!1,n[0])}}i()}function hn(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function W(e,t){let n=t._flight;t._flight=void 0,hn(e,t,n)?.abort()}function G(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=hn(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function gn(e){for(let t of e){let e=t._flight;e&&e[2]++}}function _n(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function vn(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function yn(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return V;if(!i)return[R,void 0];let l=n._flight;_n(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(vn(e,t,n,r,s,a,!!o[3]))).then(e=>dn(e,!1,r.id),e=>dn(e,!0,r.id)).then(t=>(t[0]!==R&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===z&&l[2]?fn(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],En(e,t,r,await H(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return W(e,n),V}finally{_n(e,n,!1,s)}}function bn(e,t,n){t[0]!==B&&(e.status=`success`,e.error=void 0,t[0]===R?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function xn(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&W(e,r)}function Sn(e,t){return t[0]===z||t[0]===ln?{...e,status:t[0]===z?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Cn(e,t,n,r,i,a,o){let s=t[1][n],c=U(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(vn(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=V)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,W(e,s),p=pn(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,hn(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?yn(e,t,s,c,g,i,a).then(t=>(bn(s,t,l),t[0]===R&&(m&&!a[0].signal.aborted&&xn(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[R,s.loaderData]),T=(async()=>{try{let e=on(c,void 0,C);e&&await H(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,pn(e,t,c,r,a)]}let r=await w;x&&r[0]===R&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Sn(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=yn(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,bn(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>Sn(E,e))}async function wn(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=U(e,t[n]);try{let e=on(i,!1);e&&await H(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function K(e,t){t[2]&&=(G(e,t[2].map(e=>e[3])),void 0)}async function Tn(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=B)throw[a,t];!i&&t[0]!==R&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===B)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function En(e,t,n,r,i,a){for(;r[0]===B;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[B,t]:[B,t,a]}return[B,o,n]}catch(e){r=a?[z,e]:fn(n,e),a=!0}}return r}async function Dn(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===ln?wn(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=B)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==R&&t[0]<B&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=B){let n=s[1];if(n[0]!==B||n[1].options.reloadDocument||n[2])return K(e,t),n;c=!0,s=[0,[z,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===z?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=U(e,u);try{await H(i?Promise.resolve().then(()=>on(m,l===z?`errorComponent`:`notFoundComponent`)):Promise.all([on(m),on(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return K(e,t),V}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),K(e,t),G(e,o),p()):u.status=`success`}return t}async function On(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=U(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await H(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function kn(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await wn(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=Cn(e,i,t,u,f,r,l)},m=await mn(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===ln){let t=await wn(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=B&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Dn(e,i,u,r[0],Tn(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Tn(i[2],void 0,void 0,h.then(e=>un(e)?0:sn(n).length,()=>0))),o=await h}catch(t){if(K(e,i),t===a&&a.aborted)return V;throw t}return un(o)?o:On(e,o,a,r[6]===n.length?r[6]:0)}function An(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=U(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>An(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function jn(e,t){let n=e._pending;e._tx!==t&&e._tx?.[3].some(e=>e.id===n?.[1])||(clearTimeout(n?.[3]),e._pending=void 0)}async function Mn(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!sn(t[3]).some(e=>e.id===n[1]))return;let i;try{await H(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Nn(e,t){e._committed=t,e.stores.setMatches(t)}function Pn(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=sn(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=U(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=Ut(n);Nn(e,n),G(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),Wt(e,i,n,a,l,t)}async function Fn(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function In(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function Ln(e,t,n,r,i){let a=n.map(e=>({...e}));gn(a);for(let t of r)W(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Dn(e,o,r,t[0],i)}catch(t){throw G(e,a),t}if(un(s))G(e,a),s[0]===B&&e._tx===t&&e._committed===n&&await In(e,t,s);else if(await On(e,s,t[0].signal),e._tx!==t||e._committed!==n)G(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),W(e,n))}Nn(e,a),G(e,n,a)}}async function Rn(e,t,n,r,i,a){let o=await kn(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(un(o)){let n=o[0]===B&&e._tx===t;if((!n||o[1].options.reloadDocument)&&jn(e,t),G(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){jn(e,t);return}await In(e,t,o);return}let s=o[1];if(e._tx===t&&await Mn(e,t),e._tx!==t){jn(e,t),G(e,s),K(e,o);return}let c=t[2],l=Vt(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Mn(e,t),e._tx!==t){jn(e,t),G(e,s),K(e,o);return}let n=await e.startTransition(()=>{jn(e,t),Pn(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&Ln(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)):K(e,o)})}async function zn(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=Vt(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await Fn(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});gn(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){G(e,m),await Fn(e,n);return}e._preflight=void 0;let g,_=()=>Rn(e,y,f,()=>An(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>Fn(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&_n(e,t,!1)}n[0].abort(),G(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&An(e,y),g?.(_()),await y[5]):(G(e,y[3]),y[3]=[],g?.(),await Fn(e,y))}async function Bn(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),gn(a),o=(e._preloads??=new Map).set(i,a),s=await kn(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),G(e,a)),i.abort()}if(!un(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){Ae(e)||console.error(e);return}}}var Vn=`Error preloading route! ☝️`,Hn=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Qe:this.parentRoute||be();let r=n?Qe:t?.path;r&&r!==`/`&&(r=Se(r));let i=t?.id||r,a=n?Qe:xe((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:xe(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=F(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>$e({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Un=class extends Hn{constructor(e){super(e)}};function Wn(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{cn(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var Gn=k.createContext(void 0),Kn=k.createContext(void 0),qn=t((e=>{var t=n(),r=d();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Jn=t(((e,t)=>{t.exports=qn()}))();function Yn(e,t){return e===t}function Xn(e,t=e=>e,n){let r=n?.compare??Yn,i=(0,k.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,k.useCallback)(()=>e.get(),[e]);return(0,Jn.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var Zn={};function Qn(e,t){let n=k.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=N(n.current,i):i}}function q(e){let t=p(),n=k.useContext(e.from?Kn:Gn),r=e.from??n,i=t.stores.getMatchStore(r),a=Qn(e,t),o=Xn(i,e=>e?a(e):Zn);if(o!==Zn)return o;(e.shouldThrow??!0)&&be()}function $n(e){return q({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function er(e){let{select:t,...n}=e;return q({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function tr(e){return q({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function nr(e){return q({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function rr(e){let t=p();return k.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function ir(e){return q({...e,select:t=>e.select?e.select(t.context):t.context})}var ar=r();function or(...e){let t=k.useRef(e),n=t.current;return e.forEach((e,t)=>{P(n[t],e,!1,!0)||(n[t]=e)}),t.current}function sr(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(Vn)})}function cr(e,t){let n=typeof e==`string`&&me(e);if(n)return t.has(n)?e:null}function lr(e,t,n,r){let i=we(e.pathname,r),a=we(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!P(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function ur(e,t,n){let r=p(),i=k.useRef(null),a=k.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,onTouchStart:v}=e,[y,b,x]=or(e.search,e.params,o),S=k.useContext(Gn),C=(r.stores._linkScopes??={})[S]??=Wn(r,S),[w,T,E]=k.useMemo(()=>{let t=cr(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=C[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=vr(t,r,u),s=u||o&&!me(o)?lr(e,t,x,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,x?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,C,e.from,e.hash,e.href,s,y,b,e.state,e.mask,e.unsafeRelative,x,u]),[D,ee]=k.useSyncExternalStore(C[1],T,E||T),te=ee===void 0&&D,O=u||D===void 0,ne=k.useRef(!1),A=e.reloadDocument||te||O?!1:c??r.options.defaultPreload,re=l??r.options.defaultPreloadDelay??0,j=k.useCallback(e=>{let t=e?.isIntersecting;t??A===`intent`?re?i.t??=setTimeout(()=>{i.t=void 0,sr(r,w)},re):sr(r,w):t===!1&&gr(i)},[r,w,i,A,re]);k.useEffect(()=>{if(!A)return;A===`render`&&!ne.current&&(ne.current=!0,sr(r,w));let e=!0,t;return A===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&j(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),gr(i)}},[r,w,A,j,i]);let M=mr(e,n);if(M.ref=t?a:i,te)return M.href=te,M;let ie=t=>{let n=d??t.currentTarget.getAttribute(`target`);O||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),gr(i),r.navigate({...e,_fromLocation:w._fromLocation}))},ae=()=>{A===`intent`&&sr(r,w)},oe=()=>{A===`intent`&&gr(i)};return M.onClick=_r(f,ie),M.onBlur=_r(m,oe),M.onFocus=_r(h,j),M.onMouseEnter=_r(g,j),M.onMouseLeave=_r(_,oe),M.onTouchStart=_r(v,ae),hr(M,e,ee,D,O,n)}var dr={},fr={className:`active`},pr=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function mr(e,t){let n={};for(let r in e)pr.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function hr(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=M(n?o:s,{})??(n?fr:dr);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var gr=e=>{clearTimeout(e.t),e.t=void 0},_r=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function vr(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!ge(i,t.protocolAllowlist))return i}var yr=k.memo(k.forwardRef((e,t)=>{let n=e._asChild||`a`,r=ur(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return k.createElement(n,r,i)}),br);function br(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!pr.has(r)||!P(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var xr=class extends Hn{constructor(e){super(e),this.useMatch=e=>q({...e,from:this.id}),this.useRouteContext=e=>ir({...e,from:this.id}),this.useSearch=e=>nr({...e,from:this.id}),this.useParams=e=>tr({...e,from:this.id}),this.useLoaderDeps=e=>er({...e,from:this.id}),this.useLoaderData=e=>$n({...e,from:this.id}),this.useNavigate=()=>rr({from:this.fullPath}),this.Link=k.forwardRef((e,t)=>(0,ar.jsx)(yr,{ref:t,from:this.fullPath,...e}))}};function Sr(e){return new xr(e)}function Cr(){return e=>Tr(e)}var wr=class extends Un{constructor(e){super(e),this.useMatch=e=>q({...e,from:this.id}),this.useRouteContext=e=>ir({...e,from:this.id}),this.useSearch=e=>nr({...e,from:this.id}),this.useParams=e=>tr({...e,from:this.id}),this.useLoaderDeps=e=>er({...e,from:this.id}),this.useLoaderData=e=>$n({...e,from:this.id}),this.useNavigate=()=>rr({from:this.fullPath}),this.Link=k.forwardRef((e,t)=>(0,ar.jsx)(yr,{ref:t,from:this.fullPath,...e}))}};function Tr(e){return new wr(e)}function Er(e){return e=>{let t=Sr(e);return t.isRoot=!1,t}}function Dr(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(le(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(A)A(a());else throw a()}return k.createElement(r,e)};return o.preload=a,o}var Or=class{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if(typeof this.filter==`function`)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!w(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return w(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if(typeof this.filter==`function`?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if(typeof this.filter==`function`?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}};function kr(e,t,n,r){return S()?new Or(e,t,n,r):e.createTreeWalker(t,n,r)}typeof HTMLTemplateElement<`u`&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));var Ar=(0,k.createContext)(!1);function jr(e){if((0,k.useContext)(Ar))return k.createElement(k.Fragment,null,e.children);let t=k.createElement(Ar.Provider,{value:!0},e.children);return k.createElement(`template`,null,t)}function Mr(e){let t=(t,n)=>(0,k.useContext)(Ar)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,k.forwardRef)(t)}function Nr(){return(0,k.useContext)(Ar)}var Pr=(0,k.createContext)(null),Fr=7e3,Ir=null;function Lr(e,t=`assertive`,n=Fr){Ir?Ir.announce(e,t,n):(Ir=new Rr,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?Ir.announce(e,t,n):setTimeout(()=>{Ir?.isAttached()&&Ir?.announce(e,t,n)},100))}var Rr=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=Fr){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}};function zr(e,t){let{elementType:n=`button`,isDisabled:r,onPress:a,onPressStart:o,onPressEnd:s,onPressUp:c,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:p,href:m,target:h,rel:g,type:_=`button`}=e,v;v=n===`button`?{type:_,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?m:void 0,target:n===`a`?h:void 0,type:n===`input`?_:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?g:void 0};let{pressProps:y,isPressed:b}=i({onPressStart:o,onPressEnd:s,onPressChange:l,onPress:a,onPressUp:c,onClick:p,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:x}=u(e,t);f&&(x.tabIndex=r?-1:x.tabIndex);let S=E(x,y,C(e,{labelable:!0}));return{isPressed:b,buttonProps:E(v,S,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}var Br=(0,k.createContext)({}),Vr=Mr(function(e,t){[e,t]=D(e,t,Br);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=zr(e,t);i=Ur(i,r);let{focusProps:o,isFocused:s,isFocusVisible:l}=m(e),{hoverProps:u,isHovered:d}=c({...e,isDisabled:e.isDisabled||r}),p={isHovered:d,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:l,isDisabled:e.isDisabled||!1,isPending:r??!1},_=f({...e,values:p,defaultClassName:`react-aria-Button`}),v=h(i.id),y=h(),b=i[`aria-labelledby`];r&&(b?b=`${b} ${y}`:i[`aria-label`]&&(b=`${v} ${y}`));let x=(0,k.useRef)(r);(0,k.useEffect)(()=>{let e={"aria-labelledby":b||v};(!x.current&&s&&r||x.current&&s&&!r)&&Lr(e,`assertive`),x.current=r},[r,s,b,v]);let S=C(e,{global:!0});return delete S.onClick,k.createElement(g.button,{...E(S,_,i,o,u),type:i.type===`submit`&&r?`button`:i.type,id:v,ref:t,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":d||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":l||void 0},k.createElement(Pr.Provider,{value:{id:y}},_.children))}),Hr=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Ur(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!Hr.test(t)&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}var Wr=k.createContext(null),Gr=`react-aria-focus-scope-restore`,J=null;function Kr(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=(0,k.useRef)(null),c=(0,k.useRef)(null),l=(0,k.useRef)([]),{parentNode:u}=(0,k.useContext)(Wr)||{},d=(0,k.useMemo)(()=>new fi({scopeRef:l}),[l]);a(()=>{let e=u||$.root;if($.getTreeNode(e.scopeRef)&&J&&!ti(J,e.scopeRef)){let t=$.getTreeNode(J);t&&(e=t)}e.addChild(d),$.addNode(d)},[d,u]),a(()=>{let e=$.getTreeNode(l);e&&(e.contain=!!n)},[n]),a(()=>{let e=o.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==c.current;)t.push(e),e.addEventListener(Gr,n),e=e.nextSibling;return l.current=t,()=>{for(let e of t)e.removeEventListener(Gr,n)}},[t]),ai(l,r,n),Qr(l,n),si(l,r,n),ii(l,i),(0,k.useEffect)(()=>{let e=b(s(l.current?l.current[0]:void 0)),t=null;if(Y(e,l.current)){for(let n of $.traverse())n.scopeRef&&Y(e,n.scopeRef.current)&&(t=n);t===$.getTreeNode(l)&&(J=t.scopeRef)}},[l]),a(()=>()=>{let e=$.getTreeNode(l)?.parent?.scopeRef??null;l!==J&&!ti(l,J)||e&&!$.getTreeNode(e)||(J=e),$.removeTreeNode(l)},[l]);let f=(0,k.useMemo)(()=>qr(l),[]),p=(0,k.useMemo)(()=>({focusManager:f,parentNode:d}),[d,f]);return k.createElement(Wr.Provider,{value:p},k.createElement(`span`,{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,k.createElement(`span`,{"data-focus-scope-end":!0,hidden:!0,ref:c}))}function qr(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,c=r||b(s(n[0]??void 0)),l=n[0].previousElementSibling,u=Q(Jr(n),{tabbable:i,accept:o},n);u.currentNode=Y(c,n)?c:l;let d=u.nextNode();return!d&&a&&(u.currentNode=l,d=u.nextNode()),d&&Z(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,c=r||b(s(n[0]??void 0)),l=n[n.length-1].nextElementSibling,u=Q(Jr(n),{tabbable:i,accept:o},n);u.currentNode=Y(c,n)?c:l;let d=u.previousNode();return!d&&a&&(u.currentNode=l,d=u.previousNode()),d&&Z(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Q(Jr(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&Z(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Q(Jr(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&Z(o,!0),o}}}function Jr(e){return e[0].parentElement}function Yr(e){let t=$.getTreeNode(J);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Xr(e){if(!e.form)return Array.from(s(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=te(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}function Zr(e){if(e.checked)return!0;let t=Xr(e);return t.length>0&&!t.some(e=>e.checked)}function Qr(e,t){let n=(0,k.useRef)(void 0),r=(0,k.useRef)(void 0);a(()=>{let i=e.current;if(!t){r.current&&=(cancelAnimationFrame(r.current),void 0);return}let a=s(i?i[0]:void 0),c=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Yr(e)||t.isComposing)return;let n=b(a),r=e.current;if(!r||!Y(n,r))return;let i=Q(Jr(r),{tabbable:!0},r);if(!n)return;i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();o||=(i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,t.shiftKey?i.previousNode():i.nextNode()),t.preventDefault(),o&&(Z(o,!0),o instanceof te(o).HTMLInputElement&&o.select())},l=t=>{(!J||ti(J,e))&&Y(O(t),e.current)?(J=e,n.current=O(t)):Yr(e)&&!X(O(t),e)?n.current?Z(n.current):J&&J.current&&ri(J.current):Yr(e)&&(n.current=O(t))},u=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let r=o(),i=(r===`virtual`||r===null)&&v()&&_(),s=b(a);if(!i&&s&&Yr(e)&&!X(s,e)){J=e;let r=O(t);r&&r.isConnected?(n.current=r,Z(n.current)):J.current&&ri(J.current)}})};return a.addEventListener(`keydown`,c,!1),a.addEventListener(`focusin`,l,!1),i?.forEach(e=>e.addEventListener(`focusin`,l,!1)),i?.forEach(e=>e.addEventListener(`focusout`,u,!1)),()=>{a.removeEventListener(`keydown`,c,!1),a.removeEventListener(`focusin`,l,!1),i?.forEach(e=>e.removeEventListener(`focusin`,l,!1)),i?.forEach(e=>e.removeEventListener(`focusout`,u,!1))}},[e,t]),a(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function $r(e){return X(e)}function Y(e,t){return!e||!t?!1:t.some(t=>w(t,e))}function X(e,t=null){if(e instanceof Element&&e.closest(`[data-react-aria-top-layer]`))return!0;for(let{scopeRef:n}of $.traverse($.getTreeNode(t)))if(n&&Y(e,n.current))return!0;return!1}function ei(e){return X(e,J)}function ti(e,t){let n=$.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Z(e,t=!1){if(e!=null&&!t)try{ne(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ni(e,t=!0){let n=e[0].previousElementSibling,r=Jr(e),i=Q(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=Jr(e),i=Q(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function ri(e,t=!0){Z(ni(e,t))}function ii(e,t){let n=k.useRef(t);(0,k.useEffect)(()=>{if(n.current){J=e;let t=s(e.current?e.current[0]:void 0);!Y(b(t),J.current)&&e.current&&ri(e.current)}n.current=!1},[e])}function ai(e,t,n){a(()=>{if(t||n)return;let r=e.current,i=s(r?r[0]:void 0),a=t=>{let n=O(t);Y(n,e.current)?J=e:$r(n)||(J=null)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,t,n])}function oi(e){let t=$.getTreeNode(J);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function si(e,t,n){let r=(0,k.useRef)(typeof document<`u`?b(s(e.current?e.current[0]:void 0)):null);a(()=>{let r=e.current,i=s(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!J||ti(J,e))&&Y(b(i),e.current)&&(J=e)};return i.addEventListener(`focusin`,a,!1),r?.forEach(e=>e.addEventListener(`focusin`,a,!1)),()=>{i.removeEventListener(`focusin`,a,!1),r?.forEach(e=>e.removeEventListener(`focusin`,a,!1))}},[e,n]),a(()=>{let r=s(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if(t.key!==`Tab`||t.altKey||t.ctrlKey||t.metaKey||!Yr(e)||t.isComposing)return;let n=r.activeElement;if(!X(n,e)||!oi(e))return;let i=$.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,o=Q(r.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==r.body||(a=void 0,i.nodeToRestore=void 0),(!s||!X(s,e))&&a){o.currentNode=a;do s=t.shiftKey?o.previousNode():o.nextNode();while(X(s,e));t.preventDefault(),t.stopPropagation(),s?Z(s,!0):$r(a)?Z(a,!0):n.blur()}};return n||r.addEventListener(`keydown`,i,!0),()=>{n||r.removeEventListener(`keydown`,i,!0)}},[e,t,n]),a(()=>{let n=s(e.current?e.current[0]:void 0);if(!t)return;let i=$.getTreeNode(e);if(i)return i.nodeToRestore=r.current??void 0,()=>{let r=$.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,a=b(n);if(t&&i&&(a&&X(a,e)||a===n.body&&oi(e))){let t=$.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){ci(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&$.getTreeNode(n.scopeRef)){let e=ni(n.scopeRef.current,!0);if(e){ci(e);return}}n=n.parent}}})}}},[e,t])}function ci(e){e.dispatchEvent(new CustomEvent(Gr,{bubbles:!0,cancelable:!0}))&&Z(e)}function Q(e,t,n){let r=t?.tabbable?T:x,i=e?.nodeType===Node.ELEMENT_NODE?e:null,a=s(i),o=kr(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return w(t?.from,e)||t?.tabbable&&e.tagName===`INPUT`&&e.getAttribute(`type`)===`radio`&&(!Zr(e)||o.currentNode.tagName===`INPUT`&&o.currentNode.type===`radio`&&o.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:r(e)&&(!n||Y(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function li(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:c=t.accept}=n,l=i||b(s(r)),u=Q(r,{tabbable:a,accept:c});w(r,l)&&(u.currentNode=l);let d=u.nextNode();return!d&&o&&(u.currentNode=r,d=u.nextNode()),d&&Z(d,!0),d},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:c=t.accept}=n,l=i||b(s(r)),u=Q(r,{tabbable:a,accept:c});if(w(r,l))u.currentNode=l;else{let e=ui(u);return e&&Z(e,!0),e??null}let d=u.previousNode();if(!d&&o){u.currentNode=r;let e=ui(u);if(!e)return null;d=e}return d&&Z(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Q(r,{tabbable:i,accept:a}).nextNode();return o&&Z(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=ui(Q(r,{tabbable:i,accept:a}));return o&&Z(o,!0),o??null}}}function ui(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}var di=class e{constructor(){this.fastMap=new Map,this.root=new fi({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new fi({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&Y(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}},fi=class{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}},$=new di,pi=e(y(),1),mi=(0,k.createContext)(null);function hi(e){let t=(0,k.useRef)({});return k.createElement(mi.Provider,{value:t},e.children)}var gi=(0,k.forwardRef)(function(e,t){let{name:n,isVisible:r=!0,children:i,className:o,style:s,render:c,...l}=e,[u,d]=(0,k.useState)(r?`visible`:`hidden`),p=(0,k.useContext)(mi);if(!p)throw Error(`<SharedElement> must be rendered inside a <SharedElementTransition>`);r&&u===`hidden`&&d(`visible`),t=ee(t),a(()=>{let e=t.current,i=p.current,a=i[n],o=null;if(e&&r&&a){d(`visible`);let t=e.getAnimations(),r=a.style.map(([t,n])=>{let r=e.style[t];if(t===`translate`){let t=a.rect,n=e.getBoundingClientRect(),r=t.left-n?.left,i=t.top-n?.top;e.style.translate=`${r}px ${i}px`}else e.style[t]=n;return[t,r]});for(let n of e.getAnimations())t.includes(n)||n.cancel();o=requestAnimationFrame(()=>{o=null;for(let[t,n]of r)e.style[t]=n}),delete i[n]}else e&&r&&!a?(queueMicrotask(()=>(0,pi.flushSync)(()=>d(`entering`))),o=requestAnimationFrame(()=>{o=null,d(`visible`)})):e&&!r&&queueMicrotask(()=>{i[n]?(delete i[n],(0,pi.flushSync)(()=>d(`exiting`)),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>d(`hidden`)).catch(()=>{})):d(`hidden`)});return()=>{if(o!=null&&cancelAnimationFrame(o),e&&e.isConnected&&!e.hasAttribute(`data-exiting`)){let t=window.getComputedStyle(e);if(t.transitionProperty!==`none`){let r=t.transitionProperty.split(/\s*,\s*/);i[n]={rect:e.getBoundingClientRect(),style:r.map(e=>[e,t[e]])}}}}},[t,p,n,r]);let m=f({children:i,className:o,style:s,render:c,values:{isEntering:u===`entering`,isExiting:u===`exiting`}});return u===`hidden`?null:k.createElement(g.div,{...l,...m,ref:t,"data-entering":u===`entering`||void 0,"data-exiting":u===`exiting`||void 0})}),_i=(0,k.createContext)({isSelected:!1}),vi=(0,k.forwardRef)(function(e,t){[e,t]=D(e,t,_i);let{isSelected:n,...r}=e;return k.createElement(gi,{...r,ref:t,className:e.className||`react-aria-SelectionIndicator`,name:`SelectionIndicator`,isVisible:n})});function yi(e={}){let{isReadOnly:t}=e,[n,r]=l(e.isSelected,e.defaultSelected||!1,e.onChange),[i]=(0,k.useState)(n);function a(e){t||r(e)}function o(){t||r(!n)}return{isSelected:n,defaultSelected:e.defaultSelected??i,setSelected:a,toggle:o}}export{Ae as A,Gn as C,Et as D,Tt as E,ae as M,re as N,$e as O,Xn as S,Vt as T,Dr as _,ei as a,rr as b,li as c,zr as d,Lr as f,kr as g,Nr as h,hi as i,F as j,Qe as k,Br as l,jr as m,vi as n,Kr as o,Mr as p,_i as r,Q as s,yi as t,Vr as u,Er as v,Gt as w,Qn as x,Cr as y};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pull-request
|
|
3
|
-
description: Open the ticket's pull request on Azure DevOps, or update it, sync it with its base branch, and wait for its continuous integration to be green, fixing it when it is red, before the human review.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The ticket's change is validated and reviewed. Leave a pull request that is open, up to date with its base branch and green, for the team to review. The pull request is on Azure DevOps, and `az` is signed in, with the `azure-devops` extension. It finds the organization, the project and the repository from the `origin` remote.
|
|
8
|
-
|
|
9
|
-
1. Read `git status` and `git diff`. Group the change into atomic commits that each build: Conventional Commits, the module as scope, the tests with the code they test. Leave `.pipeline/` alone: the orchestrator commits the ticket's record.
|
|
10
|
-
2. Bring the request's `baseBranch` (the branch the ticket stacks on, when it has dependencies) into the branch: `git fetch origin`, then `git merge 'origin/<baseBranch>'`. Resolve every conflict so both sides' intent survives, and run the project's checks, under _Checks_ below. Never push to the base branch.
|
|
11
|
-
3. Push the branch: `git push -u origin HEAD`.
|
|
12
|
-
4. Write `title.md` in your `handoffDir`: the ticket's title, on one line. Write `pull-request.md` next to it: what the change does and why, with the ticket's path; how it is tested; and, from the last code review's handoff next to it, if any, the review findings left unfixed and each reviewer that reviewed fewer files than it was given, named as a gap in the review. The title starts with the ticket's key in the team's tracker, such as `SHOP-142` in Jira, when the ticket names one: the tracker links the pull request by it.
|
|
13
|
-
5. Find the pull request already open from the branch, as a run before this one may have opened it: `az repos pr list --source-branch '<branch>' --status active --query '[0].pullRequestId' -o tsv`. None: open it against the request's `baseBranch`, with the title of `title.md` and the body of `pull-request.md`, and keep the id it prints: `az repos pr create --source-branch '<branch>' --target-branch '<baseBranch>' --title "$(head -n 1 '<handoffDir>/title.md')" --description "$(cat '<handoffDir>/pull-request.md')" --query pullRequestId -o tsv`. Azure DevOps cuts a description at 4,000 characters: keep it under. One open: update its target and description: `az repos pr update --id <pull request id> --target-branch '<baseBranch>' --description "$(cat '<handoffDir>/pull-request.md')"`.
|
|
14
|
-
6. Wait for the checks of the pull request's last commit, the build policies included, in one shell command run with the longest timeout your shell tool allows (nine minutes at most), not one turn per read:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
for i in $(seq 18); do [ "$(az repos pr policy list --id <pull request id> --query "length([?status=='queued' || status=='running'])" -o tsv)" = 0 ] && break; sleep 30; done; az repos pr policy list --id <pull request id> --query '[].{name: configuration.type.displayName, status: status}' -o table
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Still `queued` or `running`: run it again, three times at most, then `blocked`, naming the policy that is still waiting. No policy at all: the target branch has no build policy, so nothing checked the change: `blocked`, naming the branch. A policy that ends rejected or broken is red (step 7), unless its cause is outside the code. All approved: `passed`.
|
|
21
|
-
7. Red: find the pipeline run of a failing check with `az pipelines runs list --branch refs/pull/<pull request id>/merge --top 5`. Read the run's failing steps, then their logs: `az devops invoke --area build --resource timeline --route-parameters project=<project> buildId=<run id>`, then `az devops invoke --area build --resource logs --route-parameters project=<project> buildId=<run id> logId=<the failing record's log id> --accept-media-type text/plain --out-file <scratch file>`. Read the error before changing anything: never run a check again hoping it passes. Fix the cause, not the symptom (no skipped test, no weakened assertion), run the project's checks, under _Checks_ below, commit, push, and wait again as in step 6, once.
|
|
22
|
-
|
|
23
|
-
Done when the checks of the pull request's last commit are green: `passed`. A check that fails for a reason outside the code, such as a missing secret or a runner that does not start: `blocked`, naming the check and the reason. Still red after your round of fixes: `failed` with `ci-red`. The failure goes into the ticket's committed record, so copy nothing from a log into it: give each failed check's name and state, and name the cause in your own words. A log line can carry a credential no filter catches.
|
|
24
|
-
|
|
25
|
-
## Checks
|
|
26
|
-
|
|
27
|
-
{{#slot "checks.command"}}
|
|
28
|
-
The check command documented in `{{harness.contextFile}}`: format, lint, type-check, tests.
|
|
29
|
-
{{/slot}}
|