openplanr 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/cli/commands/init-deterministic.d.ts.map +1 -1
- package/dist/cli/commands/init-deterministic.js +49 -6
- package/dist/cli/commands/init-deterministic.js.map +1 -1
- package/dist/dashboard/.vite/manifest.json +2 -2
- package/dist/dashboard/assets/{index-Bk8DyO_2.css → index-BU5fzjyz.css} +1 -1
- package/dist/dashboard/assets/index-G7ygVDGg.js +572 -0
- package/dist/dashboard/assets/index-G7ygVDGg.js.map +1 -0
- package/dist/dashboard/dashboard-manifest.json +14 -14
- package/dist/dashboard/index.html +2 -2
- package/dist/models/types.d.ts +0 -46
- package/dist/models/types.d.ts.map +1 -1
- package/dist/services/capability-map-service.d.ts +4 -0
- package/dist/services/capability-map-service.d.ts.map +1 -1
- package/dist/services/capability-map-service.js +7 -1
- package/dist/services/capability-map-service.js.map +1 -1
- package/dist/services/claude-plugin-service.d.ts +6 -1
- package/dist/services/claude-plugin-service.d.ts.map +1 -1
- package/dist/services/claude-plugin-service.js +54 -15
- package/dist/services/claude-plugin-service.js.map +1 -1
- package/dist/services/config-service.d.ts +24 -1
- package/dist/services/config-service.d.ts.map +1 -1
- package/dist/services/config-service.js +69 -2
- package/dist/services/config-service.js.map +1 -1
- package/dist/services/git-service.d.ts +5 -0
- package/dist/services/git-service.d.ts.map +1 -1
- package/dist/services/git-service.js +27 -0
- package/dist/services/git-service.js.map +1 -1
- package/dist/services/linear-pull-service.d.ts.map +1 -1
- package/dist/services/linear-pull-service.js +1 -2
- package/dist/services/linear-pull-service.js.map +1 -1
- package/dist/services/pipeline-package-service.d.ts +2 -0
- package/dist/services/pipeline-package-service.d.ts.map +1 -1
- package/dist/services/pipeline-package-service.js +2 -1
- package/dist/services/pipeline-package-service.js.map +1 -1
- package/dist/services/runtime-change-summary.d.ts.map +1 -1
- package/dist/services/runtime-change-summary.js +4 -0
- package/dist/services/runtime-change-summary.js.map +1 -1
- package/dist/services/runtime-manager-service.d.ts.map +1 -1
- package/dist/services/runtime-manager-service.js +14 -3
- package/dist/services/runtime-manager-service.js.map +1 -1
- package/dist/services/spec-service.d.ts.map +1 -1
- package/dist/services/spec-service.js +11 -22
- package/dist/services/spec-service.js.map +1 -1
- package/dist/services/upgrade-service.d.ts.map +1 -1
- package/dist/services/upgrade-service.js +3 -1
- package/dist/services/upgrade-service.js.map +1 -1
- package/dist/templates/rules/shared/capability-map.md.hbs +2 -2
- package/lib/host-packages/adapter-registry.json +5 -5
- package/lib/host-packages/capability-map.json +89 -29
- package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
- package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
- package/lib/host-packages/claude/openplanr/.openplanr-content.json +69 -37
- package/lib/host-packages/claude/openplanr/CONNECTORS.md +62 -0
- package/lib/host-packages/claude/openplanr/README.md +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs +259 -36
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +54 -54
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +259 -36
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +4 -4
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +43 -24
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +279 -58
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +50 -42
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +282 -146
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +949 -316
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +143 -87
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +930 -183
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +17 -15
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +375 -191
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +140 -105
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +23 -23
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +4 -4
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +259 -36
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +4 -4
- package/lib/host-packages/claude/openplanr/skills/connect/SKILL.md +60 -0
- package/lib/host-packages/claude/openplanr/skills/connect/references/connectors.md +62 -0
- package/lib/host-packages/claude/openplanr/skills/openplanr/SKILL.md +4 -0
- package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +4 -1
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/planning-ids.mjs +49 -3
- package/lib/host-packages/claude/openplanr/skills/share/SKILL.md +87 -0
- package/lib/host-packages/claude/openplanr/skills/share/references/connectors.md +62 -0
- package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +6 -3
- package/lib/host-packages/claude/openplanr/skills/ship/scripts/discover-verification.mjs +2 -1
- package/lib/host-packages/claude/openplanr/skills/sprint/SKILL.md +15 -6
- package/lib/host-packages/claude/openplanr/skills/sprint/references/connectors.md +62 -0
- package/lib/host-packages/claude/openplanr/skills/sprint/references/tracker-connections.md +9 -13
- package/lib/host-packages/claude/openplanr/skills/status/SKILL.md +14 -3
- package/lib/host-packages/claude/openplanr/skills/status/references/connectors.md +62 -0
- package/lib/host-packages/claude/openplanr/skills/status/references/tracker-connections.md +9 -13
- package/lib/host-packages/claude/openplanr/skills/sync/SKILL.md +25 -10
- package/lib/host-packages/claude/openplanr/skills/sync/references/connectors.md +62 -0
- package/lib/host-packages/claude/openplanr/skills/sync/references/tracker-connections.md +9 -13
- package/lib/host-packages/cursor/openplanr/.openplanr-content.json +68 -36
- package/lib/host-packages/cursor/openplanr/CONNECTORS.md +62 -0
- package/lib/host-packages/cursor/openplanr/manifest.json +4 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-connect/references/connectors.md +62 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-connect.mdc +58 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-openplanr.mdc +4 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/planning-ids.mjs +49 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +4 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-share/references/connectors.md +62 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-share.mdc +85 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-ship/scripts/discover-verification.mjs +2 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +6 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-sprint/references/connectors.md +62 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-sprint/references/tracker-connections.md +9 -13
- package/lib/host-packages/cursor/openplanr/rules/planr-sprint.mdc +15 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-status/references/connectors.md +62 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-status/references/tracker-connections.md +9 -13
- package/lib/host-packages/cursor/openplanr/rules/planr-status.mdc +14 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-sync/references/connectors.md +62 -0
- package/lib/host-packages/cursor/openplanr/rules/planr-sync/references/tracker-connections.md +9 -13
- package/lib/host-packages/cursor/openplanr/rules/planr-sync.mdc +25 -10
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs +259 -36
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +54 -54
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +259 -36
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +4 -4
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +43 -24
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +279 -58
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +50 -42
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +282 -146
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +949 -316
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +143 -87
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +930 -183
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +17 -15
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +375 -191
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +140 -105
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +23 -23
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +4 -4
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +259 -36
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +4 -4
- package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
- package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
- package/lib/host-packages/openai/openplanr/.openplanr-content.json +87 -39
- package/lib/host-packages/openai/openplanr/CONNECTORS.md +62 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs +259 -36
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +54 -54
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +259 -36
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +4 -4
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +43 -24
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +279 -58
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +50 -42
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +282 -146
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +949 -316
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +143 -87
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +930 -183
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +17 -15
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +375 -191
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +140 -105
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +23 -23
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +4 -4
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +259 -36
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +4 -4
- package/lib/host-packages/openai/openplanr/skills/connect/SKILL.md +59 -0
- package/lib/host-packages/openai/openplanr/skills/connect/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/connect/openplanr.skill.json +37 -0
- package/lib/host-packages/openai/openplanr/skills/connect/references/connectors.md +62 -0
- package/lib/host-packages/openai/openplanr/skills/openplanr/SKILL.md +4 -0
- package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +4 -1
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/planning-ids.mjs +49 -3
- package/lib/host-packages/openai/openplanr/skills/share/SKILL.md +86 -0
- package/lib/host-packages/openai/openplanr/skills/share/agents/openai.yaml +6 -0
- package/lib/host-packages/openai/openplanr/skills/share/openplanr.skill.json +37 -0
- package/lib/host-packages/openai/openplanr/skills/share/references/connectors.md +62 -0
- package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +6 -3
- package/lib/host-packages/openai/openplanr/skills/ship/scripts/discover-verification.mjs +2 -1
- package/lib/host-packages/openai/openplanr/skills/sprint/SKILL.md +15 -6
- package/lib/host-packages/openai/openplanr/skills/sprint/openplanr.skill.json +11 -0
- package/lib/host-packages/openai/openplanr/skills/sprint/references/connectors.md +62 -0
- package/lib/host-packages/openai/openplanr/skills/sprint/references/tracker-connections.md +9 -13
- package/lib/host-packages/openai/openplanr/skills/status/SKILL.md +14 -3
- package/lib/host-packages/openai/openplanr/skills/status/openplanr.skill.json +11 -0
- package/lib/host-packages/openai/openplanr/skills/status/references/connectors.md +62 -0
- package/lib/host-packages/openai/openplanr/skills/status/references/tracker-connections.md +9 -13
- package/lib/host-packages/openai/openplanr/skills/sync/SKILL.md +25 -10
- package/lib/host-packages/openai/openplanr/skills/sync/openplanr.skill.json +11 -0
- package/lib/host-packages/openai/openplanr/skills/sync/references/connectors.md +62 -0
- package/lib/host-packages/openai/openplanr/skills/sync/references/tracker-connections.md +9 -13
- package/lib/json-schema.mjs +313 -36
- package/lib/schemas/v1.0.0/spec.schema.json +120 -0
- package/lib/schemas/v1.0.0/story.schema.json +95 -0
- package/lib/schemas/v1.0.0/task.schema.json +171 -0
- package/lib/schemas/v1.7.0/spec.schema.json +117 -0
- package/lib/schemas/v1.7.0/story.schema.json +107 -0
- package/lib/schemas/v1.7.0/task.schema.json +217 -0
- package/package.json +31 -31
- package/dist/dashboard/assets/index-n08LJ6bK.js +0 -557
- package/dist/dashboard/assets/index-n08LJ6bK.js.map +0 -1
- package/dist/services/audit-log-service.d.ts +0 -47
- package/dist/services/audit-log-service.d.ts.map +0 -1
- package/dist/services/audit-log-service.js +0 -211
- package/dist/services/audit-log-service.js.map +0 -1
- package/dist/services/delta-apply-service.d.ts +0 -16
- package/dist/services/delta-apply-service.d.ts.map +0 -1
- package/dist/services/delta-apply-service.js +0 -74
- package/dist/services/delta-apply-service.js.map +0 -1
- package/dist/services/evidence-verifier.d.ts +0 -71
- package/dist/services/evidence-verifier.d.ts.map +0 -1
- package/dist/services/evidence-verifier.js +0 -174
- package/dist/services/evidence-verifier.js.map +0 -1
- package/dist/services/revise-apply-service.d.ts +0 -55
- package/dist/services/revise-apply-service.d.ts.map +0 -1
- package/dist/services/revise-apply-service.js +0 -265
- package/dist/services/revise-apply-service.js.map +0 -1
- package/dist/services/revise-cache-service.d.ts +0 -46
- package/dist/services/revise-cache-service.d.ts.map +0 -1
- package/dist/services/revise-cache-service.js +0 -89
- package/dist/services/revise-cache-service.js.map +0 -1
- package/dist/services/revise-plan-service.d.ts +0 -38
- package/dist/services/revise-plan-service.d.ts.map +0 -1
- package/dist/services/revise-plan-service.js +0 -153
- package/dist/services/revise-plan-service.js.map +0 -1
- /package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-runtime-support-336900df0d39.mjs → design-runtime-support-e34c388a8e59.mjs} +0 -0
- /package/lib/host-packages/cursor/openplanr/runtime/design/scripts/{design-runtime-support-336900df0d39.mjs → design-runtime-support-e34c388a8e59.mjs} +0 -0
- /package/lib/host-packages/openai/openplanr/runtime/design/scripts/{design-runtime-support-336900df0d39.mjs → design-runtime-support-e34c388a8e59.mjs} +0 -0
|
@@ -1,557 +0,0 @@
|
|
|
1
|
-
var bS=Object.defineProperty;var pv=e=>{throw TypeError(e)};var wS=(e,t,a)=>t in e?bS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var Rd=(e,t,a)=>wS(e,typeof t!="symbol"?t+"":t,a),gh=(e,t,a)=>t.has(e)||pv("Cannot "+a);var K=(e,t,a)=>(gh(e,t,"read from private field"),a?a.call(e):t.get(e)),Me=(e,t,a)=>t.has(e)?pv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),Qe=(e,t,a,s)=>(gh(e,t,"write to private field"),s?s.call(e,a):t.set(e,a),a),rn=(e,t,a)=>(gh(e,t,"access private method"),a);var Dd=(e,t,a,s)=>({set _(c){Qe(e,t,c,a)},get _(){return K(e,t,s)}});function xS(e,t){for(var a=0;a<t.length;a++){const s=t[a];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in e)){const l=Object.getOwnPropertyDescriptor(s,c);l&&Object.defineProperty(e,c,l.get?l:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const l of c)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function a(c){const l={};return c.integrity&&(l.integrity=c.integrity),c.referrerPolicy&&(l.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?l.credentials="include":c.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(c){if(c.ep)return;c.ep=!0;const l=a(c);fetch(c.href,l)}})();function jS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ah={exports:{}},_c={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var hv;function QS(){if(hv)return _c;hv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(s,c,l){var u=null;if(l!==void 0&&(u=""+l),c.key!==void 0&&(u=""+c.key),"key"in c){l={};for(var f in c)f!=="key"&&(l[f]=c[f])}else l=c;return c=l.ref,{$$typeof:e,type:s,key:u,ref:c!==void 0?c:null,props:l}}return _c.Fragment=t,_c.jsx=a,_c.jsxs=a,_c}var gv;function IS(){return gv||(gv=1,Ah.exports=QS()),Ah.exports}var r=IS(),mh={exports:{}},Ce={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Av;function CS(){if(Av)return Ce;Av=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),E=Symbol.iterator;function b(T){return T===null||typeof T!="object"?null:(T=E&&T[E]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,j={};function I(T,X,se){this.props=T,this.context=X,this.refs=j,this.updater=se||w}I.prototype.isReactComponent={},I.prototype.setState=function(T,X){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,X,"setState")},I.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function C(){}C.prototype=I.prototype;function O(T,X,se){this.props=T,this.context=X,this.refs=j,this.updater=se||w}var S=O.prototype=new C;S.constructor=O,x(S,I.prototype),S.isPureReactComponent=!0;var _=Array.isArray;function k(){}var N={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function M(T,X,se){var de=se.ref;return{$$typeof:e,type:T,key:X,ref:de!==void 0?de:null,props:se}}function L(T,X){return M(T.type,X,T.props)}function Z(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function F(T){var X={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(se){return X[se]})}var oe=/\/+/g;function re(T,X){return typeof T=="object"&&T!==null&&T.key!=null?F(""+T.key):X.toString(36)}function pe(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(k,k):(T.status="pending",T.then(function(X){T.status==="pending"&&(T.status="fulfilled",T.value=X)},function(X){T.status==="pending"&&(T.status="rejected",T.reason=X)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function Y(T,X,se,de,ye){var Ee=typeof T;(Ee==="undefined"||Ee==="boolean")&&(T=null);var R=!1;if(T===null)R=!0;else switch(Ee){case"bigint":case"string":case"number":R=!0;break;case"object":switch(T.$$typeof){case e:case t:R=!0;break;case y:return R=T._init,Y(R(T._payload),X,se,de,ye)}}if(R)return ye=ye(T),R=de===""?"."+re(T,0):de,_(ye)?(se="",R!=null&&(se=R.replace(oe,"$&/")+"/"),Y(ye,X,se,"",function(Ae){return Ae})):ye!=null&&(Z(ye)&&(ye=L(ye,se+(ye.key==null||T&&T.key===ye.key?"":(""+ye.key).replace(oe,"$&/")+"/")+R)),X.push(ye)),1;R=0;var J=de===""?".":de+":";if(_(T))for(var ne=0;ne<T.length;ne++)de=T[ne],Ee=J+re(de,ne),R+=Y(de,X,se,Ee,ye);else if(ne=b(T),typeof ne=="function")for(T=ne.call(T),ne=0;!(de=T.next()).done;)de=de.value,Ee=J+re(de,ne++),R+=Y(de,X,se,Ee,ye);else if(Ee==="object"){if(typeof T.then=="function")return Y(pe(T),X,se,de,ye);throw X=String(T),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return R}function V(T,X,se){if(T==null)return T;var de=[],ye=0;return Y(T,de,"","",function(Ee){return X.call(se,Ee,ye++)}),de}function te(T){if(T._status===-1){var X=T._result;X=X(),X.then(function(se){(T._status===0||T._status===-1)&&(T._status=1,T._result=se)},function(se){(T._status===0||T._status===-1)&&(T._status=2,T._result=se)}),T._status===-1&&(T._status=0,T._result=X)}if(T._status===1)return T._result.default;throw T._result}var le=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},fe={map:V,forEach:function(T,X,se){V(T,function(){X.apply(this,arguments)},se)},count:function(T){var X=0;return V(T,function(){X++}),X},toArray:function(T){return V(T,function(X){return X})||[]},only:function(T){if(!Z(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Ce.Activity=m,Ce.Children=fe,Ce.Component=I,Ce.Fragment=a,Ce.Profiler=c,Ce.PureComponent=O,Ce.StrictMode=s,Ce.Suspense=h,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(T){return N.H.useMemoCache(T)}},Ce.cache=function(T){return function(){return T.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(T,X,se){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var de=x({},T.props),ye=T.key;if(X!=null)for(Ee in X.key!==void 0&&(ye=""+X.key),X)!z.call(X,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&X.ref===void 0||(de[Ee]=X[Ee]);var Ee=arguments.length-2;if(Ee===1)de.children=se;else if(1<Ee){for(var R=Array(Ee),J=0;J<Ee;J++)R[J]=arguments[J+2];de.children=R}return M(T.type,ye,de)},Ce.createContext=function(T){return T={$$typeof:u,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:l,_context:T},T},Ce.createElement=function(T,X,se){var de,ye={},Ee=null;if(X!=null)for(de in X.key!==void 0&&(Ee=""+X.key),X)z.call(X,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(ye[de]=X[de]);var R=arguments.length-2;if(R===1)ye.children=se;else if(1<R){for(var J=Array(R),ne=0;ne<R;ne++)J[ne]=arguments[ne+2];ye.children=J}if(T&&T.defaultProps)for(de in R=T.defaultProps,R)ye[de]===void 0&&(ye[de]=R[de]);return M(T,Ee,ye)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(T){return{$$typeof:f,render:T}},Ce.isValidElement=Z,Ce.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:te}},Ce.memo=function(T,X){return{$$typeof:A,type:T,compare:X===void 0?null:X}},Ce.startTransition=function(T){var X=N.T,se={};N.T=se;try{var de=T(),ye=N.S;ye!==null&&ye(se,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(k,le)}catch(Ee){le(Ee)}finally{X!==null&&se.types!==null&&(X.types=se.types),N.T=X}},Ce.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ce.use=function(T){return N.H.use(T)},Ce.useActionState=function(T,X,se){return N.H.useActionState(T,X,se)},Ce.useCallback=function(T,X){return N.H.useCallback(T,X)},Ce.useContext=function(T){return N.H.useContext(T)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(T,X){return N.H.useDeferredValue(T,X)},Ce.useEffect=function(T,X){return N.H.useEffect(T,X)},Ce.useEffectEvent=function(T){return N.H.useEffectEvent(T)},Ce.useId=function(){return N.H.useId()},Ce.useImperativeHandle=function(T,X,se){return N.H.useImperativeHandle(T,X,se)},Ce.useInsertionEffect=function(T,X){return N.H.useInsertionEffect(T,X)},Ce.useLayoutEffect=function(T,X){return N.H.useLayoutEffect(T,X)},Ce.useMemo=function(T,X){return N.H.useMemo(T,X)},Ce.useOptimistic=function(T,X){return N.H.useOptimistic(T,X)},Ce.useReducer=function(T,X,se){return N.H.useReducer(T,X,se)},Ce.useRef=function(T){return N.H.useRef(T)},Ce.useState=function(T){return N.H.useState(T)},Ce.useSyncExternalStore=function(T,X,se){return N.H.useSyncExternalStore(T,X,se)},Ce.useTransition=function(){return N.H.useTransition()},Ce.version="19.2.8",Ce}var mv;function iA(){return mv||(mv=1,mh.exports=CS()),mh.exports}var B=iA();const SS=jS(B),Co=xS({__proto__:null,default:SS},[B]);var yh={exports:{}},Nc={},Eh={exports:{}},Bh={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var yv;function OS(){return yv||(yv=1,(function(e){function t(Y,V){var te=Y.length;Y.push(V);e:for(;0<te;){var le=te-1>>>1,fe=Y[le];if(0<c(fe,V))Y[le]=V,Y[te]=fe,te=le;else break e}}function a(Y){return Y.length===0?null:Y[0]}function s(Y){if(Y.length===0)return null;var V=Y[0],te=Y.pop();if(te!==V){Y[0]=te;e:for(var le=0,fe=Y.length,T=fe>>>1;le<T;){var X=2*(le+1)-1,se=Y[X],de=X+1,ye=Y[de];if(0>c(se,te))de<fe&&0>c(ye,se)?(Y[le]=ye,Y[de]=te,le=de):(Y[le]=se,Y[X]=te,le=X);else if(de<fe&&0>c(ye,te))Y[le]=ye,Y[de]=te,le=de;else break e}}return V}function c(Y,V){var te=Y.sortIndex-V.sortIndex;return te!==0?te:Y.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],A=[],y=1,m=null,E=3,b=!1,w=!1,x=!1,j=!1,I=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function S(Y){for(var V=a(A);V!==null;){if(V.callback===null)s(A);else if(V.startTime<=Y)s(A),V.sortIndex=V.expirationTime,t(h,V);else break;V=a(A)}}function _(Y){if(x=!1,S(Y),!w)if(a(h)!==null)w=!0,k||(k=!0,F());else{var V=a(A);V!==null&&pe(_,V.startTime-Y)}}var k=!1,N=-1,z=5,M=-1;function L(){return j?!0:!(e.unstable_now()-M<z)}function Z(){if(j=!1,k){var Y=e.unstable_now();M=Y;var V=!0;try{e:{w=!1,x&&(x=!1,C(N),N=-1),b=!0;var te=E;try{t:{for(S(Y),m=a(h);m!==null&&!(m.expirationTime>Y&&L());){var le=m.callback;if(typeof le=="function"){m.callback=null,E=m.priorityLevel;var fe=le(m.expirationTime<=Y);if(Y=e.unstable_now(),typeof fe=="function"){m.callback=fe,S(Y),V=!0;break t}m===a(h)&&s(h),S(Y)}else s(h);m=a(h)}if(m!==null)V=!0;else{var T=a(A);T!==null&&pe(_,T.startTime-Y),V=!1}}break e}finally{m=null,E=te,b=!1}V=void 0}}finally{V?F():k=!1}}}var F;if(typeof O=="function")F=function(){O(Z)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,re=oe.port2;oe.port1.onmessage=Z,F=function(){re.postMessage(null)}}else F=function(){I(Z,0)};function pe(Y,V){N=I(function(){Y(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Y){Y.callback=null},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(Y){switch(E){case 1:case 2:case 3:var V=3;break;default:V=E}var te=E;E=V;try{return Y()}finally{E=te}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(Y,V){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var te=E;E=Y;try{return V()}finally{E=te}},e.unstable_scheduleCallback=function(Y,V,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,Y){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=te+fe,Y={id:y++,callback:V,priorityLevel:Y,startTime:te,expirationTime:fe,sortIndex:-1},te>le?(Y.sortIndex=te,t(A,Y),a(h)===null&&Y===a(A)&&(x?(C(N),N=-1):x=!0,pe(_,te-le))):(Y.sortIndex=fe,t(h,Y),w||b||(w=!0,k||(k=!0,F()))),Y},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(Y){var V=E;return function(){var te=E;E=V;try{return Y.apply(this,arguments)}finally{E=te}}}})(Bh)),Bh}var Ev;function _S(){return Ev||(Ev=1,Eh.exports=OS()),Eh.exports}var vh={exports:{}},ln={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Bv;function NS(){if(Bv)return ln;Bv=1;var e=iA();function t(h){var A="https://react.dev/errors/"+h;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)A+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},c=Symbol.for("react.portal");function l(h,A,y){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:m==null?null:""+m,children:h,containerInfo:A,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,A){if(h==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ln.createPortal=function(h,A){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(t(299));return l(h,A,null,y)},ln.flushSync=function(h){var A=u.T,y=s.p;try{if(u.T=null,s.p=2,h)return h()}finally{u.T=A,s.p=y,s.d.f()}},ln.preconnect=function(h,A){typeof h=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,s.d.C(h,A))},ln.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},ln.preinit=function(h,A){if(typeof h=="string"&&A&&typeof A.as=="string"){var y=A.as,m=f(y,A.crossOrigin),E=typeof A.integrity=="string"?A.integrity:void 0,b=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;y==="style"?s.d.S(h,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:m,integrity:E,fetchPriority:b}):y==="script"&&s.d.X(h,{crossOrigin:m,integrity:E,fetchPriority:b,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},ln.preinitModule=function(h,A){if(typeof h=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var y=f(A.as,A.crossOrigin);s.d.M(h,{crossOrigin:y,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&s.d.M(h)},ln.preload=function(h,A){if(typeof h=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var y=A.as,m=f(y,A.crossOrigin);s.d.L(h,y,{crossOrigin:m,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},ln.preloadModule=function(h,A){if(typeof h=="string")if(A){var y=f(A.as,A.crossOrigin);s.d.m(h,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:y,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else s.d.m(h)},ln.requestFormReset=function(h){s.d.r(h)},ln.unstable_batchedUpdates=function(h,A){return h(A)},ln.useFormState=function(h,A,y){return u.H.useFormState(h,A,y)},ln.useFormStatus=function(){return u.H.useHostTransitionStatus()},ln.version="19.2.8",ln}var vv;function Rw(){if(vv)return vh.exports;vv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vh.exports=NS(),vh.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var bv;function RS(){if(bv)return Nc;bv=1;var e=_S(),t=iA(),a=Rw();function s(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var i=n,o=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(o=i.return),n=i.return;while(n)}return i.tag===3?o:null}function u(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function h(n){if(l(n)!==n)throw Error(s(188))}function A(n){var i=n.alternate;if(!i){if(i=l(n),i===null)throw Error(s(188));return i!==n?null:n}for(var o=n,d=i;;){var p=o.return;if(p===null)break;var g=p.alternate;if(g===null){if(d=p.return,d!==null){o=d;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===o)return h(p),n;if(g===d)return h(p),i;g=g.sibling}throw Error(s(188))}if(o.return!==d.return)o=p,d=g;else{for(var v=!1,Q=p.child;Q;){if(Q===o){v=!0,o=p,d=g;break}if(Q===d){v=!0,d=p,o=g;break}Q=Q.sibling}if(!v){for(Q=g.child;Q;){if(Q===o){v=!0,o=g,d=p;break}if(Q===d){v=!0,d=g,o=p;break}Q=Q.sibling}if(!v)throw Error(s(189))}}if(o.alternate!==d)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?n:i}function y(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=y(n),i!==null)return i;n=n.sibling}return null}var m=Object.assign,E=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),O=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function F(n){return n===null||typeof n!="object"?null:(n=Z&&n[Z]||n["@@iterator"],typeof n=="function"?n:null)}var oe=Symbol.for("react.client.reference");function re(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===oe?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case x:return"Fragment";case I:return"Profiler";case j:return"StrictMode";case _:return"Suspense";case k:return"SuspenseList";case M:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case w:return"Portal";case O:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case S:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case N:return i=n.displayName||null,i!==null?i:re(n.type)||"Memo";case z:i=n._payload,n=n._init;try{return re(n(i))}catch{}}return null}var pe=Array.isArray,Y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],fe=-1;function T(n){return{current:n}}function X(n){0>fe||(n.current=le[fe],le[fe]=null,fe--)}function se(n,i){fe++,le[fe]=n.current,n.current=i}var de=T(null),ye=T(null),Ee=T(null),R=T(null);function J(n,i){switch(se(Ee,i),se(ye,n),se(de,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?kB(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=kB(i),n=MB(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}X(de),se(de,n)}function ne(){X(de),X(ye),X(Ee)}function Ae(n){n.memoizedState!==null&&se(R,n);var i=de.current,o=MB(i,n.type);i!==o&&(se(ye,n),se(de,o))}function we(n){ye.current===n&&(X(de),X(ye)),R.current===n&&(X(R),Ic._currentValue=te)}var xe,Ze;function Ie(n){if(xe===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);xe=i&&i[1]||"",Ze=-1<o.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+xe+n+Ze}var ce=!1;function De(n,i){if(!n||ce)return"";ce=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(i){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(q){var P=q}Reflect.construct(n,[],ie)}else{try{ie.call()}catch(q){P=q}n.call(ie.prototype)}}else{try{throw Error()}catch(q){P=q}(ie=n())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(q){if(q&&P&&typeof q.stack=="string")return[q.stack,P.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=d.DetermineComponentFrameRoot(),v=g[0],Q=g[1];if(v&&Q){var D=v.split(`
|
|
44
|
-
`),U=Q.split(`
|
|
45
|
-
`);for(p=d=0;d<D.length&&!D[d].includes("DetermineComponentFrameRoot");)d++;for(;p<U.length&&!U[p].includes("DetermineComponentFrameRoot");)p++;if(d===D.length||p===U.length)for(d=D.length-1,p=U.length-1;1<=d&&0<=p&&D[d]!==U[p];)p--;for(;1<=d&&0<=p;d--,p--)if(D[d]!==U[p]){if(d!==1||p!==1)do if(d--,p--,0>p||D[d]!==U[p]){var W=`
|
|
46
|
-
`+D[d].replace(" at new "," at ");return n.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",n.displayName)),W}while(1<=d&&0<=p);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Ie(o):""}function Oe(n,i){switch(n.tag){case 26:case 27:case 5:return Ie(n.type);case 16:return Ie("Lazy");case 13:return n.child!==i&&i!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return De(n.type,!1);case 11:return De(n.type.render,!1);case 1:return De(n.type,!0);case 31:return Ie("Activity");default:return""}}function xt(n){try{var i="",o=null;do i+=Oe(n,o),o=n,n=n.return;while(n);return i}catch(d){return`
|
|
47
|
-
Error generating stack: `+d.message+`
|
|
48
|
-
`+d.stack}}var mt=Object.prototype.hasOwnProperty,Xt=e.unstable_scheduleCallback,Fa=e.unstable_cancelCallback,Kn=e.unstable_shouldYield,_t=e.unstable_requestPaint,We=e.unstable_now,Go=e.unstable_getCurrentPriorityLevel,vr=e.unstable_ImmediatePriority,ps=e.unstable_UserBlockingPriority,Al=e.unstable_NormalPriority,a0=e.unstable_LowPriority,Am=e.unstable_IdlePriority,i0=e.log,r0=e.unstable_setDisableYieldValue,Yo=null,Sn=null;function Oi(n){if(typeof i0=="function"&&r0(n),Sn&&typeof Sn.setStrictMode=="function")try{Sn.setStrictMode(Yo,n)}catch{}}var On=Math.clz32?Math.clz32:c0,s0=Math.log,o0=Math.LN2;function c0(n){return n>>>=0,n===0?32:31-(s0(n)/o0|0)|0}var ml=256,yl=262144,El=4194304;function br(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Bl(n,i,o){var d=n.pendingLanes;if(d===0)return 0;var p=0,g=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var Q=d&134217727;return Q!==0?(d=Q&~g,d!==0?p=br(d):(v&=Q,v!==0?p=br(v):o||(o=Q&~n,o!==0&&(p=br(o))))):(Q=d&~g,Q!==0?p=br(Q):v!==0?p=br(v):o||(o=d&~n,o!==0&&(p=br(o)))),p===0?0:i!==0&&i!==p&&(i&g)===0&&(g=p&-p,o=i&-i,g>=o||g===32&&(o&4194048)!==0)?i:p}function Ho(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function l0(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mm(){var n=El;return El<<=1,(El&62914560)===0&&(El=4194304),n}function nf(n){for(var i=[],o=0;31>o;o++)i.push(n);return i}function zo(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function d0(n,i,o,d,p,g){var v=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var Q=n.entanglements,D=n.expirationTimes,U=n.hiddenUpdates;for(o=v&~o;0<o;){var W=31-On(o),ie=1<<W;Q[W]=0,D[W]=-1;var P=U[W];if(P!==null)for(U[W]=null,W=0;W<P.length;W++){var q=P[W];q!==null&&(q.lane&=-536870913)}o&=~ie}d!==0&&ym(n,d,0),g!==0&&p===0&&n.tag!==0&&(n.suspendedLanes|=g&~(v&~i))}function ym(n,i,o){n.pendingLanes|=i,n.suspendedLanes&=~i;var d=31-On(i);n.entangledLanes|=i,n.entanglements[d]=n.entanglements[d]|1073741824|o&261930}function Em(n,i){var o=n.entangledLanes|=i;for(n=n.entanglements;o;){var d=31-On(o),p=1<<d;p&i|n[d]&i&&(n[d]|=i),o&=~p}}function Bm(n,i){var o=i&-i;return o=(o&42)!==0?1:af(o),(o&(n.suspendedLanes|i))!==0?0:o}function af(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function rf(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function vm(){var n=V.p;return n!==0?n:(n=window.event,n===void 0?32:sv(n.type))}function bm(n,i){var o=V.p;try{return V.p=n,i()}finally{V.p=o}}var _i=Math.random().toString(36).slice(2),Wt="__reactFiber$"+_i,gn="__reactProps$"+_i,hs="__reactContainer$"+_i,sf="__reactEvents$"+_i,u0="__reactListeners$"+_i,f0="__reactHandles$"+_i,wm="__reactResources$"+_i,$o="__reactMarker$"+_i;function of(n){delete n[Wt],delete n[gn],delete n[sf],delete n[u0],delete n[f0]}function gs(n){var i=n[Wt];if(i)return i;for(var o=n.parentNode;o;){if(i=o[hs]||o[Wt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(n=LB(n);n!==null;){if(o=n[Wt])return o;n=LB(n)}return i}n=o,o=n.parentNode}return null}function As(n){if(n=n[Wt]||n[hs]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Uo(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(s(33))}function ms(n){var i=n[wm];return i||(i=n[wm]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Yt(n){n[$o]=!0}var xm=new Set,jm={};function wr(n,i){ys(n,i),ys(n+"Capture",i)}function ys(n,i){for(jm[n]=i,n=0;n<i.length;n++)xm.add(i[n])}var p0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Qm={},Im={};function h0(n){return mt.call(Im,n)?!0:mt.call(Qm,n)?!1:p0.test(n)?Im[n]=!0:(Qm[n]=!0,!1)}function vl(n,i,o){if(h0(i))if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var d=i.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+o)}}function bl(n,i,o){if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+o)}}function Va(n,i,o,d){if(d===null)n.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(i,o,""+d)}}function Jn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Cm(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function g0(n,i,o){var d=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var p=d.get,g=d.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return p.call(this)},set:function(v){o=""+v,g.call(this,v)}}),Object.defineProperty(n,i,{enumerable:d.enumerable}),{getValue:function(){return o},setValue:function(v){o=""+v},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function cf(n){if(!n._valueTracker){var i=Cm(n)?"checked":"value";n._valueTracker=g0(n,i,""+n[i])}}function Sm(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var o=i.getValue(),d="";return n&&(d=Cm(n)?n.checked?"true":"false":n.value),n=d,n!==o?(i.setValue(n),!0):!1}function wl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var A0=/[\n"\\]/g;function Zn(n){return n.replace(A0,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function lf(n,i,o,d,p,g,v,Q){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),i!=null?v==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Jn(i)):n.value!==""+Jn(i)&&(n.value=""+Jn(i)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),i!=null?df(n,v,Jn(i)):o!=null?df(n,v,Jn(o)):d!=null&&n.removeAttribute("value"),p==null&&g!=null&&(n.defaultChecked=!!g),p!=null&&(n.checked=p&&typeof p!="function"&&typeof p!="symbol"),Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"?n.name=""+Jn(Q):n.removeAttribute("name")}function Om(n,i,o,d,p,g,v,Q){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),i!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||i!=null)){cf(n);return}o=o!=null?""+Jn(o):"",i=i!=null?""+Jn(i):o,Q||i===n.value||(n.value=i),n.defaultValue=i}d=d??p,d=typeof d!="function"&&typeof d!="symbol"&&!!d,n.checked=Q?n.checked:!!d,n.defaultChecked=!!d,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),cf(n)}function df(n,i,o){i==="number"&&wl(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function Es(n,i,o,d){if(n=n.options,i){i={};for(var p=0;p<o.length;p++)i["$"+o[p]]=!0;for(o=0;o<n.length;o++)p=i.hasOwnProperty("$"+n[o].value),n[o].selected!==p&&(n[o].selected=p),p&&d&&(n[o].defaultSelected=!0)}else{for(o=""+Jn(o),i=null,p=0;p<n.length;p++){if(n[p].value===o){n[p].selected=!0,d&&(n[p].defaultSelected=!0);return}i!==null||n[p].disabled||(i=n[p])}i!==null&&(i.selected=!0)}}function _m(n,i,o){if(i!=null&&(i=""+Jn(i),i!==n.value&&(n.value=i),o==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=o!=null?""+Jn(o):""}function Nm(n,i,o,d){if(i==null){if(d!=null){if(o!=null)throw Error(s(92));if(pe(d)){if(1<d.length)throw Error(s(93));d=d[0]}o=d}o==null&&(o=""),i=o}o=Jn(i),n.defaultValue=o,d=n.textContent,d===o&&d!==""&&d!==null&&(n.value=d),cf(n)}function Bs(n,i){if(i){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=i;return}}n.textContent=i}var m0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Rm(n,i,o){var d=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?d?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":d?n.setProperty(i,o):typeof o!="number"||o===0||m0.has(i)?i==="float"?n.cssFloat=o:n[i]=(""+o).trim():n[i]=o+"px"}function Dm(n,i,o){if(i!=null&&typeof i!="object")throw Error(s(62));if(n=n.style,o!=null){for(var d in o)!o.hasOwnProperty(d)||i!=null&&i.hasOwnProperty(d)||(d.indexOf("--")===0?n.setProperty(d,""):d==="float"?n.cssFloat="":n[d]="");for(var p in i)d=i[p],i.hasOwnProperty(p)&&o[p]!==d&&Rm(n,p,d)}else for(var g in i)i.hasOwnProperty(g)&&Rm(n,g,i[g])}function uf(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var y0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),E0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xl(n){return E0.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function qa(){}var ff=null;function pf(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var vs=null,bs=null;function Tm(n){var i=As(n);if(i&&(n=i.stateNode)){var o=n[gn]||null;e:switch(n=i.stateNode,i.type){case"input":if(lf(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Zn(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var d=o[i];if(d!==n&&d.form===n.form){var p=d[gn]||null;if(!p)throw Error(s(90));lf(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<o.length;i++)d=o[i],d.form===n.form&&Sm(d)}break e;case"textarea":_m(n,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&Es(n,!!o.multiple,i,!1)}}}var hf=!1;function km(n,i,o){if(hf)return n(i,o);hf=!0;try{var d=n(i);return d}finally{if(hf=!1,(vs!==null||bs!==null)&&(ud(),vs&&(i=vs,n=bs,bs=vs=null,Tm(i),n)))for(i=0;i<n.length;i++)Tm(n[i])}}function Lo(n,i){var o=n.stateNode;if(o===null)return null;var d=o[gn]||null;if(d===null)return null;o=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(n=n.type,d=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!d;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(s(231,i,typeof o));return o}var Ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gf=!1;if(Ka)try{var Po={};Object.defineProperty(Po,"passive",{get:function(){gf=!0}}),window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{gf=!1}var Ni=null,Af=null,jl=null;function Mm(){if(jl)return jl;var n,i=Af,o=i.length,d,p="value"in Ni?Ni.value:Ni.textContent,g=p.length;for(n=0;n<o&&i[n]===p[n];n++);var v=o-n;for(d=1;d<=v&&i[o-d]===p[g-d];d++);return jl=p.slice(n,1<d?1-d:void 0)}function Ql(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Il(){return!0}function Gm(){return!1}function An(n){function i(o,d,p,g,v){this._reactName=o,this._targetInst=p,this.type=d,this.nativeEvent=g,this.target=v,this.currentTarget=null;for(var Q in n)n.hasOwnProperty(Q)&&(o=n[Q],this[Q]=o?o(g):g[Q]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Il:Gm,this.isPropagationStopped=Gm,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Il)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Il)},persist:function(){},isPersistent:Il}),i}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cl=An(xr),Fo=m({},xr,{view:0,detail:0}),B0=An(Fo),mf,yf,Vo,Sl=m({},Fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Vo&&(Vo&&n.type==="mousemove"?(mf=n.screenX-Vo.screenX,yf=n.screenY-Vo.screenY):yf=mf=0,Vo=n),mf)},movementY:function(n){return"movementY"in n?n.movementY:yf}}),Ym=An(Sl),v0=m({},Sl,{dataTransfer:0}),b0=An(v0),w0=m({},Fo,{relatedTarget:0}),Ef=An(w0),x0=m({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),j0=An(x0),Q0=m({},xr,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),I0=An(Q0),C0=m({},xr,{data:0}),Hm=An(C0),S0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N0(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=_0[n])?!!i[n]:!1}function Bf(){return N0}var R0=m({},Fo,{key:function(n){if(n.key){var i=S0[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Ql(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?O0[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bf,charCode:function(n){return n.type==="keypress"?Ql(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ql(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),D0=An(R0),T0=m({},Sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zm=An(T0),k0=m({},Fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bf}),M0=An(k0),G0=m({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y0=An(G0),H0=m({},Sl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),z0=An(H0),$0=m({},xr,{newState:0,oldState:0}),U0=An($0),L0=[9,13,27,32],vf=Ka&&"CompositionEvent"in window,qo=null;Ka&&"documentMode"in document&&(qo=document.documentMode);var P0=Ka&&"TextEvent"in window&&!qo,$m=Ka&&(!vf||qo&&8<qo&&11>=qo),Um=" ",Lm=!1;function Pm(n,i){switch(n){case"keyup":return L0.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ws=!1;function F0(n,i){switch(n){case"compositionend":return Fm(i);case"keypress":return i.which!==32?null:(Lm=!0,Um);case"textInput":return n=i.data,n===Um&&Lm?null:n;default:return null}}function V0(n,i){if(ws)return n==="compositionend"||!vf&&Pm(n,i)?(n=Mm(),jl=Af=Ni=null,ws=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return $m&&i.locale!=="ko"?null:i.data;default:return null}}var q0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vm(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!q0[n.type]:i==="textarea"}function qm(n,i,o,d){vs?bs?bs.push(d):bs=[d]:vs=d,i=yd(i,"onChange"),0<i.length&&(o=new Cl("onChange","change",null,o,d),n.push({event:o,listeners:i}))}var Ko=null,Jo=null;function K0(n){OB(n,0)}function Ol(n){var i=Uo(n);if(Sm(i))return n}function Km(n,i){if(n==="change")return i}var Jm=!1;if(Ka){var bf;if(Ka){var wf="oninput"in document;if(!wf){var Zm=document.createElement("div");Zm.setAttribute("oninput","return;"),wf=typeof Zm.oninput=="function"}bf=wf}else bf=!1;Jm=bf&&(!document.documentMode||9<document.documentMode)}function Xm(){Ko&&(Ko.detachEvent("onpropertychange",Wm),Jo=Ko=null)}function Wm(n){if(n.propertyName==="value"&&Ol(Jo)){var i=[];qm(i,Jo,n,pf(n)),km(K0,i)}}function J0(n,i,o){n==="focusin"?(Xm(),Ko=i,Jo=o,Ko.attachEvent("onpropertychange",Wm)):n==="focusout"&&Xm()}function Z0(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ol(Jo)}function X0(n,i){if(n==="click")return Ol(i)}function W0(n,i){if(n==="input"||n==="change")return Ol(i)}function eC(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var _n=typeof Object.is=="function"?Object.is:eC;function Zo(n,i){if(_n(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var o=Object.keys(n),d=Object.keys(i);if(o.length!==d.length)return!1;for(d=0;d<o.length;d++){var p=o[d];if(!mt.call(i,p)||!_n(n[p],i[p]))return!1}return!0}function ey(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function ty(n,i){var o=ey(n);n=0;for(var d;o;){if(o.nodeType===3){if(d=n+o.textContent.length,n<=i&&d>=i)return{node:o,offset:i-n};n=d}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=ey(o)}}function ny(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?ny(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function ay(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=wl(n.document);i instanceof n.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)n=i.contentWindow;else break;i=wl(n.document)}return i}function xf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var tC=Ka&&"documentMode"in document&&11>=document.documentMode,xs=null,jf=null,Xo=null,Qf=!1;function iy(n,i,o){var d=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Qf||xs==null||xs!==wl(d)||(d=xs,"selectionStart"in d&&xf(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Xo&&Zo(Xo,d)||(Xo=d,d=yd(jf,"onSelect"),0<d.length&&(i=new Cl("onSelect","select",null,i,o),n.push({event:i,listeners:d}),i.target=xs)))}function jr(n,i){var o={};return o[n.toLowerCase()]=i.toLowerCase(),o["Webkit"+n]="webkit"+i,o["Moz"+n]="moz"+i,o}var js={animationend:jr("Animation","AnimationEnd"),animationiteration:jr("Animation","AnimationIteration"),animationstart:jr("Animation","AnimationStart"),transitionrun:jr("Transition","TransitionRun"),transitionstart:jr("Transition","TransitionStart"),transitioncancel:jr("Transition","TransitionCancel"),transitionend:jr("Transition","TransitionEnd")},If={},ry={};Ka&&(ry=document.createElement("div").style,"AnimationEvent"in window||(delete js.animationend.animation,delete js.animationiteration.animation,delete js.animationstart.animation),"TransitionEvent"in window||delete js.transitionend.transition);function Qr(n){if(If[n])return If[n];if(!js[n])return n;var i=js[n],o;for(o in i)if(i.hasOwnProperty(o)&&o in ry)return If[n]=i[o];return n}var sy=Qr("animationend"),oy=Qr("animationiteration"),cy=Qr("animationstart"),nC=Qr("transitionrun"),aC=Qr("transitionstart"),iC=Qr("transitioncancel"),ly=Qr("transitionend"),dy=new Map,Cf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Cf.push("scrollEnd");function pa(n,i){dy.set(n,i),wr(i,[n])}var _l=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Xn=[],Qs=0,Sf=0;function Nl(){for(var n=Qs,i=Sf=Qs=0;i<n;){var o=Xn[i];Xn[i++]=null;var d=Xn[i];Xn[i++]=null;var p=Xn[i];Xn[i++]=null;var g=Xn[i];if(Xn[i++]=null,d!==null&&p!==null){var v=d.pending;v===null?p.next=p:(p.next=v.next,v.next=p),d.pending=p}g!==0&&uy(o,p,g)}}function Rl(n,i,o,d){Xn[Qs++]=n,Xn[Qs++]=i,Xn[Qs++]=o,Xn[Qs++]=d,Sf|=d,n.lanes|=d,n=n.alternate,n!==null&&(n.lanes|=d)}function Of(n,i,o,d){return Rl(n,i,o,d),Dl(n)}function Ir(n,i){return Rl(n,null,null,i),Dl(n)}function uy(n,i,o){n.lanes|=o;var d=n.alternate;d!==null&&(d.lanes|=o);for(var p=!1,g=n.return;g!==null;)g.childLanes|=o,d=g.alternate,d!==null&&(d.childLanes|=o),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(p=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,p&&i!==null&&(p=31-On(o),n=g.hiddenUpdates,d=n[p],d===null?n[p]=[i]:d.push(i),i.lane=o|536870912),g):null}function Dl(n){if(50<Bc)throw Bc=0,Yp=null,Error(s(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var Is={};function rC(n,i,o,d){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(n,i,o,d){return new rC(n,i,o,d)}function _f(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ja(n,i){var o=n.alternate;return o===null?(o=Nn(n.tag,i,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=i,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,i=n.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function fy(n,i){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,i=o.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Tl(n,i,o,d,p,g){var v=0;if(d=n,typeof n=="function")_f(n)&&(v=1);else if(typeof n=="string")v=dS(n,o,de.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case M:return n=Nn(31,o,i,p),n.elementType=M,n.lanes=g,n;case x:return Cr(o.children,p,g,i);case j:v=8,p|=24;break;case I:return n=Nn(12,o,i,p|2),n.elementType=I,n.lanes=g,n;case _:return n=Nn(13,o,i,p),n.elementType=_,n.lanes=g,n;case k:return n=Nn(19,o,i,p),n.elementType=k,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:v=10;break e;case C:v=9;break e;case S:v=11;break e;case N:v=14;break e;case z:v=16,d=null;break e}v=29,o=Error(s(130,n===null?"null":typeof n,"")),d=null}return i=Nn(v,o,i,p),i.elementType=n,i.type=d,i.lanes=g,i}function Cr(n,i,o,d){return n=Nn(7,n,d,i),n.lanes=o,n}function Nf(n,i,o){return n=Nn(6,n,null,i),n.lanes=o,n}function py(n){var i=Nn(18,null,null,0);return i.stateNode=n,i}function Rf(n,i,o){return i=Nn(4,n.children!==null?n.children:[],n.key,i),i.lanes=o,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var hy=new WeakMap;function Wn(n,i){if(typeof n=="object"&&n!==null){var o=hy.get(n);return o!==void 0?o:(i={value:n,source:i,stack:xt(i)},hy.set(n,i),i)}return{value:n,source:i,stack:xt(i)}}var Cs=[],Ss=0,kl=null,Wo=0,ea=[],ta=0,Ri=null,ja=1,Qa="";function Za(n,i){Cs[Ss++]=Wo,Cs[Ss++]=kl,kl=n,Wo=i}function gy(n,i,o){ea[ta++]=ja,ea[ta++]=Qa,ea[ta++]=Ri,Ri=n;var d=ja;n=Qa;var p=32-On(d)-1;d&=~(1<<p),o+=1;var g=32-On(i)+p;if(30<g){var v=p-p%5;g=(d&(1<<v)-1).toString(32),d>>=v,p-=v,ja=1<<32-On(i)+p|o<<p|d,Qa=g+n}else ja=1<<g|o<<p|d,Qa=n}function Df(n){n.return!==null&&(Za(n,1),gy(n,1,0))}function Tf(n){for(;n===kl;)kl=Cs[--Ss],Cs[Ss]=null,Wo=Cs[--Ss],Cs[Ss]=null;for(;n===Ri;)Ri=ea[--ta],ea[ta]=null,Qa=ea[--ta],ea[ta]=null,ja=ea[--ta],ea[ta]=null}function Ay(n,i){ea[ta++]=ja,ea[ta++]=Qa,ea[ta++]=Ri,ja=i.id,Qa=i.overflow,Ri=n}var en=null,lt=null,Ue=!1,Di=null,na=!1,kf=Error(s(519));function Ti(n){var i=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ec(Wn(i,n)),kf}function my(n){var i=n.stateNode,o=n.type,d=n.memoizedProps;switch(i[Wt]=n,i[gn]=d,o){case"dialog":ke("cancel",i),ke("close",i);break;case"iframe":case"object":case"embed":ke("load",i);break;case"video":case"audio":for(o=0;o<bc.length;o++)ke(bc[o],i);break;case"source":ke("error",i);break;case"img":case"image":case"link":ke("error",i),ke("load",i);break;case"details":ke("toggle",i);break;case"input":ke("invalid",i),Om(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":ke("invalid",i);break;case"textarea":ke("invalid",i),Nm(i,d.value,d.defaultValue,d.children)}o=d.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||d.suppressHydrationWarning===!0||DB(i.textContent,o)?(d.popover!=null&&(ke("beforetoggle",i),ke("toggle",i)),d.onScroll!=null&&ke("scroll",i),d.onScrollEnd!=null&&ke("scrollend",i),d.onClick!=null&&(i.onclick=qa),i=!0):i=!1,i||Ti(n,!0)}function yy(n){for(en=n.return;en;)switch(en.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:en=en.return}}function Os(n){if(n!==en)return!1;if(!Ue)return yy(n),Ue=!0,!1;var i=n.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||eh(n.type,n.memoizedProps)),o=!o),o&<&&Ti(n),yy(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));lt=UB(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));lt=UB(n)}else i===27?(i=lt,Ki(n.type)?(n=rh,rh=null,lt=n):lt=i):lt=en?ia(n.stateNode.nextSibling):null;return!0}function Sr(){lt=en=null,Ue=!1}function Mf(){var n=Di;return n!==null&&(Bn===null?Bn=n:Bn.push.apply(Bn,n),Di=null),n}function ec(n){Di===null?Di=[n]:Di.push(n)}var Gf=T(null),Or=null,Xa=null;function ki(n,i,o){se(Gf,i._currentValue),i._currentValue=o}function Wa(n){n._currentValue=Gf.current,X(Gf)}function Yf(n,i,o){for(;n!==null;){var d=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),n===o)break;n=n.return}}function Hf(n,i,o,d){var p=n.child;for(p!==null&&(p.return=n);p!==null;){var g=p.dependencies;if(g!==null){var v=p.child;g=g.firstContext;e:for(;g!==null;){var Q=g;g=p;for(var D=0;D<i.length;D++)if(Q.context===i[D]){g.lanes|=o,Q=g.alternate,Q!==null&&(Q.lanes|=o),Yf(g.return,o,n),d||(v=null);break e}g=Q.next}}else if(p.tag===18){if(v=p.return,v===null)throw Error(s(341));v.lanes|=o,g=v.alternate,g!==null&&(g.lanes|=o),Yf(v,o,n),v=null}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===n){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}}function _s(n,i,o,d){n=null;for(var p=i,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var v=p.alternate;if(v===null)throw Error(s(387));if(v=v.memoizedProps,v!==null){var Q=p.type;_n(p.pendingProps.value,v.value)||(n!==null?n.push(Q):n=[Q])}}else if(p===R.current){if(v=p.alternate,v===null)throw Error(s(387));v.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(n!==null?n.push(Ic):n=[Ic])}p=p.return}n!==null&&Hf(i,n,o,d),i.flags|=262144}function Ml(n){for(n=n.firstContext;n!==null;){if(!_n(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function _r(n){Or=n,Xa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function tn(n){return Ey(Or,n)}function Gl(n,i){return Or===null&&_r(n),Ey(n,i)}function Ey(n,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},Xa===null){if(n===null)throw Error(s(308));Xa=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else Xa=Xa.next=i;return o}var sC=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(o,d){n.push(d)}};this.abort=function(){i.aborted=!0,n.forEach(function(o){return o()})}},oC=e.unstable_scheduleCallback,cC=e.unstable_NormalPriority,jt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zf(){return{controller:new sC,data:new Map,refCount:0}}function tc(n){n.refCount--,n.refCount===0&&oC(cC,function(){n.controller.abort()})}var nc=null,$f=0,Ns=0,Rs=null;function lC(n,i){if(nc===null){var o=nc=[];$f=0,Ns=Pp(),Rs={status:"pending",value:void 0,then:function(d){o.push(d)}}}return $f++,i.then(By,By),i}function By(){if(--$f===0&&nc!==null){Rs!==null&&(Rs.status="fulfilled");var n=nc;nc=null,Ns=0,Rs=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function dC(n,i){var o=[],d={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return n.then(function(){d.status="fulfilled",d.value=i;for(var p=0;p<o.length;p++)(0,o[p])(i)},function(p){for(d.status="rejected",d.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),d}var vy=Y.S;Y.S=function(n,i){iB=We(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&lC(n,i),vy!==null&&vy(n,i)};var Nr=T(null);function Uf(){var n=Nr.current;return n!==null?n:ot.pooledCache}function Yl(n,i){i===null?se(Nr,Nr.current):se(Nr,i.pool)}function by(){var n=Uf();return n===null?null:{parent:jt._currentValue,pool:n}}var Ds=Error(s(460)),Lf=Error(s(474)),Hl=Error(s(542)),zl={then:function(){}};function wy(n){return n=n.status,n==="fulfilled"||n==="rejected"}function xy(n,i,o){switch(o=n[o],o===void 0?n.push(i):o!==i&&(i.then(qa,qa),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Qy(n),n;default:if(typeof i.status=="string")i.then(qa,qa);else{if(n=ot,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=i,n.status="pending",n.then(function(d){if(i.status==="pending"){var p=i;p.status="fulfilled",p.value=d}},function(d){if(i.status==="pending"){var p=i;p.status="rejected",p.reason=d}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Qy(n),n}throw Dr=i,Ds}}function Rr(n){try{var i=n._init;return i(n._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Dr=o,Ds):o}}var Dr=null;function jy(){if(Dr===null)throw Error(s(459));var n=Dr;return Dr=null,n}function Qy(n){if(n===Ds||n===Hl)throw Error(s(483))}var Ts=null,ac=0;function $l(n){var i=ac;return ac+=1,Ts===null&&(Ts=[]),xy(Ts,n,i)}function ic(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Ul(n,i){throw i.$$typeof===E?Error(s(525)):(n=Object.prototype.toString.call(i),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function Iy(n){function i(H,G){if(n){var $=H.deletions;$===null?(H.deletions=[G],H.flags|=16):$.push(G)}}function o(H,G){if(!n)return null;for(;G!==null;)i(H,G),G=G.sibling;return null}function d(H){for(var G=new Map;H!==null;)H.key!==null?G.set(H.key,H):G.set(H.index,H),H=H.sibling;return G}function p(H,G){return H=Ja(H,G),H.index=0,H.sibling=null,H}function g(H,G,$){return H.index=$,n?($=H.alternate,$!==null?($=$.index,$<G?(H.flags|=67108866,G):$):(H.flags|=67108866,G)):(H.flags|=1048576,G)}function v(H){return n&&H.alternate===null&&(H.flags|=67108866),H}function Q(H,G,$,ae){return G===null||G.tag!==6?(G=Nf($,H.mode,ae),G.return=H,G):(G=p(G,$),G.return=H,G)}function D(H,G,$,ae){var ve=$.type;return ve===x?W(H,G,$.props.children,ae,$.key):G!==null&&(G.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===z&&Rr(ve)===G.type)?(G=p(G,$.props),ic(G,$),G.return=H,G):(G=Tl($.type,$.key,$.props,null,H.mode,ae),ic(G,$),G.return=H,G)}function U(H,G,$,ae){return G===null||G.tag!==4||G.stateNode.containerInfo!==$.containerInfo||G.stateNode.implementation!==$.implementation?(G=Rf($,H.mode,ae),G.return=H,G):(G=p(G,$.children||[]),G.return=H,G)}function W(H,G,$,ae,ve){return G===null||G.tag!==7?(G=Cr($,H.mode,ae,ve),G.return=H,G):(G=p(G,$),G.return=H,G)}function ie(H,G,$){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=Nf(""+G,H.mode,$),G.return=H,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case b:return $=Tl(G.type,G.key,G.props,null,H.mode,$),ic($,G),$.return=H,$;case w:return G=Rf(G,H.mode,$),G.return=H,G;case z:return G=Rr(G),ie(H,G,$)}if(pe(G)||F(G))return G=Cr(G,H.mode,$,null),G.return=H,G;if(typeof G.then=="function")return ie(H,$l(G),$);if(G.$$typeof===O)return ie(H,Gl(H,G),$);Ul(H,G)}return null}function P(H,G,$,ae){var ve=G!==null?G.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return ve!==null?null:Q(H,G,""+$,ae);if(typeof $=="object"&&$!==null){switch($.$$typeof){case b:return $.key===ve?D(H,G,$,ae):null;case w:return $.key===ve?U(H,G,$,ae):null;case z:return $=Rr($),P(H,G,$,ae)}if(pe($)||F($))return ve!==null?null:W(H,G,$,ae,null);if(typeof $.then=="function")return P(H,G,$l($),ae);if($.$$typeof===O)return P(H,G,Gl(H,$),ae);Ul(H,$)}return null}function q(H,G,$,ae,ve){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return H=H.get($)||null,Q(G,H,""+ae,ve);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case b:return H=H.get(ae.key===null?$:ae.key)||null,D(G,H,ae,ve);case w:return H=H.get(ae.key===null?$:ae.key)||null,U(G,H,ae,ve);case z:return ae=Rr(ae),q(H,G,$,ae,ve)}if(pe(ae)||F(ae))return H=H.get($)||null,W(G,H,ae,ve,null);if(typeof ae.then=="function")return q(H,G,$,$l(ae),ve);if(ae.$$typeof===O)return q(H,G,$,Gl(G,ae),ve);Ul(G,ae)}return null}function ge(H,G,$,ae){for(var ve=null,qe=null,me=G,Re=G=0,ze=null;me!==null&&Re<$.length;Re++){me.index>Re?(ze=me,me=null):ze=me.sibling;var Ke=P(H,me,$[Re],ae);if(Ke===null){me===null&&(me=ze);break}n&&me&&Ke.alternate===null&&i(H,me),G=g(Ke,G,Re),qe===null?ve=Ke:qe.sibling=Ke,qe=Ke,me=ze}if(Re===$.length)return o(H,me),Ue&&Za(H,Re),ve;if(me===null){for(;Re<$.length;Re++)me=ie(H,$[Re],ae),me!==null&&(G=g(me,G,Re),qe===null?ve=me:qe.sibling=me,qe=me);return Ue&&Za(H,Re),ve}for(me=d(me);Re<$.length;Re++)ze=q(me,H,Re,$[Re],ae),ze!==null&&(n&&ze.alternate!==null&&me.delete(ze.key===null?Re:ze.key),G=g(ze,G,Re),qe===null?ve=ze:qe.sibling=ze,qe=ze);return n&&me.forEach(function(er){return i(H,er)}),Ue&&Za(H,Re),ve}function je(H,G,$,ae){if($==null)throw Error(s(151));for(var ve=null,qe=null,me=G,Re=G=0,ze=null,Ke=$.next();me!==null&&!Ke.done;Re++,Ke=$.next()){me.index>Re?(ze=me,me=null):ze=me.sibling;var er=P(H,me,Ke.value,ae);if(er===null){me===null&&(me=ze);break}n&&me&&er.alternate===null&&i(H,me),G=g(er,G,Re),qe===null?ve=er:qe.sibling=er,qe=er,me=ze}if(Ke.done)return o(H,me),Ue&&Za(H,Re),ve;if(me===null){for(;!Ke.done;Re++,Ke=$.next())Ke=ie(H,Ke.value,ae),Ke!==null&&(G=g(Ke,G,Re),qe===null?ve=Ke:qe.sibling=Ke,qe=Ke);return Ue&&Za(H,Re),ve}for(me=d(me);!Ke.done;Re++,Ke=$.next())Ke=q(me,H,Re,Ke.value,ae),Ke!==null&&(n&&Ke.alternate!==null&&me.delete(Ke.key===null?Re:Ke.key),G=g(Ke,G,Re),qe===null?ve=Ke:qe.sibling=Ke,qe=Ke);return n&&me.forEach(function(vS){return i(H,vS)}),Ue&&Za(H,Re),ve}function it(H,G,$,ae){if(typeof $=="object"&&$!==null&&$.type===x&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case b:e:{for(var ve=$.key;G!==null;){if(G.key===ve){if(ve=$.type,ve===x){if(G.tag===7){o(H,G.sibling),ae=p(G,$.props.children),ae.return=H,H=ae;break e}}else if(G.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===z&&Rr(ve)===G.type){o(H,G.sibling),ae=p(G,$.props),ic(ae,$),ae.return=H,H=ae;break e}o(H,G);break}else i(H,G);G=G.sibling}$.type===x?(ae=Cr($.props.children,H.mode,ae,$.key),ae.return=H,H=ae):(ae=Tl($.type,$.key,$.props,null,H.mode,ae),ic(ae,$),ae.return=H,H=ae)}return v(H);case w:e:{for(ve=$.key;G!==null;){if(G.key===ve)if(G.tag===4&&G.stateNode.containerInfo===$.containerInfo&&G.stateNode.implementation===$.implementation){o(H,G.sibling),ae=p(G,$.children||[]),ae.return=H,H=ae;break e}else{o(H,G);break}else i(H,G);G=G.sibling}ae=Rf($,H.mode,ae),ae.return=H,H=ae}return v(H);case z:return $=Rr($),it(H,G,$,ae)}if(pe($))return ge(H,G,$,ae);if(F($)){if(ve=F($),typeof ve!="function")throw Error(s(150));return $=ve.call($),je(H,G,$,ae)}if(typeof $.then=="function")return it(H,G,$l($),ae);if($.$$typeof===O)return it(H,G,Gl(H,$),ae);Ul(H,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,G!==null&&G.tag===6?(o(H,G.sibling),ae=p(G,$),ae.return=H,H=ae):(o(H,G),ae=Nf($,H.mode,ae),ae.return=H,H=ae),v(H)):o(H,G)}return function(H,G,$,ae){try{ac=0;var ve=it(H,G,$,ae);return Ts=null,ve}catch(me){if(me===Ds||me===Hl)throw me;var qe=Nn(29,me,null,H.mode);return qe.lanes=ae,qe.return=H,qe}finally{}}}var Tr=Iy(!0),Cy=Iy(!1),Mi=!1;function Pf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ff(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Gi(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Yi(n,i,o){var d=n.updateQueue;if(d===null)return null;if(d=d.shared,(Je&2)!==0){var p=d.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,i=Dl(n),uy(n,null,o),i}return Rl(n,d,i,o),Dl(n)}function rc(n,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var d=i.lanes;d&=n.pendingLanes,o|=d,i.lanes=o,Em(n,o)}}function Vf(n,i){var o=n.updateQueue,d=n.alternate;if(d!==null&&(d=d.updateQueue,o===d)){var p=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var v={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?p=g=v:g=g.next=v,o=o.next}while(o!==null);g===null?p=g=i:g=g.next=i}else p=g=i;o={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:d.shared,callbacks:d.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=i:n.next=i,o.lastBaseUpdate=i}var qf=!1;function sc(){if(qf){var n=Rs;if(n!==null)throw n}}function oc(n,i,o,d){qf=!1;var p=n.updateQueue;Mi=!1;var g=p.firstBaseUpdate,v=p.lastBaseUpdate,Q=p.shared.pending;if(Q!==null){p.shared.pending=null;var D=Q,U=D.next;D.next=null,v===null?g=U:v.next=U,v=D;var W=n.alternate;W!==null&&(W=W.updateQueue,Q=W.lastBaseUpdate,Q!==v&&(Q===null?W.firstBaseUpdate=U:Q.next=U,W.lastBaseUpdate=D))}if(g!==null){var ie=p.baseState;v=0,W=U=D=null,Q=g;do{var P=Q.lane&-536870913,q=P!==Q.lane;if(q?(He&P)===P:(d&P)===P){P!==0&&P===Ns&&(qf=!0),W!==null&&(W=W.next={lane:0,tag:Q.tag,payload:Q.payload,callback:null,next:null});e:{var ge=n,je=Q;P=i;var it=o;switch(je.tag){case 1:if(ge=je.payload,typeof ge=="function"){ie=ge.call(it,ie,P);break e}ie=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=je.payload,P=typeof ge=="function"?ge.call(it,ie,P):ge,P==null)break e;ie=m({},ie,P);break e;case 2:Mi=!0}}P=Q.callback,P!==null&&(n.flags|=64,q&&(n.flags|=8192),q=p.callbacks,q===null?p.callbacks=[P]:q.push(P))}else q={lane:P,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},W===null?(U=W=q,D=ie):W=W.next=q,v|=P;if(Q=Q.next,Q===null){if(Q=p.shared.pending,Q===null)break;q=Q,Q=q.next,q.next=null,p.lastBaseUpdate=q,p.shared.pending=null}}while(!0);W===null&&(D=ie),p.baseState=D,p.firstBaseUpdate=U,p.lastBaseUpdate=W,g===null&&(p.shared.lanes=0),Li|=v,n.lanes=v,n.memoizedState=ie}}function Sy(n,i){if(typeof n!="function")throw Error(s(191,n));n.call(i)}function Oy(n,i){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)Sy(o[n],i)}var ks=T(null),Ll=T(0);function _y(n,i){n=ci,se(Ll,n),se(ks,i),ci=n|i.baseLanes}function Kf(){se(Ll,ci),se(ks,ks.current)}function Jf(){ci=Ll.current,X(ks),X(Ll)}var Rn=T(null),aa=null;function Hi(n){var i=n.alternate;se(vt,vt.current&1),se(Rn,n),aa===null&&(i===null||ks.current!==null||i.memoizedState!==null)&&(aa=n)}function Zf(n){se(vt,vt.current),se(Rn,n),aa===null&&(aa=n)}function Ny(n){n.tag===22?(se(vt,vt.current),se(Rn,n),aa===null&&(aa=n)):zi()}function zi(){se(vt,vt.current),se(Rn,Rn.current)}function Dn(n){X(Rn),aa===n&&(aa=null),X(vt)}var vt=T(0);function Pl(n){for(var i=n;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||ah(o)||ih(o)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ei=0,_e=null,nt=null,Qt=null,Fl=!1,Ms=!1,kr=!1,Vl=0,cc=0,Gs=null,uC=0;function yt(){throw Error(s(321))}function Xf(n,i){if(i===null)return!1;for(var o=0;o<i.length&&o<n.length;o++)if(!_n(n[o],i[o]))return!1;return!0}function Wf(n,i,o,d,p,g){return ei=g,_e=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Y.H=n===null||n.memoizedState===null?gE:hp,kr=!1,g=o(d,p),kr=!1,Ms&&(g=Dy(i,o,d,p)),Ry(n),g}function Ry(n){Y.H=uc;var i=nt!==null&&nt.next!==null;if(ei=0,Qt=nt=_e=null,Fl=!1,cc=0,Gs=null,i)throw Error(s(300));n===null||It||(n=n.dependencies,n!==null&&Ml(n)&&(It=!0))}function Dy(n,i,o,d){_e=n;var p=0;do{if(Ms&&(Gs=null),cc=0,Ms=!1,25<=p)throw Error(s(301));if(p+=1,Qt=nt=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}Y.H=AE,g=i(o,d)}while(Ms);return g}function fC(){var n=Y.H,i=n.useState()[0];return i=typeof i.then=="function"?lc(i):i,n=n.useState()[0],(nt!==null?nt.memoizedState:null)!==n&&(_e.flags|=1024),i}function ep(){var n=Vl!==0;return Vl=0,n}function tp(n,i,o){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~o}function np(n){if(Fl){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Fl=!1}ei=0,Qt=nt=_e=null,Ms=!1,cc=Vl=0,Gs=null}function un(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?_e.memoizedState=Qt=n:Qt=Qt.next=n,Qt}function bt(){if(nt===null){var n=_e.alternate;n=n!==null?n.memoizedState:null}else n=nt.next;var i=Qt===null?_e.memoizedState:Qt.next;if(i!==null)Qt=i,nt=n;else{if(n===null)throw _e.alternate===null?Error(s(467)):Error(s(310));nt=n,n={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Qt===null?_e.memoizedState=Qt=n:Qt=Qt.next=n}return Qt}function ql(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lc(n){var i=cc;return cc+=1,Gs===null&&(Gs=[]),n=xy(Gs,n,i),i=_e,(Qt===null?i.memoizedState:Qt.next)===null&&(i=i.alternate,Y.H=i===null||i.memoizedState===null?gE:hp),n}function Kl(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return lc(n);if(n.$$typeof===O)return tn(n)}throw Error(s(438,String(n)))}function ap(n){var i=null,o=_e.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var d=_e.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(i={data:d.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=ql(),_e.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(n),d=0;d<n;d++)o[d]=L;return i.index++,o}function ti(n,i){return typeof i=="function"?i(n):i}function Jl(n){var i=bt();return ip(i,nt,n)}function ip(n,i,o){var d=n.queue;if(d===null)throw Error(s(311));d.lastRenderedReducer=o;var p=n.baseQueue,g=d.pending;if(g!==null){if(p!==null){var v=p.next;p.next=g.next,g.next=v}i.baseQueue=p=g,d.pending=null}if(g=n.baseState,p===null)n.memoizedState=g;else{i=p.next;var Q=v=null,D=null,U=i,W=!1;do{var ie=U.lane&-536870913;if(ie!==U.lane?(He&ie)===ie:(ei&ie)===ie){var P=U.revertLane;if(P===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),ie===Ns&&(W=!0);else if((ei&P)===P){U=U.next,P===Ns&&(W=!0);continue}else ie={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(Q=D=ie,v=g):D=D.next=ie,_e.lanes|=P,Li|=P;ie=U.action,kr&&o(g,ie),g=U.hasEagerState?U.eagerState:o(g,ie)}else P={lane:ie,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(Q=D=P,v=g):D=D.next=P,_e.lanes|=ie,Li|=ie;U=U.next}while(U!==null&&U!==i);if(D===null?v=g:D.next=Q,!_n(g,n.memoizedState)&&(It=!0,W&&(o=Rs,o!==null)))throw o;n.memoizedState=g,n.baseState=v,n.baseQueue=D,d.lastRenderedState=g}return p===null&&(d.lanes=0),[n.memoizedState,d.dispatch]}function rp(n){var i=bt(),o=i.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=n;var d=o.dispatch,p=o.pending,g=i.memoizedState;if(p!==null){o.pending=null;var v=p=p.next;do g=n(g,v.action),v=v.next;while(v!==p);_n(g,i.memoizedState)||(It=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),o.lastRenderedState=g}return[g,d]}function Ty(n,i,o){var d=_e,p=bt(),g=Ue;if(g){if(o===void 0)throw Error(s(407));o=o()}else o=i();var v=!_n((nt||p).memoizedState,o);if(v&&(p.memoizedState=o,It=!0),p=p.queue,cp(Gy.bind(null,d,p,n),[n]),p.getSnapshot!==i||v||Qt!==null&&Qt.memoizedState.tag&1){if(d.flags|=2048,Ys(9,{destroy:void 0},My.bind(null,d,p,o,i),null),ot===null)throw Error(s(349));g||(ei&127)!==0||ky(d,i,o)}return o}function ky(n,i,o){n.flags|=16384,n={getSnapshot:i,value:o},i=_e.updateQueue,i===null?(i=ql(),_e.updateQueue=i,i.stores=[n]):(o=i.stores,o===null?i.stores=[n]:o.push(n))}function My(n,i,o,d){i.value=o,i.getSnapshot=d,Yy(i)&&Hy(n)}function Gy(n,i,o){return o(function(){Yy(i)&&Hy(n)})}function Yy(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!_n(n,o)}catch{return!0}}function Hy(n){var i=Ir(n,2);i!==null&&vn(i,n,2)}function sp(n){var i=un();if(typeof n=="function"){var o=n;if(n=o(),kr){Oi(!0);try{o()}finally{Oi(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:n},i}function zy(n,i,o,d){return n.baseState=o,ip(n,nt,typeof d=="function"?d:ti)}function pC(n,i,o,d,p){if(Wl(n))throw Error(s(485));if(n=i.action,n!==null){var g={payload:p,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){g.listeners.push(v)}};Y.T!==null?o(!0):g.isTransition=!1,d(g),o=i.pending,o===null?(g.next=i.pending=g,$y(i,g)):(g.next=o.next,i.pending=o.next=g)}}function $y(n,i){var o=i.action,d=i.payload,p=n.state;if(i.isTransition){var g=Y.T,v={};Y.T=v;try{var Q=o(p,d),D=Y.S;D!==null&&D(v,Q),Uy(n,i,Q)}catch(U){op(n,i,U)}finally{g!==null&&v.types!==null&&(g.types=v.types),Y.T=g}}else try{g=o(p,d),Uy(n,i,g)}catch(U){op(n,i,U)}}function Uy(n,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(d){Ly(n,i,d)},function(d){return op(n,i,d)}):Ly(n,i,o)}function Ly(n,i,o){i.status="fulfilled",i.value=o,Py(i),n.state=o,i=n.pending,i!==null&&(o=i.next,o===i?n.pending=null:(o=o.next,i.next=o,$y(n,o)))}function op(n,i,o){var d=n.pending;if(n.pending=null,d!==null){d=d.next;do i.status="rejected",i.reason=o,Py(i),i=i.next;while(i!==d)}n.action=null}function Py(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function Fy(n,i){return i}function Vy(n,i){if(Ue){var o=ot.formState;if(o!==null){e:{var d=_e;if(Ue){if(lt){t:{for(var p=lt,g=na;p.nodeType!==8;){if(!g){p=null;break t}if(p=ia(p.nextSibling),p===null){p=null;break t}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){lt=ia(p.nextSibling),d=p.data==="F!";break e}}Ti(d)}d=!1}d&&(i=o[0])}}return o=un(),o.memoizedState=o.baseState=i,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fy,lastRenderedState:i},o.queue=d,o=fE.bind(null,_e,d),d.dispatch=o,d=sp(!1),g=pp.bind(null,_e,!1,d.queue),d=un(),p={state:i,dispatch:null,action:n,pending:null},d.queue=p,o=pC.bind(null,_e,p,g,o),p.dispatch=o,d.memoizedState=n,[i,o,!1]}function qy(n){var i=bt();return Ky(i,nt,n)}function Ky(n,i,o){if(i=ip(n,i,Fy)[0],n=Jl(ti)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var d=lc(i)}catch(v){throw v===Ds?Hl:v}else d=i;i=bt();var p=i.queue,g=p.dispatch;return o!==i.memoizedState&&(_e.flags|=2048,Ys(9,{destroy:void 0},hC.bind(null,p,o),null)),[d,g,n]}function hC(n,i){n.action=i}function Jy(n){var i=bt(),o=nt;if(o!==null)return Ky(i,o,n);bt(),i=i.memoizedState,o=bt();var d=o.queue.dispatch;return o.memoizedState=n,[i,d,!1]}function Ys(n,i,o,d){return n={tag:n,create:o,deps:d,inst:i,next:null},i=_e.updateQueue,i===null&&(i=ql(),_e.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=n.next=n:(d=o.next,o.next=n,n.next=d,i.lastEffect=n),n}function Zy(){return bt().memoizedState}function Zl(n,i,o,d){var p=un();_e.flags|=n,p.memoizedState=Ys(1|i,{destroy:void 0},o,d===void 0?null:d)}function Xl(n,i,o,d){var p=bt();d=d===void 0?null:d;var g=p.memoizedState.inst;nt!==null&&d!==null&&Xf(d,nt.memoizedState.deps)?p.memoizedState=Ys(i,g,o,d):(_e.flags|=n,p.memoizedState=Ys(1|i,g,o,d))}function Xy(n,i){Zl(8390656,8,n,i)}function cp(n,i){Xl(2048,8,n,i)}function gC(n){_e.flags|=4;var i=_e.updateQueue;if(i===null)i=ql(),_e.updateQueue=i,i.events=[n];else{var o=i.events;o===null?i.events=[n]:o.push(n)}}function Wy(n){var i=bt().memoizedState;return gC({ref:i,nextImpl:n}),function(){if((Je&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}function eE(n,i){return Xl(4,2,n,i)}function tE(n,i){return Xl(4,4,n,i)}function nE(n,i){if(typeof i=="function"){n=n();var o=i(n);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function aE(n,i,o){o=o!=null?o.concat([n]):null,Xl(4,4,nE.bind(null,i,n),o)}function lp(){}function iE(n,i){var o=bt();i=i===void 0?null:i;var d=o.memoizedState;return i!==null&&Xf(i,d[1])?d[0]:(o.memoizedState=[n,i],n)}function rE(n,i){var o=bt();i=i===void 0?null:i;var d=o.memoizedState;if(i!==null&&Xf(i,d[1]))return d[0];if(d=n(),kr){Oi(!0);try{n()}finally{Oi(!1)}}return o.memoizedState=[d,i],d}function dp(n,i,o){return o===void 0||(ei&1073741824)!==0&&(He&261930)===0?n.memoizedState=i:(n.memoizedState=o,n=sB(),_e.lanes|=n,Li|=n,o)}function sE(n,i,o,d){return _n(o,i)?o:ks.current!==null?(n=dp(n,o,d),_n(n,i)||(It=!0),n):(ei&42)===0||(ei&1073741824)!==0&&(He&261930)===0?(It=!0,n.memoizedState=o):(n=sB(),_e.lanes|=n,Li|=n,i)}function oE(n,i,o,d,p){var g=V.p;V.p=g!==0&&8>g?g:8;var v=Y.T,Q={};Y.T=Q,pp(n,!1,i,o);try{var D=p(),U=Y.S;if(U!==null&&U(Q,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var W=dC(D,d);dc(n,i,W,Mn(n))}else dc(n,i,d,Mn(n))}catch(ie){dc(n,i,{then:function(){},status:"rejected",reason:ie},Mn())}finally{V.p=g,v!==null&&Q.types!==null&&(v.types=Q.types),Y.T=v}}function AC(){}function up(n,i,o,d){if(n.tag!==5)throw Error(s(476));var p=cE(n).queue;oE(n,p,i,te,o===null?AC:function(){return lE(n),o(d)})}function cE(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:te},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ti,lastRenderedState:o},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function lE(n){var i=cE(n);i.next===null&&(i=n.alternate.memoizedState),dc(n,i.next.queue,{},Mn())}function fp(){return tn(Ic)}function dE(){return bt().memoizedState}function uE(){return bt().memoizedState}function mC(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var o=Mn();n=Gi(o);var d=Yi(i,n,o);d!==null&&(vn(d,i,o),rc(d,i,o)),i={cache:zf()},n.payload=i;return}i=i.return}}function yC(n,i,o){var d=Mn();o={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Wl(n)?pE(i,o):(o=Of(n,i,o,d),o!==null&&(vn(o,n,d),hE(o,i,d)))}function fE(n,i,o){var d=Mn();dc(n,i,o,d)}function dc(n,i,o,d){var p={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Wl(n))pE(i,p);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var v=i.lastRenderedState,Q=g(v,o);if(p.hasEagerState=!0,p.eagerState=Q,_n(Q,v))return Rl(n,i,p,0),ot===null&&Nl(),!1}catch{}finally{}if(o=Of(n,i,p,d),o!==null)return vn(o,n,d),hE(o,i,d),!0}return!1}function pp(n,i,o,d){if(d={lane:2,revertLane:Pp(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Wl(n)){if(i)throw Error(s(479))}else i=Of(n,o,d,2),i!==null&&vn(i,n,2)}function Wl(n){var i=n.alternate;return n===_e||i!==null&&i===_e}function pE(n,i){Ms=Fl=!0;var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}function hE(n,i,o){if((o&4194048)!==0){var d=i.lanes;d&=n.pendingLanes,o|=d,i.lanes=o,Em(n,o)}}var uc={readContext:tn,use:Kl,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt};uc.useEffectEvent=yt;var gE={readContext:tn,use:Kl,useCallback:function(n,i){return un().memoizedState=[n,i===void 0?null:i],n},useContext:tn,useEffect:Xy,useImperativeHandle:function(n,i,o){o=o!=null?o.concat([n]):null,Zl(4194308,4,nE.bind(null,i,n),o)},useLayoutEffect:function(n,i){return Zl(4194308,4,n,i)},useInsertionEffect:function(n,i){Zl(4,2,n,i)},useMemo:function(n,i){var o=un();i=i===void 0?null:i;var d=n();if(kr){Oi(!0);try{n()}finally{Oi(!1)}}return o.memoizedState=[d,i],d},useReducer:function(n,i,o){var d=un();if(o!==void 0){var p=o(i);if(kr){Oi(!0);try{o(i)}finally{Oi(!1)}}}else p=i;return d.memoizedState=d.baseState=p,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:p},d.queue=n,n=n.dispatch=yC.bind(null,_e,n),[d.memoizedState,n]},useRef:function(n){var i=un();return n={current:n},i.memoizedState=n},useState:function(n){n=sp(n);var i=n.queue,o=fE.bind(null,_e,i);return i.dispatch=o,[n.memoizedState,o]},useDebugValue:lp,useDeferredValue:function(n,i){var o=un();return dp(o,n,i)},useTransition:function(){var n=sp(!1);return n=oE.bind(null,_e,n.queue,!0,!1),un().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,o){var d=_e,p=un();if(Ue){if(o===void 0)throw Error(s(407));o=o()}else{if(o=i(),ot===null)throw Error(s(349));(He&127)!==0||ky(d,i,o)}p.memoizedState=o;var g={value:o,getSnapshot:i};return p.queue=g,Xy(Gy.bind(null,d,g,n),[n]),d.flags|=2048,Ys(9,{destroy:void 0},My.bind(null,d,g,o,i),null),o},useId:function(){var n=un(),i=ot.identifierPrefix;if(Ue){var o=Qa,d=ja;o=(d&~(1<<32-On(d)-1)).toString(32)+o,i="_"+i+"R_"+o,o=Vl++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=uC++,i="_"+i+"r_"+o.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:fp,useFormState:Vy,useActionState:Vy,useOptimistic:function(n){var i=un();i.memoizedState=i.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=pp.bind(null,_e,!0,o),o.dispatch=i,[n,i]},useMemoCache:ap,useCacheRefresh:function(){return un().memoizedState=mC.bind(null,_e)},useEffectEvent:function(n){var i=un(),o={impl:n};return i.memoizedState=o,function(){if((Je&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}},hp={readContext:tn,use:Kl,useCallback:iE,useContext:tn,useEffect:cp,useImperativeHandle:aE,useInsertionEffect:eE,useLayoutEffect:tE,useMemo:rE,useReducer:Jl,useRef:Zy,useState:function(){return Jl(ti)},useDebugValue:lp,useDeferredValue:function(n,i){var o=bt();return sE(o,nt.memoizedState,n,i)},useTransition:function(){var n=Jl(ti)[0],i=bt().memoizedState;return[typeof n=="boolean"?n:lc(n),i]},useSyncExternalStore:Ty,useId:dE,useHostTransitionStatus:fp,useFormState:qy,useActionState:qy,useOptimistic:function(n,i){var o=bt();return zy(o,nt,n,i)},useMemoCache:ap,useCacheRefresh:uE};hp.useEffectEvent=Wy;var AE={readContext:tn,use:Kl,useCallback:iE,useContext:tn,useEffect:cp,useImperativeHandle:aE,useInsertionEffect:eE,useLayoutEffect:tE,useMemo:rE,useReducer:rp,useRef:Zy,useState:function(){return rp(ti)},useDebugValue:lp,useDeferredValue:function(n,i){var o=bt();return nt===null?dp(o,n,i):sE(o,nt.memoizedState,n,i)},useTransition:function(){var n=rp(ti)[0],i=bt().memoizedState;return[typeof n=="boolean"?n:lc(n),i]},useSyncExternalStore:Ty,useId:dE,useHostTransitionStatus:fp,useFormState:Jy,useActionState:Jy,useOptimistic:function(n,i){var o=bt();return nt!==null?zy(o,nt,n,i):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:ap,useCacheRefresh:uE};AE.useEffectEvent=Wy;function gp(n,i,o,d){i=n.memoizedState,o=o(d,i),o=o==null?i:m({},i,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Ap={enqueueSetState:function(n,i,o){n=n._reactInternals;var d=Mn(),p=Gi(d);p.payload=i,o!=null&&(p.callback=o),i=Yi(n,p,d),i!==null&&(vn(i,n,d),rc(i,n,d))},enqueueReplaceState:function(n,i,o){n=n._reactInternals;var d=Mn(),p=Gi(d);p.tag=1,p.payload=i,o!=null&&(p.callback=o),i=Yi(n,p,d),i!==null&&(vn(i,n,d),rc(i,n,d))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var o=Mn(),d=Gi(o);d.tag=2,i!=null&&(d.callback=i),i=Yi(n,d,o),i!==null&&(vn(i,n,o),rc(i,n,o))}};function mE(n,i,o,d,p,g,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(d,g,v):i.prototype&&i.prototype.isPureReactComponent?!Zo(o,d)||!Zo(p,g):!0}function yE(n,i,o,d){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,d),i.state!==n&&Ap.enqueueReplaceState(i,i.state,null)}function Mr(n,i){var o=i;if("ref"in i){o={};for(var d in i)d!=="ref"&&(o[d]=i[d])}if(n=n.defaultProps){o===i&&(o=m({},o));for(var p in n)o[p]===void 0&&(o[p]=n[p])}return o}function EE(n){_l(n)}function BE(n){console.error(n)}function vE(n){_l(n)}function ed(n,i){try{var o=n.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(d){setTimeout(function(){throw d})}}function bE(n,i,o){try{var d=n.onCaughtError;d(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function mp(n,i,o){return o=Gi(o),o.tag=3,o.payload={element:null},o.callback=function(){ed(n,i)},o}function wE(n){return n=Gi(n),n.tag=3,n}function xE(n,i,o,d){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var g=d.value;n.payload=function(){return p(g)},n.callback=function(){bE(i,o,d)}}var v=o.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){bE(i,o,d),typeof p!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var Q=d.stack;this.componentDidCatch(d.value,{componentStack:Q!==null?Q:""})})}function EC(n,i,o,d,p){if(o.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(i=o.alternate,i!==null&&_s(i,o,p,!0),o=Rn.current,o!==null){switch(o.tag){case 31:case 13:return aa===null?fd():o.alternate===null&&Et===0&&(Et=3),o.flags&=-257,o.flags|=65536,o.lanes=p,d===zl?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([d]):i.add(d),$p(n,d,p)),!1;case 22:return o.flags|=65536,d===zl?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([d])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([d]):o.add(d)),$p(n,d,p)),!1}throw Error(s(435,o.tag))}return $p(n,d,p),fd(),!1}if(Ue)return i=Rn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,d!==kf&&(n=Error(s(422),{cause:d}),ec(Wn(n,o)))):(d!==kf&&(i=Error(s(423),{cause:d}),ec(Wn(i,o))),n=n.current.alternate,n.flags|=65536,p&=-p,n.lanes|=p,d=Wn(d,o),p=mp(n.stateNode,d,p),Vf(n,p),Et!==4&&(Et=2)),!1;var g=Error(s(520),{cause:d});if(g=Wn(g,o),Ec===null?Ec=[g]:Ec.push(g),Et!==4&&(Et=2),i===null)return!0;d=Wn(d,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,n=p&-p,o.lanes|=n,n=mp(o.stateNode,d,n),Vf(o,n),!1;case 1:if(i=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Pi===null||!Pi.has(g))))return o.flags|=65536,p&=-p,o.lanes|=p,p=wE(p),xE(p,n,o,d),Vf(o,p),!1}o=o.return}while(o!==null);return!1}var yp=Error(s(461)),It=!1;function nn(n,i,o,d){i.child=n===null?Cy(i,null,o,d):Tr(i,n.child,o,d)}function jE(n,i,o,d,p){o=o.render;var g=i.ref;if("ref"in d){var v={};for(var Q in d)Q!=="ref"&&(v[Q]=d[Q])}else v=d;return _r(i),d=Wf(n,i,o,v,g,p),Q=ep(),n!==null&&!It?(tp(n,i,p),ni(n,i,p)):(Ue&&Q&&Df(i),i.flags|=1,nn(n,i,d,p),i.child)}function QE(n,i,o,d,p){if(n===null){var g=o.type;return typeof g=="function"&&!_f(g)&&g.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=g,IE(n,i,g,d,p)):(n=Tl(o.type,null,d,i,i.mode,p),n.ref=i.ref,n.return=i,i.child=n)}if(g=n.child,!Qp(n,p)){var v=g.memoizedProps;if(o=o.compare,o=o!==null?o:Zo,o(v,d)&&n.ref===i.ref)return ni(n,i,p)}return i.flags|=1,n=Ja(g,d),n.ref=i.ref,n.return=i,i.child=n}function IE(n,i,o,d,p){if(n!==null){var g=n.memoizedProps;if(Zo(g,d)&&n.ref===i.ref)if(It=!1,i.pendingProps=d=g,Qp(n,p))(n.flags&131072)!==0&&(It=!0);else return i.lanes=n.lanes,ni(n,i,p)}return Ep(n,i,o,d,p)}function CE(n,i,o,d){var p=d.children,g=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((i.flags&128)!==0){if(g=g!==null?g.baseLanes|o:o,n!==null){for(d=i.child=n.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;d=p&~g}else d=0,i.child=null;return SE(n,i,g,o,d)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Yl(i,g!==null?g.cachePool:null),g!==null?_y(i,g):Kf(),Ny(i);else return d=i.lanes=536870912,SE(n,i,g!==null?g.baseLanes|o:o,o,d)}else g!==null?(Yl(i,g.cachePool),_y(i,g),zi(),i.memoizedState=null):(n!==null&&Yl(i,null),Kf(),zi());return nn(n,i,p,o),i.child}function fc(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function SE(n,i,o,d,p){var g=Uf();return g=g===null?null:{parent:jt._currentValue,pool:g},i.memoizedState={baseLanes:o,cachePool:g},n!==null&&Yl(i,null),Kf(),Ny(i),n!==null&&_s(n,i,d,!0),i.childLanes=p,null}function td(n,i){return i=ad({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function OE(n,i,o){return Tr(i,n.child,null,o),n=td(i,i.pendingProps),n.flags|=2,Dn(i),i.memoizedState=null,n}function BC(n,i,o){var d=i.pendingProps,p=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(Ue){if(d.mode==="hidden")return n=td(i,d),i.lanes=536870912,fc(null,n);if(Zf(i),(n=lt)?(n=$B(n,na),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:ja,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},o=py(n),o.return=i,i.child=o,en=i,lt=null)):n=null,n===null)throw Ti(i);return i.lanes=536870912,null}return td(i,d)}var g=n.memoizedState;if(g!==null){var v=g.dehydrated;if(Zf(i),p)if(i.flags&256)i.flags&=-257,i=OE(n,i,o);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(s(558));else if(It||_s(n,i,o,!1),p=(o&n.childLanes)!==0,It||p){if(d=ot,d!==null&&(v=Bm(d,o),v!==0&&v!==g.retryLane))throw g.retryLane=v,Ir(n,v),vn(d,n,v),yp;fd(),i=OE(n,i,o)}else n=g.treeContext,lt=ia(v.nextSibling),en=i,Ue=!0,Di=null,na=!1,n!==null&&Ay(i,n),i=td(i,d),i.flags|=4096;return i}return n=Ja(n.child,{mode:d.mode,children:d.children}),n.ref=i.ref,i.child=n,n.return=i,n}function nd(n,i){var o=i.ref;if(o===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(s(284));(n===null||n.ref!==o)&&(i.flags|=4194816)}}function Ep(n,i,o,d,p){return _r(i),o=Wf(n,i,o,d,void 0,p),d=ep(),n!==null&&!It?(tp(n,i,p),ni(n,i,p)):(Ue&&d&&Df(i),i.flags|=1,nn(n,i,o,p),i.child)}function _E(n,i,o,d,p,g){return _r(i),i.updateQueue=null,o=Dy(i,d,o,p),Ry(n),d=ep(),n!==null&&!It?(tp(n,i,g),ni(n,i,g)):(Ue&&d&&Df(i),i.flags|=1,nn(n,i,o,g),i.child)}function NE(n,i,o,d,p){if(_r(i),i.stateNode===null){var g=Is,v=o.contextType;typeof v=="object"&&v!==null&&(g=tn(v)),g=new o(d,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Ap,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=d,g.state=i.memoizedState,g.refs={},Pf(i),v=o.contextType,g.context=typeof v=="object"&&v!==null?tn(v):Is,g.state=i.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(gp(i,o,v,d),g.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(v=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),v!==g.state&&Ap.enqueueReplaceState(g,g.state,null),oc(i,d,g,p),sc(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),d=!0}else if(n===null){g=i.stateNode;var Q=i.memoizedProps,D=Mr(o,Q);g.props=D;var U=g.context,W=o.contextType;v=Is,typeof W=="object"&&W!==null&&(v=tn(W));var ie=o.getDerivedStateFromProps;W=typeof ie=="function"||typeof g.getSnapshotBeforeUpdate=="function",Q=i.pendingProps!==Q,W||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(Q||U!==v)&&yE(i,g,d,v),Mi=!1;var P=i.memoizedState;g.state=P,oc(i,d,g,p),sc(),U=i.memoizedState,Q||P!==U||Mi?(typeof ie=="function"&&(gp(i,o,ie,d),U=i.memoizedState),(D=Mi||mE(i,o,D,d,P,U,v))?(W||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=U),g.props=d,g.state=U,g.context=v,d=D):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{g=i.stateNode,Ff(n,i),v=i.memoizedProps,W=Mr(o,v),g.props=W,ie=i.pendingProps,P=g.context,U=o.contextType,D=Is,typeof U=="object"&&U!==null&&(D=tn(U)),Q=o.getDerivedStateFromProps,(U=typeof Q=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(v!==ie||P!==D)&&yE(i,g,d,D),Mi=!1,P=i.memoizedState,g.state=P,oc(i,d,g,p),sc();var q=i.memoizedState;v!==ie||P!==q||Mi||n!==null&&n.dependencies!==null&&Ml(n.dependencies)?(typeof Q=="function"&&(gp(i,o,Q,d),q=i.memoizedState),(W=Mi||mE(i,o,W,d,P,q,D)||n!==null&&n.dependencies!==null&&Ml(n.dependencies))?(U||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(d,q,D),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(d,q,D)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||v===n.memoizedProps&&P===n.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&P===n.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=q),g.props=d,g.state=q,g.context=D,d=W):(typeof g.componentDidUpdate!="function"||v===n.memoizedProps&&P===n.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&P===n.memoizedState||(i.flags|=1024),d=!1)}return g=d,nd(n,i),d=(i.flags&128)!==0,g||d?(g=i.stateNode,o=d&&typeof o.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,n!==null&&d?(i.child=Tr(i,n.child,null,p),i.child=Tr(i,null,o,p)):nn(n,i,o,p),i.memoizedState=g.state,n=i.child):n=ni(n,i,p),n}function RE(n,i,o,d){return Sr(),i.flags|=256,nn(n,i,o,d),i.child}var Bp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vp(n){return{baseLanes:n,cachePool:by()}}function bp(n,i,o){return n=n!==null?n.childLanes&~o:0,i&&(n|=kn),n}function DE(n,i,o){var d=i.pendingProps,p=!1,g=(i.flags&128)!==0,v;if((v=g)||(v=n!==null&&n.memoizedState===null?!1:(vt.current&2)!==0),v&&(p=!0,i.flags&=-129),v=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ue){if(p?Hi(i):zi(),(n=lt)?(n=$B(n,na),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:ja,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},o=py(n),o.return=i,i.child=o,en=i,lt=null)):n=null,n===null)throw Ti(i);return ih(n)?i.lanes=32:i.lanes=536870912,null}var Q=d.children;return d=d.fallback,p?(zi(),p=i.mode,Q=ad({mode:"hidden",children:Q},p),d=Cr(d,p,o,null),Q.return=i,d.return=i,Q.sibling=d,i.child=Q,d=i.child,d.memoizedState=vp(o),d.childLanes=bp(n,v,o),i.memoizedState=Bp,fc(null,d)):(Hi(i),wp(i,Q))}var D=n.memoizedState;if(D!==null&&(Q=D.dehydrated,Q!==null)){if(g)i.flags&256?(Hi(i),i.flags&=-257,i=xp(n,i,o)):i.memoizedState!==null?(zi(),i.child=n.child,i.flags|=128,i=null):(zi(),Q=d.fallback,p=i.mode,d=ad({mode:"visible",children:d.children},p),Q=Cr(Q,p,o,null),Q.flags|=2,d.return=i,Q.return=i,d.sibling=Q,i.child=d,Tr(i,n.child,null,o),d=i.child,d.memoizedState=vp(o),d.childLanes=bp(n,v,o),i.memoizedState=Bp,i=fc(null,d));else if(Hi(i),ih(Q)){if(v=Q.nextSibling&&Q.nextSibling.dataset,v)var U=v.dgst;v=U,d=Error(s(419)),d.stack="",d.digest=v,ec({value:d,source:null,stack:null}),i=xp(n,i,o)}else if(It||_s(n,i,o,!1),v=(o&n.childLanes)!==0,It||v){if(v=ot,v!==null&&(d=Bm(v,o),d!==0&&d!==D.retryLane))throw D.retryLane=d,Ir(n,d),vn(v,n,d),yp;ah(Q)||fd(),i=xp(n,i,o)}else ah(Q)?(i.flags|=192,i.child=n.child,i=null):(n=D.treeContext,lt=ia(Q.nextSibling),en=i,Ue=!0,Di=null,na=!1,n!==null&&Ay(i,n),i=wp(i,d.children),i.flags|=4096);return i}return p?(zi(),Q=d.fallback,p=i.mode,D=n.child,U=D.sibling,d=Ja(D,{mode:"hidden",children:d.children}),d.subtreeFlags=D.subtreeFlags&65011712,U!==null?Q=Ja(U,Q):(Q=Cr(Q,p,o,null),Q.flags|=2),Q.return=i,d.return=i,d.sibling=Q,i.child=d,fc(null,d),d=i.child,Q=n.child.memoizedState,Q===null?Q=vp(o):(p=Q.cachePool,p!==null?(D=jt._currentValue,p=p.parent!==D?{parent:D,pool:D}:p):p=by(),Q={baseLanes:Q.baseLanes|o,cachePool:p}),d.memoizedState=Q,d.childLanes=bp(n,v,o),i.memoizedState=Bp,fc(n.child,d)):(Hi(i),o=n.child,n=o.sibling,o=Ja(o,{mode:"visible",children:d.children}),o.return=i,o.sibling=null,n!==null&&(v=i.deletions,v===null?(i.deletions=[n],i.flags|=16):v.push(n)),i.child=o,i.memoizedState=null,o)}function wp(n,i){return i=ad({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function ad(n,i){return n=Nn(22,n,null,i),n.lanes=0,n}function xp(n,i,o){return Tr(i,n.child,null,o),n=wp(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function TE(n,i,o){n.lanes|=i;var d=n.alternate;d!==null&&(d.lanes|=i),Yf(n.return,i,o)}function jp(n,i,o,d,p,g){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:o,tailMode:p,treeForkCount:g}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=d,v.tail=o,v.tailMode=p,v.treeForkCount=g)}function kE(n,i,o){var d=i.pendingProps,p=d.revealOrder,g=d.tail;d=d.children;var v=vt.current,Q=(v&2)!==0;if(Q?(v=v&1|2,i.flags|=128):v&=1,se(vt,v),nn(n,i,d,o),d=Ue?Wo:0,!Q&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&TE(n,o,i);else if(n.tag===19)TE(n,o,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(p){case"forwards":for(o=i.child,p=null;o!==null;)n=o.alternate,n!==null&&Pl(n)===null&&(p=o),o=o.sibling;o=p,o===null?(p=i.child,i.child=null):(p=o.sibling,o.sibling=null),jp(i,!1,p,o,g,d);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=i.child,i.child=null;p!==null;){if(n=p.alternate,n!==null&&Pl(n)===null){i.child=p;break}n=p.sibling,p.sibling=o,o=p,p=n}jp(i,!0,o,null,g,d);break;case"together":jp(i,!1,null,null,void 0,d);break;default:i.memoizedState=null}return i.child}function ni(n,i,o){if(n!==null&&(i.dependencies=n.dependencies),Li|=i.lanes,(o&i.childLanes)===0)if(n!==null){if(_s(n,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(s(153));if(i.child!==null){for(n=i.child,o=Ja(n,n.pendingProps),i.child=o,o.return=i;n.sibling!==null;)n=n.sibling,o=o.sibling=Ja(n,n.pendingProps),o.return=i;o.sibling=null}return i.child}function Qp(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Ml(n)))}function vC(n,i,o){switch(i.tag){case 3:J(i,i.stateNode.containerInfo),ki(i,jt,n.memoizedState.cache),Sr();break;case 27:case 5:Ae(i);break;case 4:J(i,i.stateNode.containerInfo);break;case 10:ki(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Zf(i),null;break;case 13:var d=i.memoizedState;if(d!==null)return d.dehydrated!==null?(Hi(i),i.flags|=128,null):(o&i.child.childLanes)!==0?DE(n,i,o):(Hi(i),n=ni(n,i,o),n!==null?n.sibling:null);Hi(i);break;case 19:var p=(n.flags&128)!==0;if(d=(o&i.childLanes)!==0,d||(_s(n,i,o,!1),d=(o&i.childLanes)!==0),p){if(d)return kE(n,i,o);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),se(vt,vt.current),d)break;return null;case 22:return i.lanes=0,CE(n,i,o,i.pendingProps);case 24:ki(i,jt,n.memoizedState.cache)}return ni(n,i,o)}function ME(n,i,o){if(n!==null)if(n.memoizedProps!==i.pendingProps)It=!0;else{if(!Qp(n,o)&&(i.flags&128)===0)return It=!1,vC(n,i,o);It=(n.flags&131072)!==0}else It=!1,Ue&&(i.flags&1048576)!==0&&gy(i,Wo,i.index);switch(i.lanes=0,i.tag){case 16:e:{var d=i.pendingProps;if(n=Rr(i.elementType),i.type=n,typeof n=="function")_f(n)?(d=Mr(n,d),i.tag=1,i=NE(null,i,n,d,o)):(i.tag=0,i=Ep(null,i,n,d,o));else{if(n!=null){var p=n.$$typeof;if(p===S){i.tag=11,i=jE(null,i,n,d,o);break e}else if(p===N){i.tag=14,i=QE(null,i,n,d,o);break e}}throw i=re(n)||n,Error(s(306,i,""))}}return i;case 0:return Ep(n,i,i.type,i.pendingProps,o);case 1:return d=i.type,p=Mr(d,i.pendingProps),NE(n,i,d,p,o);case 3:e:{if(J(i,i.stateNode.containerInfo),n===null)throw Error(s(387));d=i.pendingProps;var g=i.memoizedState;p=g.element,Ff(n,i),oc(i,d,null,o);var v=i.memoizedState;if(d=v.cache,ki(i,jt,d),d!==g.cache&&Hf(i,[jt],o,!0),sc(),d=v.element,g.isDehydrated)if(g={element:d,isDehydrated:!1,cache:v.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=RE(n,i,d,o);break e}else if(d!==p){p=Wn(Error(s(424)),i),ec(p),i=RE(n,i,d,o);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(lt=ia(n.firstChild),en=i,Ue=!0,Di=null,na=!0,o=Cy(i,null,d,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Sr(),d===p){i=ni(n,i,o);break e}nn(n,i,d,o)}i=i.child}return i;case 26:return nd(n,i),n===null?(o=qB(i.type,null,i.pendingProps,null))?i.memoizedState=o:Ue||(o=i.type,n=i.pendingProps,d=Ed(Ee.current).createElement(o),d[Wt]=i,d[gn]=n,an(d,o,n),Yt(d),i.stateNode=d):i.memoizedState=qB(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Ae(i),n===null&&Ue&&(d=i.stateNode=PB(i.type,i.pendingProps,Ee.current),en=i,na=!0,p=lt,Ki(i.type)?(rh=p,lt=ia(d.firstChild)):lt=p),nn(n,i,i.pendingProps.children,o),nd(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Ue&&((p=d=lt)&&(d=ZC(d,i.type,i.pendingProps,na),d!==null?(i.stateNode=d,en=i,lt=ia(d.firstChild),na=!1,p=!0):p=!1),p||Ti(i)),Ae(i),p=i.type,g=i.pendingProps,v=n!==null?n.memoizedProps:null,d=g.children,eh(p,g)?d=null:v!==null&&eh(p,v)&&(i.flags|=32),i.memoizedState!==null&&(p=Wf(n,i,fC,null,null,o),Ic._currentValue=p),nd(n,i),nn(n,i,d,o),i.child;case 6:return n===null&&Ue&&((n=o=lt)&&(o=XC(o,i.pendingProps,na),o!==null?(i.stateNode=o,en=i,lt=null,n=!0):n=!1),n||Ti(i)),null;case 13:return DE(n,i,o);case 4:return J(i,i.stateNode.containerInfo),d=i.pendingProps,n===null?i.child=Tr(i,null,d,o):nn(n,i,d,o),i.child;case 11:return jE(n,i,i.type,i.pendingProps,o);case 7:return nn(n,i,i.pendingProps,o),i.child;case 8:return nn(n,i,i.pendingProps.children,o),i.child;case 12:return nn(n,i,i.pendingProps.children,o),i.child;case 10:return d=i.pendingProps,ki(i,i.type,d.value),nn(n,i,d.children,o),i.child;case 9:return p=i.type._context,d=i.pendingProps.children,_r(i),p=tn(p),d=d(p),i.flags|=1,nn(n,i,d,o),i.child;case 14:return QE(n,i,i.type,i.pendingProps,o);case 15:return IE(n,i,i.type,i.pendingProps,o);case 19:return kE(n,i,o);case 31:return BC(n,i,o);case 22:return CE(n,i,o,i.pendingProps);case 24:return _r(i),d=tn(jt),n===null?(p=Uf(),p===null&&(p=ot,g=zf(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=o),p=g),i.memoizedState={parent:d,cache:p},Pf(i),ki(i,jt,p)):((n.lanes&o)!==0&&(Ff(n,i),oc(i,null,null,o),sc()),p=n.memoizedState,g=i.memoizedState,p.parent!==d?(p={parent:d,cache:d},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),ki(i,jt,d)):(d=g.cache,ki(i,jt,d),d!==p.cache&&Hf(i,[jt],o,!0))),nn(n,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(s(156,i.tag))}function ai(n){n.flags|=4}function Ip(n,i,o,d,p){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(p&335544128)===p)if(n.stateNode.complete)n.flags|=8192;else if(dB())n.flags|=8192;else throw Dr=zl,Lf}else n.flags&=-16777217}function GE(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!WB(i))if(dB())n.flags|=8192;else throw Dr=zl,Lf}function id(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?mm():536870912,n.lanes|=i,Us|=i)}function pc(n,i){if(!Ue)switch(n.tailMode){case"hidden":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:d.sibling=null}}function dt(n){var i=n.alternate!==null&&n.alternate.child===n.child,o=0,d=0;if(i)for(var p=n.child;p!==null;)o|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=n,p=p.sibling;else for(p=n.child;p!==null;)o|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=n,p=p.sibling;return n.subtreeFlags|=d,n.childLanes=o,i}function bC(n,i,o){var d=i.pendingProps;switch(Tf(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(i),null;case 1:return dt(i),null;case 3:return o=i.stateNode,d=null,n!==null&&(d=n.memoizedState.cache),i.memoizedState.cache!==d&&(i.flags|=2048),Wa(jt),ne(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(Os(i)?ai(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Mf())),dt(i),null;case 26:var p=i.type,g=i.memoizedState;return n===null?(ai(i),g!==null?(dt(i),GE(i,g)):(dt(i),Ip(i,p,null,d,o))):g?g!==n.memoizedState?(ai(i),dt(i),GE(i,g)):(dt(i),i.flags&=-16777217):(n=n.memoizedProps,n!==d&&ai(i),dt(i),Ip(i,p,n,d,o)),null;case 27:if(we(i),o=Ee.current,p=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==d&&ai(i);else{if(!d){if(i.stateNode===null)throw Error(s(166));return dt(i),null}n=de.current,Os(i)?my(i):(n=PB(p,d,o),i.stateNode=n,ai(i))}return dt(i),null;case 5:if(we(i),p=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==d&&ai(i);else{if(!d){if(i.stateNode===null)throw Error(s(166));return dt(i),null}if(g=de.current,Os(i))my(i);else{var v=Ed(Ee.current);switch(g){case 1:g=v.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:g=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":g=v.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":g=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":g=v.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof d.is=="string"?v.createElement("select",{is:d.is}):v.createElement("select"),d.multiple?g.multiple=!0:d.size&&(g.size=d.size);break;default:g=typeof d.is=="string"?v.createElement(p,{is:d.is}):v.createElement(p)}}g[Wt]=i,g[gn]=d;e:for(v=i.child;v!==null;){if(v.tag===5||v.tag===6)g.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===i)break e;for(;v.sibling===null;){if(v.return===null||v.return===i)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}i.stateNode=g;e:switch(an(g,p,d),p){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&ai(i)}}return dt(i),Ip(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,o),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==d&&ai(i);else{if(typeof d!="string"&&i.stateNode===null)throw Error(s(166));if(n=Ee.current,Os(i)){if(n=i.stateNode,o=i.memoizedProps,d=null,p=en,p!==null)switch(p.tag){case 27:case 5:d=p.memoizedProps}n[Wt]=i,n=!!(n.nodeValue===o||d!==null&&d.suppressHydrationWarning===!0||DB(n.nodeValue,o)),n||Ti(i,!0)}else n=Ed(n).createTextNode(d),n[Wt]=i,i.stateNode=n}return dt(i),null;case 31:if(o=i.memoizedState,n===null||n.memoizedState!==null){if(d=Os(i),o!==null){if(n===null){if(!d)throw Error(s(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[Wt]=i}else Sr(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;dt(i),n=!1}else o=Mf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return i.flags&256?(Dn(i),i):(Dn(i),null);if((i.flags&128)!==0)throw Error(s(558))}return dt(i),null;case 13:if(d=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(p=Os(i),d!==null&&d.dehydrated!==null){if(n===null){if(!p)throw Error(s(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(s(317));p[Wt]=i}else Sr(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;dt(i),p=!1}else p=Mf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(Dn(i),i):(Dn(i),null)}return Dn(i),(i.flags&128)!==0?(i.lanes=o,i):(o=d!==null,n=n!==null&&n.memoizedState!==null,o&&(d=i.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool),g=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(g=d.memoizedState.cachePool.pool),g!==p&&(d.flags|=2048)),o!==n&&o&&(i.child.flags|=8192),id(i,i.updateQueue),dt(i),null);case 4:return ne(),n===null&&Kp(i.stateNode.containerInfo),dt(i),null;case 10:return Wa(i.type),dt(i),null;case 19:if(X(vt),d=i.memoizedState,d===null)return dt(i),null;if(p=(i.flags&128)!==0,g=d.rendering,g===null)if(p)pc(d,!1);else{if(Et!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(g=Pl(n),g!==null){for(i.flags|=128,pc(d,!1),n=g.updateQueue,i.updateQueue=n,id(i,n),i.subtreeFlags=0,n=o,o=i.child;o!==null;)fy(o,n),o=o.sibling;return se(vt,vt.current&1|2),Ue&&Za(i,d.treeForkCount),i.child}n=n.sibling}d.tail!==null&&We()>ld&&(i.flags|=128,p=!0,pc(d,!1),i.lanes=4194304)}else{if(!p)if(n=Pl(g),n!==null){if(i.flags|=128,p=!0,n=n.updateQueue,i.updateQueue=n,id(i,n),pc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Ue)return dt(i),null}else 2*We()-d.renderingStartTime>ld&&o!==536870912&&(i.flags|=128,p=!0,pc(d,!1),i.lanes=4194304);d.isBackwards?(g.sibling=i.child,i.child=g):(n=d.last,n!==null?n.sibling=g:i.child=g,d.last=g)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=We(),n.sibling=null,o=vt.current,se(vt,p?o&1|2:o&1),Ue&&Za(i,d.treeForkCount),n):(dt(i),null);case 22:case 23:return Dn(i),Jf(),d=i.memoizedState!==null,n!==null?n.memoizedState!==null!==d&&(i.flags|=8192):d&&(i.flags|=8192),d?(o&536870912)!==0&&(i.flags&128)===0&&(dt(i),i.subtreeFlags&6&&(i.flags|=8192)):dt(i),o=i.updateQueue,o!==null&&id(i,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==o&&(i.flags|=2048),n!==null&&X(Nr),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Wa(jt),dt(i),null;case 25:return null;case 30:return null}throw Error(s(156,i.tag))}function wC(n,i){switch(Tf(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Wa(jt),ne(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return we(i),null;case 31:if(i.memoizedState!==null){if(Dn(i),i.alternate===null)throw Error(s(340));Sr()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(Dn(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(s(340));Sr()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return X(vt),null;case 4:return ne(),null;case 10:return Wa(i.type),null;case 22:case 23:return Dn(i),Jf(),n!==null&&X(Nr),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return Wa(jt),null;case 25:return null;default:return null}}function YE(n,i){switch(Tf(i),i.tag){case 3:Wa(jt),ne();break;case 26:case 27:case 5:we(i);break;case 4:ne();break;case 31:i.memoizedState!==null&&Dn(i);break;case 13:Dn(i);break;case 19:X(vt);break;case 10:Wa(i.type);break;case 22:case 23:Dn(i),Jf(),n!==null&&X(Nr);break;case 24:Wa(jt)}}function hc(n,i){try{var o=i.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&n)===n){d=void 0;var g=o.create,v=o.inst;d=g(),v.destroy=d}o=o.next}while(o!==p)}}catch(Q){tt(i,i.return,Q)}}function $i(n,i,o){try{var d=i.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var g=p.next;d=g;do{if((d.tag&n)===n){var v=d.inst,Q=v.destroy;if(Q!==void 0){v.destroy=void 0,p=i;var D=o,U=Q;try{U()}catch(W){tt(p,D,W)}}}d=d.next}while(d!==g)}}catch(W){tt(i,i.return,W)}}function HE(n){var i=n.updateQueue;if(i!==null){var o=n.stateNode;try{Oy(i,o)}catch(d){tt(n,n.return,d)}}}function zE(n,i,o){o.props=Mr(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(d){tt(n,i,d)}}function gc(n,i){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var d=n.stateNode;break;case 30:d=n.stateNode;break;default:d=n.stateNode}typeof o=="function"?n.refCleanup=o(d):o.current=d}}catch(p){tt(n,i,p)}}function Ia(n,i){var o=n.ref,d=n.refCleanup;if(o!==null)if(typeof d=="function")try{d()}catch(p){tt(n,i,p)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){tt(n,i,p)}else o.current=null}function $E(n){var i=n.type,o=n.memoizedProps,d=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&d.focus();break e;case"img":o.src?d.src=o.src:o.srcSet&&(d.srcset=o.srcSet)}}catch(p){tt(n,n.return,p)}}function Cp(n,i,o){try{var d=n.stateNode;PC(d,n.type,o,i),d[gn]=i}catch(p){tt(n,n.return,p)}}function UE(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ki(n.type)||n.tag===4}function Sp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||UE(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ki(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Op(n,i,o){var d=n.tag;if(d===5||d===6)n=n.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(n),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=qa));else if(d!==4&&(d===27&&Ki(n.type)&&(o=n.stateNode,i=null),n=n.child,n!==null))for(Op(n,i,o),n=n.sibling;n!==null;)Op(n,i,o),n=n.sibling}function rd(n,i,o){var d=n.tag;if(d===5||d===6)n=n.stateNode,i?o.insertBefore(n,i):o.appendChild(n);else if(d!==4&&(d===27&&Ki(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(rd(n,i,o),n=n.sibling;n!==null;)rd(n,i,o),n=n.sibling}function LE(n){var i=n.stateNode,o=n.memoizedProps;try{for(var d=n.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);an(i,d,o),i[Wt]=n,i[gn]=o}catch(g){tt(n,n.return,g)}}var ii=!1,Ct=!1,_p=!1,PE=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function xC(n,i){if(n=n.containerInfo,Xp=Qd,n=ay(n),xf(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var d=o.getSelection&&o.getSelection();if(d&&d.rangeCount!==0){o=d.anchorNode;var p=d.anchorOffset,g=d.focusNode;d=d.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var v=0,Q=-1,D=-1,U=0,W=0,ie=n,P=null;t:for(;;){for(var q;ie!==o||p!==0&&ie.nodeType!==3||(Q=v+p),ie!==g||d!==0&&ie.nodeType!==3||(D=v+d),ie.nodeType===3&&(v+=ie.nodeValue.length),(q=ie.firstChild)!==null;)P=ie,ie=q;for(;;){if(ie===n)break t;if(P===o&&++U===p&&(Q=v),P===g&&++W===d&&(D=v),(q=ie.nextSibling)!==null)break;ie=P,P=ie.parentNode}ie=q}o=Q===-1||D===-1?null:{start:Q,end:D}}else o=null}o=o||{start:0,end:0}}else o=null;for(Wp={focusedElem:n,selectionRange:o},Qd=!1,Ht=i;Ht!==null;)if(i=Ht,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,Ht=n;else for(;Ht!==null;){switch(i=Ht,g=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o<n.length;o++)p=n[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,o=i,p=g.memoizedProps,g=g.memoizedState,d=o.stateNode;try{var ge=Mr(o.type,p);n=d.getSnapshotBeforeUpdate(ge,g),d.__reactInternalSnapshotBeforeUpdate=n}catch(je){tt(o,o.return,je)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,o=n.nodeType,o===9)nh(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":nh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=i.sibling,n!==null){n.return=i.return,Ht=n;break}Ht=i.return}}function FE(n,i,o){var d=o.flags;switch(o.tag){case 0:case 11:case 15:si(n,o),d&4&&hc(5,o);break;case 1:if(si(n,o),d&4)if(n=o.stateNode,i===null)try{n.componentDidMount()}catch(v){tt(o,o.return,v)}else{var p=Mr(o.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(p,i,n.__reactInternalSnapshotBeforeUpdate)}catch(v){tt(o,o.return,v)}}d&64&&HE(o),d&512&&gc(o,o.return);break;case 3:if(si(n,o),d&64&&(n=o.updateQueue,n!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{Oy(n,i)}catch(v){tt(o,o.return,v)}}break;case 27:i===null&&d&4&&LE(o);case 26:case 5:si(n,o),i===null&&d&4&&$E(o),d&512&&gc(o,o.return);break;case 12:si(n,o);break;case 31:si(n,o),d&4&&KE(n,o);break;case 13:si(n,o),d&4&&JE(n,o),d&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=RC.bind(null,o),WC(n,o))));break;case 22:if(d=o.memoizedState!==null||ii,!d){i=i!==null&&i.memoizedState!==null||Ct,p=ii;var g=Ct;ii=d,(Ct=i)&&!g?oi(n,o,(o.subtreeFlags&8772)!==0):si(n,o),ii=p,Ct=g}break;case 30:break;default:si(n,o)}}function VE(n){var i=n.alternate;i!==null&&(n.alternate=null,VE(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&of(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var ft=null,mn=!1;function ri(n,i,o){for(o=o.child;o!==null;)qE(n,i,o),o=o.sibling}function qE(n,i,o){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(Yo,o)}catch{}switch(o.tag){case 26:Ct||Ia(o,i),ri(n,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Ct||Ia(o,i);var d=ft,p=mn;Ki(o.type)&&(ft=o.stateNode,mn=!1),ri(n,i,o),xc(o.stateNode),ft=d,mn=p;break;case 5:Ct||Ia(o,i);case 6:if(d=ft,p=mn,ft=null,ri(n,i,o),ft=d,mn=p,ft!==null)if(mn)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(o.stateNode)}catch(g){tt(o,i,g)}else try{ft.removeChild(o.stateNode)}catch(g){tt(o,i,g)}break;case 18:ft!==null&&(mn?(n=ft,HB(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Zs(n)):HB(ft,o.stateNode));break;case 4:d=ft,p=mn,ft=o.stateNode.containerInfo,mn=!0,ri(n,i,o),ft=d,mn=p;break;case 0:case 11:case 14:case 15:$i(2,o,i),Ct||$i(4,o,i),ri(n,i,o);break;case 1:Ct||(Ia(o,i),d=o.stateNode,typeof d.componentWillUnmount=="function"&&zE(o,i,d)),ri(n,i,o);break;case 21:ri(n,i,o);break;case 22:Ct=(d=Ct)||o.memoizedState!==null,ri(n,i,o),Ct=d;break;default:ri(n,i,o)}}function KE(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Zs(n)}catch(o){tt(i,i.return,o)}}}function JE(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Zs(n)}catch(o){tt(i,i.return,o)}}function jC(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new PE),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new PE),i;default:throw Error(s(435,n.tag))}}function sd(n,i){var o=jC(n);i.forEach(function(d){if(!o.has(d)){o.add(d);var p=DC.bind(null,n,d);d.then(p,p)}})}function yn(n,i){var o=i.deletions;if(o!==null)for(var d=0;d<o.length;d++){var p=o[d],g=n,v=i,Q=v;e:for(;Q!==null;){switch(Q.tag){case 27:if(Ki(Q.type)){ft=Q.stateNode,mn=!1;break e}break;case 5:ft=Q.stateNode,mn=!1;break e;case 3:case 4:ft=Q.stateNode.containerInfo,mn=!0;break e}Q=Q.return}if(ft===null)throw Error(s(160));qE(g,v,p),ft=null,mn=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)ZE(i,n),i=i.sibling}var ha=null;function ZE(n,i){var o=n.alternate,d=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:yn(i,n),En(n),d&4&&($i(3,n,n.return),hc(3,n),$i(5,n,n.return));break;case 1:yn(i,n),En(n),d&512&&(Ct||o===null||Ia(o,o.return)),d&64&&ii&&(n=n.updateQueue,n!==null&&(d=n.callbacks,d!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?d:o.concat(d))));break;case 26:var p=ha;if(yn(i,n),En(n),d&512&&(Ct||o===null||Ia(o,o.return)),d&4){var g=o!==null?o.memoizedState:null;if(d=n.memoizedState,o===null)if(d===null)if(n.stateNode===null){e:{d=n.type,o=n.memoizedProps,p=p.ownerDocument||p;t:switch(d){case"title":g=p.getElementsByTagName("title")[0],(!g||g[$o]||g[Wt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(d),p.head.insertBefore(g,p.querySelector("head > title"))),an(g,d,o),g[Wt]=n,Yt(g),d=g;break e;case"link":var v=ZB("link","href",p).get(d+(o.href||""));if(v){for(var Q=0;Q<v.length;Q++)if(g=v[Q],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){v.splice(Q,1);break t}}g=p.createElement(d),an(g,d,o),p.head.appendChild(g);break;case"meta":if(v=ZB("meta","content",p).get(d+(o.content||""))){for(Q=0;Q<v.length;Q++)if(g=v[Q],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){v.splice(Q,1);break t}}g=p.createElement(d),an(g,d,o),p.head.appendChild(g);break;default:throw Error(s(468,d))}g[Wt]=n,Yt(g),d=g}n.stateNode=d}else XB(p,n.type,n.stateNode);else n.stateNode=JB(p,d,n.memoizedProps);else g!==d?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,d===null?XB(p,n.type,n.stateNode):JB(p,d,n.memoizedProps)):d===null&&n.stateNode!==null&&Cp(n,n.memoizedProps,o.memoizedProps)}break;case 27:yn(i,n),En(n),d&512&&(Ct||o===null||Ia(o,o.return)),o!==null&&d&4&&Cp(n,n.memoizedProps,o.memoizedProps);break;case 5:if(yn(i,n),En(n),d&512&&(Ct||o===null||Ia(o,o.return)),n.flags&32){p=n.stateNode;try{Bs(p,"")}catch(ge){tt(n,n.return,ge)}}d&4&&n.stateNode!=null&&(p=n.memoizedProps,Cp(n,p,o!==null?o.memoizedProps:p)),d&1024&&(_p=!0);break;case 6:if(yn(i,n),En(n),d&4){if(n.stateNode===null)throw Error(s(162));d=n.memoizedProps,o=n.stateNode;try{o.nodeValue=d}catch(ge){tt(n,n.return,ge)}}break;case 3:if(bd=null,p=ha,ha=Bd(i.containerInfo),yn(i,n),ha=p,En(n),d&4&&o!==null&&o.memoizedState.isDehydrated)try{Zs(i.containerInfo)}catch(ge){tt(n,n.return,ge)}_p&&(_p=!1,XE(n));break;case 4:d=ha,ha=Bd(n.stateNode.containerInfo),yn(i,n),En(n),ha=d;break;case 12:yn(i,n),En(n);break;case 31:yn(i,n),En(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,sd(n,d)));break;case 13:yn(i,n),En(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(cd=We()),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,sd(n,d)));break;case 22:p=n.memoizedState!==null;var D=o!==null&&o.memoizedState!==null,U=ii,W=Ct;if(ii=U||p,Ct=W||D,yn(i,n),Ct=W,ii=U,En(n),d&8192)e:for(i=n.stateNode,i._visibility=p?i._visibility&-2:i._visibility|1,p&&(o===null||D||ii||Ct||Gr(n)),o=null,i=n;;){if(i.tag===5||i.tag===26){if(o===null){D=o=i;try{if(g=D.stateNode,p)v=g.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{Q=D.stateNode;var ie=D.memoizedProps.style,P=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;Q.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(ge){tt(D,D.return,ge)}}}else if(i.tag===6){if(o===null){D=i;try{D.stateNode.nodeValue=p?"":D.memoizedProps}catch(ge){tt(D,D.return,ge)}}}else if(i.tag===18){if(o===null){D=i;try{var q=D.stateNode;p?zB(q,!0):zB(D.stateNode,!1)}catch(ge){tt(D,D.return,ge)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}d&4&&(d=n.updateQueue,d!==null&&(o=d.retryQueue,o!==null&&(d.retryQueue=null,sd(n,o))));break;case 19:yn(i,n),En(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,sd(n,d)));break;case 30:break;case 21:break;default:yn(i,n),En(n)}}function En(n){var i=n.flags;if(i&2){try{for(var o,d=n.return;d!==null;){if(UE(d)){o=d;break}d=d.return}if(o==null)throw Error(s(160));switch(o.tag){case 27:var p=o.stateNode,g=Sp(n);rd(n,g,p);break;case 5:var v=o.stateNode;o.flags&32&&(Bs(v,""),o.flags&=-33);var Q=Sp(n);rd(n,Q,v);break;case 3:case 4:var D=o.stateNode.containerInfo,U=Sp(n);Op(n,U,D);break;default:throw Error(s(161))}}catch(W){tt(n,n.return,W)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function XE(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;XE(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function si(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)FE(n,i.alternate,i),i=i.sibling}function Gr(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:$i(4,i,i.return),Gr(i);break;case 1:Ia(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&zE(i,i.return,o),Gr(i);break;case 27:xc(i.stateNode);case 26:case 5:Ia(i,i.return),Gr(i);break;case 22:i.memoizedState===null&&Gr(i);break;case 30:Gr(i);break;default:Gr(i)}n=n.sibling}}function oi(n,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var d=i.alternate,p=n,g=i,v=g.flags;switch(g.tag){case 0:case 11:case 15:oi(p,g,o),hc(4,g);break;case 1:if(oi(p,g,o),d=g,p=d.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(U){tt(d,d.return,U)}if(d=g,p=d.updateQueue,p!==null){var Q=d.stateNode;try{var D=p.shared.hiddenCallbacks;if(D!==null)for(p.shared.hiddenCallbacks=null,p=0;p<D.length;p++)Sy(D[p],Q)}catch(U){tt(d,d.return,U)}}o&&v&64&&HE(g),gc(g,g.return);break;case 27:LE(g);case 26:case 5:oi(p,g,o),o&&d===null&&v&4&&$E(g),gc(g,g.return);break;case 12:oi(p,g,o);break;case 31:oi(p,g,o),o&&v&4&&KE(p,g);break;case 13:oi(p,g,o),o&&v&4&&JE(p,g);break;case 22:g.memoizedState===null&&oi(p,g,o),gc(g,g.return);break;case 30:break;default:oi(p,g,o)}i=i.sibling}}function Np(n,i){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&tc(o))}function Rp(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&tc(n))}function ga(n,i,o,d){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)WE(n,i,o,d),i=i.sibling}function WE(n,i,o,d){var p=i.flags;switch(i.tag){case 0:case 11:case 15:ga(n,i,o,d),p&2048&&hc(9,i);break;case 1:ga(n,i,o,d);break;case 3:ga(n,i,o,d),p&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&tc(n)));break;case 12:if(p&2048){ga(n,i,o,d),n=i.stateNode;try{var g=i.memoizedProps,v=g.id,Q=g.onPostCommit;typeof Q=="function"&&Q(v,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(D){tt(i,i.return,D)}}else ga(n,i,o,d);break;case 31:ga(n,i,o,d);break;case 13:ga(n,i,o,d);break;case 23:break;case 22:g=i.stateNode,v=i.alternate,i.memoizedState!==null?g._visibility&2?ga(n,i,o,d):Ac(n,i):g._visibility&2?ga(n,i,o,d):(g._visibility|=2,Hs(n,i,o,d,(i.subtreeFlags&10256)!==0||!1)),p&2048&&Np(v,i);break;case 24:ga(n,i,o,d),p&2048&&Rp(i.alternate,i);break;default:ga(n,i,o,d)}}function Hs(n,i,o,d,p){for(p=p&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=n,v=i,Q=o,D=d,U=v.flags;switch(v.tag){case 0:case 11:case 15:Hs(g,v,Q,D,p),hc(8,v);break;case 23:break;case 22:var W=v.stateNode;v.memoizedState!==null?W._visibility&2?Hs(g,v,Q,D,p):Ac(g,v):(W._visibility|=2,Hs(g,v,Q,D,p)),p&&U&2048&&Np(v.alternate,v);break;case 24:Hs(g,v,Q,D,p),p&&U&2048&&Rp(v.alternate,v);break;default:Hs(g,v,Q,D,p)}i=i.sibling}}function Ac(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=n,d=i,p=d.flags;switch(d.tag){case 22:Ac(o,d),p&2048&&Np(d.alternate,d);break;case 24:Ac(o,d),p&2048&&Rp(d.alternate,d);break;default:Ac(o,d)}i=i.sibling}}var mc=8192;function zs(n,i,o){if(n.subtreeFlags&mc)for(n=n.child;n!==null;)eB(n,i,o),n=n.sibling}function eB(n,i,o){switch(n.tag){case 26:zs(n,i,o),n.flags&mc&&n.memoizedState!==null&&uS(o,ha,n.memoizedState,n.memoizedProps);break;case 5:zs(n,i,o);break;case 3:case 4:var d=ha;ha=Bd(n.stateNode.containerInfo),zs(n,i,o),ha=d;break;case 22:n.memoizedState===null&&(d=n.alternate,d!==null&&d.memoizedState!==null?(d=mc,mc=16777216,zs(n,i,o),mc=d):zs(n,i,o));break;default:zs(n,i,o)}}function tB(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function yc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var d=i[o];Ht=d,aB(d,n)}tB(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)nB(n),n=n.sibling}function nB(n){switch(n.tag){case 0:case 11:case 15:yc(n),n.flags&2048&&$i(9,n,n.return);break;case 3:yc(n);break;case 12:yc(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,od(n)):yc(n);break;default:yc(n)}}function od(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var d=i[o];Ht=d,aB(d,n)}tB(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:$i(8,i,i.return),od(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,od(i));break;default:od(i)}n=n.sibling}}function aB(n,i){for(;Ht!==null;){var o=Ht;switch(o.tag){case 0:case 11:case 15:$i(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var d=o.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:tc(o.memoizedState.cache)}if(d=o.child,d!==null)d.return=o,Ht=d;else e:for(o=n;Ht!==null;){d=Ht;var p=d.sibling,g=d.return;if(VE(d),d===o){Ht=null;break e}if(p!==null){p.return=g,Ht=p;break e}Ht=g}}}var QC={getCacheForType:function(n){var i=tn(jt),o=i.data.get(n);return o===void 0&&(o=n(),i.data.set(n,o)),o},cacheSignal:function(){return tn(jt).controller.signal}},IC=typeof WeakMap=="function"?WeakMap:Map,Je=0,ot=null,Te=null,He=0,et=0,Tn=null,Ui=!1,$s=!1,Dp=!1,ci=0,Et=0,Li=0,Yr=0,Tp=0,kn=0,Us=0,Ec=null,Bn=null,kp=!1,cd=0,iB=0,ld=1/0,dd=null,Pi=null,Nt=0,Fi=null,Ls=null,li=0,Mp=0,Gp=null,rB=null,Bc=0,Yp=null;function Mn(){return(Je&2)!==0&&He!==0?He&-He:Y.T!==null?Pp():vm()}function sB(){if(kn===0)if((He&536870912)===0||Ue){var n=yl;yl<<=1,(yl&3932160)===0&&(yl=262144),kn=n}else kn=536870912;return n=Rn.current,n!==null&&(n.flags|=32),kn}function vn(n,i,o){(n===ot&&(et===2||et===9)||n.cancelPendingCommit!==null)&&(Ps(n,0),Vi(n,He,kn,!1)),zo(n,o),((Je&2)===0||n!==ot)&&(n===ot&&((Je&2)===0&&(Yr|=o),Et===4&&Vi(n,He,kn,!1)),Ca(n))}function oB(n,i,o){if((Je&6)!==0)throw Error(s(327));var d=!o&&(i&127)===0&&(i&n.expiredLanes)===0||Ho(n,i),p=d?OC(n,i):zp(n,i,!0),g=d;do{if(p===0){$s&&!d&&Vi(n,i,0,!1);break}else{if(o=n.current.alternate,g&&!CC(o)){p=zp(n,i,!1),g=!1;continue}if(p===2){if(g=i,n.errorRecoveryDisabledLanes&g)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){i=v;e:{var Q=n;p=Ec;var D=Q.current.memoizedState.isDehydrated;if(D&&(Ps(Q,v).flags|=256),v=zp(Q,v,!1),v!==2){if(Dp&&!D){Q.errorRecoveryDisabledLanes|=g,Yr|=g,p=4;break e}g=Bn,Bn=p,g!==null&&(Bn===null?Bn=g:Bn.push.apply(Bn,g))}p=v}if(g=!1,p!==2)continue}}if(p===1){Ps(n,0),Vi(n,i,0,!0);break}e:{switch(d=n,g=p,g){case 0:case 1:throw Error(s(345));case 4:if((i&4194048)!==i)break;case 6:Vi(d,i,kn,!Ui);break e;case 2:Bn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((i&62914560)===i&&(p=cd+300-We(),10<p)){if(Vi(d,i,kn,!Ui),Bl(d,0,!0)!==0)break e;li=i,d.timeoutHandle=GB(cB.bind(null,d,o,Bn,dd,kp,i,kn,Yr,Us,Ui,g,"Throttled",-0,0),p);break e}cB(d,o,Bn,dd,kp,i,kn,Yr,Us,Ui,g,null,-0,0)}}break}while(!0);Ca(n)}function cB(n,i,o,d,p,g,v,Q,D,U,W,ie,P,q){if(n.timeoutHandle=-1,ie=i.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qa},eB(i,g,ie);var ge=(g&62914560)===g?cd-We():(g&4194048)===g?iB-We():0;if(ge=fS(ie,ge),ge!==null){li=g,n.cancelPendingCommit=ge(AB.bind(null,n,i,g,o,d,p,v,Q,D,W,ie,null,P,q)),Vi(n,g,v,!U);return}}AB(n,i,g,o,d,p,v,Q,D)}function CC(n){for(var i=n;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var d=0;d<o.length;d++){var p=o[d],g=p.getSnapshot;p=p.value;try{if(!_n(g(),p))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Vi(n,i,o,d){i&=~Tp,i&=~Yr,n.suspendedLanes|=i,n.pingedLanes&=~i,d&&(n.warmLanes|=i),d=n.expirationTimes;for(var p=i;0<p;){var g=31-On(p),v=1<<g;d[g]=-1,p&=~v}o!==0&&ym(n,o,i)}function ud(){return(Je&6)===0?(vc(0),!1):!0}function Hp(){if(Te!==null){if(et===0)var n=Te.return;else n=Te,Xa=Or=null,np(n),Ts=null,ac=0,n=Te;for(;n!==null;)YE(n.alternate,n),n=n.return;Te=null}}function Ps(n,i){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,qC(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),li=0,Hp(),ot=n,Te=o=Ja(n.current,null),He=i,et=0,Tn=null,Ui=!1,$s=Ho(n,i),Dp=!1,Us=kn=Tp=Yr=Li=Et=0,Bn=Ec=null,kp=!1,(i&8)!==0&&(i|=i&32);var d=n.entangledLanes;if(d!==0)for(n=n.entanglements,d&=i;0<d;){var p=31-On(d),g=1<<p;i|=n[p],d&=~g}return ci=i,Nl(),o}function lB(n,i){_e=null,Y.H=uc,i===Ds||i===Hl?(i=jy(),et=3):i===Lf?(i=jy(),et=4):et=i===yp?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Tn=i,Te===null&&(Et=1,ed(n,Wn(i,n.current)))}function dB(){var n=Rn.current;return n===null?!0:(He&4194048)===He?aa===null:(He&62914560)===He||(He&536870912)!==0?n===aa:!1}function uB(){var n=Y.H;return Y.H=uc,n===null?uc:n}function fB(){var n=Y.A;return Y.A=QC,n}function fd(){Et=4,Ui||(He&4194048)!==He&&Rn.current!==null||($s=!0),(Li&134217727)===0&&(Yr&134217727)===0||ot===null||Vi(ot,He,kn,!1)}function zp(n,i,o){var d=Je;Je|=2;var p=uB(),g=fB();(ot!==n||He!==i)&&(dd=null,Ps(n,i)),i=!1;var v=Et;e:do try{if(et!==0&&Te!==null){var Q=Te,D=Tn;switch(et){case 8:Hp(),v=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(i=!0);var U=et;if(et=0,Tn=null,Fs(n,Q,D,U),o&&$s){v=0;break e}break;default:U=et,et=0,Tn=null,Fs(n,Q,D,U)}}SC(),v=Et;break}catch(W){lB(n,W)}while(!0);return i&&n.shellSuspendCounter++,Xa=Or=null,Je=d,Y.H=p,Y.A=g,Te===null&&(ot=null,He=0,Nl()),v}function SC(){for(;Te!==null;)pB(Te)}function OC(n,i){var o=Je;Je|=2;var d=uB(),p=fB();ot!==n||He!==i?(dd=null,ld=We()+500,Ps(n,i)):$s=Ho(n,i);e:do try{if(et!==0&&Te!==null){i=Te;var g=Tn;t:switch(et){case 1:et=0,Tn=null,Fs(n,i,g,1);break;case 2:case 9:if(wy(g)){et=0,Tn=null,hB(i);break}i=function(){et!==2&&et!==9||ot!==n||(et=7),Ca(n)},g.then(i,i);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:wy(g)?(et=0,Tn=null,hB(i)):(et=0,Tn=null,Fs(n,i,g,7));break;case 5:var v=null;switch(Te.tag){case 26:v=Te.memoizedState;case 5:case 27:var Q=Te;if(v?WB(v):Q.stateNode.complete){et=0,Tn=null;var D=Q.sibling;if(D!==null)Te=D;else{var U=Q.return;U!==null?(Te=U,pd(U)):Te=null}break t}}et=0,Tn=null,Fs(n,i,g,5);break;case 6:et=0,Tn=null,Fs(n,i,g,6);break;case 8:Hp(),Et=6;break e;default:throw Error(s(462))}}_C();break}catch(W){lB(n,W)}while(!0);return Xa=Or=null,Y.H=d,Y.A=p,Je=o,Te!==null?0:(ot=null,He=0,Nl(),Et)}function _C(){for(;Te!==null&&!Kn();)pB(Te)}function pB(n){var i=ME(n.alternate,n,ci);n.memoizedProps=n.pendingProps,i===null?pd(n):Te=i}function hB(n){var i=n,o=i.alternate;switch(i.tag){case 15:case 0:i=_E(o,i,i.pendingProps,i.type,void 0,He);break;case 11:i=_E(o,i,i.pendingProps,i.type.render,i.ref,He);break;case 5:np(i);default:YE(o,i),i=Te=fy(i,ci),i=ME(o,i,ci)}n.memoizedProps=n.pendingProps,i===null?pd(n):Te=i}function Fs(n,i,o,d){Xa=Or=null,np(i),Ts=null,ac=0;var p=i.return;try{if(EC(n,p,i,o,He)){Et=1,ed(n,Wn(o,n.current)),Te=null;return}}catch(g){if(p!==null)throw Te=p,g;Et=1,ed(n,Wn(o,n.current)),Te=null;return}i.flags&32768?(Ue||d===1?n=!0:$s||(He&536870912)!==0?n=!1:(Ui=n=!0,(d===2||d===9||d===3||d===6)&&(d=Rn.current,d!==null&&d.tag===13&&(d.flags|=16384))),gB(i,n)):pd(i)}function pd(n){var i=n;do{if((i.flags&32768)!==0){gB(i,Ui);return}n=i.return;var o=bC(i.alternate,i,ci);if(o!==null){Te=o;return}if(i=i.sibling,i!==null){Te=i;return}Te=i=n}while(i!==null);Et===0&&(Et=5)}function gB(n,i){do{var o=wC(n.alternate,n);if(o!==null){o.flags&=32767,Te=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(n=n.sibling,n!==null)){Te=n;return}Te=n=o}while(n!==null);Et=6,Te=null}function AB(n,i,o,d,p,g,v,Q,D){n.cancelPendingCommit=null;do hd();while(Nt!==0);if((Je&6)!==0)throw Error(s(327));if(i!==null){if(i===n.current)throw Error(s(177));if(g=i.lanes|i.childLanes,g|=Sf,d0(n,o,g,v,Q,D),n===ot&&(Te=ot=null,He=0),Ls=i,Fi=n,li=o,Mp=g,Gp=p,rB=d,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,TC(Al,function(){return vB(),null})):(n.callbackNode=null,n.callbackPriority=0),d=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||d){d=Y.T,Y.T=null,p=V.p,V.p=2,v=Je,Je|=4;try{xC(n,i,o)}finally{Je=v,V.p=p,Y.T=d}}Nt=1,mB(),yB(),EB()}}function mB(){if(Nt===1){Nt=0;var n=Fi,i=Ls,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=Y.T,Y.T=null;var d=V.p;V.p=2;var p=Je;Je|=4;try{ZE(i,n);var g=Wp,v=ay(n.containerInfo),Q=g.focusedElem,D=g.selectionRange;if(v!==Q&&Q&&Q.ownerDocument&&ny(Q.ownerDocument.documentElement,Q)){if(D!==null&&xf(Q)){var U=D.start,W=D.end;if(W===void 0&&(W=U),"selectionStart"in Q)Q.selectionStart=U,Q.selectionEnd=Math.min(W,Q.value.length);else{var ie=Q.ownerDocument||document,P=ie&&ie.defaultView||window;if(P.getSelection){var q=P.getSelection(),ge=Q.textContent.length,je=Math.min(D.start,ge),it=D.end===void 0?je:Math.min(D.end,ge);!q.extend&&je>it&&(v=it,it=je,je=v);var H=ty(Q,je),G=ty(Q,it);if(H&&G&&(q.rangeCount!==1||q.anchorNode!==H.node||q.anchorOffset!==H.offset||q.focusNode!==G.node||q.focusOffset!==G.offset)){var $=ie.createRange();$.setStart(H.node,H.offset),q.removeAllRanges(),je>it?(q.addRange($),q.extend(G.node,G.offset)):($.setEnd(G.node,G.offset),q.addRange($))}}}}for(ie=[],q=Q;q=q.parentNode;)q.nodeType===1&&ie.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof Q.focus=="function"&&Q.focus(),Q=0;Q<ie.length;Q++){var ae=ie[Q];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}Qd=!!Xp,Wp=Xp=null}finally{Je=p,V.p=d,Y.T=o}}n.current=i,Nt=2}}function yB(){if(Nt===2){Nt=0;var n=Fi,i=Ls,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=Y.T,Y.T=null;var d=V.p;V.p=2;var p=Je;Je|=4;try{FE(n,i.alternate,i)}finally{Je=p,V.p=d,Y.T=o}}Nt=3}}function EB(){if(Nt===4||Nt===3){Nt=0,_t();var n=Fi,i=Ls,o=li,d=rB;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Nt=5:(Nt=0,Ls=Fi=null,BB(n,n.pendingLanes));var p=n.pendingLanes;if(p===0&&(Pi=null),rf(o),i=i.stateNode,Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(Yo,i,void 0,(i.current.flags&128)===128)}catch{}if(d!==null){i=Y.T,p=V.p,V.p=2,Y.T=null;try{for(var g=n.onRecoverableError,v=0;v<d.length;v++){var Q=d[v];g(Q.value,{componentStack:Q.stack})}}finally{Y.T=i,V.p=p}}(li&3)!==0&&hd(),Ca(n),p=n.pendingLanes,(o&261930)!==0&&(p&42)!==0?n===Yp?Bc++:(Bc=0,Yp=n):Bc=0,vc(0)}}function BB(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,tc(i)))}function hd(){return mB(),yB(),EB(),vB()}function vB(){if(Nt!==5)return!1;var n=Fi,i=Mp;Mp=0;var o=rf(li),d=Y.T,p=V.p;try{V.p=32>o?32:o,Y.T=null,o=Gp,Gp=null;var g=Fi,v=li;if(Nt=0,Ls=Fi=null,li=0,(Je&6)!==0)throw Error(s(331));var Q=Je;if(Je|=4,nB(g.current),WE(g,g.current,v,o),Je=Q,vc(0,!1),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(Yo,g)}catch{}return!0}finally{V.p=p,Y.T=d,BB(n,i)}}function bB(n,i,o){i=Wn(o,i),i=mp(n.stateNode,i,2),n=Yi(n,i,2),n!==null&&(zo(n,2),Ca(n))}function tt(n,i,o){if(n.tag===3)bB(n,n,o);else for(;i!==null;){if(i.tag===3){bB(i,n,o);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Pi===null||!Pi.has(d))){n=Wn(o,n),o=wE(2),d=Yi(i,o,2),d!==null&&(xE(o,d,i,n),zo(d,2),Ca(d));break}}i=i.return}}function $p(n,i,o){var d=n.pingCache;if(d===null){d=n.pingCache=new IC;var p=new Set;d.set(i,p)}else p=d.get(i),p===void 0&&(p=new Set,d.set(i,p));p.has(o)||(Dp=!0,p.add(o),n=NC.bind(null,n,i,o),i.then(n,n))}function NC(n,i,o){var d=n.pingCache;d!==null&&d.delete(i),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,ot===n&&(He&o)===o&&(Et===4||Et===3&&(He&62914560)===He&&300>We()-cd?(Je&2)===0&&Ps(n,0):Tp|=o,Us===He&&(Us=0)),Ca(n)}function wB(n,i){i===0&&(i=mm()),n=Ir(n,i),n!==null&&(zo(n,i),Ca(n))}function RC(n){var i=n.memoizedState,o=0;i!==null&&(o=i.retryLane),wB(n,o)}function DC(n,i){var o=0;switch(n.tag){case 31:case 13:var d=n.stateNode,p=n.memoizedState;p!==null&&(o=p.retryLane);break;case 19:d=n.stateNode;break;case 22:d=n.stateNode._retryCache;break;default:throw Error(s(314))}d!==null&&d.delete(i),wB(n,o)}function TC(n,i){return Xt(n,i)}var gd=null,Vs=null,Up=!1,Ad=!1,Lp=!1,qi=0;function Ca(n){n!==Vs&&n.next===null&&(Vs===null?gd=Vs=n:Vs=Vs.next=n),Ad=!0,Up||(Up=!0,MC())}function vc(n,i){if(!Lp&&Ad){Lp=!0;do for(var o=!1,d=gd;d!==null;){if(n!==0){var p=d.pendingLanes;if(p===0)var g=0;else{var v=d.suspendedLanes,Q=d.pingedLanes;g=(1<<31-On(42|n)+1)-1,g&=p&~(v&~Q),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,IB(d,g))}else g=He,g=Bl(d,d===ot?g:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(g&3)===0||Ho(d,g)||(o=!0,IB(d,g));d=d.next}while(o);Lp=!1}}function kC(){xB()}function xB(){Ad=Up=!1;var n=0;qi!==0&&VC()&&(n=qi);for(var i=We(),o=null,d=gd;d!==null;){var p=d.next,g=jB(d,i);g===0?(d.next=null,o===null?gd=p:o.next=p,p===null&&(Vs=o)):(o=d,(n!==0||(g&3)!==0)&&(Ad=!0)),d=p}Nt!==0&&Nt!==5||vc(n),qi!==0&&(qi=0)}function jB(n,i){for(var o=n.suspendedLanes,d=n.pingedLanes,p=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var v=31-On(g),Q=1<<v,D=p[v];D===-1?((Q&o)===0||(Q&d)!==0)&&(p[v]=l0(Q,i)):D<=i&&(n.expiredLanes|=Q),g&=~Q}if(i=ot,o=He,o=Bl(n,n===i?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d=n.callbackNode,o===0||n===i&&(et===2||et===9)||n.cancelPendingCommit!==null)return d!==null&&d!==null&&Fa(d),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||Ho(n,o)){if(i=o&-o,i===n.callbackPriority)return i;switch(d!==null&&Fa(d),rf(o)){case 2:case 8:o=ps;break;case 32:o=Al;break;case 268435456:o=Am;break;default:o=Al}return d=QB.bind(null,n),o=Xt(o,d),n.callbackPriority=i,n.callbackNode=o,i}return d!==null&&d!==null&&Fa(d),n.callbackPriority=2,n.callbackNode=null,2}function QB(n,i){if(Nt!==0&&Nt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(hd()&&n.callbackNode!==o)return null;var d=He;return d=Bl(n,n===ot?d:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d===0?null:(oB(n,d,i),jB(n,We()),n.callbackNode!=null&&n.callbackNode===o?QB.bind(null,n):null)}function IB(n,i){if(hd())return null;oB(n,i,!0)}function MC(){KC(function(){(Je&6)!==0?Xt(vr,kC):xB()})}function Pp(){if(qi===0){var n=Ns;n===0&&(n=ml,ml<<=1,(ml&261888)===0&&(ml=256)),qi=n}return qi}function CB(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:xl(""+n)}function SB(n,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,n.id&&o.setAttribute("form",n.id),i.parentNode.insertBefore(o,i),n=new FormData(n),o.parentNode.removeChild(o),n}function GC(n,i,o,d,p){if(i==="submit"&&o&&o.stateNode===p){var g=CB((p[gn]||null).action),v=d.submitter;v&&(i=(i=v[gn]||null)?CB(i.formAction):v.getAttribute("formAction"),i!==null&&(g=i,v=null));var Q=new Cl("action","action",null,d,p);n.push({event:Q,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(qi!==0){var D=v?SB(p,v):new FormData(p);up(o,{pending:!0,data:D,method:p.method,action:g},null,D)}}else typeof g=="function"&&(Q.preventDefault(),D=v?SB(p,v):new FormData(p),up(o,{pending:!0,data:D,method:p.method,action:g},g,D))},currentTarget:p}]})}}for(var Fp=0;Fp<Cf.length;Fp++){var Vp=Cf[Fp],YC=Vp.toLowerCase(),HC=Vp[0].toUpperCase()+Vp.slice(1);pa(YC,"on"+HC)}pa(sy,"onAnimationEnd"),pa(oy,"onAnimationIteration"),pa(cy,"onAnimationStart"),pa("dblclick","onDoubleClick"),pa("focusin","onFocus"),pa("focusout","onBlur"),pa(nC,"onTransitionRun"),pa(aC,"onTransitionStart"),pa(iC,"onTransitionCancel"),pa(ly,"onTransitionEnd"),ys("onMouseEnter",["mouseout","mouseover"]),ys("onMouseLeave",["mouseout","mouseover"]),ys("onPointerEnter",["pointerout","pointerover"]),ys("onPointerLeave",["pointerout","pointerover"]),wr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wr("onBeforeInput",["compositionend","keypress","textInput","paste"]),wr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bc));function OB(n,i){i=(i&4)!==0;for(var o=0;o<n.length;o++){var d=n[o],p=d.event;d=d.listeners;e:{var g=void 0;if(i)for(var v=d.length-1;0<=v;v--){var Q=d[v],D=Q.instance,U=Q.currentTarget;if(Q=Q.listener,D!==g&&p.isPropagationStopped())break e;g=Q,p.currentTarget=U;try{g(p)}catch(W){_l(W)}p.currentTarget=null,g=D}else for(v=0;v<d.length;v++){if(Q=d[v],D=Q.instance,U=Q.currentTarget,Q=Q.listener,D!==g&&p.isPropagationStopped())break e;g=Q,p.currentTarget=U;try{g(p)}catch(W){_l(W)}p.currentTarget=null,g=D}}}}function ke(n,i){var o=i[sf];o===void 0&&(o=i[sf]=new Set);var d=n+"__bubble";o.has(d)||(_B(i,n,2,!1),o.add(d))}function qp(n,i,o){var d=0;i&&(d|=4),_B(o,n,d,i)}var md="_reactListening"+Math.random().toString(36).slice(2);function Kp(n){if(!n[md]){n[md]=!0,xm.forEach(function(o){o!=="selectionchange"&&(zC.has(o)||qp(o,!1,n),qp(o,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[md]||(i[md]=!0,qp("selectionchange",!1,i))}}function _B(n,i,o,d){switch(sv(i)){case 2:var p=gS;break;case 8:p=AS;break;default:p=dh}o=p.bind(null,i,o,n),p=void 0,!gf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),d?p!==void 0?n.addEventListener(i,o,{capture:!0,passive:p}):n.addEventListener(i,o,!0):p!==void 0?n.addEventListener(i,o,{passive:p}):n.addEventListener(i,o,!1)}function Jp(n,i,o,d,p){var g=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var v=d.tag;if(v===3||v===4){var Q=d.stateNode.containerInfo;if(Q===p)break;if(v===4)for(v=d.return;v!==null;){var D=v.tag;if((D===3||D===4)&&v.stateNode.containerInfo===p)return;v=v.return}for(;Q!==null;){if(v=gs(Q),v===null)return;if(D=v.tag,D===5||D===6||D===26||D===27){d=g=v;continue e}Q=Q.parentNode}}d=d.return}km(function(){var U=g,W=pf(o),ie=[];e:{var P=dy.get(n);if(P!==void 0){var q=Cl,ge=n;switch(n){case"keypress":if(Ql(o)===0)break e;case"keydown":case"keyup":q=D0;break;case"focusin":ge="focus",q=Ef;break;case"focusout":ge="blur",q=Ef;break;case"beforeblur":case"afterblur":q=Ef;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=Ym;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=b0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=M0;break;case sy:case oy:case cy:q=j0;break;case ly:q=Y0;break;case"scroll":case"scrollend":q=B0;break;case"wheel":q=z0;break;case"copy":case"cut":case"paste":q=I0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=zm;break;case"toggle":case"beforetoggle":q=U0}var je=(i&4)!==0,it=!je&&(n==="scroll"||n==="scrollend"),H=je?P!==null?P+"Capture":null:P;je=[];for(var G=U,$;G!==null;){var ae=G;if($=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||$===null||H===null||(ae=Lo(G,H),ae!=null&&je.push(wc(G,ae,$))),it)break;G=G.return}0<je.length&&(P=new q(P,ge,null,o,W),ie.push({event:P,listeners:je}))}}if((i&7)===0){e:{if(P=n==="mouseover"||n==="pointerover",q=n==="mouseout"||n==="pointerout",P&&o!==ff&&(ge=o.relatedTarget||o.fromElement)&&(gs(ge)||ge[hs]))break e;if((q||P)&&(P=W.window===W?W:(P=W.ownerDocument)?P.defaultView||P.parentWindow:window,q?(ge=o.relatedTarget||o.toElement,q=U,ge=ge?gs(ge):null,ge!==null&&(it=l(ge),je=ge.tag,ge!==it||je!==5&&je!==27&&je!==6)&&(ge=null)):(q=null,ge=U),q!==ge)){if(je=Ym,ae="onMouseLeave",H="onMouseEnter",G="mouse",(n==="pointerout"||n==="pointerover")&&(je=zm,ae="onPointerLeave",H="onPointerEnter",G="pointer"),it=q==null?P:Uo(q),$=ge==null?P:Uo(ge),P=new je(ae,G+"leave",q,o,W),P.target=it,P.relatedTarget=$,ae=null,gs(W)===U&&(je=new je(H,G+"enter",ge,o,W),je.target=$,je.relatedTarget=it,ae=je),it=ae,q&&ge)t:{for(je=$C,H=q,G=ge,$=0,ae=H;ae;ae=je(ae))$++;ae=0;for(var ve=G;ve;ve=je(ve))ae++;for(;0<$-ae;)H=je(H),$--;for(;0<ae-$;)G=je(G),ae--;for(;$--;){if(H===G||G!==null&&H===G.alternate){je=H;break t}H=je(H),G=je(G)}je=null}else je=null;q!==null&&NB(ie,P,q,je,!1),ge!==null&&it!==null&&NB(ie,it,ge,je,!0)}}e:{if(P=U?Uo(U):window,q=P.nodeName&&P.nodeName.toLowerCase(),q==="select"||q==="input"&&P.type==="file")var qe=Km;else if(Vm(P))if(Jm)qe=W0;else{qe=Z0;var me=J0}else q=P.nodeName,!q||q.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?U&&uf(U.elementType)&&(qe=Km):qe=X0;if(qe&&(qe=qe(n,U))){qm(ie,qe,o,W);break e}me&&me(n,P,U),n==="focusout"&&U&&P.type==="number"&&U.memoizedProps.value!=null&&df(P,"number",P.value)}switch(me=U?Uo(U):window,n){case"focusin":(Vm(me)||me.contentEditable==="true")&&(xs=me,jf=U,Xo=null);break;case"focusout":Xo=jf=xs=null;break;case"mousedown":Qf=!0;break;case"contextmenu":case"mouseup":case"dragend":Qf=!1,iy(ie,o,W);break;case"selectionchange":if(tC)break;case"keydown":case"keyup":iy(ie,o,W)}var Re;if(vf)e:{switch(n){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else ws?Pm(n,o)&&(ze="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(ze="onCompositionStart");ze&&($m&&o.locale!=="ko"&&(ws||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&ws&&(Re=Mm()):(Ni=W,Af="value"in Ni?Ni.value:Ni.textContent,ws=!0)),me=yd(U,ze),0<me.length&&(ze=new Hm(ze,n,null,o,W),ie.push({event:ze,listeners:me}),Re?ze.data=Re:(Re=Fm(o),Re!==null&&(ze.data=Re)))),(Re=P0?F0(n,o):V0(n,o))&&(ze=yd(U,"onBeforeInput"),0<ze.length&&(me=new Hm("onBeforeInput","beforeinput",null,o,W),ie.push({event:me,listeners:ze}),me.data=Re)),GC(ie,n,U,o,W)}OB(ie,i)})}function wc(n,i,o){return{instance:n,listener:i,currentTarget:o}}function yd(n,i){for(var o=i+"Capture",d=[];n!==null;){var p=n,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=Lo(n,o),p!=null&&d.unshift(wc(n,p,g)),p=Lo(n,i),p!=null&&d.push(wc(n,p,g))),n.tag===3)return d;n=n.return}return[]}function $C(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function NB(n,i,o,d,p){for(var g=i._reactName,v=[];o!==null&&o!==d;){var Q=o,D=Q.alternate,U=Q.stateNode;if(Q=Q.tag,D!==null&&D===d)break;Q!==5&&Q!==26&&Q!==27||U===null||(D=U,p?(U=Lo(o,g),U!=null&&v.unshift(wc(o,U,D))):p||(U=Lo(o,g),U!=null&&v.push(wc(o,U,D)))),o=o.return}v.length!==0&&n.push({event:i,listeners:v})}var UC=/\r\n?/g,LC=/\u0000|\uFFFD/g;function RB(n){return(typeof n=="string"?n:""+n).replace(UC,`
|
|
49
|
-
`).replace(LC,"")}function DB(n,i){return i=RB(i),RB(n)===i}function at(n,i,o,d,p,g){switch(o){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||Bs(n,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&Bs(n,""+d);break;case"className":bl(n,"class",d);break;case"tabIndex":bl(n,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":bl(n,o,d);break;case"style":Dm(n,d,g);break;case"data":if(i!=="object"){bl(n,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||o!=="href")){n.removeAttribute(o);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(o);break}d=xl(""+d),n.setAttribute(o,d);break;case"action":case"formAction":if(typeof d=="function"){n.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(o==="formAction"?(i!=="input"&&at(n,i,"name",p.name,p,null),at(n,i,"formEncType",p.formEncType,p,null),at(n,i,"formMethod",p.formMethod,p,null),at(n,i,"formTarget",p.formTarget,p,null)):(at(n,i,"encType",p.encType,p,null),at(n,i,"method",p.method,p,null),at(n,i,"target",p.target,p,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(o);break}d=xl(""+d),n.setAttribute(o,d);break;case"onClick":d!=null&&(n.onclick=qa);break;case"onScroll":d!=null&&ke("scroll",n);break;case"onScrollEnd":d!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(o=d.__html,o!=null){if(p.children!=null)throw Error(s(60));n.innerHTML=o}}break;case"multiple":n.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":n.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){n.removeAttribute("xlink:href");break}o=xl(""+d),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(o,""+d):n.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":d===!0?n.setAttribute(o,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(o,d):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?n.setAttribute(o,d):n.removeAttribute(o);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?n.removeAttribute(o):n.setAttribute(o,d);break;case"popover":ke("beforetoggle",n),ke("toggle",n),vl(n,"popover",d);break;case"xlinkActuate":Va(n,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Va(n,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Va(n,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Va(n,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Va(n,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Va(n,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Va(n,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Va(n,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Va(n,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":vl(n,"is",d);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=y0.get(o)||o,vl(n,o,d))}}function Zp(n,i,o,d,p,g){switch(o){case"style":Dm(n,d,g);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(o=d.__html,o!=null){if(p.children!=null)throw Error(s(60));n.innerHTML=o}}break;case"children":typeof d=="string"?Bs(n,d):(typeof d=="number"||typeof d=="bigint")&&Bs(n,""+d);break;case"onScroll":d!=null&&ke("scroll",n);break;case"onScrollEnd":d!=null&&ke("scrollend",n);break;case"onClick":d!=null&&(n.onclick=qa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jm.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),i=o.slice(2,p?o.length-7:void 0),g=n[gn]||null,g=g!=null?g[o]:null,typeof g=="function"&&n.removeEventListener(i,g,p),typeof d=="function")){typeof g!="function"&&g!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(i,d,p);break e}o in n?n[o]=d:d===!0?n.setAttribute(o,""):vl(n,o,d)}}}function an(n,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var d=!1,p=!1,g;for(g in o)if(o.hasOwnProperty(g)){var v=o[g];if(v!=null)switch(g){case"src":d=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:at(n,i,g,v,o,null)}}p&&at(n,i,"srcSet",o.srcSet,o,null),d&&at(n,i,"src",o.src,o,null);return;case"input":ke("invalid",n);var Q=g=v=p=null,D=null,U=null;for(d in o)if(o.hasOwnProperty(d)){var W=o[d];if(W!=null)switch(d){case"name":p=W;break;case"type":v=W;break;case"checked":D=W;break;case"defaultChecked":U=W;break;case"value":g=W;break;case"defaultValue":Q=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(s(137,i));break;default:at(n,i,d,W,o,null)}}Om(n,g,Q,D,U,v,p,!1);return;case"select":ke("invalid",n),d=v=g=null;for(p in o)if(o.hasOwnProperty(p)&&(Q=o[p],Q!=null))switch(p){case"value":g=Q;break;case"defaultValue":v=Q;break;case"multiple":d=Q;default:at(n,i,p,Q,o,null)}i=g,o=v,n.multiple=!!d,i!=null?Es(n,!!d,i,!1):o!=null&&Es(n,!!d,o,!0);return;case"textarea":ke("invalid",n),g=p=d=null;for(v in o)if(o.hasOwnProperty(v)&&(Q=o[v],Q!=null))switch(v){case"value":d=Q;break;case"defaultValue":p=Q;break;case"children":g=Q;break;case"dangerouslySetInnerHTML":if(Q!=null)throw Error(s(91));break;default:at(n,i,v,Q,o,null)}Nm(n,d,p,g);return;case"option":for(D in o)if(o.hasOwnProperty(D)&&(d=o[D],d!=null))switch(D){case"selected":n.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:at(n,i,D,d,o,null)}return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(d=0;d<bc.length;d++)ke(bc[d],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in o)if(o.hasOwnProperty(U)&&(d=o[U],d!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:at(n,i,U,d,o,null)}return;default:if(uf(i)){for(W in o)o.hasOwnProperty(W)&&(d=o[W],d!==void 0&&Zp(n,i,W,d,o,void 0));return}}for(Q in o)o.hasOwnProperty(Q)&&(d=o[Q],d!=null&&at(n,i,Q,d,o,null))}function PC(n,i,o,d){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,v=null,Q=null,D=null,U=null,W=null;for(q in o){var ie=o[q];if(o.hasOwnProperty(q)&&ie!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":D=ie;default:d.hasOwnProperty(q)||at(n,i,q,null,d,ie)}}for(var P in d){var q=d[P];if(ie=o[P],d.hasOwnProperty(P)&&(q!=null||ie!=null))switch(P){case"type":g=q;break;case"name":p=q;break;case"checked":U=q;break;case"defaultChecked":W=q;break;case"value":v=q;break;case"defaultValue":Q=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,i));break;default:q!==ie&&at(n,i,P,q,d,ie)}}lf(n,v,Q,D,U,W,g,p);return;case"select":q=v=Q=P=null;for(g in o)if(D=o[g],o.hasOwnProperty(g)&&D!=null)switch(g){case"value":break;case"multiple":q=D;default:d.hasOwnProperty(g)||at(n,i,g,null,d,D)}for(p in d)if(g=d[p],D=o[p],d.hasOwnProperty(p)&&(g!=null||D!=null))switch(p){case"value":P=g;break;case"defaultValue":Q=g;break;case"multiple":v=g;default:g!==D&&at(n,i,p,g,d,D)}i=Q,o=v,d=q,P!=null?Es(n,!!o,P,!1):!!d!=!!o&&(i!=null?Es(n,!!o,i,!0):Es(n,!!o,o?[]:"",!1));return;case"textarea":q=P=null;for(Q in o)if(p=o[Q],o.hasOwnProperty(Q)&&p!=null&&!d.hasOwnProperty(Q))switch(Q){case"value":break;case"children":break;default:at(n,i,Q,null,d,p)}for(v in d)if(p=d[v],g=o[v],d.hasOwnProperty(v)&&(p!=null||g!=null))switch(v){case"value":P=p;break;case"defaultValue":q=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:p!==g&&at(n,i,v,p,d,g)}_m(n,P,q);return;case"option":for(var ge in o)if(P=o[ge],o.hasOwnProperty(ge)&&P!=null&&!d.hasOwnProperty(ge))switch(ge){case"selected":n.selected=!1;break;default:at(n,i,ge,null,d,P)}for(D in d)if(P=d[D],q=o[D],d.hasOwnProperty(D)&&P!==q&&(P!=null||q!=null))switch(D){case"selected":n.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:at(n,i,D,P,d,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var je in o)P=o[je],o.hasOwnProperty(je)&&P!=null&&!d.hasOwnProperty(je)&&at(n,i,je,null,d,P);for(U in d)if(P=d[U],q=o[U],d.hasOwnProperty(U)&&P!==q&&(P!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,i));break;default:at(n,i,U,P,d,q)}return;default:if(uf(i)){for(var it in o)P=o[it],o.hasOwnProperty(it)&&P!==void 0&&!d.hasOwnProperty(it)&&Zp(n,i,it,void 0,d,P);for(W in d)P=d[W],q=o[W],!d.hasOwnProperty(W)||P===q||P===void 0&&q===void 0||Zp(n,i,W,P,d,q);return}}for(var H in o)P=o[H],o.hasOwnProperty(H)&&P!=null&&!d.hasOwnProperty(H)&&at(n,i,H,null,d,P);for(ie in d)P=d[ie],q=o[ie],!d.hasOwnProperty(ie)||P===q||P==null&&q==null||at(n,i,ie,P,d,q)}function TB(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function FC(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,o=performance.getEntriesByType("resource"),d=0;d<o.length;d++){var p=o[d],g=p.transferSize,v=p.initiatorType,Q=p.duration;if(g&&Q&&TB(v)){for(v=0,Q=p.responseEnd,d+=1;d<o.length;d++){var D=o[d],U=D.startTime;if(U>Q)break;var W=D.transferSize,ie=D.initiatorType;W&&TB(ie)&&(D=D.responseEnd,v+=W*(D<Q?1:(Q-U)/(D-U)))}if(--d,i+=8*(g+v)/(p.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Xp=null,Wp=null;function Ed(n){return n.nodeType===9?n:n.ownerDocument}function kB(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function MB(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function eh(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var th=null;function VC(){var n=window.event;return n&&n.type==="popstate"?n===th?!1:(th=n,!0):(th=null,!1)}var GB=typeof setTimeout=="function"?setTimeout:void 0,qC=typeof clearTimeout=="function"?clearTimeout:void 0,YB=typeof Promise=="function"?Promise:void 0,KC=typeof queueMicrotask=="function"?queueMicrotask:typeof YB<"u"?function(n){return YB.resolve(null).then(n).catch(JC)}:GB;function JC(n){setTimeout(function(){throw n})}function Ki(n){return n==="head"}function HB(n,i){var o=i,d=0;do{var p=o.nextSibling;if(n.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(d===0){n.removeChild(p),Zs(i);return}d--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")d++;else if(o==="html")xc(n.ownerDocument.documentElement);else if(o==="head"){o=n.ownerDocument.head,xc(o);for(var g=o.firstChild;g;){var v=g.nextSibling,Q=g.nodeName;g[$o]||Q==="SCRIPT"||Q==="STYLE"||Q==="LINK"&&g.rel.toLowerCase()==="stylesheet"||o.removeChild(g),g=v}}else o==="body"&&xc(n.ownerDocument.body);o=p}while(o);Zs(i)}function zB(n,i){var o=n;n=0;do{var d=o.nextSibling;if(o.nodeType===1?i?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(i?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(n===0)break;n--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||n++;o=d}while(o)}function nh(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":nh(o),of(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function ZC(n,i,o,d){for(;n.nodeType===1;){var p=o;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!d&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(d){if(!n[$o])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==p.rel||n.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||n.getAttribute("title")!==(p.title==null?null:p.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(p.src==null?null:p.src)||n.getAttribute("type")!==(p.type==null?null:p.type)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=ia(n.nextSibling),n===null)break}return null}function XC(n,i,o){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=ia(n.nextSibling),n===null))return null;return n}function $B(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=ia(n.nextSibling),n===null))return null;return n}function ah(n){return n.data==="$?"||n.data==="$~"}function ih(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function WC(n,i){var o=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||o.readyState!=="loading")i();else{var d=function(){i(),o.removeEventListener("DOMContentLoaded",d)};o.addEventListener("DOMContentLoaded",d),n._reactRetry=d}}function ia(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var rh=null;function UB(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"||o==="/&"){if(i===0)return ia(n.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}n=n.nextSibling}return null}function LB(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return n;i--}else o!=="/$"&&o!=="/&"||i++}n=n.previousSibling}return null}function PB(n,i,o){switch(i=Ed(o),n){case"html":if(n=i.documentElement,!n)throw Error(s(452));return n;case"head":if(n=i.head,!n)throw Error(s(453));return n;case"body":if(n=i.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function xc(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);of(n)}var ra=new Map,FB=new Set;function Bd(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var di=V.d;V.d={f:eS,r:tS,D:nS,C:aS,L:iS,m:rS,X:oS,S:sS,M:cS};function eS(){var n=di.f(),i=ud();return n||i}function tS(n){var i=As(n);i!==null&&i.tag===5&&i.type==="form"?lE(i):di.r(n)}var qs=typeof document>"u"?null:document;function VB(n,i,o){var d=qs;if(d&&typeof i=="string"&&i){var p=Zn(i);p='link[rel="'+n+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),FB.has(p)||(FB.add(p),n={rel:n,crossOrigin:o,href:i},d.querySelector(p)===null&&(i=d.createElement("link"),an(i,"link",n),Yt(i),d.head.appendChild(i)))}}function nS(n){di.D(n),VB("dns-prefetch",n,null)}function aS(n,i){di.C(n,i),VB("preconnect",n,i)}function iS(n,i,o){di.L(n,i,o);var d=qs;if(d&&n&&i){var p='link[rel="preload"][as="'+Zn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Zn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Zn(o.imageSizes)+'"]')):p+='[href="'+Zn(n)+'"]';var g=p;switch(i){case"style":g=Ks(n);break;case"script":g=Js(n)}ra.has(g)||(n=m({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:n,as:i},o),ra.set(g,n),d.querySelector(p)!==null||i==="style"&&d.querySelector(jc(g))||i==="script"&&d.querySelector(Qc(g))||(i=d.createElement("link"),an(i,"link",n),Yt(i),d.head.appendChild(i)))}}function rS(n,i){di.m(n,i);var o=qs;if(o&&n){var d=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+Zn(d)+'"][href="'+Zn(n)+'"]',g=p;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Js(n)}if(!ra.has(g)&&(n=m({rel:"modulepreload",href:n},i),ra.set(g,n),o.querySelector(p)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Qc(g)))return}d=o.createElement("link"),an(d,"link",n),Yt(d),o.head.appendChild(d)}}}function sS(n,i,o){di.S(n,i,o);var d=qs;if(d&&n){var p=ms(d).hoistableStyles,g=Ks(n);i=i||"default";var v=p.get(g);if(!v){var Q={loading:0,preload:null};if(v=d.querySelector(jc(g)))Q.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},o),(o=ra.get(g))&&sh(n,o);var D=v=d.createElement("link");Yt(D),an(D,"link",n),D._p=new Promise(function(U,W){D.onload=U,D.onerror=W}),D.addEventListener("load",function(){Q.loading|=1}),D.addEventListener("error",function(){Q.loading|=2}),Q.loading|=4,vd(v,i,d)}v={type:"stylesheet",instance:v,count:1,state:Q},p.set(g,v)}}}function oS(n,i){di.X(n,i);var o=qs;if(o&&n){var d=ms(o).hoistableScripts,p=Js(n),g=d.get(p);g||(g=o.querySelector(Qc(p)),g||(n=m({src:n,async:!0},i),(i=ra.get(p))&&oh(n,i),g=o.createElement("script"),Yt(g),an(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},d.set(p,g))}}function cS(n,i){di.M(n,i);var o=qs;if(o&&n){var d=ms(o).hoistableScripts,p=Js(n),g=d.get(p);g||(g=o.querySelector(Qc(p)),g||(n=m({src:n,async:!0,type:"module"},i),(i=ra.get(p))&&oh(n,i),g=o.createElement("script"),Yt(g),an(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},d.set(p,g))}}function qB(n,i,o,d){var p=(p=Ee.current)?Bd(p):null;if(!p)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Ks(o.href),o=ms(p).hoistableStyles,d=o.get(i),d||(d={type:"style",instance:null,count:0,state:null},o.set(i,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Ks(o.href);var g=ms(p).hoistableStyles,v=g.get(n);if(v||(p=p.ownerDocument||p,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,v),(g=p.querySelector(jc(n)))&&!g._p&&(v.instance=g,v.state.loading=5),ra.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},ra.set(n,o),g||lS(p,n,o,v.state))),i&&d===null)throw Error(s(528,""));return v}if(i&&d!==null)throw Error(s(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Js(o),o=ms(p).hoistableScripts,d=o.get(i),d||(d={type:"script",instance:null,count:0,state:null},o.set(i,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function Ks(n){return'href="'+Zn(n)+'"'}function jc(n){return'link[rel="stylesheet"]['+n+"]"}function KB(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function lS(n,i,o,d){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=1:(i=n.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=1}),i.addEventListener("error",function(){return d.loading|=2}),an(i,"link",o),Yt(i),n.head.appendChild(i))}function Js(n){return'[src="'+Zn(n)+'"]'}function Qc(n){return"script[async]"+n}function JB(n,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var d=n.querySelector('style[data-href~="'+Zn(o.href)+'"]');if(d)return i.instance=d,Yt(d),d;var p=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return d=(n.ownerDocument||n).createElement("style"),Yt(d),an(d,"style",p),vd(d,o.precedence,n),i.instance=d;case"stylesheet":p=Ks(o.href);var g=n.querySelector(jc(p));if(g)return i.state.loading|=4,i.instance=g,Yt(g),g;d=KB(o),(p=ra.get(p))&&sh(d,p),g=(n.ownerDocument||n).createElement("link"),Yt(g);var v=g;return v._p=new Promise(function(Q,D){v.onload=Q,v.onerror=D}),an(g,"link",d),i.state.loading|=4,vd(g,o.precedence,n),i.instance=g;case"script":return g=Js(o.src),(p=n.querySelector(Qc(g)))?(i.instance=p,Yt(p),p):(d=o,(p=ra.get(g))&&(d=m({},o),oh(d,p)),n=n.ownerDocument||n,p=n.createElement("script"),Yt(p),an(p,"link",d),n.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error(s(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(d=i.instance,i.state.loading|=4,vd(d,o.precedence,n));return i.instance}function vd(n,i,o){for(var d=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=d.length?d[d.length-1]:null,g=p,v=0;v<d.length;v++){var Q=d[v];if(Q.dataset.precedence===i)g=Q;else if(g!==p)break}g?g.parentNode.insertBefore(n,g.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(n,i.firstChild))}function sh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function oh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var bd=null;function ZB(n,i,o){if(bd===null){var d=new Map,p=bd=new Map;p.set(o,d)}else p=bd,d=p.get(o),d||(d=new Map,p.set(o,d));if(d.has(n))return d;for(d.set(n,null),o=o.getElementsByTagName(n),p=0;p<o.length;p++){var g=o[p];if(!(g[$o]||g[Wt]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var v=g.getAttribute(i)||"";v=n+v;var Q=d.get(v);Q?Q.push(g):d.set(v,[g])}}return d}function XB(n,i,o){n=n.ownerDocument||n,n.head.insertBefore(o,i==="title"?n.querySelector("head > title"):null)}function dS(n,i,o){if(o===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function WB(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function uS(n,i,o,d){if(o.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Ks(d.href),g=i.querySelector(jc(p));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=wd.bind(n),i.then(n,n)),o.state.loading|=4,o.instance=g,Yt(g);return}g=i.ownerDocument||i,d=KB(d),(p=ra.get(p))&&sh(d,p),g=g.createElement("link"),Yt(g);var v=g;v._p=new Promise(function(Q,D){v.onload=Q,v.onerror=D}),an(g,"link",d),o.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=wd.bind(n),i.addEventListener("load",o),i.addEventListener("error",o))}}var ch=0;function fS(n,i){return n.stylesheets&&n.count===0&&jd(n,n.stylesheets),0<n.count||0<n.imgCount?function(o){var d=setTimeout(function(){if(n.stylesheets&&jd(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+i);0<n.imgBytes&&ch===0&&(ch=62500*FC());var p=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&jd(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>ch?50:800)+i);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(d),clearTimeout(p)}}:null}function wd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jd(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var xd=null;function jd(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,xd=new Map,i.forEach(pS,n),xd=null,wd.call(n))}function pS(n,i){if(!(i.state.loading&4)){var o=xd.get(n);if(o)var d=o.get(null);else{o=new Map,xd.set(n,o);for(var p=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var v=p[g];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(o.set(v.dataset.precedence,v),d=v)}d&&o.set(null,d)}p=i.instance,v=p.getAttribute("data-precedence"),g=o.get(v)||d,g===d&&o.set(null,p),o.set(v,p),this.count++,d=wd.bind(this),p.addEventListener("load",d),p.addEventListener("error",d),g?g.parentNode.insertBefore(p,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(p,n.firstChild)),i.state.loading|=4}}var Ic={$$typeof:O,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function hS(n,i,o,d,p,g,v,Q,D){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nf(0),this.hiddenUpdates=nf(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function ev(n,i,o,d,p,g,v,Q,D,U,W,ie){return n=new hS(n,i,o,v,D,U,W,ie,Q),i=1,g===!0&&(i|=24),g=Nn(3,null,null,i),n.current=g,g.stateNode=n,i=zf(),i.refCount++,n.pooledCache=i,i.refCount++,g.memoizedState={element:d,isDehydrated:o,cache:i},Pf(g),n}function tv(n){return n?(n=Is,n):Is}function nv(n,i,o,d,p,g){p=tv(p),d.context===null?d.context=p:d.pendingContext=p,d=Gi(i),d.payload={element:o},g=g===void 0?null:g,g!==null&&(d.callback=g),o=Yi(n,d,i),o!==null&&(vn(o,n,i),rc(o,n,i))}function av(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<i?o:i}}function lh(n,i){av(n,i),(n=n.alternate)&&av(n,i)}function iv(n){if(n.tag===13||n.tag===31){var i=Ir(n,67108864);i!==null&&vn(i,n,67108864),lh(n,67108864)}}function rv(n){if(n.tag===13||n.tag===31){var i=Mn();i=af(i);var o=Ir(n,i);o!==null&&vn(o,n,i),lh(n,i)}}var Qd=!0;function gS(n,i,o,d){var p=Y.T;Y.T=null;var g=V.p;try{V.p=2,dh(n,i,o,d)}finally{V.p=g,Y.T=p}}function AS(n,i,o,d){var p=Y.T;Y.T=null;var g=V.p;try{V.p=8,dh(n,i,o,d)}finally{V.p=g,Y.T=p}}function dh(n,i,o,d){if(Qd){var p=uh(d);if(p===null)Jp(n,i,d,Id,o),ov(n,d);else if(yS(p,n,i,o,d))d.stopPropagation();else if(ov(n,d),i&4&&-1<mS.indexOf(n)){for(;p!==null;){var g=As(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var v=br(g.pendingLanes);if(v!==0){var Q=g;for(Q.pendingLanes|=2,Q.entangledLanes|=2;v;){var D=1<<31-On(v);Q.entanglements[1]|=D,v&=~D}Ca(g),(Je&6)===0&&(ld=We()+500,vc(0))}}break;case 31:case 13:Q=Ir(g,2),Q!==null&&vn(Q,g,2),ud(),lh(g,2)}if(g=uh(d),g===null&&Jp(n,i,d,Id,o),g===p)break;p=g}p!==null&&d.stopPropagation()}else Jp(n,i,d,null,o)}}function uh(n){return n=pf(n),fh(n)}var Id=null;function fh(n){if(Id=null,n=gs(n),n!==null){var i=l(n);if(i===null)n=null;else{var o=i.tag;if(o===13){if(n=u(i),n!==null)return n;n=null}else if(o===31){if(n=f(i),n!==null)return n;n=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Id=n,null}function sv(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Go()){case vr:return 2;case ps:return 8;case Al:case a0:return 32;case Am:return 268435456;default:return 32}default:return 32}}var ph=!1,Ji=null,Zi=null,Xi=null,Cc=new Map,Sc=new Map,Wi=[],mS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ov(n,i){switch(n){case"focusin":case"focusout":Ji=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Xi=null;break;case"pointerover":case"pointerout":Cc.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sc.delete(i.pointerId)}}function Oc(n,i,o,d,p,g){return n===null||n.nativeEvent!==g?(n={blockedOn:i,domEventName:o,eventSystemFlags:d,nativeEvent:g,targetContainers:[p]},i!==null&&(i=As(i),i!==null&&iv(i)),n):(n.eventSystemFlags|=d,i=n.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),n)}function yS(n,i,o,d,p){switch(i){case"focusin":return Ji=Oc(Ji,n,i,o,d,p),!0;case"dragenter":return Zi=Oc(Zi,n,i,o,d,p),!0;case"mouseover":return Xi=Oc(Xi,n,i,o,d,p),!0;case"pointerover":var g=p.pointerId;return Cc.set(g,Oc(Cc.get(g)||null,n,i,o,d,p)),!0;case"gotpointercapture":return g=p.pointerId,Sc.set(g,Oc(Sc.get(g)||null,n,i,o,d,p)),!0}return!1}function cv(n){var i=gs(n.target);if(i!==null){var o=l(i);if(o!==null){if(i=o.tag,i===13){if(i=u(o),i!==null){n.blockedOn=i,bm(n.priority,function(){rv(o)});return}}else if(i===31){if(i=f(o),i!==null){n.blockedOn=i,bm(n.priority,function(){rv(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Cd(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var o=uh(n.nativeEvent);if(o===null){o=n.nativeEvent;var d=new o.constructor(o.type,o);ff=d,o.target.dispatchEvent(d),ff=null}else return i=As(o),i!==null&&iv(i),n.blockedOn=o,!1;i.shift()}return!0}function lv(n,i,o){Cd(n)&&o.delete(i)}function ES(){ph=!1,Ji!==null&&Cd(Ji)&&(Ji=null),Zi!==null&&Cd(Zi)&&(Zi=null),Xi!==null&&Cd(Xi)&&(Xi=null),Cc.forEach(lv),Sc.forEach(lv)}function Sd(n,i){n.blockedOn===i&&(n.blockedOn=null,ph||(ph=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,ES)))}var Od=null;function dv(n){Od!==n&&(Od=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Od===n&&(Od=null);for(var i=0;i<n.length;i+=3){var o=n[i],d=n[i+1],p=n[i+2];if(typeof d!="function"){if(fh(d||o)===null)continue;break}var g=As(o);g!==null&&(n.splice(i,3),i-=3,up(g,{pending:!0,data:p,method:o.method,action:d},d,p))}}))}function Zs(n){function i(D){return Sd(D,n)}Ji!==null&&Sd(Ji,n),Zi!==null&&Sd(Zi,n),Xi!==null&&Sd(Xi,n),Cc.forEach(i),Sc.forEach(i);for(var o=0;o<Wi.length;o++){var d=Wi[o];d.blockedOn===n&&(d.blockedOn=null)}for(;0<Wi.length&&(o=Wi[0],o.blockedOn===null);)cv(o),o.blockedOn===null&&Wi.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(d=0;d<o.length;d+=3){var p=o[d],g=o[d+1],v=p[gn]||null;if(typeof g=="function")v||dv(o);else if(v){var Q=null;if(g&&g.hasAttribute("formAction")){if(p=g,v=g[gn]||null)Q=v.formAction;else if(fh(p)!==null)continue}else Q=v.action;typeof Q=="function"?o[d+1]=Q:(o.splice(d,3),d-=3),dv(o)}}}function uv(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(v){return p=v})},focusReset:"manual",scroll:"manual"})}function i(){p!==null&&(p(),p=null),d||setTimeout(o,20)}function o(){if(!d&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,p=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){d=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),p!==null&&(p(),p=null)}}}function hh(n){this._internalRoot=n}_d.prototype.render=hh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(s(409));var o=i.current,d=Mn();nv(o,d,n,i,null,null)},_d.prototype.unmount=hh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;nv(n.current,2,null,n,null,null),ud(),i[hs]=null}};function _d(n){this._internalRoot=n}_d.prototype.unstable_scheduleHydration=function(n){if(n){var i=vm();n={blockedOn:null,target:n,priority:i};for(var o=0;o<Wi.length&&i!==0&&i<Wi[o].priority;o++);Wi.splice(o,0,n),o===0&&cv(n)}};var fv=t.version;if(fv!=="19.2.8")throw Error(s(527,fv,"19.2.8"));V.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=A(i),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var BS={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nd.isDisabled&&Nd.supportsFiber)try{Yo=Nd.inject(BS),Sn=Nd}catch{}}return Nc.createRoot=function(n,i){if(!c(n))throw Error(s(299));var o=!1,d="",p=EE,g=BE,v=vE;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError)),i=ev(n,1,!1,null,null,o,d,null,p,g,v,uv),n[hs]=i.current,Kp(n),new hh(i)},Nc.hydrateRoot=function(n,i,o){if(!c(n))throw Error(s(299));var d=!1,p="",g=EE,v=BE,Q=vE,D=null;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(Q=o.onRecoverableError),o.formState!==void 0&&(D=o.formState)),i=ev(n,1,!0,i,o??null,d,p,D,g,v,Q,uv),i.context=tv(null),o=i.current,d=Mn(),d=af(d),p=Gi(d),p.callback=null,Yi(o,p,d),o=d,i.current.lanes=o,zo(i,o),Ca(i),n[hs]=i.current,Kp(n),new _d(i)},Nc.version="19.2.8",Nc}var wv;function DS(){if(wv)return yh.exports;wv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yh.exports=RS(),yh.exports}var TS=DS();const Dw=[{kind:"planning.overview",product:"planning",label:"Overview",description:"Project progress and the highest planning attention.",href:"#/overview",navigation:"primary"},{kind:"planning.graph",product:"planning",label:"Graph",description:"Relationships, dependencies, and an accessible structural view.",href:"#/graph",navigation:"primary"},{kind:"planning.board",product:"planning",label:"Board",description:"Planning work grouped for comparison without losing project context.",href:"#/board",navigation:"primary"},{kind:"planning.list",product:"planning",label:"List",description:"A dense, filterable inventory of project work.",href:"#/list",navigation:"primary"},{kind:"planning.sprints",product:"planning",label:"Sprints",description:"Delivery cadence and current sprint context.",href:"#/sprints",navigation:"primary"},{kind:"planning.activity",product:"planning",label:"Activity",description:"Durable project changes in chronological order.",href:"#/activity",navigation:"primary"},{kind:"planning.search",product:"planning",label:"Search",description:"Callable Planning and Operate destinations from access-safe projections.",href:"#/search",navigation:"primary"},{kind:"planning.console",product:"planning",label:"Console",description:"Every planr-* capability, its dashboard home, and how to run it.",href:"#/console",navigation:"primary"},{kind:"planning.detail",product:"planning",label:"Artifact detail",description:"Exact planning artifact identity and delivery trace.",href:"#/detail/:subjectId",navigation:"hidden"},{kind:"planning.spec",product:"planning",label:"SPEC trace",description:"The exact SPEC, operating origin, and delivery trace.",href:"#/plan/specs/:subjectId",navigation:"hidden"},{kind:"system.diagnostics",product:null,label:"Diagnostics",description:"Compatibility, package, and API checks.",href:"#/diagnostics",navigation:"hidden"},{kind:"operate.today",product:"operate",label:"Today",description:"Material change, highest-priority attention, active Cycle, evidence, and the exact continuation.",href:"#/operate/today",navigation:"primary"},{kind:"operate.cycles",product:"operate",label:"Cycles",description:"Operating cycles from Observe through Learn.",href:"#/operate/cycles",navigation:"primary"},{kind:"operate.cycle",product:"operate",label:"Cycle detail",description:"Exact stages, assignments, gates, blockers, and proof.",href:"#/operate/cycles/:subjectId",navigation:"hidden"},{kind:"operate.review",product:"operate",label:"Review",description:"Evidence-backed owner choices, consequences, and immutable disposition.",href:"#/operate/cycles/:cycleId/reviews/:reviewId",navigation:"hidden"},{kind:"operate.inbox",product:"operate",label:"Inbox",description:"Decisions, approvals, and verification that need attention.",href:"#/operate/inbox",navigation:"primary"},{kind:"operate.inbox-item",product:"operate",label:"Inbox item",description:"An exact projected decision, approval, or verification item.",href:"#/operate/inbox/:subjectId",navigation:"hidden"},{kind:"operate.actions",product:"operate",label:"Actions",description:"Proposed, approved, active, blocked, and verified action work.",href:"#/operate/actions",navigation:"primary"},{kind:"operate.action",product:"operate",label:"Action detail",description:"Exact proposal, authority, execution, verification, and recovery context.",href:"#/operate/actions/:subjectId",navigation:"hidden"},{kind:"operate.action-planning",product:"operate",label:"Planning handoff",description:"Review the exact governed bridge into Planning without starting PLAN or SHIP.",href:"#/operate/actions/:subjectId/planning",navigation:"hidden"},{kind:"operate.evidence",product:"operate",label:"Evidence",description:"Claims, support, contradiction, access, freshness, and limitations.",href:"#/operate/evidence",navigation:"primary"},{kind:"operate.evidence-item",product:"operate",label:"Evidence detail",description:"An exact access-safe evidence identity.",href:"#/operate/evidence/:subjectId",navigation:"hidden"},{kind:"operate.outcomes",product:"operate",label:"Outcomes",description:"Observed effects, metrics, outcomes, and durable learning.",href:"#/operate/outcomes",navigation:"primary"},{kind:"operate.outcome",product:"operate",label:"Outcome detail",description:"An exact outcome and its projected learning.",href:"#/operate/outcomes/:subjectId",navigation:"hidden"},{kind:"operate.history",product:"operate",label:"History",description:"Causality, event history, checkpoint, tail, and replay proof.",href:"#/operate/history",navigation:"primary"},{kind:"operate.recovery",product:"operate",label:"Recovery",description:"Proven state, unknown state, and only canonical next steps.",href:"#/operate/recovery",navigation:"contextual"}],Tw=Dw,kw=new Map(Dw.map(e=>[e.kind,e]));function bh(e,t){return{kind:e,product:t,subjectId:null}}function Td(e,t,a){return{kind:e,product:t,subjectId:a}}function kS(e,t){return{kind:"operate.review",product:"operate",cycleId:e,subjectId:t}}const Mw=Object.freeze({kind:"system.diagnostics",product:null,subjectId:null});function nu(e){return!(e==="."||e===".."||e.length===0||e.length>256||[...e].some(t=>{const a=t.codePointAt(0)??0;return a<=31||a===127||t==="/"||t==="\\"}))}function Xs(e){if(!e||/%(?:2f|5c)/iu.test(e))return null;try{const t=decodeURIComponent(e);return nu(t)?t:null}catch{return null}}const Aa=Object.freeze({kind:"not-found",product:null,subjectId:null});function Ha(e){if(e===""||e==="#")return bh("planning.overview","planning");if(!e.startsWith("#/")||e.includes("?")||e.indexOf("#",1)!==-1)return Aa;const t=e.slice(2);if(!t||t.endsWith("/")||t.includes("//"))return Aa;const a=t.split("/");if(a.length===1){if(a[0]==="diagnostics")return Mw;const s=new Map([["overview","planning.overview"],["graph","planning.graph"],["board","planning.board"],["list","planning.list"],["sprints","planning.sprints"],["activity","planning.activity"],["search","planning.search"],["console","planning.console"]]).get(a[0]);if(s)return bh(s,"planning")}if(a.length===2&&a[0]==="detail"){const s=Xs(a[1]);return s?Td("planning.detail","planning",s):Aa}if(a.length===3&&a[0]==="plan"&&a[1]==="specs"){const s=Xs(a[2]);return s?Td("planning.spec","planning",s):Aa}if(a[0]!=="operate")return Aa;if(a.length===2){const s=new Map([["today","operate.today"],["cycles","operate.cycles"],["inbox","operate.inbox"],["actions","operate.actions"],["evidence","operate.evidence"],["outcomes","operate.outcomes"],["history","operate.history"],["recovery","operate.recovery"]]).get(a[1]);return s?bh(s,"operate"):Aa}if(a.length===3){const s=Xs(a[2]);if(!s)return Aa;const c=new Map([["cycles","operate.cycle"],["inbox","operate.inbox-item"],["actions","operate.action"],["evidence","operate.evidence-item"],["outcomes","operate.outcome"]]).get(a[1]);return c?Td(c,"operate",s):Aa}if(a.length===4&&a[1]==="actions"&&a[3]==="planning"){const s=Xs(a[2]);return s?Td("operate.action-planning","operate",s):Aa}if(a.length===5&&a[1]==="cycles"&&a[3]==="reviews"){const s=Xs(a[2]),c=Xs(a[4]);return s&&c?kS(s,c):Aa}return Aa}function Pa(e){const t=kw.get(e.kind);if(!t)throw new Error(`Unknown dashboard route kind: ${String(e.kind)}`);if(e.kind==="operate.review"){if(!nu(e.cycleId)||!nu(e.subjectId))throw new Error("Dashboard Review routes require valid opaque Cycle and Review identities.");return t.href.replace(":cycleId",encodeURIComponent(e.cycleId)).replace(":reviewId",encodeURIComponent(e.subjectId))}if(t.href.includes(":subjectId")){const a=e.subjectId;if(typeof a!="string"||!nu(a))throw new Error("Dashboard detail routes require a valid opaque subject identity.");return t.href.replace(":subjectId",encodeURIComponent(a))}return t.href}function So(e){return e.kind==="not-found"?null:kw.get(e.kind)??null}function Oo(e){const t=Ha(e);return t.kind==="not-found"?null:Pa(t)===e?e:null}function MS(e){return e.kind==="not-found"?"not-found":e.kind==="operate.review"?`${e.product}:${e.kind}:${e.cycleId}:${e.subjectId}`:`${e.product??"system"}:${e.kind}:${e.subjectId??"collection"}`}const xv=Object.freeze({kind:"current",subjectId:null}),GS=B.createContext(null);function YS(e){return e?[e.productArea,e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId??"no-cycle",e.subjectId??"collection",String(e.generation)].join(""):"unbound"}function jv(e){e.dispatchEvent(new CustomEvent("openplanr-live-state-close",{bubbles:!1}));for(const t of e.querySelectorAll("[data-live-unsafe-control]"))t instanceof HTMLDetailsElement&&(t.open=!1),t instanceof HTMLDialogElement&&t.open&&t.close()}function Qv(e){return e.querySelector("[data-live-successor]")??e.querySelector("[data-live-focus-return]")??e}function HS({children:e,route:t,binding:a,transition:s=xv,trackedSubjectId:c=null}){const l=B.useRef(null),[u,f]=B.useState(!1),h=`${MS(t)}${YS(a)}`,A=B.useRef(h),y=(a==null?void 0:a.subjectId)??t.subjectId??c,m=s.kind==="current"||s.subjectId!==null&&s.subjectId===y?s:xv,E=`${m.kind}:${m.subjectId??""}:${m.successorHref??""}`;B.useLayoutEffect(()=>{const C=l.current;!C||A.current===h||(jv(C),f(!1),Qv(C).focus({preventScroll:!0}),A.current=h)},[h]),B.useLayoutEffect(()=>{const C=l.current;!C||E.startsWith("current:")||(jv(C),f(!1),Qv(C).focus({preventScroll:!0}))},[E]),B.useEffect(()=>{if(!u||typeof window>"u")return;const C=()=>f(!1);return window.addEventListener("pointerup",C,{capture:!0,once:!0}),window.addEventListener("pointercancel",C,{capture:!0,once:!0}),()=>{window.removeEventListener("pointerup",C,{capture:!0}),window.removeEventListener("pointercancel",C,{capture:!0})}},[u]);const b=m.successorHref?Oo(m.successorHref):null,w=b?So(Ha(b)):null,x=B.useMemo(()=>Object.freeze({routeScopeKey:h,pointerActive:u,mutationSafe:m.kind==="current",transition:m}),[m,u,h]),j=C=>{C.isPrimary&&f(!0)},I=C=>{C.isPrimary&&f(!1)};return r.jsx(GS.Provider,{value:x,children:r.jsxs("div",{ref:l,tabIndex:-1,"data-live-state-boundary":m.kind,"data-live-route-scope":h,onPointerDownCapture:j,onPointerUpCapture:I,onPointerCancelCapture:I,children:[m.kind!=="current"?r.jsxs("div",{className:"op-projection-boundary__notice",role:"status","aria-live":"polite",children:[r.jsx("strong",{children:m.kind==="deleted"?"This item is no longer available":"This item has a newer successor"}),r.jsx("span",{children:m.kind==="deleted"?"The current public projection no longer includes this item. Unsafe controls were closed.":"A newer public subject is available. Unsafe controls were closed before continuing."}),b&&w?r.jsxs("a",{className:"op-inline-action","data-live-successor":!0,href:b,children:["Open ",w.label]}):null]}):null,e]})})}class ee extends Error{constructor(a,s){super(`${a}: ${s}`);Rd(this,"code","DASHBOARD_RESPONSE_INVALID");this.path=a,this.name="DashboardValidationError"}}const zS=96,$S=25e4;function Gw(e,t){const a=new WeakSet;let s=0;const c=(l,u)=>{if(l===null||typeof l!="object"&&typeof l!="function")return;if(typeof l=="function")throw new ee(t,"contains an executable value");if(s+=1,u>zS||s>$S)throw new ee(t,"contains an over-complex object graph");if(a.has(l))throw new ee(t,"contains a repeated or cyclic object reference");a.add(l);const f=Object.getPrototypeOf(l),h=Array.isArray(l)?Array.prototype:Object.prototype;if(f!==h&&f!==null)throw new ee(t,"contains a non-plain nested object");const A=Object.getOwnPropertyDescriptors(l);for(const y of Reflect.ownKeys(A)){if(typeof y!="string")throw new ee(t,"contains a symbol field");const m=A[y];if((m==null?void 0:m.get)!==void 0||(m==null?void 0:m.set)!==void 0)throw new ee(t,"contains a nested accessor field");c(m==null?void 0:m.value,u+1)}};c(e,0)}function ht(e,t,a){if(e===null||typeof e!="object"||Array.isArray(e))throw new ee(a,"expected an object");try{const s=Object.getPrototypeOf(e);if(s!==Object.prototype&&s!==null)throw new ee(a,"expected a plain object");const c=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(c).some(f=>{var h,A;return typeof f!="string"||((h=c[f])==null?void 0:h.get)!==void 0||((A=c[f])==null?void 0:A.set)!==void 0}))throw new ee(a,"contains an accessor or symbol field");const l=Object.keys(c).sort(),u=[...t].sort();if(JSON.stringify(l)!==JSON.stringify(u))throw new ee(a,"contains missing or unknown fields");return Gw(e,a),structuredClone(e),Object.fromEntries(Object.entries(c).map(([f,h])=>[f,h.value]))}catch(s){throw s instanceof ee?s:new ee(a,"could not be inspected safely")}}function US(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new ee(t,"expected an object");try{const a=Object.getPrototypeOf(e);if(a!==Object.prototype&&a!==null)throw new ee(t,"expected a plain object");const s=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(s).some(c=>{var l,u;return typeof c!="string"||((l=s[c])==null?void 0:l.get)!==void 0||((u=s[c])==null?void 0:u.set)!==void 0}))throw new ee(t,"contains an accessor or symbol field");return Gw(e,t),structuredClone(e),Object.fromEntries(Object.entries(s).map(([c,l])=>[c,l.value]))}catch(a){throw a instanceof ee?a:new ee(t,"could not be inspected safely")}}function Fe(e,t,a){if(typeof e!="string"||!a.test(e))throw new ee(t,"contains an invalid string");return e}function wh(e,t,a){return e===null?null:Fe(e,t,a)}function Uc(e,t){if(typeof e!="boolean")throw new ee(t,"expected a boolean");return e}const LS=64*1024,PS=64,FS=4096;function Yw(e){try{if(typeof e!="string")throw new ee("$","expected a JSON string");if(new TextEncoder().encode(e).byteLength>LS)throw new ee("$","response exceeds the dashboard JSON limit");let t=0,a=0;const s=()=>{for(;/\s/u.test(e[t]??"");)t+=1},c=()=>{if(e[t]!=='"')throw new ee("$","invalid JSON string");const u=t;for(t+=1;t<e.length;)if(e[t]==="\\")t+=2;else if(e[t]==='"'){t+=1;try{return JSON.parse(e.slice(u,t))}catch{throw new ee("$","invalid JSON string")}}else t+=1;throw new ee("$","unterminated JSON string")},l=u=>{var f;if(a+=1,u>PS||a>FS)throw new ee("$","response exceeds the dashboard JSON complexity limit");if(s(),e[t]==="{"){t+=1,s();const h=new Set;if(e[t]==="}"){t+=1;return}for(;t<e.length;){s();const A=c();if(h.has(A))throw new ee("$","response contains duplicate object members");if(h.add(A),s(),e[t]!==":")throw new ee("$","invalid JSON object");if(t+=1,l(u+1),s(),e[t]==="}"){t+=1;return}if(e[t]!==",")throw new ee("$","invalid JSON object");t+=1}}else if(e[t]==="["){if(t+=1,s(),e[t]==="]"){t+=1;return}for(;t<e.length;){if(l(u+1),s(),e[t]==="]"){t+=1;return}if(e[t]!==",")throw new ee("$","invalid JSON array");t+=1}}else if(e[t]==='"'){c();return}else{const h=(f=e.slice(t).match(/^(?:true|false|null|-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)/u))==null?void 0:f[0];if(!h)throw new ee("$","invalid JSON value");t+=h.length;return}throw new ee("$","unterminated JSON value")};if(l(0),s(),t!==e.length)throw new ee("$","trailing JSON bytes");return JSON.parse(e)}catch(t){throw t instanceof ee?t:new ee("$","invalid JSON response")}}const kc=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,ig=/^sha256:[a-f0-9]{64}$/u,Hw=["productArea","route","actorId","projectId","scopeId","domainId","domainVersion","cycleId","subjectId","eventHead","viewHash","generation"];function Iv(e,t){return e===null?null:Fe(e,t,kc)}function VS(e){if(e===null)return null;const t=ht(e,["sequence","hash"],"$.eventHead");if(!Number.isSafeInteger(t.sequence)||t.sequence<0)throw new ee("$.eventHead.sequence","expected a non-negative safe integer");const a=t.hash===null?null:Fe(t.hash,"$.eventHead.hash",ig);if(t.sequence===0!=(a===null))throw new ee("$.eventHead","sequence and hash are inconsistent");return Object.freeze({sequence:t.sequence,hash:a})}function Ve(e){const t=ht(e,Hw,"$");if(t.productArea!=="planning"&&t.productArea!=="operate")throw new ee("$.productArea","expected planning or operate");if(!Number.isSafeInteger(t.generation)||t.generation<0)throw new ee("$.generation","expected a non-negative safe integer");const a=Fe(t.route,"$.route",/^#.{1,512}$/u),s=Ha(a);if(s.kind==="not-found"||Pa(s)!==a)throw new ee("$.route","must be a canonical closed dashboard route");if(s.product!==t.productArea)throw new ee("$.route","does not belong to the selected product area");const c=Iv(t.cycleId,"$.cycleId"),l=Iv(t.subjectId,"$.subjectId");if(s.subjectId!==l)throw new ee("$.subjectId","does not equal the canonical route subject");if(s.kind==="operate.review"&&s.cycleId!==c)throw new ee("$.cycleId","does not equal the canonical Review route Cycle");return Object.freeze({productArea:t.productArea,route:a,actorId:Fe(t.actorId,"$.actorId",kc),projectId:Fe(t.projectId,"$.projectId",ig),scopeId:Fe(t.scopeId,"$.scopeId",kc),domainId:Fe(t.domainId,"$.domainId",kc),domainVersion:Fe(t.domainVersion,"$.domainVersion",kc),cycleId:c,subjectId:l,eventHead:VS(t.eventHead),viewHash:t.viewHash===null?null:Fe(t.viewHash,"$.viewHash",ig),generation:t.generation})}function rg(e){return Object.freeze(["dashboard-projection",Ve(e)])}function Ye(e,t){return Hw.every(a=>{var s,c,l,u;return a==="eventHead"?((s=e.eventHead)==null?void 0:s.sequence)===((c=t.eventHead)==null?void 0:c.sequence)&&((l=e.eventHead)==null?void 0:l.hash)===((u=t.eventHead)==null?void 0:u.hash):e[a]===t[a]})}const qS=Object.freeze(["DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_LOOPBACK_HOST_INVALID","DASHBOARD_BOOTSTRAP_INVALID","CAPABILITY_DENIED","DASHBOARD_BUILD_MISMATCH","DASHBOARD_RESPONSE_INVALID","CONCURRENT_MODIFICATION","OPERATION_UNCERTAIN","DASHBOARD_ASSET_MISSING","DASHBOARD_MANIFEST_INVALID","DASHBOARD_MANIFEST_MISSING","DASHBOARD_READ_FAILED","DASHBOARD_STALE_RESPONSE","OPERATION_CONFLICT"]),KS=new Set(qS),zw=Object.freeze(["operation","cycleId","assignmentId","submissionId","submissionState","reviewId","state","maxBytes"]),sg=zw,JS=new Set(sg),ZS=/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:-[a-z0-9]+)*){1,7}$/u,XS=new Set(["private","secret"]),WS=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,e1=/^[a-z][a-z0-9]*(?:[_-][a-z0-9]+){0,7}$/u,$w=160,t1=16*1024*1024;function n1(e,t){if(typeof e!="string"||e.length>$w)throw new ee(t,"contains an overlong public operation");const a=Fe(e,t,ZS);if(a.split(/[.-]/u).some(s=>XS.has(s)))throw new ee(t,"contains a non-public operation segment");return a}function a1(e,t){if(typeof e!="string"||e.length>$w)throw new ee(t,"contains an overlong public state");return Fe(e,t,e1)}function i1(e){const t=US(e,"$.context"),a=Object.keys(t);if(a.length>sg.length)throw new ee("$.context","contains too many fields");if(a.some(c=>!JS.has(c)))throw new ee("$.context","contains a non-public field");const s={};for(const c of sg){if(!Object.hasOwn(t,c))continue;const l=t[c];if(c==="maxBytes"){if(!Number.isSafeInteger(l)||l<0||l>t1)throw new ee("$.context.maxBytes","expected a bounded byte count");s[c]=l}else{const u=`$.context.${c}`;c==="operation"?s[c]=n1(l,u):c.endsWith("State")||c==="state"?s[c]=a1(l,u):s[c]=Fe(l,u,WS)}}return Object.freeze(s)}function Uw(e){const t=ht(e,["code","retryable","context"],"$");if(typeof t.code!="string"||!KS.has(t.code))throw new ee("$.code","contains an unsupported public error code");return Object.freeze({code:t.code,retryable:Uc(t.retryable,"$.retryable"),context:i1(t.context)})}function r1(e){return Object.freeze({blindRetry:!1,requiresReconciliation:!0,retryableAfterReconciliation:e.retryable})}const Lw=Object.freeze(["booting","loading","first-use","ready","empty","read-only","refreshing","stale","degraded","blocked","unavailable","unauthorized","offline","incompatible","corrupt","conflict","partial","uncertain","recovering"]),Pw=Object.freeze({booting:Rt("booting","disabled","route-heading","wait"),loading:Rt("loading","disabled","route-heading","wait"),"first-use":Rt("first-use","disabled","state-heading","server-action-only"),ready:Rt("ready","server-validated","route-heading","none"),empty:Rt("empty","disabled","state-heading","server-action-only"),"read-only":Rt("read-only","disabled","route-heading","inspect"),refreshing:Rt("refreshing","disabled","route-heading","wait"),stale:Rt("stale","disabled","state-heading","reconcile"),degraded:Rt("degraded","disabled","state-heading","inspect"),blocked:Rt("blocked","disabled","state-heading","canonical-recovery-only"),unavailable:Rt("unavailable","disabled","state-heading","inspect"),unauthorized:Rt("unauthorized","disabled","state-heading","request-access"),offline:Rt("offline","disabled","state-heading","restore-connection"),incompatible:Rt("incompatible","disabled","recovery-heading","reinstall"),corrupt:Rt("corrupt","disabled","recovery-heading","canonical-recovery-only"),conflict:Rt("conflict","disabled","recovery-heading","reconcile"),partial:Rt("partial","disabled","recovery-heading","reconcile"),uncertain:Rt("uncertain","disabled","recovery-heading","canonical-recovery-only"),recovering:Rt("recovering","disabled","recovery-heading","wait")});function Rt(e,t,a,s){return Object.freeze({state:e,mutation:t,focus:a,recovery:s,blindRetry:!1})}const s1=/^[A-Z][A-Z0-9_]{0,127}$/u,Cv=new Set(["ready","read-only","refreshing","stale","degraded","blocked","partial","uncertain","recovering"]),o1=new Set(["booting","unauthorized","offline","incompatible","corrupt"]),c1=new Set(["unauthorized","incompatible","corrupt","conflict","uncertain"]),xh=new Set(["booting","loading","ready"]),Dt=(...e)=>new Set(e),l1=Object.freeze({booting:Dt(),loading:Dt(),"first-use":Dt(),ready:Dt(),empty:Dt(),"read-only":Dt(),refreshing:Dt(),stale:Dt("DASHBOARD_STALE_RESPONSE","DASHBOARD_READ_FAILED"),degraded:Dt("DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_READ_FAILED"),blocked:Dt(),unavailable:Dt("DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_READ_FAILED"),unauthorized:Dt("CAPABILITY_DENIED"),offline:Dt("DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_READ_FAILED"),incompatible:Dt("DASHBOARD_BUILD_MISMATCH","DASHBOARD_ASSET_MISSING","DASHBOARD_MANIFEST_MISSING"),corrupt:Dt("DASHBOARD_RESPONSE_INVALID","DASHBOARD_MANIFEST_INVALID","DASHBOARD_BOOTSTRAP_INVALID"),conflict:Dt("CONCURRENT_MODIFICATION","OPERATION_CONFLICT"),partial:Dt("DASHBOARD_READ_FAILED"),uncertain:Dt("OPERATION_UNCERTAIN"),recovering:Dt()}),d1=new Set(Lw.map(e=>Fw(e))),rA=new WeakSet;function Fw(e){return`DASHBOARD_${e.toUpperCase().replace("-","_")}`}function u1(e){if(typeof e!="string"||!Lw.includes(e))throw new ee("$.kind","contains an unsupported product state");return e}function f1(e,t){if(!Array.isArray(e)||e.length>16)throw new ee("$.reasonCodes","expected a bounded reason array");const a=e.map((s,c)=>Fe(s,`$.reasonCodes[${c}]`,s1));if(new Set(a).size!==a.length)throw new ee("$.reasonCodes","contains duplicate reasons");if(xh.has(t)&&a.length!==0)throw new ee("$.reasonCodes","is not valid for this product state");if(!xh.has(t)&&a.length===0)throw new ee("$.reasonCodes","requires a certified reason");if(!xh.has(t)&&a[0]!==Fw(t))throw new ee("$.reasonCodes","does not begin with the tagged presentation-state reason");if(a.slice(1).some(s=>d1.has(s)))throw new ee("$.reasonCodes","contains a secondary presentation-state substitution");return Object.freeze(a)}function p1(e,t){const a=ht(e,["state","mutation","focus","recovery","blindRetry"],"$.policy"),s=Pw[t];if(a.state!==s.state||a.mutation!==s.mutation||a.focus!==s.focus||a.recovery!==s.recovery||a.blindRetry!==!1)throw new ee("$.policy","does not match the tagged product state");return s}function as(e){let t;try{t=structuredClone(e)}catch{throw new ee("$.data","cannot be cloned safely")}const a=new WeakSet,s=c=>{if(!(c===null||typeof c!="object"||a.has(c))){a.add(c);for(const l of Object.values(c))s(l);Object.freeze(c)}};return s(t),t}function h1(e,t,a){if(e===null){if(c1.has(t))throw new ee("$.error","is required for this product state");return null}const s=l1[t];if(s.size===0)throw new ee("$.error","is not valid for this product state");const c=Uw(e);if(!s.has(c.code))throw new ee("$.error.code","does not match the tagged product state");if(a===null&&Object.keys(c.context).length!==0)throw new ee("$.error.context","must not disclose owner-bound identifiers in this product state");if(c.context.cycleId!==void 0&&((a==null?void 0:a.cycleId)===null||(a==null?void 0:a.cycleId)===void 0||c.context.cycleId!==a.cycleId))throw new ee("$.error.context.cycleId","does not match exact custody");for(const l of["assignmentId","submissionId","reviewId"])if(c.context[l]!==void 0&&((a==null?void 0:a.subjectId)===null||(a==null?void 0:a.subjectId)===void 0||c.context[l]!==a.subjectId))throw new ee(`$.error.context.${l}`,"does not match exact custody");return c}function Vw(e){if(e==null)return e;try{return Ve(e)}catch{throw new ee("$.currentBinding","does not satisfy the exact current-binding contract")}}function so(e,t={}){const a=ht(e,["kind","binding","data","reasonCodes","error","mutationEnabled","policy"],"$"),s=u1(a.kind),c=p1(a.policy,s),l=Uc(a.mutationEnabled,"$.mutationEnabled");if(s!=="ready"&&l)throw new ee("$.mutationEnabled","is default-denied for this state");const u=a.binding===null?null:Ve(a.binding),f=Vw(t.currentBinding);if(!o1.has(s)&&u===null)throw new ee("$.binding","is required for this product state");if(["booting","unauthorized","incompatible","corrupt"].includes(s)&&u!==null)throw new ee("$.binding","must not disclose a bound subject in this state");if(u&&(!f||!Ye(u,f)))throw new ee("$.binding","requires an explicitly supplied non-null exact current binding");let h=null;if(a.data!==null){if(!t.validateData)throw new ee("$.data","requires an owner-boundary validator");const y=as(a.data);try{if(!t.validateData(y))throw new ee("$.data","failed its owner-boundary contract")}catch(m){throw m instanceof ee?m:new ee("$.data","failed its owner-boundary contract")}h=y}if(Cv.has(s)&&h===null)throw new ee("$.data","is required for this product state");if(!Cv.has(s)&&s!=="offline"&&h!==null)throw new ee("$.data","is forbidden for this state");if(s==="offline"&&u===null!=(h===null))throw new ee("$.data","offline cache requires its exact binding");if(l&&(s!=="ready"||!u||f===void 0||f===null||!Ye(u,f)))throw new ee("$.mutationEnabled","requires current validated ready data and exact custody");const A=Object.freeze({kind:s,binding:u,data:h,reasonCodes:f1(a.reasonCodes,s),error:h1(a.error,s,u),mutationEnabled:l,policy:c});return rA.add(A),A}function sA(e,t){if(!rA.has(e))return!1;try{const a=Vw(t);return e.kind==="ready"&&e.mutationEnabled&&e.data!==null&&e.binding!==null&&a!==null&&a!==void 0&&Ye(e.binding,a)}catch{return!1}}function Pe(e){return typeof e=="object"&&e!==null&&rA.has(e)}function oo(e){return Pw[e]}const g1=Object.freeze({projectName:"OpenPlanr",projectDetail:"Project context pending",actorLabel:"Actor binding pending",bindingLabel:"Scope and domain pending"}),A1=Object.freeze({state:"booting",label:"Checking local dashboard",reason:"Waiting for OpenPlanr to return a validated project projection."}),m1=()=>Promise.reject(new Error("No exact dashboard refetch is available.")),qw=B.createContext(null);function Sv(e){return e!==void 0?e:typeof window>"u"?"":window.location.hash}function y1(e,t){return e!==void 0||typeof window>"u"?()=>{}:(window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t))}function jh(e){return e.state==="offline"?so({kind:"offline",binding:null,data:null,reasonCodes:["DASHBOARD_OFFLINE"],error:null,mutationEnabled:!1,policy:oo("offline")}):e.state==="incompatible"?so({kind:"incompatible",binding:null,data:null,reasonCodes:["DASHBOARD_INCOMPATIBLE"],error:Object.freeze({code:"DASHBOARD_BUILD_MISMATCH",retryable:!1,context:Object.freeze({})}),mutationEnabled:!1,policy:oo("incompatible")}):so({kind:"booting",binding:null,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:oo("booting")})}function E1({children:e,initialHash:t,identity:a=g1,connection:s=A1,buildId:c,binding:l=null,projection:u,planningProjection:f,operateCyclesProjection:h,operateSearchBindings:A=Object.freeze([]),operateReviewNavigation:y=null,refetchCurrent:m=m1,bootstrap:E=null,bootPhase:b="checking",bootDetail:w=null,liveTransition:x,liveSubjectId:j}){const I=B.useSyncExternalStore(N=>y1(t,N),()=>Sv(t),()=>Sv(t)),C=B.useMemo(()=>Ha(I),[I]),O=B.useMemo(()=>u??jh(s),[s,u]),S=B.useMemo(()=>f??((l==null?void 0:l.productArea)==="planning"?O:jh(s)),[l==null?void 0:l.productArea,s,O,f]),_=B.useMemo(()=>h??((l==null?void 0:l.route)==="#/operate/cycles"?O:jh(s)),[l==null?void 0:l.route,s,O,h]),k=B.useMemo(()=>Object.freeze({route:C,identity:a,connection:s,buildId:c,binding:l,projection:O,planningProjection:S,operateCyclesProjection:_,operateSearchBindings:A,operateReviewNavigation:y,refetchCurrent:m,bootstrap:E,bootPhase:b,bootDetail:w}),[C,a,s,c,l,O,S,_,A,y,m,E,b,w]);return r.jsx(qw.Provider,{value:k,children:r.jsx(HS,{route:C,binding:l,transition:x,trackedSubjectId:j,children:e})})}function oA(){const e=B.useContext(qw);if(!e)throw new Error("useDashboard must be used inside DashboardProviders.");return e}function B1(e){if(e.kind==="not-found")return"not-found";if(e.kind==="operate.review")return`${e.kind}:${e.cycleId}:${e.subjectId}`;const t=e.subjectId;return`${e.kind}:${t??""}`}function v1(){const{route:e}=oA(),t=B.useMemo(()=>{if(e.kind==="not-found")return"";const a=So(e);if(!a)return"";const s=e.kind==="operate.review"?` · ${e.cycleId} · ${e.subjectId}`:e.subjectId?` · ${e.subjectId}`:"";return`${a.label}${s}. ${a.description}`},[e]);return t?r.jsx("div",{className:"op-route-announcer",role:"status","aria-live":"polite","aria-atomic":"true",children:t},B1(e)):null}const b1=Object.freeze(["boot","incompatible-installation","missing-asset","stale-package","api-version","watcher-gap","optional-dependency"]),w1=Object.freeze({DASHBOARD_MANIFEST_MISSING:"incompatible-installation",DASHBOARD_MANIFEST_INVALID:"api-version",DASHBOARD_ASSET_MISSING:"missing-asset",DASHBOARD_BUILD_MISMATCH:"stale-package"});function Ou(e,t,a,s,c){return Object.freeze({category:e,status:t,title:a,detail:s,remediation:c})}function Ov(e,t){return Ou("boot",e==="checking"?"pending":"fail",e==="checking"?"Verifying dashboard bootstrap":"Bootstrap could not be certified",t,e==="checking"?"Wait for OpenPlanr to publish the public bootstrap envelope.":"Restore the loopback connection, then reopen diagnostics without mutation.")}function Hr(e,t,a){return Ou(e,"pass",t,a,"No remediation is required for this check.")}function kd(e,t,a,s){return Ou(e,"fail",t,a,s)}function _v(e,t,a,s){return Ou(e,"warn",t,a,s)}function x1(e){const t=new Map;e.bootPhase==="checking"?t.set("boot",Ov("checking",e.bootDetail??"Bootstrap request is in flight.")):e.bootPhase==="unavailable"?t.set("boot",Ov("failed",e.bootDetail??"OpenPlanr did not return a validated bootstrap envelope.")):t.set("boot",Hr("boot","Bootstrap envelope validated","The public bootstrap response matched the installed dashboard build contract."));const a=e.bootstrap,s=(a==null?void 0:a.compatibility.reasonCodes)??[],c=new Set(s.map(h=>w1[h]));!a||a.compatibility.status==="incompatible"||s.length>0?t.set("incompatible-installation",kd("incompatible-installation","Dashboard installation is incompatible",s.length>0?`Certified reason codes: ${s.join(" · ")}.`:"OpenPlanr refused the installed dashboard before presenting project data.","Install matching OpenPlanr dashboard assets, then verify compatibility again.")):t.set("incompatible-installation",Hr("incompatible-installation","Installation contract is compatible","The UI, server, and packaged assets satisfy one compatible build contract.")),t.set("missing-asset",c.has("missing-asset")?kd("missing-asset","Packaged asset is missing","At least one dashboard asset required by the build manifest is absent.","Reinstall the dashboard package or rebuild the embedded asset manifest."):Hr("missing-asset","Packaged assets resolve","Every asset entry required by the certified manifest is present."));const l=c.has("stale-package")||a!==null&&a.ui.buildId!==null&&a.ui.expectedBuildId!==null&&a.ui.buildId!==a.ui.expectedBuildId;t.set("stale-package",l?kd("stale-package","Installed build does not match the server expectation",a?`Embedded build ${e.embeddedBuildId} differs from the served build ${a.ui.buildId??"unknown"}.`:"The embedded dashboard build identity could not be reconciled with the server.","Install the dashboard build expected by this OpenPlanr server, then reload diagnostics."):Hr("stale-package","Build custody matches",`Embedded and served builds both report ${e.embeddedBuildId}.`)),t.set("api-version",c.has("api-version")?kd("api-version","API or manifest version is unsupported","The dashboard manifest or protocol envelope failed semantic validation.","Upgrade OpenPlanr to a release that publishes a supported dashboard contract."):Hr("api-version","API versions are supported",a?`Protocol ${a.protocolVersion} with Operate ${a.capabilities.operateExperience.protocolVersion} and Planning graph ${a.capabilities.planningGraph.schemaVersion}.`:"Protocol versions remain unproven until bootstrap succeeds."));const u=e.connection.state==="stale"||e.connection.state==="offline"||e.connection.reason.toLowerCase().includes("watch");t.set("watcher-gap",u?_v("watcher-gap","Live reconciliation may be unavailable",e.connection.reason,"Restore the loopback connection or restart the dashboard without --no-watch before relying on live updates."):Hr("watcher-gap","Live update channel is available",e.connection.label));const f=a!==null&&(!a.capabilities.diagnostics.available||!a.capabilities.operateCommands.available);return t.set("optional-dependency",f?_v("optional-dependency","Optional capability is unavailable",[a!=null&&a.capabilities.diagnostics.available?null:"diagnostics unavailable",a!=null&&a.capabilities.operateCommands.available?null:"operate commands unavailable"].filter(h=>h!==null).join(" · "),"Reinstall OpenPlanr with optional dependencies enabled. Global navigation and diagnostics remain available."):Hr("optional-dependency","Optional dependencies are present","Diagnostics and governed Operate command transport are both advertised.")),Object.freeze(b1.map(h=>{const A=t.get(h);if(!A)throw new Error(`Missing compatibility finding for ${h}`);return A}))}function j1(e,t,a){return e?e.compatibility.status!=="compatible"||e.ui.buildId!==t||e.ui.expectedBuildId!==t?Object.freeze({state:"incompatible",label:"Dashboard installation is incompatible",reason:e.compatibility.reasonCodes.length>0?e.compatibility.reasonCodes.join(" · "):"Install matching OpenPlanr dashboard assets before relying on current operating state."}):e.capabilities.operateCommands.available?Object.freeze({state:"connected",label:"Connected to local OpenPlanr",reason:"Validated projection channel is available."}):Object.freeze({state:"read-only",label:"Connected in read-only mode",reason:"Governed Operate commands are unavailable. Planning inspection and diagnostics remain available."}):Object.freeze({state:"booting",label:"Checking local dashboard",reason:a??"Waiting for OpenPlanr to return a validated project projection."})}function Q1(e){return e?{projectName:e.project.name,projectDetail:e.project.products.length>1?"Planning and operations":"Project workspace",actorLabel:"Actor binding pending",bindingLabel:"Scope and domain pending"}:{projectName:"OpenPlanr",projectDetail:"Project context pending",actorLabel:"Actor binding pending",bindingLabel:"Scope and domain pending"}}var cA=Rw(),I1=Object.defineProperty,lA=(e,t)=>I1(e,"name",{value:t,configurable:!0});function og(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}lA(og,"setRef");function Kw(...e){return t=>{let a=!1;const s=e.map(c=>{const l=og(c,t);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let c=0;c<s.length;c++){const l=s[c];typeof l=="function"?l():og(e[c],null)}}}}lA(Kw,"composeRefs");function Gt(...e){return B.useCallback(Kw(...e),e)}lA(Gt,"useComposedRefs");var C1=Object.defineProperty,ba=(e,t)=>C1(e,"name",{value:t,configurable:!0});function is(e){const t=B.forwardRef((a,s)=>{let{children:c,...l}=a,u=null,f=!1;const h=[];cg(c)&&typeof Md=="function"&&(c=Md(c._payload)),B.Children.forEach(c,E=>{var b;if(ex(E)){f=!0;const w=E;let x="child"in w.props?w.props.child:w.props.children;cg(x)&&typeof Md=="function"&&(x=Md(x._payload)),u=S1(w,x),h.push((b=u==null?void 0:u.props)==null?void 0:b.children)}else h.push(E)}),u?u=B.cloneElement(u,void 0,h):!f&&B.Children.count(c)===1&&B.isValidElement(c)&&(u=c);const A=u?Ww(u):void 0,y=Gt(s,A);if(!u){if(c||c===0)throw new Error(f?N1(e):_1(e));return c}const m=Xw(l,u.props??{});return u.type!==B.Fragment&&(m.ref=s?y:A),B.cloneElement(u,m)});return t.displayName=`${e}.Slot`,t}ba(is,"createSlot");var Jw=Symbol.for("radix.slottable");function Zw(e){const t=ba(a=>"child"in a?a.children(a.child):a.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Jw,t}ba(Zw,"createSlottable");var S1=ba((e,t)=>{if("child"in e.props){const a=e.props.child;return B.isValidElement(a)?B.cloneElement(a,void 0,e.props.children(a.props.children)):null}return B.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Xw(e,t){const a={...t};for(const s in t){const c=e[s],l=t[s];/^on[A-Z]/.test(s)?c&&l?a[s]=(...f)=>{const h=l(...f);return c(...f),h}:c&&(a[s]=c):s==="style"?a[s]={...c,...l}:s==="className"&&(a[s]=[c,l].filter(Boolean).join(" "))}return{...e,...a}}ba(Xw,"mergeProps");function Ww(e){var s,c;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(c=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:c.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}ba(Ww,"getElementRef");function ex(e){return B.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Jw}ba(ex,"isSlottable");var O1=Symbol.for("react.lazy");function cg(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===O1&&"_payload"in e&&tx(e._payload)}ba(cg,"isLazyComponent");function tx(e){return typeof e=="object"&&e!==null&&"then"in e}ba(tx,"isPromiseLike");var _1=ba(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),N1=ba(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Md=Co[" use ".trim().toString()],R1=Object.defineProperty,D1=(e,t)=>R1(e,"name",{value:t,configurable:!0}),T1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=T1.reduce((e,t)=>{const a=is(`Primitive.${t}`),s=B.forwardRef((c,l)=>{const{asChild:u,...f}=c,h=u?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(h,{...f,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function nx(e,t){e&&cA.flushSync(()=>e.dispatchEvent(t))}D1(nx,"dispatchDiscreteCustomEvent");var k1=Object.defineProperty,M1=(e,t)=>k1(e,"name",{value:t,configurable:!0}),G1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Y1=B.forwardRef(M1(function(t,a){return r.jsx(Zt.span,{...t,ref:a,style:{...G1,...t.style}})},"VisuallyHidden")),H1=Y1,z1=Object.defineProperty,ca=(e,t)=>z1(e,"name",{value:t,configurable:!0});function $1(e,t){const a=B.createContext(t);a.displayName=e+"Context";const s=ca(l=>{const{children:u,...f}=l,h=B.useMemo(()=>f,Object.values(f));return r.jsx(a.Provider,{value:h,children:u})},"Provider");s.displayName=e+"Provider";function c(l,u={}){const{optional:f=!1}=u,h=B.useContext(a);if(h)return h;if(t!==void 0)return t;if(!f)throw new Error(`\`${l}\` must be used within \`${e}\``)}return ca(c,"useContext"),[s,c]}ca($1,"createContext");function Qi(e,t=[]){let a=[];function s(l,u){const f=B.createContext(u);f.displayName=l+"Context";const h=a.length;a=[...a,u];const A=ca(m=>{var I;const{scope:E,children:b,...w}=m,x=((I=E==null?void 0:E[e])==null?void 0:I[h])||f,j=B.useMemo(()=>w,Object.values(w));return r.jsx(x.Provider,{value:j,children:b})},"Provider");A.displayName=l+"Provider";function y(m,E,b={}){var I;const{optional:w=!1}=b,x=((I=E==null?void 0:E[e])==null?void 0:I[h])||f,j=B.useContext(x);if(j)return j;if(u!==void 0)return u;if(!w)throw new Error(`\`${m}\` must be used within \`${l}\``)}return ca(y,"useContext"),[A,y]}ca(s,"createContext");const c=ca(()=>{const l=a.map(u=>B.createContext(u));return ca(function(f){const h=(f==null?void 0:f[e])||l;return B.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])},"useScope")},"createScope");return c.scopeName=e,[s,ax(c,...t)]}ca(Qi,"createContextScope");function ax(...e){const t=e[0];if(e.length===1)return t;const a=ca(()=>{const s=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return ca(function(l){const u=s.reduce((f,{useScope:h,scopeName:A})=>{const m=h(l)[`__scope${A}`];return{...f,...m}},{});return B.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}ca(ax,"composeContextScopes");var U1=Object.defineProperty,Lt=(e,t)=>U1(e,"name",{value:t,configurable:!0});function ix(e){const t=e+"CollectionProvider",[a,s]=Qi(t),[c,l]=a(t,{collectionRef:{current:null},itemMap:new Map}),u=Lt(x=>{const{scope:j,children:I}=x,C=B.useRef(null),O=B.useRef(new Map).current;return r.jsx(c,{scope:j,itemMap:O,collectionRef:C,children:I})},"CollectionProvider");u.displayName=t;const f=e+"CollectionSlot",h=is(f),A=B.forwardRef((x,j)=>{const{scope:I,children:C}=x,O=l(f,I),S=Gt(j,O.collectionRef);return r.jsx(h,{ref:S,children:C})});A.displayName=f;const y=e+"CollectionItemSlot",m="data-radix-collection-item",E=is(y),b=B.forwardRef((x,j)=>{const{scope:I,children:C,...O}=x,S=B.useRef(null),_=Gt(j,S),k=l(y,I);return B.useEffect(()=>(k.itemMap.set(S,{ref:S,...O}),()=>void k.itemMap.delete(S))),r.jsx(E,{[m]:"",ref:_,children:C})});b.displayName=y;function w(x){const j=l(e+"CollectionConsumer",x);return B.useCallback(()=>{const C=j.collectionRef.current;if(!C)return[];const O=Array.from(C.querySelectorAll(`[${m}]`));return Array.from(j.itemMap.values()).sort((k,N)=>O.indexOf(k.ref.current)-O.indexOf(N.ref.current))},[j.collectionRef,j.itemMap])}return Lt(w,"useCollection"),[{Provider:u,Slot:A,ItemSlot:b},w,s]}Lt(ix,"createCollection");var Nv=new WeakMap,Ot,zn,Qh=(zn=class extends Map{constructor(a){super(a);Me(this,Ot);Qe(this,Ot,[...super.keys()]),Nv.set(this,!0)}set(a,s){return Nv.get(this)&&(this.has(a)?K(this,Ot)[K(this,Ot).indexOf(a)]=a:K(this,Ot).push(a)),super.set(a,s),this}insert(a,s,c){const l=this.has(s),u=K(this,Ot).length,f=dA(a);let h=f>=0?f:u+f;const A=h<0||h>=u?-1:h;if(A===this.size||l&&A===this.size-1||A===-1)return this.set(s,c),this;const y=this.size+(l?0:1);f<0&&h++;const m=[...K(this,Ot)];let E,b=!1;for(let w=h;w<y;w++)if(h===w){let x=m[w];m[w]===s&&(x=m[w+1]),l&&this.delete(s),E=this.get(x),this.set(s,c)}else{!b&&m[w-1]===s&&(b=!0);const x=m[b?w:w-1],j=E;E=this.get(x),this.delete(x),this.set(x,j)}return this}with(a,s,c){const l=new zn(this);return l.insert(a,s,c),l}before(a){const s=K(this,Ot).indexOf(a)-1;if(!(s<0))return this.entryAt(s)}setBefore(a,s,c){const l=K(this,Ot).indexOf(a);return l===-1?this:this.insert(l,s,c)}after(a){let s=K(this,Ot).indexOf(a);if(s=s===-1||s===this.size-1?-1:s+1,s!==-1)return this.entryAt(s)}setAfter(a,s,c){const l=K(this,Ot).indexOf(a);return l===-1?this:this.insert(l+1,s,c)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Qe(this,Ot,[]),super.clear()}delete(a){const s=super.delete(a);return s&&K(this,Ot).splice(K(this,Ot).indexOf(a),1),s}deleteAt(a){const s=this.keyAt(a);return s!==void 0?this.delete(s):!1}at(a){const s=au(K(this,Ot),a);if(s!==void 0)return this.get(s)}entryAt(a){const s=au(K(this,Ot),a);if(s!==void 0)return[s,this.get(s)]}indexOf(a){return K(this,Ot).indexOf(a)}keyAt(a){return au(K(this,Ot),a)}from(a,s){const c=this.indexOf(a);if(c===-1)return;let l=c+s;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(a,s){const c=this.indexOf(a);if(c===-1)return;let l=c+s;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(a,s){let c=0;for(const l of this){if(Reflect.apply(a,s,[l,c,this]))return l;c++}}findIndex(a,s){let c=0;for(const l of this){if(Reflect.apply(a,s,[l,c,this]))return c;c++}return-1}filter(a,s){const c=[];let l=0;for(const u of this)Reflect.apply(a,s,[u,l,this])&&c.push(u),l++;return new zn(c)}map(a,s){const c=[];let l=0;for(const u of this)c.push([u[0],Reflect.apply(a,s,[u,l,this])]),l++;return new zn(c)}reduce(...a){const[s,c]=a;let l=0,u=c??this.at(0);for(const f of this)l===0&&a.length===1?u=f:u=Reflect.apply(s,this,[u,f,l,this]),l++;return u}reduceRight(...a){const[s,c]=a;let l=c??this.at(-1);for(let u=this.size-1;u>=0;u--){const f=this.at(u);u===this.size-1&&a.length===1?l=f:l=Reflect.apply(s,this,[l,f,u,this])}return l}toSorted(a){const s=[...this.entries()].sort(a);return new zn(s)}toReversed(){const a=new zn;for(let s=this.size-1;s>=0;s--){const c=this.keyAt(s),l=this.get(c);a.set(c,l)}return a}toSpliced(...a){const s=[...this.entries()];return s.splice(...a),new zn(s)}slice(a,s){const c=new zn;let l=this.size-1;if(a===void 0)return c;a<0&&(a=a+this.size),s!==void 0&&s>0&&(l=s-1);for(let u=a;u<=l;u++){const f=this.keyAt(u),h=this.get(f);c.set(f,h)}return c}every(a,s){let c=0;for(const l of this){if(!Reflect.apply(a,s,[l,c,this]))return!1;c++}return!0}some(a,s){let c=0;for(const l of this){if(Reflect.apply(a,s,[l,c,this]))return!0;c++}return!1}},Ot=new WeakMap,Lt(zn,"OrderedDict"),zn);function au(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const a=rx(e,t);return a===-1?void 0:e[a]}Lt(au,"at");function rx(e,t){const a=e.length,s=dA(t),c=s>=0?s:a+s;return c<0||c>=a?-1:c}Lt(rx,"toSafeIndex");function dA(e){return e!==e||e===0?0:Math.trunc(e)}Lt(dA,"toSafeInteger");function L1(e){const t=e+"CollectionProvider",[a,s]=Qi(t),[c,l]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Qh,setItemMap:Lt(()=>{},"setItemMap")}),u=Lt(({state:O,...S})=>O?r.jsx(h,{...S,state:O}):r.jsx(f,{...S}),"CollectionProvider");u.displayName=t;const f=Lt(O=>{const S=j();return r.jsx(h,{...O,state:S})},"CollectionInit");f.displayName=t+"Init";const h=Lt(O=>{const{scope:S,children:_,state:k}=O,N=B.useRef(null),[z,M]=B.useState(null),L=Gt(N,M),[Z,F]=k;return B.useEffect(()=>{if(!z)return;const oe=cx(()=>{});return oe.observe(z,{childList:!0,subtree:!0}),()=>{oe.disconnect()}},[z]),r.jsx(c,{scope:S,itemMap:Z,setItemMap:F,collectionRef:L,collectionRefObject:N,collectionElement:z,children:_})},"CollectionProviderImpl");h.displayName=t+"Impl";const A=e+"CollectionSlot",y=is(A),m=B.forwardRef((O,S)=>{const{scope:_,children:k}=O,N=l(A,_),z=Gt(S,N.collectionRef);return r.jsx(y,{ref:z,children:k})});m.displayName=A;const E=e+"CollectionItemSlot",b="data-radix-collection-item",w=is(E),x=B.forwardRef((O,S)=>{const{scope:_,children:k,...N}=O,z=B.useRef(null),[M,L]=B.useState(null),Z=Gt(S,z,L),F=l(E,_),{setItemMap:oe}=F,re=B.useRef(N);sx(re.current,N)||(re.current=N);const pe=re.current;return B.useEffect(()=>{const Y=pe;return oe(V=>M?V.has(M)?V.set(M,{...Y,element:M}).toSorted(lg):(V.set(M,{...Y,element:M}),V.toSorted(lg)):V),()=>{oe(V=>!M||!V.has(M)?V:(V.delete(M),new Qh(V)))}},[M,pe,oe]),r.jsx(w,{[b]:"",ref:Z,children:k})});x.displayName=E;function j(){return B.useState(new Qh)}Lt(j,"useInitCollection");function I(O){const{itemMap:S}=l(e+"CollectionConsumer",O);return S}return Lt(I,"useCollection"),[{Provider:u,Slot:m,ItemSlot:x},{createCollectionScope:s,useCollection:I,useInitCollection:j}]}Lt(L1,"createCollection");function sx(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(const c of a)if(!Object.prototype.hasOwnProperty.call(t,c)||e[c]!==t[c])return!1;return!0}Lt(sx,"shallowEqual");function ox(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Lt(ox,"isElementPreceding");function lg(e,t){return!e[1].element||!t[1].element?0:ox(e[1].element,t[1].element)?-1:1}Lt(lg,"sortByDocumentPosition");function cx(e){return new MutationObserver(a=>{for(const s of a)if(s.type==="childList"){e();return}})}Lt(cx,"getChildListObserver");var P1=Object.defineProperty,_o=(e,t)=>P1(e,"name",{value:t,configurable:!0}),lx=!!(typeof window<"u"&&window.document&&window.document.createElement);function ut(e,t,{checkForDefaultPrevented:a=!0}={}){return _o(function(c){if(e==null||e(c),a===!1||!c||!c.defaultPrevented)return t==null?void 0:t(c)},"handleEvent")}_o(ut,"composeEventHandlers");function F1(e){var t;if(!lx)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}_o(F1,"getOwnerWindow");function dg(e){if(!lx)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}_o(dg,"getOwnerDocument");function dx(e,t=!1){const{activeElement:a}=dg(e);if(!(a!=null&&a.nodeName))return null;if(ux(a)&&a.contentDocument)return dx(a.contentDocument.body,t);if(t){const s=a.getAttribute("aria-activedescendant");if(s){const c=dg(a).getElementById(s);if(c)return c}}return a}_o(dx,"getActiveElement");function ux(e){return e.tagName==="IFRAME"}_o(ux,"isFrame");var Qn=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},V1=Object.defineProperty,q1=(e,t)=>V1(e,"name",{value:t,configurable:!0}),Rv=Co[" useEffectEvent ".trim().toString()],Dv=Co[" useInsertionEffect ".trim().toString()];function fx(e){if(typeof Rv=="function")return Rv(e);const t=B.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Dv=="function"?Dv(()=>{t.current=e}):Qn(()=>{t.current=e}),B.useMemo(()=>((...a)=>{var s;return(s=t.current)==null?void 0:s.call(t,...a)}),[])}q1(fx,"useEffectEvent");var K1=Object.defineProperty,dl=(e,t)=>K1(e,"name",{value:t,configurable:!0}),J1=Co[" useInsertionEffect ".trim().toString()]||Qn;function ul({prop:e,defaultProp:t,onChange:a=dl(()=>{},"onChange"),caller:s}){const[c,l,u]=px({defaultProp:t,onChange:a}),f=e!==void 0,h=f?e:c,A=B.useCallback(y=>{var m;if(f){const E=hx(y)?y(e):y;E!==e&&((m=u.current)==null||m.call(u,E))}else l(y)},[f,e,l,u]);return[h,A]}dl(ul,"useControllableState");function px({defaultProp:e,onChange:t}){const[a,s]=B.useState(e),c=B.useRef(a),l=B.useRef(t);return J1(()=>{l.current=t},[t]),B.useEffect(()=>{var u;c.current!==a&&((u=l.current)==null||u.call(l,a),c.current=a)},[a,c]),[a,s,l]}dl(px,"useUncontrolledState");function hx(e){return typeof e=="function"}dl(hx,"isFunction");var Tv=Symbol("RADIX:SYNC_STATE");function Z1(e,t,a,s){const{prop:c,defaultProp:l,onChange:u,caller:f}=t,h=c!==void 0,A=fx(u),y=[{...a,state:l}];s&&y.push(s);const[m,E]=B.useReducer((j,I)=>{if(I.type===Tv)return{...j,state:I.state};const C=e(j,I);return h&&!Object.is(C.state,j.state)&&A(C.state),C},...y),b=m.state,w=B.useRef(b);B.useEffect(()=>{w.current!==b&&(w.current=b,h||A(b))},[b,w,h]);const x=B.useMemo(()=>c!==void 0?{...m,state:c}:m,[m,c]);return B.useEffect(()=>{h&&!Object.is(c,m.state)&&E({type:Tv,state:c})},[c,m.state,h]),[x,E]}dl(Z1,"useControllableStateReducer");var X1=Object.defineProperty,wi=(e,t)=>X1(e,"name",{value:t,configurable:!0});function gx(e,t){return B.useReducer((a,s)=>t[a][s]??a,e)}wi(gx,"useStateMachine");var No=wi(e=>{const{present:t,children:a}=e,s=Ax(t),c=typeof a=="function"?a({present:s.isPresent}):B.Children.only(a),l=mx(s.ref,yx(c));return typeof a=="function"||s.isPresent?B.cloneElement(c,{ref:l}):null},"Presence");function Ax(e){const[t,a]=B.useState(),s=B.useRef(null),c=B.useRef(e),l=B.useRef("none"),u=B.useRef(void 0),f=e?"mounted":"unmounted",[h,A]=gx(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return B.useEffect(()=>{h==="mounted"?(l.current=u.current??io(s.current),u.current=void 0):l.current="none"},[h]),Qn(()=>{const y=s.current,m=c.current;if(m!==e){const b=l.current,w=io(y);e?(u.current=w,A("MOUNT")):w==="none"||(y==null?void 0:y.display)==="none"?A("UNMOUNT"):A(m&&b!==w?"ANIMATION_OUT":"UNMOUNT"),c.current=e}},[e,A]),Qn(()=>{if(t){let y;const m=t.ownerDocument.defaultView??window,E=wi(w=>{const j=io(s.current).includes(CSS.escape(w.animationName));if(w.target===t&&j&&(A("ANIMATION_END"),!c.current)){const I=t.style.animationFillMode;t.style.animationFillMode="forwards",y=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=I)})}},"handleAnimationEnd"),b=wi(w=>{w.target===t&&(l.current=io(s.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{m.clearTimeout(y),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else A("ANIMATION_END")},[t,A]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:B.useCallback(y=>{if(y){const m=getComputedStyle(y);s.current=m,u.current=io(m)}else s.current=null;a(y)},[])}}wi(Ax,"usePresence");function ug(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}wi(ug,"setRef");function mx(...e){const t=B.useRef(e);return t.current=e,B.useCallback(a=>{const s=t.current;let c=!1;const l=s.map(u=>{const f=ug(u,a);return!c&&typeof f=="function"&&(c=!0),f});if(c)return()=>{for(let u=0;u<l.length;u++){const f=l[u];typeof f=="function"?f():ug(s[u],null)}}},[])}wi(mx,"useStableComposedRefs");function io(e){return(e==null?void 0:e.animationName)||"none"}wi(io,"getAnimationName");function yx(e){var s,c;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(c=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:c.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}wi(yx,"getElementRef");var W1=Object.defineProperty,eO=(e,t)=>W1(e,"name",{value:t,configurable:!0}),tO=Co[" useId ".trim().toString()]||(()=>{}),nO=0;function ns(e){const[t,a]=B.useState(tO());return Qn(()=>{e||a(s=>s??String(nO++))},[e]),e||(t?`radix-${t}`:"")}eO(ns,"useId");var aO=Object.defineProperty,iO=(e,t)=>aO(e,"name",{value:t,configurable:!0}),rO=B.createContext(void 0);function uA(e){const t=B.useContext(rO);return e||t||"ltr"}iO(uA,"useDirection");var sO=Object.defineProperty,oO=(e,t)=>sO(e,"name",{value:t,configurable:!0});function hr(e){const t=B.useRef(e);return B.useEffect(()=>{t.current=e}),B.useMemo(()=>((...a)=>{var s;return(s=t.current)==null?void 0:s.call(t,...a)}),[])}oO(hr,"useCallbackRef");var cO=Object.defineProperty,$t=(e,t)=>cO(e,"name",{value:t,configurable:!0}),fg="dismissableLayer.update",lO="dismissableLayer.pointerDownOutside",dO="dismissableLayer.focusOutside",kv,Ex=B.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Bx=B.forwardRef($t(function(t,a){const{disableOutsidePointerEvents:s=!1,deferPointerDownOutside:c=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:A,...y}=t,m=B.useContext(Ex),[E,b]=B.useState(null),w=(E==null?void 0:E.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=B.useState({}),j=Gt(a,b),I=Array.from(m.layers),[C]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),O=C?I.indexOf(C):-1,S=E?I.indexOf(E):-1,_=m.layersWithOutsidePointerEventsDisabled.size>0,k=S>=O,N=B.useRef(!1),z=bx(F=>{u==null||u(F),h==null||h(F),F.defaultPrevented||A==null||A()},{ownerDocument:w,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:N,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:B.useCallback(F=>{if(!(F instanceof Node))return!1;const oe=[...m.branches].some(re=>re.contains(F));return k&&!oe},[m.branches,k])}),M=wx(F=>{if(c&&N.current)return;const oe=F.target;[...m.branches].some(pe=>pe.contains(oe))||(f==null||f(F),h==null||h(F),F.defaultPrevented||A==null||A())},w),L=E?S===I.length-1:!1,Z=hr(F=>{F.key==="Escape"&&(l==null||l(F),!F.defaultPrevented&&A&&(F.preventDefault(),A()))});return B.useEffect(()=>{if(L)return w.addEventListener("keydown",Z,{capture:!0}),()=>w.removeEventListener("keydown",Z,{capture:!0})},[w,L,Z]),B.useEffect(()=>{if(E)return s&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(kv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(E)),m.layers.add(E),pg(),()=>{s&&(m.layersWithOutsidePointerEventsDisabled.delete(E),m.layersWithOutsidePointerEventsDisabled.size===0&&(w.body.style.pointerEvents=kv))}},[E,w,s,m]),B.useEffect(()=>()=>{E&&(m.layers.delete(E),m.layersWithOutsidePointerEventsDisabled.delete(E),pg())},[E,m]),B.useEffect(()=>{const F=$t(()=>x({}),"handleUpdate");return document.addEventListener(fg,F),()=>document.removeEventListener(fg,F)},[]),r.jsx(Zt.div,{...y,ref:j,style:{pointerEvents:_?k?"auto":"none":void 0,...t.style},onFocusCapture:ut(t.onFocusCapture,M.onFocusCapture),onBlurCapture:ut(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:ut(t.onPointerDownCapture,z.onPointerDownCapture)})},"DismissableLayer"));function vx(){const e=B.useContext(Ex),[t,a]=B.useState(null);return B.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}$t(vx,"useDismissableLayerSurface");var uO=$t(()=>!0,"IS_TRUE");function bx(e,t){const{ownerDocument:a=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:c,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=uO}=t,f=hr(e),h=B.useRef(!1),A=B.useRef(!1),y=B.useRef(new Map),m=B.useRef(()=>{});return B.useEffect(()=>{function E(){A.current=!1,c.current=!1,y.current.clear()}$t(E,"resetOutsideInteraction");function b(){return Array.from(y.current.values()).some(Boolean)}$t(b,"isOutsideInteractionIntercepted");function w(O){if(!A.current)return;const S=O.target;S instanceof Node&&[...l].some(k=>k.contains(S))||y.current.set(O.type,!0),O.type==="click"&&window.setTimeout(()=>{A.current&&m.current()},0)}$t(w,"handleInteractionCapture");function x(O){A.current&&y.current.set(O.type,!1)}$t(x,"handleInteractionBubble");const j=$t(O=>{if(O.target&&!h.current){let S=function(){a.removeEventListener("click",m.current);const k=b();E(),k||fA(lO,f,_,{discrete:!0})};if($t(S,"handleAndDispatchPointerDownOutsideEvent"),!u(O.target)){a.removeEventListener("click",m.current),E(),h.current=!1;return}const _={originalEvent:O};A.current=!0,c.current=s&&O.button===0,y.current.clear(),!s||O.button!==0?S():(a.removeEventListener("click",m.current),m.current=S,a.addEventListener("click",m.current,{once:!0}))}else a.removeEventListener("click",m.current),E();h.current=!1},"handlePointerDown"),I=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const O of I)a.addEventListener(O,w,!0),a.addEventListener(O,x);const C=window.setTimeout(()=>{a.addEventListener("pointerdown",j)},0);return()=>{window.clearTimeout(C),a.removeEventListener("pointerdown",j),a.removeEventListener("click",m.current);for(const O of I)a.removeEventListener(O,w,!0),a.removeEventListener(O,x)}},[a,f,s,c,l,u]),{onPointerDownCapture:$t(()=>h.current=!0,"onPointerDownCapture")}}$t(bx,"usePointerDownOutside");function wx(e,t=globalThis==null?void 0:globalThis.document){const a=hr(e),s=B.useRef(!1);return B.useEffect(()=>{const c=$t(l=>{l.target&&!s.current&&fA(dO,a,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",c),()=>t.removeEventListener("focusin",c)},[t,a]),{onFocusCapture:$t(()=>s.current=!0,"onFocusCapture"),onBlurCapture:$t(()=>s.current=!1,"onBlurCapture")}}$t(wx,"useFocusOutside");function pg(){const e=new CustomEvent(fg);document.dispatchEvent(e)}$t(pg,"dispatchUpdate");function fA(e,t,a,{discrete:s}){const c=a.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&c.addEventListener(e,t,{once:!0}),s?nx(c,l):c.dispatchEvent(l)}$t(fA,"handleAndDispatchCustomEvent");var fO=Object.defineProperty,pn=(e,t)=>fO(e,"name",{value:t,configurable:!0}),Ih="focusScope.autoFocusOnMount",Ch="focusScope.autoFocusOnUnmount",Mv={bubbles:!1,cancelable:!0},pO=B.forwardRef(pn(function(t,a){const{loop:s=!1,trapped:c=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...f}=t,[h,A]=B.useState(null),y=hr(l),m=hr(u),E=B.useRef(null),b=Gt(a,A),w=B.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;B.useEffect(()=>{if(c){let j=function(S){if(w.paused||!h)return;const _=S.target;h.contains(_)?E.current=_:pi(E.current,{select:!0})},I=function(S){if(w.paused||!h)return;const _=S.relatedTarget;_!==null&&(h.contains(_)||pi(E.current,{select:!0}))},C=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&pi(h)};pn(j,"handleFocusIn"),pn(I,"handleFocusOut"),pn(C,"handleMutations"),document.addEventListener("focusin",j),document.addEventListener("focusout",I);const O=new MutationObserver(C);return h&&O.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",I),O.disconnect()}}},[c,h,w.paused]),B.useEffect(()=>{if(h){Gv.add(w);const j=document.activeElement;if(!h.contains(j)){const C=new CustomEvent(Ih,Mv);h.addEventListener(Ih,y),h.dispatchEvent(C),C.defaultPrevented||(xx(Sx(pA(h)),{select:!0}),document.activeElement===j&&pi(h))}return()=>{h.removeEventListener(Ih,y),setTimeout(()=>{const C=new CustomEvent(Ch,Mv);h.addEventListener(Ch,m),h.dispatchEvent(C),C.defaultPrevented||pi(j??document.body,{select:!0}),h.removeEventListener(Ch,m),Gv.remove(w)},0)}}},[h,y,m,w]);const x=B.useCallback(j=>{if(!s&&!c||w.paused)return;const I=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,C=document.activeElement;if(I&&C){const O=j.currentTarget,[S,_]=jx(O);S&&_?!j.shiftKey&&C===_?(j.preventDefault(),s&&pi(S,{select:!0})):j.shiftKey&&C===S&&(j.preventDefault(),s&&pi(_,{select:!0})):C===O&&j.preventDefault()}},[s,c,w.paused]);return r.jsx(Zt.div,{tabIndex:-1,...f,ref:b,onKeyDown:x})},"FocusScope"));function xx(e,{select:t=!1}={}){const a=document.activeElement;for(const s of e)if(pi(s,{select:t}),document.activeElement!==a)return}pn(xx,"focusFirst");function jx(e){const t=pA(e),a=hg(t,e),s=hg(t.reverse(),e);return[a,s]}pn(jx,"getTabbableEdges");function pA(e){const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:pn(s=>{const c=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||c?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}pn(pA,"getTabbableCandidates");function hg(e,t){const a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const s of e)if(!(a?!s.checkVisibility({checkVisibilityCSS:!0}):Qx(s,{upTo:t})))return s}pn(hg,"findVisible");function Qx(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}pn(Qx,"isHidden");function Ix(e){return e instanceof HTMLInputElement&&"select"in e}pn(Ix,"isSelectableInput");function pi(e,{select:t=!1}={}){if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&Ix(e)&&t&&e.select()}}pn(pi,"focus");var Gv=Cx();function Cx(){let e=[];return{add(t){const a=e[0];t!==a&&(a==null||a.pause()),e=gg(e,t),e.unshift(t)},remove(t){var a;e=gg(e,t),(a=e[0])==null||a.resume()}}}pn(Cx,"createFocusScopesStack");function gg(e,t){const a=[...e],s=a.indexOf(t);return s!==-1&&a.splice(s,1),a}pn(gg,"arrayRemove");function Sx(e){return e.filter(t=>t.tagName!=="A")}pn(Sx,"removeLinks");var hO=Object.defineProperty,gO=(e,t)=>hO(e,"name",{value:t,configurable:!0}),Ox=B.forwardRef(gO(function(t,a){var h;const{container:s,...c}=t,[l,u]=B.useState(!1);Qn(()=>u(!0),[]);const f=s||l&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?cA.createPortal(r.jsx(Zt.div,{...c,ref:a}),f):null},"Portal")),AO=Object.defineProperty,hA=(e,t)=>AO(e,"name",{value:t,configurable:!0}),Gd=0,Sa=null;function mO(e){return gA(),e.children}hA(mO,"FocusGuards");function gA(){B.useEffect(()=>{Sa||(Sa={start:Ag(),end:Ag()});const{start:e,end:t}=Sa;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Gd++,()=>{Gd===1&&(Sa==null||Sa.start.remove(),Sa==null||Sa.end.remove(),Sa=null),Gd=Math.max(0,Gd-1)}},[])}hA(gA,"useFocusGuards");function Ag(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}hA(Ag,"createFocusGuard");var Ma=function(){return Ma=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++){a=arguments[s];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(t[l]=a[l])}return t},Ma.apply(this,arguments)};function _x(e,t){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(a[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(e);c<s.length;c++)t.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(e,s[c])&&(a[s[c]]=e[s[c]]);return a}function yO(e,t,a){if(a||arguments.length===2)for(var s=0,c=t.length,l;s<c;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var iu="right-scroll-bar-position",ru="width-before-scroll-bar",EO="with-scroll-bars-hidden",BO="--removed-body-scroll-bar-size";function Sh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vO(e,t){var a=B.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(s){var c=a.value;c!==s&&(a.value=s,a.callback(s,c))}}}})[0];return a.callback=t,a.facade}var bO=typeof window<"u"?B.useLayoutEffect:B.useEffect,Yv=new WeakMap;function wO(e,t){var a=vO(null,function(s){return e.forEach(function(c){return Sh(c,s)})});return bO(function(){var s=Yv.get(a);if(s){var c=new Set(s),l=new Set(e),u=a.current;c.forEach(function(f){l.has(f)||Sh(f,null)}),l.forEach(function(f){c.has(f)||Sh(f,u)})}Yv.set(a,e)},[e]),a}function xO(e){return e}function jO(e,t){t===void 0&&(t=xO);var a=[],s=!1,c={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(l){var u=t(l,s);return a.push(u),function(){a=a.filter(function(f){return f!==u})}},assignSyncMedium:function(l){for(s=!0;a.length;){var u=a;a=[],u.forEach(l)}a={push:function(f){return l(f)},filter:function(){return a}}},assignMedium:function(l){s=!0;var u=[];if(a.length){var f=a;a=[],f.forEach(l),u=a}var h=function(){var y=u;u=[],y.forEach(l)},A=function(){return Promise.resolve().then(h)};A(),a={push:function(y){u.push(y),A()},filter:function(y){return u=u.filter(y),a}}}};return c}function QO(e){e===void 0&&(e={});var t=jO(null);return t.options=Ma({async:!0,ssr:!1},e),t}var Nx=function(e){var t=e.sideCar,a=_x(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return B.createElement(s,Ma({},a))};Nx.isSideCarExport=!0;function IO(e,t){return e.useMedium(t),Nx}var Rx=QO(),Oh=function(){},_u=B.forwardRef(function(e,t){var a=B.useRef(null),s=B.useState({onScrollCapture:Oh,onWheelCapture:Oh,onTouchMoveCapture:Oh}),c=s[0],l=s[1],u=e.forwardProps,f=e.children,h=e.className,A=e.removeScrollBar,y=e.enabled,m=e.shards,E=e.sideCar,b=e.noRelative,w=e.noIsolation,x=e.inert,j=e.allowPinchZoom,I=e.as,C=I===void 0?"div":I,O=e.gapMode,S=_x(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=E,k=wO([a,t]),N=Ma(Ma({},S),c);return B.createElement(B.Fragment,null,y&&B.createElement(_,{sideCar:Rx,removeScrollBar:A,shards:m,noRelative:b,noIsolation:w,inert:x,setCallbacks:l,allowPinchZoom:!!j,lockRef:a,gapMode:O}),u?B.cloneElement(B.Children.only(f),Ma(Ma({},N),{ref:k})):B.createElement(C,Ma({},N,{className:h,ref:k}),f))});_u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_u.classNames={fullWidth:ru,zeroRight:iu};var CO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=CO();return t&&e.setAttribute("nonce",t),e}function OO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _O(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var NO=function(){var e=0,t=null;return{add:function(a){e==0&&(t=SO())&&(OO(t,a),_O(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},RO=function(){var e=NO();return function(t,a){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}},Dx=function(){var e=RO(),t=function(a){var s=a.styles,c=a.dynamic;return e(s,c),null};return t},DO={left:0,top:0,right:0,gap:0},_h=function(e){return parseInt(e||"",10)||0},TO=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[_h(a),_h(s),_h(c)]},kO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DO;var t=TO(e),a=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-a+t[2]-t[0])}},MO=Dx(),co="data-scroll-locked",GO=function(e,t,a,s){var c=e.left,l=e.top,u=e.right,f=e.gap;return a===void 0&&(a="margin"),`
|
|
50
|
-
.`.concat(EO,` {
|
|
51
|
-
overflow: hidden `).concat(s,`;
|
|
52
|
-
padding-right: `).concat(f,"px ").concat(s,`;
|
|
53
|
-
}
|
|
54
|
-
body[`).concat(co,`] {
|
|
55
|
-
overflow: hidden `).concat(s,`;
|
|
56
|
-
overscroll-behavior: contain;
|
|
57
|
-
`).concat([t&&"position: relative ".concat(s,";"),a==="margin"&&`
|
|
58
|
-
padding-left: `.concat(c,`px;
|
|
59
|
-
padding-top: `).concat(l,`px;
|
|
60
|
-
padding-right: `).concat(u,`px;
|
|
61
|
-
margin-left:0;
|
|
62
|
-
margin-top:0;
|
|
63
|
-
margin-right: `).concat(f,"px ").concat(s,`;
|
|
64
|
-
`),a==="padding"&&"padding-right: ".concat(f,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.`).concat(iu,` {
|
|
68
|
-
right: `).concat(f,"px ").concat(s,`;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.`).concat(ru,` {
|
|
72
|
-
margin-right: `).concat(f,"px ").concat(s,`;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.`).concat(iu," .").concat(iu,` {
|
|
76
|
-
right: 0 `).concat(s,`;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.`).concat(ru," .").concat(ru,` {
|
|
80
|
-
margin-right: 0 `).concat(s,`;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
body[`).concat(co,`] {
|
|
84
|
-
`).concat(BO,": ").concat(f,`px;
|
|
85
|
-
}
|
|
86
|
-
`)},Hv=function(){var e=parseInt(document.body.getAttribute(co)||"0",10);return isFinite(e)?e:0},YO=function(){B.useEffect(function(){return document.body.setAttribute(co,(Hv()+1).toString()),function(){var e=Hv()-1;e<=0?document.body.removeAttribute(co):document.body.setAttribute(co,e.toString())}},[])},HO=function(e){var t=e.noRelative,a=e.noImportant,s=e.gapMode,c=s===void 0?"margin":s;YO();var l=B.useMemo(function(){return kO(c)},[c]);return B.createElement(MO,{styles:GO(l,!t,c,a?"":"!important")})},mg=!1;if(typeof window<"u")try{var Yd=Object.defineProperty({},"passive",{get:function(){return mg=!0,!0}});window.addEventListener("test",Yd,Yd),window.removeEventListener("test",Yd,Yd)}catch{mg=!1}var Ws=mg?{passive:!1}:!1,zO=function(e){return e.tagName==="TEXTAREA"},Tx=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!zO(e)&&a[t]==="visible")},$O=function(e){return Tx(e,"overflowY")},UO=function(e){return Tx(e,"overflowX")},zv=function(e,t){var a=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=kx(e,s);if(c){var l=Mx(e,s),u=l[1],f=l[2];if(u>f)return!0}s=s.parentNode}while(s&&s!==a.body);return!1},LO=function(e){var t=e.scrollTop,a=e.scrollHeight,s=e.clientHeight;return[t,a,s]},PO=function(e){var t=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth;return[t,a,s]},kx=function(e,t){return e==="v"?$O(t):UO(t)},Mx=function(e,t){return e==="v"?LO(t):PO(t)},FO=function(e,t){return e==="h"&&t==="rtl"?-1:1},VO=function(e,t,a,s,c){var l=FO(e,window.getComputedStyle(t).direction),u=l*s,f=a.target,h=t.contains(f),A=!1,y=u>0,m=0,E=0;do{if(!f)break;var b=Mx(e,f),w=b[0],x=b[1],j=b[2],I=x-j-l*w;(w||I)&&kx(e,f)&&(m+=I,E+=w);var C=f.parentNode;f=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(y&&Math.abs(m)<1||!y&&Math.abs(E)<1)&&(A=!0),A},Hd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$v=function(e){return[e.deltaX,e.deltaY]},Uv=function(e){return e&&"current"in e?e.current:e},qO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},KO=function(e){return`
|
|
87
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
88
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
89
|
-
`)},JO=0,eo=[];function ZO(e){var t=B.useRef([]),a=B.useRef([0,0]),s=B.useRef(),c=B.useState(JO++)[0],l=B.useState(Dx)[0],u=B.useRef(e);B.useEffect(function(){u.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var x=yO([e.lockRef.current],(e.shards||[]).map(Uv),!0).filter(Boolean);return x.forEach(function(j){return j.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),x.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var f=B.useCallback(function(x,j){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!u.current.allowPinchZoom;var I=Hd(x),C=a.current,O="deltaX"in x?x.deltaX:C[0]-I[0],S="deltaY"in x?x.deltaY:C[1]-I[1],_,k=x.target,N=Math.abs(O)>Math.abs(S)?"h":"v";if("touches"in x&&N==="h"&&k.type==="range")return!1;var z=window.getSelection(),M=z&&z.anchorNode,L=M?M===k||M.contains(k):!1;if(L)return!1;var Z=zv(N,k);if(!Z)return!0;if(Z?_=N:(_=N==="v"?"h":"v",Z=zv(N,k)),!Z)return!1;if(!s.current&&"changedTouches"in x&&(O||S)&&(s.current=_),!_)return!0;var F=s.current||_;return VO(F,j,x,F==="h"?O:S)},[]),h=B.useCallback(function(x){var j=x;if(!(!eo.length||eo[eo.length-1]!==l)){var I="deltaY"in j?$v(j):Hd(j),C=t.current.filter(function(_){return _.name===j.type&&(_.target===j.target||j.target===_.shadowParent)&&qO(_.delta,I)})[0];if(C&&C.should){j.cancelable&&j.preventDefault();return}if(!C){var O=(u.current.shards||[]).map(Uv).filter(Boolean).filter(function(_){return _.contains(j.target)}),S=O.length>0?f(j,O[0]):!u.current.noIsolation;S&&j.cancelable&&j.preventDefault()}}},[]),A=B.useCallback(function(x,j,I,C){var O={name:x,delta:j,target:I,should:C,shadowParent:XO(I)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(S){return S!==O})},1)},[]),y=B.useCallback(function(x){a.current=Hd(x),s.current=void 0},[]),m=B.useCallback(function(x){A(x.type,$v(x),x.target,f(x,e.lockRef.current))},[]),E=B.useCallback(function(x){A(x.type,Hd(x),x.target,f(x,e.lockRef.current))},[]);B.useEffect(function(){return eo.push(l),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:E}),document.addEventListener("wheel",h,Ws),document.addEventListener("touchmove",h,Ws),document.addEventListener("touchstart",y,Ws),function(){eo=eo.filter(function(x){return x!==l}),document.removeEventListener("wheel",h,Ws),document.removeEventListener("touchmove",h,Ws),document.removeEventListener("touchstart",y,Ws)}},[]);var b=e.removeScrollBar,w=e.inert;return B.createElement(B.Fragment,null,w?B.createElement(l,{styles:KO(c)}):null,b?B.createElement(HO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function XO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const WO=IO(Rx,ZO);var Gx=B.forwardRef(function(e,t){return B.createElement(_u,Ma({},e,{ref:t,sideCar:WO}))});Gx.classNames=_u.classNames;var e_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},to=new WeakMap,zd=new WeakMap,$d={},Nh=0,Yx=function(e){return e&&(e.host||Yx(e.parentNode))},t_=function(e,t){return t.map(function(a){if(e.contains(a))return a;var s=Yx(a);return s&&e.contains(s)?s:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},n_=function(e,t,a,s){var c=t_(t,Array.isArray(e)?e:[e]);$d[a]||($d[a]=new WeakMap);var l=$d[a],u=[],f=new Set,h=new Set(c),A=function(m){!m||f.has(m)||(f.add(m),A(m.parentNode))};c.forEach(A);var y=function(m){!m||h.has(m)||Array.prototype.forEach.call(m.children,function(E){if(f.has(E))y(E);else try{var b=E.getAttribute(s),w=b!==null&&b!=="false",x=(to.get(E)||0)+1,j=(l.get(E)||0)+1;to.set(E,x),l.set(E,j),u.push(E),x===1&&w&&zd.set(E,!0),j===1&&E.setAttribute(a,"true"),w||E.setAttribute(s,"true")}catch(I){console.error("aria-hidden: cannot operate on ",E,I)}})};return y(t),f.clear(),Nh++,function(){u.forEach(function(m){var E=to.get(m)-1,b=l.get(m)-1;to.set(m,E),l.set(m,b),E||(zd.has(m)||m.removeAttribute(s),zd.delete(m)),b||m.removeAttribute(a)}),Nh--,Nh||(to=new WeakMap,to=new WeakMap,zd=new WeakMap,$d={})}},a_=function(e,t,a){a===void 0&&(a="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),c=e_(e);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),n_(s,c,a,"aria-hidden")):function(){return null}},i_=Object.defineProperty,qn=(e,t)=>i_(e,"name",{value:t,configurable:!0}),AA="Dialog",[Hx,zx]=Qi(AA),[r_,wa]=Hx(AA),s_=qn(e=>{const{__scopeDialog:t,children:a,open:s,defaultOpen:c,onOpenChange:l,modal:u=!0}=e,f=B.useRef(null),h=B.useRef(null),[A,y]=ul({prop:s,defaultProp:c??!1,onChange:l,caller:AA}),[m,E]=B.useState(0),[b,w]=B.useState(0);return r.jsx(r_,{scope:t,triggerRef:f,contentRef:h,contentId:ns(),titleId:ns(),descriptionId:ns(),titlePresent:m>0,descriptionPresent:b>0,setTitleCount:E,setDescriptionCount:w,open:A,onOpenChange:y,onOpenToggle:B.useCallback(()=>y(x=>!x),[y]),modal:u,children:a})},"Dialog"),o_="DialogTrigger",c_=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(o_,s),u=Gt(a,l.triggerRef);return r.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":Nu(l.open),...c,ref:u,onClick:ut(t.onClick,l.onOpenToggle)})},"DialogTrigger")),$x="DialogPortal",[l_,Ux]=Hx($x,{forceMount:void 0}),d_=qn(e=>{const{__scopeDialog:t,forceMount:a,children:s,container:c}=e,l=wa($x,t);return r.jsx(l_,{scope:t,forceMount:a,children:B.Children.map(s,u=>r.jsx(No,{present:a||l.open,children:r.jsx(Ox,{asChild:!0,container:c,children:u})}))})},"DialogPortal"),yg="DialogOverlay",u_=B.forwardRef(qn(function(t,a){const s=Ux(yg,t.__scopeDialog),{forceMount:c=s.forceMount,...l}=t,u=wa(yg,t.__scopeDialog);return u.modal?r.jsx(No,{present:c||u.open,children:r.jsx(p_,{...l,ref:a})}):null},"DialogOverlay")),f_=is("DialogOverlay.RemoveScroll"),p_=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(yg,s),u=vx(),f=Gt(a,u);return r.jsx(Gx,{as:f_,allowPinchZoom:!0,shards:[l.contentRef],children:r.jsx(Zt.div,{"data-state":Nu(l.open),...c,ref:f,style:{pointerEvents:"auto",...c.style}})})},"DialogOverlayImpl")),Lc="DialogContent",h_=B.forwardRef(qn(function(t,a){const s=Ux(Lc,t.__scopeDialog),{forceMount:c=s.forceMount,...l}=t,u=wa(Lc,t.__scopeDialog);return r.jsx(No,{present:c||u.open,children:u.modal?r.jsx(g_,{...l,ref:a}):r.jsx(A_,{...l,ref:a})})},"DialogContent")),g_=B.forwardRef(qn(function(t,a){const s=wa(Lc,t.__scopeDialog),c=B.useRef(null),l=Gt(a,s.contentRef,c);return B.useEffect(()=>{const u=c.current;if(u)return a_(u)},[]),r.jsx(Lx,{...t,ref:l,trapFocus:s.open,disableOutsidePointerEvents:s.open,onCloseAutoFocus:ut(t.onCloseAutoFocus,u=>{var f;u.preventDefault(),(f=s.triggerRef.current)==null||f.focus()}),onPointerDownOutside:ut(t.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&u.preventDefault()}),onFocusOutside:ut(t.onFocusOutside,u=>u.preventDefault())})},"DialogContentModal")),A_=B.forwardRef(qn(function(t,a){const s=wa(Lc,t.__scopeDialog),c=B.useRef(!1),l=B.useRef(!1);return r.jsx(Lx,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var f,h;(f=t.onCloseAutoFocus)==null||f.call(t,u),u.defaultPrevented||(c.current||(h=s.triggerRef.current)==null||h.focus(),u.preventDefault()),c.current=!1,l.current=!1},onInteractOutside:u=>{var A,y;(A=t.onInteractOutside)==null||A.call(t,u),u.defaultPrevented||(c.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const f=u.target;((y=s.triggerRef.current)==null?void 0:y.contains(f))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})},"DialogContentNonModal")),Lx=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,trapFocus:c,onOpenAutoFocus:l,onCloseAutoFocus:u,...f}=t,h=wa(Lc,s);return gA(),r.jsx(r.Fragment,{children:r.jsx(pO,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:l,onUnmountAutoFocus:u,children:r.jsx(Bx,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":Nu(h.open),...f,ref:a,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl")),m_="DialogTitle",y_=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(m_,s),{setTitleCount:u}=l;return Qn(()=>(u(f=>f+1),()=>u(f=>f-1)),[u]),r.jsx(Zt.h2,{id:l.titleId,...c,ref:a})},"DialogTitle")),E_="DialogDescription",B_=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(E_,s),{setDescriptionCount:u}=l;return Qn(()=>(u(f=>f+1),()=>u(f=>f-1)),[u]),r.jsx(Zt.p,{id:l.descriptionId,...c,ref:a})},"DialogDescription")),v_="DialogClose",Px=B.forwardRef(qn(function(t,a){const{__scopeDialog:s,...c}=t,l=wa(v_,s);return r.jsx(Zt.button,{type:"button",...c,ref:a,onClick:ut(t.onClick,()=>l.onOpenChange(!1))})},"DialogClose"));function Nu(e){return e?"open":"closed"}qn(Nu,"getState");var b_=Object.defineProperty,Ii=(e,t)=>b_(e,"name",{value:t,configurable:!0}),w_="AlertDialog",[x_,z4]=Qi(w_,[zx]),Ci=zx(),j_=Ii(e=>{const{__scopeAlertDialog:t,...a}=e,s=Ci(t);return r.jsx(s_,{...s,...a,modal:!0})},"AlertDialog");B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(c_,{...l,...c,ref:a})},"AlertDialogTrigger"));var Q_=Ii(e=>{const{__scopeAlertDialog:t,...a}=e,s=Ci(t);return r.jsx(d_,{...s,...a})},"AlertDialogPortal"),I_=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(u_,{...l,...c,ref:a})},"AlertDialogOverlay")),C_="AlertDialogContent",[S_,O_]=x_(C_),__=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,children:c,...l}=t,u=Ci(s),f=B.useRef(null),h=Gt(a,f),A=B.useRef(null);return r.jsx(S_,{scope:s,cancelRef:A,children:r.jsx(h_,{role:"alertdialog",...u,...l,ref:h,onOpenAutoFocus:ut(l.onOpenAutoFocus,y=>{var m;y.preventDefault(),(m=A.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:y=>y.preventDefault(),onInteractOutside:y=>y.preventDefault(),children:c})})},"AlertDialogContent")),N_=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(y_,{...l,...c,ref:a})},"AlertDialogTitle")),R_=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(B_,{...l,...c,ref:a})},"AlertDialogDescription"));B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,l=Ci(s);return r.jsx(Px,{...l,...c,ref:a})},"AlertDialogAction"));var D_="AlertDialogCancel",T_=B.forwardRef(Ii(function(t,a){const{__scopeAlertDialog:s,...c}=t,{cancelRef:l}=O_(D_,s),u=Ci(s),f=Gt(a,l);return r.jsx(Px,{...u,...c,ref:f})},"AlertDialogCancel")),k_=j_,M_=Q_,G_=I_,Y_=__,H_=T_,z_=N_,$_=R_,U_=Object.defineProperty,L_=(e,t)=>U_(e,"name",{value:t,configurable:!0});function Fx(e){const[t,a]=B.useState(void 0);return Qn(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const l=c[0];let u,f;if("borderBoxSize"in l){const h=l.borderBoxSize,A=Array.isArray(h)?h[0]:h;u=A.inlineSize,f=A.blockSize}else u=e.offsetWidth,f=e.offsetHeight;a({width:u,height:f})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else a(void 0)},[e]),t}L_(Fx,"useSize");const P_=["top","right","bottom","left"],gr=Math.min,Bi=Math.max,fu=Math.round,Ud=Math.floor,vi=e=>({x:e,y:e}),F_={left:"right",right:"left",bottom:"top",top:"bottom"};function Vx(e,t,a){return Bi(e,gr(t,a))}function xi(e,t){return typeof e=="function"?e(t):e}function Ar(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function mA(e){return e==="x"?"y":"x"}function yA(e){return e==="y"?"height":"width"}function Ga(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function EA(e){return mA(Ga(e))}function V_(e,t,a){a===void 0&&(a=!1);const s=Ro(e),c=EA(e),l=yA(c);let u=c==="x"?s===(a?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=pu(u)),[u,pu(u)]}function q_(e){const t=pu(e);return[Eg(e),t,Eg(t)]}function Eg(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Lv=["left","right"],Pv=["right","left"],K_=["top","bottom"],J_=["bottom","top"];function Z_(e,t,a){switch(e){case"top":case"bottom":return a?t?Pv:Lv:t?Lv:Pv;case"left":case"right":return t?K_:J_;default:return[]}}function X_(e,t,a,s){const c=Ro(e);let l=Z_(Ar(e),a==="start",s);return c&&(l=l.map(u=>u+"-"+c),t&&(l=l.concat(l.map(Eg)))),l}function pu(e){const t=Ar(e);return F_[t]+e.slice(t.length)}function W_(e){var t,a,s,c;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(s=e.bottom)!=null?s:0,left:(c=e.left)!=null?c:0}}function qx(e){return typeof e!="number"?W_(e):{top:e,right:e,bottom:e,left:e}}function hu(e){const{x:t,y:a,width:s,height:c}=e;return{width:s,height:c,top:a,left:t,right:t+s,bottom:a+c,x:t,y:a}}function Fv(e,t,a){let{reference:s,floating:c}=e;const l=Ga(t),u=EA(t),f=yA(u),h=Ar(t),A=l==="y",y=s.x+s.width/2-c.width/2,m=s.y+s.height/2-c.height/2,E=s[f]/2-c[f]/2;let b;switch(h){case"top":b={x:y,y:s.y-c.height};break;case"bottom":b={x:y,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:m};break;case"left":b={x:s.x-c.width,y:m};break;default:b={x:s.x,y:s.y}}const w=Ro(t);return w&&(b[u]+=E*(w==="end"?1:-1)*(a&&A?-1:1)),b}async function eN(e,t){var a;t===void 0&&(t={});const{x:s,y:c,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:A="clippingAncestors",rootBoundary:y="viewport",elementContext:m="floating",altBoundary:E=!1,padding:b=0}=xi(t,e),w=qx(b),j=f[E?m==="floating"?"reference":"floating":m],I=hu(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(j)))==null||a?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:A,rootBoundary:y,strategy:h})),C=m==="floating"?{x:s,y:c,width:u.floating.width,height:u.floating.height}:u.reference,O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),S=await(l.isElement==null?void 0:l.isElement(O))&&await(l.getScale==null?void 0:l.getScale(O))||{x:1,y:1},_=hu(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:C,offsetParent:O,strategy:h}):C);return{top:(I.top-_.top+w.top)/S.y,bottom:(_.bottom-I.bottom+w.bottom)/S.y,left:(I.left-_.left+w.left)/S.x,right:(_.right-I.right+w.right)/S.x}}const tN=50,nN=async(e,t,a)=>{const{placement:s="bottom",strategy:c="absolute",middleware:l=[],platform:u}=a,f=u.detectOverflow?u:{...u,detectOverflow:eN},h=await(u.isRTL==null?void 0:u.isRTL(t));let A=await u.getElementRects({reference:e,floating:t,strategy:c}),{x:y,y:m}=Fv(A,s,h),E=s,b=0;const w={};for(let x=0;x<l.length;x++){const j=l[x];if(!j)continue;const{name:I,fn:C}=j,{x:O,y:S,data:_,reset:k}=await C({x:y,y:m,initialPlacement:s,placement:E,strategy:c,middlewareData:w,rects:A,platform:f,elements:{reference:e,floating:t}});y=O??y,m=S??m,w[I]={...w[I],..._},k&&b<tN&&(b++,typeof k=="object"&&(k.placement&&(E=k.placement),k.rects&&(A=k.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:c}):k.rects),{x:y,y:m}=Fv(A,E,h)),x=-1)}return{x:y,y:m,placement:E,strategy:c,middlewareData:w}},aN=e=>({name:"arrow",options:e,async fn(t){const{x:a,y:s,placement:c,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:A,padding:y=0}=xi(e,t)||{};if(A==null)return{};const m=qx(y),E={x:a,y:s},b=EA(c),w=yA(b),x=await u.getDimensions(A),j=b==="y",I=j?"top":"left",C=j?"bottom":"right",O=j?"clientHeight":"clientWidth",S=l.reference[w]+l.reference[b]-E[b]-l.floating[w],_=E[b]-l.reference[b],k=await(u.getOffsetParent==null?void 0:u.getOffsetParent(A));let N=k?k[O]:0;(!N||!await(u.isElement==null?void 0:u.isElement(k)))&&(N=f.floating[O]||l.floating[w]);const z=S/2-_/2,M=N/2-x[w]/2-1,L=gr(m[I],M),Z=gr(m[C],M),F=N-x[w]-Z,oe=N/2-x[w]/2+z,re=Vx(L,oe,F),pe=!h.arrow&&Ro(c)!=null&&oe!==re&&l.reference[w]/2-(oe<L?L:Z)-x[w]/2<0,Y=pe?oe<L?oe-L:oe-F:0;return{[b]:E[b]+Y,data:{[b]:re,centerOffset:oe-re-Y,...pe&&{alignmentOffset:Y}},reset:pe}}}),iN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,s;const{placement:c,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:A}=t,{mainAxis:y=!0,crossAxis:m=!0,fallbackPlacements:E,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...j}=xi(e,t);if((a=l.arrow)!=null&&a.alignmentOffset)return{};const I=Ar(c),C=Ga(f),O=Ar(f)===f,S=await(h.isRTL==null?void 0:h.isRTL(A.floating)),_=E||(O||!x?[pu(f)]:q_(f)),k=w!=="none";!E&&k&&_.push(...X_(f,x,w,S));const N=[f,..._],z=await h.detectOverflow(t,j),M=[];let L=((s=l.flip)==null?void 0:s.overflows)||[];if(y&&M.push(z[I]),m){const re=V_(c,u,S);M.push(z[re[0]],z[re[1]])}if(L=[...L,{placement:c,overflows:M}],!M.every(re=>re<=0)){var Z,F;const re=(((Z=l.flip)==null?void 0:Z.index)||0)+1,pe=N[re];if(pe&&(!(m==="alignment"?C!==Ga(pe):!1)||L.every(te=>Ga(te.placement)===C?te.overflows[0]>0:!0)))return{data:{index:re,overflows:L},reset:{placement:pe}};let Y=(F=L.filter(V=>V.overflows[0]<=0).sort((V,te)=>V.overflows[1]-te.overflows[1])[0])==null?void 0:F.placement;if(!Y)switch(b){case"bestFit":{var oe;const V=(oe=L.filter(te=>{if(k){const le=Ga(te.placement);return le===C||le==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(le=>le>0).reduce((le,fe)=>le+fe,0)]).sort((te,le)=>te[1]-le[1])[0])==null?void 0:oe[0];V&&(Y=V);break}case"initialPlacement":Y=f;break}if(c!==Y)return{reset:{placement:Y}}}return{}}}};function Vv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qv(e){return P_.some(t=>e[t]>=0)}const rN=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:a,platform:s}=t,{strategy:c="referenceHidden",...l}=xi(e,t);switch(c){case"referenceHidden":{const u=await s.detectOverflow(t,{...l,elementContext:"reference"}),f=Vv(u,a.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:qv(f)}}}case"escaped":{const u=await s.detectOverflow(t,{...l,altBoundary:!0}),f=Vv(u,a.floating);return{data:{escapedOffsets:f,escaped:qv(f)}}}default:return{}}}}},Kx=new Set(["left","top"]);async function sN(e,t){const{placement:a,platform:s,elements:c}=e,l=await(s.isRTL==null?void 0:s.isRTL(c.floating)),u=Ar(a),f=Ro(a),h=Ga(a)==="y",A=Kx.has(u)?-1:1,y=l&&h?-1:1,m=xi(t,e);let{mainAxis:E,crossAxis:b,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return f&&typeof w=="number"&&(b=f==="end"?w*-1:w),h?{x:b*y,y:E*A}:{x:E*A,y:b*y}}const oN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,s;const{x:c,y:l,placement:u,middlewareData:f}=t,h=await sN(t,e);return u===((a=f.offset)==null?void 0:a.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:c+h.x,y:l+h.y,data:{...h,placement:u}}}}},cN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:s,placement:c,platform:l}=t,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:C=>{let{x:O,y:S}=C;return{x:O,y:S}}},...A}=xi(e,t),y={x:a,y:s},m=await l.detectOverflow(t,A),E=Ga(c),b=mA(E);let w=y[b],x=y[E];const j=(C,O)=>Vx(O+m[C==="y"?"top":"left"],O,O-m[C==="y"?"bottom":"right"]);u&&(w=j(b,w)),f&&(x=j(E,x));const I=h.fn({...t,[b]:w,[E]:x});return{...I,data:{x:I.x-a,y:I.y-s,enabled:{[b]:u,[E]:f}}}}}},lN=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,s;const{x:c,y:l,placement:u,rects:f,middlewareData:h}=t,{offset:A=0,mainAxis:y=!0,crossAxis:m=!0}=xi(e,t),E={x:c,y:l},b=Ga(u),w=mA(b);let x=E[w],j=E[b];const I=xi(A,t),C=typeof I=="number"?{mainAxis:I,crossAxis:0}:{mainAxis:(a=I.mainAxis)!=null?a:0,crossAxis:(s=I.crossAxis)!=null?s:0};if(y){const _=w==="y"?"height":"width",k=f.reference[w]-f.floating[_]+C.mainAxis,N=f.reference[w]+f.reference[_]-C.mainAxis;x<k?x=k:x>N&&(x=N)}if(m){var O,S;const _=w==="y"?"width":"height",k=Kx.has(Ar(u)),N=f.reference[b]-f.floating[_]+(k&&((O=h.offset)==null?void 0:O[b])||0)+(k?0:C.crossAxis),z=f.reference[b]+f.reference[_]+(k?0:((S=h.offset)==null?void 0:S[b])||0)-(k?C.crossAxis:0);j<N?j=N:j>z&&(j=z)}return{[w]:x,[b]:j}}}},dN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:a,rects:s,platform:c,elements:l}=t,{apply:u=()=>{},...f}=xi(e,t),h=await c.detectOverflow(t,f),A=Ar(a),y=Ro(a),m=Ga(a)==="y",{width:E,height:b}=s.floating;let w,x;A==="top"||A==="bottom"?(w=A,x=y===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?"start":"end")?"left":"right"):(x=A,w=y==="end"?"top":"bottom");const j=b-h.top-h.bottom,I=E-h.left-h.right,C=gr(b-h[w],j),O=gr(E-h[x],I),S=t.middlewareData.shift,_=!S;let k=C,N=O;S!=null&&S.enabled.x&&(N=I),S!=null&&S.enabled.y&&(k=j),_&&!y&&(m?N=E-2*Bi(h.left,h.right):k=b-2*Bi(h.top,h.bottom)),await u({...t,availableWidth:N,availableHeight:k});const z=await c.getDimensions(l.floating);return E!==z.width||b!==z.height?{reset:{rects:!0}}:{}}}};function Ru(){return typeof window<"u"}function Do(e){return Jx(e)?(e.nodeName||"").toLowerCase():"#document"}function In(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Si(e){var t;return(t=(Jx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jx(e){return Ru()?e instanceof Node||e instanceof In(e).Node:!1}function za(e){return Ru()?e instanceof Element||e instanceof In(e).Element:!1}function Er(e){return Ru()?e instanceof HTMLElement||e instanceof In(e).HTMLElement:!1}function Kv(e){return!Ru()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof In(e).ShadowRoot}function Du(e){const{overflow:t,overflowX:a,overflowY:s,display:c}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+a)&&c!=="inline"&&c!=="contents"}function uN(e){return/^(table|td|th)$/.test(Do(e))}function Tu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const fN=/transform|translate|scale|rotate|perspective|filter/,pN=/paint|layout|strict|content/,zr=e=>!!e&&e!=="none";let Rh;function BA(e){const t=za(e)?$a(e):e;return zr(t.transform)||zr(t.translate)||zr(t.scale)||zr(t.rotate)||zr(t.perspective)||!vA()&&(zr(t.backdropFilter)||zr(t.filter))||fN.test(t.willChange||"")||pN.test(t.contain||"")}function hN(e){let t=rs(e);for(;Er(t)&&!Pc(t);){if(BA(t))return t;if(Tu(t))return null;t=rs(t)}return null}function vA(){return Rh==null&&(Rh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Rh}function Pc(e){return/^(html|body|#document)$/.test(Do(e))}function $a(e){return In(e).getComputedStyle(e)}function ku(e){return za(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rs(e){if(Do(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kv(e)&&e.host||Si(e);return Kv(t)?t.host:t}function Zx(e){const t=rs(e);return Pc(t)?(e.ownerDocument||e).body:Er(t)&&Du(t)?t:Zx(t)}function Fc(e,t,a){var s;t===void 0&&(t=[]),a===void 0&&(a=!0);const c=Zx(e),l=c===((s=e.ownerDocument)==null?void 0:s.body),u=In(c);if(l){const f=Bg(u);return t.concat(u,u.visualViewport||[],Du(c)?c:[],f&&a?Fc(f):[])}else return t.concat(c,Fc(c,[],a))}function Bg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xx(e){const t=$a(e);let a=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const c=Er(e),l=c?e.offsetWidth:a,u=c?e.offsetHeight:s,f=fu(a)!==l||fu(s)!==u;return f&&(a=l,s=u),{width:a,height:s,$:f}}function bA(e){return za(e)?e:e.contextElement}function lo(e){const t=bA(e);if(!Er(t))return vi(1);const a=t.getBoundingClientRect(),{width:s,height:c,$:l}=Xx(t);let u=(l?fu(a.width):a.width)/s,f=(l?fu(a.height):a.height)/c;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const gN=vi(0);function Wx(e){const t=In(e);return!vA()||!t.visualViewport?gN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function AN(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===In(e)}function ss(e,t,a,s){t===void 0&&(t=!1),a===void 0&&(a=!1);const c=e.getBoundingClientRect(),l=bA(e);let u=vi(1);t&&(s?za(s)&&(u=lo(s)):u=lo(e));const f=AN(l,a,s)?Wx(l):vi(0);let h=(c.left+f.x)/u.x,A=(c.top+f.y)/u.y,y=c.width/u.x,m=c.height/u.y;if(l&&s){const E=In(l),b=za(s)?In(s):s;let w=E,x=Bg(w);for(;x&&b!==w;){const j=lo(x),I=x.getBoundingClientRect(),C=$a(x),O=I.left+(x.clientLeft+parseFloat(C.paddingLeft))*j.x,S=I.top+(x.clientTop+parseFloat(C.paddingTop))*j.y;h*=j.x,A*=j.y,y*=j.x,m*=j.y,h+=O,A+=S,w=In(x),x=Bg(w)}}return hu({width:y,height:m,x:h,y:A})}function Mu(e,t){const a=ku(e).scrollLeft;return t?t.left+a:ss(Si(e)).left+a}function ej(e,t){const a=e.getBoundingClientRect(),s=a.left+t.scrollLeft-Mu(e,a),c=a.top+t.scrollTop;return{x:s,y:c}}function mN(e){let{elements:t,rect:a,offsetParent:s,strategy:c}=e;const l=c==="fixed",u=Si(s),f=t?Tu(t.floating):!1;if(s===u||f&&l)return a;let h={scrollLeft:0,scrollTop:0},A=vi(1);const y=vi(0),m=Er(s);if((m||!l)&&((Do(s)!=="body"||Du(u))&&(h=ku(s)),m)){const b=ss(s);A=lo(s),y.x=b.x+s.clientLeft,y.y=b.y+s.clientTop}const E=u&&!m&&!l?ej(u,h):vi(0);return{width:a.width*A.x,height:a.height*A.y,x:a.x*A.x-h.scrollLeft*A.x+y.x+E.x,y:a.y*A.y-h.scrollTop*A.y+y.y+E.y}}function yN(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function EN(e){const t=ku(e),a=e.ownerDocument.body,s=Bi(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),c=Bi(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight);let l=-t.scrollLeft+Mu(e);const u=-t.scrollTop;return $a(a).direction==="rtl"&&(l+=Bi(e.clientWidth,a.clientWidth)-s),{width:s,height:c,x:l,y:u}}const BN=25;function vN(e,t,a){a===void 0&&(a="viewport");const s=a==="layoutViewport",c=In(e),l=Si(e),u=c.visualViewport;let f=l.clientWidth,h=l.clientHeight,A=0,y=0;if(u){const E=!vA()||t==="fixed";s?E||(A=-u.offsetLeft,y=-u.offsetTop):(f=u.width,h=u.height,E&&(A=u.offsetLeft,y=u.offsetTop))}if(Mu(l)<=0){const E=l.ownerDocument,b=E.body,w=getComputedStyle(b),x=E.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,j=Math.abs(l.clientWidth-b.clientWidth-x),I=getComputedStyle(l).scrollbarGutter==="stable both-edges"?j/2:j;I<=BN&&(f-=I)}return{width:f,height:h,x:A,y}}function bN(e,t){const a=ss(e,!0,t==="fixed"),s=a.top+e.clientTop,c=a.left+e.clientLeft,l=lo(e),u=e.clientWidth*l.x,f=e.clientHeight*l.y,h=c*l.x,A=s*l.y;return{width:u,height:f,x:h,y:A}}function Jv(e,t,a){let s;if(t==="viewport"||t==="layoutViewport")s=vN(e,a,t);else if(t==="document")s=EN(Si(e));else if(za(t))s=bN(t,a);else{const c=Wx(e);s={x:t.x-c.x,y:t.y-c.y,width:t.width,height:t.height}}return hu(s)}function wN(e,t){const a=t.get(e);if(a)return a;let s=Fc(e,[],!1).filter(f=>za(f)&&Do(f)!=="body"),c=null;const l=$a(e).position==="fixed";let u=l?rs(e):e;for(;za(u)&&!Pc(u);){const f=$a(u),h=BA(u),A=c?c.position:l?"fixed":"";!h&&(A==="fixed"||A==="absolute"&&f.position==="static")?s=s.filter(m=>m!==u):c=f,u=rs(u)}return t.set(e,s),s}function xN(e){let{element:t,boundary:a,rootBoundary:s,strategy:c}=e;const u=[...a==="clippingAncestors"?Tu(t)?[]:wN(t,this._c):[].concat(a),s],f=Jv(t,u[0],c);let h=f.top,A=f.right,y=f.bottom,m=f.left;for(let E=1;E<u.length;E++){const b=Jv(t,u[E],c);h=Bi(b.top,h),A=gr(b.right,A),y=gr(b.bottom,y),m=Bi(b.left,m)}return{width:A-m,height:y-h,x:m,y:h}}function jN(e){const{width:t,height:a}=Xx(e);return{width:t,height:a}}function QN(e,t,a){const s=Er(t),c=Si(t),l=a==="fixed",u=ss(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const h=vi(0);if((s||!l)&&((Do(t)!=="body"||Du(c))&&(f=ku(t)),s)){const E=ss(t,!0,l,t);h.x=E.x+t.clientLeft,h.y=E.y+t.clientTop}!s&&c&&(h.x=Mu(c));const A=c&&!s&&!l?ej(c,f):vi(0),y=u.left+f.scrollLeft-h.x-A.x,m=u.top+f.scrollTop-h.y-A.y;return{x:y,y:m,width:u.width,height:u.height}}function Dh(e){return $a(e).position==="static"}function Zv(e,t){if(!Er(e)||$a(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Si(e)===a&&(a=a.ownerDocument.body),a}function tj(e,t){const a=In(e);if(Tu(e))return a;if(!Er(e)){let c=rs(e);for(;c&&!Pc(c);){if(za(c)&&!Dh(c))return c;c=rs(c)}return a}let s=Zv(e,t);for(;s&&uN(s)&&Dh(s);)s=Zv(s,t);return s&&Pc(s)&&Dh(s)&&!BA(s)?a:s||hN(e)||a}const IN=async function(e){const t=this.getOffsetParent||tj,a=this.getDimensions,s=await a(e.floating);return{reference:QN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function CN(e){return $a(e).direction==="rtl"}const SN={convertOffsetParentRelativeRectToViewportRelativeRect:mN,getDocumentElement:Si,getClippingRect:xN,getOffsetParent:tj,getElementRects:IN,getClientRects:yN,getDimensions:jN,getScale:lo,isElement:za,isRTL:CN};function nj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ON(e,t,a){let s=null,c;const l=Si(e);function u(){var y;clearTimeout(c),(y=s)==null||y.disconnect(),s=null}function f(y,m){y===void 0&&(y=!1),m===void 0&&(m=1),u();const E=e.getBoundingClientRect(),{left:b,top:w,width:x,height:j}=E;if(y||t(),!x||!j)return;const I=Ud(w),C=Ud(l.clientWidth-(b+x)),O=Ud(l.clientHeight-(w+j)),S=Ud(b),k={rootMargin:-I+"px "+-C+"px "+-O+"px "+-S+"px",threshold:Bi(0,gr(1,m))||1};let N=!0;function z(M){const L=M[0].intersectionRatio;if(!nj(E,e.getBoundingClientRect()))return f();if(L!==m){if(!N)return f();L?f(!1,L):c=setTimeout(()=>{f(!1,1e-7)},1e3)}N=!1}try{s=new IntersectionObserver(z,{...k,root:l.ownerDocument})}catch{s=new IntersectionObserver(z,k)}s.observe(e)}const h=In(e),A=()=>f(a);return h.addEventListener("resize",A),f(!0),()=>{h.removeEventListener("resize",A),u()}}function _N(e,t,a,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,A=bA(e),y=c||l?[...A?Fc(A):[],...t?Fc(t):[]]:[];y.forEach(I=>{c&&I.addEventListener("scroll",a),l&&I.addEventListener("resize",a)});const m=A&&f?ON(A,a,l):null;let E=-1,b=null;u&&(b=new ResizeObserver(I=>{let[C]=I;C&&C.target===A&&b&&t&&(b.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var O;(O=b)==null||O.observe(t)})),a()}),A&&!h&&b.observe(A),t&&b.observe(t));let w,x=h?ss(e):null;h&&j();function j(){const I=ss(e);x&&!nj(x,I)&&a(),x=I,w=requestAnimationFrame(j)}return a(),()=>{var I;y.forEach(C=>{c&&C.removeEventListener("scroll",a),l&&C.removeEventListener("resize",a)}),m==null||m(),(I=b)==null||I.disconnect(),b=null,h&&cancelAnimationFrame(w)}}const NN=oN,RN=cN,DN=iN,TN=dN,kN=rN,Xv=aN,MN=lN,GN=(e,t,a)=>{const s=new Map,c=a??{},l={...SN,...c.platform,_c:s};return nN(e,t,{...c,platform:l})};var YN=typeof document<"u",HN=function(){},su=YN?B.useLayoutEffect:HN;function gu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,s,c;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(s=a;s--!==0;)if(!gu(e[s],t[s]))return!1;return!0}if(c=Object.keys(e),a=c.length,a!==Object.keys(t).length)return!1;for(s=a;s--!==0;)if(!{}.hasOwnProperty.call(t,c[s]))return!1;for(s=a;s--!==0;){const l=c[s];if(!(l==="_owner"&&e.$$typeof)&&!gu(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function aj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wv(e,t){const a=aj(e);return Math.round(t*a)/a}function Th(e){const t=B.useRef(e);return su(()=>{t.current=e}),t}function zN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:a="absolute",middleware:s=[],platform:c,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:h,open:A}=e,[y,m]=B.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[E,b]=B.useState(s);gu(E,s)||b(s);const[w,x]=B.useState(null),[j,I]=B.useState(null),C=B.useCallback(te=>{te!==k.current&&(k.current=te,x(te))},[]),O=B.useCallback(te=>{te!==N.current&&(N.current=te,I(te))},[]),S=l||w,_=u||j,k=B.useRef(null),N=B.useRef(null),z=B.useRef(y),M=h!=null,L=Th(h),Z=Th(c),F=Th(A),oe=B.useCallback(()=>{if(!k.current||!N.current)return;const te={placement:t,strategy:a,middleware:E};Z.current&&(te.platform=Z.current),GN(k.current,N.current,te).then(le=>{const fe={...le,isPositioned:F.current!==!1};re.current&&!gu(z.current,fe)&&(z.current=fe,cA.flushSync(()=>{m(fe)}))})},[E,t,a,Z,F]);su(()=>{A===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,m(te=>({...te,isPositioned:!1})))},[A]);const re=B.useRef(!1);su(()=>(re.current=!0,()=>{re.current=!1}),[]),su(()=>{if(S&&(k.current=S),_&&(N.current=_),S&&_){if(L.current)return L.current(S,_,oe);oe()}},[S,_,oe,L,M]);const pe=B.useMemo(()=>({reference:k,floating:N,setReference:C,setFloating:O}),[C,O]),Y=B.useMemo(()=>({reference:S,floating:_}),[S,_]),V=B.useMemo(()=>{const te={position:a,left:0,top:0};if(!Y.floating)return te;const le=Wv(Y.floating,y.x),fe=Wv(Y.floating,y.y);return f?{...te,transform:"translate("+le+"px, "+fe+"px)",...aj(Y.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:le,top:fe}},[a,f,Y.floating,y.x,y.y]);return B.useMemo(()=>({...y,update:oe,refs:pe,elements:Y,floatingStyles:V}),[y,oe,pe,Y,V])}const $N=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){const{element:s,padding:c}=typeof e=="function"?e(a):e;return s&&t(s)?s.current!=null?Xv({element:s.current,padding:c}).fn(a):{}:s?Xv({element:s,padding:c}).fn(a):{}}}},UN=(e,t)=>{const a=NN(e);return{name:a.name,fn:a.fn,options:[e,t]}},LN=(e,t)=>{const a=RN(e);return{name:a.name,fn:a.fn,options:[e,t]}},PN=(e,t)=>({fn:MN(e).fn,options:[e,t]}),FN=(e,t)=>{const a=DN(e);return{name:a.name,fn:a.fn,options:[e,t]}},VN=(e,t)=>{const a=TN(e);return{name:a.name,fn:a.fn,options:[e,t]}},qN=(e,t)=>{const a=kN(e);return{name:a.name,fn:a.fn,options:[e,t]}},KN=(e,t)=>{const a=$N(e);return{name:a.name,fn:a.fn,options:[e,t]}};var JN=Object.defineProperty,fr=(e,t)=>JN(e,"name",{value:t,configurable:!0}),ij="Popper",[rj,sj]=Qi(ij),[ZN,oj]=rj(ij),XN=fr(e=>{const{__scopePopper:t,children:a}=e,[s,c]=B.useState(null),[l,u]=B.useState(void 0);return r.jsx(ZN,{scope:t,anchor:s,onAnchorChange:c,placementState:l,setPlacementState:u,children:a})},"Popper"),WN="PopperAnchor",eR=B.forwardRef(fr(function(t,a){const{__scopePopper:s,virtualRef:c,...l}=t,u=oj(WN,s),f=B.useRef(null),h=u.onAnchorChange,A=B.useCallback(x=>{f.current=x,x&&h(x)},[h]),y=Gt(a,A),m=B.useRef(null);B.useEffect(()=>{if(!c)return;const x=m.current;m.current=c.current,x!==m.current&&h(m.current)});const E=u.placementState&&Gu(u.placementState),b=E==null?void 0:E[0],w=E==null?void 0:E[1];return c?null:r.jsx(Zt.div,{"data-radix-popper-side":b,"data-radix-popper-align":w,...l,ref:y})},"PopperAnchor")),cj="PopperContent",[tR,$4]=rj(cj),nR=B.forwardRef(fr(function(t,a){var ne,Ae,we,xe,Ze,Ie,ce;const{__scopePopper:s,side:c="bottom",sideOffset:l=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:A=!0,collisionBoundary:y=[],collisionPadding:m=0,sticky:E="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:x,...j}=t,I=oj(cj,s),[C,O]=B.useState(null),S=Gt(a,O),[_,k]=B.useState(null),N=Fx(_),z=(N==null?void 0:N.width)??0,M=(N==null?void 0:N.height)??0,L=c+(u!=="center"?"-"+u:""),Z=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},F=Array.isArray(y)?y:[y],oe=F.length>0,re={padding:Z,boundary:F.filter(lj),altBoundary:oe},{refs:pe,floatingStyles:Y,placement:V,isPositioned:te,middlewareData:le}=zN({strategy:"fixed",placement:L,whileElementsMounted:fr((...De)=>_N(...De,{animationFrame:w==="always"}),"whileElementsMounted"),elements:{reference:I.anchor},middleware:[UN({mainAxis:l+M,alignmentAxis:f}),A&&LN({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?PN():void 0,...re}),A&&FN({...re}),VN({...re,apply:fr(({elements:De,rects:Oe,availableWidth:xt,availableHeight:mt})=>{const{width:Xt,height:Fa}=Oe.reference,Kn=De.floating.style;Kn.setProperty("--radix-popper-available-width",`${xt}px`),Kn.setProperty("--radix-popper-available-height",`${mt}px`),Kn.setProperty("--radix-popper-anchor-width",`${Xt}px`),Kn.setProperty("--radix-popper-anchor-height",`${Fa}px`)},"apply")}),_&&KN({element:_,padding:h}),aR({arrowWidth:z,arrowHeight:M}),b&&qN({strategy:"referenceHidden",...re,boundary:oe?re.boundary:void 0})]}),fe=I.setPlacementState;Qn(()=>(fe(V),()=>{fe(void 0)}),[V,fe]);const[T,X]=Gu(V),se=hr(x);Qn(()=>{te&&(se==null||se())},[te,se]);const de=(ne=le.arrow)==null?void 0:ne.x,ye=(Ae=le.arrow)==null?void 0:Ae.y,Ee=((we=le.arrow)==null?void 0:we.centerOffset)!==0,[R,J]=B.useState();return Qn(()=>{C&&J(window.getComputedStyle(C).zIndex)},[C]),r.jsx("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:te?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:R,"--radix-popper-transform-origin":[(xe=le.transformOrigin)==null?void 0:xe.x,(Ze=le.transformOrigin)==null?void 0:Ze.y].join(" "),...((Ie=le.hide)==null?void 0:Ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:r.jsx(tR,{scope:s,placedSide:T,placedAlign:X,onArrowChange:k,arrowX:de,arrowY:ye,shouldHideArrow:Ee,children:r.jsx(Zt.div,{"data-side":T,"data-align":X,...j,ref:S,style:{...j.style,animation:te?(ce=j.style)==null?void 0:ce.animation:"none"}})})})},"PopperContent"));function lj(e){return e!==null}fr(lj,"isNotNull");var aR=fr(e=>({name:"transformOrigin",options:e,fn(t){var j,I,C;const{placement:a,rects:s,middlewareData:c}=t,u=((j=c.arrow)==null?void 0:j.centerOffset)!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[A,y]=Gu(a),m={start:"0%",center:"50%",end:"100%"}[y],E=(((I=c.arrow)==null?void 0:I.x)??0)+f/2,b=(((C=c.arrow)==null?void 0:C.y)??0)+h/2;let w="",x="";return A==="bottom"?(w=u?m:`${E}px`,x=`${-h}px`):A==="top"?(w=u?m:`${E}px`,x=`${s.floating.height+h}px`):A==="right"?(w=`${-h}px`,x=u?m:`${b}px`):A==="left"&&(w=`${s.floating.width+h}px`,x=u?m:`${b}px`),{data:{x:w,y:x}}}}),"transformOrigin");function Gu(e){const[t,a="center"]=e.split("-");return[t,a]}fr(Gu,"getSideAndAlignFromPlacement");var iR=XN,rR=eR,sR=nR,oR=Object.defineProperty,wA=(e,t)=>oR(e,"name",{value:t,configurable:!0}),kh=!1;function dj(){const[e,t]=B.useState(kh);return B.useEffect(()=>{kh||(kh=!0,t(!0))},[]),e}wA(dj,"useIsHydrated");var uj=Co[" useSyncExternalStore ".trim().toString()];function fj(){return()=>{}}wA(fj,"subscribe");function pj(){return uj(fj,()=>!0,()=>!1)}wA(pj,"useIsHydratedModern");var cR=typeof uj=="function"?pj:dj,lR=Object.defineProperty,ds=(e,t)=>lR(e,"name",{value:t,configurable:!0}),Mh="rovingFocusGroup.onEntryFocus",dR={bubbles:!1,cancelable:!0},Yu="RovingFocusGroup",[vg,hj,uR]=ix(Yu),[fR,gj]=Qi(Yu,[uR]),[pR,hR]=fR(Yu),gR=B.forwardRef(ds(function(t,a){return r.jsx(vg.Provider,{scope:t.__scopeRovingFocusGroup,children:r.jsx(vg.Slot,{scope:t.__scopeRovingFocusGroup,children:r.jsx(AR,{...t,ref:a})})})},"RovingFocusGroup")),AR=B.forwardRef(ds(function(t,a){const{__scopeRovingFocusGroup:s,orientation:c,loop:l=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:A,onEntryFocus:y,preventScrollOnEntryFocus:m=!1,...E}=t,b=B.useRef(null),w=Gt(a,b),x=uA(u),[j,I]=ul({prop:f,defaultProp:h??null,onChange:A,caller:Yu}),[C,O]=B.useState(!1),S=hr(y),_=hj(s),k=B.useRef(!1),[N,z]=B.useState(0);return B.useEffect(()=>{const M=b.current;if(M)return M.addEventListener(Mh,S),()=>M.removeEventListener(Mh,S)},[S]),r.jsx(pR,{scope:s,orientation:c,dir:x,loop:l,currentTabStopId:j,onItemFocus:B.useCallback(M=>I(M),[I]),onItemShiftTab:B.useCallback(()=>O(!0),[]),onFocusableItemAdd:B.useCallback(()=>z(M=>M+1),[]),onFocusableItemRemove:B.useCallback(()=>z(M=>M-1),[]),children:r.jsx(Zt.div,{tabIndex:C||N===0?-1:0,"data-orientation":c,...E,ref:w,style:{outline:"none",...t.style},onMouseDown:ut(t.onMouseDown,()=>{k.current=!0}),onFocus:ut(t.onFocus,M=>{const L=!k.current;if(M.target===M.currentTarget&&L&&!C){const Z=new CustomEvent(Mh,dR);if(M.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const F=_().filter(V=>V.focusable),oe=F.find(V=>V.active),re=F.find(V=>V.id===j),Y=[oe,re,...F].filter(Boolean).map(V=>V.ref.current);xA(Y,m)}}k.current=!1}),onBlur:ut(t.onBlur,()=>O(!1))})})},"RovingFocusGroupImpl")),mR="RovingFocusGroupItem",yR=B.forwardRef(ds(function(t,a){const{__scopeRovingFocusGroup:s,focusable:c=!0,active:l=!1,tabStopId:u,children:f,...h}=t,A=ns(),y=u||A,m=hR(mR,s),E=m.currentTabStopId===y,b=hj(s),{onFocusableItemAdd:w,onFocusableItemRemove:x,currentTabStopId:j}=m,I=cR();return Qn(()=>{if(!(!I||!c))return w(),()=>x()},[I,c,w,x]),B.useEffect(()=>{if(!(I||!c))return w(),()=>x()},[I,c,w,x]),r.jsx(vg.ItemSlot,{scope:s,id:y,focusable:c,active:l,children:r.jsx(Zt.span,{tabIndex:E?0:-1,"data-orientation":m.orientation,...h,ref:a,onMouseDown:ut(t.onMouseDown,C=>{c?m.onItemFocus(y):C.preventDefault()}),onFocus:ut(t.onFocus,()=>m.onItemFocus(y)),onKeyDown:ut(t.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){m.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const O=mj(C,m.orientation,m.dir);if(O!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let _=b().filter(k=>k.focusable).map(k=>k.ref.current);if(O==="last")_.reverse();else if(O==="prev"||O==="next"){O==="prev"&&_.reverse();const k=_.indexOf(C.currentTarget);_=m.loop?yj(_,k+1):_.slice(k+1)}setTimeout(()=>xA(_))}}),children:typeof f=="function"?f({isCurrentTabStop:E,hasTabStop:j!=null}):f})})},"RovingFocusGroupItem")),ER={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Aj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}ds(Aj,"getDirectionAwareKey");function mj(e,t,a){const s=Aj(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return ER[s]}ds(mj,"getFocusIntent");function xA(e,t=!1){const a=document.activeElement;for(const s of e)if(s===a||(s.focus({preventScroll:t}),document.activeElement!==a))return}ds(xA,"focusFirst");function yj(e,t){return e.map((a,s)=>e[(t+s)%e.length])}ds(yj,"wrapArray");var BR=gR,vR=yR,bR=Object.defineProperty,To=(e,t)=>bR(e,"name",{value:t,configurable:!0}),jA="Tabs",[wR,U4]=Qi(jA,[gj]),Ej=gj(),[xR,QA]=wR(jA),jR=B.forwardRef(To(function(t,a){const{__scopeTabs:s,value:c,onValueChange:l,defaultValue:u,orientation:f="horizontal",dir:h,activationMode:A="automatic",...y}=t,m=uA(h),[E,b]=ul({prop:c,onChange:l,defaultProp:u??"",caller:jA});return r.jsx(xR,{scope:s,baseId:ns(),value:E,onValueChange:b,orientation:f,dir:m,activationMode:A,children:r.jsx(Zt.div,{dir:m,"data-orientation":f,...y,ref:a})})},"Tabs")),QR="TabsList",IR=B.forwardRef(To(function(t,a){const{__scopeTabs:s,loop:c=!0,...l}=t,u=QA(QR,s),f=Ej(s);return r.jsx(BR,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:c,children:r.jsx(Zt.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:a})})},"TabsList")),CR="TabsTrigger",SR=B.forwardRef(To(function(t,a){const{__scopeTabs:s,value:c,disabled:l=!1,...u}=t,f=QA(CR,s),h=Ej(s),A=IA(f.baseId,c),y=CA(f.baseId,c),m=c===f.value;return r.jsx(vR,{asChild:!0,...h,focusable:!l,active:m,children:r.jsx(Zt.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":y,"data-state":m?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:A,...u,ref:a,onMouseDown:ut(t.onMouseDown,E=>{!l&&E.button===0&&E.ctrlKey===!1?f.onValueChange(c):E.preventDefault()}),onKeyDown:ut(t.onKeyDown,E=>{l||E.target!==E.currentTarget||[" ","Enter"].includes(E.key)&&f.onValueChange(c)}),onFocus:ut(t.onFocus,()=>{const E=f.activationMode!=="manual";!m&&!l&&E&&f.onValueChange(c)})})})},"TabsTrigger")),OR="TabsContent",_R=B.forwardRef(To(function(t,a){const{__scopeTabs:s,value:c,forceMount:l,children:u,...f}=t,h=QA(OR,s),A=IA(h.baseId,c),y=CA(h.baseId,c),m=c===h.value,E=B.useRef(m);return B.useEffect(()=>{const b=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(b)},[]),r.jsx(No,{present:l||m,children:({present:b})=>r.jsx(Zt.div,{"data-state":m?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":A,hidden:!b,id:y,tabIndex:0,...f,ref:a,style:{...t.style,animationDuration:E.current?"0s":void 0},children:b&&u})})},"TabsContent"));function IA(e,t){return`${e}-trigger-${t}`}To(IA,"makeTriggerId");function CA(e,t){return`${e}-content-${t}`}To(CA,"makeContentId");var NR=jR,RR=IR,DR=SR,TR=_R,kR=Object.defineProperty,Ft=(e,t)=>kR(e,"name",{value:t,configurable:!0}),[SA,L4]=Qi("Tooltip",[sj]),OA=sj(),MR="TooltipProvider",GR=700,bg="tooltip.open",[YR,_A]=SA(MR),HR=Ft(e=>{const{__scopeTooltip:t,delayDuration:a=GR,skipDelayDuration:s=300,disableHoverableContent:c=!1,children:l}=e,u=B.useRef(!0),f=B.useRef(!1),h=B.useRef(0);return B.useEffect(()=>{const A=h.current;return()=>window.clearTimeout(A)},[]),r.jsx(YR,{scope:t,isOpenDelayedRef:u,delayDuration:a,onOpen:B.useCallback(()=>{s<=0||(window.clearTimeout(h.current),u.current=!1)},[s]),onClose:B.useCallback(()=>{s<=0||(window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,s))},[s]),isPointerInTransitRef:f,onPointerInTransitChange:B.useCallback(A=>{f.current=A},[]),disableHoverableContent:c,children:l})},"TooltipProvider"),wg="Tooltip",[zR,fl]=SA(wg),$R=Ft(e=>{const{__scopeTooltip:t,children:a,open:s,defaultOpen:c,onOpenChange:l,disableHoverableContent:u,delayDuration:f}=e,h=_A(wg,e.__scopeTooltip),A=OA(t),[y,m]=B.useState(null),[E,b]=B.useState(void 0),w=ns(),x=B.useRef(0),j=u??h.disableHoverableContent,I=f??h.delayDuration,C=B.useRef(!1),[O,S]=ul({prop:s,defaultProp:c??!1,onChange:Ft(L=>{L?(h.onOpen(),document.dispatchEvent(new CustomEvent(bg))):h.onClose(),l==null||l(L)},"onChange"),caller:wg}),_=B.useMemo(()=>O?C.current?"delayed-open":"instant-open":"closed",[O]),k=B.useCallback(()=>{window.clearTimeout(x.current),x.current=0,C.current=!1,S(!0)},[S]),N=B.useCallback(()=>{window.clearTimeout(x.current),x.current=0,S(!1)},[S]),z=B.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{C.current=!0,S(!0),x.current=0},I)},[I,S]);B.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]);const M=E??w;return r.jsx(iR,{...A,children:r.jsx(zR,{scope:t,contentId:M,setContentId:b,open:O,stateAttribute:_,trigger:y,onTriggerChange:m,onTriggerEnter:B.useCallback(()=>{h.isOpenDelayedRef.current?z():k()},[h.isOpenDelayedRef,z,k]),onTriggerLeave:B.useCallback(()=>{j?N():(window.clearTimeout(x.current),x.current=0)},[N,j]),onOpen:k,onClose:N,disableHoverableContent:j,children:a})})},"Tooltip"),eb="TooltipTrigger",UR=B.forwardRef(Ft(function(t,a){const{__scopeTooltip:s,...c}=t,l=fl(eb,s),u=_A(eb,s),f=OA(s),h=B.useRef(null),A=Gt(a,h,l.onTriggerChange),y=B.useRef(!1),m=B.useRef(!1),E=B.useCallback(()=>y.current=!1,[]);return B.useEffect(()=>()=>document.removeEventListener("pointerup",E),[E]),r.jsx(rR,{asChild:!0,...f,children:r.jsx(Zt.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...c,ref:A,onPointerMove:ut(t.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!u.isPointerInTransitRef.current&&(l.onTriggerEnter(),m.current=!0)}),onPointerLeave:ut(t.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:ut(t.onPointerDown,()=>{l.open&&l.onClose(),y.current=!0,document.addEventListener("pointerup",E,{once:!0})}),onFocus:ut(t.onFocus,()=>{y.current||l.onOpen()}),onBlur:ut(t.onBlur,l.onClose),onClick:ut(t.onClick,l.onClose)})})},"TooltipTrigger")),Bj="TooltipPortal",[LR,PR]=SA(Bj,{forceMount:void 0}),FR=Ft(e=>{const{__scopeTooltip:t,forceMount:a,children:s,container:c}=e,l=fl(Bj,t);return r.jsx(LR,{scope:t,forceMount:a,children:r.jsx(No,{present:a||l.open,children:r.jsx(Ox,{asChild:!0,container:c,children:s})})})},"TooltipPortal"),Vc="TooltipContent",VR=B.forwardRef(Ft(function(t,a){const s=PR(Vc,t.__scopeTooltip),{forceMount:c=s.forceMount,side:l="top",...u}=t,f=fl(Vc,t.__scopeTooltip);return r.jsx(No,{present:c||f.open,children:f.disableHoverableContent?r.jsx(vj,{side:l,...u,ref:a}):r.jsx(qR,{side:l,...u,ref:a})})},"TooltipContent")),qR=B.forwardRef(Ft(function(t,a){const s=fl(Vc,t.__scopeTooltip),c=_A(Vc,t.__scopeTooltip),l=B.useRef(null),u=Gt(a,l),[f,h]=B.useState(null),{trigger:A,onClose:y}=s,m=l.current,{onPointerInTransitChange:E}=c,b=B.useCallback(()=>{h(null),E(!1)},[E]),w=B.useCallback((x,j)=>{const I=x.currentTarget,C={x:x.clientX,y:x.clientY},O=bj(C,I.getBoundingClientRect()),S=wj(C,O),_=xj(j.getBoundingClientRect()),k=Qj([...S,..._]);h(k),E(!0)},[E]);return B.useEffect(()=>()=>b(),[b]),B.useEffect(()=>{if(A&&m){const x=Ft(I=>w(I,m),"handleTriggerLeave"),j=Ft(I=>w(I,A),"handleContentLeave");return A.addEventListener("pointerleave",x),m.addEventListener("pointerleave",j),()=>{A.removeEventListener("pointerleave",x),m.removeEventListener("pointerleave",j)}}},[A,m,w,b]),B.useEffect(()=>{if(f){const x=Ft(j=>{const I=j.target,C={x:j.clientX,y:j.clientY},O=(A==null?void 0:A.contains(I))||(m==null?void 0:m.contains(I)),S=!jj(C,f);O?b():S&&(b(),y())},"handleTrackPointerGrace");return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[A,m,f,y,b]),r.jsx(vj,{...t,ref:u})},"TooltipContentHoverable")),KR=Zw("TooltipContent"),vj=B.forwardRef(Ft(function(t,a){const{__scopeTooltip:s,children:c,"aria-label":l,id:u,onEscapeKeyDown:f,onPointerDownOutside:h,...A}=t,y=fl(Vc,s),m=OA(s),{onClose:E}=y;B.useEffect(()=>(document.addEventListener(bg,E),()=>document.removeEventListener(bg,E)),[E]),B.useEffect(()=>{if(y.trigger){const w=Ft(x=>{x.target instanceof Node&&x.target.contains(y.trigger)&&E()},"handleScroll");return window.addEventListener("scroll",w,{capture:!0}),()=>window.removeEventListener("scroll",w,{capture:!0})}},[y.trigger,E]);const{setContentId:b}=y;return Qn(()=>(b(u),()=>{b(void 0)}),[u,b]),r.jsx(Bx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:w=>w.preventDefault(),onDismiss:E,children:r.jsxs(sR,{"data-state":y.stateAttribute,role:l?void 0:"tooltip",id:l?void 0:y.contentId,...m,...A,ref:a,style:{...A.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(KR,{children:c}),l?r.jsx(H1,{id:y.contentId,role:"tooltip",children:l}):null]})})},"TooltipContentImpl"));function bj(e,t){const a=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),c=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(a,s,c,l)){case l:return"left";case c:return"right";case a:return"top";case s:return"bottom";default:throw new Error("unreachable")}}Ft(bj,"getExitSideFromRect");function wj(e,t,a=5){const s=[];switch(t){case"top":s.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":s.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":s.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":s.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a});break}return s}Ft(wj,"getPaddedExitPoints");function xj(e){const{top:t,right:a,bottom:s,left:c}=e;return[{x:c,y:t},{x:a,y:t},{x:a,y:s},{x:c,y:s}]}Ft(xj,"getPointsFromRect");function jj(e,t){const{x:a,y:s}=e;let c=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const f=t[l],h=t[u],A=f.x,y=f.y,m=h.x,E=h.y;y>s!=E>s&&a<(m-A)*(s-y)/(E-y)+A&&(c=!c)}return c}Ft(jj,"isPointInPolygon");function Qj(e){const t=e.slice();return t.sort((a,s)=>a.x<s.x?-1:a.x>s.x?1:a.y<s.y?-1:a.y>s.y?1:0),Ij(t)}Ft(Qj,"getHull");function Ij(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const c=e[s];for(;t.length>=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(c.y-u.y)>=(l.y-u.y)*(c.x-u.x))t.pop();else break}t.push(c)}t.pop();const a=[];for(let s=e.length-1;s>=0;s--){const c=e[s];for(;a.length>=2;){const l=a[a.length-1],u=a[a.length-2];if((l.x-u.x)*(c.y-u.y)>=(l.y-u.y)*(c.x-u.x))a.pop();else break}a.push(c)}return a.pop(),t.length===1&&a.length===1&&t[0].x===a[0].x&&t[0].y===a[0].y?t:t.concat(a)}Ft(Ij,"getHullPresorted");var JR=HR,ZR=$R,XR=UR,WR=FR,eD=VR;const rt=Object.freeze({Root:k_,Portal:M_,Overlay:G_,Content:Y_,Title:z_,Description:$_,Cancel:H_}),Ld=Object.freeze({Root:NR,List:RR,Trigger:DR,Content:TR});/**
|
|
90
|
-
* @license lucide-react v1.31.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const Cj=(...e)=>e.filter((t,a,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===a).join(" ").trim();/**
|
|
95
|
-
* @license lucide-react v1.31.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const tD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
100
|
-
* @license lucide-react v1.31.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const nD=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,s)=>s?s.toUpperCase():a.toLowerCase());/**
|
|
105
|
-
* @license lucide-react v1.31.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const tb=e=>{const t=nD(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
110
|
-
* @license lucide-react v1.31.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/var Gh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
115
|
-
* @license lucide-react v1.31.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const aD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},iD=B.createContext({}),rD=()=>B.useContext(iD),sD=B.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:s,className:c="",children:l,iconNode:u,...f},h)=>{const{size:A=24,strokeWidth:y=2,absoluteStrokeWidth:m=!1,color:E="currentColor",className:b=""}=rD()??{},w=s??m?Number(a??y)*24/Number(t??A):a??y;return B.createElement("svg",{ref:h,...Gh,width:t??A??Gh.width,height:t??A??Gh.height,stroke:e??E,strokeWidth:w,className:Cj("lucide",b,c),...!l&&!aD(f)&&{"aria-hidden":"true"},...f},[...u.map(([x,j])=>B.createElement(x,j)),...Array.isArray(l)?l:[l]])});/**
|
|
120
|
-
* @license lucide-react v1.31.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const ue=(e,t)=>{const a=B.forwardRef(({className:s,...c},l)=>B.createElement(sD,{ref:l,iconNode:t,className:Cj(`lucide-${tD(tb(e))}`,`lucide-${e}`,s),...c}));return a.displayName=tb(e),a};/**
|
|
125
|
-
* @license lucide-react v1.31.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const oD=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],cD=ue("activity",oD);/**
|
|
130
|
-
* @license lucide-react v1.31.0 - ISC
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the ISC license.
|
|
133
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const lD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],dD=ue("arrow-right",lD);/**
|
|
135
|
-
* @license lucide-react v1.31.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const uD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],fD=ue("ban",uD);/**
|
|
140
|
-
* @license lucide-react v1.31.0 - ISC
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the ISC license.
|
|
143
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/const pD=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],hD=ue("bookmark",pD);/**
|
|
145
|
-
* @license lucide-react v1.31.0 - ISC
|
|
146
|
-
*
|
|
147
|
-
* This source code is licensed under the ISC license.
|
|
148
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
-
*/const gD=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],AD=ue("bot",gD);/**
|
|
150
|
-
* @license lucide-react v1.31.0 - ISC
|
|
151
|
-
*
|
|
152
|
-
* This source code is licensed under the ISC license.
|
|
153
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/const mD=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],yD=ue("box",mD);/**
|
|
155
|
-
* @license lucide-react v1.31.0 - ISC
|
|
156
|
-
*
|
|
157
|
-
* This source code is licensed under the ISC license.
|
|
158
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/const ED=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],BD=ue("braces",ED);/**
|
|
160
|
-
* @license lucide-react v1.31.0 - ISC
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the ISC license.
|
|
163
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/const vD=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],bD=ue("cable",vD);/**
|
|
165
|
-
* @license lucide-react v1.31.0 - ISC
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the ISC license.
|
|
168
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/const wD=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]],xD=ue("calendar-days",wD);/**
|
|
170
|
-
* @license lucide-react v1.31.0 - ISC
|
|
171
|
-
*
|
|
172
|
-
* This source code is licensed under the ISC license.
|
|
173
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
-
*/const jD=[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M17 13h-6",key:"1qbiup"}],["path",{d:"M13 17H7",key:"1x38vv"}],["path",{d:"M7 13h.01",key:"1vezk1"}],["path",{d:"M17 17h.01",key:"1sd3ek"}]],QD=ue("calendar-range",jD);/**
|
|
175
|
-
* @license lucide-react v1.31.0 - ISC
|
|
176
|
-
*
|
|
177
|
-
* This source code is licensed under the ISC license.
|
|
178
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
-
*/const ID=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],CD=ue("check-check",ID);/**
|
|
180
|
-
* @license lucide-react v1.31.0 - ISC
|
|
181
|
-
*
|
|
182
|
-
* This source code is licensed under the ISC license.
|
|
183
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/const SD=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],OD=ue("check",SD);/**
|
|
185
|
-
* @license lucide-react v1.31.0 - ISC
|
|
186
|
-
*
|
|
187
|
-
* This source code is licensed under the ISC license.
|
|
188
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
-
*/const _D=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ND=ue("chevron-down",_D);/**
|
|
190
|
-
* @license lucide-react v1.31.0 - ISC
|
|
191
|
-
*
|
|
192
|
-
* This source code is licensed under the ISC license.
|
|
193
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
-
*/const RD=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],DD=ue("chevron-left",RD);/**
|
|
195
|
-
* @license lucide-react v1.31.0 - ISC
|
|
196
|
-
*
|
|
197
|
-
* This source code is licensed under the ISC license.
|
|
198
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
-
*/const TD=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],kD=ue("chevron-right",TD);/**
|
|
200
|
-
* @license lucide-react v1.31.0 - ISC
|
|
201
|
-
*
|
|
202
|
-
* This source code is licensed under the ISC license.
|
|
203
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
-
*/const MD=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],GD=ue("chevron-up",MD);/**
|
|
205
|
-
* @license lucide-react v1.31.0 - ISC
|
|
206
|
-
*
|
|
207
|
-
* This source code is licensed under the ISC license.
|
|
208
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
-
*/const YD=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],HD=ue("chevrons-up-down",YD);/**
|
|
210
|
-
* @license lucide-react v1.31.0 - ISC
|
|
211
|
-
*
|
|
212
|
-
* This source code is licensed under the ISC license.
|
|
213
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
-
*/const zD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],$D=ue("circle-alert",zD);/**
|
|
215
|
-
* @license lucide-react v1.31.0 - ISC
|
|
216
|
-
*
|
|
217
|
-
* This source code is licensed under the ISC license.
|
|
218
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
-
*/const UD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],LD=ue("circle-check",UD);/**
|
|
220
|
-
* @license lucide-react v1.31.0 - ISC
|
|
221
|
-
*
|
|
222
|
-
* This source code is licensed under the ISC license.
|
|
223
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
-
*/const PD=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],FD=ue("circle-dashed",PD);/**
|
|
225
|
-
* @license lucide-react v1.31.0 - ISC
|
|
226
|
-
*
|
|
227
|
-
* This source code is licensed under the ISC license.
|
|
228
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/const VD=[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],qD=ue("circle-dot-dashed",VD);/**
|
|
230
|
-
* @license lucide-react v1.31.0 - ISC
|
|
231
|
-
*
|
|
232
|
-
* This source code is licensed under the ISC license.
|
|
233
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/const KD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],JD=ue("circle-minus",KD);/**
|
|
235
|
-
* @license lucide-react v1.31.0 - ISC
|
|
236
|
-
*
|
|
237
|
-
* This source code is licensed under the ISC license.
|
|
238
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
-
*/const ZD=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]],XD=ue("circle-off",ZD);/**
|
|
240
|
-
* @license lucide-react v1.31.0 - ISC
|
|
241
|
-
*
|
|
242
|
-
* This source code is licensed under the ISC license.
|
|
243
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
-
*/const WD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],eT=ue("circle-pause",WD);/**
|
|
245
|
-
* @license lucide-react v1.31.0 - ISC
|
|
246
|
-
*
|
|
247
|
-
* This source code is licensed under the ISC license.
|
|
248
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
-
*/const tT=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],nT=ue("circle-play",tT);/**
|
|
250
|
-
* @license lucide-react v1.31.0 - ISC
|
|
251
|
-
*
|
|
252
|
-
* This source code is licensed under the ISC license.
|
|
253
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
-
*/const aT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],iT=ue("circle-slash",aT);/**
|
|
255
|
-
* @license lucide-react v1.31.0 - ISC
|
|
256
|
-
*
|
|
257
|
-
* This source code is licensed under the ISC license.
|
|
258
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
-
*/const rT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],sT=ue("circle-x",rT);/**
|
|
260
|
-
* @license lucide-react v1.31.0 - ISC
|
|
261
|
-
*
|
|
262
|
-
* This source code is licensed under the ISC license.
|
|
263
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
-
*/const oT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],cT=ue("circle",oT);/**
|
|
265
|
-
* @license lucide-react v1.31.0 - ISC
|
|
266
|
-
*
|
|
267
|
-
* This source code is licensed under the ISC license.
|
|
268
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
-
*/const lT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],dT=ue("clock",lT);/**
|
|
270
|
-
* @license lucide-react v1.31.0 - ISC
|
|
271
|
-
*
|
|
272
|
-
* This source code is licensed under the ISC license.
|
|
273
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
-
*/const uT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],fT=ue("columns-3",uT);/**
|
|
275
|
-
* @license lucide-react v1.31.0 - ISC
|
|
276
|
-
*
|
|
277
|
-
* This source code is licensed under the ISC license.
|
|
278
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
-
*/const pT=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],hT=ue("copy",pT);/**
|
|
280
|
-
* @license lucide-react v1.31.0 - ISC
|
|
281
|
-
*
|
|
282
|
-
* This source code is licensed under the ISC license.
|
|
283
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/const gT=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],AT=ue("corner-down-right",gT);/**
|
|
285
|
-
* @license lucide-react v1.31.0 - ISC
|
|
286
|
-
*
|
|
287
|
-
* This source code is licensed under the ISC license.
|
|
288
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/const mT=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],yT=ue("dot",mT);/**
|
|
290
|
-
* @license lucide-react v1.31.0 - ISC
|
|
291
|
-
*
|
|
292
|
-
* This source code is licensed under the ISC license.
|
|
293
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
-
*/const ET=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],BT=ue("external-link",ET);/**
|
|
295
|
-
* @license lucide-react v1.31.0 - ISC
|
|
296
|
-
*
|
|
297
|
-
* This source code is licensed under the ISC license.
|
|
298
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
-
*/const vT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],bT=ue("file-check",vT);/**
|
|
300
|
-
* @license lucide-react v1.31.0 - ISC
|
|
301
|
-
*
|
|
302
|
-
* This source code is licensed under the ISC license.
|
|
303
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
-
*/const wT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],xT=ue("file-diff",wT);/**
|
|
305
|
-
* @license lucide-react v1.31.0 - ISC
|
|
306
|
-
*
|
|
307
|
-
* This source code is licensed under the ISC license.
|
|
308
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
-
*/const jT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],QT=ue("file-text",jT);/**
|
|
310
|
-
* @license lucide-react v1.31.0 - ISC
|
|
311
|
-
*
|
|
312
|
-
* This source code is licensed under the ISC license.
|
|
313
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
-
*/const IT=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],CT=ue("flag",IT);/**
|
|
315
|
-
* @license lucide-react v1.31.0 - ISC
|
|
316
|
-
*
|
|
317
|
-
* This source code is licensed under the ISC license.
|
|
318
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
-
*/const ST=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],OT=ue("folder",ST);/**
|
|
320
|
-
* @license lucide-react v1.31.0 - ISC
|
|
321
|
-
*
|
|
322
|
-
* This source code is licensed under the ISC license.
|
|
323
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
-
*/const _T=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],NT=ue("funnel",_T);/**
|
|
325
|
-
* @license lucide-react v1.31.0 - ISC
|
|
326
|
-
*
|
|
327
|
-
* This source code is licensed under the ISC license.
|
|
328
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
-
*/const RT=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],DT=ue("gauge",RT);/**
|
|
330
|
-
* @license lucide-react v1.31.0 - ISC
|
|
331
|
-
*
|
|
332
|
-
* This source code is licensed under the ISC license.
|
|
333
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
-
*/const TT=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],kT=ue("git-branch",TT);/**
|
|
335
|
-
* @license lucide-react v1.31.0 - ISC
|
|
336
|
-
*
|
|
337
|
-
* This source code is licensed under the ISC license.
|
|
338
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
-
*/const MT=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],GT=ue("git-commit-horizontal",MT);/**
|
|
340
|
-
* @license lucide-react v1.31.0 - ISC
|
|
341
|
-
*
|
|
342
|
-
* This source code is licensed under the ISC license.
|
|
343
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
-
*/const YT=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],HT=ue("git-pull-request",YT);/**
|
|
345
|
-
* @license lucide-react v1.31.0 - ISC
|
|
346
|
-
*
|
|
347
|
-
* This source code is licensed under the ISC license.
|
|
348
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
349
|
-
*/const zT=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],$T=ue("hash",zT);/**
|
|
350
|
-
* @license lucide-react v1.31.0 - ISC
|
|
351
|
-
*
|
|
352
|
-
* This source code is licensed under the ISC license.
|
|
353
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
354
|
-
*/const UT=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],LT=ue("inbox",UT);/**
|
|
355
|
-
* @license lucide-react v1.31.0 - ISC
|
|
356
|
-
*
|
|
357
|
-
* This source code is licensed under the ISC license.
|
|
358
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
359
|
-
*/const PT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],FT=ue("info",PT);/**
|
|
360
|
-
* @license lucide-react v1.31.0 - ISC
|
|
361
|
-
*
|
|
362
|
-
* This source code is licensed under the ISC license.
|
|
363
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
-
*/const VT=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],qT=ue("layers",VT);/**
|
|
365
|
-
* @license lucide-react v1.31.0 - ISC
|
|
366
|
-
*
|
|
367
|
-
* This source code is licensed under the ISC license.
|
|
368
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
369
|
-
*/const KT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],JT=ue("life-buoy",KT);/**
|
|
370
|
-
* @license lucide-react v1.31.0 - ISC
|
|
371
|
-
*
|
|
372
|
-
* This source code is licensed under the ISC license.
|
|
373
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
374
|
-
*/const ZT=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],XT=ue("list-tree",ZT);/**
|
|
375
|
-
* @license lucide-react v1.31.0 - ISC
|
|
376
|
-
*
|
|
377
|
-
* This source code is licensed under the ISC license.
|
|
378
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
379
|
-
*/const WT=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],ek=ue("list",WT);/**
|
|
380
|
-
* @license lucide-react v1.31.0 - ISC
|
|
381
|
-
*
|
|
382
|
-
* This source code is licensed under the ISC license.
|
|
383
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
384
|
-
*/const tk=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],nk=ue("loader-circle",tk);/**
|
|
385
|
-
* @license lucide-react v1.31.0 - ISC
|
|
386
|
-
*
|
|
387
|
-
* This source code is licensed under the ISC license.
|
|
388
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
389
|
-
*/const ak=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ik=ue("lock",ak);/**
|
|
390
|
-
* @license lucide-react v1.31.0 - ISC
|
|
391
|
-
*
|
|
392
|
-
* This source code is licensed under the ISC license.
|
|
393
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
394
|
-
*/const rk=[["path",{d:"M5 12h14",key:"1ays0h"}]],sk=ue("minus",rk);/**
|
|
395
|
-
* @license lucide-react v1.31.0 - ISC
|
|
396
|
-
*
|
|
397
|
-
* This source code is licensed under the ISC license.
|
|
398
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
399
|
-
*/const ok=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],ck=ue("monitor",ok);/**
|
|
400
|
-
* @license lucide-react v1.31.0 - ISC
|
|
401
|
-
*
|
|
402
|
-
* This source code is licensed under the ISC license.
|
|
403
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
404
|
-
*/const lk=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],dk=ue("moon",lk);/**
|
|
405
|
-
* @license lucide-react v1.31.0 - ISC
|
|
406
|
-
*
|
|
407
|
-
* This source code is licensed under the ISC license.
|
|
408
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
409
|
-
*/const uk=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],fk=ue("octagon-alert",uk);/**
|
|
410
|
-
* @license lucide-react v1.31.0 - ISC
|
|
411
|
-
*
|
|
412
|
-
* This source code is licensed under the ISC license.
|
|
413
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
414
|
-
*/const pk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],hk=ue("panel-left-close",pk);/**
|
|
415
|
-
* @license lucide-react v1.31.0 - ISC
|
|
416
|
-
*
|
|
417
|
-
* This source code is licensed under the ISC license.
|
|
418
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
419
|
-
*/const gk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],Ak=ue("panel-right-close",gk);/**
|
|
420
|
-
* @license lucide-react v1.31.0 - ISC
|
|
421
|
-
*
|
|
422
|
-
* This source code is licensed under the ISC license.
|
|
423
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
424
|
-
*/const mk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],yk=ue("plus",mk);/**
|
|
425
|
-
* @license lucide-react v1.31.0 - ISC
|
|
426
|
-
*
|
|
427
|
-
* This source code is licensed under the ISC license.
|
|
428
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
429
|
-
*/const Ek=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Bk=ue("refresh-cw",Ek);/**
|
|
430
|
-
* @license lucide-react v1.31.0 - ISC
|
|
431
|
-
*
|
|
432
|
-
* This source code is licensed under the ISC license.
|
|
433
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
434
|
-
*/const vk=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],bk=ue("rotate-ccw-clock",vk);/**
|
|
435
|
-
* @license lucide-react v1.31.0 - ISC
|
|
436
|
-
*
|
|
437
|
-
* This source code is licensed under the ISC license.
|
|
438
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
439
|
-
*/const wk=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Sj=ue("rotate-ccw",wk);/**
|
|
440
|
-
* @license lucide-react v1.31.0 - ISC
|
|
441
|
-
*
|
|
442
|
-
* This source code is licensed under the ISC license.
|
|
443
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
444
|
-
*/const xk=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],jk=ue("scroll-text",xk);/**
|
|
445
|
-
* @license lucide-react v1.31.0 - ISC
|
|
446
|
-
*
|
|
447
|
-
* This source code is licensed under the ISC license.
|
|
448
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
449
|
-
*/const Qk=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ik=ue("search",Qk);/**
|
|
450
|
-
* @license lucide-react v1.31.0 - ISC
|
|
451
|
-
*
|
|
452
|
-
* This source code is licensed under the ISC license.
|
|
453
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
454
|
-
*/const Ck=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Sk=ue("shield-check",Ck);/**
|
|
455
|
-
* @license lucide-react v1.31.0 - ISC
|
|
456
|
-
*
|
|
457
|
-
* This source code is licensed under the ISC license.
|
|
458
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
459
|
-
*/const Ok=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],_k=ue("shield",Ok);/**
|
|
460
|
-
* @license lucide-react v1.31.0 - ISC
|
|
461
|
-
*
|
|
462
|
-
* This source code is licensed under the ISC license.
|
|
463
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
464
|
-
*/const Nk=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Rk=ue("sparkles",Nk);/**
|
|
465
|
-
* @license lucide-react v1.31.0 - ISC
|
|
466
|
-
*
|
|
467
|
-
* This source code is licensed under the ISC license.
|
|
468
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
469
|
-
*/const Dk=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Tk=ue("square-check-big",Dk);/**
|
|
470
|
-
* @license lucide-react v1.31.0 - ISC
|
|
471
|
-
*
|
|
472
|
-
* This source code is licensed under the ISC license.
|
|
473
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
474
|
-
*/const kk=[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]],Mk=ue("square-dashed",kk);/**
|
|
475
|
-
* @license lucide-react v1.31.0 - ISC
|
|
476
|
-
*
|
|
477
|
-
* This source code is licensed under the ISC license.
|
|
478
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
479
|
-
*/const Gk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Yk=ue("square",Gk);/**
|
|
480
|
-
* @license lucide-react v1.31.0 - ISC
|
|
481
|
-
*
|
|
482
|
-
* This source code is licensed under the ISC license.
|
|
483
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
484
|
-
*/const Hk=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],zk=ue("star",Hk);/**
|
|
485
|
-
* @license lucide-react v1.31.0 - ISC
|
|
486
|
-
*
|
|
487
|
-
* This source code is licensed under the ISC license.
|
|
488
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
489
|
-
*/const $k=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Uk=ue("sun",$k);/**
|
|
490
|
-
* @license lucide-react v1.31.0 - ISC
|
|
491
|
-
*
|
|
492
|
-
* This source code is licensed under the ISC license.
|
|
493
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
494
|
-
*/const Lk=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],Pk=ue("table",Lk);/**
|
|
495
|
-
* @license lucide-react v1.31.0 - ISC
|
|
496
|
-
*
|
|
497
|
-
* This source code is licensed under the ISC license.
|
|
498
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
499
|
-
*/const Fk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Vk=ue("target",Fk);/**
|
|
500
|
-
* @license lucide-react v1.31.0 - ISC
|
|
501
|
-
*
|
|
502
|
-
* This source code is licensed under the ISC license.
|
|
503
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
504
|
-
*/const qk=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Kk=ue("terminal",qk);/**
|
|
505
|
-
* @license lucide-react v1.31.0 - ISC
|
|
506
|
-
*
|
|
507
|
-
* This source code is licensed under the ISC license.
|
|
508
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
509
|
-
*/const Jk=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Oj=ue("triangle-alert",Jk);/**
|
|
510
|
-
* @license lucide-react v1.31.0 - ISC
|
|
511
|
-
*
|
|
512
|
-
* This source code is licensed under the ISC license.
|
|
513
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
514
|
-
*/const Zk=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],Xk=ue("unplug",Zk);/**
|
|
515
|
-
* @license lucide-react v1.31.0 - ISC
|
|
516
|
-
*
|
|
517
|
-
* This source code is licensed under the ISC license.
|
|
518
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
519
|
-
*/const Wk=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],e2=ue("user",Wk);/**
|
|
520
|
-
* @license lucide-react v1.31.0 - ISC
|
|
521
|
-
*
|
|
522
|
-
* This source code is licensed under the ISC license.
|
|
523
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
524
|
-
*/const t2=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],n2=ue("workflow",t2);/**
|
|
525
|
-
* @license lucide-react v1.31.0 - ISC
|
|
526
|
-
*
|
|
527
|
-
* This source code is licensed under the ISC license.
|
|
528
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
529
|
-
*/const a2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],i2=ue("x",a2),r2=Object.freeze({activity:cD,"arrow-right":dD,ban:fD,bookmark:hD,bot:AD,box:yD,braces:BD,"calendar-days":xD,"calendar-range":QD,check:OD,"check-check":CD,"chevron-down":ND,"chevron-left":DD,"chevron-right":kD,"chevron-up":GD,"chevrons-up-down":HD,circle:cT,"circle-alert":$D,"circle-check":LD,"circle-dashed":FD,"circle-minus":JD,"circle-pause":eT,"circle-play":nT,"circle-slash":iT,"circle-x":sT,clock:dT,"columns-3":fT,copy:hT,"corner-down-right":AT,dot:yT,"external-link":BT,"file-check":bT,"file-diff":xT,"file-text":QT,filter:NT,flag:CT,folder:OT,gauge:DT,"git-branch":kT,"git-commit":GT,"git-pull-request":HT,hash:$T,history:bk,inbox:LT,info:FT,layers:qT,"life-buoy":JT,list:ek,"list-tree":XT,"loader-circle":nk,lock:ik,minus:sk,monitor:ck,moon:dk,"octagon-alert":fk,"panel-left-close":hk,"panel-right-close":Ak,plus:yk,"refresh-cw":Bk,"rotate-ccw":Sj,"scroll-text":jk,search:Ik,shield:_k,sparkles:Rk,square:Yk,"square-check-big":Tk,"square-dashed":Mk,star:zk,sun:Uk,table:Pk,target:Vk,terminal:Kk,"triangle-alert":Oj,unplug:Xk,user:e2,workflow:n2,x:i2});function Be({name:e,size:t=16,color:a="currentColor",strokeWidth:s=1.75,title:c,spin:l=!1,pulse:u=!1}){const f=r2[e];return r.jsx(f,{className:"pc-icon","data-icon":e,"data-spin":l||void 0,"data-pulse":u||void 0,size:t,color:a,strokeWidth:s,"aria-hidden":c?void 0:!0,role:c?"img":void 0,"aria-label":c})}const Yh={sm:13,md:14,lg:16};function ua({children:e,variant:t="secondary",size:a="md",icon:s,iconAfter:c,disabled:l=!1,loading:u=!1,fullWidth:f=!1,shortcut:h,type:A="button",onClick:y,ariaLabel:m}){return r.jsxs("button",{type:A,className:"pc-button","data-variant":t,"data-size":a,"data-full":f||void 0,disabled:l||u,"aria-label":m,onClick:y,children:[u?r.jsx(Be,{name:"loader-circle",size:Yh[a],spin:!0}):s?r.jsx(Be,{name:s,size:Yh[a]}):null,e,c?r.jsx(Be,{name:c,size:Yh[a]}):null,h?r.jsx("span",{className:"pc-button__shortcut",children:h}):null]})}const s2={sm:13,md:15,lg:17};function _j({icon:e,label:t,size:a="md",active:s=!1,disabled:c=!1,tone:l="default",onClick:u}){return r.jsx("button",{type:"button",className:"pc-icon-button","data-size":a,"data-tone":l,"data-active":s||void 0,title:t,"aria-label":t,"aria-pressed":s||void 0,disabled:c,onClick:u,children:r.jsx(Be,{name:e,size:s2[a]})})}function dr({children:e,size:t="md"}){return r.jsx("kbd",{className:"pc-kbd","data-size":t,children:e})}function Vn({children:e,tone:t="neutral",variant:a="soft",icon:s,mono:c=!1}){return r.jsxs("span",{className:"pc-badge","data-tone":t,"data-variant":a,"data-mono":c||void 0,children:[s?r.jsx(Be,{name:s,size:11}):null,e]})}function At({children:e,title:t,meta:a,actions:s,padding:c=14,elevated:l=!1}){return r.jsxs("section",{className:"pc-card","data-elevated":l||void 0,children:[t||s?r.jsxs("header",{className:"pc-card__head",children:[t?r.jsx("h2",{className:"pc-card__title",children:t}):null,a?r.jsx("span",{className:"pc-card__meta",children:a}):null,s?r.jsx("div",{className:"pc-card__actions",children:s}):null]}):null,r.jsx("div",{className:"pc-card__body",style:{padding:c},children:e})]})}function Jt({icon:e="inbox",title:t,description:a,action:s}){return r.jsxs("div",{className:"pc-empty",children:[r.jsx("span",{className:"pc-empty__glyph","aria-hidden":"true",children:r.jsx(Be,{name:e,size:17})}),r.jsx("span",{className:"pc-empty__title",children:t}),a?r.jsx("p",{className:"pc-empty__desc",children:a}):null,s?r.jsx("div",{className:"pc-empty__action",children:s}):null]})}function Nj({tabs:e,value:t,onChange:a,size:s="md",label:c}){return r.jsx("div",{className:"pc-tabs","data-size":s,role:"tablist","aria-label":c,children:e.map(l=>{const u=l.id===t;return r.jsxs("button",{type:"button",role:"tab",className:"pc-tabs__tab","aria-selected":u,"data-active":u||void 0,onClick:()=>a(l.id),children:[l.icon?r.jsx(Be,{name:l.icon,size:13}):null,l.label,l.count!==void 0?r.jsx("span",{className:"pc-tabs__count",children:l.count}):null]},l.id)})})}function cn({w:e="100%",h:t=10,radius:a,delay:s=0}){return r.jsx("span",{className:"pc-skeleton","aria-hidden":"true",style:{width:e,height:t,borderRadius:a,animationDelay:`${s}ms`}})}const nb=160;function xg({columns:e,rows:t=6,label:a}){const s=24+12*Math.max(e.length-1,0)+e.reduce((u,f)=>u+(f.width??nb),0),c=u=>({flex:u.width?`0 0 ${u.width}px`:`1 0 ${nb}px`}),l=Array.from({length:t},(u,f)=>({id:`row-${f}`,row:f}));return r.jsxs("output",{className:"pc-skeleton-table","aria-busy":"true","aria-label":a??"Loading",children:[r.jsx("div",{className:"pc-skeleton-table__head",style:{minWidth:s},children:e.map(u=>r.jsx("span",{style:c(u),children:u.label},u.label))}),l.map(({id:u,row:f})=>r.jsx("div",{className:"pc-skeleton-table__row",style:{minWidth:s},children:e.map((h,A)=>r.jsx("span",{style:c(h),children:r.jsx(cn,{w:h.fill??(A===0?"72%":"56%"),delay:(f*e.length+A)*40})},h.label))},u))]})}function uo({count:e=4,height:t=148,min:a=360,label:s}){const c=Array.from({length:e},(l,u)=>({id:`card-${u}`,index:u}));return r.jsx("output",{className:"pc-skeleton-cards","aria-busy":"true","aria-label":s??"Loading",style:{gridTemplateColumns:`repeat(auto-fill, minmax(${a}px, 1fr))`},children:c.map(({id:l,index:u})=>r.jsxs("div",{className:"pc-skeleton-cards__card",style:{height:t},children:[r.jsxs("div",{className:"pc-skeleton-cards__row",children:[r.jsx(cn,{w:84,h:16,delay:u*60}),r.jsx(cn,{w:104,h:18,radius:"999px",delay:u*60+40})]}),r.jsx(cn,{w:"82%",h:13,delay:u*60+80}),r.jsx(cn,{w:"94%",delay:u*60+120}),r.jsx(cn,{w:"66%",delay:u*60+160}),r.jsx("span",{className:"pc-skeleton-cards__foot",children:r.jsx(cn,{w:"46%",h:22,delay:u*60+200})})]},l))})}function Hu({children:e,right:t}){return r.jsxs("div",{className:"pc-toolbar-bar",children:[e,t?r.jsx("div",{className:"pc-toolbar-bar__right",children:t}):null]})}function NA(){return r.jsx("span",{className:"pc-toolbar-bar__divider","aria-hidden":"true"})}function st({eyebrow:e,title:t,count:a,description:s,actions:c,sticky:l=!1,headingLevel:u=1}){const f=u===1?"h1":u===2?"h2":"h3";return r.jsxs("header",{className:"pc-section-header","data-sticky":l||void 0,children:[r.jsxs("div",{className:"pc-section-header__text",children:[e?r.jsx("span",{className:"pc-section-header__eyebrow",children:e}):null,r.jsxs("div",{className:"pc-section-header__row",children:[r.jsx(f,{className:"pc-section-header__title",children:t}),a!==void 0?r.jsx("span",{className:"pc-section-header__count",children:a}):null]}),s?r.jsx("p",{className:"pc-section-header__desc",children:s}):null]}),c?r.jsx("div",{className:"pc-section-header__actions",children:c}):null]})}function RA({value:e,onChange:t,ariaLabel:a,placeholder:s,icon:c,suffix:l,size:u="md",mono:f=!1,width:h}){return r.jsxs("span",{className:"pc-input","data-size":u,style:{width:h},children:[c?r.jsx(Be,{name:c,size:14,color:"var(--pc-text-tertiary)"}):null,r.jsx("input",{className:"pc-input__field","data-mono":f||void 0,type:"text",value:e,placeholder:s,"aria-label":a,onChange:A=>t(A.target.value)}),l?r.jsx("span",{className:"pc-input__suffix",children:l}):null]})}function qc({value:e,onChange:t,options:a,ariaLabel:s,size:c="md",width:l}){return r.jsxs("span",{className:"pc-select","data-size":c,style:{width:l},children:[r.jsx("select",{className:"pc-select__field",value:e,"aria-label":s,onChange:u=>t(u.target.value),children:a.map(u=>{const f=typeof u=="string"?{value:u,label:u}:u;return r.jsx("option",{value:f.value,children:f.label},f.value)})}),r.jsx(Be,{name:"chevron-down",size:13,color:"var(--pc-text-tertiary)"})]})}function o2({checked:e,onChange:t,label:a,ariaLabel:s,disabled:c=!1,size:l="md"}){return r.jsxs("label",{className:"pc-switch","data-size":l,"data-disabled":c||void 0,children:[r.jsx("input",{type:"checkbox",role:"switch",className:"pc-switch__input",checked:e,"aria-checked":e,disabled:c,"aria-label":a?void 0:s,onChange:u=>t(u.target.checked)}),r.jsx("span",{className:"pc-switch__track","aria-hidden":"true",children:r.jsx("span",{className:"pc-switch__thumb"})}),a?r.jsx("span",{className:"pc-switch__label",children:a}):null]})}const c2=Object.freeze({warn:"triangle-alert",danger:"octagon-alert",info:"info",success:"circle-check"});function qt({tone:e="warn",title:t,children:a,actions:s}){const c=e==="warning"?"warn":e;return r.jsxs("div",{className:"pc-alert","data-tone":c,role:"note",children:[r.jsx(Be,{name:c2[c],size:14}),r.jsxs("div",{className:"pc-alert__body",children:[t?r.jsx("span",{className:"pc-alert__title",children:t}):null,a?r.jsx("span",{className:"pc-alert__text",children:a}):null]}),s?r.jsx("div",{className:"pc-alert__actions",children:s}):null]})}function xa({command:e,label:t,size:a="md"}){const[s,c]=B.useState("idle");B.useEffect(()=>{if(s==="idle")return;const f=window.setTimeout(()=>c("idle"),1400);return()=>window.clearTimeout(f)},[s]);const l=()=>{if(!navigator.clipboard){c("blocked");return}navigator.clipboard.writeText(e).then(()=>c("copied"),()=>c("blocked"))},u=s==="copied"?"Command copied":s==="blocked"?"Copy was blocked":"Copy command";return r.jsxs("div",{className:"pc-command-hint","data-size":a,children:[t?r.jsx("span",{className:"pc-command-hint__label",children:t}):null,r.jsxs("div",{className:"pc-command-hint__row",children:[r.jsxs("span",{className:"pc-command-hint__command",children:[r.jsx(Be,{name:"terminal",size:12,color:"var(--pc-text-tertiary)"}),e]}),r.jsxs("button",{type:"button",className:"pc-command-hint__copy","data-state":s,"aria-label":u,onClick:l,children:[r.jsx(Be,{name:s==="copied"?"check":s==="blocked"?"x":"copy",size:12}),s==="idle"?null:s]})]})]})}function l2(e,t){const a=e[t];return a==null?null:String(a)}function ji({columns:e,rows:t,compact:a=!1,caption:s,emptyMessage:c="Nothing here yet.",selectedId:l,sort:u,onSort:f,onRowClick:h}){const A=m=>h==null?void 0:h(m),y=(m,E)=>{h&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),A(E))};return r.jsx("div",{className:"pc-table-wrap",children:r.jsxs("table",{className:"pc-table","data-compact":a||void 0,"data-interactive":h?!0:void 0,children:[s?r.jsx("caption",{className:"pc-visually-hidden",children:s}):null,r.jsx("thead",{children:r.jsx("tr",{children:e.map(m=>{const E=(u==null?void 0:u.key)===m.key,b=r.jsxs("span",{className:"pc-table__heading",children:[m.label,m.sortable?r.jsx(Be,{name:E?(u==null?void 0:u.dir)==="asc"?"chevron-up":"chevron-down":"chevrons-up-down",size:12,color:E?"var(--pc-text-primary)":"var(--pc-text-tertiary)"}):null]});return r.jsx("th",{scope:"col","data-align":m.align??"left",style:{width:m.width},"aria-sort":E?(u==null?void 0:u.dir)==="asc"?"ascending":"descending":void 0,children:m.sortable&&f?r.jsx("button",{type:"button",className:"pc-table__sort",onClick:()=>f(m.key),children:b}):b},m.key)})})}),r.jsx("tbody",{children:t.length===0?r.jsx("tr",{children:r.jsx("td",{className:"pc-table__empty",colSpan:e.length,children:c})}):t.map(m=>r.jsx("tr",{"data-selected":l!==void 0&&m.id===l?!0:void 0,tabIndex:h?0:void 0,onClick:h?()=>A(m):void 0,onKeyDown:h?E=>y(E,m):void 0,children:e.map(E=>r.jsx("td",{"data-align":E.align??"left","data-mono":E.mono||void 0,style:{maxWidth:E.width},children:E.render?E.render(m):l2(m,E.key)},E.key))},m.id))})]})})}const pl=Object.freeze(["outstanding","in-progress","blocked","addressed","done"]),ab=Object.freeze({done:"done","in-progress":"in progress",blocked:"blocked",outstanding:"outstanding",addressed:"addressed"});function bi({status:e,size:t="md",showLabel:a=!0,count:s}){const c=e in ab?e:"outstanding",l=ab[c]??e;return r.jsxs("span",{className:"pc-artifact","data-status":c,"data-size":t,children:[r.jsx("span",{className:"pc-artifact__dot","aria-hidden":"true"}),r.jsx("span",{className:a?"pc-artifact__label":"pc-visually-hidden",children:l}),s!==void 0?r.jsx("span",{className:"pc-artifact__count",children:s}):null]})}const ib=Object.freeze({proposed:{label:"proposed",icon:"circle-dashed",family:"pre",dash:!0},approved:{label:"approved",icon:"circle-check",family:"pre"},queued:{label:"queued",icon:"clock",family:"pre"},in_progress:{label:"in progress",icon:"circle-play",family:"active",live:!0},completed:{label:"completed",icon:"circle-check",family:"good"},blocked:{label:"blocked",icon:"circle-slash",family:"bad"},rejected:{label:"rejected",icon:"circle-x",family:"bad",double:!0},deferred:{label:"deferred",icon:"circle-pause",family:"inert",dash:!0},cancelled:{label:"cancelled",icon:"ban",family:"inert"}}),d2=Object.freeze({succeeded:{label:"succeeded",icon:"check-check",family:"good"},failed:{label:"failed",icon:"triangle-alert",family:"bad",double:!0},partial:{label:"partial",icon:"circle-minus",family:"pre"},uncertain:{label:"uncertain",icon:"circle-alert",family:"inert",dash:!0}}),Rj=Object.freeze({running:"in_progress",closed:"completed","in-progress":"in_progress"});function jg({state:e,size:t="md",showLabel:a=!0,label:s}){const c=Rj[e]??e,l=ib[c]??d2[c]??ib.proposed,u=s??l.label;return r.jsxs("span",{className:"pc-state-badge",role:"status","aria-label":`State: ${u}`,"data-state":c,"data-family":l.family,"data-dash":l.dash||void 0,"data-double":l.double||void 0,"data-size":t,children:[r.jsx(Be,{name:l.icon,size:t==="sm"?11:13,pulse:l.live}),a?u:null]})}const rb=Object.freeze({epic:{icon:"layers",prefix:"EPC"},feature:{icon:"box",prefix:"FTR"},story:{icon:"bookmark",prefix:"STY"},task:{icon:"square-check-big",prefix:"TSK"},spec:{icon:"file-text",prefix:"SPC"},backlog:{icon:"inbox",prefix:"BKL"},quick:{icon:"flag",prefix:"QCK"},sprint:{icon:"calendar-range",prefix:"SPR"},adr:{icon:"shield",prefix:"ADR"}});function os({type:e,id:t,title:a,blocked:s=!1,interactive:c=!1,onClick:l}){const u=e in rb?e:"task",f=rb[u],h=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"pc-work-item__type","data-type":u,"aria-hidden":"true",children:r.jsx(Be,{name:f.icon,size:12})}),r.jsx("span",{className:"pc-work-item__id",children:t}),a?r.jsx("span",{className:"pc-work-item__title",children:a}):null,s?r.jsx(Be,{name:"circle-slash",size:13,color:"var(--pc-astate-failed-fg)",title:"Blocked"}):null]});return l?r.jsx("button",{type:"button",className:"pc-work-item","data-interactive":!0,onClick:l,children:h}):r.jsx("span",{className:"pc-work-item","data-interactive":c||void 0,children:h})}const u2=Object.freeze({"planr-plan":{family:"plan",icon:"list-tree"},"planr-plan-review":{family:"plan",icon:"list-tree"},"planr-spec":{family:"plan",icon:"file-text"},"planr-ship":{family:"ship",icon:"git-branch"},"planr-land":{family:"ship",icon:"git-pull-request"},"planr-operate":{family:"operate",icon:"gauge"},"planr-ceo-review":{family:"operate",icon:"scroll-text"},"planr-cpo-review":{family:"operate",icon:"scroll-text"},"planr-cto-review":{family:"operate",icon:"scroll-text"},"planr-cmo-review":{family:"operate",icon:"scroll-text"},"planr-coo-review":{family:"operate",icon:"scroll-text"},"planr-challenger-review":{family:"operate",icon:"scroll-text"},"planr-chair-review":{family:"operate",icon:"scroll-text"},"planr-diagram":{family:"diagram",icon:"workflow"},"planr-design":{family:"diagram",icon:"sparkles"},"planr-design-loop":{family:"diagram",icon:"sparkles"},"planr-design-review":{family:"diagram",icon:"sparkles"},"planr-artifact":{family:"diagram",icon:"file-check"},"planr-status":{family:"status",icon:"activity"},"planr-investigate":{family:"status",icon:"search"},"planr-browser-qa":{family:"status",icon:"shield"},"planr-doctor":{family:"status",icon:"life-buoy"},"planr-sync":{family:"status",icon:"refresh-cw"},"planr-dashboard":{family:"status",icon:"gauge"}});function Dj({name:e,showIcon:t=!0,size:a="md",muted:s=!1}){const c=u2[e];return r.jsxs("span",{className:"pc-capability","data-family":(c==null?void 0:c.family)??"status","data-size":a,"data-muted":s||void 0,children:[t?r.jsx(Be,{name:(c==null?void 0:c.icon)??"square-dashed",size:a==="sm"?11:13}):r.jsx("span",{className:"pc-capability__dot","aria-hidden":"true"}),e]})}const f2=Object.freeze({proposed:"pre",approved:"pre",queued:"pre",in_progress:"active",completed:"good",blocked:"bad",rejected:"bad",deferred:"inert",cancelled:"inert"});function p2({actionId:e,state:t,capability:a,title:s,headingLevel:c=3,summary:l,scope:u,revision:f,route:h,execution:A,deepLink:y,command:m,error:E,compact:b=!1}){const w=c===2?"h2":"h3",x=Rj[t]??t,j=f2[x]??"pre",I=x==="blocked"||x==="rejected",C=x==="completed"||x==="cancelled";return r.jsxs("article",{className:"pc-action-card","data-action":e,"data-family":j,"data-adverse":I||void 0,"data-faded":C||void 0,"data-live":x==="in_progress"||void 0,"data-compact":b||void 0,children:[r.jsx("div",{className:"pc-action-card__rail","aria-hidden":"true"}),r.jsxs("div",{className:"pc-action-card__body",children:[r.jsxs("div",{className:"pc-action-card__head",children:[r.jsx(jg,{state:x,size:"sm"}),a?r.jsx(Dj,{name:a,size:"sm",muted:!0}):null,e?r.jsx("span",{className:"pc-action-card__id",children:e}):null,f!==void 0?r.jsxs("span",{className:"pc-action-card__rev",title:"Protocol revision",children:[r.jsx(Be,{name:"git-commit",size:11}),"rev ",f]}):null]}),r.jsxs("div",{className:"pc-action-card__text",children:[r.jsx(w,{className:"pc-action-card__title",children:s}),l?r.jsx("p",{className:"pc-action-card__summary",children:l}):null]}),u&&u.length>0?r.jsx("ul",{className:"pc-action-card__scope",children:u.map(O=>r.jsx("li",{className:"pc-action-card__chip",children:O},O))}):null,A?r.jsxs("div",{className:"pc-action-card__execution",children:[r.jsx("span",{className:"pc-action-card__label",children:"latest execution"}),r.jsx(jg,{state:A,size:"sm"})]}):null,E?r.jsxs("div",{className:"pc-action-card__error",children:[r.jsx(Be,{name:"triangle-alert",size:13}),r.jsx("span",{children:E})]}):null,m?r.jsx(xa,{command:m,size:"sm"}):null,h||y?r.jsxs("div",{className:"pc-action-card__foot",children:[h?r.jsxs("span",{className:"pc-action-card__route",title:"Delivery route",children:[r.jsx(Be,{name:"corner-down-right",size:11}),h]}):null,y?r.jsxs("a",{className:"pc-action-card__open",href:y,"aria-label":`Open ${s}`,children:["open",r.jsx(Be,{name:"external-link",size:11})]}):null]}):null]})]})}const Pd=["epic","feature","story","task","spec","adr","backlog","quick","sprint"],h2=220,Hh=52,sb=184,zh=34,ob=1e3;function Au(e,t){const a=Pd.indexOf(e.type),s=Pd.indexOf(t.type);return(a<0?Pd.length:a)-(s<0?Pd.length:s)||e.id.localeCompare(t.id,void 0,{numeric:!0})}function g2(e,t){var I,C,O;const a=new Set(e.map(S=>S.id)),s=new Map;for(const S of e)s.set(S.id,[]);for(const S of t)a.has(S.from)&&a.has(S.to)&&((I=s.get(S.from))==null||I.push(S.to));let c=0;const l=new Map,u=new Map,f=[],h=new Set,A=[],y=S=>{l.set(S,c),u.set(S,c),c+=1,f.push(S),h.add(S);for(const k of s.get(S)??[])l.has(k)?h.has(k)&&u.set(S,Math.min(u.get(S)??0,l.get(k)??0)):(y(k),u.set(S,Math.min(u.get(S)??0,u.get(k)??0)));if(u.get(S)!==l.get(S))return;const _=[];for(;f.length>0;){const k=f.pop();if(k===void 0||(h.delete(k),_.push(k),k===S))break}A.push(_)};for(const S of[...e].sort(Au))l.has(S.id)||y(S.id);const m=new Map;A.forEach((S,_)=>{for(const k of S)m.set(k,_)});const E=A.map(()=>new Set),b=A.map(()=>0);for(const S of t){const _=m.get(S.from),k=m.get(S.to);_===void 0||k===void 0||_===k||(C=E[_])!=null&&C.has(k)||((O=E[_])==null||O.add(k),b[k]=(b[k]??0)+1)}const w=S=>[...A[S]??[]].sort((_,k)=>_.localeCompare(k,void 0,{numeric:!0}))[0]??"",x=A.map((S,_)=>_).filter(S=>b[S]===0).sort((S,_)=>w(S).localeCompare(w(_),void 0,{numeric:!0})),j=A.map(()=>0);for(;x.length>0;){const S=x.shift();if(S===void 0)break;for(const _ of E[S]??[])j[_]=Math.max(j[_]??0,(j[S]??0)+1),b[_]=(b[_]??0)-1,b[_]===0&&(x.push(_),x.sort((k,N)=>w(k).localeCompare(w(N),void 0,{numeric:!0})))}return new Map(e.map(S=>[S.id,j[m.get(S.id)??0]??0]))}function A2(e,t,a){const s=e.map(f=>[...f]),c=new Map,l=f=>{const h=s[f]??[],A=Math.max(1,h.length-1);h.forEach((y,m)=>{c.set(y.id,m/A)})},u=(f,h)=>{const y=(s[f]??[]).map(m=>{const E=t.filter(b=>h==="parents"?b.to===m.id:b.from===m.id).map(b=>h==="parents"?b.from:b.to).filter(b=>{const w=a.get(b);return w!==void 0&&(h==="parents"?w<f:w>f)}).map(b=>c.get(b)).filter(b=>b!==void 0);return{node:m,score:E.length>0?E.reduce((b,w)=>b+w,0)/E.length:null}});y.sort((m,E)=>m.score===null&&E.score===null?Au(m.node,E.node):m.score===null?1:E.score===null?-1:m.score-E.score||Au(m.node,E.node)),s[f]=y.map(({node:m})=>m),l(f)};for(let f=0;f<2;f+=1){s.forEach((h,A)=>{l(A)});for(let h=1;h<s.length;h+=1)u(h,"parents");for(let h=s.length-2;h>=0;h-=1)u(h,"children")}return s}function Tj({node:e,depth:t,byId:a,edges:s,selectedId:c,onSelect:l}){const u=s.filter(h=>h.from===e.id).map(h=>a.get(h.to)).filter(h=>h!==void 0),f=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"pc-graph-outline__dot","data-type":e.type,"aria-hidden":"true"}),r.jsx("span",{className:"pc-graph-outline__id",children:e.id}),r.jsx("span",{className:"pc-graph-outline__label",children:e.label}),e.blocked?r.jsx("span",{className:"pc-graph-outline__blocked",children:"blocked"}):null]});return r.jsxs("li",{className:"pc-graph-outline__item","data-depth":t===0?"root":void 0,children:[l?r.jsx("button",{type:"button",className:"pc-graph-outline__row","data-selected":c===e.id||void 0,onClick:()=>l(e.id),children:f}):r.jsx("span",{className:"pc-graph-outline__row",children:f}),u.length>0?r.jsx("ul",{className:"pc-graph-outline__list",children:u.map(h=>r.jsx(Tj,{node:h,depth:t+1,byId:a,edges:s,selectedId:c,onSelect:l},h.id))}):null]})}function m2({nodes:e,edges:t,view:a="graph",flow:s="source-to-target",selectedId:c,onSelect:l,height:u}){const f=new Map(e.map(I=>[I.id,I])),h=s==="target-to-source"?t.map(I=>({...I,from:I.to,to:I.from})):t;if(a==="outline"){const I=e.filter(C=>!h.some(O=>O.to===C.id));return r.jsx("div",{className:"pc-graph-outline",children:r.jsx("ul",{className:"pc-graph-outline__list",children:I.map(C=>r.jsx(Tj,{node:C,depth:0,byId:f,edges:h,selectedId:c,onSelect:l},C.id))})})}const A=g2(e,h),y=Math.max(0,...A.values())+1,m=A2(Array.from({length:y},(I,C)=>[...e].filter(O=>A.get(O.id)===C).sort(Au)),h,A),E=Math.max(1,...m.map(I=>I.length)),b=Math.max(u??0,E*Hh+78),w=Math.max(680,y*h2+48),x=new Set(h.filter(I=>I.active).flatMap(I=>[I.from,I.to])),j=new Map;return m.forEach((I,C)=>{const O=y===1?50:7+C/(y-1)*86,S=48+(E-I.length)*Hh/2;I.forEach((_,k)=>{j.set(_.id,{x:O/100*ob,xPercent:O,y:S+k*Hh})})}),r.jsx("figure",{className:"pc-graph","aria-label":"Dependency graph","data-tracing":x.size>0||void 0,style:{height:u},children:r.jsxs("div",{className:"pc-graph__canvas",style:{minWidth:w,height:b},children:[r.jsx("div",{className:"pc-graph__ranks","aria-hidden":"true",children:m.map((I,C)=>{const O=y===1?50:7+C/(y-1)*86;return r.jsxs("span",{className:"pc-graph__rank",style:{left:`${O}%`},children:[C===0?"foundation":`stage ${C+1}`," · ",I.length]},C)})}),r.jsxs("svg",{className:"pc-graph__edges",viewBox:`0 0 ${ob} ${b}`,preserveAspectRatio:"none","aria-hidden":"true",children:[r.jsx("title",{children:"Dependency edges"}),h.map(I=>{const C=j.get(I.from),O=j.get(I.to);if(!C||!O)return null;const S=C.x,_=C.y+zh/2,k=O.x,N=O.y+zh/2,z=(S+k)/2;return r.jsx("path",{className:"pc-graph__edge","data-blocked":I.blocked||void 0,"data-active":I.active||void 0,d:`M${S},${_} C${z},${_} ${z},${N} ${k},${N}`,vectorEffect:"non-scaling-stroke"},`${I.from}-${I.to}`)})]}),e.map(I=>{const C=j.get(I.id);return C?r.jsxs("button",{type:"button",className:"pc-graph-node","data-selected":c===I.id||void 0,"data-related":x.has(I.id)||void 0,"data-blocked":I.blocked||void 0,style:{left:`calc(${C.xPercent}% - ${sb/2}px)`,top:C.y,width:sb,height:zh},onClick:l?()=>l(I.id):void 0,title:`${I.id} · ${I.label}`,"aria-label":`${I.id}: ${I.label}${I.blocked?", blocked":""}`,children:[r.jsx("span",{className:"pc-graph-node__dot","data-type":I.type,"aria-hidden":"true"}),r.jsx("span",{className:"pc-graph-node__code",children:I.id}),r.jsx("span",{className:"pc-graph-node__label",children:I.label}),I.blocked?r.jsx(Be,{name:"circle-slash",size:11,color:"var(--pc-astate-failed-fg)"}):null]},I.id):null})]})})}function y2({name:e,segments:t,day:a,days:s,compact:c=!1}){const l=t.reduce((f,h)=>f+h.count,0),u=l||1;return r.jsxs("div",{className:"pc-sprint","data-compact":c||void 0,children:[r.jsxs("div",{className:"pc-sprint__head",children:[r.jsx("span",{className:"pc-sprint__name",children:e}),s?r.jsxs("span",{className:"pc-sprint__day",children:["day ",a,"/",s]}):null,r.jsxs("span",{className:"pc-sprint__total",children:[l," items"]})]}),r.jsx("div",{className:"pc-sprint__bar",role:"img","aria-label":`${e} progress`,children:t.map(f=>r.jsx("span",{className:"pc-sprint__seg","data-state":f.state,style:{width:`${f.count/u*100}%`},title:`${f.label??f.state}: ${f.count}`},f.state))}),c?null:r.jsx("div",{className:"pc-sprint__legend",children:t.map(f=>r.jsxs("span",{className:"pc-sprint__legend-item",children:[r.jsx("span",{className:"pc-sprint__dot","data-state":f.state}),f.label??f.state," ",r.jsx("span",{className:"pc-sprint__count",children:f.count})]},f.state))})]})}function E2({children:e,tone:t="default"}){return r.jsx("span",{className:"pc-prose","data-tone":t,children:e})}function gt({children:e}){return r.jsx("span",{className:"pc-absent",children:e??"—"})}function wt({label:e,children:t,mono:a=!1}){return r.jsxs("div",{className:"pc-field",children:[r.jsx("span",{className:"pc-field__label",children:e}),r.jsx("span",{className:"pc-field__value","data-mono":a||void 0,children:t})]})}function B2({counts:e,total:t,active:a,onPick:s}){return r.jsxs("div",{className:"pc-tally",children:[r.jsx("div",{className:"pc-tally__cells",children:pl.map(c=>s?r.jsxs("button",{type:"button",className:"pc-tally__cell","data-active":a===c||void 0,onClick:()=>s(c),children:[r.jsx(bi,{status:c,size:"sm"}),r.jsx("span",{className:"pc-tally__value",children:e[c]??0})]},c):r.jsxs("span",{className:"pc-tally__cell",children:[r.jsx(bi,{status:c,size:"sm"}),r.jsx("span",{className:"pc-tally__value",children:e[c]??0})]},c))}),r.jsxs("div",{className:"pc-tally__total",children:[r.jsx("span",{className:"pc-tally__label",children:"total"}),r.jsx("span",{className:"pc-tally__value",children:t})]})]})}const Mt=B.forwardRef(function({children:t,className:a,disabled:s=!1,disabledReason:c,id:l,onInvoke:u,pendingLabel:f="Waiting for durable acceptance",tabIndex:h,title:A,variant:y="primary","aria-label":m,"aria-controls":E,"aria-expanded":b,"aria-haspopup":w},x){const j=B.useId(),I=B.useRef(!1),C=B.useRef(!0),[O,S]=B.useState(!1);B.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]);const _=O?f:c,k=s||O;async function N(){if(!(k||I.current||!u)){I.current=!0,S(!0);try{await u()}finally{I.current=!1,C.current&&S(!1)}}}const z=r.jsxs("button",{ref:x,type:"button",id:l,className:`op-governed-button${a?` ${a}`:""}`,"data-variant":y,title:A,tabIndex:h,disabled:k,"aria-label":m,"aria-controls":E,"aria-expanded":b,"aria-haspopup":w,"aria-busy":O||void 0,"aria-describedby":_?j:void 0,onClick:N,children:[O?r.jsx("span",{className:"op-governed-button__spinner","aria-hidden":"true"}):null,r.jsx("span",{children:O?f:t})]});return r.jsxs("div",{className:"op-governed-action","data-governed-action-state":O?"pending":"idle",children:[_?r.jsx(JR,{delayDuration:300,children:r.jsxs(ZR,{children:[r.jsx(XR,{asChild:!0,children:r.jsx("span",{children:z})}),r.jsx(WR,{children:r.jsx(eD,{className:"op-governed-tooltip",sideOffset:8,children:_})})]})}):z,_?r.jsx("p",{className:"op-governed-reason",id:j,children:_}):null]})}),v2=Object.freeze({proposed:"pending",approved:"active",queued:"pending",in_progress:"active",completed:"settled",blocked:"alert",rejected:"alert",deferred:"neutral",cancelled:"neutral",succeeded:"settled",failed:"alert",partial:"pending",uncertain:"pending",created:"neutral",observing:"active",advising:"active",challenging:"active",synthesizing:"active",awaiting_review:"pending",executing:"active",verifying:"active",closed:"settled",current:"active",available:"neutral",complete:"settled",skipped:"neutral",revisited:"pending",waiting:"pending",normal:"active",quiet:"neutral",custody:"pending",divergent:"alert",corrupt:"alert",incompatible:"alert",restored:"settled","not-required":"neutral",verified:"settled",unverified:"pending","insufficient-evidence":"pending",open:"pending",accepted:"active",resolved:"settled",superseded:"neutral",supported:"settled",contradicted:"alert",unknown:"neutral",restricted:"neutral",ready:"active","read-only":"neutral",stale:"pending",offline:"alert"});function b2(e){return e.replaceAll("_"," ").replaceAll("-"," ")}function fa({state:e,label:t}){return r.jsx("span",{className:"pc-state","data-tone":v2[e]??"neutral","data-state":e,children:t??b2(e)})}function Ba({label:e,value:t,tone:a="default",icon:s,delta:c,trend:l}){return r.jsxs("li",{className:"pc-metric","data-tone":a,children:[r.jsxs("span",{className:"pc-metric__label",children:[s?r.jsx("span",{className:"pc-metric__icon","aria-hidden":"true",children:s}):null,e]}),r.jsxs("span",{className:"pc-metric__row",children:[r.jsx("span",{className:"pc-metric__value",children:t}),c?r.jsx("span",{className:"pc-metric__delta","data-trend":l??"up",children:c}):null]})]})}function cs({items:e}){return r.jsx("dl",{className:"pc-def-grid",children:e.map(t=>r.jsxs("div",{className:"pc-def-grid__row",children:[r.jsx("dt",{className:"pc-def-grid__term",children:t.term}),r.jsx("dd",{className:"pc-def-grid__desc","data-mono":t.mono??!1,children:t.description})]},t.term))})}const w2={booting:qD,"first-use":bD,"ready-to-resume":Sk,unavailable:XD,incompatible:Oj,offline:Sj};function be({state:e,eyebrow:t,title:a,description:s,detail:c,actions:l,headingId:u}){const f=w2[e],h=e==="offline"||e==="incompatible",A=B.useId(),y=u??`dashboard-state-panel-${A}`;return r.jsxs("section",{className:"op-state-panel","data-state":e,"aria-labelledby":y,role:h?"alert":"status","aria-live":h?"assertive":"polite",children:[r.jsx("span",{className:"op-state-panel__signal","aria-hidden":"true"}),r.jsxs("div",{className:"op-state-panel__body",children:[r.jsx("p",{className:"op-eyebrow",children:t}),r.jsxs("div",{className:"op-state-panel__heading",children:[r.jsx(f,{"aria-hidden":"true"}),r.jsx("h2",{id:y,children:a})]}),r.jsx("p",{children:s}),c?r.jsx("p",{className:"op-state-panel__detail",children:c}):null]}),l?r.jsx("div",{className:"op-state-panel__actions",children:l}):null]})}const x2=/(?:^|[\s"'`])\/(?:Users|home|opt|var|private|tmp)\//iu;function sa(e){return e==null||e.length===0?"Not returned":x2.test(e)?"Redacted":e}function j2({embeddedBuildId:e,bootstrap:t}){const a=[["Embedded dashboard build",e],["Served dashboard build",sa(t==null?void 0:t.ui.buildId)],["Expected dashboard build",sa(t==null?void 0:t.ui.expectedBuildId)],["Asset manifest hash",sa(t==null?void 0:t.ui.assetManifestHash)],["OpenPlanr package version",sa(t==null?void 0:t.server.packageVersion)],["Bootstrap protocol",sa(t==null?void 0:t.protocolVersion)],["Planning graph schema",sa(t==null?void 0:t.capabilities.planningGraph.schemaVersion)],["Operate experience protocol",sa(t==null?void 0:t.capabilities.operateExperience.protocolVersion)],["Operate commands transport",sa(t==null?void 0:t.capabilities.operateCommands.transportVersion)],["Diagnostics capability",t!=null&&t.capabilities.diagnostics.available?"available":"unavailable"],["Operate commands capability",t!=null&&t.capabilities.operateCommands.available?"available":"unavailable"],["Compatibility status",sa(t==null?void 0:t.compatibility.status)],["Compatibility reasons",t!=null&&t.compatibility.reasonCodes.length?t.compatibility.reasonCodes.join(" · "):"None"],["Project name",sa(t==null?void 0:t.project.name)],["Project branch",sa(t==null?void 0:t.project.branch)],["Loopback origin",sa(t==null?void 0:t.origin)]],s=a.map(([c,l])=>`${c}: ${l}`).join(`
|
|
530
|
-
`);return r.jsxs("section",{className:"op-diagnostics__summary","aria-labelledby":"dashboard-support-summary-title",children:[r.jsxs("div",{className:"op-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Support bundle"}),r.jsx("h2",{id:"dashboard-support-summary-title",children:"Access-safe installation summary"})]}),r.jsx("p",{children:"Only public bootstrap fields appear here. Private paths, bodies, and credentials never do."})]}),r.jsx("dl",{"aria-label":"Support summary fields",children:a.map(([c,l])=>r.jsxs("div",{children:[r.jsx("dt",{children:c}),r.jsx("dd",{children:r.jsx("code",{children:l})})]},c))}),r.jsx("textarea",{className:"op-diagnostics__bundle",readOnly:!0,"aria-label":"Support bundle text",value:s})]})}function Q2(e){return e==="pass"?"Pass":e==="warn"?"Attention":e==="pending"?"Checking":"Fail"}function I2(e){return e.some(t=>t.status==="fail")?{state:"incompatible",title:"Dashboard compatibility needs attention",description:"OpenPlanr certified at least one installation, package, or API problem. Mutation and durable work remain unavailable until remediation."}:e.some(t=>t.status==="pending")?{state:"booting",title:"Checking dashboard compatibility",description:"Diagnostics remain read-only while bootstrap custody is verified."}:e.some(t=>t.status==="warn")?{state:"ready-to-resume",title:"Dashboard is usable with certified limitations",description:"Core navigation remains available, but one or more optional capabilities or live-update channels need attention."}:{state:"ready-to-resume",title:"Dashboard compatibility is certified",description:"Installed assets, API versions, and optional dependencies match the served bootstrap contract."}}function C2({embeddedBuildId:e,bootstrap:t,bootPhase:a,bootDetail:s,connection:c,onReturn:l}){const u=x1({embeddedBuildId:e,bootstrap:t,bootPhase:a,bootDetail:s,connection:c}),f=I2(u);return r.jsxs("section",{className:"op-workspace op-diagnostics","data-route-kind":"system.diagnostics","aria-labelledby":"dashboard-diagnostics-title",children:[r.jsxs("header",{className:"op-diagnostics__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Diagnostics"}),r.jsx("h1",{id:"dashboard-diagnostics-title",children:"Compatibility and installation checks"}),r.jsx("p",{children:"These checks explain why the dashboard can or cannot present durable Planning and Operate state. They never infer authority, repair packages, or expose private installation paths."})]}),l?r.jsx("button",{type:"button",className:"op-inline-action",onClick:l,children:"Return to dashboard"}):null]}),r.jsx(be,{state:f.state,eyebrow:"Current posture",title:f.title,description:f.description}),r.jsxs("section",{className:"op-diagnostics__findings","aria-labelledby":"dashboard-diagnostics-findings-title",children:[r.jsxs("div",{className:"op-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Certified checks"}),r.jsx("h2",{id:"dashboard-diagnostics-findings-title",children:"Boot through optional dependencies"})]}),r.jsx("p",{children:"Each row is derived only from the public bootstrap envelope and current connection state."})]}),r.jsx("ol",{className:"op-diagnostics__list",children:u.map(h=>r.jsx("li",{"data-diagnostic":h.category,"data-status":h.status,children:r.jsxs("article",{children:[r.jsxs("header",{children:[r.jsx("p",{className:"op-eyebrow",children:h.category.replaceAll("-"," ")}),r.jsx("h3",{children:h.title}),r.jsx("span",{className:"op-diagnostics__status",children:Q2(h.status)})]}),r.jsx("p",{children:h.detail}),r.jsxs("p",{className:"op-diagnostics__remediation",children:[r.jsx("strong",{children:"Next safe step:"})," ",h.remediation]})]})},h.category))})]}),r.jsx(j2,{embeddedBuildId:e,bootstrap:t}),r.jsx("p",{className:"op-authority-note",children:"Diagnostics do not create arguments, authority, effects, repeated instructions, PLAN runs, or SHIP runs."})]})}const S2=Object.freeze({kind:"local-operate-review-index",schemaVersion:"1.0.0",readOnly:!0,pagination:Object.freeze({page:1,pageSize:12,pageCount:1,total:0}),items:Object.freeze([])});function Ai(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function O2(e,t){return t.every(a=>typeof e[a]=="string")}function kj(e){if(!Ai(e)||!Ai(e.counts))return!1;const t=e.counts;return O2(e,["cycleId","title","summary","signal","updatedAt","href"])&&["decisions","actions","gaps","issues"].every(a=>Number.isSafeInteger(t[a]))}function _2(e){if(!Ai(e)||e.kind!=="local-operate-review-index"||e.schemaVersion!=="1.0.0"||e.readOnly!==!0||!Ai(e.pagination)||!Array.isArray(e.items)||!e.items.every(kj))throw new Error("OpenPlanr returned an invalid local review index.");if(!["page","pageSize","pageCount","total"].every(t=>Number.isSafeInteger(e.pagination[t])))throw new Error("OpenPlanr returned invalid local review pagination.");return e}function N2(e){const t=Ai(e)&&Ai(e.item)?e.item:null,a=["decisions","actions","gaps","risks","issues","lenses","evidence"],s=t!==null&&typeof t.markdown=="string"&&Ai(t.scope)&&Ai(t.recovery)&&a.every(c=>Array.isArray(t[c]));if(!Ai(e)||e.kind!=="local-operate-review"||e.schemaVersion!=="1.0.0"||e.readOnly!==!0||!t||!s||!kj(t))throw new Error("OpenPlanr returned an invalid local review.");return e}async function Mj(e,t){const a=await fetch(e,{headers:{accept:"application/json"},signal:t});if(!a.ok)throw new Error(`OpenPlanr could not read this report (${a.status}).`);return a.json()}function R2(e,t){const[a,s]=B.useState({status:"loading",data:null,error:null});return B.useEffect(()=>{const c=new AbortController;let l=!0;const u=async()=>{try{const h=new URL("/api/operate/local-reviews",e);h.searchParams.set("page",String(t)),h.searchParams.set("pageSize","12");const A=_2(await Mj(h,c.signal));l&&s({status:"ready",data:A,error:null})}catch(h){l&&!c.signal.aborted&&s(A=>({status:"failed",data:A.data,error:h instanceof Error?h.message:"Review index unavailable."}))}};u();const f=window.setInterval(()=>void u(),2e3);return()=>{l=!1,c.abort(),window.clearInterval(f)}},[e,t]),a}function D2(e,t){const[a,s]=B.useState({status:"loading",data:null,error:null});return B.useEffect(()=>{if(!t){s({status:"loading",data:null,error:null});return}const c=new AbortController;let l=!0;const u=async()=>{try{const h=new URL(`/api/operate/local-reviews/${encodeURIComponent(t)}`,e),A=N2(await Mj(h,c.signal));l&&s({status:"ready",data:A,error:null})}catch(h){l&&!c.signal.aborted&&s(A=>({status:"failed",data:A.data,error:h instanceof Error?h.message:"Review unavailable."}))}};u();const f=window.setInterval(()=>void u(),2e3);return()=>{l=!1,c.abort(),window.clearInterval(f)}},[t,e]),a}function T2(e){const t=new Date(e);return Number.isNaN(t.valueOf())?"Updated recently":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(t)}function Mc(e,t){const a=new Map;return e.map(s=>{const c=t(s),l=(a.get(c)??0)+1;return a.set(c,l),Object.freeze({key:`${c}:${l}`,value:s})})}function $r({text:e}){const t=Mc(e.split(/(\*\*[^*]+\*\*|`[^`]+`)/gu),a=>a);return r.jsx(r.Fragment,{children:t.map(({key:a,value:s})=>s.startsWith("**")&&s.endsWith("**")?r.jsx("strong",{children:s.slice(2,-2)},a):s.startsWith("`")&&s.endsWith("`")?r.jsx("code",{children:s.slice(1,-1)},a):r.jsx(B.Fragment,{children:s},a))})}function k2(e){var c;const t=e.replace(/\r\n?/gu,`
|
|
531
|
-
`).split(`
|
|
532
|
-
`),a=[];let s=0;for(;s<t.length;){const l=t[s].trim();if(!l){s+=1;continue}const u=/^(#{1,3})\s+(.+)$/u.exec(l);if(u){a.push({kind:"heading",depth:u[1].length,text:u[2]}),s+=1;continue}if(l.startsWith("|")&&((c=t[s+1])!=null&&c.trim().match(/^\|?\s*:?-{3,}/u))){const h=[],A=y=>y.replace(/^\||\|$/gu,"").split("|").map(m=>m.trim());for(h.push(A(l)),s+=2;s<t.length&&t[s].trim().startsWith("|");)h.push(A(t[s].trim())),s+=1;a.push({kind:"table",rows:h});continue}if(/^[-*]\s+/u.test(l)){const h=[];for(;s<t.length&&/^[-*]\s+/u.test(t[s].trim());)h.push(t[s].trim().replace(/^[-*]\s+/u,"")),s+=1;a.push({kind:"list",items:h});continue}if(l.startsWith(">")){const h=[];for(;s<t.length&&t[s].trim().startsWith(">");)h.push(t[s].trim().replace(/^>\s?/u,"")),s+=1;a.push({kind:"quote",text:h.join(" ")});continue}const f=[l];for(s+=1;s<t.length&&t[s].trim()&&!/^(#{1,3})\s+/u.test(t[s].trim())&&!/^[-*]\s+/u.test(t[s].trim())&&!t[s].trim().startsWith("|")&&!t[s].trim().startsWith(">");)f.push(t[s].trim()),s+=1;a.push({kind:"paragraph",text:f.join(" ")})}return a}function M2({markdown:e}){const t=B.useMemo(()=>Mc(k2(e),a=>JSON.stringify(a)),[e]);return r.jsx("article",{className:"pc-local-review__report",children:t.map(({key:a,value:s})=>{if(s.kind==="heading")return s.depth===1?null:s.depth===2?r.jsx("h2",{children:r.jsx($r,{text:s.text})},a):r.jsx("h3",{children:r.jsx($r,{text:s.text})},a);if(s.kind==="paragraph")return r.jsx("p",{children:r.jsx($r,{text:s.text})},a);if(s.kind==="quote")return r.jsx("blockquote",{children:r.jsx($r,{text:s.text})},a);if(s.kind==="list")return r.jsx("ul",{children:s.items.map(u=>r.jsx("li",{children:r.jsx($r,{text:u})},u))},a);const[c,...l]=s.rows;return r.jsx("section",{className:"pc-local-review__table-wrap","aria-label":"Scrollable report table",children:r.jsxs("table",{children:[r.jsx("thead",{children:r.jsx("tr",{children:Mc(c,u=>u).map(({key:u,value:f})=>r.jsx("th",{children:r.jsx($r,{text:f})},u))})}),r.jsx("tbody",{children:Mc(l,u=>u.join("|")).map(({key:u,value:f})=>r.jsx("tr",{children:Mc(f,h=>h).map(({key:h,value:A})=>r.jsx("td",{children:r.jsx($r,{text:A})},h))},u))})]})},a)})})}function DA(e){return e.toUpperCase()==="P0"?"danger":e.toUpperCase()==="P1"?"warn":e.toUpperCase()==="P2"?"info":"neutral"}function G2({counts:e}){return r.jsxs("span",{className:"pc-local-review__counts",children:[r.jsxs("span",{children:[e.decisions," decisions"]}),r.jsxs("span",{children:[e.actions," actions"]}),r.jsxs("span",{children:[e.gaps," gaps"]}),r.jsxs("span",{children:[e.issues," issues"]})]})}function Gj({item:e}){const t=[["Decision queue",e.counts.decisions,"inbox"],["Proposed actions",e.counts.actions,"git-pull-request"],["Evidence gaps",e.counts.gaps,"circle-alert"],["Lenses reported",e.lenses.filter(a=>a.present).length,"layers"]];return r.jsx("section",{className:"pc-local-review__metrics","aria-label":"Cycle summary",children:t.map(([a,s,c])=>r.jsxs("div",{className:"pc-local-review__metric",children:[r.jsxs("span",{children:[r.jsx(Be,{name:c,size:14}),a]}),r.jsx("strong",{children:s})]},a))})}function Yj({item:e}){const t=e.decisions[0];return r.jsxs("section",{className:"pc-local-review__signal","aria-labelledby":"local-signal-title",children:[r.jsxs("div",{className:"pc-local-review__signal-copy",children:[r.jsxs("span",{className:"pc-local-review__kicker",children:[r.jsx("span",{className:"pc-local-review__signal-dot"}),"Board signal · ",e.signal]}),r.jsx("h2",{id:"local-signal-title",children:(t==null?void 0:t.title)??"Review the latest operating cycle"}),r.jsx("p",{children:(t==null?void 0:t.whyNow)||e.summary})]}),r.jsxs("div",{className:"pc-local-review__next-step",children:[r.jsx("span",{children:"First verified move"}),r.jsx("strong",{children:(t==null?void 0:t.firstStep)||"Open the cycle record and assign its next decision."}),r.jsxs("a",{href:"#/operate/inbox",children:["Open decision inbox ",r.jsx(Be,{name:"arrow-right",size:13})]})]})]})}function Y2({decision:e,compact:t=!1}){return r.jsxs("article",{className:"pc-local-review__decision","data-priority":e.priority.toLowerCase(),children:[r.jsxs("div",{className:"pc-local-review__decision-head",children:[r.jsx("span",{className:"pc-local-review__item-id",children:e.id}),r.jsx(Vn,{tone:DA(e.priority),variant:"outline",mono:!0,children:e.priority}),r.jsx("h3",{children:e.title})]}),r.jsx("p",{children:e.recommendation||e.whyNow}),r.jsxs("div",{className:"pc-local-review__decision-meta",children:[r.jsxs("span",{children:[r.jsx("b",{children:"Owner"}),e.owner]}),r.jsxs("span",{children:[r.jsx("b",{children:"Depends on"}),e.dependencies]})]}),t?null:r.jsxs("details",{children:[r.jsx("summary",{children:"Rationale and verification"}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Why now"}),r.jsx("dd",{children:e.whyNow||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"First step"}),r.jsx("dd",{children:e.firstStep||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Expected result"}),r.jsx("dd",{children:e.expectedResult||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Check"}),r.jsx("dd",{children:e.check||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Confidence"}),r.jsx("dd",{children:e.confidence})]}),e.dissent?r.jsxs("div",{children:[r.jsx("dt",{children:"Dissent"}),r.jsx("dd",{children:e.dissent})]}):null]})]})]})}function TA({decisions:e,limit:t}){const a=typeof t=="number"?e.slice(0,t):e;return a.length===0?r.jsx(Jt,{icon:"inbox",title:"No decisions recorded",description:"This cycle did not produce a decision queue."}):r.jsx("div",{className:"pc-local-review__decision-grid",children:a.map(s=>r.jsx(Y2,{decision:s,compact:typeof t=="number"},s.id))})}function kA({actions:e,limit:t}){const a=typeof t=="number"?e.slice(0,t):e;return a.length===0?r.jsx(Jt,{icon:"git-pull-request",title:"No actions recorded",description:"No action rows were found in this cycle."}):r.jsx("div",{className:"pc-local-review__action-list",children:a.map(s=>r.jsxs("a",{className:"pc-local-review__action",href:`#/operate/actions/${encodeURIComponent(s.id)}`,children:[r.jsx("span",{className:"pc-local-review__item-id",children:s.id}),r.jsxs("span",{className:"pc-local-review__action-copy",children:[r.jsx("strong",{children:s.action}),r.jsx("span",{children:s.firstStep}),r.jsx("small",{children:s.owner})]}),r.jsxs("span",{className:"pc-local-review__action-status",children:[r.jsx(Vn,{tone:DA(s.priority),variant:"outline",mono:!0,children:s.priority}),r.jsx(Vn,{tone:s.state==="needs-owner"?"warn":"neutral",children:s.state==="needs-owner"?"Needs owner":"Proposed"})]}),r.jsx(Be,{name:"chevron-right",size:14})]},s.id))})}function Hj({lenses:e}){return r.jsx("div",{className:"pc-local-review__lenses",children:e.map(t=>r.jsxs("article",{className:"pc-local-review__lens","data-present":t.present||void 0,children:[r.jsxs("div",{children:[r.jsx("span",{className:"pc-local-review__lens-mark",children:t.name.slice(0,2)}),r.jsxs("span",{children:[r.jsx("strong",{children:t.name}),r.jsxs("small",{children:[t.findings," ",t.name==="Challenger"?"exceptions":t.name==="Chair"?"decisions":"findings"]})]})]}),r.jsx(Vn,{tone:t.signal.includes("insufficient")||!t.present?"warn":t.name==="Challenger"?"info":"success",children:t.signal}),t.informed?r.jsx("p",{children:t.informed}):null]},t.name))})}function zu({items:e,icon:t="circle-alert"}){return e.length===0?r.jsx(Jt,{icon:t,title:"Nothing recorded",description:"No items were found in this section."}):r.jsx("div",{className:"pc-local-review__named-list",children:e.map(a=>r.jsxs("article",{children:[r.jsxs("span",{children:[r.jsx(Be,{name:t,size:14}),a.id]}),r.jsxs("div",{children:[r.jsx("h3",{children:a.title}),a.detail?r.jsx("p",{children:a.detail}):null]})]},a.id))})}function H2({evidence:e}){const[t,a]=B.useState(1),s=20,c=Math.max(1,Math.ceil(e.length/s)),l=Math.min(t,c),u=e.slice((l-1)*s,l*s);return e.length===0?r.jsx(Jt,{icon:"file-check",title:"No source references extracted",description:"The board report did not include path-addressable evidence."}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"pc-local-review__evidence-list",children:u.map(f=>r.jsxs("article",{children:[r.jsx("span",{className:"pc-local-review__item-id",children:f.id}),r.jsx("code",{children:f.reference}),r.jsx("span",{children:f.kind}),r.jsx(Vn,{tone:"success",icon:"check",children:f.freshness})]},f.id))}),c>1?r.jsxs("nav",{className:"pc-local-review__pagination","aria-label":"Evidence pages",children:[r.jsx(ua,{size:"sm",icon:"chevron-left",disabled:l===1,onClick:()=>a(l-1),children:"Previous"}),r.jsxs("span",{children:[e.length," references · page ",l," of ",c]}),r.jsx(ua,{size:"sm",iconAfter:"chevron-right",disabled:l===c,onClick:()=>a(l+1),children:"Next"})]}):null]})}function z2({items:e,history:t=!1}){return r.jsx("div",{className:"pc-local-review__list","data-history":t||void 0,children:e.map((a,s)=>{const c=e[s+1];return r.jsxs("a",{className:"pc-local-review__item",href:a.href,children:[r.jsx("span",{className:"pc-local-review__item-glyph",children:r.jsx(Be,{name:t?"history":"calendar-days",size:15})}),r.jsxs("span",{className:"pc-local-review__item-copy",children:[r.jsxs("span",{className:"pc-local-review__item-title",children:[r.jsx("strong",{children:a.title}),r.jsx(Vn,{tone:a.signal.includes("act")?"warn":"info",children:a.signal})]}),r.jsx("span",{children:a.summary}),r.jsx(G2,{counts:a.counts}),t&&c?r.jsxs("small",{children:[a.counts.actions-c.counts.actions>=0?"+":"",a.counts.actions-c.counts.actions," actions ·"," ",a.counts.gaps-c.counts.gaps>=0?"+":"",a.counts.gaps-c.counts.gaps," gaps from prior cycle"]}):null]}),r.jsx("span",{className:"pc-local-review__item-time",children:T2(a.updatedAt)}),r.jsx(Be,{name:"chevron-right",size:14})]},a.cycleId)})})}function $2({index:e,onPage:t}){return e.pagination.pageCount<=1?null:r.jsxs("nav",{className:"pc-local-review__pagination","aria-label":"Operating review pages",children:[r.jsx(ua,{size:"sm",icon:"chevron-left",disabled:e.pagination.page===1,onClick:()=>t(e.pagination.page-1),children:"Previous"}),r.jsxs("span",{children:["Page ",e.pagination.page," of ",e.pagination.pageCount]}),r.jsx(ua,{size:"sm",iconAfter:"chevron-right",disabled:e.pagination.page===e.pagination.pageCount,onClick:()=>t(e.pagination.page+1),children:"Next"})]})}function la({title:e,description:t,action:a,children:s}){return r.jsxs("section",{className:"pc-local-review__section",children:[r.jsxs("header",{children:[r.jsxs("div",{children:[r.jsx("h2",{children:e}),t?r.jsx("p",{children:t}):null]}),a]}),s]})}function cb({item:e}){return r.jsxs(r.Fragment,{children:[r.jsx(Yj,{item:e}),r.jsx(Gj,{item:e}),r.jsxs("div",{className:"pc-local-review__split",children:[r.jsx(la,{title:"Priority decisions",description:"Recommendations waiting for owner disposition.",action:r.jsx("a",{href:"#/operate/inbox",children:"View all"}),children:r.jsx(TA,{decisions:e.decisions,limit:2})}),r.jsx(la,{title:"Lens coverage",description:"Independent perspectives and where they converged.",children:r.jsx(Hj,{lenses:e.lenses})})]}),r.jsx(la,{title:"Next actions",description:"Concrete first steps extracted from the Chair action plan.",action:r.jsx("a",{href:"#/operate/actions",children:"Open register"}),children:r.jsx(kA,{actions:e.actions,limit:4})}),r.jsx(la,{title:"Uncertainty to resolve",description:"Evidence gaps that can change the decision order.",action:r.jsx("a",{href:"#/operate/evidence",children:"Inspect evidence"}),children:r.jsx(zu,{items:e.gaps.slice(0,3)})})]})}function U2({item:e}){return r.jsxs(r.Fragment,{children:[r.jsx(qt,{tone:"info",title:"Recommendations require human disposition",children:"This local cycle can inform a choice, but it cannot approve work or run commands. Assign and decide through the governed Operate gateway when available."}),r.jsxs("div",{className:"pc-local-review__inbox-summary",children:[r.jsxs("span",{children:[r.jsx("b",{children:e.decisions.length})," decisions waiting"]}),r.jsxs("span",{children:[r.jsx("b",{children:e.actions.filter(t=>t.state==="needs-owner").length})," ownership gaps"]}),r.jsxs("span",{children:[r.jsx("b",{children:e.gaps.length})," evidence gaps"]})]}),r.jsx(TA,{decisions:e.decisions}),r.jsx(la,{title:"Decision-changing gaps",description:"Resolve these before confidence is treated as durable.",children:r.jsx(zu,{items:e.gaps})})]})}function L2({item:e,actionId:t}){const a=e.actions.find(s=>s.id===t);return a?r.jsx(At,{padding:0,children:r.jsxs("article",{className:"pc-local-review__action-detail",children:[r.jsxs("header",{children:[r.jsx("span",{className:"pc-local-review__item-id",children:a.id}),r.jsx(Vn,{tone:DA(a.priority),variant:"outline",children:a.priority}),r.jsx(Vn,{tone:a.state==="needs-owner"?"warn":"neutral",children:a.state==="needs-owner"?"Needs owner":"Proposed"})]}),r.jsx("h2",{children:a.action}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Suggested owner"}),r.jsx("dd",{children:a.owner})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"First step"}),r.jsx("dd",{children:a.firstStep})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Success measure"}),r.jsx("dd",{children:a.successMeasure})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Verification"}),r.jsx("dd",{children:a.check})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Dependencies"}),r.jsx("dd",{children:a.dependencies})]})]}),r.jsx(qt,{tone:"info",title:"Read-only proposal",children:"Execution state begins only after this proposal is accepted through an actor-bound Operate session."})]})}):r.jsxs(qt,{tone:"warn",title:"Action not found",children:["This cycle does not contain ",t,"."]})}function P2({item:e}){return r.jsxs(r.Fragment,{children:[r.jsx(qt,{tone:"info",title:"Expected outcomes, awaiting observed evidence",children:"The local review defines success and checks. It does not claim these outcomes occurred."}),r.jsx("div",{className:"pc-local-review__outcomes",children:e.decisions.map(t=>r.jsxs("article",{children:[r.jsxs("header",{children:[r.jsx("span",{className:"pc-local-review__item-id",children:t.id}),r.jsx(Vn,{tone:"neutral",children:"Awaiting evidence"})]}),r.jsx("h3",{children:t.expectedResult||t.title}),r.jsxs("div",{children:[r.jsx("span",{children:"Verification"}),r.jsx("p",{children:t.check||"No check recorded."})]})]},t.id))})]})}function F2({item:e}){const{recovery:t}=e;return r.jsxs(r.Fragment,{children:[r.jsxs("section",{className:"pc-local-review__integrity","data-complete":t.complete||void 0,children:[r.jsx("span",{children:r.jsx(Be,{name:t.complete?"shield":"triangle-alert",size:20})}),r.jsxs("div",{children:[r.jsx("small",{children:"Local cycle integrity"}),r.jsx("h2",{children:t.complete?"Complete review bundle detected":"Review bundle is incomplete"}),r.jsxs("p",{children:[t.presentFiles.length," readable files · ",Math.ceil(t.totalBytes/1024)," ","KB · ",t.custody]})]}),r.jsx(Vn,{tone:t.complete?"success":"warn",children:t.complete?"Complete":"Attention"})]}),r.jsxs("div",{className:"pc-local-review__recovery-grid",children:[r.jsx(la,{title:"Present records",children:r.jsx("div",{className:"pc-local-review__file-grid",children:t.presentFiles.map(a=>r.jsxs("span",{children:[r.jsx(Be,{name:"file-check",size:13}),a]},a))})}),r.jsx(la,{title:"Missing records",children:r.jsx("div",{className:"pc-local-review__file-grid",children:t.missingFiles.length?t.missingFiles.map(a=>r.jsxs("span",{children:[r.jsx(Be,{name:"circle-alert",size:13}),a]},a)):r.jsx("p",{className:"pc-local-review__muted",children:"No required review records are missing."})})})]}),r.jsx(la,{title:"Recorded issues",description:"Cycle limitations and tooling defects preserved with the report.",children:r.jsx(zu,{items:e.issues,icon:"triangle-alert"})})]})}function V2({item:e}){return r.jsxs(r.Fragment,{children:[r.jsxs("nav",{className:"pc-local-review__cycle-nav","aria-label":"Cycle sections",children:[r.jsxs("a",{href:"#/operate/inbox",children:[r.jsx(Be,{name:"inbox",size:13}),"Decisions"]}),r.jsxs("a",{href:"#/operate/actions",children:[r.jsx(Be,{name:"git-pull-request",size:13}),"Actions"]}),r.jsxs("a",{href:"#/operate/evidence",children:[r.jsx(Be,{name:"file-check",size:13}),"Evidence"]}),r.jsxs("a",{href:"#/operate/outcomes",children:[r.jsx(Be,{name:"flag",size:13}),"Outcomes"]})]}),r.jsx(Yj,{item:e}),r.jsx(Gj,{item:e}),r.jsx(la,{title:"Review coverage",description:"What each lens contributed to the Chair synthesis.",children:r.jsx(Hj,{lenses:e.lenses})}),r.jsx(la,{title:"Decision record",children:r.jsx(TA,{decisions:e.decisions})}),r.jsx(la,{title:"Action plan",children:r.jsx(kA,{actions:e.actions})}),r.jsx(la,{title:"Risks and dissent",description:"Challenges retained rather than flattened into consensus.",children:r.jsx(zu,{items:e.risks,icon:"circle-alert"})}),r.jsxs("details",{className:"pc-local-review__full-report",children:[r.jsxs("summary",{children:[r.jsxs("span",{children:[r.jsx(Be,{name:"scroll-text",size:15}),"Full board report"]}),r.jsx("span",{children:"Audit record"})]}),r.jsx(M2,{markdown:e.markdown})]})]})}function q2({item:e,evidenceId:t}){const a=e.evidence.find(s=>s.id===t);return a?r.jsx(At,{children:r.jsxs("article",{className:"pc-local-review__evidence-detail",children:[r.jsx(Vn,{tone:"success",icon:"check",children:a.freshness}),r.jsxs("h2",{children:[a.id," · ",a.kind]}),r.jsx("code",{children:a.reference}),r.jsx("p",{children:"This source reference was captured by the completed local cycle. OpenPlanr has not re-read the target to claim current freshness."})]})}):r.jsxs(qt,{tone:"warn",title:"Evidence not found",children:["This cycle does not contain ",t,"."]})}function K2({route:e,item:t}){switch(e.kind){case"operate.today":return r.jsx(cb,{item:t});case"operate.inbox":return r.jsx(U2,{item:t});case"operate.actions":return r.jsx(kA,{actions:t.actions});case"operate.action":return r.jsx(L2,{item:t,actionId:e.subjectId});case"operate.evidence":return r.jsx(H2,{evidence:t.evidence});case"operate.evidence-item":return r.jsx(q2,{item:t,evidenceId:e.subjectId});case"operate.outcomes":return r.jsx(P2,{item:t});case"operate.recovery":return r.jsx(F2,{item:t});case"operate.cycle":case"operate.review":return r.jsx(V2,{item:t});default:return r.jsx(cb,{item:t})}}function lb(){return r.jsx(At,{children:r.jsx(Jt,{icon:"calendar-days",title:"No completed local reviews yet",description:"Complete an Operate review in your agent host. This read-only console refreshes when a board report is completed."})})}const J2={"operate.today":["Operate today","The current signal, priority choices, action load, and independent lens coverage."],"operate.inbox":["Decision inbox","Recommendations, ownership gaps, and evidence questions waiting for attention."],"operate.actions":["Action register","Proposed work with owners, first steps, success measures, and verification."],"operate.cycles":["Operating cycles","Completed local reviews, grouped as durable read-only records."],"operate.evidence":["Evidence register","Source locations captured by the current cycle, with explicit freshness."],"operate.outcomes":["Outcome tracking","Expected effects and verification checks, separated from observed results."],"operate.history":["Operating history","Cycle chronology and change from the prior review."],"operate.recovery":["Cycle integrity","Readable records, missing inputs, custody, and known review issues."],"operate.action":["Action detail","The exact local proposal, owner, first step, measure, and check."],"operate.evidence-item":["Evidence detail","The exact source reference and its freshness boundary."]};function Z2({route:e,origin:t}){var b,w;const[a,s]=B.useState(1),c=R2(t,a),l=c.data??S2,u=e.kind==="operate.cycles"||e.kind==="operate.history",f=e.kind==="operate.cycle"||e.kind==="operate.review"?e.kind==="operate.review"?e.cycleId:e.subjectId:u?null:((b=l.items[0])==null?void 0:b.cycleId)??null,h=D2(t,f),A=((w=h.data)==null?void 0:w.item)??null,y=J2[e.kind],m=e.kind==="operate.cycle"||e.kind==="operate.review"?(A==null?void 0:A.title)??(e.kind==="operate.review"?e.cycleId:e.subjectId):(y==null?void 0:y[0])??"Operate",E=e.kind==="operate.cycle"||e.kind==="operate.review"?"Structured decisions, action plan, lens coverage, dissent, and the full audit record.":(y==null?void 0:y[1])??"Completed local operating review.";return r.jsxs("div",{className:"pc-shell__scroll pc-local-review","data-route-kind":e.kind,children:[r.jsx(st,{eyebrow:"planr-operate · local",title:m,count:u?l.pagination.total:void 0,description:E,actions:r.jsx(Vn,{tone:"info",variant:"outline",icon:"lock",children:"Read-only"})}),c.status==="failed"?r.jsx(qt,{tone:"warn",title:"Local reviews could not refresh",children:c.error}):null,u?c.status==="loading"&&!c.data?r.jsx(uo,{count:3}):l.items.length?r.jsxs(r.Fragment,{children:[r.jsx(z2,{items:l.items,history:e.kind==="operate.history"}),r.jsx($2,{index:l,onPage:s})]}):r.jsx(lb,{}):!f&&c.status==="loading"?r.jsx(uo,{count:2}):f?h.status==="loading"&&!A?r.jsx(uo,{count:3}):A?r.jsxs(r.Fragment,{children:[h.status==="failed"?r.jsx(qt,{tone:"warn",title:"Showing the last readable review",children:h.error}):null,r.jsx(K2,{route:e,item:A})]}):r.jsx(qt,{tone:"warn",title:"This local review is unavailable",children:h.error??"The report was not found."}):r.jsx(lb,{}),r.jsxs("div",{className:"pc-local-review__footnote",children:[r.jsx(Be,{name:"lock",size:12})," Local projections are review records. Approval and execution require an actor-bound Operate session."]})]})}const X2=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"}),W2=Object.freeze({"read-only":"This plan is available to review, but changes are not available here.",stale:"This plan may be out of date.",partial:"Some planning information is unavailable.",blocked:"Planning information is temporarily unavailable.",offline:"You’re viewing the last available Planning information. Reconnect before checking again."}),eM=Object.freeze(["#/overview","#/graph","#/board","#/list","#/sprints","#/activity","#/search"]);function tM(e){try{const t=Ve(e),a=eM.includes(t.route),s=t.subjectId!==null&&(t.route===`#/detail/${encodeURIComponent(t.subjectId)}`||t.route===`#/plan/specs/${encodeURIComponent(t.subjectId)}`);return t.productArea==="planning"&&(a||s)&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function zj(e){if(typeof e!="object"||e===null||!Object.isFrozen(e))return null;const t=Reflect.get(e,"kind"),a=Reflect.get(e,"graph");if(t!=="planning-graph-snapshot"||typeof a!="object"||a===null)return null;const s=Reflect.get(a,"nodes"),c=Reflect.get(a,"edges");return!Array.isArray(s)||!Array.isArray(c)?null:e}function $j(e){if(!Pe(e)||e.data===null)return Object.freeze([]);const t=zj(e.data);return Object.freeze(t?[...t.graph.nodes]:[])}function Br(e,t){const a=tM(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a))return null;const s=X2[e.kind],c=zj(e.data);return s===void 0||c===null?null:Object.freeze({envelope:c,graph:c.graph,presentation:s,binding:e.binding,readOnly:!0,mutationEnabled:!1})}function us({presentation:e}){return e==="ready"?null:r.jsxs("p",{className:"op-planning-notice",role:"status",children:[W2[e]," ",r.jsx("a",{className:"op-inline-action",href:"#/overview",children:"Open Planning overview"})]})}function fs({routeKind:e,title:t}){return r.jsx("div",{className:"op-workspace op-planning","data-route-kind":e,children:r.jsx(be,{state:"incompatible",eyebrow:"Planning unavailable",title:t,description:"We could not verify the Planning information for this view, so it is not shown.",actions:r.jsx("a",{className:"op-inline-action",href:"#/overview",children:"Return to Planning overview"})})})}const nM=Object.freeze(["route","planning","operate"]),db=Object.freeze({route:"Go to",planning:"Planning work",operate:"Operate items"}),aM=Object.freeze({route:"chevron-right",planning:"corner-down-right",operate:"gauge"});function ub(e){const t=e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function iM(e){const t={route:[],planning:[],operate:[]};for(const a of e)t[a.source].push(a);return Object.freeze({route:Object.freeze(t.route),planning:Object.freeze(t.planning),operate:Object.freeze(t.operate)})}function Uj({hits:e,unsupported:t=Object.freeze([]),activeHref:a,listId:s,onSelect:c}){const l=iM(e),u=e.length>0,f=t.length>0;return!u&&!f?r.jsx("p",{className:"pc-palette__empty",role:"status",children:"No matches. Try a view name or an item id like US-001."}):r.jsxs("div",{className:"pc-palette__results",children:[nM.map(h=>{const A=l[h];return A.length===0?null:r.jsxs("section",{className:"pc-palette__group","aria-labelledby":`${s}-${h}-heading`,children:[r.jsx("h2",{id:`${s}-${h}-heading`,className:"pc-palette__group-title",children:db[h]}),r.jsx("ol",{className:"pc-palette__list","aria-label":db[h],children:A.map((y,m)=>{const E=y.href===a;return r.jsx("li",{children:r.jsxs("button",{type:"button",className:"pc-palette__row","data-active":E?"true":"false","aria-current":E?"true":void 0,onClick:()=>c(y),children:[r.jsx(Be,{name:aM[h],size:14}),r.jsx("span",{className:"pc-palette__row-title",children:y.title}),r.jsx("span",{className:"pc-palette__row-hint",children:ub(y.kind)})]})},`${y.id}:${m}`)})})]},h)}),f?r.jsxs("section",{className:"pc-palette__group","aria-labelledby":`${s}-unsupported-heading`,children:[r.jsx("h2",{id:`${s}-unsupported-heading`,className:"pc-palette__group-title",children:"Unavailable destinations"}),r.jsx("ol",{className:"pc-palette__list","aria-label":"Unavailable destinations",children:t.map((h,A)=>r.jsx("li",{children:r.jsxs("div",{className:"pc-palette__row","aria-disabled":"true",children:[r.jsx(Be,{name:"circle-slash",size:14}),r.jsx("span",{className:"pc-palette__row-title",children:h.title}),r.jsxs("span",{className:"pc-palette__row-hint",children:[ub(h.kind)," · ",h.reason]})]})},`${h.id}:${A}`))})]}):null]})}function rM(e){return Oo(e)}function sM(){return Object.freeze(Tw.filter(e=>e.navigation!=="hidden").map(e=>{const t=Oo(e.href);return t===null?null:Object.freeze({kind:e.kind,product:e.product,title:e.label,href:t})}).filter(e=>e!==null))}const Kc=".planr",oM="openplanr",$u=Object.freeze([Object.freeze({id:"epic",label:"Epic",plural:"Epics"}),Object.freeze({id:"feature",label:"Feature",plural:"Features"}),Object.freeze({id:"story",label:"Story",plural:"Stories"}),Object.freeze({id:"task",label:"Task",plural:"Tasks"}),Object.freeze({id:"spec",label:"Spec",plural:"Specs"}),Object.freeze({id:"backlog",label:"Backlog",plural:"Backlog"}),Object.freeze({id:"quick",label:"Quick",plural:"Quick tasks"}),Object.freeze({id:"sprint",label:"Sprint",plural:"Sprints"}),Object.freeze({id:"adr",label:"ADR",plural:"ADRs"})]),cM=new Map($u.map((e,t)=>[e.id,t])),lM=new Map($u.map(e=>[e.id,e.label])),dM=new Map($u.map(e=>[e.id,e.plural])),uM=Object.freeze([Object.freeze({id:"outstanding",label:"Outstanding"}),Object.freeze({id:"in-progress",label:"In progress"}),Object.freeze({id:"blocked",label:"Blocked"}),Object.freeze({id:"done",label:"Done"}),Object.freeze({id:"addressed",label:"Addressed"})]),fM=new Map(uM.map(e=>[e.id,e.label])),Qg=Object.freeze(["outstanding","in-progress","blocked","done"]),pM=Object.freeze({blocked:"blocked",done:"done","in-progress":"in progress",outstanding:"outstanding",addressed:"addressed"});function Lj(e){const t=e.trim();return t?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:"Item"}function fb(e){return cM.get(e)??$u.length}function hM(e){return lM.get(e)??Lj(e)}function gM(e){return dM.get(e)??hM(e)}function Pj(e){return fM.get(e)??(e||"Unknown")}function Ut(e){if(e==null)return"";if(typeof e=="string"){const s=e.lastIndexOf("/");return s>=0?e.slice(s+1):e}const t=e.frontmatter.id;if(t!=null&&t!=="")return String(t);const a=e.id.lastIndexOf("/");return a>=0?e.id.slice(a+1):e.id}function Fj(e){return e.frontmatter.sprintId??e.frontmatter.sprint??""}function AM(e,t=Object.freeze({})){const a=t.typeFilter??[],s=t.statusFilter??null,c=typeof t.search=="string"?t.search.trim().toLowerCase():"";return Object.freeze(e.filter(l=>!(a.length>0&&!a.includes(l.type)||s!==null&&l.status!==s||c&&!`${l.id} ${Ut(l)} ${l.title}`.toLowerCase().includes(c))))}function pb(e,t){switch(t){case"id":return e.id;case"title":return e.title;case"type":return e.type;case"status":return pM[e.status]??e.status;case"sprint":return String(Fj(e))}}function mM(e,t="id",a="asc"){const s=a==="desc"?-1:1;return Object.freeze(e.map((c,l)=>({node:c,index:l})).sort((c,l)=>{const u=pb(c.node,t).localeCompare(pb(l.node,t),void 0,{numeric:!0,sensitivity:"base"});return u!==0?u*s:c.index-l.index}).map(({node:c})=>c))}function Vj(e){let t=0,a=0,s=0,c=0;for(const l of e)l.status==="done"||l.status==="addressed"?c+=1:l.status==="in-progress"?a+=1:l.status==="blocked"?s+=1:t+=1;return Object.freeze({outstanding:t,inProgress:a,blocked:s,done:c})}function qj(e){const{frontmatter:t}=e;if(typeof t.specScope=="string"&&t.specScope)return t.specScope;if(typeof t.specId=="string"&&t.specId)return t.specId;const a=e.id.indexOf("/");if(a>=0){const s=e.id.slice(0,a);if(/^SPEC-/iu.test(s))return s}if(e.type==="spec"){const s=t.id!=null&&t.id!==""?t.id:e.id;return s==null||s===""?null:String(s)}return null}function yM(e){const t=new Set;for(const a of e){const s=qj(a);s&&t.add(s)}return Object.freeze([...t].sort((a,s)=>a.localeCompare(s,void 0,{numeric:!0,sensitivity:"base"})))}function Kj(e){return e==="addressed"?"done":Qg.includes(e)?e:"outstanding"}function Jj(e,t){const{frontmatter:a}=e;switch(t){case"status":return Kj(e.status);case"type":return e.type||"unknown";case"sprint":return String(Fj(e)||"");case"feature":return a.featureId==null?"":String(a.featureId);case"epic":return a.epicId==null?"":String(a.epicId);case"spec":return qj(e)??"";default:return a[t]==null?"":String(a[t])}}function EM(e){switch(e){case"status":return"Status";case"type":return"Type";case"sprint":return"Sprint";case"feature":return"Feature";case"epic":return"Epic";case"spec":return"Spec";default:return Lj(e||"Group")}}function BM(e){const t=[];e.length>0&&(t.push(Object.freeze({key:"status",label:"Status"})),t.push(Object.freeze({key:"type",label:"Type"})));const a=s=>e.some(c=>Jj(c,s)!=="");return a("sprint")&&t.push(Object.freeze({key:"sprint",label:"Sprint"})),a("feature")&&t.push(Object.freeze({key:"feature",label:"Feature"})),a("epic")&&t.push(Object.freeze({key:"epic",label:"Epic"})),yM(e).length>0&&t.push(Object.freeze({key:"spec",label:"Spec"})),Object.freeze(t)}function vM(e,t){return t?e==="status"?Pj(t):e==="type"?gM(t):t:`No ${EM(e).toLowerCase()}`}function bM(e,t){var c;if(t==="status"){const l=new Map(Qg.map(u=>[u,[]]));for(const u of e)(c=l.get(Kj(u.status)))==null||c.push(u);return Object.freeze(Qg.map(u=>Object.freeze({key:u,label:Pj(u),nodes:Object.freeze(l.get(u)??[])})))}const a=new Map;for(const l of e){const u=Jj(l,t),f=a.get(u);f?f.push(l):a.set(u,[l])}let s;return t==="type"?s=[...a.keys()].sort((l,u)=>fb(l)-fb(u)||l.localeCompare(u)):(s=[...a.keys()].filter(l=>l!=="").sort((l,u)=>l.localeCompare(u,void 0,{numeric:!0,sensitivity:"base"})),a.has("")&&s.push("")),Object.freeze(s.map(l=>Object.freeze({key:l,label:vM(t,l),nodes:Object.freeze(a.get(l)??[])})))}function ou(e){return String(e??"").toLowerCase().replace(/\s+/gu," ").trim()}function Ig(e){const t=ou(e);if(!t)return Object.freeze([]);if(t.length<3)return Object.freeze([t]);const a=[];for(let s=0;s<=t.length-3;s+=1)a.push(t.slice(s,s+3));return Object.freeze(a)}function Zj(e){const t=new Map,a=new Map;for(const c of e){t.set(c.id,c);const l=new Set([...Ig(c.id),...Ig(c.title)]);for(const u of l){const f=a.get(u);f?f.add(c.id):a.set(u,new Set([c.id]))}}const s=new Map([...a].map(([c,l])=>[c,new Set(l)]));return Object.freeze({nodes:Object.freeze([...e]),byId:t,postings:s})}function Xj(e,t,a=20){const s=ou(t);if(!s||!Number.isSafeInteger(a)||a<0)return Object.freeze([]);const c=Ig(s),l=new Map;for(const u of c){const f=e.postings.get(u);if(f)for(const h of f)l.set(h,(l.get(h)??0)+1)}for(const u of e.nodes)`${ou(u.id)} ${ou(u.title)}`.includes(s)&&l.set(u.id,(l.get(u.id)??0)+c.length+1);return Object.freeze([...l].sort(([u,f],[h,A])=>A-f||u.localeCompare(h)).slice(0,a).map(([u])=>e.byId.get(u)).filter(u=>u!==void 0))}function wM(e){for(let t=0;t<e.length;t+=1){const a=e.charCodeAt(t);if(a>=55296&&a<=56319){const s=e.charCodeAt(t+1);if(!(s>=56320&&s<=57343))return!0;t+=1}else if(a>=56320&&a<=57343)return!0}return!1}function Wj(e){const t=typeof e=="string"?e:e.id;if(!t||wM(t))return null;let a="";for(const s of new TextEncoder().encode(t)){const c=String.fromCharCode(s);a+=/^[A-Za-z0-9._-]$/u.test(c)?c:`:${s.toString(16).toUpperCase().padStart(2,"0")}`}return a}function xM(e){const t=[];for(let a=0;a<e.length;a+=1){const s=e[a];if(s!==":"){if(!/^[A-Za-z0-9._-]$/u.test(s))return null;t.push(s.charCodeAt(0));continue}const c=e.slice(a+1,a+3);if(!/^[0-9A-F]{2}$/u.test(c))return null;t.push(Number.parseInt(c,16)),a+=2}try{const a=new TextDecoder("utf-8",{fatal:!0}).decode(new Uint8Array(t));return a&&Wj(a)===e?a:null}catch{return null}}function Uu(e){const t=Wj(e);return t===null?null:Oo(`#/detail/${encodeURIComponent(t)}`)}function jM(e){const t=[];for(const a of String(e??"").split(`
|
|
533
|
-
`)){const s=a.match(/^\s*[-*+]\s+\[([ xX])\]\s+(.*)$/u);s&&t.push(Object.freeze({text:s[2].trim(),done:s[1].toLowerCase()==="x"}))}return Object.freeze(t)}function QM(e){const t=[];let a=!1;for(const s of String(e??"").split(`
|
|
534
|
-
`)){const c=s.match(/^#{2,6}\s+(.*)$/u);if(c){a=/acceptance criteria/iu.test(c[1]);continue}if(!a||/^\s*[-*+]\s+\[[ xX]\]/u.test(s))continue;const l=s.match(/^\s*[-*+]\s+(.*)$/u);l!=null&&l[1].trim()&&t.push(l[1].trim())}return Object.freeze(t)}function IM(e){if(Array.isArray(e))return e.map(t=>String(t)).join(", ");if(e!==null&&typeof e=="object")try{return JSON.stringify(e)}catch{return String(e)}return String(e)}const CM=new Set(["id","title","type","status","body"]);function SM(e){const t={};for(const[u,f]of Object.entries(e.frontmatter))CM.has(u)||f==null||(t[u]=IM(f));const a=e.frontmatter.dependsOn,s=Array.isArray(a)?a.map(u=>String(u)):[],c=e.frontmatter.shipRef,l=e.frontmatter.qaRef;return Object.freeze({header:Object.freeze({id:e.id,title:e.title,type:e.type,status:e.status}),meta:Object.freeze(t),criteria:QM(e.body),subtasks:jM(e.body),depIds:Object.freeze(s),...c!=null&&c!==""?{shipRef:String(c)}:{},...l!=null&&l!==""?{qaRef:String(l)}:{}})}function Cg(e,t,a,s,c){if(a==null)return null;const l=rM(a);return l===null?null:Object.freeze({id:e,title:t,href:l,source:s,kind:c})}function OM(e){if(!e)return Object.freeze([]);const t=[];for(const a of e){const s=Cg(`operate:${a.kind}:${a.subjectId}`,a.title,a.deepLink,"operate",a.kind);s&&t.push(s)}return Object.freeze(t)}function _M(e=Object.freeze({})){const t=Object.freeze([...e.planningNodes??[]]),a=OM(e.operateResults);return Object.freeze({routes:sM(),planningNodes:t,operateHits:a})}function hb(e,t){return e.toLowerCase().includes(t)}function NM(e,t,a=20){const s=t.trim().toLowerCase();if(!s||!Number.isSafeInteger(a)||a<0)return Object.freeze([]);const c=[];for(const u of e.routes)if(hb(`${u.title} ${u.kind} ${u.href}`,s)){const f=Cg(`route:${u.kind}`,u.title,u.href,"route",u.kind);f&&c.push(f)}for(const u of Xj(Zj(e.planningNodes),t,a)){const f=Cg(`planning:${u.id}`,u.title,Uu(u),"planning",u.type);f&&c.push(f)}for(const u of e.operateHits)hb(`${u.title} ${u.kind} ${u.id}`,s)&&c.push(u);const l=new Set;return Object.freeze(c.filter(u=>l.has(u.href)?!1:(l.add(u.href),!0)).slice(0,a))}function RM(e,t,a=20){if(!t.trim().toLowerCase()||!Number.isSafeInteger(a)||a<0)return Object.freeze([]);const c=[];for(const l of Xj(Zj(e.planningNodes),t,a))Uu(l)===null&&c.push(Object.freeze({id:l.id,title:l.title,kind:l.type,reason:"This artifact identity cannot be opened through the closed dashboard grammar."}));return Object.freeze(c.slice(0,a))}function mu(e){const t=Object.freeze([...e]);return Object.freeze({items:t,activeIndex:-1,moveDown(){const s=this.activeIndex<this.items.length-1?this.activeIndex+1:this.activeIndex;return yu(this.items,s)},moveUp(){const s=this.activeIndex>0?this.activeIndex-1:this.activeIndex;return yu(this.items,s)},reset(s){return mu(s)},getActive(){return this.activeIndex>=0&&this.activeIndex<this.items.length?this.items[this.activeIndex]??null:null}})}function yu(e,t){const a=Object.freeze([...e]);return Object.freeze({items:a,activeIndex:t,moveDown(){const s=t<a.length-1?t+1:t;return yu(a,s)},moveUp(){const s=t>0?t-1:t;return yu(a,s)},reset(s){return mu(s)},getActive(){return t>=0&&t<a.length?a[t]??null:null}})}const DM=e=>e===null?"null":Array.isArray(e)?"array":Number.isInteger(e)?"integer":typeof e=="number"?"number":typeof e,TM=(e,t)=>t==="integer"?Number.isInteger(e):t==="number"?typeof e=="number":t==="string"?typeof e=="string":t==="boolean"?typeof e=="boolean":t==="null"?e===null:t==="array"?Array.isArray(e):t==="object"?e!==null&&typeof e=="object"&&!Array.isArray(e):!1,kM=/^\d{4}-\d{2}-\d{2}$/,MM=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;function GM(e,t){return t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}const Gn=(e,t,a,s,c)=>{if(t!==!0){if(t===!1){s.push({path:a,rule:"schema:false",detail:"value not allowed"});return}if(typeof(t==null?void 0:t.$ref)=="string"){const l=t.$ref;let u,f=c.rootSchema,h=c.base;if(l.startsWith("#"))u=GM(c.rootSchema,l);else if(typeof c.resolveRef=="function"){const y=c.resolveRef(l,{base:c.base});u=(y==null?void 0:y.schema)??y,f=(y==null?void 0:y.rootSchema)??u,h=(y==null?void 0:y.base)??(u==null?void 0:u.$id)??c.base}if(!u){s.push({path:a,rule:"$ref",detail:`could not resolve schema reference ${l}`});return}const A=`${c.base??"<root>"}:${l}`;if(c.referenceStack.includes(A)){s.push({path:a,rule:"$ref",detail:`circular schema reference ${l}`});return}Gn(e,u,a,s,{...c,rootSchema:f,base:h,referenceStack:[...c.referenceStack,A]})}if(t.type!==void 0){const l=Array.isArray(t.type)?t.type:[t.type];if(!l.some(u=>TM(e,u))){s.push({path:a,rule:"type",detail:`expected ${l.join("|")}, got ${DM(e)}`});return}}if(t.const!==void 0&&e!==t.const&&s.push({path:a,rule:"const",detail:`expected ${JSON.stringify(t.const)}, got ${JSON.stringify(e)}`}),Array.isArray(t.enum)&&(t.enum.includes(e)||s.push({path:a,rule:"enum",detail:`value ${JSON.stringify(e)} not in enum [${t.enum.map(l=>JSON.stringify(l)).join(", ")}]`})),typeof e=="string"){if(typeof t.minLength=="number"&&e.length<t.minLength&&s.push({path:a,rule:"minLength",detail:`length ${e.length} < ${t.minLength}`}),typeof t.maxLength=="number"&&e.length>t.maxLength&&s.push({path:a,rule:"maxLength",detail:`length ${e.length} > ${t.maxLength}`}),typeof t.pattern=="string")try{new RegExp(t.pattern).test(e)||s.push({path:a,rule:"pattern",detail:`value ${JSON.stringify(e)} does not match /${t.pattern}/`})}catch(l){s.push({path:a,rule:"pattern",detail:`invalid regex /${t.pattern}/: ${l instanceof Error?l.message:String(l)}`})}typeof t.format=="string"&&(t.format==="date"&&!kM.test(e)?s.push({path:a,rule:"format:date",detail:`value ${JSON.stringify(e)} is not YYYY-MM-DD`}):t.format==="date-time"&&!MM.test(e)&&s.push({path:a,rule:"format:date-time",detail:`value ${JSON.stringify(e)} is not ISO 8601 date-time`}))}if(typeof e=="number"&&(typeof t.minimum=="number"&&e<t.minimum&&s.push({path:a,rule:"minimum",detail:`value ${e} < ${t.minimum}`}),typeof t.maximum=="number"&&e>t.maximum&&s.push({path:a,rule:"maximum",detail:`value ${e} > ${t.maximum}`})),Array.isArray(e)){typeof t.minItems=="number"&&e.length<t.minItems&&s.push({path:a,rule:"minItems",detail:`length ${e.length} < ${t.minItems}`}),typeof t.maxItems=="number"&&e.length>t.maxItems&&s.push({path:a,rule:"maxItems",detail:`length ${e.length} > ${t.maxItems}`});const l=Array.isArray(t.prefixItems)?t.prefixItems.length:0;if(l>0)for(let u=0;u<Math.min(e.length,l);u++)Gn(e[u],t.prefixItems[u],`${a}[${u}]`,s,c);if(t.items!==void 0)for(let u=l;u<e.length;u++)Gn(e[u],t.items,`${a}[${u}]`,s,c);if(t.uniqueItems===!0){const u=new Set;for(const f of e){const h=JSON.stringify(f);if(u.has(h)){s.push({path:a,rule:"uniqueItems",detail:`duplicate item ${h}`});break}u.add(h)}}if(t.contains!==void 0){let u=0;for(let A=0;A<e.length;A+=1){const y=[];Gn(e[A],t.contains,`${a}[${A}]`,y,c),y.length===0&&(u+=1)}const f=Number.isSafeInteger(t.minContains)?t.minContains:1,h=Number.isSafeInteger(t.maxContains)?t.maxContains:null;u<f&&s.push({path:a,rule:"contains",detail:`matched ${u} contained items; expected at least ${f}`}),h!==null&&u>h&&s.push({path:a,rule:"contains",detail:`matched ${u} contained items; expected at most ${h}`})}}if(e!==null&&typeof e=="object"&&!Array.isArray(e)){if(Array.isArray(t.required))for(const u of t.required)Object.hasOwn(e,u)||s.push({path:a,rule:"required",detail:`missing required property '${u}'`});const l=t.properties||{};for(const[u,f]of Object.entries(e))Object.hasOwn(l,u)||(t.additionalProperties===!1?s.push({path:a,rule:"additionalProperties",detail:`unknown property '${u}'`}):(t.additionalProperties===!0||t.additionalProperties!==null&&typeof t.additionalProperties=="object")&&Gn(f,t.additionalProperties,`${a}.${u}`,s,c));for(const[u,f]of Object.entries(e))Object.hasOwn(l,u)&&Gn(f,l[u],`${a}.${u}`,s,c)}if(Array.isArray(t.oneOf)){let l=0;for(const u of t.oneOf){const f=[];Gn(e,u,a,f,c),f.length===0&&l++}if(l!==1){const u=t.oneOf.map(f=>f.title||"(unnamed)").join(" | ");s.push({path:a,rule:"oneOf",detail:`matched ${l}/${t.oneOf.length} branches (expected exactly 1). Branches: ${u}`})}}if(Array.isArray(t.anyOf)){let l=0;for(const u of t.anyOf){const f=[];Gn(e,u,a,f,c),f.length===0&&(l+=1)}if(l===0){const u=t.anyOf.map(f=>f.title||"(unnamed)").join(" | ");s.push({path:a,rule:"anyOf",detail:`matched 0/${t.anyOf.length} branches (expected at least 1). Branches: ${u}`})}}if(Array.isArray(t.allOf))for(const l of t.allOf)Gn(e,l,a,s,c);if(t.if!==void 0){const l=[];Gn(e,t.if,a,l,c);const u=l.length===0?t.then:t.else;u!==void 0&&Gn(e,u,a,s,c)}if(t.not!==void 0){const l=[];Gn(e,t.not,a,l,c),l.length===0&&s.push({path:a,rule:"not",detail:"value matched a forbidden subschema"})}}},ko=(e,t,{resolveRef:a,base:s=(t==null?void 0:t.$id)??null}={})=>{const c=[];return Gn(e,t,"$",c,{rootSchema:t,resolveRef:a,base:s,referenceStack:[]}),c},YM=(e,t)=>Object.hasOwn(e,t);function gb(e,t){for(let a=0;a<e.length;a+=1){const s=e.charCodeAt(a);if(s>=55296&&s<=56319){const c=e.charCodeAt(a+1);if(!(c>=56320&&c<=57343))throw new TypeError(`JCS cannot canonicalize a lone high surrogate at ${t}.`);a+=1}else if(s>=56320&&s<=57343)throw new TypeError(`JCS cannot canonicalize a lone low surrogate at ${t}.`)}}function Sg(e,t,a){if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return gb(e,t),JSON.stringify(e);if(typeof e=="number"){if(!Number.isFinite(e))throw new TypeError(`JCS requires a finite number at ${t}.`);return JSON.stringify(e)}if(typeof e!="object")throw new TypeError(`JCS cannot canonicalize ${typeof e} at ${t}.`);if(a.has(e))throw new TypeError(`JCS cannot canonicalize a cycle at ${t}.`);a.add(e);try{if(Array.isArray(e)){const l=[];for(let u=0;u<e.length;u+=1){if(!YM(e,u))throw new TypeError(`JCS cannot canonicalize a sparse array at ${t}[${u}].`);l.push(Sg(e[u],`${t}[${u}]`,a))}return`[${l.join(",")}]`}const s=Object.getPrototypeOf(e);if(s!==Object.prototype&&s!==null)throw new TypeError(`JCS requires a plain JSON object at ${t}.`);return`{${Object.keys(e).sort().map(l=>(gb(l,`${t} key`),`${JSON.stringify(l)}:${Sg(e[l],`${t}.${l}`,a)}`)).join(",")}}`}finally{a.delete(e)}}function HM(e){return Sg(e,"$",new Set)}const zM=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Oa=(e,t)=>e>>>t|e<<32-t;function MA(e){const t=typeof e=="string"?new TextEncoder().encode(e):e;if(!ArrayBuffer.isView(t)||Object.prototype.toString.call(t)!=="[object Uint8Array]")throw new TypeError("sha256Hex expects a string or Uint8Array.");const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=Math.ceil((a.length+9)/64)*64,c=new Uint8Array(s);c.set(a),c[a.length]=128;const l=new DataView(c.buffer),u=BigInt(a.length)*8n;l.setUint32(s-8,Number(u>>32n&0xffffffffn)),l.setUint32(s-4,Number(u&0xffffffffn));let f=1779033703,h=3144134277,A=1013904242,y=2773480762,m=1359893119,E=2600822924,b=528734635,w=1541459225;const x=new Int32Array(64);for(let j=0;j<c.length;j+=64){for(let M=0;M<16;M+=1)x[M]=l.getUint32(j+M*4);for(let M=16;M<64;M+=1){const L=Oa(x[M-15],7)^Oa(x[M-15],18)^x[M-15]>>>3,Z=Oa(x[M-2],17)^Oa(x[M-2],19)^x[M-2]>>>10;x[M]=x[M-16]+L+x[M-7]+Z|0}let I=f,C=h,O=A,S=y,_=m,k=E,N=b,z=w;for(let M=0;M<64;M+=1){const L=Oa(_,6)^Oa(_,11)^Oa(_,25),Z=_&k^~_&N,F=z+L+Z+zM[M]+x[M]|0,oe=Oa(I,2)^Oa(I,13)^Oa(I,22),re=I&C^I&O^C&O,pe=oe+re|0;z=N,N=k,k=_,_=S+F|0,S=O,O=C,C=I,I=F+pe|0}f=f+I|0,h=h+C|0,A=A+O|0,y=y+S|0,m=m+_|0,E=E+k|0,b=b+N|0,w=w+z|0}return[f,h,A,y,m,E,b,w].map(j=>(j>>>0).toString(16).padStart(8,"0")).join("")}function xn(e){return`sha256:${MA(HM(e))}`}function eQ(e){if(e&&typeof e=="object"&&!Object.isFrozen(e)){for(const t of Object.values(e))eQ(t);Object.freeze(e)}return e}const tQ=(e,t)=>Object.hasOwn(e,t);function nQ(e,t=new Set){if(e===null||typeof e!="object"||t.has(e))return e;t.add(e);for(const a of Object.values(e))nQ(a,t);return Object.freeze(e)}function Ua(e){return Jc(e),structuredClone(e)}function Ab(e){for(let t=0;t<e.length;t+=1){const a=e.charCodeAt(t);if(a>=55296&&a<=56319){const s=e.charCodeAt(t+1);if(!(s>=56320&&s<=57343))throw new TypeError("JCS requires Unicode scalar strings.");t+=1}else if(a>=56320&&a<=57343)throw new TypeError("JCS requires Unicode scalar strings.")}}function Og(e,t){if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ab(e),JSON.stringify(e);if(typeof e=="number"){if(!Number.isFinite(e))throw new TypeError("JCS requires finite numbers.");return JSON.stringify(e)}if(typeof e!="object")throw new TypeError("JCS requires JSON data.");if(t.has(e))throw new TypeError("JCS cannot canonicalize a cycle.");t.add(e);try{if(Array.isArray(e)){if(Reflect.ownKeys(e).some(f=>{if(f==="length")return!1;if(typeof f!="string")return!0;const h=Number(f);return!Number.isSafeInteger(h)||h<0||h>=e.length||String(h)!==f}))throw new TypeError("JCS requires plain JSON arrays.");const u=[];for(let f=0;f<e.length;f+=1){const h=Object.getOwnPropertyDescriptor(e,String(f));if(!h||!h.enumerable||h.get||h.set)throw new TypeError("JCS cannot canonicalize a sparse array.");u.push(Og(h.value,t))}return`[${u.join(",")}]`}const a=Object.getPrototypeOf(e);if(a!==Object.prototype&&a!==null)throw new TypeError("JCS requires plain JSON objects.");const s=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(e).some(l=>{if(typeof l!="string")return!0;const u=s[l];return!(u!=null&&u.enumerable)||typeof u.get=="function"||typeof u.set=="function"}))throw new TypeError("JCS requires enumerable data properties only.");return`{${Object.keys(s).sort().map(l=>(Ab(l),`${JSON.stringify(l)}:${Og(s[l].value,t)}`)).join(",")}}`}finally{t.delete(e)}}function Jc(e){return Og(e,new Set)}function GA(e,t){return`sha256:${MA(`${t}\0${Jc(e)}`)}`}function mr(e){return`sha256:${MA(Jc(e))}`}function aQ(e){const t=Ua(e);return delete t.integrity.contentHash,t}function Kt(e,t){return Jc(e)===Jc(t)}function hn(e,t){return(e==null?void 0:e.sequence)===(t==null?void 0:t.sequence)&&(e==null?void 0:e.hash)===(t==null?void 0:t.hash)}const $M=Object.freeze(["type","$ref","properties","string","required","const","object","additionalProperties","array","items","null","pattern","1","#/$defs/id","enum","maxLength","minimum","kind","integer","0","maxItems","128","uniqueItems","minLength","title","oneOf","id","schemaVersion","state","format","version","status","date-time","protocolVersion","if","then","2.0.0","#/$defs/text","minItems","data","#/$defs/hash","domainId","domainVersion","reason","scopeId","surface","1.0.0","cycleId","action","hash","actorId","allOf","eventHead","subjectId","outcome","reasonCodes","#/$defs/version","deepLink","ownerActorId","scope","artifactId","origin","sequence","^sha256:[a-f0-9]{64}$","rejected","$id","$schema","https://json-schema.org/draft/2020-12/schema","x-openplanr-contract","$defs","../v2.0.0/operate-experience-view.schema.json#/$defs/id","confidence","not","number","roleId","#/$defs/identifier","256","maximum","actions","evidence","recoveryDisposition","revision","stale","assignmentId","assignmentKind","available","mutationEnabled","restricted","accessLevel","actionId","disposition","rationale","statement","#/$defs/nonPlaceholder","../v2.0.0/operate-experience-view.schema.json#/$defs/hash","boolean","evidenceRefIds","integrity","2048","blocked","decision","generatedAt","mediaType","sourceArtifactId","sourceViewHash","^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","absenceId","actor","target","verification","4096","64","accessReason","code","createdAt","effect","ok","rawHash","read-only","roleKind","tool","failed","payload","reviewId","roleVersion","#/$defs/nullableText","512","arguments","canonicalHash","cycle","evidenceRefId","history","operation","total","viewHash","8192","dissent","gaps","outcomes","review","schemaId","#/$defs/deepLink","16","algorithm","approved","cancelled","contentHash","current","domain","learnings","observedAt","producer","readOnly","requirementId","runtime","uncertain","description","evidenceKind","findings","partial","sourceAssignmentId","summary","#/$defs/shortText","#/$defs/successBase","absenceCode","actionHash","allowedActions","encoding","error","inbox","label","metricId","outputContract","uncertainty","verificationPlanId","workDispositions","^asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","claims","contradicted","contradictingEvidenceRefIds","decisions","findingType","pending","replay","resolved","severity","supportingEvidenceRefIds","unknown","#/$defs/artifactId","#/$defs/scope","abandoned","advisor","capability","chair","challenger","changes_requested","claim","classification","deferred","dueAt","evidenceArtifactId","freshness","inputArtifactIds","operating-intelligence","persistent-work","relation","resolvedAt","reversibility","rollbackPlanId","source","#/$defs/accessLevel","#/$defs/evidenceRefId","#/$defs/title","1024","^[\\s\\S]*\\S[\\s\\S]*$","absence","accepted","artifact","cycles","entityId","filesystem","git","governedOperationId","historical","offline","operate-artifact","planr","project-write","ready","revisitAt","subject","terminal","utf-8","#/$defs/absenceId","#/$defs/accessReason","#/$defs/eventHead","#/$defs/objectArray","^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","absent","accessState","actorKind","anyOf","application/json","assignment","baseline","causalLinks","choiceHash","choiceId","completedAt","consequence","context","dissentIds","domainMetrics","errors","expectedResult","findingId","message","omissions","operate-experience-view.schema.json#/$defs/hash","operationKind","provenance","representation","retryable","sensitivity","sourceArtifactKind","sourceContract","sourceContracts","subjectKind","submitArguments","truthSummary","updatedAt","validated","#/$defs/integrity","#/$defs/safeToken","../v2.0.0/operate-experience-view.schema.json#/$defs/eventHead","../v2.0.0/operate-experience-view.schema.json#/$defs/version","^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$","^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$","^cyc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rev_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","attention","contentBase64","export","human","operate-experience-view.schema.json#/$defs/id","requestBinding","resolutionId","sha-256-jcs","supported","targets","text","#/$defs/contractRef","#/$defs/producer","(?:<[^>]+>|\\{\\{[^}]+\\}\\})","../v2.0.0/operate-experience-view.schema.json#/$defs/accessLevel","^[A-Z][A-Z0-9_]{0,127}$","^evr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^op_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","advisorArtifactId","analysisProfile","appliedChoiceHash","appliedChoiceId","approvalIds","claimId","corrupt","cycleLinks","decisionId","deltaId","dependsOn","evaluationId","eventReplayIndexHash","execution","executor","expectedDownside","expectedUpside","expiresAt","generation","grantId","incompatible","intelligenceContext","localDissentId","machine-local-write","metadata","operating-review-read","operating-review.schema.json#/$defs/workDisposition","operationId","outputArtifactIds","projectId","provider","query","question","recommendation","redacted","resolutionCondition","resolver","resultId","revisitConditions","role","rollback","seatStatus","sizeBytes","sourceEventHead","threshold","unavailableReason","unverified","verificationMethod","verificationWindow","verified","window","#/$defs/humanActor","#/$defs/nullableShortText","#/$defs/omission","#/$defs/rubricClauses","32768","^cgr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","actionLocator","active","analysisRubric","capabilityGrantId","complete","confidential","contentJson","correctionCondition","effectSummary","entityKind","evidenceRequirements","identifier","internal","mandate","maxBytes","operate-allowed-action.schema.json","operate-experience-view.schema.json#/$defs/eventHead","operate.action.approve","operate.action.execute","operate.action.rollback","operate.artifact.get","operate.assignment.claim","operate.assignment.submit","operate.cycle.get","operate.cycle.resume","operate.cycle.start","operate.recovery.inspect","operate.review.get","operate.review.submit","operating-review-receipt","proof","public","result","resultRequirements","revisited","search","skipped","sourceLocalFindingId","submissionId","superseded","terminalDisposition","waiting","#/$defs/action","#/$defs/artifactIds","#/$defs/causalLink","#/$defs/cycleId","#/$defs/implementationRef","#/$defs/resolutionError","#/$defs/result","#/$defs/sourceContract","#/$defs/versionedId","../v2.0.0/operate-experience-view.schema.json#/$defs/action","../v2.0.0/operate-experience-view.schema.json#/$defs/outcome","4","7","^\\S(?:[\\s\\S]*\\S)?$","^dissent:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^fnd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rbp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","absenceIds","actionCount","actionDigest","allowedCapabilities","appliedWorkDispositions","approval","artifactType","assignmentState","authority","blockers","blocking","change","changed","choices","claimStatus","committedAt","connector","contains","content","contradictClaimIds","contradictEvidenceRefIds","correlated-reasoning","count","critical","currentSnapshotId","decisionCount","decisionIds","delta","dependencies","destructive","dispositionChoices","dissentCount","effectClass","epistemicStatus","eventId","evidenceKinds","executiveBoard","executorId","executorVersion","findingCount","focus","gapCount","high","html","informs","intelligencePlanId","irreversibility-mismatch","json","low","medium","metricHash","missing-alternative","navigationLocator","next","open","operate.recovery.clear-stale-lock","operate.recovery.restore","operating-review.schema.json","originalOperationId","outcomeId","overconfidence","parentOperationId","partyId","persistentActionIds","persistentWork","priorSnapshotId","progress","readEventHead","reasonCode","receiptId","recorded","redactions","requestFingerprint","requiredCapability","results","revisit","running","scope-violation","seats","snapshot","snapshotId","sourceArtifactHash","sourceArtifactIds","sourceClaimRefs","sourceDecisionId","sourceEventId","sourceEventIds","sourceEvidenceRefIds","sourceStateHash","stages","supportClaimIds","supportEvidenceRefIds","targetAfterHash","targetBeforeHash","traceMatrix","typedAbsences","unit","unpriced-downside","unsupported","#/$defs/actionIdentity","#/$defs/assignmentId","#/$defs/cycleView","#/$defs/nodeId","#/$defs/nodeKind","#/$defs/nonBlankText","#/$defs/payload","#/$defs/publicActor","#/$defs/reviewSubmitArguments","#/$defs/target","#/$defs/workspace","../v2.0.0/operate-experience-view.schema.json#/$defs/cycle","../v2.0.0/operate-experience-view.schema.json#/$defs/history","../v2.0.0/operate-experience-view.schema.json#/$defs/inbox","../v2.0.0/operate-experience-view.schema.json#/$defs/learning","../v2.0.0/operate-experience-view.schema.json#/$defs/replay","../v2.0.0/operate-review-display-workspace.schema.json#/$defs/sharedTruthSummary","^#/operate/(?:cycles|inbox|actions|evidence|outcomes|history)/","^abs_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^tre_[a-f0-9]{32}$","access-denied","agent","analysisIds","beforeAfter","binary","candidateId","canonical","claimIds","completed","contradiction","decoded-json","deliveryRoute","dependencyPolicy","dueVerification","evaluates","execute","executiveSummary","external-effect","finding","humanActor","inputBundle","issuedEvidence","learning","localClaimId","localRecommendationId","locator","measurementIds","nextObservation","nodeId","nonPlaceholder","not-applicable","not-required","observationRequest","omission","omitted","operate-experience-surface","operate-experience-view","operating-assignment","operating-evidence-resolution","operating-finding","operating-review","operating-review-read.schema.json#/$defs/dispositionChoice/properties/choiceId","operating-review-read.schema.json#/$defs/eventHead","operating-review-read.schema.json#/$defs/hash","operating-review-read.schema.json#/$defs/text","parityProof","policyBinding","proposed","provider-call","raw","recommendationIds","replayCheckpoint","reversible","reviewSubmitArguments","riskIds","rollbackClass","safeErrorContext","submitted","support","terminalOutcome","today","transition","unavailable","workspace","#/$defs/analysisProfile","#/$defs/artifactMetadata","#/$defs/artifactProvenance","#/$defs/assignmentDependency","#/$defs/cycleIdentityArguments","#/$defs/deltaRef","#/$defs/digest","#/$defs/effect","#/$defs/endpoint","#/$defs/evidenceData","#/$defs/evidenceGapSummary","#/$defs/evidenceKind","#/$defs/evidenceProvenance","#/$defs/evidenceRefIds","#/$defs/evidenceRequirement","#/$defs/evidenceSource","#/$defs/executiveBoardArtifact","#/$defs/executiveBoardClaimRef","#/$defs/executiveBoardDissent","#/$defs/executor","#/$defs/exportData","#/$defs/historyData","#/$defs/inboxActionLocator","#/$defs/inboxNavigationLocator","#/$defs/inboxUnavailableReason","#/$defs/intelligenceContext","#/$defs/nextAction","#/$defs/outcomeData","#/$defs/outcomesData","#/$defs/replayCheckpoint","#/$defs/resultRequirement","#/$defs/roleGapSummary","#/$defs/safeError","#/$defs/safeErrorContext","#/$defs/searchData","#/$defs/snapshotRef","#/$defs/subject","#/$defs/terminalDisposition","#/$defs/unavailableReason","../v2.0.0/operate-allowed-action.schema.json","../v2.0.0/operate-experience-view.schema.json#/$defs/boundAllowedAction","../v2.0.0/operate-experience-view.schema.json#/$defs/deepLink","../v2.0.0/operate-experience-view.schema.json#/$defs/domainMetric","2","32","8","ANCESTRY_MISMATCH","ARTIFACT_HASH_MISMATCH","ARTIFACT_NOT_FOUND","CAPABILITY_DENIED","CONSENT_REQUIRED","EVIDENCE_LOCATOR_INVALID","EVIDENCE_PROVIDER_UNAVAILABLE","EVIDENCE_RESOLVER_UNAVAILABLE","EVIDENCE_RESOLVER_UNREGISTERED","EVIDENCE_RESOLVER_VERSION_UNSUPPORTED","EVIDENCE_SOURCE_SCOPE_MISMATCH","LINE_RANGE_INVALID","OBJECT_TYPE_MISMATCH","OpenPlanr Operate 2.0 Phase 1 operating assignment","OpenPlanr Operate 2.0 evidence resolution outcome","OpenPlanr Operate 2.0 owner-bound review read","OpenPlanr Operate access-safe product experience","PATH_NOT_FOUND","REVISION_NOT_FOUND","Runtime-owned outcome envelope. A rejection contains safe structured context only; a resolution binds one immutable evidence Artifact.","Runtime-projected pre-commit Review data for the exact immutable human owner. The runtime owns readAt.","SECRET_DETECTED","SENSITIVITY_BLOCKED","SOURCE_NOT_FOUND","SOURCE_STALE","SOURCE_UNTRACKED","UNSUPPORTED_EVIDENCE_KIND","^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","^(?:fnd|dec|act)_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^.*\\S.*$","^aprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^evt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^pevl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rrc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^sub_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^vfy_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^xres_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","acceptedArtifactIds","acceptedArtifacts","acceptedEvidenceKinds","acceptedFreshness","acceptedSourceContracts","accessSafe","accountabilityDisposition","act","actionHypotheses","actionSummary","actionable","activeCycle","actorMatchesOwner","added","advisorArtifactIds","affectedTargetIds","allowedAction","allowedEvidence","allowedRecovery","allowedTerminalOutcomes","alternativeDispositions","appliesToOutcomes","approvalExecution","approvals","artifact.read","artifact.submit","artifactIds","artifactMetadata","artifactProvenance","artifactQualityBar","assignments","assumptionIds","attempt","attemptPolicy","attentionId","authenticity","authoritativeForMutation","authorityBoundary","availableAssignments","availableAt","baselineArtifactId","baselineHash","blockingSubjectIds","boardId","boundAllowedAction","boundSubmission","boundSubmissionHash","boundaries","bundleArtifactId","bundleCanonicalHash","bundleId","bundleRawHash","byStage","capabilities","capabilityCeiling","causalLink","causationId","chairSynthesis","challengerArtifactId","challengerFindingIds","challengerFindings","checkpoint","checkpointVerified","conditions","conflict","contained-execution","context-capture","contract","contractRef","contradictedClaims","correlationId","currentGeneration","currentValue","decide","decisionOwnerActorId","decisionSummary","deepLinks","deltaValue","dependencyActionIds","dependsOnActionHypothesisIds","derivedAt","detects","dispositionChoice","dissentSummary","edgeId","edges","else","endSequence","engine","entityType","evaluation","evaluationRules","eventCount","eventHash","eventIds","evidenceData","evidenceGapIds","evidenceGapSummary","evidenceInputAbsence","evidenceProvenance","evidenceSource","executionResultId","executions","expectedReadEventHead","expectedTargetHash","exportData","externalEffectsAuthorized","failureModes","filterDimensions","finalEventHashMatches","finalHead","findingSummary","forbiddenEffects","formats","from","future-analysis","future-observation","futureRequirement","gapSummary","gates","generationCount","govern","health","historyData","https://openplanr.dev/schemas/v2.0.0/operate-experience-view.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-assignment.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-evidence-resolution.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-review-read.schema.json","human-external","implementationRef","in_progress","inboundEdgeIds","incidentEdgeCount","inputAbsences","inspection","insufficientEvidence","integrityBoundary","intentEventId","issuedAt","itemId","known","learn","learningId","ledger","lensAbsences","limits","linked","linkedEvidence","liveAccessUsed","local-claim","localActionHypothesisId","localAlternativeId","localDecisionId","lock","manual","materializedEventId","matrixHash","matrixId","maxAttempts","maxEdges","maxNodes","maximumEvidenceRefs","maximumItems","method","metric","minimumEvidenceRefs","minimumItems","minimumSatisfied","mode","model","necessity","nextState","nodes","nonce","none","not-authorized","not-available","notRequired","note","nullableText","objective","objectiveId","observationIds","observe","observe-only","observed","omissionId","operate-action-display-workspace","operate-cycle-display-workspace","operate-executive-board-display-surface","operate-experience-audit-display-surface","operate-experience-display-surface","operate-experience-preview","operate-recovery-display-surface","operate-review-bound-submission","operate-review-bound-submission.schema.json","operate-review-display-workspace","operating-action.schema.json","operating-advisor-result","operating-artifact.schema.json","operating-assignment.schema.json","operating-assignment.schema.json#/$defs/evidenceInputAbsence/properties/reason","operating-assignment.schema.json#/$defs/evidenceInputAbsence/properties/recoveryDisposition","operating-assignment.schema.json#/$defs/roleInputAbsence/properties/reason","operating-assignment.schema.json#/$defs/roleInputAbsence/properties/recoveryDisposition","operating-assignment.schema.json#/$defs/roleInputAbsence/properties/roleId","operating-challenger-review","operating-cycle.schema.json","operating-decision-ledger","operating-delivery-route","operating-evidence-candidate.schema.json#/$defs/implementationRef","operating-evidence-resolution.schema.json#/$defs/safeErrorContext","operating-execution-result","operating-governed-operation","operating-governed-operation.schema.json","operating-governed-operation.schema.json#/$defs/versionedId","operating-review-read.schema.json","operating-review-read.schema.json#/$defs/cycleId","operating-review-read.schema.json#/$defs/decisionSummary","operating-review-read.schema.json#/$defs/dissentSummary","operating-review-read.schema.json#/$defs/findingSummary","operating-review-read.schema.json#/$defs/gapSummary","operating-review-read.schema.json#/$defs/reviewSubmitArguments","operating-review-read.schema.json#/$defs/title","operating-trace-matrix","operating-trace-matrix.schema.json","operating-work-ledger","operationHash","outOfScope","outboundEdgeIds","outcomeData","outcomesData","outsideBoundary","ownerCycle","ownerLabel","ownerPid","parties","planHash","planId","planning-work","preconditionArtifactIds","previewHash","previewId","previousEventHash","prior","priorValue","priority","probable","projectionMode","proofState","questionIds","queued","read","readActionDigest","readAt","reader","recoverableGeneration","recoveryState","recoveryVersion","redactionCount","remaining","removed","repositoryId","requiredDispositions","requiredEvidence","requiredParties","requiredQuestions","requirements","resolution-failed","resolutionError","resolvedClaims","resolverId","restrictedEvidence","restrictedNodes","resultArtifactId","resultHash","retry","roleGapSummary","roleInputAbsence","rollbacks","rolled-back","route","routeHash","routeId","runtimeStateHash","safeError","searchData","seat","semanticHash","skillId","sourceBoardHash","sourceCycleId","sourceFindingIds","sourceId","sourceKind","sourceReadEventHead","sourceRecommendationRefs","sourceRootId","speculative","staleEvidence","startSequence","stateParityVerified","strongly-supported","subjectIds","succeeded","supportedClaims","tail","terminalAssignments","text/html; charset=utf-8","timeoutMs","timestamp","to","trigger","truncated","uncertaintyCount","uncertaintyId","uncertaintyIds","understand","unresolvedClaims","unresolvedGaps","unverifiedClaims","unverifiedOutcomes","value","verificationPlanHash","verifiedActions","verifiedEvidence","verifiedOutcomes","verify","versionedId","viewId","why","whyNow","#/$defs/actionApproval","#/$defs/actionApproveArguments","#/$defs/actionApproveSuccess","#/$defs/actionData","#/$defs/actionDependency","#/$defs/actionExecuteArguments","#/$defs/actionExecuteSuccess","#/$defs/actionRollbackArguments","#/$defs/actionRollbackSuccess","#/$defs/actionSummary","#/$defs/actionsData","#/$defs/advisorOutputContract","#/$defs/analysisRubric","#/$defs/artifactGetArguments","#/$defs/artifactGetSuccess","#/$defs/artifactRepresentation","#/$defs/assignment","#/$defs/assignmentClaim","#/$defs/assignmentClaimArguments","#/$defs/assignmentClaimSuccess","#/$defs/assignmentSubmitArguments","#/$defs/assignmentSubmitSuccess","#/$defs/attention","#/$defs/attentionCounts","#/$defs/beforeAfter","#/$defs/blockedReasons","#/$defs/blocker","#/$defs/boundAllowedAction","#/$defs/candidateId","#/$defs/capability","#/$defs/chairOutputContract","#/$defs/challengerOutputContract","#/$defs/choice","#/$defs/claim","#/$defs/claimCounts","#/$defs/contextCaptureOutputContract","#/$defs/corruptReasons","#/$defs/cycle","#/$defs/cycleData","#/$defs/cycleGetSuccess","#/$defs/cycleLink","#/$defs/cycleResumeSuccess","#/$defs/cycleStartArguments","#/$defs/cycleStartSuccess","#/$defs/cyclesData","#/$defs/data","#/$defs/decisionRef","#/$defs/decisionSummary","#/$defs/dependency","#/$defs/dependencyPolicy","#/$defs/dispositionChoice","#/$defs/dissentSummary","#/$defs/domainMetric","#/$defs/dueVerification","#/$defs/edge","#/$defs/effectSummary","#/$defs/error","#/$defs/errorCode","#/$defs/evidence","#/$defs/evidenceCounts","#/$defs/evidenceInputAbsence","#/$defs/executiveBoard","#/$defs/executiveBoardActionHypothesis","#/$defs/executiveBoardAlternativeDisposition","#/$defs/executiveBoardChairArtifact","#/$defs/executiveBoardChairDecision","#/$defs/executiveBoardChairSynthesis","#/$defs/executiveBoardChallengerFinding","#/$defs/executiveBoardChallengerFindings","#/$defs/executiveBoardEvidenceGap","#/$defs/executiveBoardGap","#/$defs/executiveBoardRecommendationRef","#/$defs/executiveBoardRoleGap","#/$defs/executiveBoardSeat","#/$defs/executiveBoardSeatAbsence","#/$defs/executiveSummary","#/$defs/findingSummary","#/$defs/gapSummary","#/$defs/gate","#/$defs/history","#/$defs/historyAuthority","#/$defs/historyChange","#/$defs/historyPrior","#/$defs/historyResult","#/$defs/inbox","#/$defs/inboxData","#/$defs/inboxEvidence","#/$defs/inboxParty","#/$defs/incompatibleReasons","#/$defs/inputAbsence","#/$defs/inputBundle","#/$defs/intelligenceInputBundleOutputContract","#/$defs/issuedEvidence","#/$defs/learning","#/$defs/lensAbsence","#/$defs/localAnalysisId","#/$defs/localClaimId","#/$defs/localFindingId","#/$defs/localMeasurementId","#/$defs/localRecommendationId","#/$defs/localRiskId","#/$defs/locator","#/$defs/mandate","#/$defs/mandateCapability","#/$defs/mandateForbiddenEffect","#/$defs/metricChange","#/$defs/nextObservation","#/$defs/node","#/$defs/nullableDeepLink","#/$defs/observationRequest","#/$defs/offlineReasons","#/$defs/outcome","#/$defs/outcomeMetric","#/$defs/parityProof","#/$defs/partialReasons","#/$defs/party","#/$defs/policyBinding","#/$defs/proof","#/$defs/proofCounts","#/$defs/rationale","#/$defs/readOnlyReasons","#/$defs/recommendation","#/$defs/recoveryInspectSuccess","#/$defs/recoveryInspection","#/$defs/replay","#/$defs/replayTail","#/$defs/requestBinding","#/$defs/resolutionId","#/$defs/reviewGetSuccess","#/$defs/reviewIdentityArguments","#/$defs/reviewSubmitSuccess","#/$defs/revisit","#/$defs/roleInputAbsence","#/$defs/searchResult","#/$defs/seatCounts","#/$defs/seatStatus","#/$defs/sharedTruthSummary","#/$defs/stage","#/$defs/stageCounts","#/$defs/staleReasons","#/$defs/submissionAcceptance","#/$defs/summary","#/$defs/summaryOmissions","#/$defs/terminalAbsence","#/$defs/terminalOutcome","#/$defs/threshold","#/$defs/todayData","#/$defs/toolName","#/$defs/transition","#/$defs/transitionTarget","#/$defs/uncertainty","#/$defs/verification","#/$defs/verificationCounts","#/$defs/workDisposition","#/properties/appliedChoiceHash","#/properties/appliedChoiceId","../v2.0.0/operate-api-envelope.schema.json#/$defs/cycleView/properties/progress","../v2.0.0/operate-experience-view.schema.json#/$defs/attention","../v2.0.0/operate-experience-view.schema.json#/$defs/claim","../v2.0.0/operate-experience-view.schema.json#/$defs/evidence","../v2.0.0/operate-experience-view.schema.json#/$defs/executiveBoard","../v2.0.0/operate-experience-view.schema.json#/$defs/rationale","1000","3","5","ACTION_NOT_FOUND","ACTION_REVISION_MISMATCH","APPROVAL_EXPIRED","APPROVAL_INVALID","APPROVAL_REQUIRED","ASSIGNMENT_ALREADY_CLAIMED","ASSIGNMENT_ALREADY_SUBMITTED","ASSIGNMENT_NOT_AVAILABLE","Access-safe identity graph joining operating requirements and absences to seats, accepted work, proof, decisions, governed actions, and verification. Every edge is listed once and reciprocally indexed by both endpoint nodes.","Access-safe, content-hashed projection over either one verified pending operating-review-read or one immutable terminal operating-review-receipt and its exact actor-bound experience view.","Additive wrapper that binds one exact advertised Review choice and optional owner note to the source Event head without changing the legacy operate.review.submit tool arguments.","CAPABILITY_GRANT_CONSUMED","CAPABILITY_GRANT_INVALID","CAPABILITY_PROVIDER_UNAVAILABLE","CAPABILITY_UNAVAILABLE","CONCURRENT_MODIFICATION","CONTRACT_VERSION_UNSUPPORTED","CYCLE_NOT_FOUND","CYCLE_TERMINAL","DOMAIN_CONTRACT_UNSUPPORTED","EVIDENCE_RESOLUTION_FAILED","EXECUTOR_UNAVAILABLE","OPERATE_CONTRACT_INCOMPATIBLE","OPERATE_OFFLINE","OPERATE_PROJECTION_BLOCKED","OPERATE_PROJECTION_PARTIAL","OPERATE_PROJECTION_STALE","OPERATE_READ_ONLY","OPERATE_STATE_CORRUPT","OPERATE_TRACE_ACCESS_RESTRICTED","OPERATE_TRACE_ROLE_NOT_SELECTED","OPERATE_TRACE_TYPED_ABSENCE","OPERATING_PROVIDER_INPUT_INVALID","OPERATING_PROVIDER_UNAVAILABLE","OPERATING_SCOPE_INVALID","OPERATION_CONFLICT","OPERATION_UNCERTAIN","OpenPlanr Operate 2.0 API envelope","OpenPlanr Operate 2.0 allowed action","OpenPlanr Operate 2.0 bounded reciprocal trace matrix","OpenPlanr Operate 2.0 cycle-scoped review","OpenPlanr Operate 2.0 execution result","OpenPlanr Operate 2.0 governed operation","OpenPlanr Operate 2.0 owner-bound review receipt","OpenPlanr Operate 2.0 persistent finding","OpenPlanr Operate 2.0 rebuildable persistent-work ledger","OpenPlanr Operate delivery route","OpenPlanr Operate governed experience preview","OpenPlanr browser-verifiable Operate display surface","OpenPlanr browser-verifiable access-safe audit display surface","OpenPlanr browser-verifiable executive board display surface","OpenPlanr browser-verifiable owner Review display workspace","OpenPlanr browser-verifiable recovery display surface","OpenPlanr browser-verifiable sanitized Action workspace","OpenPlanr browser-verifiable sanitized Cycle workspace","OpenPlanr dashboard Operate experience surface","OpenPlanr owner-bound Review submission","POLICY_EVALUATION_DEFERRED","POLICY_EVALUATION_REJECTED","POLICY_PROHIBITED","POLICY_PROVIDER_UNAVAILABLE","Post-commit proof of the exact human owner's Review disposition. The runtime owns receiptId and committedAt.","RESULT_CONTRACT_INVALID","REVIEW_NOT_AUTHORIZED","REVIEW_NOT_FOUND","REVIEW_NOT_PENDING","REVIEW_TERMINAL","ROLLBACK_NOT_ELIGIBLE","Runtime-owned pre-commit Review read and exact applied choice proof retained for byte-identical receipt replay. Receipt identity, post-commit Event head, and commit time derive from the committed Event and are intentionally excluded to avoid a hash cycle.","STATE_TRANSITION_INVALID","SUBMISSION_ID_CONFLICT","^(?:ceiling_[a-f0-9]{24}|grant-[A-Za-z0-9][A-Za-z0-9._-]{2,127})$","^(?:xres|rbres)_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^[0-9]+\\.[0-9]+\\.[0-9]+$","^[A-Z][A-Z0-9_]*$","^analysis:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^claim:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^droute_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^evc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^evs_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^finding:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^ibd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^ipl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^measurement:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^recommendation:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:1$","^risk:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^tro_[a-f0-9]{32}$","^trx_[a-f0-9]{32}$","^xbr_[a-f0-9]{32}$","^xprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^xview_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","action.approve success","action.execute success","action.rollback success","actionApproval","actionApproveArguments","actionApproveSuccess","actionData","actionDependency","actionExecuteArguments","actionExecuteSuccess","actionIdentity","actionRollbackArguments","actionRollbackSuccess","actionsData","advisorOutputContract","all-required","allowed","alternatives","always","analysis","approved review","artifact.get success","artifactGetArguments","artifactGetSuccess","artifactRepresentation","assigned-to","assignment.claim success","assignment.submit success","assignmentClaim","assignmentClaimArguments","assignmentClaimSuccess","assignmentDependency","assignmentSubmitArguments","assignmentSubmitSuccess","attentionCounts","authorized","blockedReasons","blocker","body-never-projected","cancelled review","canonical bytes","carried-forward","chairOutputContract","challenge","challengerOutputContract","challenges","changes requested review","choice","claimCounts","claimed","clear-stale-lock","compatibility","compensating","contested","contextCaptureOutputContract","contradicted-by","corruptReasons","custody","customer-contact","cycle.get success","cycle.resume success","cycle.start success","cycleData","cycleGetSuccess","cycleIdentityArguments","cycleLink","cycleResumeSuccess","cycleStartArguments","cycleStartSuccess","cycleView","cyclesData","date","decides","decisionRef","declares","deltaRef","dependency","dependentRequired","digest","dispatching","disposes","divergent","domainMetric","edge","empty","endpoint","errorCode","event-type","evidence-ref","evidenceCounts","evidenceRequirement","executiveBoardActionHypothesis","executiveBoardAlternativeDisposition","executiveBoardArtifact","executiveBoardChairArtifact","executiveBoardChairDecision","executiveBoardChairSynthesis","executiveBoardChallengerFinding","executiveBoardChallengerFindings","executiveBoardClaimRef","executiveBoardDissent","executiveBoardEvidenceGap","executiveBoardGap","executiveBoardRecommendationRef","executiveBoardRoleGap","executiveBoardSeat","executiveBoardSeatAbsence","failure","gap","gate","git.read","governed","governed-by","governed-execution","healthy","historyAuthority","historyChange","historyPrior","historyResult","https://openplanr.dev/schemas/v1.2.0/operate-action-display-workspace.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-cycle-display-workspace.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-executive-board-display-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-experience-audit-display-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-experience-display-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-experience-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-recovery-display-surface.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-allowed-action.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-api-envelope.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-experience-preview.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-review-bound-submission.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-review-display-workspace.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-delivery-route.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-execution-result.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-finding.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-governed-operation.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-review-receipt.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-review.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-trace-matrix.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-work-ledger.schema.json","identity-redacted","immutable-review-event","inboxActionLocator","inboxData","inboxEvidence","inboxNavigationLocator","inboxParty","inboxUnavailableReason","incompatibleReasons","inputAbsence","insufficient","intelligenceInputBundleOutputContract","intent-recorded","issued-as","lens","lensAbsence","localAnalysisId","localFindingId","localMeasurementId","localRiskId","locked","mandateCapability","mandateForbiddenEffect","materialized","measurements","metadata only","metricChange","nextAction","node","nodeKind","nonBlankText","nullableDeepLink","nullableShortText","objectArray","observed-as","offlineReasons","openplanr:operate-action-display-workspace:1.0.0","openplanr:operate-cycle-display-workspace:1.0.0","openplanr:operate-executive-board-display-surface:1.0.0","openplanr:operate-experience-audit-display-surface:1.0.0","openplanr:operate-experience-display-surface:1.0.0","openplanr:operate-recovery-display-surface:1.0.0","openplanr:operate-review-display-workspace:1.0.0","operate-action-workspace","operate-allowed-action","operate-api-envelope","operate-cycle-workspace","operate-executive-board","operate-experience-surface.schema.json","operate-experience-view.schema.json#/$defs/accessLevel","operate-experience-view.schema.json#/$defs/boundAllowedAction","operate-experience-view.schema.json#/$defs/claim","operate-experience-view.schema.json#/$defs/evidence","operate-experience-view.schema.json#/$defs/version","operate-planning-decision-revisit","operate-planning-delivery-verifier","operate-recovery","operate-review-workspace","operate-shared-truth-summary","operating-action","operating-approval-record.schema.json","operating-approval-requirement.schema.json","operating-context-capture","operating-decision","operating-decision.schema.json","operating-delivery-route.schema.json","operating-execution-result.schema.json#/$defs/effectSummary","operating-finding.schema.json","operating-finding.schema.json#/$defs/target","operating-intelligence-input-bundle","operating-policy-evaluation.schema.json","operating-review-read.schema.json#/$defs/actionSummary","operating-review-read.schema.json#/$defs/dispositionChoice","operating-review-read.schema.json#/$defs/humanActor","operating-review-read.schema.json#/$defs/scope","operating-review-read.schema.json#/$defs/seatStatus","operating-review-receipt.schema.json","operating-work-ledger.schema.json","operating-work-ledger.schema.json#/$defs/cycleLink","outcomeMetric","partialReasons","party","payment.change","pending review","planr.read","preferred","preview","produces","production.deploy","proofCounts","proposes","publicActor","publish","question-coverage","quiet","raw bytes","readOnlyReasons","records","recovery.inspect success","recoveryInspectSuccess","recoveryInspection","refused","rejected review","repairable","replayProjection","replayTail","repository.read","repository.write","requirement","restore-generation","restored","resultRequirement","review-only","review.get success","review.submit success","reviewGetSuccess","reviewIdentityArguments","reviewSubmit","reviewSubmitSuccess","risks","rubricClauses","safeToken","searchResult","seatCounts","separately-governed-follow-on","sharedTruthSummary","ship","shortText","snapshotRef","source-dispositions","spend","stage","stageCounts","staleReasons","standard","submissionAcceptance","submissionState","successBase","summaryOmissions","supported-by","synthesis","terminalAbsence","todayData","toolName","touched","transitionTarget","unowned","verificationCounts","verified decoded JSON","verified-by","workDisposition"]),UM=1e6,$h=5e5,LM=256,PM=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,FM=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/u;function sn(){const e=new TypeError("Dashboard schema token payload is invalid.");return Object.defineProperty(e,"code",{value:"E_DASHBOARD_SCHEMA_TOKEN_INVALID",enumerable:!0,configurable:!1,writable:!1}),e}function VM(e){if(typeof e!="string"||e.length===0||e.length>UM||e.length%4!==0||!PM.test(e))throw sn();let t;try{if(t=globalThis.atob(e),globalThis.btoa(t)!==e)throw sn()}catch{throw sn()}const a=new Uint8Array(t.length);for(let s=0;s<t.length;s+=1){const c=t.charCodeAt(s);if(c>255)throw sn();a[s]=c}return a}function ct(e){const t=VM(e);let a=0,s=0;const c=()=>{if(a>=t.length)throw sn();const A=t[a];return a+=1,A},l=()=>{let A=0,y=1;for(let m=0;m<5;m+=1){const E=c();if(A+=(E&127)*y,A>4294967295)throw sn();if((E&128)===0){if(m>0&&E===0)throw sn();return A}y*=128}throw sn()},u=()=>{const A=$M[l()];if(typeof A!="string")throw sn();return A},f=A=>{if(s+=1,s>$h||A>LM)throw sn();switch(c()){case 0:return null;case 1:return!1;case 2:return!0;case 3:{const y=u();if(!FM.test(y))throw sn();const m=Number(y);if(!Number.isFinite(m)||JSON.stringify(m)!==y)throw sn();return m}case 4:return u();case 5:{const y=l();if(y>$h-s)throw sn();const m=new Array(y);for(let E=0;E<y;E+=1)m[E]=f(A+1);return m}case 6:{const y=l();if(y>$h-s)throw sn();const m={};for(let E=0;E<y;E+=1){const b=u();if(Object.hasOwn(m,b))throw sn();Object.defineProperty(m,b,{value:f(A+1),enumerable:!0,configurable:!0,writable:!0})}return m}default:throw sn()}},h=f(0);if(a!==t.length||!h||typeof h!="object"||Array.isArray(h))throw sn();return h}const YA=ct("BgpCBENBBPYKRAYCGgSvCx4EJBgEwgkABAYHAQQFBAR4BH8EqgEEcwIGBHgGAgAEAw4FDgT9AgT7AgT8AgT5AgT6AgT4AgT/AgSAAwT1AgT2AgT3AgT+AgTXAwTWA38GAKoBBgQABAMXAwwPA0xIBgELBKUCcwYCAAQDDgUGBHYEwQIE4wEExwQEqAQEvAMZBQ4GAhgE/QICBgN4BgEFBP0CfwYBAQShCHMGAQUE4wEGAhgE+wICBgN4BgEFBPsCfwYBAQTbBHMGAQUEdgYCGAT8AgIGA3gGAQUE/AJ/BgEBBNsEcwYBBQTjAQYCGAT5AgIGA3gGAQUE+QJ/BgEBBIkIcwYBBQTBAgYCGAT6AgIGA3gGAQUE+gJ/BgEBBIsIcwYBBQTBAgYCGAT4AgIGA3gGAQUE+AJ/BgEBBIQIcwYBBQR2BgIYBP8CAgYDeAYBBQT/An8GAQEE+AhzBgEFBHYGAhgEgAMCBgN4BgEFBIADfwYBAQSKBHMGAQUE4wEGAhgE9QICBgN4BgEFBPUCfwYBAQT4B3MGAQUE4wEGAhgE9gICBgN4BgEFBPYCfwYBAQT8B3MGAQUE4wEGAhgE9wICBgN4BgEFBPcCfwYBAQT+B3MGAQUE4wEGAhgE/gICBgN4BgEFBP4CfwYCAAQGBwFzBgEFBHYGAhgE1wMCBgN4BgEFBNcDfwYEAAQGBwEEBQEEvAICBgG8AgYBAQRdcwYBBQS8AwYCGATWAwIGA3gGAQUE1gN/BgIABAYHAXMGAQUEwQJFBg+7CgYEAAQGBwEEBQUEOwTHAwTjBwTTBgQ6AgYGOwYEAAQGBwEEBQMELAQpBCoCBgMsBgEBBF0pBgEBBF0qBgEzBQIGAQEEXQYBDwNvxwMGAwAECBYCCQYBAQRd4wcGBAAEBgcBBAUBBBECBgERBgEFBMUG0wYGAgAEAw4FAgSJDATZCzoGAQEEXaIEBgIABAMOBQQE7AUEmgcEqwYE4wa4CgYEAAQGBwEEBQEELwIGAS8GAQEEXZUKBgQABAYHAQQFAgRTBGsCBgJTBgIABAMLBLABawYBAQSJBJgKBgQABAYHAQQFBgRTBIoDBGsEZgSnAQSZAgIGBlMGAgAEAwsEsAGKAwYCAAQDCwSoBWsGAQEEiQRmBgEBBF2nAQYCAAQDDgUCBOgBBJsEmQIGAgAEAwsEoAWOCgYFAAQGBwEEBQUEPASFAgRrBDsEUwIGBTwGAgAEAwsEaYUCBgIABAMOBQQEyAQEnQQEwgIEoQRrBgEBBIkEOwYBAQS9AVMGAgAFAgQDBAoLBLABMwUBBgIiBgICBgFrBgICBgERBgEFBJgEBAUBBBEEBQEEayMGAQIGAVMGAQAEA/cLBgQABAYHAQQFBAR7BC8EawQ7AgYEewYCAAQDCwSXAi8GAgAEAwsElgJrBgEBBN0COwYBAQS9AcwEBgQABAYHAQQFBgR7BC8EawQ7BFoErwECBgZ7BgIABAMLBJcCLwYCAAQDCwSWAmsGAQEE3QI7BgEBBL0BWgYCAAQDDgUEBJABBMMBBEAEkQGvAQYEAAQIFAPVARYCCQYBAQTEAoIKBgQABAYHAQQFAwRZBFEEpQECBgNZBgIABAMLBO0BUQYCAAQSEAMMpQEGAgAEAwsEP/wJBgQABAYHAQQFAgQwBGQCBgMwBgEBBIIEZAYBDgUDBJABBEAExgHSAgYEAAQGBwEEBQUE0AEEmAcE2QMEkAYEkwYCBgXQAQYCAAQDCwSeA5gHBgIABAMLBD/ZAwYCAAQDCwSpApAGBgIABAMLBKoFkwYGAgAEAwsEP4AKBgQABAYHAQQFAQQwAgYBMAYBAQSCBIMKBgQABAYHAQQFAwQwBNkDBNABAgYDMAYBAQSCBNkDBgIABAMLBKkC0AEGAgAEAwsEngPeCwYEAAQGBwEEBQMEMgQRBJoBAgYDMgYBAQRdEQYCAAQDDgUCBJgEBJsCmgEGAQEEXaoEBgQABAYHAQQFAwQyBBEEmgECBgMyBgEBBF0RBgEFBJsCmgEGAQEEXTsGBAAEBgcBBAUDBCwEKQQqAgYDLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Db7QEBgQABAMXAwwPAxVIBgELBKUC"),qM=ct("BgVCBENBBKcGRAYCGgS7BB4ELhgElQVFBhVYBgEOBQQEgwME8AIE6QIEV3AGAgAFAgQDBAoOBQIElwQAxgUGBAAEBgcBBAUGBDwEpQMElwEElgEEdQSAAQIGBjwGAQEEDaUDBgEBBA2XAQYBAQSkApYBBgIABAMdBCB1BgEBBCiAAQYCAAUCBAMECgsEP8cFBgQABAYHAQQFAwQ8BHUEgAECBgM8BgEBBA11BgEBBCiAAQYCAAUCBAMECgsEP9cFBgQABAYHAQQFAgQ1BDACBgI1BgEBBA0wBgEBBPMC4gUGBAAEBgcBBAUEBBEENQTNAQQ5AgYEEQYBDgUFBMQBBMAGBGQEMAQ2NQYBAQQNzQEGAQ4FBATRBASgBATLAwSlBDkGAQEEjQHEAQYEAAQGBwEEBRIErwIEHwTAAwRcBPoDBLMDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhKvAgYBAQQNHwYBDgUFBKACBLIBBJsBBLsBBFfAAwYBDgUFBLcGBNkHBKIHBNUHBLsBXAYBAQR9+gMGAwAECBYCCQYBAQQNswMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBNgElwEGARkFAgYBAAQKBgEBBKQClgEGAgAEAx0EIDsGAQEEvQGHAgYBAQTSAYQCBgEZBQIGAQAECgYBAQTZBEcGAwAFAgRJBAoQAxNNAwyJAQYDAAQIFgIJBgEBBA39AQYCAAQICQYBAQSTA3AGAQEE6gH1AQYCAAQICQYBAQSQAzkGAQEEjQE5BgIABAMLBJMENAYBGQUCBgQABAYHAQQFAgQ+BDECBgI+BgEFAxMxBgEABAoGBAAEBgcBBAUCBD4EMQIGAj4GAgAEEhADDDEGAQEEKE8GBAAEBgcBBAUVBIIBBMUBBO8BBMkBBJ0BBM4BBK0DBPkDBLIDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhWCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV8kBBgEOBQMEkwEE3wEEUp0BBgIABQIEAwQKDgUFBN0BBNwBBOIBBOEBAM4BBgIABQIEAwQKHQQgrQMGAQ4FBQSgAgSyAQSbAQS7AQRX+QMGAwAECBYCCQYBAQQNsgMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBOYElwEGARkFAgYBAAQKBgEBBKQClgEGAgAFAgQDBAodBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE4wRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BjgYGBAAEBgcBBAUHBGcEyAEEdQSAAQTUAgRmBFgCBgdnBgEBBA3IAQYBAQQNdQYBAQQogAEGAgAFAgQDBAoLBD/UAgYCAAQSEAMTZgYBAQQNWAYBAQTSAY8GBgQABAYHAQQFAwSdAQTIAgTOAgIGA50BBgEOBQQE3QEE3AEE4gEE4QHIAgYBAQSSA84CBgEBBJIDMQYCAAQDCwQ/GgYDAAQDFwMMDwMVrAYGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEON4GBgQABQIEAwQKFwMMDwNuCwTWAZcBBgQABAYHAQQFAwQyBEoEmgECBgMyBgEBBA1KBgEBBA2aAQYBAQQNuAcGBAAEBgcBBAUDBJ4CBKgBBM4BAgYDngIGAQEEDagBBgEZBQIGAQAECgYBAQT3BM4BBgIABAMdBCDIBwYEAAQGBwEEBQMEcQSGAgT6AQIGA3EGAQEEDYYCBgEABF/6AQYBAQT+BjsGBAAEBgcBBAUDBCwEKQQqAgYDLAYBAQQNKQYBAQQNKgYBAQQ4HgYDAAQDFwMMDwNv"),iQ=ct("BglCBENBBPkKRAYCGgTtBh4ELhgE1AmcAQSmCQAEBgcBBAUJBBEEGwQhBJIGBPcBBPYBBIwCBN0GBNkFAgYJEQYBBQTtBhsGAQUELiEGAQUEJJIGBgEBBMEE9wEGAQEEwAT2AQYBAQTCBIwCBgEBBIkH3QYGARkFAgYBAAQKBgQABAMXAwwPA2ILBJsD2QUGAQEEwgQ="),Mo=ct("BgpCBENBBPoKRAYCGgTvBh4ELhgEzwmcAQSlCQAEBgcBBAUFBBEEGwQhBHoEYQIGBREGAQUE7wYbBgEFBC4hBgEFBCR6BgEBBIwEYQYBAQSQAkUGFdYEBgUABAYHAQQFFgR0BBEEGwQhBJgBBFYELAQpBCoELwR7BDIEWARlBIgCBPADBNUCBNIHBGgEHwQ3BCcCBhZ0BgEFAhEGAQUEvAsbBgEFBC4hBgEFBCSYAQYBBQJWBgEABF8sBgEBBJwCKQYBAQScAioGAQEEuAsvBgEBBIQHewYCAAQDCwSXAjIGAQEEnAJYBgEBBLQLZQYCAAQDHQQgiAIGAQ4FAgTDAgSBA/ADBgEBBIIC1QIGAQEE9ALSBwYBAQT0AmgGAQEEggIfBgEOBQcE5AEEdgRSBJ8BBGME4AEE5wE3BgQABAgUAxUWAgkGAgAEAwsEpwInBgEBBKQIMwUCBgIiBgICBgGIAgYBBQTDAgQFAQSIAiMGAQIGAh8GAUgGAQUE5wEnBgECBgOLAQYCAgYCHAYBBQS2AVoGAQAECgQFAgQcBFqsAwYBJgMMjAMGAQAECgYCIgYCAgYBiAIGAQUEgQMEBQEEiAIjBgECBgQfBgEFBOcBVgYBBQE3BgGwAwYBBQTeCScGAQIGBIsBBgICBgEcBgEOBQQEkAEEwwEEQASRAQQFAQQcrAMGARQDE4wDBgEBBPwEwAEGAgIGAlUGAQUBTgYBFAMTBAUCBFUETicGBAAEBgcBBAUQBIsBBMUEBKcEBMsCBKwDBJ4BBIgBBK0BBIkBBLEBBE8EgQIE/QMEjQIEjAMEwAECBhCLAQYBAQTYA8UEBgEBBOsIpwQGAQEEwgjLAgYBAQTwCKwDBgMABAgUAxUJBgEBBJcIngEGAwAECBQDTAkGAQEEhweIAQYDAAQIFANMCQYBAQSGB60BBgMABAgUA2IJBgEBBI0JiQEGAwAECBQDYgkGAQEEiAexAQYDAAQIFANuCQYBAQS2C08GAwAECBQDbgkGAQEEtwuBAgYDAAQIFANuCQYBAQTfAv0DBgEZBQIGAQAECgYBAQSMB40CBgEBBP8IjAMGARkFAgYBAAQKBgEBBPwEwAEGAQEElAjFBAYEAAQGBwEEBQUEiQIEOgS3BQTQBQSVBgIGBYkCBgQABAYHAQQFAgQaBB4CBgIaBgEFBL8EHgYBBQQkOgYBAQScArcFBgEABF/QBQYBBQTzC5UGBgEFAacEBgQABAYHAQQFBwSiAgS4AwSgAwTGAwS+AwTIAwTlBwIGB6ICBgEBBMMEuAMGAgAEEhADE6ADBgIABBIQAxPGAwYCAAQSEAMTvgMGAgAEEhADE8gDBgIABBIQAxPlBwYCAAQSEAMTywIGARkFAgYEAAQGBwEEBQMEHwQJBNcBAgYDHwYBBQRVCQYEAAQIJgMMFANMCQYBAQSFB9cBBgEABAoGBAAEBgcBBAUDBB8ECQTXAQIGAx8GAQUE7gEJBgIABAgUAxPXAQYBAQT9BKcKBgQABAYHAQQFBwT3AQT2AQSqAQSMAgT5AQTPAQSyBwIGB/cBBgEBBMAE9gEGAQEEggKqAQYBAQSKB4wCBgEBBIkH+QEGAQEEwwTPAQYBDgUCBIQLBP8LsgcGBAAECBQD1QEWAgkGAQEExAKtAQYEAAQGBwEEBQQE5gcE0QcE0AcEXAIGBOYHBgEBBJwC0QcGAQ4FBARkBMQBBE8E5ArQBwYBAQScAlwGAQEEwwS4BAYEAAQGBwEEBQUEEQTmAQS1AwTaBwTjAwIGBREGAQ4FAgRXBO4B5gEGAQ4FBARPBMQBBMoHBNEBtQMGAgAEEhADDNoHBgQABAgUA24WAgkGAQEEnALjAwYCAAQDCwSnAoAMBgQABAYHAQQFDAQRBBsE1QIEaAT4AwSCAwTtAwRPBLEBBG0EmAIEgQICBgwRBgEFBL0LGwYBBQQu1QIGAQEE9AJoBgEBBIIC+AMGAQEEgQmCAwYBAQTtCO0DBgEBBP0ITwYBAQSyCLEBBgEBBJkIbQYBAQSPCZgCBgEBBI4IgQIGAQEEhQmHDAYEAAQGBwEEBQwE2gEEhQEE6AIEkwEEVQSNAwRjBHkEiAMEmwEEhgME3wUCBgzaAQYCAAQSEAMThQEGAgAEEhADE+gCBgIABBIQAxOTAQYCAAQSEAMTVQYCAAQSEAMTjQMGAgAEEhADE2MGAgAEEhADE3kGAgAEEhADE4gDBgIABBIQAxObAQYCAAQSEAMThgMGAgAEEhADE98FBgQABAgmA5oDFAOaAwkGBAAEBgcBBAUKBBoE6AIEkwEEVQSNAwRjBHkEiAMEmwEEhgMCBgoaBgEOBQcE4gYE6AcE9AUEpAYEsgUE8gcEuAboAgYCAAQSEAMTkwEGAgAEEhADE1UGAgAEEhADE40DBgIABBIQAxNjBgIABBIQAxN5BgIABBIQAxOIAwYCAAQSEAMTmwEGAgAEEhADE4YDBgIABBIQAxPcCwYEAAQGBwEEBQgEHwS+BgS7BwS5BwTpBwTxBwTsBwQ3AgYIHwYBDgUEBNsCBNgCBJ8BBLYEvgYGAgAEEhADE7sHBgIABBIQAxO5BwYCAAQSEAMT6QcGAgAEEhADE/EHBgIABBIQAxPsBwYCAAQSEAMTNwYEAAQIFAMVFgIJBgIABAMLBKcC/gsGBAAEBgcBBAUJBIUBBOcBBI8CBEAEeQS+AQTlAgS2AQT+AwIGCYUBBgIABBIQAxPnAQYCAAQSEAMTjwIGAgAEEhADE0AGAgAEEhADE3kGAgAEEhADE74BBgIABBIQAxPlAgYCAAQSEAMTtgEGAgAEEhADE/4DBgIABBIQAxPRCgYEAAQGBwEEBQgEhQEEVQRXBJMBBN8BBFIEvQYEuQQCBgiFAQYCAAQSEAMTVQYCAAQSEAMTVwYCAAQSEAMTkwEGAgAEEhADE98BBgIABBIQAxNSBgIABBIQAxO9BgYCAAQSEAMTuQQGAgAEEhADE6gKBgQABAYHAQQFBgSFAQSgAgSyAQSbAQS7AQRXAgYGhQEGAgAEEhADE6ACBgIABBIQAxOyAQYCAAQSEAMTmwEGAgAEEhADE7sBBgIABBIQAxNXBgIABBIQAxOWDAYEAAQGBwEEBQUEhQEE2wIE2AIE3AYEsgYCBgWFAQYCAAQSEAMT2wIGAgAEEhADE9gCBgIABBIQAxPcBgYCAAQSEAMTsgYGAgAEEhADE5oKBgQABAYHAQQFBASFAQSpAwS1BQTVBAIGBIUBBgIABBIQAxOpAwYCAAQSEAMTtQUGAgAEEhADE9UEBgIABBIQAxONDAYEAAQGBwEEBQQEhQEEVwTuAQQ3AgYEhQEGAgAEEhADE1cGAgAEEhADE+4BBgIABBIQAxM3BgQABAgUAxUWAgkGAgAEAwsEpwKMAwYEAAQGBwEEBQgE5AMEZAStAgSsAgSjAwTiAwQ0BK4DAgYI5AMGAgAEAwsEpwVkBgEOBQQEkAEEwwEEQASRAa0CBgEBBMAErAIGAQEEggKjAwYEAAQIFAPVARYCCQYBAQTEAuIDBgEBBPQCNAYBAQT0Aq4DBgIABAMdBCDAAQYBGQUCBgQABAYHAQQFAwRVBE4EKwIGA1UGAQUCTgYEAAQIJgMMFAMVCQYBAQS1CysGAQAECgYEAAQGBwEEBQMEVQROBCsCBgNVBgEFAU4GAgAECBQDEysGAQEE/QTXAgYEAAQGBwEEBQIEcQSAAgIGAnEGAgAEAwsEpwKAAgYBAQSKB2EGBAAEBgcBBAUGBI8BBJQBBIgCBGgE8AMEkgECBgaPAQYBBQSfApQBBgEFBK0LiAIGAQ4FAgTDAgSBA2gGAQEEggLwAwYBAQSCApIBBgEBBIIC"),rQ=ct("BgVCBENBBKgGRAYCGgS8BB4EJBgEkgVFBgKNBgYBAgYCKwYDAAQDFwMMDwNiUAYDAAQDFwMMDwMVwQcGAQIGAysGAwAEAxcDDA8DYlAGAwAEAxcDDA8DFUoGAwAEAxcDDA8DFQ=="),KM=ct("BgZCBENBBKkGRAYCGgS9BB4EJBgEkwWcAQSYBUUGAzwGAgAEAwsEae8CBgIABAMLBJUCzwQGAwAEBgcBAgYGnQEGAQ4FBATdAQTcAQTiAQThAbEHBgEBBEvUBwYBAQRLxwIGAQEESzwGAQEEvAG6BwYBAQRL"),sQ=ct("BgZCBENBBKoGRAYCGgTDAh4EJBgElAWcAQSZBUUGGGoGAgAEAwsElAS0BQYEAAQGBwEEBQsEWQQYBBwEOgTzAwT+AQSrAQT0AQRsBNoCBNkCAgYLWQYCAAQDCwTtARgGAQEE1AEcBgEOBQkExgQEkAEEpgcErQYEnwQEYwRABMYBBJEBOgYDAAUCBAMEChcDDA8DFfMDBgIABQIEAwQKCwTjAv4BBgEBBCWrAQYCAAUCBAMECgsEpQX0AQYBAAUCBEkECmwGAQAFAgRJBAraAgYBAQQl2QIGAQEEJTwGAgAEAwsEaVMGAgAEAwsEsAEvBgIABAMLBJYC9gUGBQAEBgcBBAUNBD0EsgIEGATKAgQ2BFsERwQ6BLoCBLkCBNACBIgBBGACBhA9BgEOBQIEzAEEywGyAgYCAAQDCwTjAhgGAQEE1AHKAgYBAQQlNgYBGQUCBgEABAoGAQEEJVsGAQEEJUcGAwAESRADE00DDDoGAQEEDboCBgEBBCW5AgYBAQQlrQEGAQEEJc8BBgEBBCXQAgYEAAQIJgMMFAODBQkGAQEEJfsBBgQABAgUAxUWAgkGAgAEAwsEnAOIAQYDAAQIFAMVCQYBAQQlYAYFAAQIJgMMFAMVFgIJBgEBBNMBMwUCBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUDBgEEBQEErQEGAQQFAQTPAQYBBAUBBPsBBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQMErQEEzwEE+wH9BQYEAAQGBwEEBQQE9wEE9gEEqgEEjAICBgT3AQYCAAQDCwSVBPYBBgEBBCiqAQYBAQTUAYwCBgEBBIoE/gUGBAAEBgcBBAUEBGcEwAIEXATNAgIGBGcGAQEEvAHAAgYCAAQDCwScA1wGAQEEJc0CBgEBBCU0BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQUABgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCiMBgYEAAQGBwEEBQYEagQRBJkBBIoCBCsEUAIGBmoGAQEE6QERBgEFBE+ZAQYBAQRLigIGBQAECCYDDBQDjgEWAgkGBAAEBgcBBAUCBBoEHgIGAhoGAQEESx4GAQEEOCsGAQEE9AZQBgEBBPUGggEGAgAEAwsEqAKaBgYFAAQGBwEEBQcEPQT/AQQYBFwEHAQ6BOUBAgYMPQYBDgUCBMwBBMsB/wEGAgAEAwsEnQMYBgEBBNQBXAYBAQQltQEGAQ4FCASBBASyAQS0AwTSAwSABATNAwTbAwTsA7kBBgEOBQQEzwME0AMEyQMEtgNHBgMABEkQAxNNAwwcBgEOBQYE1QME2AEEuAEEQATGAQSLAzoGAwAFAgQDBAoXAwwPAxXlAQYCAAUCBAMECh0EILoBBgQABAgUAxUWAgkGAQEE0wGzAQYEAAQIFAMVFgIJBgEBBNMBMwUCBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUFBgEEBQEEtQEGAQQFAQS5AQYBBAUBBEcGAQQFAQS6AQYBBAUBBLMBBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQUEtQEEuQEERwS6AQSzAaEGBgEZBQIGAQEE9gQGAQEE4QQxBgIABAMLBD+qBAYEAAQGBwEEBQMEMgQRBJoBAgYDMgYBAQQNEQYBBQSbApoBBgEBBA0aBgMABAMXAwwPAxXvAgYCAAQDCwSVAswEBgQABAYHAQQFBgR7BC8EawQ7BFoErwECBgZ7BgIABAMLBJcCLwYBAQSRA2sGAQEE3QI7BgEBBL0BWgYBDgUEBJABBMMBBEAEkQGvAQYEAAQIFAPVARYCCQYBAQTEAsAHBgQABAYHAQQFCARqBBEESgR3BHwEoAEEKwRQAgYIagYBAQTpAREGAQUE0QJKBgEBBPgGdwYBDgUDBL8BBMIBBMEBfAYBAQQ4oAEGARkFAgYBAAQKBgEBBIMEKwYBAQT2BlAGAQEE9wY7BgQABAYHAQQFAwQsBCkEKgIGAywGAQEEDSkGAQEESyoGAQEEONMCBgQABAYHAQQFBgRKBHcEfAQcBDwEnwMCBgZKBgEBBEt3BgEOBQMEvwEEwgEEwQF8BgEBBDgcBgEOBQcEtgEEVQTrAwSPAgRABL4BBHk8BgIABQIEAwQKCwRpnwMGBAAECBQDYhYCCQYBAQTpAaICBgQABAMXAwwPA24LBNYBGAYEAAQDFwMMDwNMCwSbAx4GAgAEAwsElAI="),HA=ct("BgpCBENBBP8KRAYCGgSBAx4EJBgExwmcAQTZCQAEBgcBBAUXBBEEGwQhBOQDBC8E4gMENAQ7BGsEiwEEZATTAgS0AQROBJ4BBIgBBIkBBL0DBK0CBKwCBKMDBKEBBK4DAgYYEQYBBQSBAxsGAQUELiEGAQUEJOQDBgIABAMLBKcFLwYBAQSEB+IDBgEBBMEENAYBAQTBBDsGAQEEzQtrBgEBBMwLiwEGAQEE2ANkBgEOBQQEkAEEwwEEQASRAdMCBgMABAgUA44BCQYBAQTOC7QBBgMABAgUA0wJBgEBBIUHTgYDAAQIFAN+CQYBAQTKC54BBgMABAgUA0wJBgEBBIcHiAEGAwAECBQDTAkGAQEEhgeJAQYDAAQIFANiCQYBAQSIB70DBgQABAgmAwwUAxUJBgEBBMsLrQIGAgAEAwsElQSsAgYBAQTCBKMDBgQABAgUA9UBFgIJBgEBBMQC2AUGAQEE7gahAQYBAQSECa4DBgIABAMdBCBFBgLrCwYFAAQGBwGcAQTgCQQFAwSnBwStAgSsAgIGBKcHBgEBBIMHrQIGAQEEkgmsAgYBAQSRCdgFBgEBBO4GoQEGBAAEBgcBBAUGBLgDBKADBMYDBL4DBMgDBIACAgYGuAMGAgAEEhADE6ADBgIABBIQAxPGAwYCAAQSEAMTvgMGAgAEEhADE8gDBgIABBIQAxOAAgYEAAQDFwMMDwNuCwSiBQ=="),Lu=ct("BgpCBENBBIALRAYCGgS/BB4EJBgExAkABAYHAQQFCwQRBBsEIQR7BC8EOgQcBFoErwEEcgSOAgIGDBEGAQUEvwQbBgEFBC4hBgEFBCR7BgIABAMLBJcCLwYDAAQDFwMMDwMV5gEGAQEE+wQ6BgMABAMXAwwPAxUcBgIABAMOBQUEtgEEkAEEwwEEQASRAVoGAgAFAgQDBAoOBQUABJABBMMBBEAEkQGvAQYDAAQIFgIJBgEBBJAJcgYCAAQDHQQgjgIGAgAEAx0EIBkFBQYCGATWCwIGAxwGAQUEtgFaBgEFAK8BBgEUAxMGAhgEjAoCBgIcBgEFBJABWgYBBQSQAQYCGASmCgIGAxwGAQUEwwFaBgEFBMMBrwEGARQDEwYCGATpCwIGAxwGAQUEQFoGAQUEQK8BBgEUAxMGAhgEnwoCBgMcBgEFBJEBWgYBBQSRAa8BBgEUAxNFBgLmAQYBGQUCBgQABAYHAQQFAgQABC8CBgIABgEFBIEBLwYDAAQDFwMMDwMVBgQABAYHAQQFBAQABFkEUQSlAQIGBAAGAQUEMFkGAgAEAwsE7QFRBgIABBIQAwylAQYCAAQDCwQ/mQwGBAAEBgcBBAUDBIQGBNsBBFoCBgOEBgYCAAQDDgUDBL4EBMILBL4L2wEGAgAEAwsEoQVaBgIABAMOBQcE2AEEkAEEQAS4AQTGAQSLAwSRAQ=="),Pu=ct("BgpCBENBBIELRAYCGgSLBx4EJBgEwwmcAQSkCQAEBgcBBAUPBBEEGwQhBMgGBCwEKQQqBC8ENAS8BgTXBgSABgSBAgSCAwTHBgIGDxEGAQUEiwcbBgEFBC4hBgEFBCTIBgYCAAQDCwT0CSwGAQEEDSkGAQEEDSoGAQEEOC8GAQEEDTQGAQEE6wG8BgYEAAQGBwEEBQMEywYEygYE5AcCBgPLBgYBBQOHAcoGBgEFA+EC5AcGAQUB1wYGAwAECBQDhwEJBgEBBOIIgAYGAwAECBQD4QIJBgEBBK0IgQIGAwAECBQDhwEJBgEBBN8CggMGAQEE7AjHBgYBAQQoRQYMGgYDAAQDFwMMDwMVswQGAwAEAxcDDA8Dfh4GAgAEAwsElAIxBgIABAMLBD80BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQUABgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCigCwYBDgUNBO8LBNcBBMoHBPMBBNkBBMQBBNAKBKkEBGQEMARaBG0ENrAEBgQABAYHAQQFBwQRBBoE7gUELAQpBCoELwIGBxEGAQEEhgQaBgEBBIUE7gUGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEOCwGAQEEDSkGAQEEDSoGAQEEOC8GAQEEDZ8LBgQABAYHAQQFBQSwBATvAQSkBwSuBgSQBwIGBbAEBgEBBNwI7wEGAQ4FAwRVBFcE7gGkBwYBDgUTBLUEBLYBBOcBBNgBBEAEeQS+AQTbAgRSBKACBLIBBK0KBNgCBO4BBFcExgQE5woEnwQEjQuuBgYEAAQIFAPhAhYCCQYCAAQDCwSWBJAHBgQABAgUA+ECFgIJBgIABAMLBJYEzQoGBAAEBgcBBAUCBBEEGgIGAhEGAQEEhgQaBgEBBIUEywoGBAAEBgcBBAUEBP8FBM0BBJ0GBOIHAgYE/wUGAgAEAwsElgTNAQYBDgUQBMIKBJEKBJALBOQLBNoLBLADBI4MBK8KBMsDBKUKBMAKBN0LBMgKBOgKBJgMBKULnQYGAQEE3wTiBwYBAQTfBLgEBgQABAYHAQQFBgTlBgQRBOYBBDUE4wMErwYCBgblBgYCAAQDCwTzCREGAQ4FAgRXBO4B5gEGAQEEhgQ1BgEBBIUE4wMGAQ4FAwS5CQS7CQS6Ca8GBgMABBIQAxNNA+ECggMGBAAEBgcBBAUKBN4HBKwFBPAHBNYHBNwHBPAFBOsHBLwHBP4DBO8HAgYK3gcGAwAEEhADE00DhwGsBQYDAAQSEAMTTQOHAfAHBgMABBIQAxNNA4cB1gcGAwAEEhADE00DhwHcBwYDAAQSEAMTTQOHAfAFBgMABBIQAxNNA4cB6wcGAwAEEhADE00DhwG8BwYDAAQSEAMTTQOHAf4DBgMABBIQAxNNA4cB7wcGAwAEEhADE00DhwE="),zA=ct("BglCBENBBO8KRAYCGgTmBh4ELhgE0QkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOYGGwYBBQQuIQYBBQQkegYBAQSMBGEGAQEEkAJFBgLWBAYEAAQGBwEEBREEdAQRBBsEIQSYAQRWBCwEKQQqBDIEWARlBDQEhgEEHwQ3BCcCBhF0BgEFAhEGAQUErgsbBgEFBC4hBgEFBCSYAQYBAARfVgYBAARfLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQkEMAQ2BJUBBKkBBIMBBLcBBG0E2gUEpgECBgkwBgEBBJcDNgYBGQUCBgEABAoGAQEEmAOVAQYCAAQICQYBAQSQBKkBBgIABAgJBgEBBI8EgwEGAgAECAkGAQEEjgS3AQYBAQSRBG0GBAAEBgcBBAUCBB8ENwIGAh8GAQ4FAwS2BATbAgTYAjcGAwAECBYCCQYBAAQD2gUGBAAEBgcBBAUDBMEFBG0EvwcCBgPBBQYDAAQDFwMMDwN+bQYDAAQDFwMMDwN+vwcGAwAEAxcDDA8DfqYBBgIABAgJBgEBBP8EYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEpwtoBgEBBF6SAQYBAQRe"),$A=ct("BglCBENBBPAKRAYCGgTnBh4ELhgE0gkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOcGGwYBBQQuIQYBBQQkegYBAQSMBGEGAQEEkAJFBgLWBAYEAAQGBwEEBRIEdAQRBBsEIQSYAQRWBCwEKQQqBDIEWARlBDQEhgEEjQIEHwQ3BCcCBhJ0BgEFAhEGAQUEsQsbBgEFBC4hBgEFBCSYAQYBBQJWBgEFASwGAQEERikGAQEERioGAQEEkwIyBgEBBEZYBgEBBKYCZQYCAAQDHQQgNAYBAQSSAoYBBgEBBF6NAgYBAQSSBB8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQcElAcEgQEE4QMEtwEEbQTfAwSmAQIGB5QHBgEABAaBAQYBAAQG4QMGAQEEkwm3AQYBAQSRBG0GBAAEBgcBBAUCBB8ENwIGAh8GAQ4FAwS2BATbAgTYAjcGAwAECBYCCQYBAAQD3wMGBAAEBgcBBAUGBJ4BBLQBBE4EigEElQEEsQICBgaeAQYBAAQItAEGAQAECE4GAQAECIoBBgEABAiVAQYBAAQIsQIGAQAECKYBBgQABAgmAwwUAwwJBgEBBP4EYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqAtoBgEBBF6SAQYBAQRe"),UA=ct("BglCBENBBPUKRAYCGgTsBh4ELhgE0AkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOwGGwYBBQQuIQYBBQQkegYBAQSIBGEGAQEEkAJFBgJ6BgQABAYHAQQFEQR0BBEEGwQhBJgBBFYELAQpBCoEMgRYBGUENASGAQQfBDcEJwIGEXQGAQUCEQYBBQS7CxsGAQUELiEGAQUEJJgBBgEFAlYGAQUBLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQQEsQYEgwEEpgEErAcCBgSxBgYBAAQGgwEGAgAECAkGAQEEjgSmAQYCAAQICQYBAQT+BKwHBgEOBQcEYwSbAQSxCgTJCgSwAgS+AgTxC2EGBAAEBgcBBAUEBI8BBJQBBGgEkgECBgSPAQYBBQSfApQBBgEFBKwLaAYBAQRekgEGAQEEXg=="),LA=ct("BglCBENBBPEKRAYCGgToBh4ELhgEzgkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOgGGwYBBQQuIQYBBQQkegYBAQSIBGEGAQEEkAJFBgJ6BgQABAYHAQQFEQR0BBEEGwQhBJgBBFYELAQpBCoEMgRYBGUENASGAQQfBDcEJwIGEXQGAQUCEQYBBQSyCxsGAQUELiEGAQUEJJgBBgEFAlYGAQUBLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQIELwTDAwIGAi8GAQEERsMDBgEBBJcJYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqQtoBgEBBF6SAQYBAQRe"),PA=ct("BglCBENBBPMKRAYCGgTqBh4ELhgEzAkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOoGGwYBBQQuIQYBBQQkegYBMwUCBgEBBLMLBgICBgEtBgEOBQUE0wQEqQEE2gEEgQEETgQFAQQtYQYBAQSQAkUGAWEGBAAEBgcBBAUEBI8BBJQBBGgEkgECBgSPAQYBBQSfApQBBgEFBKsLaAYBAQRekgEGAQEEXg=="),FA=ct("BglCBENBBPIKRAYCGgTpBh4ELhgEzQkABAYHAQQFBgQRBBsEIQSdAgR6BGECBgYRBgEFBOkGGwYBBQQuIQYBBQQknQIGAQEE9Qh6BgEBBIgEYQYBAQSQAkUGCp0CBgQABAYHAQQFDAQyBCwEKQQqBC8ENQQtBMkCBB0EZQQ0BIYBAgYMMgYBAQRGLAYBAQRGKQYBAQRGKgYBAQSTAi8GAQEERjUGARkFAgYBAAQKBgEBBEYtBgEOBQYETwSKAQQ2BIMBBIcDBJoCyQIGAgAFAgQDBAoPA34dBgIABQIEAwQKDgUDAATOAwTKA2UGAgAEAx0EIDQGAQEEkgKGAQYBAQReegYFAAQGBwEEBRMEdAQRBBsEIQQtBJgBBFYELAQpBCoEMgRYBGUENASGAQSNAgQfBDcEJwIGE3QGAQUCEQYBBQS6BBsGAQUELiEGAQUEJC0GAQ4FBgRPBIoBBDYEgwEEhwMEmgKYAQYBBQJWBgEFASwGAQEERikGAQEERioGAQEEkwIyBgEBBEZYBgEBBKYCZQYCAAQDHQQgNAYBAQSSAoYBBgEBBF6NAgYBAQSSBB8GAQ4FCATkAQR2BFIEnwEEYwTgAQS+AgSwAjcGAwAECBYCCQYBAAQDJwYBAAQGMwUGBgIiBgICBgEtBgEFBE8EBQEELSMGAQIGAScGAQEE4AQGAiIGAgIGAS0GAQUEigEEBQEELSMGAQIGAScGAQEE8wQGAiIGAgIGAS0GAQUENgQFAQQtIwYBAgYBJwYBAQTyBAYCIgYCAgYBLQYBBQSDAQQFAQQtIwYBAgYBJwYBAQTsBAYCIgYCAgYBLQYBBQSHAwQFAQQtIwYBAgYBJwYBAQT5BAYCIgYCAgYBLQYBBQSaAgQFAQQtIwYBAgYBJwYBAQTrBKQLBgIABAgJBgEABAaKBgYEAAQGBwEEBQMETwSxAQRbAgYDTwYBAQTsAbEBBgEBBOwBWwYBAQTsAZIHBgQABAYHAQQFAwT8AQSKAQSVAQIGA/wBBgEBBOwBigEGAQEE7AGVAQYBAQTsAZEHBgQABAYHAQQFAgQ2BJUBAgYCNgYBAAQGlQEGAQEE7AGmBgYEAAQGBwEEBQIEgwEEtwECBgKDAQYBAQTsAbcBBgEABAbJBwYEAAQGBwEEBQIEyQIE6QMCBgLJAgYCAAQDDwN+6QMGAgAECAkGBAAEBgcBBAUFBBEENQQYBKEBBBwCBgYRBgMABAMXAwwPAxU1BgEBBEYYBgMABAMXAwwPA26hAQYCAAQDDwNuHAYDAAQDFwMMDwMVOQYBAQSABZQGBgQABAYHAQQFAwQdBGYEsQMCBgMdBgEOBQIEzgMEygNmBgEOBQIE8gEE3wexAwYBAAQDYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqgtoBgEBBF6SAQYBAQRe"),Fu=ct("BgpCBENBBPQKRAYCGgS6BB4ELhgE0wkABAYHAQQFEwR0BBEEGwQhBC0EmAEEVgQsBCkEKgQyBFgEZQQ0BIYBBI0CBB8ENwQnAgYTdAYBBQIRBgEFBLoEGwYBBQQuIQYBBQQkLQYBDgUMBNMEBKkBBNoBBIEBBE4EMARPBIoBBDYEgwEEhwMEmgKYAQYBBQJWBgEABF8sBgEBBEYpBgEBBEYqBgEBBJMCMgYBAQRGWAYBAQSmAmUGAgAEAx0EIDQGAQEEkgKGAQYBAQRejQIGAQEEkgQfBgEOBQgE5AEEdgRSBJ8BBGME4AEEvgIEsAI3BgMABAgWAgkGAQAEAycGADMFFAYCIgYCAgYBLQYBBQTTBAQFAQQtIwYBAgYBJwYBAQSJCQYCIgYCAgYBLQYBBQSpAQQFAQQtIwYBAgYBJwYBAQTMCAYCIgYCAgYBLQYBBQTaAQQFAQQtIwYBAgYBJwYBAQSjCAYCIgYCAgYBLQYBBQSBAQQFAQQtIwYBAgYBJwYBAQSdCAYCIgYCAgYBLQYBBQROBAUBBC0jBgECBgEnBgEBBIEIBgIiBgICBgEtBgEFBDAEBQEELSMGAQIGAScGAQEE+gcGAiIGAgIGAS0GAQUETwQFAQQtIwYBAgYBJwYBAQTgBAYCIgYCAgYBLQYBBQSKAQQFAQQtIwYBAgYBJwYBAQTzBAYCIgYCAgYBLQYBBQQ2BAUBBC0jBgECBgEnBgEBBPIEBgIiBgICBgEtBgEFBIMBBAUBBC0jBgECBgEnBgEBBOwEBgIiBgICBgEtBgEFBIcDBAUBBC0jBgECBgEnBgEBBPkEBgIiBgICBgEtBgEFBJoCBAUBBC0jBgECBgEnBgEBBOsEBgIiBgICBgEfBgEFBOQBBAUBBB8jBgECBgJWBgEFAjcGAgAECBQDEwYCIgYCAgYBHwYBBQR2BAUBBB8jBgECBgJWBgEFATcGAQEE7wgGAiIGAgIGAR8GAQUEUgQFAQQfIwYBAgYCVgYBBQE3BgEBBIIJBgIiBgICBgEfBgEFBJ8BBAUBBB8jBgECBgJWBgEFATcGAQEE6QgGAiIGAgIGAR8GAQUEYwQFAQQfIwYBAgYCVgYBBQE3BgEBBJAIBgIiBgICBgEfBgEFBOABBAUBBB8jBgECBgJWBgEFATcGAQEE5QgGAiIGAgIGAR8GAQUEvgIEBQEEHyMGAQIGAlYGAQUBNwYBAQTPCAYCIgYCAgYBHwYBBQSwAgQFAQQfIwYBAgYCVgYBBQE3BgEBBJsIRQYUhgsGBAAEBgcBBAUCBKkBBJ0CAgYCqQEGAgAECAkGAQEEjwSdAgYEAAQGBwEEBQMExwIEvAIENQIGA8cCBgEBBF68AgYCAAQSEAMTNQYBGQUCBgEABAoGAQEERpEMBgQABAYHAQQFBwSYAgT8AQS2BQSpAQROBIoBBKYBAgYHmAIGAgAECAkGAQEElAn8AQYCAAQICQYBAQSBBbYFBgEZBQIGAQAECgYBAQSNBKkBBgIABAgJBgEBBI8ETgYCAAQICQYBAQSXA4oBBgIABAgJBgEBBJgDpgEGAgAECAkGAQEE/wS+CgYEAAQGBwEEBQEE2gECBgHaAQYCAAQICQYBAQSNBLYKBgQABAYHAQQFAQSBAQIGAYEBBgEBBI0EhQoGBAAEBgcBBAUCBE4EnQICBgJOBgIABAgJBgEBBJcDnQIGBAAEBgcBBAUCBMcCBLwCAgYCxwIGAQEEXrwCBgIABBIQAxP+CQYEAAQGBwEEBQEEMAIGATAGAQEElwOKBgYEAAQGBwEEBQMETwSxAQRbAgYDTwYCAAQICQYBAQSWCbEBBgIABAgJBgEBBJUJWwYCAAQICQYBAQSYCZIHBgQABAYHAQQFAwT8AQSKAQSVAQIGA/wBBgIABAgJBgEBBIEFigEGAgAECAkGAQEEmAOVAQYCAAQICQYBAQSQBJEHBgQABAYHAQQFAgQ2BJUBAgYCNgYBAQSYA5UBBgIABAgJBgEBBJAEpgYGBAAEBgcBBAUCBIMBBLcBAgYCgwEGAgAECAkGAQEEjgS3AQYBAQSRBMkHBgQABAYHAQQFAgTJAgTpAwIGAskCBgIABAMPA37pAwYCAAQICQYBAQT8CP0LBgQABAYHAQQFBQQRBDUEGAShAQQcAgYGEQYDAAQDFwMMDwMVNQYBAQRGGAYDAAQDFwMMDwNuoQEGAgAEAw8DbhwGAwAEAxcDDA8DFTkGAQEEgAWUBgYEAAQGBwEEBQMEHQRmBLEDAgYDHQYBDgUCBM4DBMoDZgYBDgUCBPIBBN8HsQMGAQAEA+MLBgQABAgmAwwUAwwJBgEFBLcJiAwGBAAECCYDDBQDDAkGAQUEtgnTCwYEAAQIJgMMFAMMCQYBBQS1CZwKBgQABAgmAwwUAwwJBgEFBLQJpgsGBAAECCYDDBQDDAkGAQUEswmLCwYEAAQIJgMMFAMMCQYBBQSyCbAKBgQABAgmAwwUAwwJBgEFBLgJ"),JM=ct("BgpCBENBBPcKRAYCGgSwCx4EJBgEwQkABAYHAQQFAwR0BIQBBKYBAgYFdAYBAARfhAEGAQEEigknBgCoAQYBAQSvCKYBBgIABAgJBgEBBPMCGQUNBgIYBLUKAQSiCAYCGASzCgEEnggGAhgEtAoBBKAIBgIYBJIKAQSKCAYCGASTCgEEjAgGAhgEjQoBBIUIBgIYBPQLAQT3CAYCGAT1CwEE+QgGAhgE+AkBBPkHBgIYBPkJAQT9BwYCGAT6CQEE/wcGAhgE5QsBBPEIBgQYBOMKBAUBBKgBAgYBdAYBBQFIBgEEBQEEJ0UGGZIMBgIABAMOBQ4E/QIE+wIE/AIE+QIE+gIE+AIE/wIEgAME9QIE9gIE9wIE/gIE1wME1gOoAQYEAAQGBwEEBQQEcQSAAgSGAgT6AQIGBHEGAgAEAw4FOASHBQSGBQSFBQShCQSiCQSjCQSIBQSrCQSsCQSJBQStCQSuCQSvCQSKBQSLBQSwCQSMBQSNBQSOBQSPBQSQBQSRBQS8CQS9CQS+CQSWBQTbCQTcCQTdCQTaCQSXBQSaBQSbBQScBQSdBQSeBQThCQTiCQSfBQScCQSdCQTWCQTVCQTXCQSgCQSfCQSeCQSqCQSoCQSnCQSpCQTYCQSxCQS/CQTACQTfCYACBgMABAMXAwwPA2KGAgYBAARf+gEGAQEE+ASMDAYDBAUBBCcCBgF0BgEFAkgGAQQFAQSoAbwKBgEzBQIGAQEEowEGAQIGAoQBBgEFBP0CJwYBAQSEBLcKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPsCJwYBAQSEBLoKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPwCJwYBAQSEBJYKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPkCJwYBAQSICJkKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPoCJwYBAQSDCY8KBgEzBQIGAQEEowEGAQIGAoQBBgEFBPgCJwYBAQSGCPYLBgEzBQIGAQEEowEGAQIGAoQBBgEFBP8CJwYBAQSDB/kLBgEzBQIGAQEEowEGAQIGAoQBBgEFBIADJwYBAQTPC/0JBgEzBQIGAQEEowEGAQIGAoQBBgEFBPUCJwYBAQT3B4EKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPYCJwYBAQSBB4QKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPcCJwYBAQSBB+YLBgEzBQIGAQEEowEGAQIGAoQBBgEFBP4CJwYBAQTyCPsJBgQABAYHAQQFBAQwBIUGBLYHBMIFAgYEMAYBAQTwBoUGBgEBBMkLtgcGAgAECAkGAQEEwAvCBQYCAAQICQYBAQS/C70KBgQABAYHAQQFBgSBAQThAwTRBQSrBQTfAwROAgYGgQEGAQEE+gbhAwYEAAQGBwEEBQgEhQEEtgEEVQTlAgTQBASPAgRABOcBAgYIhQEGAgAEEhADE7YBBgIABBIQAxNVBgIABBIQAxPlAgYCAAQSEAMT0AQGAgAEEhADE48CBgIABBIQAxNABgIABBIQAxPnAQYCAAQSEAMT0QUGAgAECAkGAQEE8warBQYDAAQIFgIJBgIABAMLBGnfAwYEAAQGBwEEBQIEugYEsQICBgK6BgYBAQTQC7ECBgIABAgJBgEBBNELTgYCAAQICQYBAQTzAvgLBgQABAYHAQQFAgSLAQSBAQIGAosBBgEBBNgDgQEGAQEE+gaUCgYEAAQGBwEEBQME8wEEigME4AUCBgPzAQYBMwUCBgEBBPMGBgICBgEcBgEFBOsDBAUBBBzgBQYDAAQIFgIJBgMABAMXAwwPAxWKAwYCAAQDCwSoBYoMBgQABAYHAQQFBQTYAQQ8BHUE1AIEpgMCBgXYAQYBBQI8BgIABAMLBGl1BgIABAMLBD/UAgYCAAQSEAMTpgMGAQUEjwLvBQYEAAQGBwEEBQUEjAEEGwRmBKcBBPICAgYFjAEGAwAEAxcDDA8DTBsGAwAEAxcDDA8Db2YGAwAEAxcDDA8DFacBBgIABAMOBQIE6AEEmwTyAgYCAAQSEAMMzwQGAwAEBgcBAgYIhAEGAQEEkQIvBgEBBJECUwYBAQSRAooDBgEBBJECiwwGAQEEkQJ7BgEBBJECHAYBAQSRAvICBgIABBIQAxP8CwYEAAQDFwMMDwNMSAYBCwSlApAKBgUABAYHAQQFAgTCAgSFAgIGBMICBgEBBPIGhQIGAgAEAw4FBATIBASdBATCAgShBJkCBgIABAMLBKAF6gIGABkFBAYEGATiCwQFAQSZAgIGAYUCBgEFBMgESAYBBAUBBOoCBgQYBKAKBAUBBJkCAgYBhQIGAQUEnQRIBgEEBQEE6gIGAxgEnAsCBgGFAgYBBQTCAkgGAfEBBQIGAQQFAQSZAgYBBAUBBOoCBgQYBJcMBAUBBOoCAgYChQIGAQUEoQTCAgYBMwUCBgEBBPIGBgECBgJmBgEFBPIBpwEGAQUE6AFIBgEEBQEEmQLnCwYEAAQGBwEEBQgEHwTyBQSrBwSjBgQrBL0FBMQGBLMGAgYIHwYCAAQDDgUGBOoKBMwKBLACBL4CBJcLBOoL8gUGAgAEAxcDDKsHBgIABQIEAwQKFwMMowYGAgAEEhADEysGAwAEAxcDDA8DYr0FBgIABAMOBQME2QYEqgoE8AvEBgYEAAQGBwEEBQUEHwSWBwTYBgS7AgQrAgYFHwYCAAQDDgUDBO4BBOUCBFKWBwYCAAUCBBIEChADE9gGBgIABQIEAwQKFwMMuwIGAgAFAgQDBAodBCArBgIABAMPA2KzBgYEAAQGBwEEBQUE1AYE/AUEzgUEkwcEoAYCBgXUBgYCAAQDFwMM/AUGAgAECAkGAgAEAxcDDM4FBgIABAMXAwyTBwYCAAQICQYCAAQDFwMMoAYGAgAEAxcDDA=="),VA=ct("BglCBENBBKcGRAYCGgS7BB4ELhgElQUABAYHAQQFHQQRBBsEIQT0BwQsBCkEKgQyBFgEZQQ0BPcDBB8EmAIE/AEE2gEEqQEETgRPBLEBBFsEigEElQEEgwEEtwEEpgEEgQIEmgIEhgECBh0RBgEFBLsEGwYBBQQuIQYBBQQk9AcGAgAEAwsE9wksBgEBBA0pBgEBBA0qBgEBBDgyBgEBBA1YBgEOBQQEgwME8AIE6QIEV2UGAgAEAx0EIDQGAQEE6wH3AwYBAQQoHwYBDgUIBOQBBHYEUgSfAQRjBOABBL4CBLACmAIGAgAECAkGAQEEjQj8AQYCAAQICQYBAQSrCNoBBgIABAgJBgEBBJwIqQEGAgAECAkGAQEEywhOBgIABAgJBgEBBI4DTwYCAAQICQYBAQSxCLEBBgIABAgJBgEBBJgIWwYCAAQICQYBAQTuCIoBBgIABAgJBgEBBOYIlQEGAgAECAkGAQEE1AiDAQYCAAQICQYBAQTGCLcBBgEBBPMIpgEGAgAECAkGAQEEkgiBAgYCAAQICQYBAQTfApoCBgQABAYHAQQFAwScBgSwBQSuBwIGA5wGBgMABAgWAgkGAQ4FAgTOAwTKA7AFBgEFAq4HBgIABBIQAxOGAQYBAQQoRQZXGgYDAAQDFwMMDwMVHgYDAAQDFwMMDwNvMQYCAAQDCwQ/ogIGBAAEAxcDDA8DbgsE1gGCDAYEAAQDFwMMDwN+CwTWAd4GBgQABQIEAwQKFwMMDwNuCwTWAaMLBgQABQIEAwQKFwMMDwN+CwTWAVgGAQ4FBASDAwTwAgTpAgRXcAYCAAUCBAMECg4FAgSXBAA5BgIABAMLBJMEogsGAgAFAgQDBAoLBJMEOwYEAAQGBwEEBQMELAQpBCoCBgMsBgEBBA0pBgEBBA0qBgEBBDiXAQYEAAQGBwEEBQMEMgRKBJoBAgYDMgYBAQQNSgYBAQQNmgEGAQEEDawGBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBDiDDAYEAAQGBwEEBQIE7wMEcgIGAu8DBgEBBA1yBgIABAMdBCDDCgYEAAQGBwEEBQQEswIE4AMEtwME+wUCBgSzAgYBAQQN4AMGAgAFAgQDBAoPAxW3AwYBAQQN+wUGAgAEAx0EIJ4LBgQABAYHAQQFAgSqAQR4AgYCqgEGAQEEogF4BgEBBA00BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQAECgYEAAQGBwEEBQIEPgQxAgYCPgYCAAQSEAMMMQYBAQQomAIGBAAEBgcBBAUKBM0FBBEENQShBwQYBPYHBPkBBBwExwEEYAIGCs0FBgEBBA0RBgEOBQYEZASkAwQwBG0ENgStATUGAQEEDaEHBgMABBIQAxNNA5kJGAYBAQSiAfYHBgEBBKIB+QEGAQEEJRwGAQEEDccBBgIABQIEAwQKHQQgYAYDAAQIFgIJBgEBBA3KCgYEAAQGBwEEBQ8EqwEEGATtBwT/AwSqAwTcAgTJAQQcBGwE1gIEYATuAwS6AwSkBARwAgYPqwEGAQEEDRgGAQEE3gLtBwYBAAUCBEkECv8DBgIABQIEAwQKDwMVqgMGARkFAgYBAAQKBgEBBOAI3AIGAgAFAgQDBAoPA37JAQYBDgUEBJMBBN8BBFIEuwEcBgEOBQYEkwEE3wEEUgS7AQTVBARXbAYBAAUCBEkECtYCBgEABQIESQQKYAYDAAQIFgIJBgEBBA3uAwYBGQUCBgEABAoGAQEE+gS6AwYBGQUCBgEABAoGAQEE3ASkBAYCAAQICQYBAQSsCHAGAQEE6gGdCwYEAAQGBwEEBQUEEQSgBwTzBQT4BQSzAgIGBREGAQ4FBQS4BQSwBwSrAwRSBOsFoAcGAQAFAgRJBArzBQYBAAUCBEkECvgFBgEABQIESQQKswIGAgAFAgQDBAoPAxWkBAYEAAQGBwEEBQYErgEEWQQcBMcBBNwCBDkCBgauAQYBAQQNWQYBAQQNHAYCAAUCBAMECg8DFccBBgIABQIEAwQKHQQg3AIGAgAFAgQDBAoPA345BgEBBOMIgQEGBAAEBgcBBAUOBC8EHASlBgTHAwRyBI4CBPgDBMkFBLsGBLsDBKgDBN4DBMoEBDkCBg8vBgEBBA0cBgEBBA2lBgYBAQQNxwMGAgAECAkGAQEEogFyBgIABAMdBCCOAgYCAAQDHQQg+AMGBAAECCYDmgMUA5oDCQYBAQSACckFBgIABAgJBgEBBIcIuwYGAgAECAkGAQEE1QjDAwYBGQUCBgEABAoGAQEEtAi7AwYCAAQICQYBAQSnCKgDBgIABAgJBgEBBJEI3gMGAwAECBYCCQYBAQQNygQGARkFAgYBAAQKBgEBBPQEOQYBAQSNAYYMBgQABAYHAQQFCQQaBBwEKwTKAQTGAgSiBgSLBgTnBwTeAwIGCRoGAQ4FBwTiBgToBwT0BQSkBgSyBQTyBwS4BhwGAQ4FCQToAgSTAQRVBGMEiAMEeQSbAQSGAwSNAysGAgAFAgQDBAoPA37KAQYDAAQIFgIJBgEBBA3GAgYDAAQIFgIJBgEBBA2iBgYCAAQICQYBAQTFCIsGBgMABAgWAgkGAQEEDecHBgMABAgWAgkGAQEEDd4DBgMABAgWAgkGAQEEDfMBBgQABAYHAQQFDQRTBBgE0QIElQcEHATXAQTHAQTUAwQ5BLsDBKgDBMoBBMYCAgYNUwYBAQQNGAYBAQTeAtECBgIABQIEAwQKDwMVlQcGAgAFAgQDBAoPAxUcBgEBBA3XAQYBGQUCBgEABAoGAQEEhgnHAQYCAAUCBAMECh0EINQDBgEZBQIGAQAECgYBAQTxBDkGAQEEjQG7AwYCAAQICQYBAQTaBKgDBgMABAgWAgkGAQEEDcoBBgMABAgWAgkGAQEEDcYCBgMABAgWAgkGAQEEDZcKBgQABAYHAQQFAwRTBBwEuAECBgNTBgEBBA0cBgIABQIEAwQKDwMVuAEGAQAEX5AMBgQABAYHAQQFBAQ2BHEEKwRQAgYENgYBDgUCBL4BBHlxBgIABAMPAxUrBgEBBKIBUAYCAAQDDwMVkgsGBAAEBgcBBAUEBEoEdwSkAQQrAgYESgYBAQQNdwYCAAQDDwMVpAEGAgAEAw8DFSsGAQEEJdUKBgQABAYHAQQFAwQ8BHUEgAECBgM8BgEBBA11BgEBBCiAAQYBAQQo4goGARkFAwYEAAQGBwEEBQUEEQQ2BHEEKwRQAgYFEQYBBQTnATYGAQ4FAgS+AQR5cQYCAAQDDwMVKwYBAQSiAVAGAgAEAw8DFQYEAAQGBwEEBQUEEQRKBHcEpAEEKwIGBREGAQUEkQtKBgEBBA13BgIABAMPAxWkAQYCAAQDDwMVKwYBAQQlBgQABAYHAQQFAgQRBCsCBgIRBgEFBLkEKwYBAQQl4QoGBAAEBgcBBAUIBEoEqgEEdwR8BFMEpgME2QEE1wECBghKBgEBBA2qAQYBAQSiAXcGAgAEAw8DFXwGAQEEOFMGAgAFAgQDBAoPAxWmAwYCAAUCBAMECg8DFdkBBgEZBQIGAQAECgYBAQTnBNcBBgEZBQIGAQAECgYBAQTBCMMDBgUABAYHAQQFBQQvBJkHBO0DBOcFBOQFAgYOLwYBAQQNmQcGAQEEDdYFBgIABAMLBPUJewYBAQQNowcGAQ4FAgSaCwSrCs8FBgEABF/GBgYCAAUCBAMECg8DFdUCBgEBBOsBzQcGAQEEKMsHBgEBBCj9AwYBAQSMB+0DBgMABAgUA44BCQYBAQTACOcFBgEZBQIGAQAECgYBAQS7COQFBgEZBQIGAQAECgYBAQS5CMUKBgHWBQUIBHsEowcEzwUExgYE1QIEzQcEywcE/QPaCgYEAAQGBwEEBQME2QEEngEEiAECBgPZAQYBGQUCBgEABAoGAQEE5wSeAQYDAAQIFANMCQYBAQS6CIgBBgMABAgUA0wJBgEBBOkE2QoGBAAEBgcBBAURBP8BBGcEoAEEiQMEtQEEuQEERwShAgS6AQSzAQQYBFwEWwTrAgQcBDoE5QECBhH/AQYBAQQNZwYBAQQNoAEGAQEEDYkDBgEBBA21AQYBDgUIBIEEBLIBBLQDBNIDBIAEBM0DBNsDBOwDuQEGAQ4FBATPAwTQAwTJAwS2A0cGAwAESRADE00DDKECBgQABAgmAwwUA28JBgEBBMcLugEGBAAECBQDFRYCCQYBAQQNswEGBAAECBQDFRYCCQYBAQQNGAYBAQSiAVwGAQEEJVsGAQEEJesCBgEBBCUcBgEOBQYE1QME2AEEuAEEQATGAQSLAzoGAgAFAgQDBAoPAxXlAQYCAAUCBAMECh0EINwKBgQABAYHAQQFBARnBMACBFwEzQICBgRnBgEBBA3AAgYBAQQNXAYBAQQlzQIGAQEEJdgKBgQABAYHAQQFBATZAQS0AQSIAQTqBwIGBNkBBgEBBLcItAEGAwAECBQDTAkGAQEEuAiIAQYDAAQIFANMCQYBAQTpBOoHBgMABAgUA2IJBgEBBL0I1goGBAAEBgcBBAUEBDwEzAMEuQUE5QUCBgQ8BgEBBA3MAwYBAQQNuQUGBAAECBQDjgEWAgkGAQEEDeUFBgIABQIEAwQKDwMV2woGBAAEBgcBBAUCBKoCBK4EAgYCqgIGAQEEDa4EBgEBBA3fCgYEAAQGBwEEBQIEqgIErwQCBgKqAgYBAQQNrwQGAQEEDdQKBgQABAYHAQQFBQRnBMIGBBgEWgRbAgYFZwYBAQQNwgYGAQEEDRgGAQEE3gJaBgEOBQME2AEEQATGAVsGAQEEfdcKBgQABAYHAQQFFATDBgQYBMoCBDYEWwTyAwTTBwTmBQRgBEcEygUEugIEuQIErQEEzwEEOgTQAgT7AQS/BQSzBQIGFMMGBgEBBA0YBgEBBN4CygIGAQEEfTYGAQEEfVsGAQEEffIDBgQABAgmAwwUAxUJBgEBBOgE0wcGAwAECBQDjgEJBgEBBL4I5gUGBAAECBQDTBYCCQYBAQQNYAYFAAQIJgMMFAMVFgIJBgEBBA1HBgMABQIESQQKEAMTTQMMygUGBAAECBQDFRYCCQYBAQQNugIGAQEEfbkCBgEBBH2tAQYBAQR9zwEGAQEEfToGAgAFAgQDBAoPAxXQAgYEAAQIJgMMFANvCQYBAQQl+wEGBAAECBQDFRYCCQYBAQQNvwUGAwAECBQDbwkGAQEEtgizBQYDAAQIFANMCQYBAQS1CNMKBgQABAYHAQQFDgTBBgQYBOAGBDoEsQUE/gEEqwEE9AEEbATaAgTZAgTyAwTPBwT6BQIGDsEGBgEBBA0YBgEBBN4C4AYGAgAFAgQDBAoPAxU6BgIABQIEAwQKDwMVsQUGAgAFAgQDBAoOBQMABJUMBGP+AQYBAQR9qwEGAgAFAgQDBAoPAxX0AQYBAAUCBEkECmwGAQAFAgRJBAraAgYBAQR92QIGAQEEffIDBgMABAgUAxUJBgEBBOgEzwcGBAAECBQDTBYCCQYBAQQN+gUGBAAECBQDTBYCCQYBAQQN3goGARkFAgYBAQS/CAYBAQS8COAKBgQABAYHAQQFCgRqBBEESgR3BHwEpAEEKwRQBKABBPQDAgYKagYCAAUCBAMECg8DFREGAQUE0QJKBgEBBA13BgEOBQMEvwEEwgEEwQF8BgIABQIEAwQKDwNvpAEGAQEEDSsGAQEEJVAGAgAFAgQDBAoPAxWgAQYCAAUCBAMECg8DFfQDBgIABQIEAwQKDwMV3QoGBAAEBgcBBAUKBGoEEQSZAQTCAwSKAgSkAQQrBFAE9gME9QMCBgpqBgEBBA0RBgEFBE+ZAQYBAQQNwgMGBQAECCYDDBQDmQMWAgkGAQ4FBATdAQTcAQTiAQThAYoCBgUABAgmAwwUA44BFgIJBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBA2kAQYBDgUEBNsGBNoGBLcHBFIrBgEBBCVQBgEBBA32AwYEAAQIFAMVFgIJBgEBBA31AwYEAAQIFANiFgIJBgEBBA3/CQYEAAQGBwEEBQMEWQQcBLgBAgYDWQYBAQQNHAYCAAUCBAMECg8DFbgBBgEABF/ECgYBGQUCBgQABAYHAQQFAwSLAgQ1BLQCAgYDiwIGAQUE8wE1BgEBBA20AgYCAAQICQYBAQTaBAYEAAQGBwEEBQMEiwIENQS0AgIGA4sCBgEFBDA1BgEBBA20AgYCAAQICQYBAQT7B50KBgQABAYHAQQFAwSLAgQ1BNUFAgYDiwIGAQ4FAgTzAQQwNQYBAQQN1QUGBAAECCYDDBYCCQYBAQQN5QoGBAAEBgcBBAUDBBEENQQcAgYDEQYBDgUFBIsBBKQDBLcCBG0ErQQ1BgEBBA0cBgEBBA2pAQYFAAQGBwEEBQ8EtgYEEQQ1BDoEHAQYBPkBBLsCBKkDBE8EtAcE5gME5AIE0wME1wICBg+2BgYBAQQNEQYBDgUDBGQEpAMEbTUGAQEEDToGAQEEDRwGAQEEDRgGAQEEogH5AQYBAQSiAbsCBgIABQIEAwQKHQQgqQMGAQAEX08GAgAECAkGAQEEzQi0BwYCAAQICQYBAQTOCOYDBgIABAgJBgEBBN8C5AIGARkFAgYBAAQKBgEBBO0E0wMGARkFAgYBAAQKBgEBBO4E1wIGARkFAgYBAAQKBgEBBO8EGQUDBgECBgLkAgYBAQTtBNcCBgEABAoGAQIGA+QCBgEABArTAwYBAQTuBNcCBgEABAoGAQIGA+QCBgEABArTAwYBAAQK1wIGAQEE7wSHCwYEAAQGBwEEBQQEggEExQEE7wEEzQECBgSCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV80BBgEOBQQE0QQEoAQEywMEpQSJCwYEAAQGBwEEBQYE3QME8AEEMgToAwQcBMwCAgYG3QMGAQEEDfABBgEOBQIEmwIEgwYyBgMABQIEAwQKFwMMDwMV6AMGAQEEggccBgEOBQMEBATlAwTMAswCBgEABF+FCwYEAAQGBwEEBQIENQShAwIGAjUGAQEEDaEDBgEBBCiICwYEAAQGBwEEBQUEEQQvBHsEOQSoBwIGBREGAQUEiwEvBgIABAMLBJYCewYCAAQDCwSXAjkGAQEEjQGoBwYBAQQoigsGBAAEBgcBBAUCBHEEgAICBgJxBgIABAMLBKcCgAIGAQEEogEwBgQABAYHAQQFDQRZBFEEpQEEGAQcBDoE/gEErgEEogQE+QUEkQYEwgcEOQIGDVkGAQEEDVEGAgAEEhADDKUBBgEBBCgYBgEBBKIBHAYBAQQNOgYCAAUCBAMECg8DFf4BBgEBBCWuAQYBAQQNogQGAQEExAv5BQYDAAQIFgIJBgEBBA2RBgYCAAQICQYBAQSUA8IHBgIABAgJBgEBBJQDOQYBAQSNAU8GBAAEBgcBBAUVBIIBBMUBBO8BBMkBBJ0BBM4BBK0DBPkDBLIDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhWCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV8kBBgEOBQMEkwEE3wEEUp0BBgIABQIEAwQKDgUFBN0BBNwBBOIBBOEBAM4BBgIABQIEAwQKHQQgrQMGAQ4FBQSgAgSyAQSbAQS7AQRX+QMGAwAECBYCCQYBAQQNsgMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBOYElwEGARkFAgYBAAQKBgEBBKQClgEGAgAFAgQDBAodBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE4wRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BxAEGBAAEBgcBBAUSBK8CBB8EwAMEXAT6AwSzAwTRAQSXAQSWAQQ7BIcCBIQCBEcEiQEE/QEEcAT1AQQ5AgYSrwIGAQEEDR8GAQ4FBQSgAgSyAQSbAQS7AQRXwAMGAQ4FBQS3BgTZBwSiBwTVBwS7AVwGAQEEffoDBgMABAgWAgkGAQEEDbMDBgMABAgWAgkGAQEEDdEBBgEZBQIGAQAECgYBAQTYBJcBBgEZBQIGAQAECgYBAQSkApYBBgIABAMdBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE2QRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BWwYEAAQGBwEEBQYEswQEEQQ1BKEBBDwEYAIGBrMEBgEBBA0RBgEOBQoExAEEywIEowoEjwwEZAQwBIQDBDYErQQE6gM1BgEBBA2hAQYBAQQlPAYCAAUCBAMECg8DFWAGAwAECBYCCQYBAQQNNgYEAAQGBwEEBRIE2gMEWQSuAQQfBM8GBOEGBGAElgEEZAS3AgTSAgRtBLIEBOoDBO4DBLoDBHAEOQIGEtoDBgEBBA1ZBgEBBA2uAQYBAQQNHwYBAQQNzwYGARkFAgYBAAQKBgEBBOcI4QYGAwAECBYCCQYBAQQNYAYDAAQIFgIJBgEBBA2WAQYCAAQDHQQgZAYBGQUCBgEABAoGAQEEpQi3AgYCAAQICQYBAQSUA9ICBgIABAgJBgEBBJQDbQYBGQUCBgEABAoGAQEEjgmyBAYBGQUCBgEABAoGAQEE4QjqAwYBGQUCBgEABAoGAQEE+gjuAwYBGQUCBgEABAoGAQEE+gS6AwYBGQUCBgEABAoGAQEE3ARwBgEBBOoBOQYBAQSNAa0EBgQABAYHAQQFBgS5BgTaAwRcBLkDBGAEcgIGBrkGBgEBBA3aAwYBAQQNXAYBAQQluQMGAgAECAkGAQEEDWAGAgAECAkGAQEEDXIGAgAEAx0EIIMBBgQABAYHAQQFEgTBAwQ+BAAE2wEE8AEEMgThBwTxBQSIBgSqAwT1BwSnAwRgBJ8HBIQDBNQDBPcFBJoEAgYSwQMGAQEEDT4GAgAEEhADDAAGAQEEDdsBBgEBBA3wAQYBAQQNMgYDAAUCBAMEChcDDA8DFeEHBgIABAMdBCDxBQYBAQQNiAYGAQEEKKoDBgEBBMgI9QcGAQEEfacDBgEZBQIGAQAECgYBAQTHCGAGAwAECBYCCQYBAQQNnwcGAQEEyQiEAwYBGQUCBgEABAoGAQEEygjUAwYBGQUCBgEABAoGAQEE8QT3BQYDAAQIFgIJBgEBBI0BmgQGARkFAgYBAAQKBgEBBI8ItwEGBAAEBgcBBAUHBOgFBN0HBJkGBL8GBMQEBJcGBOYDAgYH6AUGARkFAgYBAAQKBgEBBPQE3QcGAQEE9AiZBgYBAQTrAb8GBgEFAcQEBgEBBOgIlwYGAwAECBYCCQYBDgUIBIEBBDAEZARrBIQBBIQDBM8KBL8K5gMGAgAECAkGAQEE3wKPBgYEAAQGBwEEBQMEnQEEyAIEzgICBgOdAQYBDgUEBN0BBNwBBOIBBOEByAIGAQEEkgPOAgYBAQSSA44GBgQABAYHAQQFBwRnBMgBBHUEgAEE1AIEZgRYAgYHZwYBAQQNyAEGAQEEDXUGAQEEKIABBgIABQIEAwQKCwQ/1AIGAgAEEhADE2YGAQEEDVgGAQEE0gHGBQYEAAQGBwEEBQYEPASlAwSXAQSWAQR1BIABAgYGPAYBAQQNpQMGAQEEDZcBBgEBBKQClgEGAgAEAx0EIHUGAQEEKIABBgIABQIEAwQKCwQ/xwUGBAAEBgcBBAUDBDwEdQSAAQIGAzwGAQEEDXUGAQEEKIABBgIABQIEAwQKCwQ/uAcGBAAEBgcBBAUDBJ4CBKgBBM4BAgYDngIGAQEEDagBBgEZBQIGAQAECgYBAQT3BM4BBgIABAMdBCDIBwYEAAQGBwEEBQMEcQSGAgT6AQIGA3EGAQEEDYYCBgEABF/6AQYBAQT+BuIFBgQABAYHAQQFBAQRBDUEzQEEOQIGBBEGAQ4FBQTEAQTABgRkBDAENjUGAQEEDc0BBgEOBQQE0QQEoAQEywMEpQQ5BgEBBI0BhAMGBAAEBgcBBAUJBM8CBMUCBB8E+AEE7AIE/AME+wMEcAQ5AgYJzwIGAQEEDcUCBgEBBA0fBgEBBA34AQYCAAQDHQQg7AIGARkFAgYBAAQKBgEBBMUL/AMGAgAFAgQDBAoLBD/7AwYCAAUCBAMECgsEP3AGAQEE6gE5BgEBBI0B0gsGBAAEBgcBBAUKBKsBBNEDBPQBBGwE5AYE/wME3AIExwEEyQEERwIGCqsBBgEBBA3RAwYBAQQo9AEGAQAFAgRJBApsBgEABQIESQQK5AYGAQAFAgRJBAr/AwYCAAUCBAMECg8DFdwCBgIABQIEAwQKDwN+xwEGAgAFAgQDBAodBCDJAQYBDgUEBJMBBN8BBFIEuwFHBgMABQIESQQKEAMTTQMMwQoGBAAEBgcBBAUEBLICBFEEHAQ5AgYEsgIGAQEEDVEGAgAEEhADDBwGAQEEDTkGAQEEjQFtBgQABAYHAQQFCASuAQTuBwSrAQTRAwTOBgSGBgS3BARwAgYIrgEGAQEEDe4HBgEBBCirAQYBAQQN0QMGAQEEKM4GBgEBBH2GBgYCAAQICQYBAQQltwQGARkFAgYBAAQKBgEBBOQIcAYBAQTqAbcEBgQABAYHAQQFAgQRBCsCBgIRBgEOBQIEnwYEngYrBgEBBCWyBAYEAAQGBwEEBQMEEQQrBMcBAgYDEQYBDgUCBJ8GBJ4GKwYBAQQlxwEGAgAFAgQDBAodBCDqAwYEAAQGBwEEBQIEuQME6gUCBgK5AwYDAAQIFgIJBgEBBA3qBQYCAAQICQYBAQQl7AoGBAAEBgcBBAUCBIsCBKEBAgYCiwIGAgAFAgQDBAoPAxWhAQYBAQR96woGBAAEBgcBBAUEBLUCBK4CBL0CBMABAgYEtQIGAQEEDa4CBgMABAgWAgkGAQEEDb0CBgEBBA3AAQYBAQSCB+0KBgQABAYHAQQFAgSeBwTjBQIGAp4HBgIABQIEAwQKCwQ/4wUGAgAFAgQDBAoPAxXuCgYEAAQGBwEEBQIEHwT4AQIGAh8GAQEEDfgBBgIABQIEAwQKHQQgmgQGBAAEBgcBBAUEBLMCBBEE4AMEtwMCBgSzAgYBAQQNEQYBDgUFBLgFBLAHBKsDBFIE6wXgAwYCAAUCBAMECg8DFbcDBgEBBA3KBAYEAAQGBwEEBQUEcgQ0BMcHBLYCBK0HAgYFcgYCAAQDHQQgNAYBAQTrAccHBgEBBCi2AgYBAQQorQcGAQEEOOwLBgQABAYHAQQFBATXBwSCBgSHBgS2AgIGBNcHBgIABQIEEgQKEAMMggYGAgAFAgQSBAoQAwyHBgYCAAQSEAMTtgIGAQEEKMQEBgQABAYHAQQFBQT3AwS2AgTpBQSYBgTYBwIGBfcDBgEBBCi2AgYBAQQo6QUGAQAEX5gGBgEABF/YBwYBAARf1wUGBAAEBgcBBAUCBDUEMAIGAjUGAQEEDTAGAQEE8wK4BAYEAAQGBwEEBQMExQEEtQMEKwIGA8UBBgEOBQQEgwME8AIE6QIEV7UDBgIABBIQAwwrBgEOBQMElwQEngoEgws="),oQ=ct("BgpCBENBBP0KRAYCGgS+BB4EJBgEyAkABAYHAQQFEQQRBBsEIQT/AQQsBCkEKgQ9BM4HBGcEGARcBBwEOgTlAQRyBI4CAgYbEQYBBQS+BBsGAQUELiEGAQUEJP8BBgIABAMLBJ0DLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Dbz0GAQ4FAgTMAQTLAc4HBgEBBJEDZwYBAQS8AaABBgEBBIMEiQMGAQEE2Ai1AQYBDgUIBIEEBLIBBLQDBNIDBIAEBM0DBNsDBOwDuQEGAQ4FBATPAwTQAwTJAwS2A0cGAwAESRADE00DDKECBgQABAgmAwwUA28JBgEBBIsEugEGAQEE5ASzAQYBAQTkBBgGAQEE1AFcBgEBBIcEWwYBAQSHBOsCBgEBBIcEHAYCAAQDDgUGBNUDBNgBBLgBBEAExgEEiwM6BgMABQIEAwQKFwMMDwMV5QEGAgAFAgQDBAodBCByBgIABAMdBCCOAgYCAAQDHQQgMwUDBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUKBgEEBQEEoAEGAQQFAQSJAwYBBAUBBLUBBgEEBQEEuQEGAQQFAQRHBgEEBQEEoQIGAQQFAQS6AQYBBAUBBLMBBgEEBQEEWwYBBAUBBOsCBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQoEoAEEiQMEtQEEuQEERwShAgS6AQSzAQRbBOsCBgIiBgECBgEcBgEFBMYBIwYB8QEFAgYBAgYBOgYBAAQDBgECBgHlAQYCAAQDHQQgRQYPUwYCAAQDCwSwATwGAgAEAwsEaS8GAgAEAwsElgKCAQYCAAQDCwSoApQLBgIABAMLBOwJkwsGAgAEAwsE5wmuBAYCAAQDCwToCZULBgIABAMLBO8JlgsGAgAEAwsE8QmvBAYCAAQDCwTwCWAGBAAECBQDFRYCCQYBAQTTAWwGBQAEBgcBBAUGBKoCBJkEBJ4EBLEEBM0EBMkEAgYGqgIGAQEEvAGZBAYEAAQIFAMVFgIJBgEBBNYIngQGBAAECBQDFRYCCQYBAQTXCLEEBgQABAgUAxUWAgkGAQEE2QjNBAYEAAQIFAMVFgIJBgEBBNsIyQQGBAAECBQDDBYCCQYBAQTaCPEBBQUGAQIGAZkEBgEmAwwGAQIGAZ4EBgEmAwwGAQIGAbEEBgEmAwwGAQIGAc0EBgEmAwwGAQIGAckEBgEmAwyhCwYEAAQDFwMMDwNuCwTWAbQEBgQABAMXAwwPAxVIBgELBKUCGAYFAAQDFwMMDwNMCwSbA0gGAQsEpQI="),cQ=ct("BglCBENBBPgKRAYCGgTrBh4ELhgEywkABAYHAQQFFAQRBBsEIQSdBwQsBCkEKgQyBOYBBDQEaAShAwS7BQSnAwT5AQQ3BNQEBLUGBLsCBJwHAgYUEQYBBQTrBhsGAQUELiEGAQUEJJ0HBgIABAMLBPYJLAYBAQQNKQYBAQQNKgYBAQQ4MgYBAQQN5gEGAQEE+wQ0BgEBBOsBaAYBAQQooQMGAQEEKLsFBgEBBPMCpwMGAQ4FAwSICgToCwR2+QEGAQEEJTcGAwAECBYCCQYCAAQDCwTmCdQEBgEBBIsJtQYGAgAEAx0EILsCBgIABAMdBCCcBwYBAQQoRQYKGgYDAAQDFwMMDwMVHgYDAAQDFwMMDwNvMQYCAAQDCwQ/ogIGBAAEAxcDDA8DhwELBNYB5gEGBQAEBgcBBAUEBBEEGgRRBDECBgQRBgEOBQYEgQEE8wEE2QEEZASLAQQwGgYBAQQNUQYCAAUCBBIEChADDDEGAQEEKDMFAgYCIgYCAgYBEQYBDgUCBGQEMAQFAQQRIwYBAgYBUQYCAAQSEAMMBgIiBgICBgERBgEOBQQEgQEE8wEE2QEEiwEEBQEEESMGAQIGAVEGAQAECjQGARkFAgYEAAQGBwEEBQIEPgQxAgYCPgYBBQMTMQYBAAQKBgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCiUDAYEAAQGBwEEBQUEEQQaBFEEMQRaAgYFEQYBAQQNGgYBAQQNUQYEAAUDBBIEAwQKEAMMFwMMDwMVMQYCAAUCBAMECgsEP1oGAwAFAgQDBAoXAwwPAxXUCwYEAAQGBwEEBQYE3QME8AEEMgToAwQcBMwCAgYG3QMGAQEEDfABBgEOBQIEmwIEgwYyBgMABQIEAwQKFwMMDwMV6AMGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEOBwGAQ4FAwQEBOUDBMwCzAIGAQAEX9YCBgQABAYHAQQFBAQEBOUDBK8HBJcHAgYEBAYCAAQSEAMM5QMGAgAEEhADE68HBgIABBIQAxOXBwYCAAQICQYBAQTqCNQEBgQABAYHAQQFBQQRBKECBMsEBNYGBNYCAgYFEQYBDgUFBIsBBKQDBG0EtwIE0gKhAgYDAAQIJgMMCQYBAQSMCcsEBgEABF/WBgYBAQQN1gIGARkFAgYBAAQKBgEBBIgJ"),ZM=ct("BglCBENBBIILRAYCGgSNBx4EJBgEyQkABAYHAQQFCwQRBBsEIQQsBCkEKgRlBJ4BBLQBBE4EsQICBgsRBgEFBI0HGwYBBQQuIQYBBQQkLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Db2UGAgAEAx0EIJ4BBgIABAgJBgEBBMYLtAEGAgAECAkGAQEEwwtOBgIABAgJBgEBBPAGsQIGAgAECAkGAQEEnwhFBgK5CgYFAAQGBwEEBQQE7QIE2wEELwTNAQIGBO0CBgIABAMOBQMEqQQEZAQw2wEGAgAEAwsEoQUvBgIABAMLBJYCzQEGAgAEAw4FAwTRAQSTDAShChkFAwYBAgYC7QIGAQUEqQTbAQYBCwSdAwYBAgYC7QIGAQUEZNsBBgELBOMCBgECBgLtAgYBBQQw2wEGAQsE7QG0BAYEAAQDFwMMDwMVSAYBCwSlAg=="),lQ=ct("BglCBENBBPsKRAYCGgT8Bh4ELhgEygkABAYHAQQFDQQRBBsEIQTGBwQsBCkEKgQwBDQExAcEWwRyBMUHAgYNEQYBBQT8BhsGAQUELiEGAQUEJMYHBgIABAMLBOkJLAYBAQQNKQYBAQQNKgYBAQQ4MAYBAQSOAzQGAQEE6wHEBwYBDgUEBOwFBJoHBKsGBOMGWwYBAQQlcgYCAAQDHQQgxQcGAQEEKEUGBhoGAwAEAxcDDA8DFR4GAgAEAwsElAIxBgIABAMLBD+iAgYEAAQDFwMMDwNuCwSiBTAGBAAEBgcBBAUDBFkEUQSlAQIGA1kGAgAEAwsE7QFRBgIABBIQAwylAQYBAQQoNAYBGQUCBgQABAYHAQQFAgQ+BDECBgI+BgEFAxMxBgEABAoGBAAEBgcBBAUCBD4EMQIGAj4GAgAEEhADDDEGAQEEKA=="),dQ=ct("BgtCBENBBKkGRAYCGgS9BB4EJBgEkwWcAQSYBQAEBgcBBAUSBBEEGwQhBJ4CBJwEBCwEKQQqBGcEnQEEiQIEyAIEzgIENgSCAQTIAQSoAQTOAQIGEhEGAQUEvQQbBgEFBC4hBgEFBCSeAgYBAQT2CJwEBgEBBJMILAYBAQRLKQYBAQRLKgYBAQQ4ZwYBAQS8AZ0BBgEOBQQE3QEE3AEE4gEE4QGJAgYBGQUCBgEABAoGAQEElQPIAgYBAQT9Bs4CBgEBBP0GNgYBDgUCBLgBBECCAQYCAAUCBAMECgsEqALIAQYCAAUCBAMECgsEaagBBgQABQIEBgQKBwEEBQMEcQSGAgT6AQIGA3EGAQEEsAiGAgYBAARf+gEGAQEE+ATOAQYCAAQDHQQgMwUCBgIiBgECBgE2BgEFBLgBIwYBAgYEiQIGAQEElQOCAQYBAAQDyAEGAQAEA6gBBgEFAAYCIgYBAgYBNgYBBQRAIwYBAgYEiQIGAQUAggEGAQUAyAEGAQUAqAEGAQAEBkUGCO8CBgIABAMLBJUCHgYCAAQDCwSUAp4CBgIABAMLBOsJnAQGAgAEAwsE6gk8BgIABAMLBGmJAgYEAAQGBwEEBQIEGgQeAgYCGgYBAQRLHgYBAQQ4zgoGAQ4FFQScBQSXBQSRBQSWBQSQBQSFBQSHBQSGBQSeBQSdBQSIBQSJBQSbBQSaBQSfBQSLBQSNBQSMBQSOBQSPBQSKBc8EBgMABAYHAQIGBp0BBgEOBQQE3QEE3AEE4gEE4QGxBwYBAQRL1AcGAQEES8cCBgEBBEs8BgEBBLwBugcGAQEESw=="),uQ=ct("BglCBENBBPwKRAYCGgT/Bh4EJBgExQkABAYHAQQFHwQRBBsEIQTPAgTFAgSDAgTnAwQwBFMEtQIErgIEvQIEwAEEbAS/AwS4AgSvAwQfBPwDBPsDBNMFBNQFBMoBBMYCBOwCBL0HBK4BBNABBIkGBPgBBL4HAgYfEQYBBQT/BhsGAQUELiEGAQUEJM8CBgIABAMLBKoFxQIGAgAEAwsEqQKDAgYBBQSmBOcDBgEBBCgwBgEBBI4DUwYCAAQDCwSwAbUCBgIABAMLBKYFrgIGAwAECBYCCQYCAAQDCwSjBb0CBgIABAMLBOICwAEGAQEElgNsBgEBBIsEvwMGAQEE3gS4AgYBAQTqBK8DBgEZBQIGAQAECgYBAQSWAx8GAQ4FBQTbBwR5BJ8BBJsBBGP8AwYBAQQo+wMGAgAFAgQDBAoLBD/TBQYCAAUCBAMECgsEadQFBgIABQIEAwQKCwQ/ygEGAQEEjwPGAgYBAQSPA+wCBgEBBK4IvQcGAgAEAwsEaa4BBgIABAMLBKkF0AEGAgAFAgQDBAoLBJ4DiQYGBAAECCYDDBYCCQYCAAQDCwSkBfgBBgIABAMdBCC+BwYBAQQoRQYKGgYCAAQDCwSVAh4GAgAEAwsElAIxBgIABAMLBD9zBgEOBQYEdgTBAgTjAQTHBASoBAS8A/MHBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBDjFBQYDAAQIFgIJBgIABAMLBGkwBgQABAYHAQQFAwRZBFEEpQECBgNZBgIABAMLBO0BUQYCAAQSEAMMpQEGAQEEKGwGBAAEBgcBBAUDBBEEGgRRAgYDEQYBAQQNGgYDAAQDFwMMDwMVUQYDAAQDFwMMDwMVuAIGBAAEBgcBBAUCBMQDBMUDAgYCxAMGAQEEDcUDBgEBBDjsAgYEAAQGBwEEBQMEqwMEoQEEugUCBgOrAwYBAARfoQEGAwAEAxcDDA8DYroFBgMABAgWAgkGAwAEAxcDDA8DFQ=="),fQ=ct("BgpCBENBBP4KRAYCGgSABx4EJBgExgkABAYHAQQFHAQRBBsEIQTFAgSDAgQwBFME5wMEtQIErgIEvQIEwAEEbAS/AwS4AgSvAwSbBwTKAQSuAQTOBAQcBLQGBM8CBNABBNwDBHIEjgIEjgcCBhwRBgEFBIAHGwYBBQQuIQYBBQQkxQIGAgAEAwsEqQKDAgYBDgUCBKYEBNICMAYBAQSOA1MGAgAEAwsEsAHnAwYBAQQotQIGAgAEAwsEpgWuAgYDAAQIFgIJBgIABAMLBKMFvQIGAgAEAwsE4gLAAQYBAQSWA2wGAQEEiwS/AwYBAQTeBLgCBgEBBOoErwMGARkFAgYBAAQKBgEBBJYDmwcGAQEEjwPKAQYBAQSPA64BBgIABAMLBKkFzgQGAQ4FBAS1BATLBASsCgTFBhwGAQ4FCgSbCgSPCwTHCgTbBwR5BJ8BBJsBBGMEkQEEwwe0BgYCAAQDCwSkBc8CBgIABQIEAwQKCwTkCdABBgIABQIEAwQKCwSeA9wDBgIABQIEAwQKCwSpAnIGAgAEAx0EII4CBgIABAMdBCCOBwYBAQQoMwUCBgIiBgICBgGDAgYBBQSmBAQFAQSDAiMGAQIGA9ABBgEFANwDBgEFABwGAUgGAQUEwwcGAiIGAgIGAYMCBgEFBNICBAUBBIMCIwYBAgYD0AEGAQAEA9wDBgEABAPOBAYBSAYBBQS1BEUGCRoGAgAEAwsElQIeBgIABAMLBJQCMQYCAAQDCwQ/cwYBDgUGBHYEwQIE4wEExwQEqAQEvAPzBwYEAAQGBwEEBQIEGgQeAgYCGgYBAQQNHgYBAQQ4xQUGAwAECBYCCQYCAAQDCwRpMAYEAAQGBwEEBQMEWQRRBKUBAgYDWQYCAAQDCwTtAVEGAgAEEhADDKUBBgEBBChsBgQABAYHAQQFAwQRBBoEUQIGAxEGAQEEDRoGAwAEAxcDDA8DFVEGAwAEAxcDDA8DFbgCBgQABAYHAQQFAgTEAwTFAwIGAsQDBgEBBA3FAwYBAQQ4"),XM=new Map([["operate-experience-view.schema.json",VA],["operating-finding.schema.json",oQ],["operate-allowed-action.schema.json",YA],["operating-delivery-route.schema.json",lQ],["operating-evidence-resolution.schema.json",dQ],["operating-execution-result.schema.json",uQ],["operating-governed-operation.schema.json",fQ],["operating-review.schema.json",Lu],["operating-trace-matrix.schema.json",Pu],["operate-review-display-workspace.schema.json",Mo]]);function WM(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function eG(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=XM.get(s);return c?{schema:WM(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function tG(e){const t=ko(e,Fu,{base:"schemas/v1.2.0/operate-experience-surface.schema.json",resolveRef:eG});if(t.length>0)return t;const a=e.truthSummary;return a.sourceViewHash!==e.viewHash||a.sourceEventHead.sequence!==e.eventHead.sequence||a.sourceEventHead.hash!==e.eventHead.hash||a.stages.total!==a.stages.cycles*7||a.evidence.linked>a.evidence.total||a.proof.linkedEvidence!==a.evidence.linked||a.seats.total!==a.seats.terminal+a.seats.active+a.seats.pending?[{path:"$.truthSummary",rule:"sharedTruth",detail:"does not bind one internally consistent shared truth summary"}]:[]}function cu(e){const t=tG(e);if(t.length>0){const a=new TypeError(`operate-experience-surface: ${t[0].path} ${t[0].detail}`);throw a.code="E_OPERATE_EXPERIENCE_SURFACE_INVALID",a}return e}Object.freeze(structuredClone(Fu));const nG=new Set(["evidence","outcomes","outcome","history","search","export"]),aG=new Map([["operate-experience-audit-display-surface.schema.json",FA],["operate-experience-surface.schema.json",Fu],["operate-experience-view.schema.json",VA],["operate-review-display-workspace.schema.json",Mo],["operating-trace-matrix.schema.json",Pu]]);function iG(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function rG(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=aG.get(s);return c?{schema:iG(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function Uh(){return[{path:"$",rule:"closedContract",detail:"does not satisfy the closed audit display contract"}]}function lu(e){try{const t=decodeURIComponent(e);return t.length>0&&t!=="."&&t!==".."&&!t.includes("/")&&!t.includes("\\")&&encodeURIComponent(t)===e}catch{return!1}}function mb(e){return e===null?!0:pQ(e)!==null}function ur(e,t,a){return e===null?!0:typeof a!="string"?!1:t==="action"?e===`#/operate/actions/${encodeURIComponent(a)}`:t==="cycle"?e===`#/operate/cycles/${encodeURIComponent(a)}`:e===`#/operate/${t==="evidence"?"evidence":"outcomes"}/${encodeURIComponent(a)}`}function pQ(e){if(typeof e!="string")return null;const t=/^#\/operate\/(evidence|outcomes)\/([^/?#]+)$/u.exec(e);if(t!==null&&lu(t[2]))return{surface:t[1]==="evidence"?"evidence":"outcome",subjectId:decodeURIComponent(t[2])};const a=/^#\/operate\/actions\/([^/?#]+)$/u.exec(e);if(a!==null&&lu(a[1]))return{surface:"action",subjectId:decodeURIComponent(a[1])};const s=/^#\/operate\/cycles\/([^/?#]+)$/u.exec(e);return s!==null&&lu(s[1])?{surface:"cycle",subjectId:decodeURIComponent(s[1])}:null}function Eu(e,t=new Set){if(e===null||typeof e!="object")return!0;if(t.has(e))return!1;t.add(e);try{if(Array.isArray(e))return e.every(a=>Eu(a,t));for(const[a,s]of Object.entries(e)){if(a==="deepLink"){if(!mb(s))return!1;continue}if(a==="deepLinks"){if(!Array.isArray(s)||!s.every(mb))return!1;continue}if(!Eu(s,t))return!1}return!0}finally{t.delete(e)}}function _g(e,t=new Set){if(!(e===null||typeof e!="object"||t.has(e))){if(t.add(e),Array.isArray(e)){for(const a of e)_g(a,t);return}for(const[a,s]of Object.entries(e)){if(a==="deepLink"&&s===null){e[a]="#/operate/history/redacted";continue}_g(s,t)}}}function sG(e){return{...e,results:e.results.map(t=>{if(!["evidence","claim","outcome"].includes(t.kind)&&tQ(t,"deepLink")){const{deepLink:a,...s}=t;return s}return t})}}function oG(e){try{const t=Ua(e);return t.mutationEnabled=t.status==="ready",t.surface==="search"&&(t.data=sG(t.data)),_g(t.data),cu(t),!0}catch{return!1}}function Zc(e,t){const a=e.map(s=>s[t]);return a.every(s=>typeof s=="string")&&new Set(a).size===a.length}function cG(e){return e.accessState==="available"?e.accessReason===null:e.accessState==="restricted"&&e.claimStatus==="restricted"&&e.evidenceKind===null&&e.resolvedAt===null&&e.source===null&&e.producer===null&&e.observedAt===null&&e.provenance===null&&e.confidence===null&&e.accessReason==="access-denied"&&e.supportClaimIds.length===0&&e.contradictClaimIds.length===0&&e.gaps.length===0&&e.errors.length===0&&e.causalLinks.length===0}function lG(e){return e.accessReason===null?e.statement!==null:e.status==="restricted"&&e.accessReason==="access-denied"&&e.statement===null&&e.source===null&&e.producer===null&&e.provenance===null&&e.confidence===null&&e.supportEvidenceRefIds.length===0&&e.contradictEvidenceRefIds.length===0&&e.gaps.length===0&&e.errors.length===0&&e.causalLinks.length===0}function yb(e){return e.kind==="outcome"?ur(e.deepLink,"outcome",e.subjectId):e.deepLink===null}function dG(e){const t=new Map(e.evidence.map(s=>[s.evidenceRefId,s])),a=new Map(e.claims.map(s=>[s.claimId,s]));if(!Zc(e.evidence,"evidenceRefId")||!Zc(e.claims,"claimId")||!e.evidence.every(s=>cG(s)&&ur(s.deepLink,"evidence",s.evidenceRefId)&&s.causalLinks.every(yb))||!e.claims.every(s=>lG(s)&&ur(s.deepLink,"evidence",s.claimId)&&s.causalLinks.every(yb)))return!1;for(const s of e.evidence)if(!s.supportClaimIds.every(c=>{var l;return(l=a.get(c))==null?void 0:l.supportEvidenceRefIds.includes(s.evidenceRefId)})||!s.contradictClaimIds.every(c=>{var l;return(l=a.get(c))==null?void 0:l.contradictEvidenceRefIds.includes(s.evidenceRefId)}))return!1;return e.claims.every(s=>s.supportEvidenceRefIds.every(c=>{var l;return(l=t.get(c))==null?void 0:l.supportClaimIds.includes(s.claimId)})&&s.contradictEvidenceRefIds.every(c=>{var l;return(l=t.get(c))==null?void 0:l.contradictClaimIds.includes(s.claimId)}))}function uG(e){return e.accessReason===null&&e.observationIds.length>0&&e.evidenceRefIds.length>0&&e.metric.observed!==null&&e.metric.freshness==="current"&&e.verification.accessReason===null}function hQ(e){return e.accessReason==="access-denied"&&e.observationIds.length===0&&e.evidenceRefIds.length===0&&e.metric.baseline===null&&e.metric.target===null&&e.metric.observed===null&&e.metric.unit===null&&e.metric.window===null&&e.metric.confidence===null&&e.verification.accessReason==="access-denied"&&e.verification.method===null&&e.verification.evaluationRules.length===0&&e.verification.observationRequest===null&&e.nextObservation===null&&e.revisit===null}function fG(e){return["succeeded","failed"].includes(e.status)&&hQ(e)}function pG(e){const t=e.metric,a=e.verification;return t===null||a===null||e.verificationPlanId!==a.verificationPlanId||t.metricId!==a.metricId||t.metricHash!==a.metricHash||!ur(e.deepLink,"outcome",e.outcomeId)||e.decision!==null&&e.decision.deepLink!==null||!e.execution.every(s=>s.deepLink===null)||!e.rollback.every(s=>s.deepLink===null)||(e.accessReason==="access-denied"||a.accessReason==="access-denied")&&!hQ(e)?!1:e.status==="insufficient-evidence"?t.observed===null&&e.observationIds.length===0&&e.evidenceRefIds.length===0&&e.snapshot===null&&e.delta===null:!["succeeded","failed"].includes(e.status)||uG(e)||fG(e)}function Eb(e,t=!1){const a=t?[e.outcome]:e.outcomes;if(!Zc(a,"outcomeId")||!a.every(pG)||!t&&!e.domainMetrics.every(c=>c.dueVerification.every(l=>l.deepLink===null)))return!1;const s=new Set(a.map(c=>c.outcomeId));return Zc(e.learnings,"learningId")&&e.learnings.every(c=>s.has(c.outcomeId))}function hG(e,t){return Zc(e.history,"eventId")&&e.history.every(a=>a.deepLinks.every(s=>{const c=pQ(s);return(c==null?void 0:c.surface)==="evidence"?c.subjectId===a.entityId||a.evidenceRefIds.includes(c.subjectId):(c==null?void 0:c.surface)==="outcome"&&c.subjectId===a.entityId}))&&e.replay.liveAccessUsed===!1&&hn(e.replay.finalHead,t)&&e.replay.parityProof.finalEventHashMatches===!0}function gG(e){return e.results.every(t=>{if(!tQ(t,"deepLink"))return!0;if(t.kind==="evidence"||t.kind==="claim")return ur(t.deepLink,"evidence",t.subjectId);if(t.kind==="outcome")return ur(t.deepLink,"outcome",t.subjectId);if(t.kind==="action")return ur(t.deepLink,"action",t.subjectId);if(t.kind==="cycle")return ur(t.deepLink,"cycle",t.subjectId);if(t.kind==="assignment"){if(t.deepLink===null)return!0;const a=/^#\/operate\/cycles\/([^/?#]+)$/u.exec(t.deepLink);return a!==null&&lu(a[1])}return!1})}const AG=["kind","schemaVersion","protocolVersion","scopeId","domainId","domainVersion","generatedAt","eventHead","status","attention","domainMetrics","cycles","inbox","actions","evidence","claims","rationale","outcomes","learnings","history","replay","omissions"].sort(),mG=new Set(["ownerActorId","actorId","partyId","requiredCapability","source","producer","provenance","authority","actionLocator","rawHash","canonicalHash"]);function Ng(e,t=new Set){if(e===null||typeof e!="object")return!0;if(t.has(e))return!1;t.add(e);try{if(Array.isArray(e))return e.every(a=>Ng(a,t));for(const[a,s]of Object.entries(e))if(mG.has(a)||a==="errors"&&(!Array.isArray(s)||s.length!==0)||!Ng(s,t))return!1;return!0}finally{t.delete(e)}}function Bb(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">")}function yG(e){return e.replaceAll("<","<").replaceAll(">",">").replaceAll("&","&")}function vb(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&Kt(Object.keys(e).sort(),AG)&&Ng(e)&&Eu(e)}function Bu(e){return Array.isArray(e)?e.map(t=>Bu(t)):e===null||typeof e!="object"?e:Object.fromEntries(Object.keys(e).sort().map(t=>[t,Bu(e[t])]))}function EG(e){try{if(e.format==="json"){if(e.mediaType!=="application/json")return!1;const A=JSON.parse(e.content);return vb(A)&&JSON.stringify(Bu(A))===e.content}if(e.mediaType!=="text/html; charset=utf-8")return!1;const t='<!doctype html><html lang="en"><meta charset="utf-8"><title>OpenPlanr Operate audit export</title><body><main><h1>Operate audit export</h1><p>',a="</p><pre>",s="</pre></main></body></html>";if(!e.content.startsWith(t)||!e.content.endsWith(s))return!1;const c=e.content.indexOf(a,t.length);if(c<0)return!1;const l=e.content.slice(c+a.length,-s.length),u=JSON.parse(yG(l));if(!vb(u))return!1;const f=Bu(u),h=`${t}${Bb(`${f.domainId} / ${f.scopeId}`)}${a}${Bb(JSON.stringify(f,null,2))}${s}`;return e.content===h}catch{return!1}}function BG(e){return e.surface==="evidence"?dG(e.data):e.surface==="outcomes"?Eb(e.data):e.surface==="outcome"?Eb(e.data,!0):e.surface==="history"?hG(e.data,e.eventHead):e.surface==="search"?gG(e.data):e.surface==="export"?EG(e.data):!1}function vG(e,t){var a,s,c;return e.actorId!==t.actorId||e.scopeId!==t.scopeId||e.domainId!==t.domainId||e.domainVersion!==t.domainVersion||e.generatedAt!==t.generatedAt||e.viewHash!==t.viewHash||e.surface!==t.surface||!hn(e.eventHead,t.eventHead)?!1:e.surface==="outcome"?typeof e.subjectId=="string"&&e.query===null&&e.format===null&&((a=t.data.outcome)==null?void 0:a.outcomeId)===e.subjectId:e.surface==="evidence"?(e.subjectId===null||((s=t.data.evidence)==null?void 0:s.some(u=>u.evidenceRefId===e.subjectId))||((c=t.data.claims)==null?void 0:c.some(u=>u.claimId===e.subjectId)))&&e.query===null&&e.format===null:e.surface==="search"?e.subjectId===null&&typeof e.query=="string"&&e.query===t.data.query&&e.format===null:e.surface==="export"?e.subjectId===null&&e.query===null&&e.format===t.data.format:e.subjectId===null&&e.query===null&&e.format===null}function bG(e,t){return nG.has(e.payload.surface)&&e.payload.readOnly===!0&&e.payload.mutationEnabled===!1&&e.integrity.sourceViewHash===e.payload.viewHash&&e.integrity.sourceViewHash===e.requestBinding.viewHash&&e.payload.truthSummary.sourceViewHash===e.payload.viewHash&&hn(e.payload.truthSummary.sourceEventHead,e.payload.eventHead)&&vG(e.requestBinding,e.payload)&&(t===void 0||Kt(e.requestBinding,t))&&Eu(e.payload.data)&&BG(e.payload)&&oG(e.payload)}function wG(e,t){try{const a=Ua(e),s=ko(a,FA,{base:"schemas/v1.2.0/operate-experience-audit-display-surface.schema.json",resolveRef:rG});return s.length>0||!bG(a,t)?s.length>0?s:Uh():a.integrity.contentHash===GA(aQ(a),a.integrity.domain)?[]:Uh()}catch{return Uh()}}function La(e,t){if(wG(e,t).length>0){const a=new TypeError("The Operate audit display surface does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_EXPERIENCE_AUDIT_DISPLAY_INVALID",a}return e}Object.freeze(structuredClone(FA));function xG(e){if(!Array.isArray(e))return Object.freeze([]);const t=[];for(const a of e){if(typeof a!="object"||a===null)continue;const s=Reflect.get(a,"kind"),c=Reflect.get(a,"subjectId"),l=Reflect.get(a,"title"),u=Reflect.get(a,"summary"),f=Reflect.get(a,"state"),h=Reflect.get(a,"deepLink");typeof s!="string"||typeof c!="string"||typeof l!="string"||t.push(Object.freeze({kind:s,subjectId:c,title:l,summary:typeof u=="string"?u:null,state:typeof f=="string"?f:null,deepLink:typeof h=="string"&&h.startsWith("#/operate/")?h:null}))}return Object.freeze(t)}function Vu(e){return e===null||e.hash===null?null:Object.freeze({sequence:e.sequence,hash:e.hash})}const jG=4*1024*1024;function QG(e){let t;try{t=new URL(e)}catch{throw new Error("OPERATE_ORIGIN_INVALID")}if(t.origin!==e||t.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(t.hostname))throw new Error("OPERATE_ORIGIN_INVALID");return t.origin}async function IG(e){const{identity:t}=e;if(t.productArea!=="operate"||t.cycleId===null||t.viewHash===null)return Object.freeze([]);const a=QG(e.origin),s=e.query??"";if(s.length>512)return Object.freeze([]);const c=new URL("/api/operate/search",a);c.searchParams.set("scopeId",t.scopeId),c.searchParams.set("domainId",t.domainId),c.searchParams.set("domainVersion",t.domainVersion),c.searchParams.set("cycleId",t.cycleId),c.searchParams.set("q",s);const l=await(e.fetcher??fetch)(c,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),u=await l.text();if(new TextEncoder().encode(u).byteLength>jG)throw new Error("Search response exceeds the dashboard JSON limit.");let f;try{f=JSON.parse(u)}catch{throw new Error("Search response is not JSON.")}if(!l.ok)return Object.freeze([]);try{const h=La(f),A=h.payload,y=Vu(t.eventHead);if(A.surface!=="search"||y===null)return Object.freeze([]);const m=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:t.cycleId,subjectId:null,surface:"search",query:s,format:null,generatedAt:A.generatedAt,eventHead:y,viewHash:t.viewHash});return La(h,m),xG(A.data.results)}catch{return Object.freeze([])}}const CG=200;function SG(e){const[t,a]=B.useState([]),{binding:s,connectionState:c,query:l}=e;return B.useEffect(()=>{const u=l.trim();if(typeof window>"u"||!s||s.productArea!=="operate"||s.cycleId===null||c!=="connected"||u.length===0){a([]);return}const f=new AbortController,h=setTimeout(()=>{IG({origin:window.location.origin,identity:s,query:u,signal:f.signal}).then(A=>{f.signal.aborted||a(A)}).catch(()=>{f.signal.aborted||a([])})},CG);return()=>{clearTimeout(h),f.abort()}},[s,c,l]),t}const gQ=Object.freeze([]),AQ="Jump to a view or an artifact…";function OG(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function _G(e,t){const[a,s]=B.useState(t);B.useEffect(()=>{if(t&&e.some(l=>l.cycleId===t)){s(t);return}s(l=>l&&e.some(u=>u.cycleId===l)?l:null)},[e,t]);const c=B.useMemo(()=>e.find(l=>l.cycleId===a)??null,[e,a]);return Object.freeze({binding:c,selectedCycleId:a,setSelectedCycleId:s})}function mQ({bindings:e,selectedCycleId:t,onSelect:a}){return e.length===0?null:r.jsxs("div",{className:"pc-palette__cycle",children:[r.jsx("span",{children:"operate cycle"}),r.jsx(qc,{size:"sm",ariaLabel:"Operate Cycle for search results",value:t??"",onChange:s=>a(s||null),options:[{value:"",label:"Select a cycle"},...e.map((s,c)=>({value:s.cycleId??"",label:`${OG(s.domainId)} cycle${e.length>1?` ${c+1}`:""}`}))]})]})}function yQ(e){typeof window>"u"||(window.location.hash=e)}function EQ(e,t,a,s,c){const[l,u]=B.useState(t),[f,h]=B.useState(()=>mu([])),A=_G(a,s),y=SG({binding:A.binding,connectionState:c,query:l}),m=B.useMemo(()=>Object.freeze({...e,operateResults:y}),[e,y]),E=B.useMemo(()=>_M(m),[m]),b=B.useMemo(()=>NM(E,l),[E,l]),w=B.useMemo(()=>RM(E,l),[E,l]);B.useEffect(()=>{h(mu(b))},[b]);const x=(j,I)=>{if(j.key==="ArrowDown")j.preventDefault(),h(C=>C.moveDown());else if(j.key==="ArrowUp")j.preventDefault(),h(C=>C.moveUp());else if(j.key==="Enter"){j.preventDefault();const C=f.getActive()??b[0]??null;C&&I(C)}};return{query:l,setQuery:u,hits:b,unsupported:w,active:f.getActive(),selectedOperate:A,onKeyDown:x}}function NG({open:e,onClose:t,sources:a=Object.freeze({}),initialQuery:s="",operateBindings:c=gQ,preferredOperateCycleId:l=null,connectionState:u="disconnected"}){var b;const f=B.useRef(null),h=B.useRef(null),A=B.useId(),y=EQ(a,s,c,l,u),{setQuery:m}=y;B.useEffect(()=>{e&&m(s)},[e,s,m]),B.useEffect(()=>{var x,j;const w=f.current;if(w){if(e){typeof w.showModal=="function"&&!w.open?w.showModal():w.setAttribute("open",""),(x=h.current)==null||x.focus(),(j=h.current)==null||j.select();return}typeof w.close=="function"&&w.open?w.close():w.removeAttribute("open")}},[e]),B.useEffect(()=>{const w=f.current;if(!w)return;const x=()=>t();return w.addEventListener("close",x),()=>w.removeEventListener("close",x)},[t]);function E(w){yQ(w.href),t()}return r.jsx("dialog",{ref:f,className:"pc-palette","aria-labelledby":`${A}-label`,onCancel:w=>{w.preventDefault(),t()},onMouseDown:w=>{w.target===f.current&&t()},children:r.jsxs("div",{className:"pc-palette__panel",role:"document",children:[r.jsxs("div",{className:"pc-palette__input-row",children:[r.jsx(Be,{name:"search",size:15,color:"var(--pc-text-tertiary)"}),r.jsx("span",{id:`${A}-label`,className:"pc-visually-hidden",children:"Command palette"}),r.jsx("input",{ref:h,id:`${A}-input`,className:"pc-palette__input",type:"search",value:y.query,placeholder:AQ,"aria-label":"Search views and artifacts",autoComplete:"off",spellCheck:!1,onChange:w=>m(w.target.value),onKeyDown:w=>{if(w.key==="Escape"){w.preventDefault(),t();return}y.onKeyDown(w,E)}}),r.jsx(dr,{size:"sm",children:"esc"})]}),r.jsx(mQ,{bindings:c,selectedCycleId:y.selectedOperate.selectedCycleId,onSelect:y.selectedOperate.setSelectedCycleId}),r.jsx(Uj,{hits:y.hits,unsupported:y.unsupported,activeHref:((b=y.active)==null?void 0:b.href)??null,listId:A,onSelect:E}),r.jsxs("div",{className:"pc-palette__foot","aria-hidden":"true",children:[r.jsxs("span",{className:"pc-palette__key",children:[r.jsx(dr,{size:"sm",children:"↑"}),r.jsx(dr,{size:"sm",children:"↓"})," move"]}),r.jsxs("span",{className:"pc-palette__key",children:[r.jsx(dr,{size:"sm",children:"⏎"})," open"]}),r.jsxs("span",{className:"pc-palette__count",children:[y.hits.length," results"]})]})]})})}function RG({sources:e=Object.freeze({}),initialQuery:t="",operateBindings:a=gQ,preferredOperateCycleId:s=null,connectionState:c="disconnected"}){var f;const l=B.useId(),u=EQ(e,t,a,s,c);return r.jsxs("section",{className:"op-workspace pc-search-page","data-route-kind":"planning.search",children:[r.jsx(st,{eyebrow:"planr-status · search",title:"Search",count:`${u.hits.length} ${u.hits.length===1?"result":"results"}`,description:"Planning work and Operate items, from access-safe projections."}),r.jsx("div",{className:"pc-search-page__query",children:r.jsx(RA,{value:u.query,onChange:u.setQuery,ariaLabel:"Search query",placeholder:AQ,icon:"search",size:"lg",width:560})}),r.jsx(mQ,{bindings:a,selectedCycleId:u.selectedOperate.selectedCycleId,onSelect:u.selectedOperate.setSelectedCycleId}),r.jsx(Uj,{hits:u.hits,unsupported:u.unsupported,activeHref:((f=u.active)==null?void 0:f.href)??null,listId:l,onSelect:h=>yQ(h.href)})]})}function DG(e){return Object.freeze({planningNodes:$j(e)})}function TG(e){const[t,a]=B.useState(!1),s=B.useMemo(()=>DG(e),[e]);return B.useEffect(()=>{const c=l=>{(l.metaKey||l.ctrlKey)&&l.key.toLowerCase()==="k"&&(l.preventDefault(),a(!0))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),Object.freeze({open:t,sources:s,show:()=>a(!0),close:()=>a(!1)})}let vu=Object.freeze({selection:null,openTick:0});const Rg=new Set;function kG(){for(const e of Rg)e()}function MG(e){vu=Object.freeze({selection:e,openTick:vu.openTick+1}),kG()}function GG(e){return Rg.add(e),()=>{Rg.delete(e)}}function qA(){return B.useSyncExternalStore(GG,()=>vu,()=>vu)}const YG=Object.freeze({wait:Object.freeze({instruction:"Wait for OpenPlanr to publish another validated state. No action is inferred."}),none:Object.freeze({instruction:"Continue only with exact allowed actions returned for the current binding."}),"server-action-only":Object.freeze({instruction:"Use only an exact action returned by OpenPlanr for this state."}),inspect:Object.freeze({instruction:"Inspect access-safe history. Inspection does not change durable state.",href:"#/operate/history",linkLabel:"Inspect History"}),reconcile:Object.freeze({instruction:"Reconcile against the current projection before considering another action.",href:"#/operate/recovery",linkLabel:"Open Recovery"}),"request-access":Object.freeze({instruction:"Request access through the project owner. This dashboard cannot grant authority."}),"restore-connection":Object.freeze({instruction:"Restore the loopback connection, then wait for exact current reconciliation."}),reinstall:Object.freeze({instruction:"Install matching OpenPlanr dashboard assets, then verify compatibility again.",href:"#/diagnostics",linkLabel:"Open diagnostics"}),"canonical-recovery-only":Object.freeze({instruction:"Use only the canonical reconciliation or recovery path returned by OpenPlanr.",href:"#/operate/recovery",linkLabel:"Open Recovery"})});function HG(e){return{operation:"Operation",cycleId:"Cycle",assignmentId:"Assignment",submissionId:"Submission",submissionState:"Submission state",reviewId:"Review",state:"State",maxBytes:"Maximum bytes"}[e]}function zG({state:e,proven:t,notProven:a,headingId:s}){var y;const c=B.useId(),l=s??`dashboard-recovery-${c}`,u=YG[e.policy.recovery],f=u.href==="#/diagnostics"||((y=e.binding)==null?void 0:y.productArea)==="operate"?u.href:void 0,h=e.error?r1(e.error):null,A=e.error?zw.flatMap(m=>{var b;const E=(b=e.error)==null?void 0:b.context[m];return E===void 0?[]:[[m,E]]}):[];return r.jsxs("section",{className:"op-ready-truth","data-recovery-guidance":e.policy.recovery,"aria-labelledby":l,children:[r.jsxs("div",{className:"op-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Recovery posture"}),r.jsx("h2",{id:l,tabIndex:-1,"data-product-state-recovery-heading":!0,children:"Known, unknown, and next safe step"})]}),r.jsx("p",{children:u.instruction})]}),r.jsxs("dl",{"aria-label":"Recovery truth",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Proven"}),r.jsx("dd",{children:t})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Not proven"}),r.jsx("dd",{children:a})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Next safe step"}),r.jsx("dd",{children:u.instruction})]})]}),e.error?r.jsxs("section",{"data-safe-error":!0,"aria-labelledby":`${l}-diagnostic`,children:[r.jsx("h3",{id:`${l}-diagnostic`,children:"Certified diagnostic"}),r.jsxs("dl",{"aria-label":"Certified diagnostic fields",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Code"}),r.jsx("dd",{children:r.jsx("code",{children:e.error.code})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Recovery classification"}),r.jsx("dd",{children:e.kind==="uncertain"?"Reconciliation is required before any further instruction.":h!=null&&h.retryableAfterReconciliation?"Eligible for a new instruction only after current reconciliation.":"No repeated instruction is certified by this diagnostic."})]}),A.map(([m,E])=>r.jsxs("div",{children:[r.jsx("dt",{children:HG(m)}),r.jsx("dd",{children:r.jsx("code",{children:String(E)})})]},m))]})]}):null,f&&u.linkLabel?r.jsx("a",{className:"op-inline-action",href:f,children:u.linkLabel}):null,r.jsx("p",{className:"op-authority-note",children:"This view does not create arguments, authority, effects, repeated instructions, PLAN runs, or SHIP runs."})]})}const $G=Object.freeze({booting:Tt("Compatibility check","Verifying this dashboard","OpenPlanr has not yet published a complete compatible context.","The requested dashboard route is mounted.","Package compatibility, binding, and durable state are not yet proven."),loading:Tt("Bound read","Loading the exact projection","The current public binding is known while its projection is loading.","The actor, project, scope, domain, subject, and generation are exact.","No current projection data or mutation authority is proven yet."),"first-use":Tt("First durable context","Choose the first durable context","The server proved that this exact binding has no established operating state.","This is a validated first-use state for the current binding.","No Cycle, continuation, or browser-created start action is implied."),ready:Tt("Current projection","Current state is ready","The projection passed its owner-boundary contract for the exact current binding.","The displayed data is current and validated for this binding.","No authority exists beyond exact runtime-issued allowed actions."),empty:Tt("Exact empty result","Nothing is present in this view","The server returned an empty result for this exact binding.","The empty result belongs to the current route and binding.","No missing Cycle, hidden item, or first-use state is inferred."),"read-only":Tt("Observer projection","Current state is read-only","Access-safe current data is available without mutation authority.","The displayed projection is validated for this exact binding.","No approval, execution, recovery, or write authority is available here."),refreshing:Tt("Reconciliation","Refreshing current state","A new exact projection is required before controls can become available.","The retained projection still belongs to the current binding.","The latest Event head and mutation safety are not yet reconciled."),stale:Tt("Stale projection","Current view is stale","Validated retained data is visible, but it is not the proven current head.","The retained data belongs to this exact binding.","Current Event-head parity and mutation safety are not proven."),degraded:Tt("Degraded projection","Some current data is unavailable","Only the access-safe validated portion of this bound projection is shown.","The displayed portion passed its exact presentation contract.","Completeness and mutation safety are not proven."),blocked:Tt("Blocked work","Current work is blocked","The projection proves a blocker without inventing a way around it.","The blocker and retained data belong to the exact current binding.","No bypass, completion, or recovery authority is implied."),unavailable:Tt("Unavailable projection","This view is unavailable","OpenPlanr could not provide this exact view in the current context.","The unavailable result belongs to the exact current binding.","No empty result, private cause, or mutation authority is inferred."),unauthorized:Tt("Access boundary","Access is not available","The public capability boundary refused this view without disclosing bound data.","The capability refusal is certified and access-safe.","No subject identity, private reason, or authority is disclosed."),offline:Tt("Connection state","OpenPlanr is offline","Only a validated same-binding projection may remain visible while disconnected.","Any displayed retained data belongs to the exact current binding.","Freshness, server continuity, and mutation safety are not proven."),incompatible:Tt("Installation boundary","Dashboard installation is incompatible","The UI, server, or packaged assets do not satisfy one compatible build contract.","The compatibility refusal is certified without presenting project data.","This is not an empty project, offline state, or partial projection."),corrupt:Tt("Integrity boundary","Projection cannot be trusted","Contradictory or invalid public state was rejected before presentation.","The integrity refusal is certified and contains no partial project truth.","No retained data, lifecycle result, or mutation authority is trusted."),conflict:Tt("Current-state conflict","Current state changed","The prior instruction no longer matches the current durable state.","A certified conflict was returned for this exact binding.","No prior confirmation, result, or successor is assumed to remain current."),partial:Tt("Partial projection","Only part of the state is proven","The displayed portion is validated, but completeness is not established.","The access-safe displayed portion belongs to the exact current binding.","Completion, outcome, and mutation safety are not proven."),uncertain:Tt("Effect custody","Effect state is uncertain","OpenPlanr cannot prove whether the external effect occurred.","The uncertainty is certified for the exact current binding.","No effect outcome or repeated instruction is proven."),recovering:Tt("Recovery progress","Recovery is in progress","OpenPlanr is reconciling durable state through its canonical recovery path.","The recovery projection belongs to the exact current binding.","No terminal recovery result or new mutation authority is proven yet.")});function Tt(e,t,a,s,c){return Object.freeze({eyebrow:e,title:t,description:a,proven:s,notProven:c})}function UG(e){return e==="booting"||e==="loading"||e==="refreshing"?"booting":e==="first-use"||e==="empty"?"first-use":e==="ready"?"ready-to-resume":e==="offline"?"offline":e==="incompatible"||e==="corrupt"||e==="conflict"||e==="uncertain"?"incompatible":"unavailable"}function LG(e){const t=e.closest("[data-live-state-boundary]")??e;t.dispatchEvent(new CustomEvent("openplanr-live-state-close",{bubbles:!1}));for(const a of t.querySelectorAll("[data-live-unsafe-control]"))a instanceof HTMLDetailsElement&&(a.open=!1),typeof HTMLDialogElement<"u"&&a instanceof HTMLDialogElement&&a.open&&a.close()}function PG(e,t){var a;return t==="recovery-heading"?e.querySelector("[data-product-state-recovery-heading]"):t==="state-heading"?e.querySelector(".op-state-panel h2"):((a=e.closest("main"))==null?void 0:a.querySelector("h1"))??e.closest("main")}function FG(e,t){if(e===null)return!0;if(t===null)return!1;try{return Ye(e,Ve(t))}catch{return!1}}function VG(e){var t,a;return e.kind==="first-use"?((t=e.binding)==null?void 0:t.cycleId)===null:!(e.kind==="empty"&&((a=e.binding)==null?void 0:a.route)==="#/operate/today"&&e.binding.cycleId!==null)}function qG({state:e,currentBinding:t,children:a}){const s=B.useRef(null),c=B.useId(),l=`dashboard-product-state-${c}`,u=`dashboard-product-recovery-${c}`,f=Pe(e),h=f&&VG(e),A=f&&h,y=A&&FG(e.binding,t),m=A&&y&&sA(e,t),E=B.useRef(null),b=B.useRef(null),w=A&&y?e.policy.focus:"state-heading",x=`${A&&y?e.kind:"state-rejected"}:${w}:${m?"mutable":"safe"}`;if(B.useEffect(()=>{const I=s.current;if(!I||(!m&&b.current!==!1&&LG(I),b.current=m,E.current===x))return;const C=PG(I,w);C&&(C.hasAttribute("tabindex")||C.setAttribute("tabindex","-1"),C.focus({preventScroll:!0})),E.current=x},[w,x,m]),!A||!y)return r.jsx("div",{ref:s,"data-product-state":"incompatible","data-product-state-custody":"rejected",children:r.jsx(be,{state:"incompatible",eyebrow:"Validation boundary",title:f&&!h?"Product state contradicts durable context":A?"Projection does not match the current context":"Product state could not be validated",description:"OpenPlanr rejected untrusted or foreign data before it reached this route.",detail:"No foreign actor, project, scope, domain, Cycle, subject, head, view, or generation is displayed.",headingId:l})});if(e.kind==="ready")return r.jsxs("div",{ref:s,"data-product-state":"ready","data-product-state-mutation":m?"allowed":"disabled",children:[e.data!==null&&a?a(e.data,e.kind,m):null,r.jsx("p",{className:"op-authority-note","data-product-state-authority":!0,children:m?"Mutation remains limited to exact runtime-issued allowed actions for this binding.":"Mutation controls remain disabled in this presentation state."})]});const j=$G[e.kind];return r.jsxs("div",{ref:s,"data-product-state":e.kind,"data-product-state-mutation":m?"allowed":"disabled",children:[r.jsx(be,{state:UG(e.kind),eyebrow:j.eyebrow,title:j.title,description:j.description,detail:e.reasonCodes.length>0?e.reasonCodes.join(" · "):void 0,headingId:l}),e.data!==null&&a?a(e.data,e.kind,m):null,r.jsx(zG,{state:e,proven:j.proven,notProven:j.notProven,headingId:u}),r.jsx("p",{className:"op-authority-note","data-product-state-authority":!0,children:m?"Mutation remains limited to exact runtime-issued allowed actions for this binding.":"Mutation controls remain disabled in this presentation state."})]})}function KG({currentBinding:e,route:t,state:a,children:s}){const c=!t||e===null||t.kind!=="not-found"&&e.route===Pa(t)&&e.productArea===t.product&&e.subjectId===t.subjectId;return Pe(a)?r.jsx("section",{className:"op-projection-boundary","data-projection-boundary":a.kind,"aria-label":"Current product state",children:r.jsx(qG,{state:a,currentBinding:c?e:null,children:s})}):r.jsx("section",{className:"op-projection-boundary","data-projection-boundary":"incompatible","aria-label":"Current product state",children:r.jsx(be,{state:"incompatible",eyebrow:"State boundary",title:"Product state could not be validated",description:"OpenPlanr rejected an unverified state before presenting any product data."})})}const JG=Object.freeze({approvalExecution:"Named approval satisfies only its exact version-bound requirement. Execution receives a fresh authority check.",verification:"Outcome verification remains separate. No success claim appears before accepted evidence.",retry:"An effect may have occurred. Only Inspect, Reconcile, custody restoration, or an explicit runtime recovery route is legal."}),ZG=new Set(["today","inbox","cycles","cycle","actions"]),bb=Object.freeze(["observe","understand","decide","govern","act","verify","learn"]),BQ=Object.freeze({created:0,observing:0,advising:1,challenging:1,synthesizing:1,awaiting_review:2,approved:3,executing:4,verifying:5,closed:6,blocked:0,failed:0,cancelled:0}),XG=new Set([...Object.keys(BQ),"closed","blocked","failed","cancelled"]),WG=new Set(["normal","quiet","partial","blocked"]),Dg=Object.freeze(["source","touched","carried-forward"]),vQ=Object.freeze({finding:/^fnd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,decision:/^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,action:/^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u}),eY=Object.freeze({finding:new Set(["open","accepted","resolved","rejected","deferred","superseded"]),decision:new Set(["proposed","approved","rejected","deferred","superseded"]),action:new Set(["proposed","approved","queued","in_progress","completed","blocked","rejected","deferred","cancelled"])}),tY=new Map([["operate-experience-display-surface.schema.json",PA],["operate-action-display-workspace.schema.json",zA],["operate-cycle-display-workspace.schema.json",$A],["operate-executive-board-display-surface.schema.json",LA],["operate-recovery-display-surface.schema.json",UA],["operate-experience-surface.schema.json",Fu],["operate-experience-view.schema.json",VA],["operate-review-display-workspace.schema.json",Mo],["operating-finding.schema.json",oQ],["operate-experience-preview.schema.json",cQ],["operate-api-envelope.schema.json",JM],["operate-allowed-action.schema.json",YA],["operating-work-ledger.schema.json",ZM],["operating-delivery-route.schema.json",lQ],["operating-evidence-resolution.schema.json",dQ],["operating-execution-result.schema.json",uQ],["operating-governed-operation.schema.json",fQ],["operating-review.schema.json",Lu],["operating-trace-matrix.schema.json",Pu]]);function nY(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function bQ(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=tY.get(s);return c?{schema:nY(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function fo(){return[{path:"$",rule:"closedContract",detail:"does not satisfy the closed display contract"}]}function Xc(e,t){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const a=Object.keys(e);return a.length===t.length&&t.every(s=>a.includes(s))}function hl(e,t,{workspace:a=!1,executiveBoard:s=!1,action:c=!1,recovery:l=!1}={}){if(!t)return!0;if(e.actorId!==t.actorId||e.scopeId!==t.scopeId||e.domainId!==t.domainId||e.domainVersion!==t.domainVersion||e.generatedAt!==t.generatedAt||e.viewHash!==t.viewHash||!hn(e.eventHead,t.eventHead))return!1;if(!a){if(t.surface!==void 0&&e.surface!==t.surface)return!1;if(e.surface==="inbox"||e.surface==="actions")return t.surface===e.surface&&typeof t.projectId=="string"&&Number.isSafeInteger(t.generation)&&e.data.requestBinding.projectId===t.projectId&&e.data.requestBinding.generation===t.generation&&(e.surface!=="inbox"||e.data.requestBinding.subjectId===t.subjectId)&&(e.surface!=="actions"||t.subjectId===null&&typeof t.cycleId=="string"&&t.cycleId.length>0);if(e.surface==="cycle"){const u=e.data.cycle.cycleId;if(typeof t.subjectId!="string"||typeof t.cycleId!="string"||t.subjectId!==u||t.cycleId!==u)return!1}return!0}return s?t.cycleId===e.data.cycleId&&t.subjectId===e.data.cycleId:c?t.subjectId===e.data.action.actionId&&t.actionId===e.data.action.actionId:l?!0:t.cycleId===e.data.cycle.cycleId&&t.subjectId===e.data.cycle.cycleId}function wQ(e){if(!e||typeof e!="object"||!XG.has(e.state)||!WG.has(e.health)||!Array.isArray(e.stages)||e.stages.length!==bb.length||!e.stages.every((a,s)=>a.id===bb[s]))return!1;const t=BQ[e.state];return e.stages.every((a,s)=>{let c=s<t?"complete":s===t?"current":"waiting";e.state==="closed"&&(c="complete"),s===t&&["blocked","failed"].includes(e.state)&&(c=e.state),s===t&&e.state==="cancelled"&&(c="skipped");const l=["blocked","failed","skipped"].includes(c)?`Cycle is ${e.state}.`:null;return a.state===c&&a.reason===l})}function aY(e,t){const a=e.payload;if(!ZG.has(a.surface)||e.integrity.sourceViewHash!==a.viewHash||a.truthSummary.sourceViewHash!==a.viewHash||!hn(a.truthSummary.sourceEventHead,a.eventHead)||!hl(a,t))return!1;if(a.surface==="inbox"){const c=a.data.inbox,l=a.data.requestBinding.subjectId;return Array.isArray(c)&&new Set(c.map(u=>u.itemId)).size===c.length&&(l===null||c.length===1&&c[0].itemId===l)&&c.every((u,f)=>f===0||Number(c[f-1].blocking)>Number(u.blocking)||Number(c[f-1].blocking)===Number(u.blocking)&&c[f-1].itemId.localeCompare(u.itemId)<0)}if(a.surface==="actions"){const c=a.data.actions;return Array.isArray(c)&&new Set(c.map(l=>l.actionId)).size===c.length}const s=a.surface==="today"?a.data.activeCycle===null?[]:[a.data.activeCycle]:a.surface==="cycles"?a.data.cycles:[a.data.cycle];return new Set(s.map(c=>c.cycleId)).size===s.length&&s.every(wQ)}function Lh(e,t){return Xc(e,["kind","subjectId","state","relations"])&&e.kind===t&&typeof e.subjectId=="string"&&vQ[t].test(e.subjectId)&&typeof e.state=="string"&&eY[t].has(e.state)&&Array.isArray(e.relations)&&e.relations.length>=1&&e.relations.length<=Dg.length&&e.relations.every(a=>Dg.includes(a))&&new Set(e.relations).size===e.relations.length}function iY(e){var t;return Xc(e,["entityKind","entityId","cycleId","relation"])&&((t=vQ[e.entityKind])==null?void 0:t.test(e.entityId))===!0&&typeof e.cycleId=="string"&&Dg.includes(e.relation)}function rY(e,t){const a=[...e.findings,...e.decisions,...e.actions],s=a.map(l=>`${l.kind}:${l.subjectId}`),c=e.cycleLinks.map(l=>`${l.entityKind}:${l.entityId}:${l.cycleId}:${l.relation}`);return new Set(s).size!==s.length||new Set(c).size!==c.length||e.cycleLinks.some(l=>l.cycleId!==t||!a.some(u=>u.kind===l.entityKind&&u.subjectId===l.entityId))?!1:a.every(l=>Kt(l.relations,e.cycleLinks.filter(u=>u.entityKind===l.kind&&u.entityId===l.subjectId).map(u=>u.relation)))}function sY(e,t){return Xc(e,["tool","arguments","label","effect"])&&e.tool==="operate.cycle.get"&&Xc(e.arguments,["cycleId"])&&e.arguments.cycleId===t&&typeof e.label=="string"&&e.label.length>0&&e.label.length<=256&&!/(?:<[^>]+>|\{\{[^}]+\}\})/u.test(e.label)&&e.effect==="read-only"}function oY(e){const t=e.verification,a=e.metric;return["succeeded","failed"].includes(e.status)&&e.accessReason===null&&e.observationIds.length>0&&e.evidenceRefIds.length>0&&a!==null&&a.observed!==null&&a.freshness==="current"&&t!==null&&t.accessReason===null&&e.verificationPlanId===t.verificationPlanId&&a.metricId===t.metricId&&a.metricHash===t.metricHash}function cY(e,t,a,s){const c=e.actions.map(A=>A.subjectId),l=e.outcomes.map(A=>A.outcomeId),u=e.learnings.map(A=>A.learningId);if(new Set(l).size!==l.length||new Set(u).size!==u.length||e.outcomes.some(A=>!c.includes(A.actionId))||e.learnings.some(A=>!l.includes(A.outcomeId)))return!1;const f=s.proof.status==="verified"?"verified":s.proof.status==="not-required"?"not-required":"unverified",h=f==="unverified"?s.proof.reasonCodes.length>0?s.proof.reasonCodes:["OPERATE_VERIFICATION_EVIDENCE_MISSING"]:[];return a.status===f&&Kt(a.reasonCodes,h)}function Ph(e,t,a){return{ok:!0,kind:"operate-experience-surface",schemaVersion:"1.0.0",protocolVersion:e.protocolVersion,surface:t,readOnly:!0,mutationEnabled:e.status==="ready",scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,actorId:e.actorId,accessLevel:e.accessLevel,generatedAt:e.generatedAt,eventHead:e.eventHead,viewHash:e.viewHash,truthSummary:e.truthSummary,status:e.status,reasonCodes:e.reasonCodes,data:a}}function lY(e){const t=e.data;if(!Xc(t.ownerCycle,["cycleId","scopeId","domainId","domainVersion","state","health","focus","createdAt","updatedAt"])||!Array.isArray(t.persistentWork.findings)||!t.persistentWork.findings.every(a=>Lh(a,"finding"))||!Array.isArray(t.persistentWork.decisions)||!t.persistentWork.decisions.every(a=>Lh(a,"decision"))||!Array.isArray(t.persistentWork.actions)||!t.persistentWork.actions.every(a=>Lh(a,"action"))||!Array.isArray(t.persistentWork.cycleLinks)||!t.persistentWork.cycleLinks.every(iY)||!Array.isArray(t.persistentWork.outcomes)||!Array.isArray(t.persistentWork.learnings)||t.allowedActions.length!==1)return!1;try{const a=t.cycle,s={...a,assignments:a.assignments.map(u=>u.deepLink===null?{...u,deepLink:a.deepLink}:u)},c=t.persistentWork.outcomes.map(u=>u.deepLink===null?{...u,deepLink:`#/operate/outcomes/${encodeURIComponent(u.outcomeId)}`}:u);cu(Ph(e,"cycle",{cycle:s})),cu(Ph(e,"outcomes",{domainMetrics:[],outcomes:c,learnings:t.persistentWork.learnings})),cu(Ph(e,"history",{history:[],replay:t.replay}));const l=t.persistentWork.actions.filter(u=>u.relations.includes("source")).map(u=>u.subjectId);return wQ(a)&&t.ownerCycle.cycleId===a.cycleId&&t.ownerCycle.scopeId===e.scopeId&&t.ownerCycle.domainId===e.domainId&&t.ownerCycle.domainVersion===e.domainVersion&&t.ownerCycle.state===a.state&&t.ownerCycle.health===a.health&&Kt(t.ownerCycle.focus,a.focus)&&t.ownerCycle.createdAt===a.createdAt&&t.ownerCycle.updatedAt===a.updatedAt&&a.deepLink===`#/operate/cycles/${encodeURIComponent(a.cycleId)}`&&hn(t.replay.finalHead,e.eventHead)&&Kt(a.replayCheckpoint,t.replay.checkpoint)&&Kt(a.persistentActionIds,l)&&rY(t.persistentWork,a.cycleId)&&cY(t.persistentWork,a,t.verification,e.truthSummary)&&sY(t.allowedActions[0],a.cycleId)}catch{return!1}}function dY(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&e.payload.truthSummary.sourceViewHash===e.payload.viewHash&&hn(e.payload.truthSummary.sourceEventHead,e.payload.eventHead)&&hl(e.payload,t,{workspace:!0})&&lY(e.payload)}function gl(e,t,a,s,c){try{const l=Ua(e);if(ko(l,t,{base:a,resolveRef:bQ}).length>0||!s(l,c))return fo();const f=GA(aQ(l),l.integrity.domain);return l.integrity.contentHash===f?[]:fo()}catch{return fo()}}function uY(e,t){return gl(e,PA,"schemas/v1.2.0/operate-experience-display-surface.schema.json",aY,t)}function Cn(e,t){if(uY(e,t).length>0){const a=new TypeError("The Operate display surface does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_EXPERIENCE_DISPLAY_INVALID",a}return e}function fY(e,t){return t?e.actorId===t.actorId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&hn(e.eventHead,t.eventHead)&&e.sourceViewHash===t.sourceViewHash&&e.subject.id===t.subjectId&&e.actionDigest===t.actionDigest:!0}function pY(e){if(new Set(e.targets.map(a=>`${a.kind}:${a.id}`)).size!==e.targets.length)return!1;if(e.kind!=="approval")return e.threshold===null;const t=e.threshold;return t===null||t.recorded>t.required||t.remaining!==t.required-t.recorded?!1:t.remaining===0?e.nextState==="threshold-satisfied":e.nextState==="recorded-parties-remain"}function hY(e,t){try{const a=Ua(e),s=ko(a,cQ,{base:"schemas/v2.0.0/operate-experience-preview.schema.json",resolveRef:bQ});if(s.length>0||!fY(a,t)||!pY(a.transition))return s.length>0?s:fo();const c=Ua(a);return delete c.previewHash,a.actionDigest!==mr(a.allowedAction)||a.previewHash!==mr(c)?fo():[]}catch{return fo()}}function gY(e,t){if(hY(e,t).length>0){const a=new TypeError("The Operate preview does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_EXPERIENCE_PREVIEW_INVALID",a}return nQ(Ua(e))}function AY(e,t){return gl(e,$A,"schemas/v1.2.0/operate-cycle-display-workspace.schema.json",dY,t)}function bu(e,t){if(AY(e,t).length>0){const a=new TypeError("The Cycle display workspace does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_CYCLE_DISPLAY_INVALID",a}return e}function mY(e){return e===null?!0:typeof e!="object"||Array.isArray(e)?!1:e.kind==="omitted"?typeof e.reason=="string"&&e.reason.length>0:e.kind==="lens"?typeof e.roleId=="string"&&typeof e.roleKind=="string"&&typeof e.absenceCode=="string"&&typeof e.reason=="string":e.kind==="terminal"?(e.outcome==="abandoned"||e.outcome==="failed")&&typeof e.code=="string"&&typeof e.reason=="string"&&typeof e.recoveryDisposition=="string":!1}function yY(e){return typeof(e==null?void 0:e.roleId)=="string"&&typeof(e==null?void 0:e.label)=="string"&&e.roleId!==e.label&&typeof(e==null?void 0:e.roleKind)=="string"&&typeof(e==null?void 0:e.roleVersion)=="string"&&mY((e==null?void 0:e.absence)??null)}function EY(e){var a;const t=(a=e==null?void 0:e.data)==null?void 0:a.executiveBoard;return!t||!Array.isArray(t.seats)?!1:t.seats.every(yY)}function BY(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&hl(e.payload,t,{executiveBoard:!0})&&EY(e.payload)}function vY(e,t){return gl(e,LA,"schemas/v1.2.0/operate-executive-board-display-surface.schema.json",BY,t)}function Tg(e,t){if(vY(e,t).length>0){const a=new TypeError("The executive board display surface does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_EXECUTIVE_BOARD_DISPLAY_INVALID",a}return e}function bY(e){return`#/operate/actions/${encodeURIComponent(e)}`}function wY(e){return e===null?Object.freeze({status:"not-required",reasonCodes:Object.freeze([])}):e.status==="insufficient-evidence"?Object.freeze({status:"unverified",reasonCodes:Object.freeze(["OPERATE_VERIFICATION_EVIDENCE_MISSING"])}):["succeeded","failed"].includes(e.status)&&oY(e)?Object.freeze({status:"verified",reasonCodes:Object.freeze([])}):Object.freeze({status:"unverified",reasonCodes:Object.freeze(["OPERATE_VERIFICATION_EVIDENCE_MISSING"])})}function xY(e){const t=e==null?void 0:e.status;return t==="healthy"||t==="empty"?"restored":t==="corrupt"?"corrupt":t==="incompatible"?"incompatible":t==="locked"?"blocked":t==="repairable"?e.allowedRecovery==="clear-stale-lock"?"blocked":(e.allowedRecovery==="restore-generation","uncertain"):"blocked"}function jY(e){const t=e.data,a=t.action,s=bY(a.actionId),c=t.allowedActions,l=t.outcome,u=wY(l),f=c.some(h=>h.action.effect!=="read-only");return!(e.readOnly===e.mutationEnabled||e.mutationEnabled&&(e.status!=="ready"||!f)||a.deepLink!==s||!Kt(t.boundaries,JG)||!Kt(t.verification,u)||!Kt(t.replay.finalHead,e.eventHead)||c.some(h=>h.subjectId!==a.actionId)||t.inbox.some(h=>h.subjectId!==a.actionId)||t.learnings.some(h=>l===null||h.outcomeId!==l.outcomeId)||l!==null&&l.actionId!==a.actionId)}function QY(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&hl(e.payload,t,{workspace:!0,action:!0})&&jY(e.payload)}function IY(e,t){return gl(e,zA,"schemas/v1.2.0/operate-action-display-workspace.schema.json",QY,t)}function kg(e,t){if(IY(e,t).length>0){const a=new TypeError("The Action display workspace does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_ACTION_DISPLAY_INVALID",a}return e}function CY(e){const t=e.data;return!("integrityBoundary"in t.inspection||t.recoveryState!==xY(t.inspection))}function SY(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&hl(e.payload,t,{workspace:!0,recovery:!0})&&CY(e.payload)}function OY(e,t){return gl(e,UA,"schemas/v1.2.0/operate-recovery-display-surface.schema.json",SY,t)}function Mg(e,t){if(OY(e,t).length>0){const a=new TypeError("The recovery display surface does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_RECOVERY_DISPLAY_INVALID",a}return e}Object.freeze(structuredClone(zA));Object.freeze(structuredClone(UA));Object.freeze(structuredClone(LA));Object.freeze(structuredClone(PA));Object.freeze(structuredClone($A));const _Y=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,wb=/^[A-Za-z0-9_-]{16,256}$/u,NY=/^[A-Za-z0-9_-]{43,256}$/u,xQ=/^sha256:[a-f0-9]{64}$/u,RY=256*1024;function DY(){let e=0,t=!1,a=!1;const s=new Set,c=()=>{e+=1;for(const l of s)l.abort();s.clear()};return Object.freeze({isDisposed:()=>t,isUncertain:()=>a,invalidate:c,markUncertain(){a=!0,c()},reconcile(){a=!1,c()},start(){if(t)throw new DOMException("Cancelled","AbortError");a&&Se("OPERATION_UNCERTAIN"),s.size>0&&Se("OPERATE_COMMAND_IN_FLIGHT");const l=new AbortController;s.add(l);let u=!0;return Object.freeze({controller:l,epoch:e,release(){u&&(u=!1,s.delete(l))}})},assert(l,u,f){if(t||u.aborted||l!==e||!f)throw new DOMException("Cancelled","AbortError")},dispose(){t||(t=!0,c())}})}function jQ(e){const t=new Set(e.routeKinds),a=DY();let s=null,c=null,l=null,u=null;const f=(A,y)=>s!==null&&c!==null&&Ye(A,s)&&e.sameLocator(y,c),h=(A,y)=>A.productArea===y.productArea&&A.route===y.route&&A.actorId===y.actorId&&A.projectId===y.projectId&&A.scopeId===y.scopeId&&A.domainId===y.domainId&&A.domainVersion===y.domainVersion&&A.cycleId===y.cycleId&&A.subjectId===y.subjectId&&A.generation===y.generation;return Object.freeze({bind(A,y){a.isDisposed()&&Se("OPERATE_ADAPTER_DISPOSED");const m=Ve(A);(m.productArea!=="operate"||!t.has(Ha(m.route).kind))&&Se(e.routeErrorCode);const E=e.parseLocator(y);f(m,E)||(l=null,u=null,a.invalidate(),s=m,c=E)},async run(A,y={}){a.isDisposed()&&Se("OPERATE_ADAPTER_DISPOSED"),(s===null||c===null)&&Se("OPERATE_BINDING_REQUIRED");const m=s,E=c,b=a.start(),w=()=>{a.assert(b.epoch,b.controller.signal,f(m,E))},x=async j=>{try{const I=await j;return w(),I}catch(I){throw w(),I}};try{const j=l??await x(e.issueSession({identity:m,locator:E,signal:b.controller.signal,assertCurrent:w,waitForCurrent:x}));return l=j,await x(A({identity:m,locator:E,session:j,signal:b.controller.signal,assertCurrent:w,waitForCurrent:x}))}catch(j){throw y.uncertainOnFailure&&j instanceof Error&&j.name==="OPERATION_UNCERTAIN"&&(l=null,a.markUncertain()),j}finally{b.release()}},retainPreviewProof(A){(a.isDisposed()||a.isUncertain())&&Se("OPERATION_UNCERTAIN"),u=structuredClone(A)},requirePreviewProof(A){return a.isDisposed()&&Se("OPERATE_ADAPTER_DISPOSED"),A(u)||Se("OPERATE_BINDING_MISMATCH"),structuredClone(u)},clearPreviewProof(){u=null},cancel(){l=null,u=null,a.invalidate()},reconcile(A,y){l=null,u=null,a.isDisposed()&&Se("OPERATE_ADAPTER_DISPOSED"),(s===null||c===null)&&Se("OPERATE_BINDING_REQUIRED");const m=Ve(A);(m.productArea!=="operate"||!t.has(Ha(m.route).kind)||!h(s,m))&&Se("OPERATE_BINDING_MISMATCH");const E=y===void 0?c:e.parseLocator(y);e.sameLocator(c,E)||Se("OPERATE_BINDING_MISMATCH"),s=m,c=E,a.reconcile()},dispose(){a.isDisposed()||(l=null,u=null,s=null,c=null,a.dispose())}})}class Gc extends Error{constructor(t){super("The governed command was refused without effect."),this.code=t,this.name=t}}function Se(e="OPERATE_COMMAND_INVALID"){throw new Gc(e)}function Fn(e){return(e===null||typeof e!="object"||Array.isArray(e))&&Se(),e}function va(e,t){const a=Object.keys(e).sort(),s=[...t].sort();(a.length!==s.length||a.some((c,l)=>c!==s[l]))&&Se()}function po(e,t){return(typeof e!="string"||!t.test(e))&&Se(),e}function Gg(e){const t=Fn(e);va(t,["sequence","hash"]),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&Se();const a=t.hash===null?null:po(t.hash,xQ);return t.sequence===0!=(a===null)&&Se(),Object.freeze({sequence:t.sequence,hash:a})}function QQ(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function Fd(e){const t=Fn(e);return va(t,["subjectId","actionDigest"]),Object.freeze({subjectId:po(t.subjectId,_Y),actionDigest:po(t.actionDigest,xQ)})}function TY(e){let t;try{t=new URL(e)}catch{Se("OPERATE_ORIGIN_INVALID")}return(t.origin!==e||t.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(t.hostname))&&Se("OPERATE_ORIGIN_INVALID"),t.origin}function kY(e,t,a){const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s.toString()}function MY(e){try{const t=Fn(e);va(t,["ok","error"]);const a=Fn(t.error);va(a,["reasonCode","message","retryable"]);const s=a.reasonCode;return t.ok===!1&&typeof s=="string"&&/^[A-Z][A-Z0-9_]{0,127}$/u.test(s)&&typeof a.message=="string"&&a.retryable===!1?s:null}catch{return null}}function GY(e,t){va(e,["ok","operation","error","allowedActions"]);const a=Fn(e.error);va(a,["code","message","retryable","context"]);const s=Fn(a.context);va(s,[]),(e.ok!==!1||e.operation!==t||a.code!=="OPERATION_UNCERTAIN"||typeof a.message!="string"||a.retryable!==!1||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&Se("OPERATE_COMMAND_REFUSED")}function YY(e,t,a,s){va(e,["ok","operation","data","allowedActions","eventHead"]),(e.ok!==!0||e.operation!==t||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&Se("OPERATE_RESPONSE_INVALID");const c=Gg(e.eventHead),l=Fn(e.data),u=Gg(l.eventHead);return(l.kind!=="operate-experience-view"||l.schemaVersion!=="1.0.0"||l.protocolVersion!=="2.0.0"||l.actorId!==a.actorId||l.scopeId!==a.scopeId||l.domainId!==a.domainId||l.domainVersion!==a.domainVersion||!QQ(u,c)||c.sequence<=s.sequence||c.hash===null)&&Se("OPERATE_RESPONSE_INVALID"),c}async function HY(e,t){const a=e.headers.get("content-type");(!a||!/^application\/json(?:\s*;\s*charset=utf-8)?$/iu.test(a))&&Se("OPERATE_RESPONSE_INVALID");const s=e.text(),c=t?await t.waitForCurrent(s):await s;t==null||t.assertCurrent(),c.length>RY&&Se("OPERATE_RESPONSE_INVALID");let l;try{l=JSON.parse(c)}catch{Se("OPERATE_RESPONSE_INVALID")}if(!e.ok){const u=MY(l);u===null&&Se("OPERATE_RESPONSE_INVALID"),Se(u)}return l}function IQ(e,t,a,s){const c=Fn(e);va(c,["kind","schemaVersion","protocolVersion","sessionId","sessionCapability","issuedAt","expiresAt","binding","allowedActions","readOnly"]),(c.kind!=="operate-command-session"||c.schemaVersion!=="1.0.0"||c.protocolVersion!=="2.0.0"||c.readOnly!==!1||typeof c.issuedAt!="string"||typeof c.expiresAt!="string")&&Se("OPERATE_SESSION_INVALID");const l=Fn(c.binding);va(l,["actorId","scopeId","domainId","domainVersion","cycleId","eventHead","sourceViewHash","actionLocator"]);const u=s.parseLocator(l.actionLocator),f=Gg(l.eventHead);(l.actorId!==t.actorId||l.scopeId!==t.scopeId||l.domainId!==t.domainId||l.domainVersion!==t.domainVersion||l.cycleId!==t.cycleId||t.eventHead===null||!QQ(f,t.eventHead)||l.sourceViewHash!==t.viewHash||!s.sameLocator(u,a))&&Se("OPERATE_BINDING_MISMATCH"),Array.isArray(c.allowedActions)||Se("OPERATE_ACTION_REFERENCE_INVALID");let h=null;if(s.allowedActions.kind==="none")c.allowedActions.length!==0&&Se("OPERATE_ACTION_REFERENCE_INVALID");else{c.allowedActions.length!==1&&Se("OPERATE_ACTION_REFERENCE_INVALID");const A=Fn(c.allowedActions[0]),y=s.allowedActions.parseLocator(A);s.sameLocator(y,a)||Se("OPERATE_BINDING_MISMATCH"),h=po(A.actionReference,wb)}return Object.freeze({sessionId:po(c.sessionId,wb),capability:po(c.sessionCapability,NY),actionReference:h})}function zY(e,t,a,s){const c={"content-type":"application/json","x-openplanr-actor":e.actorId};return a&&(c.origin=t),s!==void 0&&(c.authorization=`Bearer ${s}`),c}async function Fh(e,t,a,s,c,l,u,f,h){const A=e(kY(t,a,s),{method:"POST",credentials:"same-origin",headers:zY(s,t,u,f),body:JSON.stringify(c),signal:l}),y=h?await h.waitForCurrent(A):await A;return h==null||h.assertCurrent(),HY(y,h)}function KA(e){const t=TY(e.origin),a=e.fetcher??globalThis.fetch.bind(globalThis),s=new Set(e.routeKinds),c=e.includeOriginHeader??!1;let l=null;const u=jQ({routeKinds:e.routeKinds,routeErrorCode:e.routeErrorCode,parseLocator:Fd,sameLocator:(A,y)=>A.subjectId===y.subjectId&&A.actionDigest===y.actionDigest,async issueSession({identity:A,locator:y,signal:m,assertCurrent:E,waitForCurrent:b}){(A.cycleId===null||A.eventHead===null||A.viewHash===null)&&Se("OPERATE_BINDING_REQUIRED");const w=await Fh(a,t,"/api/operate/session",A,{cycleId:A.cycleId,eventHead:A.eventHead,sourceViewHash:A.viewHash,actionLocator:y},m,c,void 0,{assertCurrent:E,waitForCurrent:b});return E(),IQ(w,A,y,{parseLocator:Fd,sameLocator:(x,j)=>x.subjectId===j.subjectId&&x.actionDigest===j.actionDigest,allowedActions:{kind:"single-reference",parseLocator(x){return va(x,["actionReference","subjectId","actionDigest"]),Fd({subjectId:x.subjectId,actionDigest:x.actionDigest})}}})}});return Object.freeze({bind:A=>{const y=Ve(A),m=Ha(y.route);(y.productArea!=="operate"||!s.has(m.kind))&&Se(e.routeErrorCode),!(l!==null&&Ye(l,y))&&(u.cancel(),l=y)},preview:async A=>{(l===null||l.productArea!=="operate"||l.cycleId===null||l.eventHead===null||l.viewHash===null)&&Se("OPERATE_BINDING_REQUIRED");const y=Fd(A),m=l,E=l.eventHead,b=l.viewHash;u.bind(m,y);const w=await u.run(async({session:O,signal:S,assertCurrent:_,waitForCurrent:k})=>{O.actionReference===null&&Se("OPERATE_ACTION_REFERENCE_INVALID");let N;try{N=await Fh(a,t,"/api/operate/commands/preview",m,{sessionId:O.sessionId,actionReference:O.actionReference},S,c,O.capability,{assertCurrent:_,waitForCurrent:k}),_()}catch(z){if(S.aborted&&z instanceof DOMException&&z.name==="AbortError"||z instanceof Gc&&z.code!=="OPERATE_RESPONSE_INVALID"&&z.code!=="OPERATION_UNCERTAIN")throw z;Se("OPERATION_UNCERTAIN")}try{const z=gY(N,{actorId:m.actorId,scopeId:m.scopeId,domainId:m.domainId,domainVersion:m.domainVersion,eventHead:E,sourceViewHash:b,subjectId:y.subjectId,actionDigest:y.actionDigest});return u.retainPreviewProof(z),z}catch{Se("OPERATION_UNCERTAIN")}},{uncertainOnFailure:!0});let x=!0,j=null;return Object.freeze({preview:w,confirm:O=>(j!==null||(j=(async()=>{if(!x)throw new DOMException("Cancelled","AbortError");try{const S=await u.run(async({session:_,signal:k,assertCurrent:N,waitForCurrent:z})=>{var Z;const M=u.requirePreviewProof(F=>Fn(F).previewId===w.previewId&&Fn(F).previewHash===w.previewHash);let L;try{L=await Fh(a,t,"/api/operate/commands/confirm",m,{sessionId:_.sessionId,previewId:M.previewId,previewHash:M.previewHash,...((Z=e.confirmation)==null?void 0:Z.additionalBody(M,O))??{}},k,c,_.capability,{assertCurrent:N,waitForCurrent:z}),N()}catch(F){if(k.aborted&&F instanceof DOMException&&F.name==="AbortError"||F instanceof Gc&&F.code!=="OPERATION_UNCERTAIN"&&F.code!=="OPERATE_RESPONSE_INVALID")throw F;Se("OPERATION_UNCERTAIN")}try{if(e.confirmation)return e.confirmation.parse({value:L,preview:M,identity:m,previousHead:E,input:O});const F=Fn(L);return F.ok!==!0&&(GY(F,M.allowedAction.tool),Se("OPERATION_UNCERTAIN")),YY(F,M.allowedAction.tool,m,E)}catch(F){if(F instanceof Gc&&F.code==="OPERATION_UNCERTAIN")throw F;Se("OPERATION_UNCERTAIN")}},{uncertainOnFailure:!0});return u.clearPreviewProof(),e.confirmation?S:Object.freeze({ok:!0,eventHead:S})}catch(S){if(S instanceof Gc&&S.code==="OPERATION_UNCERTAIN")return Object.freeze({ok:!1,reasonCode:"OPERATION_UNCERTAIN"});throw S}finally{x=!1}})()),j),cancel:()=>{x&&(x=!1,u.cancel())}})},reconcile(A){l===null&&Se("OPERATE_BINDING_REQUIRED");const y=Ve(A);u.reconcile(y),l=y},cancel:u.cancel,dispose(){u.dispose(),l=null}})}function $Y(e){return KA({...e,routeKinds:["operate.action"],routeErrorCode:"OPERATE_ACTION_ROUTE_REQUIRED",includeOriginHeader:!0})}const UY=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function CQ(e){try{const t=Ve(e);return t.productArea==="operate"&&t.subjectId!==null&&t.cycleId!==null&&t.route===`#/operate/actions/${encodeURIComponent(t.subjectId)}`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function qu(e){const t=CQ(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=kg(a),c=s.payload;if(t.eventHead===null||t.viewHash===null||t.subjectId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",cycleId:t.cycleId,subjectId:t.subjectId,actionId:t.subjectId});return kg(s,l),!0}catch{return!1}}}function xb(e,t){const a=CQ(t);if(a===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!qu(a)(e.data))return null;const s=e.data,c=s.payload,l=UY[e.kind];return l===void 0||c.status!==l||c.mutationEnabled!==e.mutationEnabled?null:Object.freeze({kind:"action",presentation:l,binding:e.binding,display:s,workspace:c,action:c.data.action,outcome:c.data.outcome,learnings:c.data.learnings,inbox:c.data.inbox,history:c.data.history,replay:c.data.replay,verification:c.data.verification,boundaries:c.data.boundaries,allowedActions:c.data.allowedActions,mutationEnabled:l==="ready"&&c.mutationEnabled})}const LY=2147e6;function SQ(e){var a,s;const t=((a=e==null?void 0:e.action)==null?void 0:a.tool)??"";return t.endsWith(".approve")?"approval":t.endsWith(".execute")?"execute":t.endsWith(".rollback")?"rollback":t.includes("recovery")||t.includes("reconcile")?"reconcile":((s=e==null?void 0:e.action)==null?void 0:s.effect)==="read-only"?"inspect":"governed"}function _a(e){var t,a;return JSON.stringify([e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation,((t=e.eventHead)==null?void 0:t.sequence)??null,((a=e.eventHead)==null?void 0:a.hash)??null,e.viewHash,e.subjectId])}function OQ(e){return e.presentation==="offline"?"Changes are unavailable offline. Reconnect and refresh before continuing.":e.presentation==="stale"?"This workspace is out of date. Refresh before reviewing a new action.":e.workspace.reasonCodes.includes("OPERATE_EVENT_GAP")?"This workspace is missing an update. Refresh before continuing.":e.presentation==="read-only"||!e.mutationEnabled?"You do not currently have permission to make changes here.":null}function jb(e){return e instanceof DOMException&&e.name==="AbortError"}function Vd(e){return e instanceof Error&&e.name==="OPERATION_UNCERTAIN"}function PY(){typeof window>"u"||window.setTimeout(()=>window.location.reload(),0)}function _Q(e){return Date.parse(e.custody.preview.expiresAt)}function Qb(e,t=Date.now()){const a=_Q(e);return!Number.isFinite(a)||a<=t}function no(e,t){return t!==null&&e.contextKey===_a(t.binding)&&Ye(e.binding,t.binding)&&e.locator.subjectId===t.action.actionId}function Pn({label:e,value:t}){return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:t==null||t===""?"Not available":t})]})}function wn({label:e,value:t}){const a=t==null||t===""?"Not available":t;return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:r.jsx("code",{children:a})})]})}function JA(e){return e.split(/[-_]/u).filter(Boolean).map(t=>`${t.slice(0,1).toUpperCase()}${t.slice(1)}`).join(" ")}function ZA(e){const t=new Date(e);return Number.isFinite(t.valueOf())?new Intl.DateTimeFormat("en",{day:"numeric",hour:"numeric",minute:"2-digit",month:"short",timeZone:"UTC",timeZoneName:"short",year:"numeric"}).format(t):e}function Wc(e,t,a=`${t}s`){return`${e} ${e===1?t:a}`}function Ib(e){return e==="insufficient-evidence"?"More evidence is needed":e==="verified"?"Outcome confirmed":e==="not-required"?"No further verification is needed":JA(e)}function Cb({kind:e,result:t}){var s;const a=t.targetBeforeHash===t.targetAfterHash;return r.jsxs("section",{className:"op-action-result","aria-labelledby":`op-action-${e.toLowerCase()}-title`,"data-result-kind":e.toLowerCase(),children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsxs("p",{className:"op-eyebrow",children:[e," result"]}),r.jsx("h2",{id:`op-action-${e.toLowerCase()}-title`,children:((s=t.effectSummary)==null?void 0:s.summary)??`${e} result is access-restricted`})]}),r.jsx("p",{children:"A recorded change still needs evidence before its result can be confirmed."})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Pn,{label:"Status",value:JA(t.status)}),r.jsx(Pn,{label:"Completed",value:ZA(t.completedAt)}),r.jsx(Pn,{label:"Change",value:a?"No change recorded":"Change recorded"}),r.jsx(Pn,{label:"Access",value:t.accessReason??"Current actor may inspect the projected summary"})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Target before digest",value:t.targetBeforeHash}),r.jsx(wn,{label:"Target after digest",value:t.targetAfterHash})]})]})]})}function FY({outcome:e}){return r.jsxs("section",{className:"op-action-outcome","aria-labelledby":"op-action-outcome-title","data-result-kind":"outcome",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Outcome"}),r.jsx("h2",{id:"op-action-outcome-title",children:Ib(e.status)})]}),r.jsx("p",{children:"This is where the expected result is checked against real evidence."})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Pn,{label:"Status",value:Ib(e.status)}),r.jsx(Pn,{label:"Last checked",value:ZA(e.observedAt)}),r.jsx(Pn,{label:"Observations",value:Wc(e.observationIds.length,"observation")}),r.jsx(Pn,{label:"Evidence",value:Wc(e.evidenceRefIds.length,"reference")})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Outcome ID",value:e.outcomeId}),r.jsx(wn,{label:"Verification plan",value:e.verificationPlanId})]})]})]})}function VY({learning:e}){return r.jsxs("section",{className:"op-action-learning","aria-labelledby":`op-learning-${e.learningId}`,"data-result-kind":"learning",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"What we learned"}),r.jsx("h2",{id:`op-learning-${e.learningId}`,children:e.statement})]}),r.jsx("p",{children:"This insight is based on the work and its evidence."})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Pn,{label:"Recorded",value:ZA(e.createdAt)}),r.jsx(Pn,{label:"Related decisions",value:Wc(e.decisionIds.length,"decision")}),r.jsx(Pn,{label:"Evidence",value:Wc(e.evidenceRefIds.length,"reference")})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Learning ID",value:e.learningId}),r.jsx(wn,{label:"Outcome ID",value:e.outcomeId})]})]})]})}function qd({entry:e,model:t,variant:a,fallbackLabel:s,fallbackReason:c,pending:l,onInvoke:u}){var A,y,m;const f=OQ(t),h=`op-action-control-${SQ(e)}`;return e&&!f&&((A=e.action)==null?void 0:A.effect)!=="read-only"?r.jsx(Mt,{id:h,variant:a,...l?{disabled:!0,disabledReason:"A governed preview is already in flight."}:{onInvoke:()=>u(e,h)},children:((y=e.action)==null?void 0:y.label)??s}):r.jsx(Mt,{id:h,disabled:!0,disabledReason:f??c,children:((m=e==null?void 0:e.action)==null?void 0:m.label)??s})}function qY({model:e,pending:t,onInvoke:a}){var j,I;const{action:s,outcome:c,learnings:l,boundaries:u}=e,f=e.allowedActions.filter(C=>C.subjectId===s.actionId),h=new Map(f.map(C=>[SQ(C),C])),A=s.executions.at(-1)??null,y=s.rollbacks.at(-1)??null,m=(A==null?void 0:A.status)==="uncertain"||(y==null?void 0:y.status)==="uncertain"||s.state==="uncertain",E=(A==null?void 0:A.status)==="succeeded",b=(c==null?void 0:c.status)==="insufficient-evidence",w=((j=s.deliveryRoute)==null?void 0:j.route)==="planning-work"?`#/operate/actions/${encodeURIComponent(s.actionId)}/planning`:null,x=s.dependencyActionIds.length===0?"No dependencies":Wc(s.dependencyActionIds.length,"dependency","dependencies");return r.jsxs("article",{className:"op-action-detail__workspace","data-action-state":s.state,"aria-labelledby":"op-action-title",children:[r.jsxs("header",{className:"op-action-detail__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"planr-operate · action"}),r.jsx("h1",{id:"op-action-title",children:s.title}),r.jsx("p",{children:s.expectedResult}),r.jsx(fa,{state:s.state})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Pn,{label:"Status",value:JA(s.state)}),r.jsx(Pn,{label:"Related work",value:x})]})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Action ID",value:s.actionId}),r.jsx(wn,{label:"Revision",value:s.revision}),r.jsx(wn,{label:"Action digest",value:s.actionHash}),r.jsx(wn,{label:"Verification plan",value:s.verificationPlanId}),r.jsx(wn,{label:"Delivery route",value:(I=s.deliveryRoute)==null?void 0:I.route}),r.jsx(wn,{label:"Dependencies",value:s.dependencyActionIds.length>0?s.dependencyActionIds.join(" · "):"None"})]})]}),r.jsxs("section",{className:"op-action-boundaries","aria-labelledby":"op-action-boundaries-title",children:[r.jsx("div",{className:"op-cycle-section-heading",children:r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Before you continue"}),r.jsx("h2",{id:"op-action-boundaries-title",children:"Review each step separately"})]})}),r.jsx(be,{state:"unavailable",eyebrow:"Approval",title:"Approval does not make a change",description:u.approvalExecution}),E?r.jsx(be,{state:"incompatible",eyebrow:"Recorded change",title:"The change is complete; its result is still being checked",description:u.verification}):null,b?r.jsx(be,{state:"incompatible",eyebrow:"Evidence",title:"More evidence is needed",description:"The change is recorded, but the expected result is not proven yet. Review the next observation or revisit the work."}):null,m?r.jsx(be,{state:"offline",eyebrow:"Uncertainty",title:"Do not retry this Action",description:u.retry}):null]}),r.jsxs("section",{className:"op-action-detail__controls","aria-label":`Available actions for ${s.title}`,children:[w?r.jsx("a",{className:"op-cycle-link",href:w,children:"Review Planning handoff"}):null,h.has("approval")?r.jsx(qd,{entry:h.get("approval"),model:e,pending:t,onInvoke:a,fallbackLabel:"Approve",fallbackReason:"OpenPlanr returned no approval action for the current authority and state."}):null,h.has("execute")?r.jsx(qd,{entry:h.get("execute"),model:e,pending:t,onInvoke:a,fallbackLabel:"Execute",fallbackReason:"OpenPlanr returned no execute action for the current authority and state."}):r.jsx(Mt,{disabled:!0,disabledReason:E?"This execution already has a durable terminal result. It cannot be dispatched again.":m?"Uncertain effect state prohibits blind retry.":"OpenPlanr returned no execute action for the current authority and state.",children:"Execute unavailable"}),h.has("rollback")?r.jsx(qd,{entry:h.get("rollback"),model:e,variant:"danger",pending:t,onInvoke:a,fallbackLabel:"Rollback",fallbackReason:"Rollback requires its own runtime-issued plan, current policy evaluation, named approval, and exact baseline."}):r.jsx(Mt,{disabled:!0,disabledReason:"Rollback requires its own runtime-issued plan, current policy evaluation, named approval, and exact baseline.",children:"Rollback unavailable"}),h.has("reconcile")?r.jsx(qd,{entry:h.get("reconcile"),model:e,pending:t,onInvoke:a,fallbackLabel:"Reconcile",fallbackReason:"OpenPlanr returned no reconcile action for the current state."}):null]}),A?r.jsx(Cb,{kind:"Execution",result:A}):r.jsx(be,{state:"unavailable",eyebrow:"Change",title:"No change has been recorded",description:"Approval alone does not make a change."}),y?r.jsx(Cb,{kind:"Rollback",result:y}):r.jsx(be,{state:"unavailable",eyebrow:"Rollback",title:"A rollback is a separate action",description:"Restoring a prior setting creates a separate record and a new check."}),c?r.jsx(FY,{outcome:c}):r.jsx(be,{state:"unavailable",eyebrow:"Outcome",title:"No outcome has been confirmed yet",description:"A recorded change still needs evidence of the expected result."}),l.length>0?l.map(C=>r.jsx(VY,{learning:C},C.learningId)):r.jsx(be,{state:"unavailable",eyebrow:"What we learned",title:"No shared insight has been recorded yet",description:"Insights are added after the result has enough supporting evidence."}),m?r.jsx(be,{state:"offline",eyebrow:"Recovery",title:"Reconciliation is required",description:"Use Recovery inspection or an explicit runtime recovery route. Blind retry is prohibited."}):null,r.jsx("p",{className:"op-action-detail__history-link",children:r.jsx("a",{className:"op-cycle-link",href:"#/operate/history",children:"View activity and recovery details"})})]})}function KY({currentBinding:e,current:t,actions:a,onRefetch:s}){const c=B.useMemo(()=>xb(t,e),[t,e]),[l,u]=B.useState(!1),[f,h]=B.useState(null),[A,y]=B.useState(!1),[m,E]=B.useState(!1),[b,w]=B.useState(null),[x,j]=B.useState(null),[I,C]=B.useState(!1),O=B.useRef(a??null),S=B.useRef(null),_=B.useRef(0),k=B.useRef(!1),N=B.useRef(!1),z=B.useRef(null),M=B.useRef(null),L=B.useRef(null),Z=B.useRef(null),F=B.useRef(null),oe=B.useRef(!0),re=B.useCallback(R=>{const J=ne=>{if(!oe.current||R===null||typeof document>"u")return;const Ae=document.getElementById(R);if(!(Ae instanceof HTMLButtonElement)||!Ae.isConnected){ne>0&&typeof window<"u"&&window.setTimeout(()=>J(ne-1),16);return}if(Ae.disabled){ne>0&&typeof window<"u"&&window.setTimeout(()=>J(ne-1),16);return}Ae.focus({preventScroll:!0})};queueMicrotask(()=>{typeof window>"u"?J(4):window.setTimeout(()=>J(4),0)})},[]),pe=B.useCallback(async()=>{if(s){const R=await s();return R&&typeof R=="object"?R:null}return PY(),null},[s]),Y=B.useCallback(async(R=S.current)=>{if(!(!R||I)){C(!0);try{const J=await pe(),ne=J!=null&&J.binding?xb(J,J.binding):null;if(!ne||!O.current)throw new Error("Exact reconciliation failed.");O.current.reconcile(ne.binding),S.current=null,j(null),w({contextKey:_a(ne.binding),tone:"verified",text:"The current action status is confirmed. Review a new preview to continue."})}catch{w({contextKey:_a(R),tone:"attention",text:"We could not confirm the current action status. Do not retry yet."})}finally{oe.current&&C(!1)}}},[I,pe]),V=B.useCallback(()=>{const R=Z.current;R!==null&&(clearTimeout(R),Z.current=null)},[]),te=B.useCallback(()=>{var ne;V();const R=L.current;L.current=null,_.current+=1;const J=z.current;J==null||J.custody.cancel(),(ne=O.current)==null||ne.cancel(),z.current=null,k.current=!1,N.current=!1,u(!1),h(null),E(!1),y(!1),re(R)},[V,re]),le=B.useCallback(R=>{!oe.current||!no(R,F.current)||(te(),w({contextKey:R.contextKey,tone:"attention",text:"This review expired before confirmation. The action is refreshing."}),pe())},[te,pe]),fe=B.useCallback(R=>{V();const J=()=>{if(!oe.current||z.current!==R)return;const ne=_Q(R)-Date.now();if(!Number.isFinite(ne)||ne<=0){Z.current=null,le(R);return}Z.current=setTimeout(J,Math.min(ne,LY))};J()},[V,le]);B.useEffect(()=>(oe.current=!0,a&&(O.current=a),!O.current&&typeof window<"u"&&(O.current=$Y({origin:window.location.origin})),()=>{var J;oe.current=!1,_.current+=1,V();const R=O.current;(J=z.current)==null||J.custody.cancel(),R==null||R.cancel(),z.current=null,k.current=!1,N.current=!1,queueMicrotask(()=>{!oe.current&&O.current===R&&(R==null||R.dispose(),O.current=null)})}),[a,V]),B.useLayoutEffect(()=>{const R=F.current;F.current=c;const J=c?_a(c.binding):null;w(we=>we!==null&&we.contextKey!==J?null:we),c&&O.current&&O.current.bind(c.binding);const ne=z.current,Ae=R&&c?_a(R.binding)!==_a(c.binding):R!==c;(Ae||ne!==null&&!no(ne,c)||Ae&&(k.current||N.current))&&te()},[c,te]);const T=B.useCallback(async(R,J)=>{if(!c||k.current||N.current)return;L.current=J;const ne=O.current;if(!ne){L.current=null;return}const Ae=Object.freeze({subjectId:R.subjectId,actionDigest:xn(R.action)}),we=c.binding,xe=_a(we);k.current=!0,u(!0);const Ze=_.current;try{ne.bind(we);const Ie=await ne.preview(Ae);if(!(oe.current&&Ze===_.current&&F.current!==null&&_a(F.current.binding)===xe&&Ye(we,F.current.binding))){Ie.cancel();return}if(Ie.preview.authority!=="allowed"){Ie.cancel(),ne.cancel(),w({contextKey:xe,tone:"refusal",text:Ie.preview.reasonCodes.length>0?Ie.preview.reasonCodes.join(" · "):`Preview authority: ${Ie.preview.authority}.`}),await pe();return}const De=Object.freeze({locator:Ae,binding:we,contextKey:xe,custody:Ie});if(Qb(De)){Ie.cancel(),te(),w({contextKey:xe,tone:"attention",text:"This review expired before confirmation. The action is refreshing."}),await pe();return}z.current=De,h(De),y(!0),fe(De)}catch(Ie){!jb(Ie)&&oe.current&&Ze===_.current&&F.current&&_a(F.current.binding)===xe&&(ne.cancel(),Vd(Ie)&&(S.current=we,j(we)),w({contextKey:xe,tone:Vd(Ie)?"attention":"refusal",text:Vd(Ie)?"We could not confirm whether this action ran. Check the current status before trying again.":"This action was not accepted. The workspace is refreshing."}),Vd(Ie)?await Y(we):await pe())}finally{Ze===_.current&&(k.current=!1,oe.current&&u(!1))}},[c,te,Y,pe,fe]),X=B.useCallback(async()=>{const R=z.current;if(!R||N.current)return;if(!no(R,F.current)){te();return}if(Qb(R)){le(R);return}N.current=!0;const J=_.current;E(!0);try{const ne=await R.custody.confirm();if(!oe.current||J!==_.current||!no(R,F.current))return;ne.ok?w({contextKey:R.contextKey,tone:"verified",text:"Your action was accepted. The workspace is refreshing."}):(S.current=R.binding,j(R.binding),w({contextKey:R.contextKey,tone:"attention",text:"The command outcome is uncertain. Refresh before retrying."})),te(),ne.ok?await pe():await Y(R.binding)}catch(ne){!jb(ne)&&oe.current&&J===_.current&&no(R,F.current)&&(w({contextKey:R.contextKey,tone:"refusal",text:"This action was not accepted. The workspace is refreshing."}),te(),await pe())}finally{J===_.current&&(N.current=!1,oe.current&&E(!1))}},[te,le,Y,pe]);if(!c)return r.jsx("div",{className:"op-workspace op-action-detail pc-operate","data-route-kind":"operate.action",children:r.jsx(be,{state:"incompatible",eyebrow:"Action projection",title:"Action cannot be trusted",description:"The owner-issued display workspace did not pass exact binding and integrity verification."})});const se=OQ(c),de=x!==null,ye=(b==null?void 0:b.contextKey)===_a(c.binding)?b:null,Ee=f!==null&&no(f,c)?f.custody.preview:null;return r.jsxs("section",{className:"op-workspace op-action-detail pc-operate","data-route-kind":"operate.action","data-action-presentation":c.presentation,"aria-label":"Operate Action detail",children:[se?r.jsx(be,{state:c.presentation==="offline"?"offline":"unavailable",eyebrow:"Actions",title:"Actions are unavailable",description:se}):null,ye?r.jsx("p",{className:"pc-operate__notice","data-tone":ye.tone,role:"status",children:ye.text}):null,de?r.jsx(be,{state:"incompatible",eyebrow:"Action status",title:"This action is locked until its current status is confirmed",description:"A request may have taken effect. You cannot retry until the current status is confirmed.",actions:r.jsx(Mt,{disabled:!s||I,disabledReason:"A parser-verified current Action projection is required.",onInvoke:()=>void Y(),children:I?"Reconciling current Action…":"Reconcile current Action"})}):null,r.jsx(qY,{model:c,pending:l||de||I,onInvoke:T}),Ee?r.jsx(rt.Root,{open:A,onOpenChange:R=>{!R&&!N.current&&te()},children:r.jsxs(rt.Portal,{children:[r.jsx(rt.Overlay,{className:"op-inbox-dialog__overlay"}),r.jsxs(rt.Content,{className:"op-inbox-dialog__content",onOpenAutoFocus:R=>{var J;R.preventDefault(),(J=M.current)==null||J.focus({preventScroll:!0})},onCloseAutoFocus:R=>{R.preventDefault()},children:[r.jsxs(rt.Title,{children:["Confirm ",Ee.allowedAction.label]}),r.jsx(rt.Description,{children:`You are about to ${Ee.allowedAction.label}. ${Ee.consequence??"Review the prepared change before confirming."}`}),r.jsxs("details",{className:"op-action-detail__technical-details op-action-detail__dialog-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(wn,{label:"Tool",value:Ee.allowedAction.tool}),r.jsx(wn,{label:"Digest",value:Ee.actionDigest})]})]}),r.jsxs("div",{className:"op-inbox-dialog__actions",children:[r.jsx(rt.Cancel,{asChild:!0,children:r.jsx(Mt,{ref:M,variant:"secondary",...m?{disabled:!0,disabledReason:"Confirmation in progress."}:{onInvoke:()=>te()},children:"Cancel"})}),r.jsx(Mt,{disabled:m,onInvoke:()=>void X(),children:m?`Confirming ${Ee.allowedAction.label}…`:`Confirm ${Ee.allowedAction.label}`})]})]})]})}):null]})}const JY=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function NQ(e){try{const t=Ve(e);return t.productArea==="operate"&&t.route==="#/operate/actions"&&t.subjectId===null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function XA(e){const t=NQ(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Cn(a),c=s.payload;if(c.surface!=="actions"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",subjectId:null,cycleId:t.cycleId});return Cn(s,l),!0}catch{return!1}}}function ZY(e,t){const a=NQ(t);if(a===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!XA(a)(e.data))return null;const s=e.data,c=s.payload;if(c.surface!=="actions")return null;const l=JY[e.kind];return l===void 0||c.status!==l||c.mutationEnabled!==e.mutationEnabled||c.data.requestBinding.projectId!==a.projectId||c.data.requestBinding.generation!==a.generation?null:Object.freeze({kind:"actions",presentation:l,binding:e.binding,display:s,surface:c,actions:Object.freeze(c.data.actions),mutationEnabled:e.mutationEnabled})}const XY=new Set(["blocked","failed","rejected"]);function WY(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function eH({currentBinding:e,current:t}){const a=ZY(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-action-list pc-operate","data-route-kind":"operate.actions",children:r.jsx(be,{state:"incompatible",eyebrow:"Action projection",title:"Actions cannot be trusted",description:"The owner-issued experience surface did not pass exact binding and integrity verification."})});const{presentation:s}=a,c=a.actions.map((f,h)=>({...f,id:`${f.actionId}:${h}`})),l=[],u=new Map;for(const f of a.actions)u.has(f.state)||l.push(f.state),u.set(f.state,(u.get(f.state)??0)+1);return r.jsxs("div",{className:"op-workspace op-action-list pc-operate","data-route-kind":"operate.actions","data-action-presentation":s,children:[s!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This is a ",s," projection. Durable Action identity remains visible; no command is inferred."]}):null,l.length>0?r.jsx("ul",{className:"pc-metrics","aria-label":"Action states",children:l.map(f=>r.jsx(Ba,{label:WY(f),value:u.get(f)??0,tone:XY.has(f)?"attention":"default"},f))}):null,r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · actions",title:"Actions",count:`${a.actions.length} ${a.actions.length===1?"action":"actions"}`,description:"Review approved work, its outcome, and the next safe step."}),a.actions.length===0?r.jsx(be,{state:"unavailable",eyebrow:"Actions",title:"No actions yet",description:"There are no saved actions in this workspace."}):r.jsx("div",{className:"pc-action-queue",children:c.map(f=>{var A;const h=f.executions.at(-1);return r.jsx(p2,{actionId:f.actionId,state:f.state,title:f.title,headingLevel:2,revision:f.revision,route:(A=f.deliveryRoute)==null?void 0:A.route,execution:h==null?void 0:h.status,deepLink:f.deepLink},f.id)})})]})}function Yn(e){return e===null||typeof e!="object"||Array.isArray(e)?{}:e}function RQ(e){return Array.isArray(e)?e:[]}function $e(e,t=null){return typeof e=="string"&&e.trim()?e:t}function tH(e){return Pa({kind:"planning.detail",subjectId:e})}function DQ(e){return Pa({kind:"operate.action-planning",subjectId:e})}function nH(e){const t=$e(e.href),a=$e(e.subjectId);if(!t||!a)return null;const s=tH(a);if(t===s||t===`#detail/${encodeURIComponent(a)}`)return s;const c=DQ(a);return t===c?c:null}function Sb(e){const t=Yn(e);return Object.freeze({kind:$e(t.kind,"unknown")??"unknown",label:$e(t.label,$e(t.kind,"Trace step")??"Trace step")??"Trace step",state:$e(t.state,"unknown")??"unknown",owner:$e(t.owner,"OpenPlanr")??"OpenPlanr",reason:$e(t.reason),time:$e(t.time),subjectId:$e(t.subjectId),href:nH(t)})}function aH(e){const t=Yn(e),a=Yn(t.decision),s=Yn(t.action),c=Yn(t.spec),l=Yn(t.transaction),u=Yn(t.eventHead);return Object.freeze({kind:$e(t.kind),status:$e(t.status,$e(c.status,"unknown")??"unknown")??"unknown",correlationId:$e(t.correlationId),proposalId:$e(t.proposalId),proposalRevision:typeof t.proposalRevision=="number"?t.proposalRevision:null,proposalHash:$e(t.proposalHash),scopeId:$e(t.scopeId),domainId:$e(t.domainId),domainVersion:$e(t.domainVersion),cycleId:$e(t.cycleId),eventHead:Object.freeze({sequence:typeof u.sequence=="number"?u.sequence:null,hash:$e(u.hash)}),decision:Object.freeze({id:$e(a.id),revision:typeof a.revision=="number"?a.revision:null,hash:$e(a.hash)}),action:Object.freeze({id:$e(s.id),revision:typeof s.revision=="number"?s.revision:null,hash:$e(s.hash)}),metric:Object.freeze({...Yn(t.metric)}),verification:Object.freeze({...Yn(t.verification)}),evidence:Object.freeze(RQ(t.evidence).map(f=>Object.freeze(Yn(f)))),spec:Object.freeze({specId:$e(c.specId),slug:$e(c.slug),contentHash:$e(c.contentHash),status:$e(c.status,"unknown")??"unknown"}),actor:Object.freeze({actorId:$e(Yn(t.actor).actorId),kind:$e(Yn(t.actor).kind)}),transaction:Object.freeze({transactionId:$e(l.transactionId),receiptHash:$e(l.receiptHash),planningProvenanceEventId:$e(l.planningProvenanceEventId)}),createdAt:$e(t.createdAt),originHash:$e(t.originHash)})}function iH(e,t={}){const a=Yn(e),s=RQ(a.nodes).map(Sb);return s.length>0?Object.freeze(s):Object.freeze([Sb({kind:"trace",label:t.label??"Delivery trace unavailable",state:"unknown",owner:"OpenPlanr",reason:t.reason??"No ledger-owned Planning progress projection is available."})])}function rH(e){return e.action.id?DQ(e.action.id):null}function sH({node:e}){const t=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"op-planning-trace__label",children:e.label}),r.jsxs("span",{className:"op-planning-trace__meta",children:[e.owner," · ",e.state]}),e.reason?r.jsx("span",{className:"op-planning-trace__reason",children:e.reason}):null]});return r.jsx("li",{"data-kind":e.kind,"data-state":e.state,children:e.href?r.jsx("a",{className:"op-cycle-link op-planning-trace__link",href:e.href,children:t}):r.jsx("div",{className:"op-planning-trace__static",children:t})})}function TQ({progress:e,label:t,reason:a}){const s=iH(e,{label:t,reason:a});return r.jsx("ol",{className:"op-planning-trace operate-delivery-trace","aria-label":t??"Delivery trace",children:s.map(c=>r.jsx(sH,{node:c},`${c.kind}:${c.subjectId??"none"}`))})}const oH=Object.freeze([["title","SPEC title","text"],["slug","SPEC slug","text"],["problem","Problem","textarea"],["objective","Objective","textarea"],["users","Users","list"],["scope","In scope","list"],["nonScope","Out of scope","list"],["risks","Risks","list"],["constraints","Constraints","list"],["requirements","Requirements","list"],["acceptanceOutcomes","Acceptance outcomes","list"]]);function cH(e){try{const t=Ve(e);return t.productArea==="operate"&&t.subjectId!==null&&t.cycleId!==null&&t.route===`#/operate/actions/${encodeURIComponent(t.subjectId)}/planning`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function lH(e){if(e.subjectId===null)throw new Error("Planning handoff requires a subject identity.");return Ve({...e,route:`#/operate/actions/${encodeURIComponent(e.subjectId)}`})}function ka(e){return e===null||typeof e!="object"||Array.isArray(e)?{}:e}function Ur(e){return Array.isArray(e)?e:[]}function Kd(e,t=""){return typeof e=="string"?e:t}function dH(e,t){return JSON.stringify(e)===JSON.stringify(t)}function Ob(e,t){return(e==null?void 0:e.sequence)===(t==null?void 0:t.sequence)&&(e==null?void 0:e.hash)===(t==null?void 0:t.hash)}function uH(e,t){return!!(e!=null&&e.actionId&&e.actionId===(t==null?void 0:t.actionId)&&e.revision===(t==null?void 0:t.revision)&&e.actionHash===(t==null?void 0:t.actionHash))}function fH(e,t=Date.now()){const a=Date.parse(String(e??""));return Number.isFinite(a)&&a>t}function kQ(e,t,a,s=Date.now()){const c=ka(e.preview);return!!(e.proposalId&&e.proposalHash&&c.digest&&t.contentHash&&a.actorId&&ka(e.actor).actorId===a.actorId&&e.scopeId===a.scopeId&&e.domainId===a.domainId&&e.domainVersion===a.domainVersion&&uH(ka(e.action),a.action)&&Ob(ka(e.eventHead),a.eventHead)&&t.proposalId===e.proposalId&&t.proposalHash===e.proposalHash&&t.previewDigest===c.digest&&Ob(ka(t.eventHead),ka(e.eventHead))&&fH(c.expiresAt,s))}function zc(e){const t=ka(e);return Object.freeze({title:Kd(t.title),slug:Kd(t.slug),problem:Kd(t.problem),objective:Kd(t.objective),users:Object.freeze(Ur(t.users).map(String)),scope:Object.freeze(Ur(t.scope).map(String)),nonScope:Object.freeze(Ur(t.nonScope).map(String)),risks:Object.freeze(Ur(t.risks).map(String)),constraints:Object.freeze(Ur(t.constraints).map(String)),requirements:Object.freeze(Ur(t.requirements).map(String)),acceptanceOutcomes:Object.freeze(Ur(t.acceptanceOutcomes).map(String))})}function pH(e,t){return dH(zc(e),zc(t))}function hH(e,t){const a=String(e.specId),s=[`${oM} spec show ${a}`,`$planr:plan ${a}`,`/planr:plan ${a}`];return t.length===s.length&&t.every((c,l)=>c===s[l]||l===1&&c===`$planr-plan ${a}`)}function MQ(e,t,a){const s=ka(t.spec);return!!(e.specId&&e.transactionId&&e.contentHash&&e.originHash&&e.receiptHash&&e.proposalId&&e.proposalHash&&e.correlationId&&e.provenanceEventId&&s.specId===e.specId&&s.contentHash===e.contentHash&&t.originHash===e.originHash&&t.proposalId===e.proposalId&&t.proposalHash===e.proposalHash&&t.correlationId===e.correlationId&&ka(t.action).id&&ka(t.decision).id&&t.eventHead&&Array.isArray(a.nodes))}function _b(e,t){const a=cH(t);if(a===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a))return null;const s=lH(a);if(!qu(s)(e.data))return null;const l=e.data.payload,u=l.status;if(e.mutationEnabled)return null;const f=u==="ready";return Object.freeze({kind:"planning-handoff",presentation:u,binding:e.binding,action:l.data.action,workspace:l,mutationEnabled:f,reasonCodes:Object.freeze([...l.reasonCodes])})}const Ku=/^sha256:[a-f0-9]{64}$/u,gH=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,GQ=4*1024*1024;class AH extends Error{constructor(t){super("The governed Planning handoff was refused without effect."),this.code=t,this.name=t}}function Ge(e="OPERATE_COMMAND_INVALID"){throw new AH(e)}function Vt(e){return(e===null||typeof e!="object"||Array.isArray(e))&&Ge(),e}function el(e,t){const a=Vt(e),s=Object.keys(a).sort(),c=[...t].sort();return JSON.stringify(s)!==JSON.stringify(c)&&Ge("OPERATE_RESPONSE_INVALID"),a}function YQ(e){let t;try{t=new URL(e)}catch{Ge("OPERATE_ORIGIN_INVALID")}return(t.origin!==e||t.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(t.hostname))&&Ge("OPERATE_ORIGIN_INVALID"),t.origin}function HQ(e,t,a){const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s.toString()}function mH(e){const t=el(e,["sequence","hash"]),a=Object.keys(t).sort();(a.length!==2||a[0]!=="hash"||a[1]!=="sequence")&&Ge(),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&Ge();const s=t.hash===null?null:t.hash;return s!==null&&typeof s!="string"&&Ge(),s!==null&&!Ku.test(s)&&Ge(),t.sequence===0!=(s===null)&&Ge(),Object.freeze({sequence:t.sequence,hash:s})}function Nb(e){const t=el(e,["subjectId","actionDigest","revision"]),a=Object.keys(t).sort();(a.length!==3||a[0]!=="actionDigest"||a[1]!=="revision"||a[2]!=="subjectId")&&Ge();const s=t.revision;return(!Number.isSafeInteger(s)||s<0)&&Ge(),Object.freeze({subjectId:typeof t.subjectId=="string"&&gH.test(t.subjectId)?t.subjectId:Ge(),actionDigest:typeof t.actionDigest=="string"&&Ku.test(t.actionDigest)?t.actionDigest:Ge(),revision:s})}function Rb(e,t,a,s){return(e.cycleId===null||e.viewHash===null||e.eventHead===null)&&Ge("OPERATE_BINDING_REQUIRED"),Object.freeze({actorId:e.actorId,projectId:e.projectId,scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,generation:e.generation,route:e.route,cycleId:e.cycleId,viewHash:e.viewHash,eventHead:e.eventHead,actionId:t.subjectId,actionHash:t.actionDigest,actionRevision:t.revision,proposalId:a,confirmDigest:s})}function yH(e,t){const a=Vt(e),s=Vt(a.eventHead);return Object.keys(a).length===15&&a.actorId===t.actorId&&a.projectId===t.projectId&&a.scopeId===t.scopeId&&a.domainId===t.domainId&&a.domainVersion===t.domainVersion&&a.generation===t.generation&&a.route===t.route&&a.cycleId===t.cycleId&&a.viewHash===t.viewHash&&s.sequence===t.eventHead.sequence&&s.hash===t.eventHead.hash&&a.actionId===t.actionId&&a.actionHash===t.actionHash&&a.actionRevision===t.actionRevision&&a.proposalId===t.proposalId&&a.confirmDigest===t.confirmDigest}async function Vh(e,t,a,s,c,l,u,f){var E;const h={accept:"application/json","content-type":"application/json","x-openplanr-actor":s.actorId};u&&(h.authorization=`Bearer ${u}`);let A;try{const b=e(HQ(t,a,s),{method:"POST",headers:h,body:JSON.stringify(c),cache:"no-store",signal:l});A=f?await f.waitForCurrent(b):await b,f==null||f.assertCurrent()}catch{if(l.aborted)throw new DOMException("Cancelled","AbortError");Ge("OPERATION_UNCERTAIN")}let y;try{const b=A.text();y=f?await f.waitForCurrent(b):await b,f==null||f.assertCurrent()}catch{if(l.aborted)throw new DOMException("Cancelled","AbortError");Ge("OPERATION_UNCERTAIN")}(!((E=A.headers.get("content-type"))!=null&&E.startsWith("application/json"))||new TextEncoder().encode(y).byteLength>GQ)&&Ge("OPERATION_UNCERTAIN");let m;try{m=JSON.parse(y)}catch{Ge("OPERATION_UNCERTAIN")}if(!A.ok){let b,w;try{b=Vt(m),w=Vt(b.error)}catch{Ge("OPERATION_UNCERTAIN")}Ge(typeof w.reasonCode=="string"?w.reasonCode:"OPERATE_COMMAND_REFUSED")}try{return Vt(m)}catch{Ge("OPERATION_UNCERTAIN")}}async function zQ(e,t,a,s,c,l){const u=e(HQ(t,a,s),{headers:{accept:"application/json","x-openplanr-actor":s.actorId},cache:"no-store",signal:c}),f=l?await l.waitForCurrent(u):await u;l==null||l.assertCurrent();const h=f.text(),A=l?await l.waitForCurrent(h):await h;l==null||l.assertCurrent(),new TextEncoder().encode(A).byteLength>GQ&&Ge();let y;try{y=JSON.parse(A)}catch{Ge()}return f.ok||Ge("OPERATE_COMMAND_REFUSED"),Vt(y)}function qh(e){try{return e()}catch(t){if(t instanceof DOMException&&t.name==="AbortError")throw t;Ge("OPERATION_UNCERTAIN")}}function EH(e,t){const a=el(e,["proposal","specPreview"]),s=Vt(a.proposal),c=Vt(a.specPreview);return kQ(s,c,t)||Ge("OPERATE_RESPONSE_INVALID"),Object.freeze({proposal:s,specPreview:c})}function $Q(e,t){const a=el(e,["receipt","origin","progress","nextCommands"]),s=Vt(a.receipt),c=Vt(a.origin),l=el(a.progress,["nodes"]);if(MQ(s,c,l)||Ge("OPERATE_RESPONSE_INVALID"),t){const f=Vt(c.actor),h=Vt(c.action),A=mH(c.eventHead);(s.proposalId!==t.proposalId||c.proposalId!==t.proposalId||c.proposalRevision!==2||f.actorId!==t.identity.actorId||f.kind!=="human"||c.scopeId!==t.identity.scopeId||c.domainId!==t.identity.domainId||c.domainVersion!==t.identity.domainVersion||c.cycleId!==t.identity.cycleId||h.id!==t.locator.subjectId||h.revision!==t.locator.revision||h.hash!==t.locator.actionDigest||t.identity.eventHead===null||A.sequence!==t.identity.eventHead.sequence||A.hash!==t.identity.eventHead.hash||!Ku.test(t.confirmDigest))&&Ge("OPERATE_RESPONSE_INVALID")}(!Array.isArray(a.nextCommands)||!a.nextCommands.every(f=>typeof f=="string"))&&Ge("OPERATE_RESPONSE_INVALID");const u=a.nextCommands;return hH(s,u)||Ge("OPERATE_RESPONSE_INVALID"),Object.freeze({receipt:s,origin:c,progress:Object.freeze({nodes:Object.freeze(l.nodes)}),nextCommands:Object.freeze(u)})}function UQ(e,t,a){const s=$Q(e),c=Vt(s.origin);return(Vt(c.spec).specId!==a||Vt(c.actor).actorId!==t.actorId||Vt(c.actor).kind!=="human"||c.scopeId!==t.scopeId||c.domainId!==t.domainId||c.domainVersion!==t.domainVersion)&&Ge("OPERATE_RESPONSE_INVALID"),s}async function BH(e){const t=YQ(e.origin),a=e.fetcher??fetch;/^SPEC-\d{3}$/u.test(e.specId)||Ge();const s=e.signal??new AbortController().signal;return UQ(await zQ(a,t,`/api/operate/planning/trace/${encodeURIComponent(e.specId)}`,e.identity,s),e.identity,e.specId)}function vH(e){const t=YQ(e.origin),a=e.fetcher??fetch,s=(l,u)=>(l.eventHead===null&&Ge("OPERATE_BINDING_REQUIRED"),Object.freeze({actorId:l.actorId,scopeId:l.scopeId,domainId:l.domainId,domainVersion:l.domainVersion,action:Object.freeze({actionId:u.subjectId,revision:u.revision,actionHash:u.actionDigest}),eventHead:l.eventHead})),c=jQ({routeKinds:["operate.action-planning"],routeErrorCode:"OPERATE_PLANNING_ROUTE_REQUIRED",parseLocator:Nb,sameLocator:(l,u)=>l.subjectId===u.subjectId&&l.actionDigest===u.actionDigest&&l.revision===u.revision,async issueSession({identity:l,locator:u,signal:f,assertCurrent:h,waitForCurrent:A}){(l.cycleId===null||l.eventHead===null||l.viewHash===null)&&Ge("OPERATE_BINDING_REQUIRED");const y=await Vh(a,t,"/api/operate/session",l,{cycleId:l.cycleId,eventHead:l.eventHead,sourceViewHash:l.viewHash,actionLocator:u},f,void 0,{assertCurrent:h,waitForCurrent:A});return h(),qh(()=>{const m=IQ(y,l,u,{parseLocator:Nb,sameLocator:(E,b)=>E.subjectId===b.subjectId&&E.actionDigest===b.actionDigest&&E.revision===b.revision,allowedActions:{kind:"none"}});return Object.freeze({sessionId:m.sessionId,capability:m.capability})})}});return Object.freeze({bind:c.bind,async preview(l,u){return c.clearPreviewProof(),await c.run(async({identity:f,locator:h,session:A,signal:y,assertCurrent:m,waitForCurrent:E})=>{l!==h.subjectId&&Ge("OPERATE_BINDING_MISMATCH");const b={sessionId:A.sessionId,actionId:l};u&&(b.framing=structuredClone(u));const w=await Vh(a,t,"/api/operate/planning/preview",f,b,y,A.capability,{assertCurrent:m,waitForCurrent:E});m();const x=qh(()=>EH(w,s(f,h)));return c.retainPreviewProof(Rb(f,h,String(x.proposal.proposalId),String(Vt(x.proposal.preview).digest))),x},{uncertainOnFailure:!0})},async createSpec(l,u){return(!/^oprop_[a-f0-9]{32}$/u.test(l)||!Ku.test(u))&&Ge(),await c.run(async({identity:f,locator:h,session:A,signal:y,assertCurrent:m,waitForCurrent:E})=>{const b=Rb(f,h,l,u);c.requirePreviewProof(j=>yH(j,b));const w=await Vh(a,t,"/api/operate/planning/create-spec",f,{sessionId:A.sessionId,proposalId:l,confirmDigest:u},y,A.capability,{assertCurrent:m,waitForCurrent:E});m();const x=qh(()=>$Q(w,{identity:f,locator:h,proposalId:l,confirmDigest:u}));return c.clearPreviewProof(),x},{uncertainOnFailure:!0})},async trace(l){return/^SPEC-\d{3}$/u.test(l)||Ge(),await c.run(async({identity:u,signal:f,assertCurrent:h,waitForCurrent:A})=>{const y=await zQ(a,t,`/api/operate/planning/trace/${encodeURIComponent(l)}`,u,f,{assertCurrent:h,waitForCurrent:A});return h(),UQ(y,u,l)})},reconcile:c.reconcile,cancel:c.cancel,dispose:c.dispose})}function bH(e){return JSON.stringify({actorId:e.binding.actorId,projectId:e.binding.projectId,scopeId:e.binding.scopeId,domainId:e.binding.domainId,domainVersion:e.binding.domainVersion,generation:e.binding.generation,route:e.binding.route,cycleId:e.binding.cycleId,subjectId:e.binding.subjectId,eventHead:e.binding.eventHead,viewHash:e.binding.viewHash,action:{actionId:e.action.actionId,actionHash:e.action.actionHash,revision:e.action.revision}})}function wH(e){return JSON.stringify({actorId:e.binding.actorId,projectId:e.binding.projectId,scopeId:e.binding.scopeId,domainId:e.binding.domainId,domainVersion:e.binding.domainVersion,generation:e.binding.generation,route:e.binding.route,cycleId:e.binding.cycleId,subjectId:e.binding.subjectId})}function Db(e){return e instanceof DOMException&&e.name==="AbortError"}function St(e){return e===null||typeof e!="object"||Array.isArray(e)?{}:e}function Jd(e){return Array.isArray(e)?e:[]}function Le(e,t=""){return typeof e=="string"?e:t}function on({label:e,value:t}){return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:t==null||t===""?"Not available":t})]})}function xH(e,t){return e==="offline"?"Live authority is unavailable offline. Reconnect and refresh before any command.":e==="stale"?"The displayed Event head is stale. Refresh before requesting a new preview.":t.includes("OPERATE_EVENT_GAP")?"An ordered Event gap was detected. Refresh the validated snapshot before any command.":e==="read-only"?"No command gateway or current mutation authority is available.":null}function jH(e){return Pa({kind:"planning.detail",subjectId:e})}function LQ(e){return Pa({kind:"operate.action",subjectId:e})}function QH({creation:e,actionId:t,actionTitle:a}){const s=St(e.receipt),c=Le(s.specId),l=c?jH(c):null;return r.jsxs("section",{className:"op-planning-handoff__created","aria-label":"Created SPEC draft and delivery trace",children:[r.jsxs("header",{className:"op-planning-handoff__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Planning handoff · SPEC created"}),r.jsxs("h1",{children:[c||"SPEC"," ·"," ",Le(s.title)||Le(s.slug)||a||"Created draft"]}),r.jsxs("p",{children:[c?`${c} is durable with status shaping.`:"The shaping draft and origin receipt are durable."," ","No story, task, PLAN, SHIP, commit, or target effect was started."]})]}),r.jsxs("div",{className:"op-planning-handoff__actions",children:[r.jsx("a",{className:"op-cycle-link",href:LQ(t),children:"Return to source Action"}),l?r.jsx("a",{className:"op-cycle-link op-cycle-link--primary",href:l,children:"Open in Planning"}):null]})]}),r.jsx(TQ,{progress:e.progress}),r.jsxs("div",{className:"op-planning-handoff__grid",children:[r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Draft details",children:[r.jsx("p",{className:"op-eyebrow",children:"Draft details"}),r.jsx("h2",{children:c||"Created SPEC"}),r.jsx("p",{children:"Status shaping"}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(on,{label:"Content digest",value:Le(s.contentHash)}),r.jsx(on,{label:"Origin digest",value:Le(s.originHash)}),r.jsx(on,{label:"Receipt digest",value:Le(s.receiptHash)}),r.jsx(on,{label:"Proposal",value:Le(s.proposalId)}),r.jsx(on,{label:"Correlation",value:Le(s.correlationId)}),r.jsx(on,{label:"Planning provenance",value:Le(s.provenanceEventId)})]})]})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Next human gates",children:[r.jsx("p",{className:"op-eyebrow",children:"Next human gates"}),r.jsx("h2",{children:"Planning owns the next commands"}),r.jsx("p",{children:"These commands are returned by OpenPlanr; this screen does not construct or run them."}),e.nextCommands.length>0?r.jsx("pre",{className:"op-planning-handoff__commands",children:r.jsx("code",{children:e.nextCommands.join(`
|
|
535
|
-
`)})}):r.jsx(be,{state:"unavailable",eyebrow:"Next commands",title:"Next commands unavailable",description:"No planning command is inferred from the SPEC ID."})]})]})]})}function IH({currentBinding:e,current:t,actions:a,onRefetch:s}){var ye,Ee;const c=B.useMemo(()=>_b(t,e),[t,e]),[l,u]=B.useState(null),[f,h]=B.useState(null),[A,y]=B.useState(null),[m,E]=B.useState(null),[b,w]=B.useState(!1),[x,j]=B.useState(null),[I,C]=B.useState(!1),O=B.useRef(null),S=B.useRef(null),_=B.useRef(""),k=B.useRef(""),N=c?bH(c):"",z=c?wH(c):"",M=l?St(l.proposal):null,L=l?St(l.specPreview):null,Z=M?zc(M.framing):null,F=A??Z,oe=M&&L&&(c==null?void 0:c.binding.eventHead)&&F&&Z&&pH(F,Z)&&kQ(M,L,{actorId:c.binding.actorId,scopeId:c.binding.scopeId,domainId:c.binding.domainId,domainVersion:c.binding.domainVersion,action:{actionId:c.action.actionId,revision:c.action.revision,actionHash:c.action.actionHash},eventHead:c.binding.eventHead}),re=B.useCallback(()=>{var J,ne;if(a)return a;if(!c||typeof window>"u"||c.binding.cycleId===null||c.binding.eventHead===null||c.binding.viewHash===null)return null;if(O.current&&S.current===N)return O.current;(J=O.current)==null||J.cancel(),(ne=O.current)==null||ne.dispose(),O.current=null,S.current=null;const R=vH({origin:window.location.origin});return R.bind(c.binding,{subjectId:c.action.actionId,actionDigest:c.action.actionHash,revision:c.action.revision}),O.current=R,S.current=N,R},[a,N,c]),pe=c?xH(c.presentation,c.reasonCodes):null,Y=f&&MQ(St(f.receipt),St(f.origin),St(f.progress)),V=B.useCallback(async R=>{if(!c)return;const J=N;E(null),u(null),w(!1);const ne=re();if(ne)try{const Ae=await ne.preview(c.action.actionId,R);if(_.current!==J)return;u(Ae),y(zc(St(Ae.proposal).framing))}catch(Ae){if(Db(Ae)||_.current!==J)return;const we=Ae&&typeof Ae=="object"&&"name"in Ae?String(Ae.name):"OPERATE_COMMAND_REFUSED";we==="OPERATION_UNCERTAIN"&&j(z),E({tone:we==="OPERATION_UNCERTAIN"?"attention":"refusal",text:we==="E_OPERATE_PLANNING_EXPIRED"?"Planning preview expired. Refresh the canonical preview before confirming creation.":we==="OPERATION_UNCERTAIN"?"Planning preview proof was lost after POST. Reconcile exact current state; do not reuse the prior preview.":"The governed Planning preview was refused without effect."})}},[N,c,z,re]),te=B.useCallback(async()=>{if(!M||!(c!=null&&c.binding.eventHead))return;const R=N,J=Le(St(M.preview).digest),ne=Le(M.proposalId);if(!J||!ne)return;const Ae=re();if(Ae)try{const we=await Ae.createSpec(ne,J);if(_.current!==R)return;h(we),w(!1),E({tone:"verified",text:`${Le(St(we.receipt).specId)||"SPEC"} is durable with status shaping.`})}catch(we){if(Db(we)||_.current!==R)return;const xe=we&&typeof we=="object"&&"name"in we?String(we.name):"OPERATE_COMMAND_REFUSED";w(!1),xe==="OPERATION_UNCERTAIN"&&j(z),E({tone:xe==="OPERATION_UNCERTAIN"?"attention":"refusal",text:xe==="E_OPERATE_PLANNING_EXPIRED"?"Planning preview expired. Refresh the canonical preview before confirming creation.":xe==="OPERATION_UNCERTAIN"?"The command outcome is uncertain. Reconcile exact current state; do not retry.":"The governed Planning creation was refused without effect."})}},[N,c,M,z,re]);B.useEffect(()=>()=>{var R,J;(R=O.current)==null||R.cancel(),(J=O.current)==null||J.dispose(),O.current=null,S.current=null},[]),B.useLayoutEffect(()=>{var R,J;_.current=N,k.current!==N&&(k.current=N,x!==z&&((R=O.current)==null||R.cancel(),(J=O.current)==null||J.dispose(),O.current=null,S.current=null),u(null),h(null),y(null),w(!1),E(null),C(!1))},[N,z,x]),B.useLayoutEffect(()=>{var R,J;a&&((R=O.current)==null||R.cancel(),(J=O.current)==null||J.dispose(),O.current=null,S.current=null)},[a]);const le=B.useCallback(async()=>{if(!(!s||x!==z)){C(!0);try{const R=await s(),J=R.binding?_b(R,R.binding):null,ne=a??O.current;if(!J||!ne)throw new Error("Exact reconciliation failed.");ne.reconcile(J.binding),j(null),u(null),y(null),w(!1),E({tone:"verified",text:"Exact current state was reconciled. Request a new canonical preview before any creation."})}catch{E({tone:"attention",text:"Planning remains locked: exact current state did not reconcile. Do not retry creation."})}finally{C(!1)}}},[a,s,z,x]);if(!c)return r.jsx("div",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning",children:r.jsx(be,{state:"incompatible",eyebrow:"Planning handoff",title:"Planning handoff cannot be trusted",description:"The owner-issued Action workspace did not pass exact binding and integrity verification."})});if(((ye=c.action.deliveryRoute)==null?void 0:ye.route)!=="planning-work")return r.jsx("section",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning","aria-label":"Planning handoff unavailable",children:r.jsx(be,{state:"unavailable",eyebrow:"Delivery route",title:"This Action does not enter Planning",description:"Only the canonical planning-work route can request a proposal. The browser does not infer or change delivery routes."})});if(Y&&f)return r.jsx("section",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning","data-planning-state":"created","aria-label":"Created Planning handoff",children:r.jsx(QH,{creation:f,actionId:c.action.actionId,actionTitle:c.action.title})});const fe=!!(M!=null&&M.proposalId),T=x===z,X=c.mutationEnabled&&!pe&&!T&&!I&&fe&&!Y,se=c.mutationEnabled&&!pe&&!T&&!I&&!!c.action,de=se&&oe&&Le(M==null?void 0:M.state)==="review-required"&&fe;return r.jsxs("section",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning","data-planning-preview":oe?"current":"stale","aria-labelledby":"operate-planning-handoff-title",children:[r.jsxs("header",{className:"op-planning-handoff__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Planning handoff"}),r.jsx("h1",{id:"operate-planning-handoff-title",children:c.action.title}),r.jsx("p",{children:"Review the context, shape the draft, and confirm it before creating a Planning SPEC."})]}),r.jsx("a",{className:"op-cycle-link",href:LQ(c.action.actionId),children:"Return to source Action"})]}),pe?r.jsx(be,{state:c.presentation==="offline"?"offline":"unavailable",eyebrow:"Governed controls",title:"Planning creation is unavailable",description:pe}):null,m?r.jsx("p",{className:"pc-operate__notice",role:"status","data-tone":m.tone,children:m.text}):null,T?r.jsx(be,{state:"incompatible",eyebrow:"Uncertain operation",title:"Creation stays disabled until exact reconciliation",description:"A Planning POST may have taken effect. OpenPlanr will not offer a blind retry.",actions:r.jsx(Mt,{disabled:!s||I,disabledReason:"An exact adapter-owned refetch is required before another preview.",onInvoke:le,children:I?"Reconciling current state…":"Reconcile current state"})}):null,r.jsxs("div",{className:"op-planning-handoff__layout",children:[r.jsxs("div",{className:"op-planning-handoff__stack",children:[r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Why this draft",children:[r.jsx("p",{className:"op-eyebrow",children:"Why this draft"}),r.jsx("h2",{children:Le(St(M==null?void 0:M.decision).title)||c.action.title}),r.jsx("p",{children:Le(St(M==null?void 0:M.decision).rationale)||"OpenPlanr has not returned a canonical Planning proposal for this Action."}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(on,{label:"Decision",value:Le(St(M==null?void 0:M.decision).decisionId)}),r.jsx(on,{label:"Action",value:Le(St(M==null?void 0:M.action).actionId)||c.action.actionId}),r.jsx(on,{label:"Delivery route",value:(Ee=c.action.deliveryRoute)==null?void 0:Ee.route}),r.jsx(on,{label:"Cycle",value:Le(M==null?void 0:M.cycleId)})]})]})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Team perspectives",children:[r.jsx("p",{className:"op-eyebrow",children:"Team perspectives"}),r.jsx("h2",{children:"What informed this draft"}),r.jsx("p",{children:"Review the perspectives and any disagreement before shaping the draft."}),Jd(M==null?void 0:M.acceptedPerspectiveSummaries).length>0?r.jsx("ul",{className:"op-planning-handoff__perspectives",children:Jd(M==null?void 0:M.acceptedPerspectiveSummaries).map((R,J)=>{const ne=St(R);return r.jsxs("li",{children:[r.jsx("strong",{children:Le(ne.summary,"Summary unavailable")}),r.jsxs("span",{children:[Le(ne.roleKind,"role")," ·"," ",Le(ne.stance,"unknown")]})]},`${Le(ne.roleId)}:${J}`)})}):r.jsx(be,{state:"unavailable",eyebrow:"Perspectives",title:"No canonical proposal yet",description:"Request a preview to load accepted advisor, Challenger, and Chair summaries."})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Supporting evidence",children:[r.jsx("p",{className:"op-eyebrow",children:"Supporting evidence"}),r.jsx("h2",{children:"What the draft is based on"}),Jd(M==null?void 0:M.evidence).length>0?r.jsx("ul",{className:"op-planning-handoff__evidence",children:Jd(M==null?void 0:M.evidence).map((R,J)=>{const ne=St(R);return r.jsxs("li",{children:[r.jsx("strong",{children:Le(ne.summary,"Evidence body omitted by access policy")}),r.jsxs("span",{children:[Le(ne.relation,"relation unavailable")," ·"," ",Le(ne.accessState,"access unavailable")]})]},`${Le(ne.evidenceRefId)}:${J}`)})}):r.jsx("p",{children:"No supporting evidence is available yet."})]})]}),r.jsxs("div",{className:"op-planning-handoff__stack",children:[r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Shape the draft",children:[r.jsx("p",{className:"op-eyebrow",children:"Shape the draft"}),r.jsx("h2",{children:"Shape the draft before confirmation"}),r.jsx("p",{children:"Editing refreshes the preview. You can create the draft only after reviewing the updated version."}),r.jsx("form",{className:"op-planning-handoff__form","aria-label":"Draft framing",children:oH.map(([R,J,ne])=>{const Ae=`op-planning-framing-${R}`,we=F&&ne==="list"?F[R].join(`
|
|
536
|
-
`):F?F[R]:"";return r.jsxs("label",{className:"op-planning-handoff__field",htmlFor:Ae,children:[r.jsx("span",{children:J}),ne==="textarea"||ne==="list"?r.jsx("textarea",{id:Ae,name:R,rows:ne==="list"?4:5,disabled:!X,value:we,onChange:xe=>{if(!F)return;const Ze=ne==="list"?xe.target.value.split(/\r?\n/u).map(Ie=>Ie.trim()).filter(Boolean):xe.target.value;y(Object.freeze({...F,[R]:Ze}))}}):r.jsx("input",{id:Ae,name:R,type:"text",disabled:!X,value:we,onChange:xe=>{F&&y(Object.freeze({...F,[R]:xe.target.value}))}})]},R)})}),r.jsx("div",{className:"op-planning-handoff__actions",children:r.jsx(Mt,{disabled:!se,disabledReason:pe??(fe?"Human framing is editable only from a current, online, actor-bound Planning handoff.":"Request the initial canonical proposal before editing human-owned framing."),onInvoke:()=>V(fe&&F?zc(F):void 0),children:fe?"Refresh canonical SPEC preview":"Preview SPEC draft"})})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Draft preview",children:[r.jsx("p",{className:"op-eyebrow",children:"Draft preview"}),r.jsx("h2",{children:Le(L==null?void 0:L.title)||Le(St(M==null?void 0:M.framing).title)||"No canonical SPEC preview yet"}),r.jsx("p",{children:oe?"The canonical SPEC preview is current for these exact human-owned framing fields.":"Request a canonical preview before creating the draft."}),typeof(L==null?void 0:L.content)=="string"?r.jsx("pre",{className:"op-planning-handoff__spec-preview operate-planning-spec-preview",children:r.jsx("code",{children:L.content})}):r.jsx(be,{state:"unavailable",eyebrow:"Preview",title:"Preview not issued",description:"No local renderer is used. OpenPlanr must return the same validated SPEC bytes it will later publish."}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(on,{label:"Proposal",value:Le(M==null?void 0:M.proposalId)}),r.jsx(on,{label:"Preview digest",value:Le(St(M==null?void 0:M.preview).digest)}),r.jsx(on,{label:"Preview expiry",value:Le(St(M==null?void 0:M.preview).expiresAt)}),r.jsx(on,{label:"SPEC content digest",value:Le(L==null?void 0:L.contentHash)})]}),r.jsx(be,{state:"incompatible",eyebrow:"What happens next",title:"This creates a draft only",description:"It does not start work, create a commit, publish, or deploy."}),r.jsx("div",{className:"op-planning-handoff__actions",children:r.jsx(Mt,{disabled:!de,disabledReason:oe?"Only a current review-required proposal can be confirmed once.":"Refresh the exact canonical preview after every framing change.",onInvoke:()=>w(!0),children:"Create SPEC draft"})})]})]})]}),r.jsx(rt.Root,{open:b,onOpenChange:w,children:r.jsxs(rt.Portal,{children:[r.jsx(rt.Overlay,{className:"op-planning-handoff__overlay"}),r.jsxs(rt.Content,{className:"op-planning-handoff__dialog",role:"dialog","aria-modal":"true",children:[r.jsx(rt.Title,{children:"Create one shaping SPEC draft?"}),r.jsx(rt.Description,{children:"This confirms the exact proposal, Event head, human framing, preview digest, and expiry shown in this workspace."}),r.jsx(be,{state:"incompatible",eyebrow:"What happens next",title:"More decisions are still required",description:"Creating this draft does not start PLAN, SHIP, an Action, a commit, publication, or deployment."}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(on,{label:"Proposal",value:Le(M==null?void 0:M.proposalId)}),r.jsx(on,{label:"Digest",value:Le(St(M==null?void 0:M.preview).digest)}),r.jsx(on,{label:"Expires",value:Le(St(M==null?void 0:M.preview).expiresAt)})]}),r.jsxs("div",{className:"op-planning-handoff__dialog-actions",children:[r.jsx(rt.Cancel,{className:"op-governed-button",type:"button",children:"Cancel"}),r.jsx(Mt,{onInvoke:te,children:"Confirm Create SPEC draft"})]})]})]})})]})}const CH=Object.freeze({DetailPage:KY,ListPage:eH,PlanningHandoffPage:IH,createDetailValidator:qu,createListValidator:XA}),SH=Object.freeze(["claimStatus","status","state"]),OH=Object.freeze(["classification","accessState","accessReason","freshness","evidenceKind","confidence","why","epistemicStatus"]);function Un(e){return typeof e=="string"&&e.trim()!==""?e:typeof e=="number"&&Number.isFinite(e)?String(e):typeof e=="boolean"?e?"true":"false":null}function WA(e){const t=e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function _H(e){return e==="true"?"Yes":e==="false"?"No":WA(e)}function NH(e,t){return Un(Reflect.get(e,"evidenceRefId"))??Un(Reflect.get(e,"outcomeId"))??Un(Reflect.get(e,"claimId"))??Un(Reflect.get(e,"eventId"))??Un(Reflect.get(e,"metricId"))??Un(Reflect.get(e,"learningId"))??t}function RH(e){const t=Un(Reflect.get(e,"deepLink"));return t!=null&&t.startsWith("#/")?t:null}function DH(e){for(const t of SH){const a=Un(Reflect.get(e,t));if(a!==null)return a}return null}function TH(e,t){return`${e==="History"?"History entry":e.endsWith("s")?e.slice(0,-1):e} ${t+1}`}function wu({presentation:e}){return e==="ready"?null:r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This view is ",WA(e).toLocaleLowerCase("en-US"),". It does not make a success claim."]})}function kH({record:e}){const t=OH.flatMap(a=>{const s=Un(Reflect.get(e,a));return s===null?[]:[{key:a,value:s}]});return t.length===0?null:r.jsx("dl",{className:"pc-operate__record-facts",children:t.map(a=>r.jsxs("div",{children:[r.jsx("dt",{children:WA(a.key)}),r.jsx("dd",{children:_H(a.value)})]},a.key))})}function mi({heading:e,records:t}){return t.length===0?r.jsx(be,{state:"unavailable",eyebrow:e,title:`No ${e.toLowerCase()} to review`,description:`There are no ${e.toLocaleLowerCase("en-US")} in this cycle right now.`}):r.jsxs("section",{className:"pc-operate__section","aria-label":e,children:[r.jsx(st,{headingLevel:2,title:e,count:t.length}),r.jsx("ol",{className:"pc-operate__records",children:t.map((a,s)=>{const c=Un(Reflect.get(a,"title"))??Un(Reflect.get(a,"statement"))??Un(Reflect.get(a,"summary"))??Un(Reflect.get(a,"why"))??TH(e,s),l=NH(a,`${e}-${s}`),u=RH(a),f=DH(a);return r.jsxs("li",{className:"pc-operate__record",children:[r.jsxs("div",{className:"pc-operate__record-head",children:[r.jsxs("h3",{className:"pc-operate__record-title",children:[r.jsx("span",{className:"pc-operate__record-index","aria-hidden":"true",children:String(s+1).padStart(2,"0")})," ",u?r.jsx("a",{className:"pc-row-link",href:u,children:c}):c]}),f?r.jsx(fa,{state:f}):null]}),r.jsx(kH,{record:a}),r.jsxs("details",{className:"pc-operate__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:l})]})]},l)})})]})}const MH=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function PQ(e){try{const t=Ve(e),a=t.route==="#/operate/evidence"||t.subjectId!==null&&t.route===`#/operate/evidence/${encodeURIComponent(t.subjectId)}`;return t.productArea==="operate"&&a&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function FQ(e){const t=PQ(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=La(a),c=s.payload;if(c.surface!=="evidence"||t.eventHead===null||t.viewHash===null||t.cycleId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash||c.viewHash!==t.viewHash)return!1;const l=Vu(t.eventHead);if(l===null)return!1;const u=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:t.cycleId,subjectId:t.subjectId,surface:"evidence",query:null,format:null,generatedAt:c.generatedAt,eventHead:l,viewHash:t.viewHash});return La(s,u),!0}catch{return!1}}}function GH(e,t){const a=PQ(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!FQ(a)(e.data))return null;const s=MH[e.kind],c=e.data;if(s===void 0||c.payload.surface!=="evidence")return null;const l=c.payload;return l.status!==s||l.readOnly!==!0?null:Object.freeze({kind:"evidence",presentation:s,binding:e.binding,display:c,surface:l,data:l.data,evidence:l.data.evidence,claims:l.data.claims,rationale:l.data.rationale,detailRequested:a.subjectId!==null,subjectId:a.subjectId,readOnly:!0,mutationEnabled:!1})}function YH({currentBinding:e,current:t}){const a=GH(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.evidence",children:r.jsx(be,{state:"incompatible",eyebrow:"Evidence projection",title:"Evidence cannot be trusted",description:"The owner-issued audit display did not pass exact binding and integrity verification."})});const s=a.detailRequested?a.evidence.filter(l=>Reflect.get(l,"evidenceRefId")===a.subjectId):a.evidence,c=`${a.surface.eventHead.sequence} · ${a.surface.eventHead.hash??"genesis"}`;return r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":a.detailRequested?"operate.evidence-item":"operate.evidence","data-audit-presentation":a.presentation,children:[r.jsxs("ul",{className:"pc-metrics","aria-label":"Evidence",children:[r.jsx(Ba,{label:"rows",value:s.length}),a.detailRequested?null:r.jsxs(r.Fragment,{children:[r.jsx(Ba,{label:"claims",value:a.claims.length}),r.jsx(Ba,{label:"rationale",value:a.rationale.length})]})]}),r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · evidence",title:a.detailRequested?"Evidence item":"Evidence",description:"See what supports or challenges the work."}),r.jsx(cs,{items:[{term:"Event record",description:c,mono:!0},{term:"View key",description:a.surface.viewHash,mono:!0}]}),r.jsx(wu,{presentation:a.presentation}),a.detailRequested&&s.length===0?r.jsx(be,{state:"unavailable",eyebrow:"Exact item",title:"Requested evidence was not returned",description:"The owner-issued Evidence surface does not contain this subject."}):r.jsxs(r.Fragment,{children:[r.jsx(mi,{heading:"Evidence",records:s}),a.detailRequested?null:r.jsxs(r.Fragment,{children:[r.jsx(mi,{heading:"Claims",records:a.claims}),r.jsx(mi,{heading:"Rationale",records:a.rationale})]})]})]})}const HH=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function VQ(e){try{const t=Ve(e);return t.productArea==="operate"&&t.route==="#/operate/history"&&t.subjectId===null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function zH(e,t){const a=VQ(e);return s=>{if(!a||!Object.isFrozen(s))return!1;try{const c=La(s),l=c.payload;if(l.surface!==t.surface||a.eventHead===null||a.viewHash===null||a.cycleId===null||l.eventHead.sequence!==a.eventHead.sequence||l.eventHead.hash!==a.eventHead.hash||l.viewHash!==a.viewHash)return!1;const u=Vu(a.eventHead);if(u===null)return!1;const f=Object.freeze({actorId:a.actorId,scopeId:a.scopeId,domainId:a.domainId,domainVersion:a.domainVersion,cycleId:a.cycleId,subjectId:null,surface:t.surface,query:t.query,format:t.format,generatedAt:l.generatedAt,eventHead:u,viewHash:a.viewHash});return La(c,f),!0}catch{return!1}}}function qQ(e){return zH(e,Object.freeze({surface:"history",query:null,format:null}))}function $H(e,t,a){return Pe(e)&&e.binding!==null&&e.data!==null&&Ye(e.binding,t)&&a(e.data)?e.data:null}function UH(e,t){const a=VQ(t);if(!a)return null;const s=$H(e,a,qQ(a)),c=HH[e.kind];if(!s||c===void 0||s.payload.surface!=="history"||s.payload.status!==c||s.payload.readOnly!==!0)return null;const l=s.payload;return Object.freeze({kind:"history",presentation:c,binding:e.binding,display:s,surface:l,data:l.data,history:l.data.history,replay:l.data.replay,readOnly:!0,mutationEnabled:!1})}function LH(e){const t=Reflect.get(e,"tail"),a=Reflect.get(e,"finalHead"),s=Reflect.get(e,"parityProof"),c=[];if(typeof t=="object"&&t!==null){const u=Reflect.get(t,"startSequence"),f=Reflect.get(t,"endSequence"),h=Reflect.get(t,"eventCount");typeof u=="number"&&c.push({key:"Tail start",value:String(u)}),typeof f=="number"&&c.push({key:"Tail end",value:String(f)}),typeof h=="number"&&c.push({key:"Event count",value:String(h)})}if(typeof a=="object"&&a!==null){const u=Reflect.get(a,"sequence"),f=Reflect.get(a,"hash");typeof u=="number"&&c.push({key:"Final head",value:String(u)}),typeof f=="string"&&c.push({key:"Final hash",value:f})}if(typeof s=="object"&&s!==null)for(const u of["checkpointVerified","finalEventHashMatches","stateParityVerified"]){const f=Reflect.get(s,u);typeof f=="boolean"&&c.push({key:u,value:f?"true":"false"})}const l=Reflect.get(e,"liveAccessUsed");return typeof l=="boolean"&&c.push({key:"Live access used",value:l?"true":"false"}),Object.freeze(c)}function PH({currentBinding:e,current:t}){const a=UH(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.history",children:r.jsx(be,{state:"incompatible",eyebrow:"History projection",title:"History cannot be trusted",description:"The owner-issued audit display did not pass exact binding and integrity verification."})});const s=LH(a.replay),c=`${a.surface.eventHead.sequence} · ${a.surface.eventHead.hash??"genesis"}`;return r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.history","data-audit-presentation":a.presentation,children:[r.jsx("ul",{className:"pc-metrics","aria-label":"History",children:r.jsx(Ba,{label:"events",value:a.history.length})}),r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · history",title:"History",description:"See what changed, why it changed, and what happens next."}),r.jsx(cs,{items:[{term:"Event record",description:c,mono:!0},{term:"View key",description:a.surface.viewHash,mono:!0}]}),r.jsx(wu,{presentation:a.presentation}),r.jsx(mi,{heading:"History",records:a.history}),r.jsxs("section",{className:"pc-operate__section","aria-label":"Replay proof",children:[r.jsx(st,{headingLevel:2,title:"Replay proof",count:s.length}),s.length===0?r.jsx(be,{state:"unavailable",eyebrow:"Replay",title:"No replay proof returned",description:"OpenPlanr returned no checkpoint, tail, head, or parity fields for this Cycle."}):r.jsx(cs,{items:s.map(l=>({term:l.key,description:l.value,mono:!0}))})]})]})}const FH=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function KQ(e){try{const t=Ve(e);let a=null;return t.route==="#/operate/outcomes"&&t.subjectId===null?a="outcomes":t.subjectId!==null&&t.route===`#/operate/outcomes/${encodeURIComponent(t.subjectId)}`&&(a="outcome"),t.productArea==="operate"&&a!==null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?Object.freeze({binding:t,surface:a}):null}catch{return null}}function JQ(e){const t=KQ(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=La(a),c=s.payload,{binding:l,surface:u}=t;if(c.surface!==u||l.eventHead===null||l.viewHash===null||l.cycleId===null||c.eventHead.sequence!==l.eventHead.sequence||c.eventHead.hash!==l.eventHead.hash||c.viewHash!==l.viewHash)return!1;const f=Vu(l.eventHead);if(f===null)return!1;const h=Object.freeze({actorId:l.actorId,scopeId:l.scopeId,domainId:l.domainId,domainVersion:l.domainVersion,cycleId:l.cycleId,subjectId:u==="outcome"?l.subjectId:null,surface:u,query:null,format:null,generatedAt:c.generatedAt,eventHead:f,viewHash:l.viewHash});return La(s,h),!0}catch{return!1}}}function VH(e,t){const a=KQ(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a.binding)||!JQ(a.binding)(e.data))return null;const s=FH[e.kind],c=e.data;if(s===void 0||c.payload.surface!==a.surface||c.payload.status!==s||c.payload.readOnly!==!0)return null;if(c.payload.surface==="outcome"){if(a.binding.subjectId===null)return null;const u=c.payload;return Object.freeze({kind:"outcome",presentation:s,binding:e.binding,display:c,surface:u,data:u.data,outcome:u.data.outcome,learnings:u.data.learnings,subjectId:a.binding.subjectId,readOnly:!0,mutationEnabled:!1})}const l=c.payload;return Object.freeze({kind:"outcomes",presentation:s,binding:e.binding,display:c,surface:l,data:l.data,domainMetrics:l.data.domainMetrics,outcomes:l.data.outcomes,learnings:l.data.learnings,readOnly:!0,mutationEnabled:!1})}function qH({currentBinding:e,current:t}){const a=VH(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.outcomes",children:r.jsx(be,{state:"incompatible",eyebrow:"Outcomes projection",title:"Outcomes cannot be trusted",description:"The owner-issued audit display did not pass exact binding and integrity verification."})});const s=`${a.surface.eventHead.sequence} · ${a.surface.eventHead.hash??"genesis"}`;return a.kind==="outcome"?r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.outcome","data-audit-presentation":a.presentation,children:[r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · outcome",title:"Outcome",description:"Track what changed and what still needs proof."}),r.jsx(cs,{items:[{term:"Outcome ID",description:a.subjectId??"Not returned",mono:!0},{term:"Event record",description:s,mono:!0},{term:"View key",description:a.surface.viewHash,mono:!0}]}),r.jsx(wu,{presentation:a.presentation}),r.jsx(mi,{heading:"Outcome",records:[a.outcome]}),r.jsx(mi,{heading:"Learnings",records:a.learnings})]}):r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.outcomes","data-audit-presentation":a.presentation,children:[r.jsxs("ul",{className:"pc-metrics","aria-label":"Outcomes",children:[r.jsx(Ba,{label:"domain metrics",value:a.domainMetrics.length}),r.jsx(Ba,{label:"outcomes",value:a.outcomes.length}),r.jsx(Ba,{label:"learnings",value:a.learnings.length})]}),r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · outcomes",title:"Outcomes",description:"Track results, measurements, and what the team learned."}),r.jsx(cs,{items:[{term:"Event record",description:s,mono:!0},{term:"View key",description:a.surface.viewHash,mono:!0}]}),r.jsx(wu,{presentation:a.presentation}),r.jsx(mi,{heading:"Domain metrics",records:a.domainMetrics}),r.jsx(mi,{heading:"Outcomes",records:a.outcomes}),r.jsx(mi,{heading:"Learnings",records:a.learnings})]})}const KH=Object.freeze({EvidencePage:YH,HistoryPage:PH,OutcomesPage:qH}),Zd=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,Ju=/^sha256:[a-f0-9]{64}$/u,JH=/^[A-Z][A-Z0-9_]{0,127}$/u,ZH=/^xpatch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,XH=new Set(["/status","/attention","/domainMetrics","/cycles","/inbox","/actions","/evidence","/claims","/rationale","/outcomes","/learnings","/history","/replay","/allowedActions","/omissions","/export"]),ZQ=new WeakMap;function WH(e,t){const a=ht(e,["sequence","hash"],t);if(!Number.isSafeInteger(a.sequence)||a.sequence<0)throw new ee(`${t}.sequence`,"expected a non-negative safe integer");const s=a.sequence,c=a.hash===null?null:Fe(a.hash,`${t}.hash`,Ju);if(s===0!=(c===null))throw new ee(t,"sequence and hash are inconsistent");return Object.freeze({sequence:s,hash:c})}function xu(e,t){const a=ht(e,["eventHead","viewHash"],t);return Object.freeze({eventHead:WH(a.eventHead,`${t}.eventHead`),viewHash:Fe(a.viewHash,`${t}.viewHash`,Ju)})}function ez(e){const t=ht(e,["actorId","projectId","scopeId","domainId","domainVersion","generation"],"$.binding");if(!Number.isSafeInteger(t.generation)||t.generation<0)throw new ee("$.binding.generation","expected a non-negative safe integer");return Object.freeze({actorId:Fe(t.actorId,"$.binding.actorId",Zd),projectId:Fe(t.projectId,"$.binding.projectId",Ju),scopeId:Fe(t.scopeId,"$.binding.scopeId",Zd),domainId:Fe(t.domainId,"$.binding.domainId",Zd),domainVersion:Fe(t.domainVersion,"$.binding.domainVersion",Zd),generation:t.generation})}function XQ(e,t){if(!Array.isArray(e))throw new ee(t,"expected an array");return Object.freeze(e.map((a,s)=>Fe(a,`${t}[${s}]`,JH)))}function WQ(e,t="$.payload"){const a=ht(e,["mutationEnabled","reasonCodes"],t),s=Uc(a.mutationEnabled,`${t}.mutationEnabled`),c=XQ(a.reasonCodes,`${t}.reasonCodes`);if(s&&c.length!==0||!s&&c.length===0)throw new ee(t,"ready mutation and reason state are inconsistent");return Object.freeze({mutationEnabled:s,reasonCodes:c})}function tz(e){if(typeof e!="string"||e.length<1||e.length>240||[...e].some(t=>(t.codePointAt(0)??0)<=31))throw new ee("$.payload.recovery","contains invalid recovery text");return e}function nz(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function ro(e,t){return nz(e.eventHead,t.eventHead)&&e.viewHash===t.viewHash}function eI(e){return(e==null?void 0:e.route)==="#/operate/inbox"||e!=null&&e.route.startsWith("#/operate/inbox/")?"inbox":"today"}function az(e,t){const a=ht(e,["patchId","patchHash","from","to","changedPaths"],"$.payload"),s=xu(a.from,"$.payload.from"),c=xu(a.to,"$.payload.to");if(!ro(c,t))throw new ee("$.payload","patch target does not equal envelope cursor");if(!Array.isArray(a.changedPaths))throw new ee("$.payload.changedPaths","expected an array");const l=a.changedPaths.map((f,h)=>{if(typeof f!="string"||!XH.has(f))throw new ee(`$.payload.changedPaths[${h}]`,"contains an unsupported path");return f});if(new Set(l).size!==l.length)throw new ee("$.payload.changedPaths","contains duplicate paths");const u={patchId:Fe(a.patchId,"$.payload.patchId",ZH),patchHash:Fe(a.patchHash,"$.payload.patchHash",Ju),from:s,to:c,changedPaths:Object.freeze(l)};return ZQ.set(u,JSON.stringify(e)),Object.freeze(u)}function tI(e,t=null){var u;const a=ht(Yw(e),["kind","schemaVersion","event","binding","cursor","payload"],"$");if(a.kind!=="dashboard-live-event"||a.schemaVersion!=="1.0.0")throw new ee("$","has an unsupported live event contract");const s=ez(a.binding),c=xu(a.cursor,"$.cursor"),l={kind:"dashboard-live-event",schemaVersion:"1.0.0",binding:s,cursor:c};if(a.event==="snapshot"){const f=Cn(a.payload),h=f.payload,A=eI(t),y=h.surface==="today"?((u=h.data.activeCycle)==null?void 0:u.cycleId)??null:null;if(h.surface!==A||h.eventHead.sequence!==c.eventHead.sequence||h.eventHead.hash!==c.eventHead.hash||A==="today"&&t!==null&&t.cycleId!==null&&y!==t.cycleId)throw new ee("$.payload","snapshot binding or cursor is inconsistent");const m=Object.freeze({actorId:s.actorId,scopeId:s.scopeId,domainId:s.domainId,domainVersion:s.domainVersion,generatedAt:h.generatedAt,eventHead:h.eventHead,viewHash:c.viewHash,surface:A,subjectId:null,cycleId:(t==null?void 0:t.cycleId)??y,...A==="inbox"?{projectId:s.projectId,generation:s.generation}:{}});try{Cn(f,m)}catch{throw new ee("$.payload","snapshot binding or cursor is inconsistent")}return Object.freeze({...l,event:"snapshot",payload:f})}if(a.event==="patch"){const f=az(a.payload,c);return Object.freeze({...l,event:"patch",payload:f})}if(a.event==="ready")return Object.freeze({...l,event:"ready",payload:WQ(a.payload)});if(a.event==="stale"){const f=ht(a.payload,["mutationEnabled","reasonCodes","recovery"],"$.payload");if(f.mutationEnabled!==!1)throw new ee("$.payload.mutationEnabled","stale events disable mutation");const h=XQ(f.reasonCodes,"$.payload.reasonCodes");if(h.length===0)throw new ee("$.payload.reasonCodes","stale events require a reason");return Object.freeze({...l,event:"stale",payload:Object.freeze({mutationEnabled:!1,reasonCodes:h,recovery:tz(f.recovery)})})}throw new ee("$.event","contains an unsupported event")}function nI(e){const t=e.identity;let a=t.eventHead&&t.viewHash?Object.freeze({eventHead:t.eventHead,viewHash:t.viewHash}):null,s=!1,c=!1,l=!1,u=null,f=null;const h=new Map,A=E=>(c||(c=!0,e.onRefetch(E)),Object.freeze({kind:"refetch",reason:E})),y=E=>E.actorId===t.actorId&&E.projectId===t.projectId&&E.scopeId===t.scopeId&&E.domainId===t.domainId&&E.domainVersion===t.domainVersion,m=E=>{var j,I;if(s||!e.isCurrent(t))return Object.freeze({kind:"rejected",reason:"inactive"});if(E.binding.generation!==t.generation)return Object.freeze({kind:"rejected",reason:"foreign-generation"});if(!y(E.binding))return Object.freeze({kind:"rejected",reason:"foreign-binding"});if(E.event==="snapshot"){if(a){if(E.cursor.eventHead.sequence<a.eventHead.sequence)return A("restart-regression");if(E.cursor.eventHead.sequence>a.eventHead.sequence&&!(E.payload.payload.surface==="inbox"&&E.cursor.eventHead.sequence===a.eventHead.sequence+1))return A("gap");if(E.cursor.eventHead.sequence===a.eventHead.sequence&&!ro(E.cursor,a))return A("divergent-duplicate")}return l&&a&&ro(E.cursor,a)?u===JSON.stringify(E.payload)?Object.freeze({kind:"duplicate"}):A("divergent-duplicate"):(a=E.cursor,l=!0,u=JSON.stringify(E.payload),f=JSON.stringify({mutationEnabled:E.payload.payload.mutationEnabled,reasonCodes:E.payload.payload.reasonCodes}),c=!1,h.clear(),e.onSnapshot(E.payload,E.cursor),Object.freeze({kind:"accepted",event:"snapshot"}))}if(!a)return A("cursor-mismatch");if(E.event==="ready")return ro(E.cursor,a)?f===null||f!==JSON.stringify(E.payload)?A("state-mismatch"):((j=e.onReady)==null||j.call(e,E.payload),Object.freeze({kind:"accepted",event:"ready"})):A("cursor-mismatch");if(E.event==="stale")return(I=e.onStale)==null||I.call(e,E.payload),A("stale");const b=E.payload,w=`${b.to.eventHead.sequence}:${b.to.eventHead.hash}:${b.to.viewHash}`,x=ZQ.get(b)??JSON.stringify(b);return ro(b.to,a)?h.get(w)===x?Object.freeze({kind:"duplicate"}):A("divergent-duplicate"):b.to.eventHead.sequence<=a.eventHead.sequence?A("reordered"):b.to.eventHead.sequence!==a.eventHead.sequence+1?A("gap"):ro(b.from,a)?(h.set(w,x),a=b.to,f=null,e.onPatch(b),Object.freeze({kind:"accepted",event:"patch"})):A("reordered")};return Object.freeze({ingest:m,ingestJson:E=>{try{return m(tI(E,t))}catch{return A("invalid-event")}},getCursor:()=>a,markReconciled:(E,b)=>s?!1:(a=xu(E,"$.cursor"),f=JSON.stringify(WQ(b,"$.state")),c=!1,l=!1,u=null,h.clear(),!0),dispose:()=>{s=!0}})}function aI(e){var f,h;const t=new URL(e.origin);if(t.protocol!=="http:"||!["127.0.0.1","localhost"].includes(t.hostname)||t.pathname!=="/"||t.search||t.hash)throw new ee("$.origin","expected an exact loopback HTTP origin");const a=new AbortController,s=()=>a.abort();(f=e.signal)!=null&&f.aborted?a.abort(e.signal.reason):(h=e.signal)==null||h.addEventListener("abort",s,{once:!0});const c=new URL("/api/operate/events",t);c.searchParams.set("scopeId",e.identity.scopeId),c.searchParams.set("domainId",e.identity.domainId),c.searchParams.set("domainVersion",e.identity.domainVersion),c.searchParams.set("generation",String(e.identity.generation)),eI(e.identity)==="inbox"&&(c.searchParams.set("projectId",e.identity.projectId),c.searchParams.set("surface","inbox"));const l={accept:"text/event-stream","x-openplanr-actor":e.identity.actorId};e.lastEventId&&(l["last-event-id"]=e.lastEventId);const u=(async()=>{var b,w;const A=await(e.fetcher??fetch)(c,{headers:l,signal:a.signal});if(!A.ok||!((b=A.headers.get("content-type"))!=null&&b.startsWith("text/event-stream"))||!A.body)throw new ee("$","live stream response is unavailable");const y=A.body.getReader(),m=new TextDecoder;let E="";try{for(;!a.signal.aborted;){const x=await y.read();if(E+=m.decode(x.value,{stream:!x.done}),E=E.replaceAll(`\r
|
|
537
|
-
`,`
|
|
538
|
-
`).replace(/\r(?!$)/gu,`
|
|
539
|
-
`),x.done&&E.endsWith("\r")&&(E=`${E.slice(0,-1)}
|
|
540
|
-
`),E.length>256*1024)throw new ee("$","live frame exceeds limit");let j=E.indexOf(`
|
|
541
|
-
|
|
542
|
-
`);for(;j>=0;){const I=E.slice(0,j);E=E.slice(j+2);const C=I.split(`
|
|
543
|
-
`),O=(w=C.find(_=>_.startsWith("event:")))==null?void 0:w.slice(6).trim(),S=C.filter(_=>_.startsWith("data:")).map(_=>_.slice(5).trimStart()).join(`
|
|
544
|
-
`);if(S){const _=tI(S,e.identity);if(O&&O!==_.event)throw new ee("$.event","SSE name and envelope event differ");e.reconciler.ingest(_)}j=E.indexOf(`
|
|
545
|
-
|
|
546
|
-
`)}if(x.done){if(E.trim().length>0)throw new ee("$","live stream ended with a partial frame");break}}}finally{y.releaseLock()}})().catch(A=>{if(!a.signal.aborted)throw A instanceof ee?A:new ee("$","live stream failed safely")}).finally(()=>{var A;return(A=e.signal)==null?void 0:A.removeEventListener("abort",s)});return Object.freeze({completion:u,close:()=>{var A;a.abort(),e.reconciler.dispose(),(A=e.signal)==null||A.removeEventListener("abort",s)}})}var Zu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Jr,ir,go,xw,iz=(xw=class extends Zu{constructor(){super();Me(this,Jr);Me(this,ir);Me(this,go);Qe(this,go,t=>{if(typeof window<"u"&&window.addEventListener){const a=()=>t();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){K(this,ir)||this.setEventListener(K(this,go))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,ir))==null||t.call(this),Qe(this,ir,void 0))}setEventListener(t){var a;Qe(this,go,t),(a=K(this,ir))==null||a.call(this),Qe(this,ir,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){K(this,Jr)!==t&&(Qe(this,Jr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(a=>{a(t)})}isFocused(){var t;return typeof K(this,Jr)=="boolean"?K(this,Jr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Jr=new WeakMap,ir=new WeakMap,go=new WeakMap,xw),iI=new iz,rz={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},rr,aA,jw,sz=(jw=class{constructor(){Me(this,rr,rz);Me(this,aA,!1)}setTimeoutProvider(e){Qe(this,rr,e)}setTimeout(e,t){return K(this,rr).setTimeout(e,t)}clearTimeout(e){K(this,rr).clearTimeout(e)}setInterval(e,t){return K(this,rr).setInterval(e,t)}clearInterval(e){K(this,rr).clearInterval(e)}},rr=new WeakMap,aA=new WeakMap,jw),Yg=new sz;function oz(e){setTimeout(e,0)}var cz=typeof window>"u"||"Deno"in globalThis;function ma(){}function lz(e,t){return typeof e=="function"?e(t):e}function dz(e){return typeof e=="number"&&e>=0&&e!==1/0}function uz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Hg(e,t){return typeof e=="function"?e(t):e}function fz(e,t){return typeof e=="function"?e(t):e}function Tb(e,t){const{type:a="all",exact:s,fetchStatus:c,predicate:l,queryKey:u,stale:f}=e;if(u){if(s){if(t.queryHash!==em(u,t.options))return!1}else if(!xo(t.queryKey,u))return!1}if(a!=="all"){const h=t.isActive();if(a==="active"&&!h||a==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||c&&c!==t.state.fetchStatus||l&&!l(t))}function kb(e,t){const{exact:a,status:s,predicate:c,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(a){if(tl(t.options.mutationKey)!==tl(l))return!1}else if(!xo(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||c&&!c(t))}function em(e,t){return((t==null?void 0:t.queryKeyHashFn)||tl)(e)}function tl(e){return JSON.stringify(e,(t,a)=>zg(a)?Object.keys(a).sort().reduce((s,c)=>(s[c]=a[c],s),{}):a)}function xo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){for(let s=0;s<t.length;s++)if(!xo(e[s],t[s]))return!1;return!0}const a=Object.keys(t);for(const s of a)if(!xo(e[s],t[s]))return!1;return!0}return!1}var pz=Object.prototype.hasOwnProperty;function rI(e,t,a=0){if(e===t)return e;if(a>500)return t;const s=Mb(e)&&Mb(t);if(!s&&!(zg(e)&&zg(t)))return t;const l=(s?e:Object.keys(e)).length,u=s?t:Object.keys(t),f=u.length,h=s?new Array(f):{};let A=0;for(let y=0;y<f;y++){const m=s?y:u[y],E=e[m],b=t[m];if(E===b){h[m]=E,(s?y<l:pz.call(e,m))&&A++;continue}if(E===null||b===null||typeof E!="object"||typeof b!="object"){h[m]=b;continue}const w=rI(E,b,a+1);h[m]=w,w===E&&A++}return l===f&&A===l?e:h}function Mb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zg(e){if(!Gb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const a=t.prototype;return!(!Gb(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Gb(e){return Object.prototype.toString.call(e)==="[object Object]"}function hz(e){return new Promise(t=>{Yg.setTimeout(t,e)})}function gz(e,t,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,t):a.structuralSharing!==!1?rI(e,t):t}function Az(e,t,a=0){const s=[...e,t];return a&&s.length>a?s.slice(1):s}function mz(e,t,a=0){const s=[t,...e];return a&&s.length>a?s.slice(0,-1):s}var tm=Symbol();function sI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===tm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function yz(e,t,a){let s=!1,c;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(c??(c=t()),s||(s=!0,c.aborted?a():c.addEventListener("abort",a,{once:!0})),c)}),e}var oI=(()=>{let e=()=>cz;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ez(){let e,t;const a=new Promise((c,l)=>{e=c,t=l});a.status="pending",a.catch(()=>{});function s(c){Object.assign(a,c),delete a.resolve,delete a.reject}return a.resolve=c=>{s({status:"fulfilled",value:c}),e(c)},a.reject=c=>{s({status:"rejected",reason:c}),t(c)},a}var Bz=oz;function vz(){let e=[],t=0,a=f=>{f()},s=f=>{f()},c=Bz;const l=f=>{t?e.push(f):c(()=>{a(f)})},u=()=>{const f=e;e=[],f.length&&c(()=>{s(()=>{f.forEach(h=>{a(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||u()}return h},batchCalls:f=>(...h)=>{l(()=>{f(...h)})},schedule:l,setNotifyFunction:f=>{a=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{c=f}}}var fn=vz(),Ao,sr,mo,Qw,bz=(Qw=class extends Zu{constructor(){super();Me(this,Ao,!0);Me(this,sr);Me(this,mo);Qe(this,mo,t=>{if(typeof window<"u"&&window.addEventListener){const a=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",s)}}})}onSubscribe(){K(this,sr)||this.setEventListener(K(this,mo))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,sr))==null||t.call(this),Qe(this,sr,void 0))}setEventListener(t){var a;Qe(this,mo,t),(a=K(this,sr))==null||a.call(this),Qe(this,sr,t(this.setOnline.bind(this)))}setOnline(t){K(this,Ao)!==t&&(Qe(this,Ao,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return K(this,Ao)}},Ao=new WeakMap,sr=new WeakMap,mo=new WeakMap,Qw),ju=new bz;function wz(e){return Math.min(1e3*2**e,3e4)}function cI(e){return(e??"online")==="online"?ju.isOnline():!0}var $g=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function lI(e){let t=!1,a=0,s;const c=Ez(),l=()=>c.status!=="pending",u=x=>{var j;if(!l()){const I=new $g(x);E(I),(j=e.onCancel)==null||j.call(e,I)}},f=()=>{t=!0},h=()=>{t=!1},A=()=>iI.isFocused()&&(e.networkMode==="always"||ju.isOnline())&&e.canRun(),y=()=>cI(e.networkMode)&&e.canRun(),m=x=>{l()||(s==null||s(),c.resolve(x))},E=x=>{l()||(s==null||s(),c.reject(x))},b=()=>new Promise(x=>{var j;s=I=>{(l()||A())&&x(I)},(j=e.onPause)==null||j.call(e)}).then(()=>{var x;s=void 0,l()||(x=e.onContinue)==null||x.call(e)}),w=()=>{if(l())return;let x;const j=a===0?e.initialPromise:void 0;try{x=j??e.fn()}catch(I){x=Promise.reject(I)}Promise.resolve(x).then(m).catch(I=>{var k;if(l())return;const C=e.retry??(oI.isServer()?0:3),O=e.retryDelay??wz,S=typeof O=="function"?O(a,I):O,_=C===!0||typeof C=="number"&&a<C||typeof C=="function"&&C(a,I);if(t||!_){E(I);return}a++,(k=e.onFail)==null||k.call(e,a,I),hz(S).then(()=>A()?void 0:b()).then(()=>{t?E(I):w()})})};return{promise:c,status:()=>c.status,cancel:u,continue:()=>(s==null||s(),c),cancelRetry:f,continueRetry:h,canStart:y,start:()=>(y()?w():b().then(w),c)}}var Zr,Iw,dI=(Iw=class{constructor(){Me(this,Zr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dz(this.gcTime)&&Qe(this,Zr,Yg.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(oI.isServer()?1/0:300*1e3))}clearGcTimeout(){K(this,Zr)!==void 0&&(Yg.clearTimeout(K(this,Zr)),Qe(this,Zr,void 0))}},Zr=new WeakMap,Iw);function xz(e){return{onFetch:(t,a)=>{var y,m,E,b,w;const s=t.options,c=(E=(m=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:m.fetchMore)==null?void 0:E.direction,l=((b=t.state.data)==null?void 0:b.pages)||[],u=((w=t.state.data)==null?void 0:w.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const A=async()=>{let x=!1;const j=O=>{yz(O,()=>t.signal,()=>x=!0)},I=sI(t.options,t.fetchOptions),C=async(O,S,_)=>{if(x)return Promise.reject(t.signal.reason);if(S==null&&O.pages.length)return Promise.resolve(O);const N=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return j(Z),Z})(),z=await I(N),{maxPages:M}=t.options,L=_?mz:Az;return{pages:L(O.pages,z,M),pageParams:L(O.pageParams,S,M)}};if(c&&l.length){const O=c==="backward",S=O?jz:Yb,_={pages:l,pageParams:u},k=S(s,_);f=await C(_,k,O)}else{const O=e??l.length;do{const S=h===0?u[0]??s.initialPageParam:Yb(s,f);if(h>0&&S==null)break;f=await C(f,S),h++}while(h<O)}return f};t.options.persister?t.fetchFn=()=>{var x,j;return(j=(x=t.options).persister)==null?void 0:j.call(x,A,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a)}:t.fetchFn=A}}}function Yb(e,{pages:t,pageParams:a}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,a[s],a):void 0}function jz(e,{pages:t,pageParams:a}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,a[0],a):void 0}var yo,Xr,Eo,oa,Wr,zt,ol,es,$n,uI,fi,Cw,Qz=(Cw=class extends dI{constructor(t){super();Me(this,$n);Me(this,yo);Me(this,Xr);Me(this,Eo);Me(this,oa);Me(this,Wr);Me(this,zt);Me(this,ol);Me(this,es);Qe(this,es,!1),Qe(this,ol,t.defaultOptions),this.setOptions(t.options),this.observers=[],Qe(this,Wr,t.client),Qe(this,oa,K(this,Wr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Qe(this,Xr,zb(this.options)),this.state=t.state??K(this,Xr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return K(this,yo)}get promise(){var t;return(t=K(this,zt))==null?void 0:t.promise}setOptions(t){if(this.options={...K(this,ol),...t},t!=null&&t._type&&Qe(this,yo,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=zb(this.options);a.data!==void 0&&(this.setState(Hb(a.data,a.dataUpdatedAt)),Qe(this,Xr,a))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&K(this,oa).remove(this)}setData(t,a){const s=gz(this.state.data,t,this.options);return rn(this,$n,fi).call(this,{data:s,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),s}setState(t){rn(this,$n,fi).call(this,{type:"setState",state:t})}cancel(t){var s,c;const a=(s=K(this,zt))==null?void 0:s.promise;return(c=K(this,zt))==null||c.cancel(t),a?a.then(ma).catch(ma):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return K(this,Xr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>fz(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Hg(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!uz(this.state.dataUpdatedAt,t)}onFocus(){var a;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(a=K(this,zt))==null||a.continue()}onOnline(){var a;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(a=K(this,zt))==null||a.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),K(this,oa).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(a=>a!==t),this.observers.length||(K(this,zt)&&(K(this,es)||rn(this,$n,uI).call(this)?K(this,zt).cancel({revert:!0}):K(this,zt).cancelRetry()),this.scheduleGc()),K(this,oa).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||rn(this,$n,fi).call(this,{type:"invalidate"})}async fetch(t,a){var A,y,m,E,b,w,x,j,I,C,O;if(this.state.fetchStatus!=="idle"&&((A=K(this,zt))==null?void 0:A.status())!=="rejected"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(K(this,zt))return K(this,zt).continueRetry(),K(this,zt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(_=>_.options.queryFn);S&&this.setOptions(S.options)}const s=new AbortController,c=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Qe(this,es,!0),s.signal)})},l=()=>{const S=sI(this.options,a),k=(()=>{const N={client:K(this,Wr),queryKey:this.queryKey,meta:this.meta};return c(N),N})();return Qe(this,es,!1),this.options.persister?this.options.persister(S,k,this):S(k)},f=(()=>{const S={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:K(this,Wr),state:this.state,fetchFn:l};return c(S),S})(),h=K(this,yo)==="infinite"?xz(this.options.pages):this.options.behavior;h==null||h.onFetch(f,this),Qe(this,Eo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&rn(this,$n,fi).call(this,{type:"fetch",meta:(m=f.fetchOptions)==null?void 0:m.meta}),Qe(this,zt,lI({initialPromise:a==null?void 0:a.initialPromise,fn:f.fetchFn,onCancel:S=>{S instanceof $g&&S.revert&&this.setState({...K(this,Eo),fetchStatus:"idle"}),s.abort()},onFail:(S,_)=>{rn(this,$n,fi).call(this,{type:"failed",failureCount:S,error:_})},onPause:()=>{rn(this,$n,fi).call(this,{type:"pause"})},onContinue:()=>{rn(this,$n,fi).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const S=await K(this,zt).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(b=(E=K(this,oa).config).onSuccess)==null||b.call(E,S,this),(x=(w=K(this,oa).config).onSettled)==null||x.call(w,S,this.state.error,this),S}catch(S){if(S instanceof $g){if(S.silent)return K(this,zt).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw rn(this,$n,fi).call(this,{type:"error",error:S}),(I=(j=K(this,oa).config).onError)==null||I.call(j,S,this),(O=(C=K(this,oa).config).onSettled)==null||O.call(C,this.state.data,S,this),S}finally{this.scheduleGc()}}},yo=new WeakMap,Xr=new WeakMap,Eo=new WeakMap,oa=new WeakMap,Wr=new WeakMap,zt=new WeakMap,ol=new WeakMap,es=new WeakMap,$n=new WeakSet,uI=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},fi=function(t){const a=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Iz(s.data,this.options),fetchMeta:t.meta??null};case"success":const c={...s,...Hb(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Qe(this,Eo,t.manual?c:void 0),c;case"error":const l=t.error;return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=a(this.state),fn.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),K(this,oa).notify({query:this,type:"updated",action:t})})},Cw);function Iz(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Hb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zb(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,a=t!==void 0,s=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var cl,Ra,dn,ts,Da,nr,Sw,Cz=(Sw=class extends dI{constructor(t){super();Me(this,Da);Me(this,cl);Me(this,Ra);Me(this,dn);Me(this,ts);Qe(this,cl,t.client),this.mutationId=t.mutationId,Qe(this,dn,t.mutationCache),Qe(this,Ra,[]),this.state=t.state||Sz(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){K(this,Ra).includes(t)||(K(this,Ra).push(t),this.clearGcTimeout(),K(this,dn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Qe(this,Ra,K(this,Ra).filter(a=>a!==t)),this.scheduleGc(),K(this,dn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){K(this,Ra).length||(this.state.status==="pending"?this.scheduleGc():K(this,dn).remove(this))}continue(){var t;return((t=K(this,ts))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,f,h,A,y,m,E,b,w,x,j,I,C,O,S,_,k,N;const a=()=>{rn(this,Da,nr).call(this,{type:"continue"})},s={client:K(this,cl),meta:this.options.meta,mutationKey:this.options.mutationKey};Qe(this,ts,lI({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(z,M)=>{rn(this,Da,nr).call(this,{type:"failed",failureCount:z,error:M})},onPause:()=>{rn(this,Da,nr).call(this,{type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>K(this,dn).canRun(this)}));const c=this.state.status==="pending",l=!K(this,ts).canStart();try{if(c)a();else{rn(this,Da,nr).call(this,{type:"pending",variables:t,isPaused:l}),K(this,dn).config.onMutate&&await K(this,dn).config.onMutate(t,this,s);const M=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,t,s));M!==this.state.context&&rn(this,Da,nr).call(this,{type:"pending",context:M,variables:t,isPaused:l})}const z=await K(this,ts).start();return await((A=(h=K(this,dn).config).onSuccess)==null?void 0:A.call(h,z,t,this.state.context,this,s)),await((m=(y=this.options).onSuccess)==null?void 0:m.call(y,z,t,this.state.context,s)),await((b=(E=K(this,dn).config).onSettled)==null?void 0:b.call(E,z,null,this.state.variables,this.state.context,this,s)),await((x=(w=this.options).onSettled)==null?void 0:x.call(w,z,null,t,this.state.context,s)),rn(this,Da,nr).call(this,{type:"success",data:z}),z}catch(z){try{await((I=(j=K(this,dn).config).onError)==null?void 0:I.call(j,z,t,this.state.context,this,s))}catch(M){Promise.reject(M)}try{await((O=(C=this.options).onError)==null?void 0:O.call(C,z,t,this.state.context,s))}catch(M){Promise.reject(M)}try{await((_=(S=K(this,dn).config).onSettled)==null?void 0:_.call(S,void 0,z,this.state.variables,this.state.context,this,s))}catch(M){Promise.reject(M)}try{await((N=(k=this.options).onSettled)==null?void 0:N.call(k,void 0,z,t,this.state.context,s))}catch(M){Promise.reject(M)}throw rn(this,Da,nr).call(this,{type:"error",error:z}),z}finally{K(this,dn).runNext(this)}}},cl=new WeakMap,Ra=new WeakMap,dn=new WeakMap,ts=new WeakMap,Da=new WeakSet,nr=function(t){const a=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=a(this.state),fn.batch(()=>{K(this,Ra).forEach(s=>{s.onMutationUpdate(t)}),K(this,dn).notify({mutation:this,type:"updated",action:t})})},Sw);function Sz(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gi,ya,ll,Ow,Oz=(Ow=class extends Zu{constructor(t={}){super();Me(this,gi);Me(this,ya);Me(this,ll);this.config=t,Qe(this,gi,new Set),Qe(this,ya,new Map),Qe(this,ll,0)}build(t,a,s){const c=new Cz({client:t,mutationCache:this,mutationId:++Dd(this,ll)._,options:t.defaultMutationOptions(a),state:s});return this.add(c),c}add(t){K(this,gi).add(t);const a=Xd(t);if(typeof a=="string"){const s=K(this,ya).get(a);s?s.push(t):K(this,ya).set(a,[t])}this.notify({type:"added",mutation:t})}remove(t){if(K(this,gi).delete(t)){const a=Xd(t);if(typeof a=="string"){const s=K(this,ya).get(a);if(s)if(s.length>1){const c=s.indexOf(t);c!==-1&&s.splice(c,1)}else s[0]===t&&K(this,ya).delete(a)}}this.notify({type:"removed",mutation:t})}canRun(t){const a=Xd(t);if(typeof a=="string"){const s=K(this,ya).get(a),c=s==null?void 0:s.find(l=>l.state.status==="pending");return!c||c===t}else return!0}runNext(t){var s;const a=Xd(t);if(typeof a=="string"){const c=(s=K(this,ya).get(a))==null?void 0:s.find(l=>l!==t&&l.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fn.batch(()=>{K(this,gi).forEach(t=>{this.notify({type:"removed",mutation:t})}),K(this,gi).clear(),K(this,ya).clear()})}getAll(){return Array.from(K(this,gi))}find(t){const a={exact:!0,...t};return this.getAll().find(s=>kb(a,s))}findAll(t={}){return this.getAll().filter(a=>kb(t,a))}notify(t){fn.batch(()=>{this.listeners.forEach(a=>{a(t)})})}resumePausedMutations(){const t=this.getAll().filter(a=>a.state.isPaused);return fn.batch(()=>Promise.all(t.map(a=>a.continue().catch(ma))))}},gi=new WeakMap,ya=new WeakMap,ll=new WeakMap,Ow);function Xd(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ta,_w,_z=(_w=class extends Zu{constructor(t={}){super();Me(this,Ta);this.config=t,Qe(this,Ta,new Map)}build(t,a,s){const c=a.queryKey,l=a.queryHash??em(c,a);let u=this.get(l);return u||(u=new Qz({client:t,queryKey:c,queryHash:l,options:t.defaultQueryOptions(a),state:s,defaultOptions:t.getQueryDefaults(c)}),this.add(u)),u}add(t){K(this,Ta).has(t.queryHash)||(K(this,Ta).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const a=K(this,Ta).get(t.queryHash);a&&(t.destroy(),a===t&&K(this,Ta).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return K(this,Ta).get(t)}getAll(){return[...K(this,Ta).values()]}find(t){const a={exact:!0,...t};return this.getAll().find(s=>Tb(a,s))}findAll(t={}){const a=this.getAll();return Object.keys(t).length>0?a.filter(s=>Tb(t,s)):a}notify(t){fn.batch(()=>{this.listeners.forEach(a=>{a(t)})})}onFocus(){fn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ta=new WeakMap,_w),Bt,or,cr,Bo,vo,lr,bo,wo,Nw,Nz=(Nw=class{constructor(e={}){Me(this,Bt);Me(this,or);Me(this,cr);Me(this,Bo);Me(this,vo);Me(this,lr);Me(this,bo);Me(this,wo);Qe(this,Bt,e.queryCache||new _z),Qe(this,or,e.mutationCache||new Oz),Qe(this,cr,e.defaultOptions||{}),Qe(this,Bo,new Map),Qe(this,vo,new Map),Qe(this,lr,0)}mount(){Dd(this,lr)._++,K(this,lr)===1&&(Qe(this,bo,iI.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,Bt).onFocus())})),Qe(this,wo,ju.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,Bt).onOnline())})))}unmount(){var e,t;Dd(this,lr)._--,K(this,lr)===0&&((e=K(this,bo))==null||e.call(this),Qe(this,bo,void 0),(t=K(this,wo))==null||t.call(this),Qe(this,wo,void 0))}isFetching(e){return K(this,Bt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return K(this,or).findAll({...e,status:"pending"}).length}getQueryData(e){var a;const t=this.defaultQueryOptions({queryKey:e});return(a=K(this,Bt).get(t.queryHash))==null?void 0:a.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),a=K(this,Bt).build(this,t),s=a.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Hg(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return K(this,Bt).findAll(e).map(({queryKey:t,state:a})=>{const s=a.data;return[t,s]})}setQueryData(e,t,a){const s=this.defaultQueryOptions({queryKey:e}),c=K(this,Bt).get(s.queryHash),l=c==null?void 0:c.state.data,u=lz(t,l);if(u!==void 0)return K(this,Bt).build(this,s).setData(u,{...a,manual:!0})}setQueriesData(e,t,a){return fn.batch(()=>K(this,Bt).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,a)]))}getQueryState(e){var a;const t=this.defaultQueryOptions({queryKey:e});return(a=K(this,Bt).get(t.queryHash))==null?void 0:a.state}removeQueries(e){const t=K(this,Bt);fn.batch(()=>{t.findAll(e).forEach(a=>{t.remove(a)})})}resetQueries(e,t){const a=K(this,Bt);return fn.batch(()=>(a.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const a={revert:!0,...t},s=fn.batch(()=>K(this,Bt).findAll(e).map(c=>c.cancel(a)));return Promise.all(s).then(ma).catch(ma)}invalidateQueries(e,t={}){return fn.batch(()=>(K(this,Bt).findAll(e).forEach(a=>{a.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const a={...t,cancelRefetch:t.cancelRefetch??!0},s=fn.batch(()=>K(this,Bt).findAll(e).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let l=c.fetch(void 0,a);return a.throwOnError||(l=l.catch(ma)),c.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(ma)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const a=K(this,Bt).build(this,t);return a.isStaleByTime(Hg(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ma).catch(ma)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ma).catch(ma)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return ju.isOnline()?K(this,or).resumePausedMutations():Promise.resolve()}getQueryCache(){return K(this,Bt)}getMutationCache(){return K(this,or)}getDefaultOptions(){return K(this,cr)}setDefaultOptions(e){Qe(this,cr,e)}setQueryDefaults(e,t){K(this,Bo).set(tl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...K(this,Bo).values()],a={};return t.forEach(s=>{xo(e,s.queryKey)&&Object.assign(a,s.defaultOptions)}),a}setMutationDefaults(e,t){K(this,vo).set(tl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...K(this,vo).values()],a={};return t.forEach(s=>{xo(e,s.mutationKey)&&Object.assign(a,s.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const t={...K(this,cr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=em(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===tm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...K(this,cr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){K(this,Bt).clear(),K(this,or).clear()}},Bt=new WeakMap,or=new WeakMap,cr=new WeakMap,Bo=new WeakMap,vo=new WeakMap,lr=new WeakMap,bo=new WeakMap,wo=new WeakMap,Nw);class ho extends Error{constructor(){super("The dashboard read was superseded by a newer route or binding generation.");Rd(this,"code","DASHBOARD_STALE_RESPONSE");this.name="DashboardStaleResponseError"}}class Rz extends Error{constructor(){super("The dashboard read failed safely.");Rd(this,"code","DASHBOARD_READ_FAILED");this.name="DashboardReadError"}}const Dz=["productArea","route","actorId","projectId","scopeId","domainId","domainVersion","cycleId","subjectId","generation"];function $b(e,t){return Dz.every(a=>e[a]===t[a])}function Tz(e){return JSON.stringify(rg(e))}function Kh(){const e=new Nz({defaultOptions:{queries:{gcTime:Number.POSITIVE_INFINITY,retry:!1,staleTime:0}}}),t=new Map,a=new Map;let s=null,c=!1;const l=()=>{for(const h of t.values())h.abort();t.clear(),a.clear(),e.cancelQueries()},u=h=>{if(c)throw new Error("Dashboard query client is disposed.");const A=Ve(h);if(s&&Ye(s,A))return s;const y=s;s=A,l();for(const m of e.getQueryCache().findAll()){const E=Array.isArray(m.queryKey)&&m.queryKey[0]==="dashboard-projection"?m.queryKey[1]:null;if(E)try{const b=Ve(E);$b(b,A)||e.removeQueries({queryKey:m.queryKey,exact:!0})}catch{e.removeQueries({queryKey:m.queryKey,exact:!0})}}return y&&$b(y,A)&&e.invalidateQueries({queryKey:["dashboard-projection"],refetchType:"none"}),A};return Object.freeze({queryClient:e,activate:u,read:(h,A,y)=>{const m=u(h),E=Tz(m),b=a.get(E);if(b)return b;const w=new AbortController;t.set(E,w);const x=Promise.resolve().then(()=>A({identity:m,signal:w.signal})).then(j=>{const I=y(j);if(w.signal.aborted||!s||!Ye(m,s))throw new ho;return e.setQueryData(rg(m),I),I}).catch(j=>{throw j instanceof ho?j:w.signal.aborted||!s||!Ye(m,s)?new ho:new Rz}).finally(()=>{t.get(E)===w&&t.delete(E),a.get(E)===x&&a.delete(E)});return a.set(E,x),x},getCurrentIdentity:()=>s,getData:h=>e.getQueryData(rg(h)),inFlightCount:()=>a.size,dispose:()=>{c||(c=!0,l(),s=null,e.clear())}})}const Hn=Object.freeze({checking:"Checking the current durable projection.",changed:"Durable state changed. Controls remain unavailable until the bound view is current.",failed:"The current projection could not be reconciled safely."}),kz=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u;function Mz(e){const t=e??"default";if(!kz.test(t))throw new Error("Bound projection source key is invalid.");return t}function Ub(e=()=>{},t=()=>Promise.reject(new Error(Hn.failed))){return Object.freeze({phase:"idle",identity:null,data:null,mutationEnabled:!1,reason:null,refetch:e,reconcile:t})}function Ug(e,t){return e.productArea===t.productArea&&e.route===t.route&&e.actorId===t.actorId&&e.projectId===t.projectId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.cycleId===t.cycleId&&e.subjectId===t.subjectId&&e.generation===t.generation}function Gz(){let e=Kh();const t=new Set;let a=Ub(),s=null,c=null,l=null,u=null,f=!1,h=0,A=0,y=0,m=!1,E=0,b=0,w=!1;const x=L=>{if(f||!s)return;if(u){w=!0,I({phase:a.data===null?"stale":"refreshing",identity:a.identity??s.identity,data:a.data,mutationEnabled:!1,reason:Hn.changed});return}S(s.identity),I({phase:a.data===null?"stale":"refreshing",identity:a.identity??s.identity,data:a.data,mutationEnabled:!1,reason:Hn.changed});const Z=b;u=N(!0).finally(()=>{Z===b&&(u=null,w&&(w=!1,x()))})},j=()=>x(),I=L=>{a=Object.freeze({...L,refetch:j,reconcile:k});for(const Z of t)Z()},C=L=>!f&&s!==null&&Ye(L,s.identity),O=()=>{E+=1,c==null||c.close(),c=null,l==null||l.dispose(),l=null},S=L=>{y+=1,e.dispose(),e=Kh(),e.activate(L)},_=()=>{b+=1,u=null,w=!1},k=async()=>{const L=(s==null?void 0:s.identity)??null;if(f||L===null)throw new Error(Hn.failed);for(x();u!==null;){const Z=u;if(await Z,Z===u)break}if(f||s===null||!Ye(L,s.identity)||a.phase!=="ready"||a.identity===null||a.data===null||!Ug(a.identity,L))throw new Error(Hn.failed);return a},N=async L=>{const Z=s;if(!Z||f)return;const F=++y,re=a.identity!==null&&(Ye(a.identity,Z.identity)||L&&Ug(a.identity,Z.identity))?a.data:null,pe=re!==null?a.identity:Z.identity;I({phase:L&&re!==null?"refreshing":"loading",identity:pe,data:re,mutationEnabled:!1,reason:L?Hn.changed:Hn.checking});try{const Y=await e.read(Z.identity,Z.read,Z.validate);if(!C(Z.identity)||F!==y)return;let V=Z.identity,te=!1;if(Z.live){const le=Z.live.reconcile(Y),fe=l==null?void 0:l.getCursor();if(fe&&(le.cursor.eventHead.sequence<fe.eventHead.sequence||le.cursor.eventHead.sequence===fe.eventHead.sequence&&(le.cursor.eventHead.hash!==fe.eventHead.hash||le.cursor.viewHash!==fe.viewHash)))throw new ho;if(l){if(!l.markReconciled(le.cursor,{mutationEnabled:le.mutationEnabled,reasonCodes:le.reasonCodes}))throw new ho}else if(!m)throw new ho;V=Ve({...Z.identity,eventHead:le.cursor.eventHead,viewHash:le.cursor.viewHash}),te=le.mutationEnabled}I({phase:Z.live&&m?"stale":"ready",identity:V,data:Y,mutationEnabled:m?!1:te,reason:m?Hn.failed:null})}catch{if(!C(Z.identity)||F!==y)return;I({phase:"stale",identity:pe,data:re,mutationEnabled:!1,reason:Hn.failed})}},z=L=>{if(m=!1,!L.live)return;const Z=++E;l=nI({identity:L.identity,isCurrent:()=>C(L.identity),onSnapshot:(oe,re)=>{if(C(L.identity))try{const pe=L.validate(oe);_(),S(L.identity),I({phase:"refreshing",identity:Ve({...L.identity,eventHead:re.eventHead,viewHash:re.viewHash}),data:pe,mutationEnabled:!1,reason:Hn.checking})}catch{x()}},onPatch:()=>x(),onReady:oe=>{!C(L.identity)||a.data===null||m||I({...a,phase:"ready",mutationEnabled:oe.mutationEnabled,reason:null})},onStale:()=>{C(L.identity)&&I({phase:a.data===null?"stale":"refreshing",identity:a.identity??L.identity,data:a.data,mutationEnabled:!1,reason:Hn.changed})},onRefetch:x});try{c=aI({origin:L.live.origin,identity:L.identity,reconciler:l,fetcher:L.live.fetcher,lastEventId:L.live.lastEventId})}catch{m=!0,l.dispose(),l=null,c=null;return}const F=()=>{Z!==E||!C(L.identity)||(m=!0,_(),I({phase:"stale",identity:a.identity??L.identity,data:a.data,mutationEnabled:!1,reason:Hn.failed}))};c.completion.then(F,F)},M=L=>{var re,pe,Y,V;if(f)throw new Error("Bound projection controller is disposed.");const Z=Ve(L.identity),F=Mz(L.sourceKey),oe=(s==null?void 0:s.sourceKey)===F&&((re=s.live)==null?void 0:re.origin)===((pe=L.live)==null?void 0:pe.origin)&&((Y=s.live)==null?void 0:Y.lastEventId)===((V=L.live)==null?void 0:V.lastEventId);s&&Ye(s.identity,Z)&&oe||(O(),_(),s&&Ye(s.identity,Z)&&S(Z),s={...L,identity:Z,sourceKey:F},e.activate(Z),z(s),N(!1))};return Object.freeze({activate:M,subscribe:L=>(t.add(L),()=>t.delete(L)),getSnapshot:()=>a,isActiveIdentity:L=>s!==null&&Ye(s.identity,L),retain:L=>{const Z=++A;return h+=1,M(L),()=>{h=Math.max(0,h-1),queueMicrotask(()=>{h===0&&Z===A&&!f&&(O(),_(),e.dispose(),e=Kh(),s=null,u=null)})}},dispose:()=>{f||(f=!0,O(),_(),e.dispose(),s=null,u=null,t.clear(),a=Ub())}})}function Yz(e){const[t]=B.useState(Gz),{identity:a,read:s,sourceKey:c="default",validate:l,live:u}=e,f=JSON.stringify(a),h=B.useMemo(()=>Ve(JSON.parse(f)),[f]),A=u==null?void 0:u.origin,y=u==null?void 0:u.fetcher,m=u==null?void 0:u.lastEventId,E=u==null?void 0:u.reconcile,b=u!==void 0,w=B.useRef(s),x=B.useRef(l),j=B.useRef(y),I=B.useRef(E);w.current=s,x.current=l,j.current=y,I.current=E;const C=B.useCallback(M=>w.current(M),[]),O=B.useCallback(M=>x.current(M),[]),S=B.useCallback((...M)=>(j.current??fetch)(...M),[]),_=B.useCallback(M=>{const L=I.current;if(!L)throw new Error("Bound projection live reconciler is unavailable.");return L(M)},[]),k=B.useMemo(()=>b&&A!==void 0?Object.freeze({origin:A,fetcher:S,lastEventId:m,reconcile:_}):void 0,[b,m,A,S,_]),N=B.useMemo(()=>Object.freeze({identity:h,sourceKey:c,read:C,validate:O,live:k}),[h,c,k,C,O]);B.useEffect(()=>t.retain(N),[N,t]);const z=B.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getSnapshot);return z.identity===null||!t.isActiveIdentity(h)||!Ug(z.identity,h)?Object.freeze({phase:"loading",identity:h,data:null,mutationEnabled:!1,reason:Hn.checking,refetch:z.refetch,reconcile:z.reconcile}):z}const Hz=/^sha256:[a-f0-9]{64}$/u;function fI(e,t){return e.kind==="review"&&e.cycleId===t&&Hz.test(e.readActionDigest)&&e.deepLink===`#/operate/cycles/${encodeURIComponent(e.cycleId)}/reviews/${encodeURIComponent(e.reviewId)}`}function pI(e,t){const a=e.inbox.flatMap(s=>{const c=s.navigationLocator;return c&&fI(c,t)?[c]:[]});return a.length===1?a[0]:null}const zz=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function $z(e){return Object.freeze(e==="business"?{domain:"business",title:"Business Cycle",assignment:"Business assignment",outcome:"Business outcome"}:e==="software"?{domain:"repository",title:"Repository Cycle",assignment:"Repository assignment",outcome:"Repository outcome"}:{domain:"operating",title:"Operating Cycle",assignment:"Operating assignment",outcome:"Operating outcome"})}function hI(e){try{const t=Ve(e);return t.productArea==="operate"&&t.cycleId!==null&&t.subjectId===t.cycleId&&t.route===`#/operate/cycles/${encodeURIComponent(t.cycleId)}`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function gI(e){const t=hI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=bu(a),c=s.payload;if(t.eventHead===null||t.viewHash===null||t.cycleId===null||t.subjectId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,surface:"cycle",subjectId:t.subjectId,cycleId:t.cycleId});return bu(s,l),!0}catch{return!1}}}function Lb(e,t,a){if(!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,t)||!gI(t)(e.data))return null;const s=e.data,c=s.payload,l=zz[e.kind];if(l===void 0||c.status!==l||c.mutationEnabled!==!1||e.mutationEnabled)return null;const u=c.data.cycle;return Object.freeze({kind:"cycle",source:a,presentation:l,binding:e.binding,display:s,workspace:c,vocabulary:$z(c.domainId),cycle:u,progress:c.data.progress,stages:u.stages,assignments:u.assignments,dependencies:u.dependencies,blockers:u.blockers,currentStage:u.stages.find(f=>f.state==="current")??null,persistentWork:c.data.persistentWork,replay:c.data.replay,verification:c.data.verification,allowedActions:c.data.allowedActions,mutationEnabled:!1})}function Uz(e,t){const a=hI(t);if(!a)return null;if(e.resumable){const s=Lb(e.resumable.workspace,a,"durable-resume");if(s)return s}return Lb(e.current.workspace,a,"current")}function $c(e){const t=e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function Lz(e){return!e||!Array.isArray(e.findings)||!Array.isArray(e.dissent)?null:e}function Pz(e){return!e||!Array.isArray(e.decisions)?null:e}function Fz(e){return e?(e.kind==="omitted"||e.kind==="lens",e.reason):"No absence was returned."}function Vz({seat:e,index:t}){const a=e.artifact!==null;return r.jsxs("article",{className:"op-executive-seat","data-seat-role-id":e.roleId,"data-seat-role-kind":e.roleKind,"data-seat-state":e.assignmentState??"absent","aria-labelledby":`op-executive-seat-${t}-title`,children:[r.jsxs("header",{className:"op-executive-seat__header",children:[r.jsx("p",{className:"op-eyebrow",children:$c(e.roleKind)}),r.jsx("h3",{id:`op-executive-seat-${t}-title`,children:e.label}),r.jsx("p",{children:e.assignmentState?$c(e.assignmentState):"Not issued"})]}),r.jsxs("dl",{className:"op-executive-seat__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Report"}),r.jsx("dd",{children:a?"Submitted":"Not submitted"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"State"}),r.jsx("dd",{children:e.assignmentState?$c(e.assignmentState):"Not issued"})]}),e.absence?r.jsxs("div",{children:[r.jsx("dt",{children:"Typed absence"}),r.jsx("dd",{children:Fz(e.absence)})]}):null]}),r.jsxs("details",{className:"op-executive-seat__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-executive-seat__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Role ID"}),r.jsxs("dd",{children:[r.jsx("code",{children:e.roleId})," · v",e.roleVersion]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Assignment ID"}),r.jsx("dd",{children:e.assignmentId?r.jsx("code",{children:e.assignmentId}):"Not issued"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Artifact"}),r.jsx("dd",{children:a?r.jsxs(r.Fragment,{children:[r.jsx("code",{children:e.artifact.artifactId}),r.jsxs("span",{className:"op-executive-seat__hash",children:["Raw ",r.jsx("code",{children:e.artifact.rawHash})]}),r.jsxs("span",{className:"op-executive-seat__hash",children:["Canonical ",r.jsx("code",{children:e.artifact.canonicalHash})]})]}):"No accepted artifact was returned."})]})]})]})]})}function qz({findings:e}){return e?r.jsxs("section",{className:"op-executive-challenger","aria-labelledby":"op-executive-challenger-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Independent challenge"}),r.jsx("h2",{id:"op-executive-challenger-title",children:"Challenger findings"})]}),r.jsx("p",{children:"The Challenger tests the board's assumptions independently."})]}),e.findings.length>0?r.jsx("ul",{className:"op-executive-claims",children:e.findings.map((t,a)=>r.jsxs("li",{children:[r.jsx("strong",{children:t.title}),r.jsx("p",{children:t.statement}),r.jsxs("p",{children:[$c(t.severity)," severity · ",$c(t.state)]}),r.jsxs("details",{className:"op-executive-claim__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:t.findingId})," · ",r.jsx("code",{children:t.findingType})]})]},`${t.findingId}:${a}`))}):r.jsx("p",{children:"No Challenger finding was returned."}),e.dissent.length>0?r.jsxs("div",{className:"op-executive-dissent",children:[r.jsx("h3",{children:"Dissent"}),r.jsx("ul",{children:e.dissent.map((t,a)=>r.jsxs("li",{children:[r.jsx("span",{children:t.statement}),r.jsxs("small",{children:[" Resolve when ",t.resolutionCondition]})]},`${t.sourceArtifactId}:${t.localDissentId}:${a}`))})]}):null]}):null}function Kz({synthesis:e}){return e?r.jsxs("section",{className:"op-executive-chair","aria-labelledby":"op-executive-chair-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Evidence-bound synthesis"}),r.jsx("h2",{id:"op-executive-chair-title",children:"Chair synthesis"})]}),r.jsx("p",{children:"The Chair brings the reports together. Any next step still needs review."})]}),e.decisions.length>0?r.jsx("div",{className:"op-executive-decisions",children:e.decisions.map((t,a)=>r.jsxs("article",{children:[r.jsx("h3",{children:t.title??"Untitled decision"}),t.question?r.jsx("p",{children:t.question}):null,t.outcome?r.jsx("p",{children:t.outcome}):null,t.rationale?r.jsx("p",{children:t.rationale}):null,t.actionHypotheses.length>0?r.jsx("ul",{children:t.actionHypotheses.map((s,c)=>r.jsxs("li",{children:[r.jsx("strong",{children:s.title??"Proposed action"}),s.expectedResult?r.jsx("span",{children:s.expectedResult}):null]},`${s.title??"action"}:${c}`))}):null]},`${t.title??"decision"}:${a}`))}):r.jsx("p",{children:"No Chair decision was returned."}),e.unresolvedGaps.length>0?r.jsxs("div",{className:"op-executive-gaps",children:[r.jsx("h3",{children:"Unresolved gaps"}),r.jsx("ul",{children:e.unresolvedGaps.map((t,a)=>r.jsxs("li",{children:[r.jsx("span",{children:t.reason}),r.jsxs("details",{className:"op-executive-gap__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:t.kind==="role"?t.roleId:t.requirementId})," ·"," ",r.jsx("code",{children:t.absenceCode})]})]},`${t.kind}:${t.kind==="role"?t.roleId:t.requirementId}:${a}`))})]}):null,e.dissent.length>0?r.jsxs("div",{className:"op-executive-dissent",children:[r.jsx("h3",{children:"Preserved dissent"}),r.jsx("ul",{children:e.dissent.map((t,a)=>r.jsxs("li",{children:[r.jsx("span",{children:t.statement}),r.jsxs("small",{children:[" Resolve when ",t.resolutionCondition]})]},`${t.sourceArtifactId}:${t.localDissentId}:${a}`))})]}):null]}):null}function Jz({model:e}){const t=e.board;return r.jsxs("section",{className:"op-executive-board","aria-labelledby":"op-executive-board-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Issued executive board"}),r.jsx("h2",{id:"op-executive-board-title",children:"Executive seats"})]}),r.jsx("p",{children:"See the perspectives that informed this cycle."})]}),r.jsx("div",{className:"op-executive-board__seats",children:t.seats.map((a,s)=>r.jsx(Vz,{seat:a,index:s},`${a.roleId}:${s}`))}),t.challengerFindings?r.jsx(qz,{findings:Lz(t.challengerFindings)}):null,t.chairSynthesis?r.jsx(Kz,{synthesis:Pz(t.chairSynthesis)}):null]})}function AI(e){try{const t=Ve(e);return t.productArea==="operate"&&t.domainId==="business"&&t.cycleId!==null&&t.subjectId===t.cycleId&&t.route===`#/operate/cycles/${encodeURIComponent(t.cycleId)}`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function mI(e){const t=AI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Tg(a),c=s.payload;if(t.eventHead===null||t.viewHash===null||t.cycleId===null||t.subjectId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,subjectId:t.subjectId,cycleId:t.cycleId});return Tg(s,l),c.data.executiveBoard.seats.every(u=>u.roleId!==u.label&&typeof u.label=="string")}catch{return!1}}}function Zz(e,t){if(AI(t)===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,t)||!mI(t)(e.data)||e.mutationEnabled)return null;const s=e.data,c=s.payload;return c.mutationEnabled!==!1?null:Object.freeze({kind:"executive-board",binding:e.binding,display:s,board:c.data.executiveBoard,mutationEnabled:!1})}function Xz(e,t,a){if(e.vocabulary.domain!=="business")return Object.freeze({kind:"hidden"});if(!t)return Object.freeze({kind:"unavailable",title:"Executive board not yet issued",description:"The owner has not issued a verified executive board display for this business Cycle."});const s=Zz(t,a);return s||Object.freeze({kind:"incompatible"})}function jo(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Pb(e){if(e==="normal")return"On track";const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function Wz(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function yI({stages:e,health:t,eyebrow:a="Active lifecycle",title:s,labelledBy:c="op-operating-spine-title"}){const l=e.find(u=>u.state==="current");return r.jsxs("section",{className:"op-cycle-spine","aria-labelledby":c,children:[r.jsxs("div",{className:"op-cycle-spine__heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:a}),r.jsx("h2",{id:c,children:s??(l?jo(l.id):Pb(t))})]}),r.jsx("p",{children:Pb(t)})]}),r.jsx("ol",{"aria-label":"Observe through Learn operating spine",children:e.map((u,f)=>r.jsxs("li",{"data-projection-state":u.state,"aria-current":u.state==="current"?"step":void 0,children:[r.jsx("span",{"aria-hidden":"true",children:String(f+1).padStart(2,"0")}),r.jsx("strong",{children:jo(u.id)}),r.jsx("small",{children:u.reason??Wz(u.state)})]},`${u.id}:${f}`))})]})}function Pt(e){const t=e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function hi(e,t,a=`${t}s`){return`${e} ${e===1?t:a}`}function Ea({values:e,empty:t,className:a}){return e.length>0?r.jsx("ul",{className:a,children:e.map((s,c)=>r.jsx("li",{children:r.jsx("code",{children:s})},`${s}:${c}`))}):r.jsx("p",{children:t})}function e$({model:e}){return r.jsxs("section",{className:"op-cycle-stages","aria-labelledby":"op-cycle-stages-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Cycle progress"}),r.jsx("h2",{id:"op-cycle-stages-title",children:"What is happening now"})]}),r.jsx("p",{children:"Open a stage to inspect only its returned inputs, outputs, gates, gaps, and uncertainty."})]}),r.jsx("div",{className:"op-cycle-stages__ledger",children:e.stages.map((t,a)=>r.jsxs("details",{className:"op-cycle-stage",open:t.state==="current","data-stage-state":t.state,children:[r.jsxs("summary",{children:[r.jsx("span",{"aria-hidden":"true",children:String(a+1).padStart(2,"0")}),r.jsx("strong",{children:jo(t.id)}),r.jsx("small",{children:t.reason??Pt(t.state)}),r.jsx("span",{className:"op-cycle-stage__status",children:Pt(t.state)})]}),r.jsxs("div",{className:"op-cycle-stage__overview",children:[r.jsx("span",{children:hi(t.inputArtifactIds.length,"input")}),r.jsx("span",{children:hi(t.outputArtifactIds.length,"output")}),r.jsx("span",{children:hi(t.gates.length,"gate")}),r.jsx("span",{children:hi(t.evidenceGapIds.length,"evidence gap")}),r.jsx("span",{children:hi(t.uncertaintyIds.length,"uncertainty","uncertainties")}),r.jsx("span",{children:hi(t.persistentActionIds.length,"persistent action")})]}),r.jsxs("details",{className:"op-cycle-stage__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("div",{className:"op-cycle-stage__body",children:[r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${a}-inputs`,children:[r.jsx("h3",{id:`op-cycle-stage-${a}-inputs`,children:"Inputs"}),r.jsx(Ea,{values:t.inputArtifactIds,empty:"No inputs were returned."})]}),r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${a}-outputs`,children:[r.jsx("h3",{id:`op-cycle-stage-${a}-outputs`,children:"Outputs"}),r.jsx(Ea,{values:t.outputArtifactIds,empty:"No outputs were returned."})]}),r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${a}-gates`,children:[r.jsx("h3",{id:`op-cycle-stage-${a}-gates`,children:"Gates"}),t.gates.length>0?r.jsx("ul",{children:t.gates.map((s,c)=>r.jsxs("li",{children:[r.jsx("strong",{children:Pt(s.kind)})," ",r.jsx("code",{children:s.subjectId})," ",r.jsx("span",{children:Pt(s.state)})]},`${s.kind}:${s.subjectId}:${c}`))}):r.jsx("p",{children:"No gates were returned."})]}),r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${a}-blockers`,children:[r.jsx("h3",{id:`op-cycle-stage-${a}-blockers`,children:"Blockers and uncertainty"}),r.jsxs("div",{className:"op-cycle-stage__signals",children:[r.jsxs("div",{children:[r.jsx("h4",{children:"Evidence gaps"}),r.jsx(Ea,{values:t.evidenceGapIds,empty:"No evidence gaps were returned."})]}),r.jsxs("div",{children:[r.jsx("h4",{children:"Uncertainty"}),r.jsx(Ea,{values:t.uncertaintyIds,empty:"No uncertainty was returned."})]}),r.jsxs("div",{children:[r.jsx("h4",{children:"Persistent actions"}),r.jsx(Ea,{values:t.persistentActionIds,empty:"No persistent actions were returned for this stage."})]})]})]})]})]})]},`${t.id}:${a}`))})]})}function t$({model:e}){return r.jsxs("section",{className:"op-cycle-ownership","aria-labelledby":"op-cycle-ownership-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"People and dependencies"}),r.jsx("h2",{id:"op-cycle-ownership-title",children:"Work in this cycle"})]}),r.jsx("p",{children:"See who owns the work, what it depends on, and what is blocking progress."})]}),e.assignments.length>0?r.jsx("ol",{className:"op-cycle-assignments","aria-label":"Cycle assignments",children:e.assignments.map((t,a)=>r.jsxs("li",{children:[r.jsxs("div",{children:[r.jsx("span",{children:String(a+1).padStart(2,"0")}),r.jsx("div",{children:r.jsx("strong",{children:t.title??e.vocabulary.assignment})})]}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Role"}),r.jsx("dd",{children:t.role?Pt(t.role):"Not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Owner"}),r.jsx("dd",{children:t.ownerLabel??"Not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"State"}),r.jsx("dd",{children:Pt(t.state)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Due"}),r.jsx("dd",{children:t.dueAt??"Not returned"})]})]}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("div",{className:"op-cycle-assignment__detail",children:[r.jsxs("section",{children:[r.jsx("h3",{children:"Assignment ID"}),r.jsx("code",{children:t.assignmentId})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Dependencies"}),t.dependencies.length>0?r.jsx("ul",{children:t.dependencies.map((s,c)=>r.jsxs("li",{children:[r.jsx("code",{children:s.assignmentId})," ·"," ",s.state??"state not returned"," ·"," ",s.resolved?"resolved":"unresolved"]},`${s.assignmentId}:${c}`))}):r.jsx("p",{children:"No dependency was returned."})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Blockers"}),r.jsx(Ea,{values:t.blockers,empty:"No blocker was returned."})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Artifacts"}),r.jsx("p",{children:"Inputs"}),r.jsx(Ea,{values:t.inputArtifactIds,empty:"No input Artifact was returned."}),r.jsx("p",{children:"Outputs"}),r.jsx(Ea,{values:t.outputArtifactIds,empty:"No output Artifact was returned."})]}),t.next?r.jsxs("p",{children:["Next step: ",r.jsx("strong",{children:t.next.label})," ",r.jsx("code",{children:t.next.tool})]}):null]})]})]},`${t.assignmentId}:${a}`))}):r.jsx("p",{className:"op-cycle-empty-line",children:"No assignment was returned for this Cycle."}),r.jsxs("div",{className:"op-cycle-relations",children:[r.jsxs("section",{"aria-labelledby":"op-cycle-dependencies-title",children:[r.jsx("h3",{id:"op-cycle-dependencies-title",children:"Dependency graph"}),e.dependencies.length>0?r.jsxs(r.Fragment,{children:[r.jsxs("p",{children:[hi(e.dependencies.length,"dependency","dependencies")," in this cycle."]}),r.jsxs("details",{className:"op-cycle-relations__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("ol",{children:e.dependencies.map((t,a)=>r.jsxs("li",{children:[r.jsx("strong",{children:Pt(t.subjectKind)})," ",r.jsx("code",{children:t.subjectId}),r.jsx("ul",{children:t.dependsOn.map((s,c)=>r.jsxs("li",{children:[r.jsx("code",{children:s.assignmentId??s.actionId})," ·"," ",s.state?Pt(s.state):"State not returned"," ·"," ",s.resolved?"Resolved":"Unresolved"]},`${s.assignmentId??s.actionId??"dependency"}:${c}`))})]},`${t.subjectKind}:${t.subjectId}:${a}`))})]})]}):r.jsx("p",{children:"No dependencies were returned."})]}),r.jsxs("section",{"aria-labelledby":"op-cycle-blockers-title",children:[r.jsx("h3",{id:"op-cycle-blockers-title",children:"Cycle blockers"}),e.blockers.length>0?r.jsxs(r.Fragment,{children:[r.jsxs("p",{children:[hi(e.blockers.length,"blocker")," need attention."]}),r.jsxs("details",{className:"op-cycle-relations__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("ol",{children:e.blockers.map((t,a)=>r.jsxs("li",{children:[r.jsx("strong",{children:Pt(t.subjectKind)})," ",r.jsx("code",{children:t.subjectId}),r.jsx(Ea,{values:t.blockingSubjectIds,empty:"No blocking subject was returned."})]},`${t.subjectKind}:${t.subjectId}:${a}`))})]})]}):r.jsx("p",{children:"No blockers are currently returned."})]})]})]})}function n$({model:e}){const t=[...e.persistentWork.findings,...e.persistentWork.decisions,...e.persistentWork.actions];return r.jsxs("section",{className:"op-cycle-persistent","aria-labelledby":"op-cycle-persistent-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Beyond Cycle closure"}),r.jsx("h2",{id:"op-cycle-persistent-title",children:"Persistent work"})]}),r.jsx("p",{children:"Closure does not complete or delete the work this Cycle created or touched."})]}),t.length>0?r.jsx("ol",{className:"op-cycle-persistent__items",children:t.map((a,s)=>r.jsxs("li",{children:[r.jsx("span",{children:Pt(a.kind)}),r.jsx("strong",{children:Pt(a.state)}),r.jsx("small",{children:hi(a.relations.length,"related record")}),r.jsxs("details",{className:"op-cycle-persistent__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:a.subjectId}),r.jsx(Ea,{values:a.relations,empty:"No related records were returned."})]})]},`${a.kind}:${a.subjectId}:${s}`))}):r.jsx("p",{className:"op-cycle-empty-line",children:"No persistent Finding, Decision, or Action was returned."}),r.jsxs("div",{className:"op-cycle-outcomes",children:[r.jsxs("section",{children:[r.jsx("h3",{children:"Outcomes"}),e.persistentWork.outcomes.length>0?r.jsx("ol",{children:e.persistentWork.outcomes.map((a,s)=>r.jsxs("li",{children:[a.deepLink?r.jsx("a",{href:a.deepLink,children:Pt(a.status)}):r.jsx("strong",{children:Pt(a.status)}),r.jsxs("details",{className:"op-cycle-outcome__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:a.outcomeId})]})]},`${a.outcomeId}:${s}`))}):r.jsx("p",{children:"No Outcome was returned."})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Learnings"}),e.persistentWork.learnings.length>0?r.jsx("ol",{children:e.persistentWork.learnings.map((a,s)=>r.jsxs("li",{children:[r.jsx("strong",{children:a.statement}),r.jsxs("details",{className:"op-cycle-outcome__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:a.learningId})]})]},`${a.learningId}:${s}`))}):r.jsx("p",{children:"No Learning was returned."})]})]})]})}function a$({model:e}){const t=e.replay.checkpoint;return r.jsxs("aside",{className:"op-cycle-proof","aria-labelledby":"op-cycle-proof-title",children:[r.jsx("p",{className:"op-eyebrow",children:"History and verification"}),r.jsx("h2",{id:"op-cycle-proof-title",children:"Confidence in this cycle"}),r.jsxs("section",{className:"op-cycle-verification","data-verification":e.verification.status,children:[r.jsx("h3",{children:Pt(e.verification.status)}),r.jsx("p",{children:e.verification.status==="unverified"?"Required proof is missing or incomplete. This Cycle is not presented as verified.":e.verification.status==="not-required"?"The canonical projection returned no required verification.":"The canonical projection returned complete affirmative verification proof."}),e.verification.reasonCodes.length>0?r.jsxs("details",{className:"op-cycle-verification__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx(Ea,{values:e.verification.reasonCodes,empty:"No reason codes were returned."})]}):null]}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-proof__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Final head"}),r.jsx("dd",{children:r.jsx("code",{children:e.replay.finalHead.sequence})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Tail events"}),r.jsx("dd",{children:e.replay.tail.eventCount})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Checkpoint"}),r.jsx("dd",{children:t?"returned":"not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Checkpoint verified"}),r.jsx("dd",{children:e.replay.parityProof.checkpointVerified?"yes":"no"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Final hash matches"}),r.jsx("dd",{children:e.replay.parityProof.finalEventHashMatches?"yes":"no"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"State parity"}),r.jsx("dd",{children:e.replay.parityProof.stateParityVerified?"yes":"no"})]})]}),t?r.jsxs("div",{className:"op-cycle-proof__checkpoint",children:[r.jsx("time",{dateTime:t.createdAt,children:t.createdAt}),r.jsx("code",{children:t.runtimeStateHash}),r.jsx("code",{children:t.eventReplayIndexHash}),r.jsx("span",{children:t.recoveryVersion})]}):null]}),r.jsxs("section",{className:"op-cycle-read-actions","aria-labelledby":"op-cycle-read-actions-title",children:[r.jsx("h3",{id:"op-cycle-read-actions-title",children:"Available actions"}),r.jsx("ul",{children:e.allowedActions.map((a,s)=>r.jsxs("li",{children:[r.jsx("strong",{children:a.label}),r.jsx("span",{children:Pt(a.effect)}),r.jsxs("details",{className:"op-cycle-read-actions__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:a.tool})]})]},`${a.tool}:${s}`))}),r.jsx("p",{children:"Action details are available only when the current cycle allows them."})]})]})}function i$({model:e,currentBinding:t,executiveBoard:a}){const s=Xz(e,a,t);return s.kind==="hidden"?null:s.kind==="unavailable"?r.jsx("section",{className:"op-executive-board op-executive-board--unavailable","aria-live":"polite",children:r.jsx(be,{state:"unavailable",eyebrow:"Executive board",title:s.title,description:s.description})}):s.kind==="incompatible"?r.jsx("section",{className:"op-executive-board op-executive-board--incompatible",children:r.jsx(be,{state:"incompatible",eyebrow:"Executive board",title:"Executive board cannot be trusted",description:"The owner-issued executive board display did not pass exact binding and integrity verification."})}):r.jsx(Jz,{model:s})}function r$({currentBinding:e,sources:t,reviewNavigation:a=null}){const s=Uz(t,e);if(!s)return r.jsx("div",{className:"op-workspace op-cycle-detail pc-operate","data-route-kind":"operate.cycle",children:r.jsx(be,{state:"incompatible",eyebrow:"Cycle projection",title:"Cycle cannot be trusted",description:"The owner-issued workspace did not pass exact binding and integrity verification."})});const c=a&&fI(a,s.cycle.cycleId)?a:null;return r.jsxs("div",{className:"op-workspace op-cycle-detail pc-operate","data-route-kind":"operate.cycle","data-cycle-presentation":s.presentation,"data-cycle-source":s.source,children:[r.jsxs("ul",{className:"pc-metrics","aria-label":"Cycle progress",children:[r.jsx(Ba,{label:"terminal",value:s.progress.terminal}),r.jsx(Ba,{label:"total",value:s.progress.total})]}),r.jsx(st,{headingLevel:1,eyebrow:`planr-operate · ${s.vocabulary.title.toLowerCase()}`,title:s.cycle.focus[0]??s.vocabulary.title,description:`${Pt(s.cycle.state)} · ${Pt(s.cycle.health)}`,actions:r.jsxs(r.Fragment,{children:[r.jsx(fa,{state:s.cycle.state}),r.jsx(fa,{state:s.cycle.health}),c?r.jsx("a",{className:"pc-row-link","data-review-navigation":"","data-review-read-action-digest":c.readActionDigest,href:c.deepLink,children:"Open Review"}):null]})}),s.source==="durable-resume"?r.jsx("p",{className:"pc-operate__notice","data-tone":"verified",role:"status",children:"Your saved cycle has been restored."}):null,s.cycle.state==="closed"?r.jsx("p",{className:"pc-operate__notice",role:"status",children:"This Cycle is closed. Persistent Decisions, Actions, Findings, Outcomes, and Learnings remain discoverable below."}):null,r.jsx(yI,{stages:s.stages,cycleId:s.cycle.cycleId,health:s.cycle.health,eyebrow:"Observe through Learn",title:s.currentStage?jo(s.currentStage.id):Pt(s.cycle.state),labelledBy:"op-cycle-detail-spine-title"}),r.jsx(i$,{model:s,currentBinding:e,executiveBoard:t.current.executiveBoard}),r.jsxs("div",{className:"op-cycle-detail__workspace",children:[r.jsxs("div",{className:"op-cycle-detail__primary",children:[r.jsx(e$,{model:s}),r.jsx(t$,{model:s}),r.jsx(n$,{model:s})]}),r.jsx(a$,{model:s})]})]})}const s$=/^http:\/\/(?:127\.0\.0\.1|localhost):\d+$/u,o$=4*1024*1024;function c$(e){return typeof e=="object"&&e!==null&&e.kind==="operate-executive-board-display-surface"}function l$(e,t,a){if(!s$.test(e))throw new Error("Operate dashboard reads require an exact loopback origin.");if(a.productArea!=="operate"||a.cycleId===null||a.subjectId===null)throw new Error("Operate Cycle detail identity is incomplete.");const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s}async function d$(e){const{identity:t}=e;if(t.domainId!=="business"||t.cycleId===null)return null;const a=l$(e.origin,`/api/operate/cycles/${encodeURIComponent(t.cycleId)}/executive-board`,t),s=await(e.fetcher??fetch)(a,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>o$)throw new Error("Executive board response exceeds the dashboard JSON limit.");let l;try{l=JSON.parse(c)}catch{throw new Error("Executive board response is not JSON.")}if(!s.ok||!c$(l))return null;try{Tg(l,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:l.payload.generatedAt,eventHead:l.payload.eventHead,viewHash:t.viewHash??l.payload.viewHash,subjectId:t.subjectId,cycleId:t.cycleId})}catch{return null}return l}function u$(){if(typeof window>"u")return"";const{origin:e,protocol:t,hostname:a,pathname:s,search:c,hash:l}=window.location;return t!=="http:"||!["127.0.0.1","localhost"].includes(a)||s!=="/"||c||l?"":e}function f$(e,t){const a=mI(e);return a(t)?so({kind:"ready",binding:e,data:t,reasonCodes:[],error:null,mutationEnabled:!1,policy:oo("ready")},{currentBinding:e,validateData:a}):null}function p$(e,t){const a=u$(),s=t&&a.length>0,c=Yz({identity:e,sourceKey:s?"executive-board":"executive-board-offline",read:async({identity:l,signal:u})=>!s||l.cycleId===null?null:d$({origin:a,identity:l,signal:u}),validate:l=>{if(l===null)return null;const u=f$(e,l);if(!u)throw new Error("Executive board display did not verify.");return u}});if(t){if(!s)return null;if(!(c.phase==="loading"||c.phase==="refreshing"))return c.phase!=="ready"?null:c.data}}function h$({currentBinding:e,workspace:t,reviewNavigation:a=null}){const s=e.domainId==="business",c=p$(e,s),l=Object.freeze({current:Object.freeze({workspace:t,...s?{executiveBoard:c??null}:{}})});return s&&c===void 0?r.jsx("div",{className:"op-workspace op-cycle-detail","data-route-kind":"operate.cycle",children:r.jsx(be,{state:"booting",eyebrow:"Executive board",title:"Loading executive board",description:"Waiting for the owner-issued executive board display for this business Cycle."})}):r.jsx(r$,{currentBinding:e,sources:l,reviewNavigation:a})}function EI(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const g$=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function BI(e){try{const t=Ve(e);return t.productArea==="operate"&&t.route==="#/operate/cycles"&&t.subjectId===null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function nm(e){const t=BI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Cn(a),c=s.payload;if(c.surface!=="cycles"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,surface:"cycles",subjectId:null,cycleId:t.cycleId});return Cn(s,l),!0}catch{return!1}}}function A$(e,t){const a=BI(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!nm(a)(e.data))return null;const s=e.data;if(s.payload.surface!=="cycles")return null;const c=s.payload,l=g$[e.kind];return l===void 0||c.status!==l||c.mutationEnabled!==e.mutationEnabled?null:Object.freeze({display:s,surface:c,presentation:l})}function m$(e){return e==="business"?"Business Cycles":e==="software"?"Repository Cycles":"Operating Cycles"}const y$=new Set(["blocked","failed","cancelled"]);function E$(e){const t=e.stages.find(a=>a.state==="current");return t?jo(t.id):EI(e.health)}const B$=[{key:"cycle",label:"Cycle",render:e=>r.jsx("a",{className:"pc-row-link",href:e.deepLink,"aria-label":`Open ${e.focus[0]??"cycle"}`,children:e.focus[0]??"Untitled cycle"})},{key:"state",label:"State",render:e=>r.jsx(fa,{state:e.state})},{key:"health",label:"Health",render:e=>r.jsx(fa,{state:e.health})},{key:"current",label:"Current stage",render:e=>E$(e)},{key:"assignments",label:"Assignments",align:"right",mono:!0,render:e=>e.assignments.length},{key:"persistent",label:"Persistent actions",align:"right",mono:!0,render:e=>e.persistentActionIds.length}];function v$({currentBinding:e,current:t}){const a=A$(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-cycle-list pc-operate","data-route-kind":"operate.cycles",children:r.jsx(be,{state:"incompatible",eyebrow:"Cycle projection",title:"Cycles cannot be trusted",description:"The owner-issued display did not pass exact binding and integrity verification."})});const{surface:s,presentation:c}=a,l=s.data.cycles,u=l.map((A,y)=>({...A,id:`${A.cycleId}:${y}`})),f=[],h=new Map;for(const A of l)h.has(A.state)||f.push(A.state),h.set(A.state,(h.get(A.state)??0)+1);return r.jsxs("div",{className:"op-workspace op-cycle-list pc-operate","data-route-kind":"operate.cycles","data-cycle-presentation":c,children:[c!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This is a ",c," projection. Durable Cycle identity remains visible; no action is inferred."]}):null,f.length>0?r.jsx("ul",{className:"pc-metrics","aria-label":"Cycle states",children:f.map(A=>r.jsx(Ba,{label:EI(A),value:h.get(A)??0,tone:y$.has(A)?"attention":"default"},A))}):null,r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · cycles",title:m$(s.domainId),count:`${l.length} ${l.length===1?"cycle":"cycles"}`,description:"Follow the work from observation through learning."}),l.length===0?r.jsx(be,{state:"unavailable",eyebrow:"Cycles",title:"No cycles yet",description:"There is no active cycle in this workspace yet."}):r.jsx(ji,{columns:B$,rows:u,caption:"Operating cycles"})]})}const b$=Object.freeze({DetailRoute:h$,ListPage:v$,createListValidator:nm});function Fb(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function w$(e,t,a){return e.unavailableReason?`${e.unavailableReason.code}: ${e.unavailableReason.message}`:e.actionLocator===null?"No owner-issued action locator is available for this item.":t?null:a.length>0?a.join(" · "):"Mutation is unavailable for this exact Inbox projection."}function x$(e){return Pa({kind:"operate.inbox-item",subjectId:e})}function vI({item:e,mutationEnabled:t,pendingItemId:a,surfaceReasonCodes:s,showDeepLink:c=!0,headingLevel:l=3,onPreview:u}){const f=`op-inbox-action-${encodeURIComponent(e.itemId)}`,h=e.navigationLocator??null,A=w$(e,t,s),y=h===null&&A===null,m=l===2?"h2":"h3";return r.jsxs("article",{className:"op-inbox-item","data-inbox-kind":e.kind,"data-inbox-state":e.state,"data-inbox-blocking":e.blocking?"true":"false","aria-labelledby":`${f}-title`,children:[r.jsxs("header",{className:"op-inbox-item__header",children:[r.jsx("div",{className:"op-inbox-item__sequence","aria-hidden":"true"}),r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:Fb(e.kind)}),r.jsx(m,{id:`${f}-title`,children:e.title}),r.jsx("p",{className:"op-inbox-item__consequence",children:e.consequence})]}),r.jsx("span",{className:"op-inbox-item__state",children:Fb(e.state)})]}),r.jsxs("dl",{className:"op-inbox-item__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Owner"}),r.jsx("dd",{children:"Assigned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Blocking"}),r.jsx("dd",{children:e.blocking?"Yes":"No"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Expiry"}),r.jsx("dd",{children:e.expiresAt?r.jsx("time",{dateTime:e.expiresAt,children:e.expiresAt}):"Not returned"})]})]}),r.jsxs("details",{className:"op-inbox-item__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("dl",{className:"op-inbox-item__facts",children:r.jsxs("div",{children:[r.jsx("dt",{children:"Owner ID"}),r.jsx("dd",{children:r.jsx("code",{children:e.ownerActorId})})]})})]}),r.jsxs("div",{className:"op-inbox-item__disclosure",children:[r.jsxs("details",{children:[r.jsxs("summary",{children:["Evidence (",e.evidence.length,")"]}),e.evidence.length>0?r.jsx("ol",{children:e.evidence.map((E,b)=>r.jsxs("li",{children:[r.jsx("code",{children:E.evidenceRefId}),r.jsx("span",{children:E.relation}),r.jsxs("span",{children:[E.classification," · ",E.accessState]})]},`${E.evidenceRefId}:${b}`))}):r.jsx("p",{children:"No item-bound evidence was returned."})]}),r.jsxs("details",{children:[r.jsxs("summary",{children:["Required parties (",e.requiredParties.length,")"]}),e.requiredParties.length>0?r.jsx("ol",{children:e.requiredParties.map((E,b)=>r.jsxs("li",{children:[r.jsx("code",{children:E.partyId}),r.jsx("span",{children:E.actorKind}),r.jsx("span",{children:E.state}),r.jsx("strong",{children:E.redacted?"Identity redacted":E.actorId??"Actor not returned"})]},`${E.partyId}:${b}`))}):r.jsx("p",{children:"No required party was returned."})]}),r.jsxs("details",{children:[r.jsxs("summary",{children:["Redactions (",e.redactions.length,")"]}),e.redactions.length>0?r.jsx("ol",{children:e.redactions.map((E,b)=>r.jsxs("li",{children:[r.jsx("span",{children:E.classification}),r.jsx("strong",{children:E.count}),r.jsx("code",{children:E.reason})]},`${E.classification}:${E.reason}:${b}`))}):r.jsx("p",{children:"No redaction was returned."})]})]}),r.jsxs("footer",{className:"op-inbox-item__actions",children:[c?r.jsx("a",{className:"op-inbox-item__link",href:x$(e.itemId),children:"View item"}):r.jsx("a",{className:"op-inbox-item__link",href:"#/operate/inbox",children:"Back to Inbox"}),h?r.jsx("a",{className:"op-inbox-item__link","data-review-navigation":"","data-review-read-action-digest":h.readActionDigest,href:h.deepLink,children:"Open Review"}):r.jsx("fieldset",{className:"op-inbox-item__trigger-anchor","data-inbox-item-trigger-anchor":"",tabIndex:-1,"aria-labelledby":`${f}-title`,children:y?r.jsx(Mt,{id:f,disabled:!1,pendingLabel:"Verifying exact preview","aria-haspopup":"dialog",onInvoke:()=>u(e,f),children:"Open verified preview"}):r.jsx(Mt,{id:f,disabled:!0,disabledReason:A??"No owner-issued action locator is available.","aria-haspopup":"dialog",children:"Open verified preview"})}),h===null&&a===e.itemId?r.jsx("span",{className:"op-inbox-item__pending",role:"status",children:"Verifying the exact owner preview."}):null]})]})}const Lg=Object.freeze(["decision","approval","verification"]),j$=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function bI(e){try{const t=Ve(e);return t.productArea==="operate"&&(t.route==="#/operate/inbox"||t.subjectId!==null&&t.route===`#/operate/inbox/${encodeURIComponent(t.subjectId)}`)&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function am(e){const t=bI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Cn(a),c=s.payload;if(c.surface!=="inbox"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:"inbox",subjectId:t.subjectId,cycleId:t.cycleId});return Cn(s,l),!0}catch{return!1}}}function Q$(e){return JSON.stringify([e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation])}function I$(e){var t,a;return JSON.stringify([e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation,((t=e.eventHead)==null?void 0:t.sequence)??null,((a=e.eventHead)==null?void 0:a.hash)??null,e.viewHash])}function Vb(e,t){const a=bI(t);if(!a||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a))return null;const s=j$[e.kind];if(s===void 0||!am(a)(e.data))return null;const c=e.data;if(c.payload.surface!=="inbox")return null;const l=c.payload;if(l.status!==s||l.mutationEnabled!==e.mutationEnabled||l.data.requestBinding.projectId!==a.projectId||l.data.requestBinding.generation!==a.generation)return null;const u=l.data.inbox,f=Object.freeze({decision:Object.freeze(u.filter(y=>y.kind==="decision")),approval:Object.freeze(u.filter(y=>y.kind==="approval")),verification:Object.freeze(u.filter(y=>y.kind==="verification"))}),h=a.subjectId!==null,A=h?u.find(y=>y.itemId===a.subjectId)??null:null;return Object.freeze({kind:"inbox",presentation:s,binding:e.binding,actionContextKey:I$(a),selectionScopeKey:Q$(a),display:c,surface:l,items:u,categories:f,detailRequested:h,detailItem:A,mutationEnabled:l.mutationEnabled&&sA(e,a)})}const Rc=Object.freeze({decision:"Decision",approval:"Approval",verification:"Verification"});function C$(e){return Lg.some(t=>t===e)}function S$({model:e,mutationEnabled:t=e.mutationEnabled,selected:a,pendingItemId:s,onSelectedChange:c,onPreview:l}){return r.jsxs(Ld.Root,{className:"op-inbox-tabs",value:a,activationMode:"automatic",orientation:"horizontal",onValueChange:u=>{C$(u)&&c(u)},children:[r.jsx(Ld.List,{className:"op-inbox-tabs__list","aria-label":"Inbox categories",children:Lg.map(u=>{const f=e.categories[u].length,h=f===1?"item":"items";return r.jsxs(Ld.Trigger,{className:"op-inbox-tabs__trigger",value:u,"aria-label":`${Rc[u]}, ${f} ${h}`,children:[r.jsx("span",{children:Rc[u]}),r.jsx("strong",{"aria-hidden":"true",children:f})]},u)})}),Lg.map(u=>{const f=e.categories[u];return r.jsx(Ld.Content,{className:"op-inbox-tabs__panel",value:u,forceMount:!0,tabIndex:0,"aria-label":`${Rc[u]} queue, ${f.length} ${f.length===1?"item":"items"}`,children:f.length>0?r.jsx("ol",{className:"op-inbox-queue","aria-label":`${Rc[u]} items`,children:f.map(h=>r.jsx("li",{children:r.jsx(vI,{item:h,mutationEnabled:t,pendingItemId:s,surfaceReasonCodes:e.surface.reasonCodes,headingLevel:2,onPreview:l})},h.itemId))}):r.jsxs("section",{className:"op-inbox-empty",role:"status",children:[r.jsx("p",{className:"op-eyebrow",children:"Nothing to review"}),r.jsxs("h2",{children:["No ",Rc[u].toLocaleLowerCase("en-US")," items"]}),r.jsx("p",{children:"This category is clear right now."})]})},u)})]})}function O$(e){return KA({...e,routeKinds:["operate.inbox","operate.inbox-item"],routeErrorCode:"OPERATE_INBOX_ROUTE_REQUIRED"})}const _$=2147e6;function qb(e){return e instanceof DOMException&&e.name==="AbortError"}function Wd(e){return e instanceof Error&&e.name==="OPERATION_UNCERTAIN"}function N$(){typeof window>"u"||window.setTimeout(()=>window.location.reload(),0)}function Pg(e,t){var a;return e.itemId===t.itemId&&((a=e.actionLocator)==null?void 0:a.subjectId)===t.locator.subjectId&&e.actionLocator.actionDigest===t.locator.actionDigest}function ao(e,t){return t!==null&&e.contextKey===t.actionContextKey&&Ye(e.binding,t.binding)&&t.items.some(a=>Pg(a,e))}function wI(e){return Date.parse(e.custody.preview.expiresAt)}function Kb(e){const t=wI(e);return!Number.isFinite(t)||t<=Date.now()}function R$(e,t){const a=t===null?null:document.getElementById(t);if(a instanceof HTMLButtonElement&&e.contains(a)&&a.isConnected&&!a.disabled)return a;const s=e.querySelector('.op-inbox-tabs__panel[data-state="active"]')??e.querySelector(".op-inbox__detail"),c=s?[...s.querySelectorAll("[data-inbox-item-trigger-anchor]")]:[];for(const h of c){const A=h.querySelector("button.op-governed-button");if(A!=null&&A.isConnected&&!A.disabled)return A}const l=c.find(h=>h.isConnected);if(l)return l;const u=e.querySelector('.op-inbox-tabs__trigger[aria-selected="true"]');if(u!=null&&u.isConnected)return u;const f=e.querySelector("[data-inbox-focus-heading]");return f!=null&&f.isConnected?f:e.isConnected?e:null}function D$({currentBinding:e,current:t,actions:a,onRefetch:s}){var Ze,Ie;const c=B.useMemo(()=>Vb(t,e),[t,e]),l=(c==null?void 0:c.selectionScopeKey)??null,u=((Ze=c==null?void 0:c.detailItem)==null?void 0:Ze.kind)??"decision",[f,h]=B.useState(()=>Object.freeze({scope:l,category:u})),A=f.scope===l?f.category:u,[y,m]=B.useState(null),[E,b]=B.useState(null),[w,x]=B.useState(!1),[j,I]=B.useState(!1),[C,O]=B.useState(null),[S,_]=B.useState(null),[k,N]=B.useState(!1),z=B.useRef(a??null),M=B.useRef(null),L=B.useRef(0),Z=B.useRef(!1),F=B.useRef(!1),oe=B.useRef(null),re=B.useRef(null),pe=B.useRef(null),Y=B.useRef(null),V=B.useRef(null),te=B.useRef(!0),le=B.useCallback(ce=>{const De=Oe=>{var Xt;const xt=V.current;if(!te.current||!(xt!=null&&xt.isConnected)||typeof document>"u")return;const mt=ce===null?null:document.getElementById(ce);if(mt instanceof HTMLButtonElement&&xt.contains(mt)&&mt.isConnected&&mt.disabled&&Oe>0&&typeof window<"u"){window.setTimeout(()=>De(Oe-1),16);return}(Xt=R$(xt,ce))==null||Xt.focus({preventScroll:!0})};queueMicrotask(()=>{typeof window>"u"?De(4):window.setTimeout(()=>De(4),0)})},[]),fe=B.useCallback(async()=>{if(s){const ce=await s();return ce&&typeof ce=="object"?ce:null}return N$(),null},[s]),T=B.useCallback(async(ce=M.current)=>{if(!(!ce||k)){N(!0);try{const De=await fe(),Oe=De!=null&&De.binding?Vb(De,De.binding):null;if(!Oe||!z.current)throw new Error("Exact reconciliation failed.");z.current.reconcile(Oe.binding),M.current=null,_(null),O({contextKey:Oe.actionContextKey,tone:"verified",text:"Exact current Inbox truth was reconciled. A new governed preview is required."})}catch{O({contextKey:(c==null?void 0:c.actionContextKey)??"",tone:"attention",text:"OPERATION_UNCERTAIN · Exact current Inbox truth did not reconcile; do not retry."})}finally{te.current&&N(!1)}}},[c==null?void 0:c.actionContextKey,k,fe]),X=B.useCallback(()=>{const ce=pe.current;ce!==null&&(clearTimeout(ce),pe.current=null)},[]),se=B.useCallback(ce=>{var mt;X();const De=oe.current;oe.current=null,L.current+=1;const Oe=re.current,xt=Oe!==null||Z.current||F.current;return Oe==null||Oe.custody.cancel(),xt&&((mt=z.current)==null||mt.cancel()),re.current=null,Z.current=!1,F.current=!1,m(null),b(null),I(!1),x(!1),ce&&le(De),De},[X,le]),de=B.useCallback(ce=>{!te.current||re.current!==ce||!ao(ce,Y.current)||(se(!0),O({contextKey:ce.contextKey,tone:"attention",text:"The verified preview expired before confirmation. Current Inbox truth is being refreshed."}),fe())},[se,fe]),ye=B.useCallback(ce=>{X();const De=()=>{if(!te.current||re.current!==ce)return;const Oe=wI(ce)-Date.now();if(!Number.isFinite(Oe)||Oe<=0){pe.current=null,de(ce);return}pe.current=setTimeout(De,Math.min(Oe,_$))};De()},[X,de]);B.useEffect(()=>(te.current=!0,a&&(z.current=a),!z.current&&typeof window<"u"&&(z.current=O$({origin:window.location.origin})),()=>{var De;te.current=!1,L.current+=1,X();const ce=z.current;(De=re.current)==null||De.custody.cancel(),ce==null||ce.cancel(),re.current=null,Z.current=!1,F.current=!1,queueMicrotask(()=>{(!te.current||z.current!==ce)&&(ce==null||ce.dispose()),!te.current&&z.current===ce&&(z.current=null)})}),[a,X]),B.useLayoutEffect(()=>{f.scope!==l&&h(Object.freeze({scope:l,category:u}))},[f.scope,u,l]),B.useLayoutEffect(()=>{var _t;const ce=Y.current;Y.current=c;const De=(c==null?void 0:c.actionContextKey)??null;O(We=>We!==null&&We.contextKey!==De?null:We);const Oe=re.current,xt=(ce==null?void 0:ce.actionContextKey)!==De;if(!(Oe!==null&&!ao(Oe,c))&&!(xt&&(Z.current||F.current)))return;const Xt=Oe!==null&&c!==null&&Oe.selectionScopeKey===c.selectionScopeKey&&!c.items.some(We=>Pg(We,Oe)),Fa=(Oe==null?void 0:Oe.selectionScopeKey)??null,Kn=se(!1);le(Kn),Xt&&((_t=Y.current)==null?void 0:_t.selectionScopeKey)===Fa&&fe()},[se,c,fe,le]),B.useEffect(()=>{const ce=a??z.current;if(!(!ce||!c))try{ce.bind(c.binding)}catch{O({contextKey:c.actionContextKey,tone:"refusal",text:"The governed Inbox adapter refused this exact route binding."})}},[a,c]);const Ee=B.useCallback(ce=>{h(Object.freeze({scope:l,category:ce}))},[l]),R=B.useCallback(async(ce,De)=>{const Oe=ce.actionLocator,xt=z.current;if(!c||!Oe||!xt||Z.current)return;const mt=c.binding,Xt=c.actionContextKey,Fa=c.selectionScopeKey;Z.current=!0;const Kn=++L.current;oe.current=De,m(ce.itemId),O(null);try{xt.bind(mt);const _t=await xt.preview({subjectId:Oe.subjectId,actionDigest:Oe.actionDigest}),We=Y.current,Go=We!==null&&We.actionContextKey===Xt&&Ye(mt,We.binding)&&We.items.some(ps=>Pg(ps,{itemId:ce.itemId,locator:Oe}));if(!te.current||Kn!==L.current||!Go){_t.cancel();return}if(_t.preview.authority!=="allowed"){_t.cancel(),xt.cancel(),O({contextKey:Xt,tone:"refusal",text:_t.preview.reasonCodes.length>0?_t.preview.reasonCodes.join(" · "):`Preview authority: ${_t.preview.authority}.`});const ps=oe.current;oe.current=null,le(ps),await fe();return}const vr=Object.freeze({itemId:ce.itemId,locator:Object.freeze({subjectId:Oe.subjectId,actionDigest:Oe.actionDigest}),binding:mt,contextKey:Xt,selectionScopeKey:Fa,custody:_t});if(Kb(vr)){_t.cancel(),se(!0),O({contextKey:Xt,tone:"attention",text:"The verified preview expired before confirmation. Current Inbox truth is being refreshed."}),await fe();return}re.current=vr,b(vr),x(!0),ye(vr)}catch(_t){const We=Y.current;if(!qb(_t)&&te.current&&Kn===L.current&&(We==null?void 0:We.actionContextKey)===Xt&&Ye(mt,We.binding)){xt.cancel(),Wd(_t)&&(M.current=mt,_(mt)),O({contextKey:Xt,tone:Wd(_t)?"attention":"refusal",text:Wd(_t)?"The governed preview outcome is uncertain. Exact current Inbox truth must reconcile before retry.":"The governed preview was refused. Current Inbox truth is being refreshed."});const Go=oe.current;oe.current=null,le(Go),Wd(_t)?await T(mt):await fe()}}finally{Kn===L.current&&(Z.current=!1,te.current&&m(null))}},[se,c,T,fe,le,ye]),J=B.useCallback(async()=>{const ce=re.current;if(!ce||F.current)return;if(!ao(ce,Y.current)){se(!0);return}if(Kb(ce)){de(ce);return}F.current=!0;const De=L.current;I(!0);try{const Oe=await ce.custody.confirm();if(!te.current||De!==L.current||!ao(ce,Y.current))return;Oe.ok?O({contextKey:ce.contextKey,tone:"verified",text:"The transition was accepted. The Inbox has been refreshed."}):(M.current=ce.binding,_(ce.binding),O({contextKey:ce.contextKey,tone:"attention",text:Oe.reasonCode})),se(!0),Oe.ok?await fe():await T(ce.binding)}catch(Oe){!qb(Oe)&&te.current&&De===L.current&&ao(ce,Y.current)&&(O({contextKey:ce.contextKey,tone:"refusal",text:"The governed confirmation was refused. Current Inbox truth is being refreshed."}),se(!0),await fe())}finally{De===L.current&&(F.current=!1,te.current&&I(!1))}},[se,de,T,fe]);if(!c)return r.jsx("div",{ref:V,className:"op-workspace op-inbox pc-operate","data-inbox-focus-workspace":"","data-route-kind":"operate.inbox",tabIndex:-1,children:r.jsx(be,{state:"incompatible",eyebrow:"Inbox projection",title:"Inbox cannot be trusted",description:"The owner-issued Inbox did not pass exact binding and integrity verification."})});if(c.detailRequested&&!c.detailItem)return r.jsxs("div",{ref:V,className:"op-workspace op-inbox pc-operate","data-inbox-focus-workspace":"","data-route-kind":"operate.inbox-item",tabIndex:-1,children:[r.jsx("header",{className:"op-inbox__header",children:r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Operate · Inbox"}),r.jsx("h1",{"data-inbox-focus-heading":"",tabIndex:-1,children:"Inbox item not found"}),r.jsx("p",{children:"This item is not available in the current Inbox."})]})}),r.jsx(be,{state:"unavailable",eyebrow:"Not found",title:"No matching Inbox item",description:"Return to the Inbox to review the work that is currently available.",actions:r.jsx("a",{className:"op-inline-action",href:"#/operate/inbox",children:"Return to Inbox"})})]});const ne=(C==null?void 0:C.contextKey)===c.actionContextKey?C:null,Ae=S!==null,we=E!==null&&ao(E,c)?E:null,xe=(we==null?void 0:we.custody.preview)??null;return r.jsxs("div",{ref:V,className:"op-workspace op-inbox","data-inbox-focus-workspace":"","data-route-kind":c.detailRequested?"operate.inbox-item":"operate.inbox","data-inbox-presentation":c.presentation,tabIndex:-1,children:[r.jsxs("header",{className:"op-inbox__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Operate · Inbox"}),r.jsx("h1",{"data-inbox-focus-heading":"",tabIndex:-1,children:((Ie=c.detailItem)==null?void 0:Ie.title)??"Decision and approval Inbox"}),r.jsx("p",{children:"Review decisions, approvals, and verification work."}),r.jsx(fa,{state:c.presentation})]}),r.jsx("dl",{className:"op-inbox__custody",children:r.jsxs("div",{children:[r.jsx("dt",{children:"Items"}),r.jsx("dd",{children:c.items.length})]})})]}),r.jsxs("details",{className:"op-inbox__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-inbox__custody",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"View state"}),r.jsx("dd",{children:c.presentation})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event record"}),r.jsx("dd",{children:r.jsxs("code",{children:[c.surface.eventHead.sequence," · ",c.surface.eventHead.hash??"genesis"]})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"View key"}),r.jsx("dd",{children:r.jsx("code",{children:c.surface.viewHash})})]})]})]}),c.presentation!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["Current access-safe Inbox truth remains visible. Mutation is unavailable on this"," ",c.presentation," projection."]}):null,ne?r.jsx("p",{className:"pc-operate__notice","data-tone":ne.tone,role:"status","aria-live":"polite",children:ne.text}):null,Ae?r.jsx(be,{state:"incompatible",eyebrow:"Uncertain operation",title:"Inbox stays locked until exact reconciliation",description:"A governed POST may have taken effect. OpenPlanr will not offer a blind retry.",actions:r.jsx(Mt,{disabled:!s||k,disabledReason:"A parser-verified current Inbox projection is required.",onInvoke:()=>void T(),children:k?"Reconciling current Inbox…":"Reconcile current Inbox"})}):null,c.detailItem?r.jsxs("section",{className:"op-inbox__detail","aria-labelledby":"op-inbox-detail-title",children:[r.jsxs("div",{className:"op-inbox__section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Selected item"}),r.jsx("h2",{id:"op-inbox-detail-title",children:"Review item"})]}),r.jsx("p",{children:"This item is available in the current Inbox."})]}),r.jsx(vI,{item:c.detailItem,mutationEnabled:c.mutationEnabled&&!Ae&&!k,pendingItemId:y,surfaceReasonCodes:c.surface.reasonCodes,showDeepLink:!1,onPreview:R})]}):r.jsx(S$,{model:c,mutationEnabled:c.mutationEnabled&&!Ae&&!k,selected:A,pendingItemId:y,onSelectedChange:Ee,onPreview:R}),r.jsx(rt.Root,{open:w&&xe!==null,onOpenChange:ce=>{!ce&&!F.current&&se(!0)},children:r.jsxs(rt.Portal,{children:[r.jsx(rt.Overlay,{className:"op-inbox-dialog__overlay"}),r.jsx(rt.Content,{className:"op-inbox-dialog__content",onCloseAutoFocus:ce=>{ce.preventDefault()},children:xe?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"op-eyebrow",children:"Verified governed preview"}),r.jsx(rt.Title,{className:"op-inbox-dialog__title",children:"Confirm the exact transition"}),r.jsx(rt.Description,{className:"op-inbox-dialog__description",children:xe.consequence}),r.jsxs("dl",{className:"op-inbox-dialog__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Subject kind and ID"}),r.jsxs("dd",{children:[xe.subject.kind," ",r.jsx("code",{children:xe.subject.id})]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Revision"}),r.jsx("dd",{children:xe.subject.revision??"Not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Subject hash"}),r.jsx("dd",{children:r.jsx("code",{children:xe.subject.hash??"No subject hash returned"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event head sequence"}),r.jsx("dd",{children:r.jsx("code",{children:xe.eventHead.sequence})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event head hash"}),r.jsx("dd",{children:r.jsx("code",{children:xe.eventHead.hash??"No event hash returned"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Expires"}),r.jsx("dd",{children:r.jsx("time",{dateTime:xe.expiresAt,children:xe.expiresAt})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Effect"}),r.jsx("dd",{children:xe.allowedAction.effect})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Reversible"}),r.jsx("dd",{children:xe.transition.reversible?"Yes":"No"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Next state"}),r.jsx("dd",{children:xe.transition.nextState})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Action digest"}),r.jsx("dd",{children:r.jsx("code",{children:xe.actionDigest})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Preview digest"}),r.jsx("dd",{children:r.jsx("code",{children:xe.previewHash})})]})]}),r.jsxs("section",{className:"op-inbox-dialog__targets","aria-labelledby":"op-preview-targets",children:[r.jsx("h2",{id:"op-preview-targets",children:"Exact targets and dispositions"}),r.jsx("ol",{children:xe.transition.targets.map(ce=>r.jsxs("li",{children:[r.jsx("strong",{children:ce.kind}),r.jsx("code",{children:ce.id}),r.jsxs("span",{children:["Revision ",ce.revision??"not returned"]}),r.jsx("code",{children:ce.hash??"No target hash returned"}),r.jsx("span",{children:ce.disposition??"No disposition returned"})]},`${ce.kind}:${ce.id}`))})]}),xe.transition.threshold?r.jsxs("section",{className:"op-inbox-dialog__threshold","aria-labelledby":"op-preview-threshold",children:[r.jsx("h2",{id:"op-preview-threshold",children:"Approval threshold"}),r.jsxs("p",{children:[xe.transition.threshold.recorded," recorded ·"," ",xe.transition.threshold.required," required ·"," ",xe.transition.threshold.remaining," remaining"]})]}):null,r.jsxs("div",{className:"op-inbox-dialog__actions",children:[r.jsx(rt.Cancel,{asChild:!0,children:r.jsx("button",{type:"button",className:"op-inbox-dialog__cancel",disabled:j,children:"Cancel"})}),r.jsx("button",{type:"button",className:"op-governed-button op-inbox-dialog__confirm",disabled:j,"aria-busy":j||void 0,onClick:J,children:j?"Waiting for durable acceptance":"Confirm exact transition"})]})]}):null})]})})]})}const T$=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function xI(e){try{const t=Ve(e);return t.productArea==="operate"&&t.route==="#/operate/recovery"&&t.subjectId===null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function im(e){const t=xI(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Mg(a),c=s.payload;if(t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash});return Mg(s,l),!0}catch{return!1}}}function k$(e,t){const a=xI(t);if(a===null||!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,a)||!im(a)(e.data))return null;const s=e.data,c=s.payload,l=T$[e.kind];return l===void 0||c.status!==l||c.mutationEnabled!==!1||e.mutationEnabled?null:Object.freeze({kind:"recovery",presentation:l,binding:e.binding,display:s,payload:c,recoveryState:c.data.recoveryState,inspection:c.data.inspection,history:c.data.history,allowedActions:c.data.allowedActions,mutationEnabled:!1})}const M$=Object.freeze({blocked:Object.freeze({title:"Recovery is blocked",summary:"A prerequisite needs attention before work can continue.",known:"The blocking state and its history are still available.",unknown:"The current view cannot safely say more about the target or effect.",forbidden:"Do not bypass this block or try to recreate the missing approval."}),uncertain:Object.freeze({title:"Reconciliation is required",summary:"An action may have happened. OpenPlanr will not run it again until it is reconciled.",known:"The original intent and a single attempted dispatch are recorded.",unknown:"There is not enough proof yet to say what happened.",forbidden:"Do not retry or run a different version of the action."}),custody:Object.freeze({title:"Result custody needs restoration",summary:"The result is recorded, but it cannot be read safely right now.",known:"The original intent and history remain available.",unknown:"The result details cannot be shown until access is restored.",forbidden:"Do not copy private receipts or create a replacement result."}),divergent:Object.freeze({title:"Target state diverged",summary:"The target changed after this work was reviewed.",known:"OpenPlanr can see that the reviewed target and current target no longer match.",unknown:"It cannot safely choose a replacement change.",forbidden:"Do not confirm an expired review or silently update the target."}),corrupt:Object.freeze({title:"State integrity could not be established",summary:"Keep the project isolated and inspect the Event tail or a known-good backup.",known:"Integrity validation refused the current state before mutation.",unknown:"No unvalidated record is presented as current truth.",forbidden:"Do not edit checkpoints, Event history, or durable state by hand."}),incompatible:Object.freeze({title:"State version is incompatible",summary:"Use a supported backup, upgrade, or refusal path without mutation.",known:"The installed runtime refused an unsupported contract version.",unknown:"No compatibility translation or mutation is attempted.",forbidden:"Do not downgrade, rewrite, or guess a compatible contract."}),restored:Object.freeze({title:"Recovery is restored",summary:"The recovered work is readable again. Review it before taking a new step.",known:"Recovery history and the restored state remain visible.",unknown:"Recovery alone does not prove the outcome or authorize another action.",forbidden:"Do not reuse an old approval or review."})});function G$(e){return e.filter(t=>{const a=t.tool??"";return t.effect==="read-only"||a.includes("recovery")||a.includes("reconcile")||a.endsWith(".rollback")})}function Y$(e){return e==="restored"?"ready-to-resume":e==="corrupt"||e==="incompatible"?"incompatible":"unavailable"}const H$=[{key:"sequence",label:"Seq",mono:!0,render:e=>e.sequence},{key:"change",label:"Change",render:e=>{var t;return((t=e.change)==null?void 0:t.summary)??e.type}},{key:"timestamp",label:"When",mono:!0,render:e=>r.jsx("time",{dateTime:e.timestamp,children:e.timestamp})},{key:"result",label:"Result",align:"right",render:e=>{var t;return(t=e.result)!=null&&t.status?r.jsx(fa,{state:e.result.status}):"—"}}];function z$({currentBinding:e,current:t}){const a=k$(t,e);if(!a)return r.jsx("div",{className:"op-workspace op-recovery pc-operate","data-route-kind":"operate.recovery",children:r.jsx(be,{state:"incompatible",eyebrow:"Recovery projection",title:"Recovery cannot be trusted",description:"The owner-issued recovery display did not pass exact binding and integrity verification."})});const s=M$[a.recoveryState],c=G$(a.allowedActions),l=Y$(a.recoveryState),u=`${a.payload.eventHead.sequence} · ${a.payload.eventHead.hash??"genesis"}`,f=a.history.slice(-6).map((h,A)=>({...h,id:`${h.eventId}:${A}`}));return r.jsxs("section",{className:"op-workspace op-recovery pc-operate","data-route-kind":"operate.recovery","data-recovery-state":a.recoveryState,"data-recovery-presentation":a.presentation,"aria-label":"Operate recovery",children:[r.jsx(st,{headingLevel:1,eyebrow:"planr-operate · recovery",title:"Recovery",description:"Understand what is known, what is not, and the safe next step.",actions:r.jsx(fa,{state:a.recoveryState})}),r.jsx(cs,{items:[{term:"Recovery state",description:a.recoveryState,mono:!0},{term:"Event record",description:u,mono:!0},{term:"View key",description:a.payload.viewHash,mono:!0}]}),r.jsx(be,{state:l,eyebrow:"Recovery",title:s.title,description:s.summary}),r.jsxs("div",{className:"pc-operate__split",children:[r.jsxs("section",{className:"pc-operate__panel","aria-labelledby":"op-recovery-proven-title",children:[r.jsx("h2",{id:"op-recovery-proven-title",children:"What is proven"}),r.jsx("p",{children:s.known})]}),r.jsxs("section",{className:"pc-operate__panel","aria-labelledby":"op-recovery-unknown-title",children:[r.jsx("h2",{id:"op-recovery-unknown-title",children:"What remains unknown"}),r.jsx("p",{children:s.unknown})]})]}),r.jsxs("section",{className:"pc-operate__section","aria-label":"Available recovery steps",children:[r.jsx(st,{headingLevel:2,title:"Available recovery steps",description:"OpenPlanr shows only steps that are safe for the current state."}),r.jsx("div",{className:"pc-operate__controls",children:c.length>0?c.map(h=>r.jsx(Mt,{variant:h.tool.endsWith(".rollback")?"danger":"secondary",disabled:!0,disabledReason:"The dashboard has not bound a live recovery command gateway for this actor.",children:h.label},h.tool)):r.jsx(Mt,{disabled:!0,disabledReason:"OpenPlanr returned no legal recovery action for this actor and current state.",children:"No legal recovery action"})})]}),r.jsx(be,{state:"incompatible",eyebrow:"Prohibited action",title:"Prohibited action",description:s.forbidden}),r.jsxs("section",{className:"pc-operate__section","aria-label":"Recovery history",children:[r.jsx(st,{headingLevel:2,title:"Recovery history",count:a.history.length,description:"Original intent and every recovery result remain immutable."}),f.length===0?r.jsx("p",{className:"pc-operate__notice",children:"No access-safe recovery history is projected."}):r.jsx(ji,{columns:H$,rows:f,caption:"Immutable recovery history"})]}),r.jsxs("section",{className:"pc-operate__section","aria-label":"What support can collect",children:[r.jsx(st,{headingLevel:2,title:"What support can collect",description:"Support information is prepared safely and never uploaded automatically."}),r.jsx(cs,{items:[{term:"May include",description:"Versions, safe reason codes, hashes, Event range, and recovery steps"},{term:"Always redacted",description:"Evidence bodies, private identities, credentials, receipts, and machine paths"},{term:"Upload behavior",description:"Project state is never uploaded automatically"}]})]})]})}const $$=Object.freeze({InboxPage:D$,RecoveryPage:z$,createInboxValidator:am,createRecoveryValidator:im});function Jh(e){return e.replaceAll("-"," ").replaceAll("_"," ")}function U$(e){return e.length===0||e.length<=2048&&/^\S(?:[\s\S]*\S)?$/u.test(e)}function L$({choice:e,custody:t,confirming:a,onCancel:s,onConfirm:c}){var A;const[l,u]=B.useState(""),f=U$(l),h=(t==null?void 0:t.preview)??null;return r.jsx(rt.Root,{open:h!==null&&e!==null,onOpenChange:y=>{!y&&!a&&s()},children:r.jsxs(rt.Portal,{children:[r.jsx(rt.Overlay,{className:"op-inbox-dialog__overlay"}),r.jsx(rt.Content,{className:"op-inbox-dialog__content op-review-dialog",children:h&&e?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"op-eyebrow",children:"Exact owner choice"}),r.jsxs(rt.Title,{className:"op-inbox-dialog__title",children:["Record “",e.choice.label,"”?"]}),r.jsx(rt.Description,{className:"op-inbox-dialog__description",children:e.choice.consequence}),r.jsxs("dl",{className:"op-inbox-dialog__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Authority"}),r.jsx("dd",{children:"Review only"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"External effects"}),r.jsx("dd",{children:"Not authorized"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Runtime effect"}),r.jsx("dd",{children:r.jsx("code",{children:((A=e.action)==null?void 0:A.action.effect)??"not-issued"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Reversibility"}),r.jsx("dd",{children:Jh(e.choice.reversibility)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event head"}),r.jsx("dd",{children:h.eventHead.sequence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Choice proof"}),r.jsx("dd",{children:r.jsx("code",{children:e.choice.choiceHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Preview proof"}),r.jsx("dd",{children:r.jsx("code",{children:h.previewHash})})]})]}),r.jsxs("section",{className:"op-inbox-dialog__targets","aria-labelledby":"op-review-dispositions-title",children:[r.jsx("h2",{id:"op-review-dispositions-title",children:"Exact work dispositions"}),e.choice.requiredDispositions.length?r.jsx("ol",{children:e.choice.requiredDispositions.map(y=>r.jsxs("li",{children:[r.jsx("strong",{children:Jh(y.entityType)}),r.jsx("code",{children:y.entityId}),r.jsx("span",{children:Jh(y.disposition)})]},`${y.entityType}:${y.entityId}`))}):r.jsx("p",{children:"No persistent work disposition is attached to this choice."})]}),r.jsxs("label",{className:"op-review-dialog__note",children:[r.jsxs("span",{children:["Owner note ",r.jsx("small",{children:"(optional)"})]}),r.jsx("textarea",{value:l,maxLength:2048,rows:3,disabled:a,"aria-invalid":!f||void 0,"aria-describedby":"op-review-note-help",onChange:y=>u(y.currentTarget.value)})]}),r.jsx("p",{id:"op-review-note-help",role:f?void 0:"alert",children:f?`${l.length} of 2,048 characters. The exact text is bound into the receipt.`:"Remove leading or trailing whitespace before confirming."}),r.jsxs("div",{className:"op-inbox-dialog__actions",children:[r.jsx(rt.Cancel,{asChild:!0,children:r.jsx("button",{type:"button",className:"op-inbox-dialog__cancel",disabled:a,children:"Keep reviewing"})}),r.jsx("button",{type:"button",className:"op-governed-button op-inbox-dialog__confirm",disabled:a||!f,"aria-busy":a||void 0,onClick:()=>void c(l===""?null:l),children:a?"Recording immutable receipt":`Record ${e.choice.label}`})]})]}):null})]})})}const Zh=40;function Ln(e){const t=e.replaceAll("-"," ").replaceAll("_"," ");return`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function Fg({ids:e,model:t,label:a}){if(e.length===0)return r.jsxs("span",{children:["No ",a.toLocaleLowerCase("en-US")," linked."]});const s=new Map(t.payload.data.evidence.map(c=>[c.evidenceRefId,c]));return r.jsx("ul",{className:"op-review__evidence-links","aria-label":a,children:e.map(c=>{const l=s.get(c),u=l?Oo(l.deepLink):null;return r.jsxs("li",{children:[u?r.jsx("a",{href:u,children:c}):r.jsx("code",{children:c}),r.jsx("span",{children:l?`${Ln(l.claimStatus)} · ${Ln(l.freshness)}`:"Not visible"})]},c)})})}function P$({model:e}){const{findings:t,dissent:a,uncertainty:s,gaps:c}=e.payload.data;return r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-challenge-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Challenge record"}),r.jsx("h2",{id:"op-review-challenge-title",children:"What could change this decision"})]}),r.jsxs("div",{className:"op-review__challenge-grid",children:[r.jsxs("section",{"aria-labelledby":"op-review-findings-title",children:[r.jsxs("h3",{id:"op-review-findings-title",children:["Findings (",t.length,")"]}),t.length?r.jsx("ol",{children:t.map(l=>r.jsxs("li",{children:[r.jsx("strong",{children:l.title}),r.jsx("p",{children:l.statement}),r.jsx("span",{children:Ln(l.state)}),l.origin==="operating-intelligence"?r.jsx(Fg,{ids:[...l.supportingEvidenceRefIds,...l.contradictingEvidenceRefIds],model:e,label:`Evidence for ${l.title}`}):null]},l.findingId))}):r.jsx("p",{children:"No findings were returned."})]}),r.jsxs("section",{"aria-labelledby":"op-review-dissent-title",children:[r.jsxs("h3",{id:"op-review-dissent-title",children:["Dissent (",a.length,")"]}),a.length?r.jsx("ol",{children:a.map(l=>r.jsxs("li",{children:[r.jsx("p",{children:l.statement}),r.jsx("strong",{children:"Resolution condition"}),r.jsx("p",{children:l.resolutionCondition})]},`${l.sourceArtifactId}:${l.localDissentId}`))}):r.jsx("p",{children:"No dissent was returned."})]}),r.jsxs("section",{"aria-labelledby":"op-review-uncertainty-title",children:[r.jsxs("h3",{id:"op-review-uncertainty-title",children:["Uncertainty (",s.length,")"]}),s.length?r.jsx("ol",{children:s.map(l=>r.jsxs("li",{children:[r.jsx("p",{children:l.statement}),r.jsx("span",{children:Ln(l.sourceKind)})]},l.uncertaintyId))}):r.jsx("p",{children:"No explicit uncertainty was returned."})]}),r.jsxs("section",{"aria-labelledby":"op-review-gaps-title",children:[r.jsxs("h3",{id:"op-review-gaps-title",children:["Missing proof (",c.length,")"]}),c.length?r.jsx("ol",{children:c.map(l=>r.jsxs("li",{children:[r.jsx("p",{children:l.reason}),r.jsx("strong",{children:"Next step"}),r.jsx("p",{children:l.recoveryDisposition})]},l.absenceId))}):r.jsx("p",{children:"No typed gaps were returned."})]})]})]})}function F$({model:e}){const{claims:t}=e.payload.data;return r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-claims-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Evidence desk"}),r.jsx("h2",{id:"op-review-claims-title",children:"Claims and sentence-level proof"})]}),t.length?r.jsx("ol",{className:"op-review__claims",children:t.map(a=>r.jsxs("li",{children:[r.jsxs("div",{children:[r.jsx("strong",{children:a.statement??`Restricted claim ${a.claimId}`}),r.jsxs("span",{children:[Ln(a.status)," · ",Ln(a.epistemicStatus)]})]}),r.jsx(Fg,{ids:a.supportEvidenceRefIds,model:e,label:`Supporting evidence for ${a.claimId}`}),r.jsx(Fg,{ids:a.contradictEvidenceRefIds,model:e,label:`Contradicting evidence for ${a.claimId}`})]},a.claimId))}):r.jsx("p",{children:"No claim statements were returned for this Review."})]})}function V$({model:e}){const[t,a]=B.useState(Zh),s=e.payload.data.traceMatrix,c=B.useMemo(()=>(s==null?void 0:s.edges.slice(0,t))??[],[s,t]);return s?r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-trace-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Reciprocal trace"}),r.jsx("h2",{id:"op-review-trace-title",children:"Requirement to outcome custody"})]}),r.jsxs("dl",{className:"op-review__proof",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Nodes"}),r.jsx("dd",{children:s.nodes.length})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Relationships"}),r.jsx("dd",{children:s.edges.length})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Restricted"}),r.jsx("dd",{children:s.proof.restrictedNodes})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Typed absences"}),r.jsx("dd",{children:s.proof.typedAbsences})]})]}),r.jsx("section",{className:"op-review__table-scroll","aria-label":"Scrollable reciprocal decision trace",tabIndex:0,children:r.jsxs("table",{children:[r.jsxs("caption",{children:["Exact trace relationships, shown ",c.length," of ",s.edges.length]}),r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{scope:"col",children:"From"}),r.jsx("th",{scope:"col",children:"Relationship"}),r.jsx("th",{scope:"col",children:"To"})]})}),r.jsx("tbody",{children:c.map(l=>r.jsxs("tr",{children:[r.jsxs("td",{children:[r.jsx("span",{children:Ln(l.from.kind)}),r.jsx("code",{children:l.from.id})]}),r.jsx("td",{children:Ln(l.relation)}),r.jsxs("td",{children:[r.jsx("span",{children:Ln(l.to.kind)}),r.jsx("code",{children:l.to.id})]})]},l.edgeId))})]})}),t<s.edges.length?r.jsxs("button",{type:"button",className:"op-inline-action",onClick:()=>a(l=>l+Zh),children:["Show the next ",Math.min(Zh,s.edges.length-t)," relationships"]}):null,s.omissions.length?r.jsxs("details",{children:[r.jsxs("summary",{children:["Trace omissions (",s.omissions.length,")"]}),r.jsx("ul",{children:s.omissions.map(l=>r.jsxs("li",{children:[Ln(l.subject)," ",r.jsx("code",{children:l.subjectId})," · ",Ln(l.kind)]},l.omissionId))})]}):null]}):r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-trace-title",children:[r.jsx("h2",{id:"op-review-trace-title",children:"Reciprocal decision trace"}),r.jsx("p",{children:"The bounded trace matrix is not available in this workspace."})]})}function q$({model:e}){const t=e.payload.data.truthSummary;return r.jsxs(r.Fragment,{children:[r.jsx(P$,{model:e}),r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-proof-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Shared proof truth"}),r.jsx("h2",{id:"op-review-proof-title",children:"What the evidence can prove"})]}),r.jsxs("dl",{className:"op-review__proof",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Proof status"}),r.jsx("dd",{children:Ln(t.proof.status)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Linked evidence"}),r.jsx("dd",{children:t.proof.linkedEvidence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Restricted evidence"}),r.jsx("dd",{children:t.proof.restrictedEvidence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Unresolved claims"}),r.jsx("dd",{children:t.proof.unresolvedClaims})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Validated seats"}),r.jsxs("dd",{children:[t.seats.validated," / ",t.seats.total]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Verified outcomes"}),r.jsx("dd",{children:t.proof.verifiedOutcomes})]})]}),t.proof.reasonCodes.length?r.jsxs("p",{role:"status",children:["Limits: ",t.proof.reasonCodes.map(Ln).join(" · ")]}):null]}),r.jsx(F$,{model:e}),r.jsx(V$,{model:e})]})}function K$({workspace:e,receipt:t}){const a=e.payload.data.terminalDisposition;if(!a)return null;const s=(t==null?void 0:t.boundSubmission)??null;return r.jsxs("section",{className:"op-review__section op-review__receipt","aria-labelledby":"op-review-receipt-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Immutable record"}),r.jsx("h2",{id:"op-review-receipt-title",tabIndex:-1,children:"Review recorded"})]}),r.jsxs("p",{children:["The owner recorded ",r.jsx("strong",{children:a.decision}),". This receipt does not execute an Action or authorize an external effect."]}),r.jsxs("dl",{className:"op-review__proof",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Applied choice"}),r.jsx("dd",{children:r.jsx("code",{children:a.appliedChoiceId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed event"}),r.jsx("dd",{children:a.eventHead.sequence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Review read event"}),r.jsx("dd",{children:a.readEventHead.sequence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed"}),r.jsx("dd",{children:r.jsx("time",{dateTime:a.committedAt,children:a.committedAt})})]})]}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical receipt proof"}),r.jsxs("dl",{className:"op-review__technical",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Receipt ID"}),r.jsx("dd",{children:r.jsx("code",{children:a.receiptId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Source receipt hash"}),r.jsx("dd",{children:r.jsx("code",{children:e.payload.sourceArtifactHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Applied choice hash"}),r.jsx("dd",{children:r.jsx("code",{children:a.appliedChoiceHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed event hash"}),r.jsx("dd",{children:r.jsx("code",{children:a.eventHead.hash??"genesis"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Bound submission hash"}),r.jsx("dd",{children:r.jsx("code",{children:(s==null?void 0:s.boundSubmissionHash)??"Not included in this display"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Owner note"}),r.jsx("dd",{children:s?s.note??"No note recorded":"Not included in this display"})]})]})]})]})}const J$=/(?:\bfile:\/\/|(?:^|[\s"'(=])\/(?:Users|home|private|tmp|var|Volumes|etc|opt|root|srv)\/|\b[A-Za-z]:\\(?:Users|Documents and Settings|Windows|ProgramData)\\)/u,Z$=/(?:-----BEGIN [A-Z ]*PRIVATE KEY-----|\b(?:api[_-]?key|access[_-]?token|refresh[_-]?token|password|passwd|authorization|client[_-]?secret)\s*[:=]\s*[^\s,;]+|\bBearer\s+[A-Za-z0-9._~+\/-]{12,})/iu;function X$(e,t){const a=new Error("Review workspace contains unsafe display text.");return a.name="PipelineError",a.code="E_OPERATE_REVIEW_WORKSPACE_UNSAFE",a.fix="",a.details={retryable:!1,context:{path:e,reason:t}},a.toJSON=()=>({ok:!1,code:a.code,problem:a.message,details:a.details}),a}function W$(e){return J$.test(e)?"private-path":Z$.test(e)?"secret":null}function jI(e){const t=(a,s="$")=>{if(typeof a=="string"){const c=W$(a);if(c!==null)throw X$(s,c);return}if(Array.isArray(a)){a.forEach((c,l)=>t(c,`${s}[${l}]`));return}a&&typeof a=="object"&&Object.entries(a).forEach(([c,l])=>t(l,`${s}.${c}`))};return t(e),e}const QI="openplanr:operate-review-display-workspace:1.0.0",eU=new Map([["operate-allowed-action.schema.json",YA],["operate-experience-view.schema.json",qM],["operate-review-display-workspace.schema.json",Mo],["operating-assignment.schema.json",rQ],["operating-evidence-resolution.schema.json",KM],["operating-review-read.schema.json",sQ],["operating-review-receipt.schema.json",HA],["operating-review.schema.json",Lu],["operating-trace-matrix.schema.json",Pu]]);function tU(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function nU(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=eU.get(s);return c?{schema:tU(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function Xh(){return[{path:"$",rule:"closedContract",detail:"does not satisfy the closed Review display workspace contract"}]}function Lr(e,t){return new Set(e.map(a=>a[t])).size===e.length}function aU(e,t){return t?e.actorId===t.actorId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.cycleId===t.cycleId&&e.reviewId===t.reviewId&&e.sourceArtifactKind===t.sourceArtifactKind&&e.sourceArtifactHash===t.sourceArtifactHash&&e.sourceViewHash===t.sourceViewHash&&hn(e.sourceEventHead,t.sourceEventHead)&&hn(e.sourceReadEventHead,t.sourceReadEventHead):!0}function iU(e){const t=["complete","current","available","waiting","blocked","failed","skipped","uncertain","revisited"];return!(e.stages.total!==e.stages.cycles*7||e.stages.byStage.length!==7||new Set(e.stages.byStage.map(({id:a})=>a)).size!==7||t.some(a=>e.stages[a]!==e.stages.byStage.reduce((s,c)=>s+c[a],0))||e.seats.terminal!==e.seats.validated+e.seats.rejected+e.seats.failed+e.seats.abandoned||e.seats.total!==e.seats.terminal+e.seats.active+e.seats.pending||e.evidence.total!==e.evidence.available+e.evidence.restricted||e.evidence.total!==e.evidence.current+e.evidence.historical+e.evidence.stale||e.evidence.linked>e.evidence.total||e.proof.linkedEvidence!==e.evidence.linked||e.proof.restrictedEvidence!==e.evidence.restricted||e.proof.resolvedClaims!==e.claims.supported+e.claims.contradicted||e.proof.unresolvedClaims!==e.claims.uncertain+e.claims.unknown+e.claims.restricted||e.claims.total!==e.proof.resolvedClaims+e.proof.unresolvedClaims||e.verification.total!==e.verification.verified+e.verification.unverified+e.verification.notRequired+e.verification.insufficientEvidence||e.proof.verifiedOutcomes!==e.verification.verified||e.proof.unverifiedOutcomes!==e.verification.unverified+e.verification.insufficientEvidence||e.omissions.total!==e.omissions.restricted+e.omissions.absent)}function rU(e,t){return e.choiceHash===mr(e.submitArguments)&&e.submitArguments.reviewId===t.reviewId&&e.submitArguments.cycleId===t.cycleId&&e.submitArguments.actor.actorId===t.actorId&&Kt(e.submitArguments.scope,{scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion})&&Kt(e.requiredDispositions,e.submitArguments.workDispositions)&&e.reversibility==="immutable-review-event"}function sU(e){const{capability:t,choices:a}=e.data;if(!t.available)return t.actions.length===0&&e.mutationEnabled===!1;if(e.sourceArtifactKind!=="operating-review-read"||e.status!=="ready"||e.mutationEnabled!==!0||t.actions.length!==a.length)return!1;const s=new Map(a.map(l=>[mr(l.submitArguments),l]));if(s.size!==a.length)return!1;const c=new Set;for(const l of t.actions){const u=mr(l.action.arguments);if(l.subjectId!==e.reviewId||l.action.tool!=="operate.review.submit"||l.action.effect!=="project-write"||!s.has(u))return!1;c.add(u)}return c.size===a.length}function oU(e){const t=e.data.terminalDisposition;return e.sourceArtifactKind==="operating-review-read"?t===null&&e.data.review.state==="pending"&&e.data.review.disposition===null&&e.data.choices.length>0&&hn(e.sourceReadEventHead,e.sourceEventHead):e.status==="terminal"&&e.reasonCodes.includes("REVIEW_TERMINAL")&&e.mutationEnabled===!1&&e.data.choices.length===0&&e.data.capability.available===!1&&e.data.capability.actions.length===0&&e.data.capability.reason.code==="REVIEW_TERMINAL"&&t!==null&&t.decision===e.data.review.state&&e.data.review.disposition===t.decision&&Kt(e.data.review.workDispositions,t.appliedWorkDispositions)&&hn(t.readEventHead,e.sourceReadEventHead)&&hn(t.eventHead,e.sourceEventHead)}function cU(e,t){const{payload:a,integrity:s}=e,{data:c}=a;if(s.domain!==QI||s.sourceArtifactKind!==a.sourceArtifactKind||s.sourceViewHash!==a.sourceViewHash||s.sourceArtifactHash!==a.sourceArtifactHash||c.review.reviewId!==a.reviewId||c.review.cycleId!==a.cycleId||c.policyBinding.ownerActorId!==c.review.ownerActorId||c.policyBinding.actorMatchesOwner!==(a.actorId===c.review.ownerActorId)||c.policyBinding.actorMatchesOwner!==!0||!hn(c.truthSummary.sourceEventHead,a.sourceEventHead)||c.truthSummary.sourceViewHash!==a.sourceViewHash||c.executiveSummary.decisionCount!==c.recommendation.items.length||c.executiveSummary.findingCount!==c.findings.length||c.executiveSummary.dissentCount!==c.dissent.length||c.executiveSummary.gapCount!==c.gaps.length||c.executiveSummary.uncertaintyCount!==c.uncertainty.length||!Lr(c.choices,"choiceId")||!Lr(c.findings,"findingId")||!Lr(c.dissent,"localDissentId")||!Lr(c.uncertainty,"uncertaintyId")||!Lr(c.gaps,"absenceId")||!Lr(c.claims,"claimId")||!Lr(c.evidence,"evidenceRefId")||c.choices.some(l=>!rU(l,a))||!sU(a)||!oU(a)||!iU(c.truthSummary)||!aU(a,t))return!1;try{jI(a)}catch{return!1}return!0}function lU(e,t){try{const a=Ua(e),s=ko(a,Mo,{base:"schemas/v2.0.0/operate-review-display-workspace.schema.json",resolveRef:nU});return s.length>0||!cU(a,t)?s.length>0?s:Xh():a.integrity.contentHash===GA(a.payload,QI)?[]:Xh()}catch{return Xh()}}function nl(e,t){if(lU(e,t).length>0){const a=new TypeError("The Review display workspace does not satisfy its closed integrity contract.");throw a.code="E_OPERATE_REVIEW_DISPLAY_INVALID",a}return e}Object.freeze(structuredClone(Mo));const dU="openplanr:operate-review-bound-submission:project-write:operating-review@2.0.0#/$defs/workDisposition:1.0.0",uU=new Map([["operate-review-bound-submission.schema.json",iQ],["operating-assignment.schema.json",rQ],["operating-review-read.schema.json",sQ],["operating-review-receipt.schema.json",HA],["operating-review.schema.json",Lu]]);function fU(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(a=>a.replaceAll("~1","/").replaceAll("~0","~")).reduce((a,s)=>a==null?void 0:a[s],e):null}function pU(e){const[t,a=""]=e.split("#"),s=t.split("/").at(-1),c=uU.get(s);return c?{schema:fU(c,a?`#${a}`:"#"),rootSchema:c,base:s}:null}function Qu(e,t){const a=new TypeError(t);throw a.code=e,a}function II(e,t,a,s,c){let l;try{l=Ua(e),ko(l,t,{base:a,resolveRef:pU}).length>0&&Qu(s,c)}catch(u){if((u==null?void 0:u.code)===s)throw u;Qu(s,c)}return l}function hU(e){return{domain:dU,expectedReadEventHead:e.expectedReadEventHead,choiceId:e.choiceId,choiceHash:e.choiceHash,submitArguments:e.submitArguments,note:e.note}}function gU(e){return mr(hU(Ua(e)))}function CI(e){const t=II(e,iQ,"schemas/v2.0.0/operate-review-bound-submission.schema.json","RESULT_CONTRACT_INVALID","The bound Review submission does not satisfy its closed integrity contract.");return(t.choiceHash!==mr(t.submitArguments)||t.boundSubmissionHash!==gU(t))&&Qu("RESULT_CONTRACT_INVALID","The bound Review submission does not satisfy its closed integrity contract."),e}function AU(e,t){return e.choiceHash===mr(e.submitArguments)&&e.submitArguments.reviewId===t.review.reviewId&&e.submitArguments.cycleId===t.cycleId&&Kt(e.submitArguments.actor,t.actor)&&Kt(e.submitArguments.scope,t.scope)}function mU(e){const t=e.dispositionChoices,a=new Set(t.map(({choiceId:u})=>u)),s=new Set(t.map(({choiceHash:u})=>u));if(a.size!==t.length||s.size!==t.length||t.some(u=>!AU(u,e))||e.review.reviewId.length===0||e.review.cycleId!==e.cycleId||e.review.ownerActorId!==e.actor.actorId||e.review.state!==e.decision||e.review.disposition!==e.decision||!Kt(e.review.workDispositions,e.appliedWorkDispositions)||e.eventHead.sequence!==e.readEventHead.sequence+1)return!1;const c=t.filter(u=>u.choiceId===e.appliedChoiceId&&u.choiceHash===e.appliedChoiceHash);if(c.length!==1)return!1;const[l]=c;if(l.submitArguments.disposition!==e.decision||!Kt(l.submitArguments.workDispositions,e.appliedWorkDispositions)||e.summary.decisionCount!==e.decisions.length||e.summary.actionCount!==e.actions.length||e.summary.findingCount!==e.findings.length||e.summary.dissentCount!==e.dissent.length||e.summary.gapCount!==e.gaps.length)return!1;if(e.boundSubmission===void 0)return!0;try{CI(e.boundSubmission)}catch{return!1}return hn(e.boundSubmission.expectedReadEventHead,e.readEventHead)&&e.boundSubmission.choiceId===l.choiceId&&e.boundSubmission.choiceHash===l.choiceHash&&Kt(e.boundSubmission.submitArguments,l.submitArguments)}function yU(e){const t=II(e,HA,"schemas/v2.0.0/operating-review-receipt.schema.json","E_OPERATE_REVIEW_RECEIPT_INVALID","The operating Review receipt does not satisfy its closed integrity contract.");return jI(t),mU(t)||Qu("E_OPERATE_REVIEW_RECEIPT_INVALID","The operating Review receipt does not satisfy its closed integrity contract."),e}const EU=/^sha256:[a-f0-9]{64}$/u,BU=new Set(["CONCURRENT_MODIFICATION","CAPABILITY_DENIED","OPERATION_UNCERTAIN"]);function da(e="OPERATE_RESPONSE_INVALID"){const t=new Error("The governed Review response was refused.");throw t.name=e,t}function qr(e){return(e===null||typeof e!="object"||Array.isArray(e))&&da(),e}function Kr(e,t){const a=Object.keys(e).sort(),s=[...t].sort();(a.length!==s.length||a.some((c,l)=>c!==s[l]))&&da()}function vU(e){const t=qr(e);Kr(t,["sequence","hash"]),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&da();const a=t.hash;return a!==null&&(typeof a!="string"||!EU.test(a))&&da(),t.sequence===0!=(a===null)&&da(),Object.freeze({sequence:t.sequence,hash:a})}function Dc(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function Jb(e){return(!e||e.note!==null&&typeof e.note!="string")&&da("OPERATE_COMMAND_INVALID"),e.note===null?null:((e.note.length===0||e.note.length>2048||!/^\S(?:[\s\S]*\S)?$/u.test(e.note))&&da("OPERATE_COMMAND_INVALID"),e.note)}function bU(e,t){Kr(e,["ok","operation","error","allowedActions"]);const a=qr(e.error);Kr(a,["code","message","retryable","context"]);const s=qr(a.context);Kr(s,[]),(e.ok!==!1||e.operation!=="operate.review.submit"||typeof a.code!="string"||!BU.has(a.code)||typeof a.message!="string"||a.retryable!==!1||!Array.isArray(e.allowedActions)||e.allowedActions.length>16)&&da();const c=e.allowedActions.map(l=>{const u=qr(l);Kr(u,["subjectId","action"]);const f=qr(u.action);return(u.subjectId!==t||f.tool!=="operate.review.submit"||f.effect!=="project-write"||typeof f.label!="string"||f.arguments===null||typeof f.arguments!="object"||Array.isArray(f.arguments))&&da(),xn(f)});return Object.freeze({ok:!1,reasonCode:a.code,allowedActionDigests:Object.freeze(c)})}function wU(e,t,a,s,c){Kr(e,["ok","operation","data","allowedActions","eventHead"]),(e.ok!==!0||e.operation!=="operate.review.submit"||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&da();const l=qr(e.data);Kr(l,["receipt","workspace"]);const u=as(l.receipt);yU(u),u.boundSubmission===void 0&&da();const f=CI(u.boundSubmission),h=as(l.workspace);nl(h);const A=vU(e.eventHead),y=h.payload.data.terminalDisposition;return(t.cycleId===null||t.subjectId===null||s.allowedAction.tool!=="operate.review.submit"||s.allowedAction.effect!=="project-write"||u.cycleId!==t.cycleId||u.review.reviewId!==t.subjectId||u.actor.actorId!==t.actorId||u.scope.scopeId!==t.scopeId||u.scope.domainId!==t.domainId||u.scope.domainVersion!==t.domainVersion||!Dc(u.readEventHead,a)||!Dc(u.eventHead,A)||u.eventHead.sequence<=a.sequence||!Dc(f.expectedReadEventHead,a)||f.note!==c||f.choiceId!==u.appliedChoiceId||f.choiceHash!==u.appliedChoiceHash||f.choiceHash!==xn(s.allowedAction.arguments)||xn(f.submitArguments)!==xn(s.allowedAction.arguments)||h.payload.actorId!==t.actorId||h.payload.cycleId!==t.cycleId||h.payload.reviewId!==t.subjectId||h.payload.sourceArtifactKind!=="operating-review-receipt"||h.payload.sourceArtifactHash!==xn(u)||h.payload.status!=="terminal"||h.payload.mutationEnabled||h.payload.data.choices.length!==0||y===null||y.receiptId!==u.receiptId||y.appliedChoiceId!==u.appliedChoiceId||y.appliedChoiceHash!==u.appliedChoiceHash||!Dc(y.readEventHead,u.readEventHead)||!Dc(y.eventHead,u.eventHead))&&da(),Object.freeze({ok:!0,receipt:u,workspace:h,eventHead:A})}function xU(e){return KA({...e,routeKinds:["operate.review"],routeErrorCode:"OPERATE_REVIEW_ROUTE_REQUIRED",includeOriginHeader:!0,confirmation:{additionalBody(t,a){return{note:Jb(a)}},parse({value:t,preview:a,identity:s,previousHead:c,input:l}){const u=qr(t);return u.ok===!1?bU(u,s.subjectId??""):wU(u,s,c,a,Jb(l))}}})}function jU(e,t){return(e==null?void 0:e.sequence)===t.sequence&&e.hash===t.hash}function QU(e){try{const t=Ve(e),a=Ha(t.route);return a.kind==="operate.review"&&t.productArea==="operate"&&t.cycleId===a.cycleId&&t.subjectId===a.subjectId&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function Xu(e){const t=QU(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{nl(a);const s=a,c=s.payload;return c.cycleId!==t.cycleId||c.reviewId!==t.subjectId||c.actorId!==t.actorId||c.scopeId!==t.scopeId||c.domainId!==t.domainId||c.domainVersion!==t.domainVersion||!jU(t.eventHead,c.sourceEventHead)||c.sourceViewHash!==t.viewHash?!1:(nl(s,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:c.cycleId,reviewId:c.reviewId,sourceArtifactKind:c.sourceArtifactKind,sourceArtifactHash:c.sourceArtifactHash,sourceEventHead:c.sourceEventHead,sourceReadEventHead:c.sourceReadEventHead,sourceViewHash:c.sourceViewHash}),!0)}catch{return!1}}}function IU(e){const t=e.payload.data.capability,a=t.available?t.actions:[],s=e.payload.data.choices.map(c=>{const l=a.filter(({subjectId:f,action:h})=>f===e.payload.reviewId&&xn(h.arguments)===c.choiceHash);if(l.length>1||t.available&&l.length!==1)return null;const u=l[0]??null;return Object.freeze({choice:c,action:u,locator:u===null?null:Object.freeze({subjectId:e.payload.reviewId,actionDigest:xn(u.action)})})});return s.some(c=>c===null)?null:Object.freeze(s)}function SI(e,t){if(!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,t)||!Xu(t)(e.data))return null;const a=e.data,s=IU(a);if(s===null)return null;const c=a.payload.status==="terminal",l=c?"terminal":e.kind==="ready"?a.payload.status:e.kind,u=!c&&a.payload.status==="ready"&&a.payload.mutationEnabled&&a.payload.data.capability.available&&s.every(({locator:f})=>f!==null)&&sA(e,t);return Object.freeze({kind:"review",binding:e.binding,workspace:a,payload:a.payload,presentation:l,choices:s,mutationEnabled:u,terminal:c})}const CU=new Set(["CAPABILITY_DENIED","CONCURRENT_MODIFICATION","OPERATE_ACTION_REFERENCE_STALE","OPERATE_BINDING_MISMATCH","OPERATE_PREVIEW_EXPIRED","OPERATE_PREVIEW_STALE","OPERATE_SESSION_EXPIRED","OPERATE_SESSION_STALE"]);function Zb(e){if(!(e instanceof Error))return"";const t=e.code;return typeof t=="string"?t:e.name}function eu(e){const t=e.replaceAll("-"," ").replaceAll("_"," ");return`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function SU(e,t){const a=e.workspace,s=Ve({...t.binding,eventHead:a.payload.sourceEventHead,viewHash:a.payload.sourceViewHash}),c=so({kind:"read-only",binding:s,data:a,reasonCodes:["DASHBOARD_READ_ONLY"],error:null,mutationEnabled:!1,policy:oo("read-only")},{currentBinding:s,validateData:Xu(s)});return SI(c,s)}function OU({currentBinding:e,current:t,onRefetch:a,actions:s}){var ye,Ee;const c=B.useMemo(()=>SI(t,e),[t,e]),l=B.useRef(s??null),u=B.useRef(0),f=B.useRef(!1),[h,A]=B.useState(null),[y,m]=B.useState(null),[E,b]=B.useState(null),[w,x]=B.useState(null),[j,I]=B.useState(null),[C,O]=B.useState(null),[S,_]=B.useState(null),k=c?JSON.stringify([c.binding.route,c.binding.eventHead,c.binding.viewHash]):"invalid",N=c?JSON.stringify([c.binding.route,c.binding.actorId,c.binding.projectId,c.binding.scopeId,c.binding.domainId,c.binding.domainVersion,c.binding.cycleId,c.binding.subjectId,c.binding.generation]):"invalid",z=B.useRef(k),M=B.useRef(N);z.current=k,M.current=N,B.useEffect(()=>{var R;!l.current&&typeof window<"u"&&(l.current=xU({origin:window.location.origin})),c&&((R=l.current)==null||R.bind(c.binding))},[c]),B.useEffect(()=>{var R;z.current=k,u.current+=1,f.current=!1,(R=l.current)==null||R.cancel(),A(null),m(J=>(J==null||J.custody.cancel(),null)),b(null),x(null),O(null)},[k]),B.useEffect(()=>{_(J=>(J==null?void 0:J.scopeKey)===N?J:null),I(J=>J===N?J:null);const R=requestAnimationFrame(()=>{var J;M.current===N&&((J=document.querySelector('[data-route-kind="operate.review"] h1'))==null||J.focus())});return()=>cancelAnimationFrame(R)},[N]),B.useEffect(()=>()=>{var R;(R=l.current)==null||R.dispose(),l.current=null},[]);const L=(h==null?void 0:h.bindingKey)===k?(c==null?void 0:c.choices.find(({choice:R})=>R.choiceId===h.choiceId))??null:null,Z=(y==null?void 0:y.bindingKey)===k?y:null,F=(S==null?void 0:S.scopeKey)===N?S.result:null,oe=B.useMemo(()=>F&&c?SU(F,c):null,[F,c]),re=F?oe:c,pe=j===N,Y=E===k,V=w===k,te=re!=null&&re.terminal?re.workspace:null,le=!!(c!=null&&c.mutationEnabled&&!pe&&!F),fe=Y||Z!==null||V,T=B.useCallback(()=>{var R;u.current+=1,y==null||y.custody.cancel(),(R=l.current)==null||R.cancel(),f.current=!1,m(null),b(null),x(null),requestAnimationFrame(()=>{var J;z.current===k&&((J=document.querySelector("#op-review-choice-preview-trigger"))==null||J.focus())})},[y,k]),X=B.useCallback(async()=>{if(!c||!(L!=null&&L.locator)||!le||Y||f.current)return;const R=l.current;if(!R)return;const J=k,ne=u.current+1;u.current=ne;const Ae=L,we=Object.freeze({...L.locator});f.current=!0,b(J),O(null);let xe=!1,Ze=!1;try{R.bind(c.binding);const Ie=await R.preview(we);if(z.current!==J||u.current!==ne){Ie.cancel();return}xe=!0,m(Object.freeze({bindingKey:J,epoch:ne,choiceId:Ae.choice.choiceId,choiceHash:Ae.choice.choiceHash,locator:we,choice:Ae,custody:Ie}))}catch(Ie){if(z.current!==J||u.current!==ne)return;const ce=Zb(Ie);if(ce==="AbortError")return;ce==="OPERATION_UNCERTAIN"&&(Ze=!0,I(N)),O({tone:ce==="OPERATION_UNCERTAIN"?"attention":"refusal",text:ce==="OPERATION_UNCERTAIN"?"The preview outcome is uncertain. This Review is locked against blind retry.":"The exact Review preview was refused. Refresh current Review truth before trying again."})}finally{z.current===J&&u.current===ne&&(b(null),!xe&&!Ze&&(f.current=!1))}},[k,c,le,Y,N,L]),se=B.useCallback(async R=>{var we,xe;if(!Z||V)return;const J=Z,ne=J.bindingKey,Ae=N;x(ne);try{const Ze=await J.custody.confirm({note:R});if(z.current!==ne||M.current!==Ae||u.current!==J.epoch)return;if(Ze.ok){_(Object.freeze({scopeKey:Ae,result:Ze})),O({tone:"verified",text:"The immutable Review receipt was recorded."}),m(null),f.current=!1,await(a==null?void 0:a().catch(()=>{})),requestAnimationFrame(()=>{var Ie;M.current===Ae&&((Ie=document.querySelector("#op-review-receipt-title"))==null||Ie.focus())});return}if(m(null),(we=l.current)==null||we.cancel(),Ze.reasonCode==="OPERATION_UNCERTAIN"){I(Ae),O({tone:"attention",text:"The durable result is uncertain. Open Recovery; do not submit this choice again."});return}f.current=!1,O({tone:Ze.reasonCode==="CONCURRENT_MODIFICATION"?"attention":"refusal",text:Ze.reasonCode==="CONCURRENT_MODIFICATION"?`Review truth changed. ${Ze.allowedActionDigests.length} current legal choices are available after refresh.`:"The owner capability no longer permits this Review choice."}),await(a==null?void 0:a().catch(()=>{}))}catch(Ze){if(z.current!==ne||M.current!==Ae||u.current!==J.epoch)return;const Ie=Zb(Ze);if(Ie==="AbortError")return;if(J.custody.cancel(),(xe=l.current)==null||xe.cancel(),m(null),Ie==="OPERATION_UNCERTAIN"||!CU.has(Ie)){I(Ae),O({tone:"attention",text:"The durable result is uncertain. Open Recovery; do not submit this choice again."});return}f.current=!1,O({tone:Ie==="CAPABILITY_DENIED"?"refusal":"attention",text:Ie==="CAPABILITY_DENIED"?"The owner capability no longer permits this Review choice.":"Review truth changed or the preview expired. Current legal choices are being refreshed."}),await(a==null?void 0:a().catch(()=>{}))}finally{z.current===ne&&x(null)}},[Z,V,a,N]);if(!re)return r.jsx("div",{className:"op-workspace op-review pc-operate","data-route-kind":"operate.review",children:r.jsx(be,{state:"incompatible",eyebrow:"Review projection",title:"Review cannot be trusted",description:"The owner-issued Review workspace did not pass exact route, actor, event, and integrity validation."})});const{data:de}=re.payload;return r.jsxs("article",{className:"op-workspace op-review pc-operate","data-route-kind":"operate.review","data-review-presentation":F?"terminal":re.presentation,children:[r.jsxs("nav",{"aria-label":"Review breadcrumb",className:"op-review__breadcrumb",children:[r.jsx("a",{href:`#/operate/cycles/${encodeURIComponent(re.payload.cycleId)}`,children:"Cycle"}),r.jsx("span",{"aria-hidden":"true",children:"/"}),r.jsx("span",{"aria-current":"page",children:"Review"})]}),r.jsxs("header",{className:"op-review__hero","data-review-useful":"",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"planr-operate · executive decision docket"}),r.jsx("h1",{tabIndex:-1,children:"Owner Review"}),r.jsx("p",{className:"op-review__lede",children:de.executiveSummary.text}),r.jsx(fa,{state:F?"terminal":re.presentation,label:eu(F?"terminal":re.presentation)})]}),r.jsxs("dl",{className:"op-review__status",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Status"}),r.jsx("dd",{children:eu(F?"terminal":re.presentation)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Choices"}),r.jsx("dd",{children:re.choices.length})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Proof"}),r.jsx("dd",{children:eu(de.truthSummary.proof.status)})]})]})]}),re.presentation!=="ready"&&!F?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["Verified Review content remains visible on this"," ",eu(re.presentation).toLocaleLowerCase("en-US")," workspace. Mutation is unavailable."]}):null,C?r.jsx("p",{className:"pc-operate__notice","data-tone":C.tone,role:"status","aria-live":"polite",children:C.text}):null,pe?r.jsx(be,{state:"incompatible",eyebrow:"Uncertain Review submission",title:"Blind retry is locked",description:"A Review event may have committed. Inspect canonical recovery state before taking another action.",actions:r.jsx("a",{className:"op-inline-action",href:"#/operate/recovery",children:"Open Recovery"})}):null,r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-recommendation-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Recommendation"}),r.jsx("h2",{id:"op-review-recommendation-title",children:"What the board recommends"})]}),de.recommendation.status==="available"?r.jsx("ol",{className:"op-review__recommendations",children:de.recommendation.items.map(R=>r.jsxs("li",{children:[r.jsx("h3",{children:R.title}),r.jsx("p",{children:R.outcome??R.rationale}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Upside"}),r.jsx("dd",{children:R.expectedUpside})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Downside"}),r.jsx("dd",{children:R.expectedDownside})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Confidence"}),r.jsxs("dd",{children:[Math.round(R.confidence*100),"%"]})]})]})]},R.decisionId))}):r.jsx("p",{children:de.recommendation.absence.message})]}),te?null:r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-choices-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Owner choices"}),r.jsx("h2",{id:"op-review-choices-title",children:"Choose the record to make"})]}),re.choices.length?r.jsxs("div",{className:"op-review__choice-layout",children:[r.jsxs("fieldset",{disabled:!le||fe,children:[r.jsx("legend",{children:"Select one exact choice. Nothing changes until confirmation."}),re.choices.map(R=>r.jsxs("label",{className:"op-review__choice",children:[r.jsx("input",{type:"radio",name:"review-choice",value:R.choice.choiceId,checked:(L==null?void 0:L.choice.choiceId)===R.choice.choiceId,onChange:()=>{f.current||A(Object.freeze({bindingKey:k,choiceId:R.choice.choiceId}))}}),r.jsxs("span",{children:[r.jsx("strong",{children:R.choice.label}),r.jsx("small",{children:R.choice.consequence})]})]},R.choice.choiceId))]}),r.jsx("aside",{className:"op-review__choice-brief","aria-live":"polite",children:L?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"op-eyebrow",children:"Selected consequence"}),r.jsx("h3",{children:L.choice.label}),r.jsx("p",{children:L.choice.consequence}),r.jsxs("p",{children:[r.jsx("strong",{children:"Authority:"})," Review only. External effects are not authorized."]}),r.jsx(Mt,{id:"op-review-choice-preview-trigger",disabled:!le||!L.locator||fe,disabledReason:((ye=de.capability.reason)==null?void 0:ye.message)??"This exact choice is unavailable.",pendingLabel:"Verifying exact preview","aria-haspopup":"dialog",onInvoke:X,children:"Review exact choice"})]}):r.jsx("p",{children:"Select a choice to compare its exact consequence and dispositions."})})]}):r.jsx("p",{children:((Ee=de.capability.reason)==null?void 0:Ee.message)??"This Review has no choices to submit."})]}),r.jsx(q$,{model:re}),te?r.jsx(K$,{workspace:te,receipt:F==null?void 0:F.receipt}):null,r.jsxs("details",{className:"op-review__section",children:[r.jsx("summary",{children:"Workspace custody"}),r.jsxs("dl",{className:"op-review__technical",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Review ID"}),r.jsx("dd",{children:r.jsx("code",{children:re.payload.reviewId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Cycle ID"}),r.jsx("dd",{children:r.jsx("code",{children:re.payload.cycleId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Source event"}),r.jsxs("dd",{children:[re.payload.sourceEventHead.sequence," ·"," ",r.jsx("code",{children:re.payload.sourceEventHead.hash??"genesis"})]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Source view"}),r.jsx("dd",{children:r.jsx("code",{children:re.payload.sourceViewHash})})]})]})]}),r.jsx(L$,{choice:(Z==null?void 0:Z.choice)??null,custody:(Z==null?void 0:Z.custody)??null,confirming:V,onCancel:T,onConfirm:se},(Z==null?void 0:Z.custody.preview.previewId)??"closed")]})}const _U=Object.freeze({Page:OU,createValidator:Xu});function NU(e,t){return e.continuation?e.continuation.action.effect!=="read-only"&&!e.mutationEnabled?"This view is read-only, so changes are unavailable.":t?null:"This next step is visible, but its command control is unavailable.":"No next step is available for this active work."}function RU({model:e,onContinuation:t}){var h;const a=e.priorityAttention,s=e.continuation,c=pI(e,e.activeCycle.cycleId),l=s?e.actions.find(A=>A.actionId===s.subjectId)??null:null,u=NU(e,t!==void 0),f=e.activeCycle.deepLink;return r.jsxs("section",{className:"op-today-focus","aria-labelledby":"op-today-focus-title",children:[r.jsx("div",{className:"op-today-focus__custody",children:r.jsx("p",{className:"op-eyebrow",children:a?"Priority focus":"Current work"})}),r.jsxs("div",{className:"op-today-focus__question",children:[r.jsx("h2",{id:"op-today-focus-title",children:(a==null?void 0:a.title)??"Continue this work"}),r.jsx("p",{children:(a==null?void 0:a.whyNow)??e.activeCycle.focus[0]??"Review the active work before continuing."})]}),r.jsxs("dl",{className:"op-today-focus__brief",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Expected result"}),r.jsx("dd",{children:(l==null?void 0:l.expectedResult)??(a==null?void 0:a.consequence)??"Not projected on Today."})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Consequence"}),r.jsx("dd",{children:(a==null?void 0:a.consequence)??"No consequence was projected for this attention item."})]})]}),((h=e.continuationRelationship)==null?void 0:h.kind)==="different-subject"?r.jsxs("div",{className:"op-today-focus__relationship",role:"note",children:[r.jsxs("p",{children:["The available next step relates to this priority item",f?r.jsxs(r.Fragment,{children:[". Review the ",r.jsx("a",{href:f,children:"active work"})," before continuing."]}):"."]}),r.jsxs("details",{className:"op-binding-passport__details",children:[r.jsx("summary",{children:"Relationship details"}),r.jsxs("dl",{className:"op-today__status",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Focus item"}),r.jsx("dd",{children:r.jsx("code",{children:e.continuationRelationship.attentionSubjectId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Next-step item"}),r.jsx("dd",{children:r.jsx("code",{children:e.continuationRelationship.continuationSubjectId})})]})]})]})]}):null,r.jsxs("div",{className:"op-today-focus__actions",children:[c?r.jsx("a",{className:"op-today-focus__evidence-link","data-review-navigation":"","data-review-read-action-digest":c.readActionDigest,href:c.deepLink,children:"Open Review"}):s&&!u&&t?r.jsx(Mt,{onInvoke:()=>t(s),children:s.action.label}):r.jsx(Mt,{disabled:!0,disabledReason:u??"The next step is unavailable.",children:(s==null?void 0:s.action.label)??"No next step available"}),r.jsx("a",{className:"op-today-focus__evidence-link",href:"#/operate/evidence",children:"View evidence"}),r.jsx("small",{children:"Changes take effect only after confirmation and verification."})]})]})}function DU(e,t){return e===null?"Not observed":t?`${e} ${t}`:String(e)}function Xb(e){return e.split(/[-_]/u).filter(Boolean).map(t=>`${t.slice(0,1).toUpperCase()}${t.slice(1)}`).join(" ")}function TU(e,t){const a=Xb(e),s=Xb(t);return a===s?`${a} data`:`${a} data · ${s}`}function Wb({model:e,idPrefix:t}){const a=e.attention.flatMap(s=>s.evidenceRefIds.map(c=>({attentionId:s.attentionId,evidenceRefId:c})));return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"op-today-evidence__summary",children:[r.jsxs("span",{children:[a.length," linked"]}),r.jsxs("span",{children:[e.domainMetrics.length," metric",e.domainMetrics.length===1?"":"s"]})]}),r.jsxs("section",{"aria-labelledby":`${t}-metrics`,children:[r.jsx("p",{className:"op-eyebrow",id:`${t}-metrics`,children:e.vocabulary.signals}),e.domainMetrics.length>0?r.jsx("dl",{className:"op-today-evidence__metrics",children:e.domainMetrics.map(s=>r.jsxs("div",{"data-freshness":s.freshness,children:[r.jsx("dt",{children:s.title??"Key signal"}),r.jsxs("dd",{children:[r.jsx("span",{children:DU(s.value,s.unit)}),r.jsx("small",{children:TU(s.freshness,s.state)})]})]},s.metricId))}):r.jsx("p",{children:"No signal is available for this workspace yet."})]}),r.jsxs("section",{"aria-labelledby":`${t}-evidence-refs`,children:[r.jsx("p",{className:"op-eyebrow",id:`${t}-evidence-refs`,children:"Supporting evidence"}),a.length>0?r.jsxs("p",{children:[a.length," supporting record",a.length===1?"":"s"," are available in Evidence."]}):r.jsx("p",{children:"No supporting record is linked to this focus yet."})]}),r.jsxs("details",{className:"op-binding-passport__details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-today-evidence__custody",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Supporting records"}),r.jsx("dd",{children:r.jsx("code",{children:a.length>0?a.map(s=>s.evidenceRefId).join(" · "):"None"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event record"}),r.jsx("dd",{children:r.jsxs("code",{children:[e.surface.eventHead.sequence," · ",e.surface.eventHead.hash??"genesis"]})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"View hash"}),r.jsx("dd",{children:r.jsx("code",{children:e.surface.viewHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Generated"}),r.jsx("dd",{children:r.jsx("time",{dateTime:e.surface.generatedAt,children:e.surface.generatedAt})})]})]})]})]})}function ew({model:e,mode:t}){const a=`op-today-evidence-${t}-${e.binding.generation}`;return t==="compact"?r.jsxs("details",{className:"op-today-evidence op-today-evidence--compact",children:[r.jsx("summary",{children:"Evidence"}),r.jsx("div",{className:"op-today-evidence__body",children:r.jsx(Wb,{model:e,idPrefix:a})})]}):r.jsxs("aside",{className:"op-today-evidence op-today-evidence--wide","aria-label":"Evidence",children:[r.jsx("h2",{children:"Evidence"}),r.jsx(Wb,{model:e,idPrefix:a})]})}const kU=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function OI(e){return Object.freeze(e==="business"?{domain:"business",title:"Business Today",context:"Business context",signals:"Business signals",cycle:"Business Cycle"}:e==="software"?{domain:"repository",title:"Repository Today",context:"Repository context",signals:"Repository signals",cycle:"Repository Cycle"}:{domain:"operating",title:"Operate Today",context:"Operating context",signals:"Operating signals",cycle:"Operating Cycle"})}function _I(e){try{const t=Ve(e);return t.productArea==="operate"&&t.route==="#/operate/today"&&t.subjectId===null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function rm(e){const t=_I(e);return a=>{if(!t||!Object.isFrozen(a))return!1;try{const s=Cn(a),c=s.payload;if(c.surface!=="today"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const l=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,surface:"today",subjectId:null,cycleId:t.cycleId});return Cn(s,l),!0}catch{return!1}}}function MU(e,t){return rm(t)(e)?e:null}function tw(e,t,a){if(!Pe(e)||e.binding===null||e.data===null||!Ye(e.binding,t))return null;const s=kU[e.kind];if(s===void 0)return null;const c=MU(e.data,t);if((c==null?void 0:c.payload.surface)!=="today")return null;const l=c.payload;if(l.status!==s||l.mutationEnabled!==e.mutationEnabled||l.data.activeCycle===null||t.cycleId===null||l.data.activeCycle.cycleId!==t.cycleId)return null;const u=l.data.attention[0]??null,f=l.data.allowedActions[0]??null,h=u&&f?Object.freeze({kind:u.subjectId===f.subjectId?"same-subject":"different-subject",attentionSubjectId:u.subjectId,continuationSubjectId:f.subjectId}):null;return Object.freeze({kind:"surface",source:a,presentation:s,binding:e.binding,display:c,vocabulary:OI(l.domainId),surface:l,attention:l.data.attention,domainMetrics:l.data.domainMetrics,activeCycle:l.data.activeCycle,inbox:l.data.inbox,actions:l.data.actions,outcomes:l.data.outcomes,allowedActions:l.data.allowedActions,priorityAttention:u,currentStage:l.data.activeCycle.stages.find(A=>A.state==="current")??null,continuation:f,continuationRelationship:h,mutationEnabled:e.mutationEnabled&&l.mutationEnabled})}function GU(e,t){return!Pe(e)||e.kind!=="first-use"&&e.kind!=="empty"||e.binding===null||e.data!==null||e.mutationEnabled||t.cycleId!==null||!Ye(e.binding,t)?null:Object.freeze({kind:e.kind,source:"current",binding:e.binding,vocabulary:OI(t.domainId),reasonCodes:e.reasonCodes,continuation:null,continuationAvailability:"not-returned"})}function NI(e,t){const a=_I(t);if(!a)return null;if(e.resumable){const s=tw(e.resumable,a,"durable-resume");if(s)return s}return tw(e.current,a,"current")??GU(e.current,a)}function YU(e){var a;const t=e.domainMetrics[0];if(t){const s=t.title??"A key signal";if(t.change){const l={added:"is now available.",removed:"is no longer available.",changed:"has changed.",stale:"may be out of date.",conflict:"needs review."}[t.change.kind];return`${s} ${l}`}const c=t.value===null?null:String(t.value);return c?`${s} is currently ${c}${t.unit?` ${t.unit}`:""}.`:`${s} is current.`}return((a=e.priorityAttention)==null?void 0:a.whyNow)??"A fuller update is not available yet."}function HU(e){return e.split(/[-_]/u).filter(Boolean).map(t=>`${t.slice(0,1).toUpperCase()}${t.slice(1)}`).join(" ")}function zU(e){return{decision:"Decision",approval:"Approval",action:"Action",verification:"Verification",outcome:"Outcome",uncertainty:"Open question"}[e]}function $U({model:e}){const t=e.kind==="first-use";return r.jsxs("div",{className:"op-workspace op-today pc-operate","data-route-kind":"operate.today",children:[r.jsx(st,{headingLevel:1,eyebrow:`planr-operate · today · ${e.vocabulary.context}`,title:e.vocabulary.title,description:"Choose a workspace to see what needs attention."}),r.jsx(be,{state:"first-use",eyebrow:t?"First use":"Exact empty state",title:t?"No active work yet":"Nothing active here yet",description:t?"Choose a workspace from the available project context to get started.":"There is no active work in this workspace right now."}),r.jsx("p",{className:"op-today__context-note",children:"No next step is available until work is returned for this workspace."})]})}function UU({currentBinding:e,sources:t,onContinuation:a}){var c;const s=NI(t,e);return s?s.kind!=="surface"?r.jsx($U,{model:s}):r.jsxs("div",{className:"op-workspace op-today pc-operate","data-route-kind":"operate.today","data-today-presentation":s.presentation,"data-today-source":s.source,children:[r.jsx(st,{headingLevel:1,eyebrow:`planr-operate · today · ${s.vocabulary.context}`,title:((c=s.priorityAttention)==null?void 0:c.title)??s.activeCycle.focus[0]??"Continue this work",description:YU(s),actions:r.jsx(fa,{state:s.presentation,label:HU(s.presentation)})}),s.source==="durable-resume"?r.jsx("p",{className:"pc-operate__notice","data-tone":"verified",role:"status",children:"Your active work has been restored."}):null,s.presentation!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This is a ",s.presentation," projection. Current access-safe truth remains visible; mutation stays unavailable."]}):null,r.jsx(yI,{stages:s.activeCycle.stages,cycleId:s.activeCycle.cycleId,health:s.activeCycle.health,title:s.currentStage?jo(s.currentStage.id):s.activeCycle.state,labelledBy:"op-today-spine-title"}),r.jsxs("div",{className:"op-today__desk-layout",children:[r.jsxs("section",{className:"op-today__work","aria-label":"Today decision workspace",children:[r.jsx(RU,{model:s,onContinuation:a}),r.jsxs("section",{className:"pc-operate__section","aria-label":"What needs attention now",children:[r.jsx(st,{headingLevel:2,title:"What needs attention now",count:`${s.attention.length} item${s.attention.length===1?"":"s"}`}),s.attention.length>0?r.jsx("ol",{className:"pc-operate__records",children:s.attention.map(l=>r.jsxs("li",{className:"pc-operate__record",children:[r.jsxs("div",{className:"pc-operate__record-head",children:[r.jsxs("h3",{className:"pc-operate__record-title",children:[r.jsx("span",{className:"pc-operate__record-index",children:zU(l.kind)})," ",l.title]}),r.jsx(fa,{state:l.state})]}),r.jsx("p",{className:"pc-operate__record-facts",children:l.whyNow})]},l.attentionId))}):r.jsx("p",{className:"pc-operate__notice",children:"Nothing else needs attention in this active workspace."})]})]}),r.jsx(ew,{model:s,mode:"wide"}),r.jsx(ew,{model:s,mode:"compact"})]})]}):r.jsx("div",{className:"op-workspace op-today pc-operate","data-route-kind":"operate.today",children:r.jsx(be,{state:"incompatible",eyebrow:"Today projection",title:"Today cannot be trusted",description:"The returned state did not match the exact current binding and Today contract."})})}const LU=Object.freeze({Page:UU,createValidator:rm}),kt=Object.freeze({actions:CH,audit:KH,cycles:b$,inboxRecovery:$$,review:_U,today:LU});function PU(e){const t=e.frontmatter.updated;return t!=null&&t!==""}function FU({currentBinding:e,current:t}){const a=Br(t,e);if(!a)return r.jsx(fs,{routeKind:"planning.activity",title:"Planning cannot be trusted"});const s=a.graph.nodes.length,c=a.graph.nodes.filter(PU).length;return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-activity","data-route-kind":"planning.activity",children:[r.jsx(us,{presentation:a.presentation}),r.jsx(st,{headingLevel:1,eyebrow:"planr-status",title:"Activity",description:"Owner-issued watcher patches only. A graph snapshot is not a change log."}),r.jsxs(At,{padding:0,children:[r.jsx(Jt,{icon:"activity",title:"No activity returned",description:"Activity is a live patch feed, not a history. This route was given a graph snapshot, which carries no change log — so empty is the normal state, not an error."}),r.jsxs("div",{className:"pc-activity__aid",children:[r.jsx(xa,{command:"/planr-status",label:"inspect delivery status without changing state",size:"sm"}),r.jsx(qt,{tone:"info",title:"Looking for what changed?",children:c>0?r.jsxs(r.Fragment,{children:["A graph snapshot carries no history. The nearest signal is each item's"," ",r.jsx("code",{className:"pc-activity__code",children:"updated"})," frontmatter — ",c," of"," ",s," items carry one — shown on List."]}):r.jsxs(r.Fragment,{children:["A graph snapshot carries no history, and no item in this snapshot carries"," ",r.jsx("code",{className:"pc-activity__code",children:"updated"})," frontmatter."]})})]})]})]})}function Wh(e,t){const a=e[t];return typeof a=="string"&&a.trim()!==""?a:null}function VU(e){const t=e.frontmatter.dependsOn;return Object.freeze({kind:"node",id:e.id,type:e.type,title:e.title,status:e.status,sprintId:Wh(e.frontmatter,"sprintId")??Wh(e.frontmatter,"sprint"),updated:Wh(e.frontmatter,"updated"),dependsOn:Array.isArray(t)?Object.freeze(t.filter(a=>typeof a=="string")):Object.freeze([]),ref:e.githubIssue!==void 0?`#${e.githubIssue}`:e.linearIssueIdentifier??null,href:Uu(e)})}function ls(e){MG(VU(e))}function Vg(e,t){const a=e.frontmatter[t];return typeof a=="string"&&a.trim()!==""?a:null}function qU(e){return Vg(e,"sprintId")??Vg(e,"sprint")}function KU(e){return pl.map(t=>({key:t,label:t,nodes:e.filter(a=>a.status===t)}))}function JU(e){return`${e} ${e===1?"artifact":"artifacts"}`}function ZU({node:e}){const t=qU(e),a=Vg(e,"updated");return r.jsxs("button",{type:"button",className:"pc-status-board__card",onClick:()=>ls(e),children:[r.jsx(os,{type:e.type,id:Ut(e)}),r.jsx("span",{className:"pc-status-board__title",children:e.title}),r.jsxs("span",{className:"pc-status-board__foot",children:[t?r.jsx("span",{className:"pc-status-board__sprint",children:t}):null,r.jsx("span",{className:"pc-status-board__updated",children:a??r.jsx(gt,{})})]})]})}function XU({group:e,byStatus:t}){return r.jsxs("section",{className:"pc-status-board__column","aria-label":e.label,children:[r.jsxs("header",{className:"pc-status-board__head",children:[t?r.jsx(bi,{status:e.key,size:"sm"}):r.jsx("span",{className:"pc-status-board__label",children:e.label}),r.jsx("span",{className:"pc-status-board__count",children:e.nodes.length})]}),r.jsxs("div",{className:"pc-status-board__cards",children:[e.nodes.map(a=>r.jsx(ZU,{node:a},a.id)),e.nodes.length===0?r.jsx("span",{className:"pc-status-board__empty",children:"empty"}):null]})]})}function WU({currentBinding:e,current:t}){const[a,s]=B.useState("status"),c=Br(t,e);if(!c)return r.jsx(fs,{routeKind:"planning.board",title:"Planning cannot be trusted"});const l=c.graph.nodes.filter(E=>E.type!=="sprint"),u=BM(l),f=u.find(E=>E.key===a),h=(f==null?void 0:f.key)??"status",A=h==="status",y=A?KU(l):bM(l,h),m=(f==null?void 0:f.label.toLowerCase())??"status";return r.jsxs("div",{className:"op-workspace op-planning op-planning--board pc-pipeline","data-route-kind":"planning.board",children:[r.jsx(us,{presentation:c.presentation}),r.jsx(st,{headingLevel:1,eyebrow:"planr-status · board",title:"Board",count:JU(l.length),description:`Grouped by ${m}. Read-only — status changes come from the CLI lifecycle.`}),l.length===0?r.jsx(Jt,{icon:"columns-3",title:"No artifacts yet",description:"The board fills in as the graph gains epics, features, stories and tasks.",action:r.jsx(xa,{command:"/planr-plan",label:"create the graph",size:"sm"})}):r.jsxs(r.Fragment,{children:[u.length>1?r.jsxs(Hu,{children:[r.jsx("span",{className:"pc-status-board__group",children:"group by"}),r.jsx(qc,{value:h,onChange:s,options:u.map(E=>({value:E.key,label:E.label})),ariaLabel:"Group by",size:"sm"})]}):null,r.jsx("div",{className:"pc-status-board",children:y.map(E=>r.jsx(XU,{group:E,byStatus:A},E.key||"none"))})]})]})}const pt=(e,t,a)=>({id:e,summary:t,view:a,command:`/${e}`}),RI=Object.freeze([{id:"lifecycle",title:"Plan & deliver",description:"Shape intent into work, review it, implement it, and land it.",capabilities:Object.freeze([pt("planr-spec","Shape vague intent into a measurable, Protocol-compatible specification.","#/list"),pt("planr-plan","Turn a specification or intent into schema-compatible stories and tasks.","#/board"),pt("planr-plan-review","Review a plan for product, engineering, design, and DX problems.","#/board"),pt("planr-ship","Implement a plan, specification, task, or clearly stated request.","#/board"),pt("planr-land","Assess release readiness and prepare a landing sequence.","#/overview"),pt("planr-status","Inspect project or one feature's delivery status without changing state.","#/overview")])},{id:"operate",title:"Operate",description:"Run operating cycles and executive reviews over delivered work.",capabilities:Object.freeze([pt("planr-operate","Run a focused operating review across executive lenses and produce a board report.","#/operate/today")])},{id:"review-board",title:"Executive review board",description:"Grounded single-lens reviews and their synthesis for an Operate cycle.",capabilities:Object.freeze([pt("planr-ceo-review","Grounded strategy and finance review for an Operate cycle.","#/operate/cycles"),pt("planr-cpo-review","Grounded product and activation review for an Operate cycle.","#/operate/cycles"),pt("planr-cto-review","Grounded technology and delivery-risk review for an Operate cycle.","#/operate/cycles"),pt("planr-cmo-review","Grounded market and growth review for an Operate cycle.","#/operate/cycles"),pt("planr-coo-review","Grounded operations and customer-health review for an Operate cycle.","#/operate/cycles"),pt("planr-challenger-review","Challenge a cycle's claims, alternatives, downside, and confidence.","#/operate/cycles"),pt("planr-chair-review","Synthesize a cycle into a prioritized decision queue and action plan.","#/operate/cycles")])},{id:"design",title:"Design & artifacts",description:"Explore, review, and produce visual and document artifacts.",capabilities:Object.freeze([pt("planr-design","Create or route a product-design workflow using portable boards.",null),pt("planr-design-loop","Explore multiple design directions and collect pinned board feedback.",null),pt("planr-design-review","Review and revise an existing design from pinned board feedback.",null),pt("planr-diagram","Create, inspect, verify, or rerender professional offline diagrams.",null),pt("planr-artifact","Open, share, import, or export an HTML artifact review.",null)])},{id:"maintain",title:"Investigate & maintain",description:"Diagnose problems, verify behavior, and keep planning state healthy.",capabilities:Object.freeze([pt("planr-investigate","Diagnose a bug, regression, or unexplained behavior, and optionally fix it.",null),pt("planr-browser-qa","Browser-backed QA over real routes, forms, viewports, accessibility, and network.",null),pt("planr-doctor","Diagnose CLI, pipeline, runtime-adapter, and installation problems.","#/diagnostics"),pt("planr-sync","Audit planning artifacts for graph and protocol drift.","#/activity"),pt("planr-dashboard","Start or inspect this loopback-only planning dashboard.","#/overview")])}]),eL=RI.reduce((e,t)=>e+t.capabilities.length,0),tL=[{key:"id",label:"Skill",width:190,render:e=>r.jsx(Dj,{name:e.id,size:"sm"})},{key:"summary",label:"Purpose",render:e=>r.jsx(E2,{children:e.summary})},{key:"view",label:"Dashboard",width:132,render:e=>{const t=e.view?Oo(e.view):null;return t?r.jsx("a",{className:"pc-console__link",href:t,children:e.view}):r.jsx(gt,{})}},{key:"command",label:"Invocation",width:268,render:e=>r.jsx(xa,{command:e.command,size:"sm"})}];function nL(e,t){return`${e.id} ${e.summary}`.toLowerCase().includes(t)}function aL(){const[e,t]=B.useState(""),a=e.trim().toLowerCase(),s=RI.map(l=>({id:l.id,title:l.title,capabilities:a?l.capabilities.filter(u=>nL(u,a)):l.capabilities})).filter(l=>l.capabilities.length>0),c=s.reduce((l,u)=>l+u.capabilities.length,0);return r.jsxs("div",{className:"op-workspace op-planning pc-console","data-route-kind":"planning.console",children:[r.jsx(st,{eyebrow:"planr-dashboard · console",title:"Console",count:`${eL} skills`,description:"The static catalog of planr-* skills, in their shipped groups. Reference only — the console cannot invoke them."}),r.jsxs(Hu,{children:[r.jsx(RA,{size:"sm",icon:"search",placeholder:"Filter skills",ariaLabel:"Filter skills",value:e,onChange:t,width:220}),r.jsx(NA,{}),r.jsxs("span",{className:"pc-console__shown",children:[c," shown"]})]}),r.jsx("div",{className:"pc-console__catalog",children:s.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"search",title:"No skill matches this filter",description:"Filter by skill name or purpose."})}):s.map(l=>r.jsx(At,{title:l.title,meta:String(l.capabilities.length),padding:0,children:r.jsx(ji,{compact:!0,columns:tL,rows:l.capabilities,caption:l.title})},l.id))})]})}function bn({label:e,value:t}){return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:t==null||t===""?"Not available":t})]})}function iL({origin:e}){const t=e.eventHead.sequence===null?null:`${e.eventHead.sequence} · ${e.eventHead.hash??"genesis"}`;return r.jsxs("details",{className:"op-planning-origin__details",children:[r.jsx("summary",{children:"Origin integrity details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(bn,{label:"Proposal",value:e.proposalId}),r.jsx(bn,{label:"Proposal revision",value:e.proposalRevision}),r.jsx(bn,{label:"Proposal digest",value:e.proposalHash}),r.jsx(bn,{label:"Event head",value:t}),r.jsx(bn,{label:"Origin digest",value:e.originHash}),r.jsx(bn,{label:"Planning receipt",value:e.transaction.receiptHash}),r.jsx(bn,{label:"Planning provenance",value:e.transaction.planningProvenanceEventId}),r.jsx(bn,{label:"Verification plan",value:typeof e.verification.verificationPlanId=="string"?e.verification.verificationPlanId:null}),r.jsx(bn,{label:"Metric",value:typeof e.metric.metricId=="string"?e.metric.metricId:null})]})]})}function rL({envelope:e,title:t,summary:a}){const s=e&&typeof e=="object"?e:{},c=aH(s.origin??e),l=rH(c),u=t??(c.spec.specId?`Why ${c.spec.specId} exists`:"Why this Planning work exists");return r.jsxs("section",{className:"op-planning-origin planning-operating-origin","aria-label":"Operating origin and delivery trace","data-origin-state":c.status,children:[r.jsxs("header",{className:"op-planning-origin__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Operating origin"}),r.jsx("h2",{children:u}),r.jsx("p",{children:a??"The sidecar preserves exact Operate custody while Planning remains independently authoritative."})]}),l?r.jsx("a",{className:"op-cycle-link",href:l,children:"Open in Operate"}):null]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(bn,{label:"SPEC",value:c.spec.specId}),r.jsx(bn,{label:"Status",value:c.spec.status}),r.jsx(bn,{label:"Decision",value:c.decision.id}),r.jsx(bn,{label:"Action",value:c.action.id}),r.jsx(bn,{label:"Correlation",value:c.correlationId})]}),r.jsx(iL,{origin:c}),r.jsxs("section",{className:"op-planning-origin__trace","aria-labelledby":"op-planning-delivery-trace-title",children:[r.jsx("header",{className:"op-cycle-section-heading",children:r.jsxs("div",{children:[r.jsx("h3",{id:"op-planning-delivery-trace-title",children:"Delivery and value trace"}),r.jsx("p",{children:"Each state belongs to its own ledger. Delivery is evidence; it is not Outcome success."})]})}),r.jsx(TQ,{progress:s.progress??{nodes:[]}})]})]})}function sL({specId:e,binding:t}){const{bootstrap:a}=oA(),s=(a==null?void 0:a.queryRoots.operate)??null,[c,l]=B.useState(null),[u,f]=B.useState("idle");return B.useEffect(()=>{if(typeof window>"u"||s===null||s.projectId!==t.projectId){l(null),f("unavailable");return}let h=!1;const A=new AbortController;f("loading");const y=Ve({productArea:"operate",route:"#/operate/today",actorId:s.actorId,projectId:s.projectId,scopeId:s.scopeId,domainId:s.domainId,domainVersion:s.domainVersion,cycleId:null,subjectId:null,eventHead:null,viewHash:null,generation:s.generation});return BH({origin:window.location.origin,identity:y,specId:e,signal:A.signal}).then(m=>{if(h)return;const E=m.origin,b=E.spec;if((b==null?void 0:b.specId)===e&&E.scopeId===s.scopeId&&E.domainId===s.domainId&&E.domainVersion===s.domainVersion&&oL(E.actor)===s.actorId){l({origin:m.origin,progress:m.progress}),f("ready");return}f("unavailable")}).catch(()=>{h||f("unavailable")}),()=>{h=!0,A.abort()}},[t.projectId,s,e]),u==="loading"||u==="idle"?r.jsx("section",{className:"op-planning-section","aria-label":"Operating origin loading",children:r.jsx("p",{role:"status",children:"Loading operating origin projection…"})}):c?r.jsx(rL,{envelope:c}):null}function oL(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;const t=Reflect.get(e,"actorId");return typeof t=="string"?t:null}function yi(e,t){const a=e.frontmatter[t];return typeof a=="string"&&a.trim()!==""?a:null}function sm(e){return yi(e,"sprintId")??yi(e,"sprint")}function DI(e){return e.githubIssue!==void 0?`#${e.githubIssue}`:e.linearIssueIdentifier??null}function du(e){const t=e.frontmatter.dependsOn;return Array.isArray(t)?t.filter(a=>typeof a=="string"):[]}function TI(e){const t=new Map;for(const a of e)a.kind==="depends_on"&&t.set(a.from,(t.get(a.from)??0)+1);return t}const al=Object.freeze({key:"item",label:"Item",render:e=>r.jsx(os,{type:e.type,id:Ut(e),title:e.title,blocked:e.status==="blocked",interactive:!0})}),Wu=Object.freeze({key:"status",label:"Status",width:132,render:e=>r.jsx(bi,{status:e.status,size:"sm"})}),qg=Object.freeze({key:"sprint",label:"Sprint",width:92,mono:!0,render:e=>sm(e)??r.jsx(gt,{})}),il=Object.freeze({key:"updated",label:"Updated",width:96,mono:!0,align:"right",render:e=>yi(e,"updated")??r.jsx(gt,{})}),cL=Object.freeze({key:"ref",label:"Ref",width:96,mono:!0,align:"right",render:e=>DI(e)??r.jsx(gt,{})});function om(e){const t=typeof e.get=="function"?e:TI(e);return Object.freeze({key:"deps",label:"Deps",width:56,mono:!0,align:"right",render:a=>{const s=t.get(a.id)??0;return s>0?String(s):r.jsx(gt,{})}})}const lL=new Set(["created","updated","sprintId","sprint","owner","dependsOn"]),dL=Object.freeze([al,Wu,il]);function nw(){typeof window<"u"&&(window.location.hash="#/list")}function kI(e){const t=Uu(e);t&&typeof window<"u"&&(window.location.hash=t)}function uL(e,t){const a=new Map(e.nodes.map(u=>[u.id,u])),s=new Set,c=[],l=(u,f)=>{for(const h of e.edges){const A=h.kind,y=A==="depends_on"&&h.to===u?h.from:A==="contains"&&h.from===u?h.to:null;if(y===null||s.has(y))continue;s.add(y);const m=a.get(y);m&&(c.push({...m,depth:f,via:A}),l(y,f+1))}};return l(t,0),c}function eg({title:e,rows:t}){return r.jsx(At,{title:e,meta:String(t.length),padding:0,children:t.length>0?r.jsx(ji,{compact:!0,rows:t,onRowClick:kI,caption:e,columns:dL}):r.jsx("div",{className:"pc-detail__none",children:"none"})})}function aw({currentBinding:e,current:t}){const a=e.route.startsWith("#/plan/specs/"),s=a?"planning.spec":"planning.detail",[c,l]=B.useState(a?"downstream":"fields"),u=Br(t,e);if(!u)return r.jsx(fs,{routeKind:s,title:"Planning cannot be trusted"});const f=e.subjectId===null?null:xM(e.subjectId),h=f===null?void 0:u.graph.nodes.find(N=>N.id===f);if(!h)return r.jsx("div",{className:"op-workspace op-planning pc-pipeline pc-detail","data-route-kind":s,children:r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"circle-alert",title:`No artifact ${e.subjectId??""}`.trim(),description:"This id is not in the current graph snapshot.",action:r.jsx(ua,{size:"sm",icon:"chevron-left",onClick:nw,children:"Back to List"})})})});const{graph:A}=u,y=new Map(A.nodes.map(N=>[N.id,N])),m=du(h).map(N=>y.get(N)).filter(N=>N!==void 0),E=A.edges.filter(N=>N.kind==="depends_on"&&N.to===h.id).map(N=>y.get(N.from)).filter(N=>N!==void 0),b=A.edges.filter(N=>N.kind==="contains"&&N.from===h.id).map(N=>y.get(N.to)).filter(N=>N!==void 0),w=A.edges.find(N=>N.kind==="contains"&&N.to===h.id),x=a?uL(A,h.id):[],j=SM(h),I=Object.entries(j.meta).filter(([N])=>!lL.has(N)),C=sm(h),O=DI(h),S=Ut(h),_=a?[{id:"downstream",label:"Downstream",count:x.length},{id:"fields",label:"Fields"},{id:"body",label:"Body"}]:[{id:"fields",label:"Fields"},{id:"relations",label:"Relations",count:m.length+E.length+b.length},{id:"body",label:"Body"}],k=[{key:"item",label:"Item",render:N=>r.jsx("span",{className:"pc-detail__indent",style:{paddingLeft:N.depth*16},children:r.jsx(os,{type:N.type,id:Ut(N),title:N.title,blocked:N.status==="blocked",interactive:!0})})},{key:"via",label:"Via",width:116,mono:!0,render:N=>N.via},{key:"status",label:"Status",width:132,render:N=>r.jsx(bi,{status:N.status,size:"sm"})},{key:"updated",label:"Updated",width:96,mono:!0,align:"right",render:N=>yi(N,"updated")??r.jsx(gt,{})}];return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-detail","data-route-kind":s,children:[r.jsx(us,{presentation:u.presentation}),r.jsx(st,{headingLevel:1,eyebrow:a?"planr-spec · trace":`planr-plan · ${h.type}`,title:h.title,count:S,description:a?"SPEC trace: everything downstream of this specification.":void 0,actions:r.jsx(ua,{variant:"ghost",size:"sm",icon:"chevron-left",onClick:nw,children:"List"})}),r.jsxs("div",{className:"pc-detail__identity",children:[r.jsx(os,{type:h.type,id:S}),r.jsx(bi,{status:h.status}),C?r.jsx("span",{className:"pc-detail__mono",children:C}):null,O?r.jsx("span",{className:"pc-detail__mono",children:O}):null]}),h.type==="spec"?r.jsx(sL,{specId:h.id,binding:e}):null,r.jsx(Nj,{label:"Artifact sections",value:c,onChange:l,tabs:_}),r.jsx("div",{className:"pc-detail__stack",children:c==="downstream"?r.jsx(At,{title:"Downstream of this spec",meta:String(x.length),padding:0,children:x.length>0?r.jsx(ji,{compact:!0,rows:x,onRowClick:kI,caption:"Downstream artifacts",columns:k}):r.jsx("div",{className:"pc-detail__empty",children:r.jsx(Jt,{icon:"list-tree",title:"Nothing waits on this spec",description:"No artifact carries a depends_on edge to it."})})}):c==="fields"?r.jsx(At,{title:"Frontmatter",meta:`${S}.md`,padding:14,children:r.jsxs("div",{className:"pc-detail__fields",children:[r.jsx(wt,{label:"id",mono:!0,children:h.id}),r.jsx(wt,{label:"type",mono:!0,children:h.type}),r.jsx(wt,{label:"status",mono:!0,children:h.status}),r.jsx(wt,{label:"created",mono:!0,children:yi(h,"created")??r.jsx(gt,{})}),r.jsx(wt,{label:"updated",mono:!0,children:yi(h,"updated")??r.jsx(gt,{})}),r.jsx(wt,{label:"sprintId",mono:!0,children:C??r.jsx(gt,{})}),r.jsx(wt,{label:"owner",mono:!0,children:yi(h,"owner")??r.jsx(gt,{children:"not recorded"})}),r.jsx(wt,{label:"dependsOn",mono:!0,children:du(h).length>0?du(h).join(", "):r.jsx(gt,{})}),r.jsx(wt,{label:"githubIssue",mono:!0,children:h.githubIssue!==void 0?`#${h.githubIssue}`:r.jsx(gt,{})}),r.jsx(wt,{label:"linearIssue",mono:!0,children:h.linearIssueIdentifier??r.jsx(gt,{})}),r.jsx(wt,{label:"parent",mono:!0,children:w?Ut(y.get(w.from)??w.from):r.jsx(gt,{children:"root"})}),I.map(([N,z])=>r.jsx(wt,{label:N,mono:!0,children:z},N))]})}):c==="relations"?r.jsxs(r.Fragment,{children:[r.jsx(eg,{title:"Depends on",rows:m}),r.jsx(eg,{title:"Depended on by",rows:E}),r.jsx(eg,{title:"Contains",rows:b})]}):r.jsx(At,{title:"Body",meta:"markdown",padding:14,children:j.criteria.length===0&&j.subtasks.length===0&&!h.body?r.jsx(qt,{tone:"info",title:"No body in this snapshot",children:"The artifact file has frontmatter only, or the body was not read into the graph."}):r.jsxs("div",{className:"pc-detail__body",children:[j.criteria.length>0?r.jsxs("section",{className:"pc-detail__section","aria-label":"Acceptance criteria",children:[r.jsxs("h3",{className:"pc-detail__label",children:["acceptance criteria · ",j.criteria.length]}),r.jsx("ol",{className:"pc-detail__criteria",children:j.criteria.map(N=>r.jsx("li",{children:N},N))})]}):null,j.subtasks.length>0?r.jsxs("section",{className:"pc-detail__section","aria-label":"Subtasks",children:[r.jsxs("h3",{className:"pc-detail__label",children:["subtasks · ",j.subtasks.length]}),r.jsx("ul",{className:"pc-detail__subtasks",children:j.subtasks.map(N=>r.jsxs("li",{className:"pc-detail__subtask",children:[r.jsx(bi,{status:N.done?"done":"outstanding",size:"sm",showLabel:!1}),r.jsx("span",{children:N.text})]},N.text))})]}):null,h.body?r.jsx("pre",{className:"pc-detail__markdown",children:h.body}):null]})})})]})}const fL=Object.freeze(["depends_on","contains"]),pL=Object.freeze([{id:"graph",label:"Graph",icon:"workflow"},{id:"outline",label:"Outline",icon:"list-tree"}]),hL=460,gL=Object.freeze({font:"var(--pc-type-mono-sm)"}),AL=Object.freeze({font:"var(--pc-type-mono-sm)",color:"var(--pc-text-tertiary)"});function mL(e){return e==="depends_on"||e==="contains"}function yL(e,t){var A;const a=e.edges.filter(y=>y.kind===t),s=new Set(a.flatMap(y=>[y.from,y.to])),c=new Map;for(const y of e.nodes){const m=Ut(y);c.set(m,(c.get(m)??0)+1)}const l=new Map,u=new Map,f=[];for(const y of e.nodes){if(!s.has(y.id))continue;const m=Ut(y),E=c.get(m)===1?m:y.id;l.set(y.id,E),u.set(E,y),f.push({id:E,type:y.type,label:y.title,blocked:y.status==="blocked"})}const h=[];for(const y of a){const m=l.get(y.from),E=l.get(y.to);if(m===void 0||E===void 0)continue;const b=t==="depends_on"&&((A=u.get(E))==null?void 0:A.status)==="blocked";h.push(b?{from:m,to:E,blocked:!0}:{from:m,to:E})}return{nodes:f,edges:h,byGraphId:u,graphIdOf:l}}function EL(e,t){const a=new Map;for(const u of t){const f=a.get(u.from);f?f.push(u):a.set(u.from,[u])}const s=new Map,c=new Set,l=u=>{s.set(u,"open");for(const f of a.get(u)??[]){const h=s.get(f.to);h==="open"?c.add(f):h===void 0&&l(f.to)}s.set(u,"closed")};for(const u of e)s.has(u.id)||l(u.id);return c}function BL({currentBinding:e,current:t}){var w;const[a,s]=B.useState("graph"),[c,l]=B.useState("depends_on"),u=qA(),f=Br(t,e);if(!f)return r.jsx(fs,{routeKind:"planning.graph",title:"Planning cannot be trusted"});const h=yL(f.graph,c),A=a==="outline"?EL(h.nodes,h.edges):null,y=A&&A.size>0?h.edges.filter(x=>!A.has(x)):h.edges,m=((w=u.selection)==null?void 0:w.kind)==="node"?h.graphIdOf.get(u.selection.id)??null:null,E=y.map(x=>m!==null&&(x.from===m||x.to===m)?{...x,active:!0}:x),b=x=>{const j=h.byGraphId.get(x);j&&ls(j)};return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline","data-route-kind":"planning.graph",children:[r.jsx(us,{presentation:f.presentation}),r.jsxs("div",{children:[r.jsx(st,{headingLevel:1,eyebrow:"planr-diagram · graph",title:"Graph",count:`${h.nodes.length} nodes · ${h.edges.length} edges`,description:c==="depends_on"?"A dependency map ordered from prerequisites to dependent work. Select a node to trace its relationships and inspect its record.":"A containment map ordered from parent artifacts to their children. Select a node to inspect its record."}),f.graph.nodes.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"workflow",title:"Nothing to draw",description:"This plan has no artifacts yet, so there are no edges to show.",action:r.jsx(xa,{command:"/planr-plan",label:"create the graph",size:"sm"})})}):r.jsxs(r.Fragment,{children:[r.jsxs(Hu,{right:r.jsx(Nj,{size:"sm",label:"Graph view",value:a,onChange:x=>s(x==="outline"?"outline":"graph"),tabs:pL}),children:[r.jsx(qc,{size:"sm",width:132,ariaLabel:"Edge kind",value:c,onChange:x=>{mL(x)&&l(x)},options:fL}),r.jsx(NA,{}),r.jsx("span",{style:AL,children:"edge kind"})]}),h.edges.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"workflow",title:`No ${c} edges in this plan`,description:"Both views draw edges only; an artifact without an edge of this kind is not shown."})}):r.jsx("div",{style:{marginTop:6},children:r.jsx(m2,{nodes:h.nodes,edges:E,view:a,flow:c==="depends_on"?"target-to-source":"source-to-target",selectedId:m,onSelect:b,height:hL})}),A&&A.size>0?r.jsx("div",{style:{marginTop:12},children:r.jsx(qt,{tone:"warn",title:`${A.size} ${A.size===1?"edge closes":"edges close"} a cycle`,children:"The outline nests parent to child and cannot draw a cycle, so these edges are left out of it. The graph view draws every edge."})}):null,c==="depends_on"&&h.edges.length>0?r.jsx("div",{style:{marginTop:12},children:r.jsxs(qt,{tone:"info",title:"Edges carry no satisfaction state",children:["An edge means ",r.jsx("code",{style:gL,children:"depends_on"}),", nothing more. The model does not say whether a dependency is met, so a satisfied edge and an unsatisfied one draw identically; an edge dashes only when the artifact it points at is itself blocked."]})}):null]})]})]})}let Kg=null;function vL(e){Kg=e}function bL(){const e=Kg;return Kg=null,e}const Iu="all",Tc=100,MI=Object.freeze(["epic","feature","story","task","spec","backlog","quick","sprint","adr"]),wL=Object.freeze([{value:Iu,label:"All types"},...MI.map(e=>({value:e,label:e}))]),xL=Object.freeze([{value:Iu,label:"All statuses"},...pl.map(e=>({value:e,label:e}))]),jL=Object.freeze({...il,sortable:!0});function QL(e){return MI.includes(e)}function IL(e){return pl.includes(e)}function CL(e,t){return[...e].sort((a,s)=>{const c=yi(a,"updated"),l=yi(s,"updated");return c===l?0:c===null?1:l===null?-1:t==="asc"?c.localeCompare(l):l.localeCompare(c)})}function SL({currentBinding:e,current:t}){var L;const[a,s]=B.useState(""),[c,l]=B.useState(Iu),[u,f]=B.useState(()=>bL()??Iu),[h,A]=B.useState(!1),[y,m]=B.useState({key:"updated",dir:"desc"}),[E,b]=B.useState(0),w=qA(),x=Br(t,e);if(!x)return r.jsx(fs,{routeKind:"planning.list",title:"Planning cannot be trusted"});const j=mM(x.graph.nodes,"id"),I=AM(j,{search:a.trim()||void 0,typeFilter:QL(c)?[c]:void 0,statusFilter:IL(u)?u:null}),C=y.key==="updated"?CL(I,y.dir):I,O=Math.max(1,Math.ceil(C.length/Tc)),S=Math.min(E,O-1),_=S*Tc,k=C.slice(_,_+Tc),N=TI(x.graph.edges),z=()=>b(0),M=((L=w.selection)==null?void 0:L.kind)==="node"?w.selection.id:void 0;return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-list","data-route-kind":"planning.list",children:[r.jsx(us,{presentation:x.presentation}),r.jsx(st,{headingLevel:1,eyebrow:"planr-plan · list",title:"List",count:`${C.length} of ${j.length}`,description:"Every node in the graph, filterable by text, type and status."}),j.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"list",title:"No artifacts yet",description:"The list fills in as the graph gains epics, features, stories and tasks.",action:r.jsx(xa,{command:"/planr-plan",label:"create the graph",size:"sm"})})}):r.jsxs("section",{className:"pc-list__surface","aria-label":"Planning artifact index",children:[r.jsxs(Hu,{right:r.jsx(o2,{size:"sm",checked:h,onChange:A,label:"Compact"}),children:[r.jsx(RA,{size:"sm",icon:"search",width:220,placeholder:"Filter by id or title",ariaLabel:"Filter by id or title",value:a,onChange:Z=>{s(Z),z()}}),r.jsx(qc,{size:"sm",width:128,ariaLabel:"Filter by type",value:c,onChange:Z=>{l(Z),z()},options:wL}),r.jsx(qc,{size:"sm",width:138,ariaLabel:"Filter by status",value:u,onChange:Z=>{f(Z),z()},options:xL}),r.jsx(NA,{}),r.jsx("span",{className:"pc-list__note",children:"read-only view of .planr/"})]}),r.jsx(ji,{rows:k,compact:h,selectedId:M,sort:y,onSort:Z=>{m(F=>({key:Z,dir:F.key===Z&&F.dir==="desc"?"asc":"desc"})),z()},onRowClick:ls,caption:"Planning artifacts",emptyMessage:"No node matches this filter.",columns:[al,Wu,qg,om(N),jL,cL]}),C.length>Tc?r.jsxs("nav",{className:"pc-list__pagination","aria-label":"Planning artifact pages",children:[r.jsxs("span",{className:"pc-list__page-status","aria-live":"polite",children:["Page ",S+1," of ",O," · ",_+1,"–",Math.min(_+Tc,C.length)," of ",C.length]}),r.jsxs("div",{className:"pc-list__page-actions",children:[r.jsx(ua,{size:"sm",icon:"chevron-left",disabled:S===0,onClick:()=>b(Math.max(0,S-1)),children:"Previous"}),r.jsx(ua,{size:"sm",iconAfter:"chevron-right",disabled:S+1>=O,onClick:()=>b(Math.min(O-1,S+1)),children:"Next"})]})]}):null]})]})}const tr=3,OL=new Set(["done","in-progress","blocked","outstanding","addressed"]);function _L(e){return OL.has(e)}function NL(e){return{key:"dependsOn",label:"Depends on",width:220,render:t=>{const a=du(t),s=a[0];if(s===void 0)return r.jsx(gt,{children:"no depends_on"});const c=e.get(s);return r.jsxs("span",{className:"pc-overview__deps",title:a.join(", "),children:[c?r.jsx(os,{type:c.type,id:Ut(c)}):r.jsx("span",{className:"pc-overview__mono",children:s}),a.length>1?r.jsxs("span",{className:"pc-overview__mono",children:["+",a.length-1]}):null]})}}}function tg(e){_L(e)&&(vL(e),typeof window<"u"&&(window.location.hash="#/list"))}function RL({currentBinding:e,current:t}){const a=Br(t,e);if(!a)return r.jsx(fs,{routeKind:"planning.overview",title:"Planning cannot be trusted"});const{graph:s,presentation:c}=a,l=s.nodes.filter(y=>y.type!=="sprint"),u={};for(const y of l)u[y.status]=(u[y.status]??0)+1;const f=l.filter(y=>y.status==="blocked"),h=l.filter(y=>y.status==="in-progress"),A=new Map(s.nodes.map(y=>[y.id,y]));return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-overview","data-route-kind":"planning.overview",children:[r.jsx(us,{presentation:c}),r.jsx(st,{headingLevel:1,eyebrow:"planr-status · overview",title:"Overview",count:`${l.length} ${l.length===1?"artifact":"artifacts"}`,description:"Status counts come straight from the graph snapshot."}),l.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"gauge",title:"No artifacts yet",description:"The overview fills in as the graph gains epics, features, stories and tasks.",action:r.jsx(xa,{command:"/planr-plan",label:"create the graph",size:"sm"})})}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"pc-overview__tally",children:r.jsx(B2,{counts:u,total:l.length,onPick:tg})}),r.jsxs("div",{className:"pc-overview__stack",children:[r.jsx(At,{title:"Blocked",meta:`${f.length} ${f.length===1?"item":"items"}`,padding:0,actions:f.length>tr?r.jsx(ua,{size:"sm",variant:"ghost",onClick:()=>tg("blocked"),children:"View all blocked"}):null,children:f.length>0?r.jsxs(r.Fragment,{children:[r.jsx(ji,{compact:!0,rows:f.slice(0,tr),onRowClick:ls,caption:"Blocked artifacts",columns:[al,NL(A),qg,il]}),f.length>tr?r.jsxs("p",{className:"pc-overview__note",children:["Showing ",tr," of ",f.length," blocked artifacts, in project order."]}):null,r.jsx("div",{className:"pc-overview__note",children:r.jsxs(qt,{tone:"info",title:"Depends-on is not the same as blocked-by",children:["The graph records ",r.jsx("code",{children:"depends_on"})," edges and a ",r.jsx("code",{children:"blocked"})," ","status, but nothing that links them. These are every dependency, not the blocking one."]})})]}):r.jsx("div",{className:"pc-overview__empty",children:r.jsx(Jt,{icon:"check-check",title:"Nothing is blocked",description:"No artifact carries the blocked status."})})}),r.jsxs(At,{title:"In progress",meta:`${h.length} ${h.length===1?"item":"items"}`,padding:0,actions:h.length>tr?r.jsx(ua,{size:"sm",variant:"ghost",onClick:()=>tg("in-progress"),children:"View all in progress"}):null,children:[r.jsx(ji,{compact:!0,rows:h.slice(0,tr),onRowClick:ls,caption:"Artifacts in progress",emptyMessage:"No artifact carries the in-progress status.",columns:[al,Wu,om(s.edges),qg,il]}),h.length>tr?r.jsxs("p",{className:"pc-overview__note",children:["Showing ",tr," of ",h.length," in-progress artifacts, in project order."]}):null]})]})]})]})}const DL=Object.freeze(["taskIds","storyIds","itemIds","artifactIds"]);function TL(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"&&t.trim()!==""):[]}function kL(e){return Object.freeze([...new Set(DL.flatMap(t=>TL(e.frontmatter[t])))])}function iw(e,t){const a=Ut(t),s=kL(t),c=new Map;for(const f of e)if(f.type!=="sprint")for(const h of new Set([f.id,Ut(f)]))c.set(h,[...c.get(h)??[],f]);const l=new Map;for(const f of s)for(const h of c.get(f)??[])l.set(h.id,h);for(const f of e){if(f.type==="sprint")continue;const h=sm(f);(h===t.id||h===a)&&l.set(f.id,f)}const u=s.filter(f=>{var h;return!(((h=c.get(f))==null?void 0:h.length)??0)});return Object.freeze({members:Object.freeze([...l.values()].sort((f,h)=>f.id.localeCompare(h.id))),missing:Object.freeze(u)})}function rl(e,...t){for(const a of t){const s=e.frontmatter[a];if(typeof s=="string"&&s.trim()!=="")return s.trim()}return null}function rw(e){return rl(e,"title","name")??e.title}function Jg(e){var a;const t=(a=rl(e,"status"))==null?void 0:a.toLowerCase().replaceAll("_","-");return t==="active"||t==="in progress"?"in-progress":t??e.status}function GI(e){return Object.freeze({start:rl(e,"startDate","startsAt","start"),end:rl(e,"endDate","endsAt","end")})}function sw(e,t){const a=Vj(t.members);if(t.missing.length>0)return Object.freeze({label:"scope mismatch",tone:"warn"});if(a.blocked>0)return Object.freeze({label:"blocked work",tone:"danger"});if(t.members.length>0&&a.done===t.members.length){const c=Jg(e);return Object.freeze(c==="done"||c==="addressed"?{label:"complete",tone:"success"}:{label:"ready to close",tone:"warn"})}const{end:s}=GI(e);return s&&/^\d{4}-\d{2}-\d{2}$/u.test(s)&&s<new Date().toISOString().slice(0,10)?Object.freeze({label:"past end date",tone:"warn"}):Object.freeze({label:"in flight",tone:"info"})}function ML(e,t,a){const s=new Set(e.map(u=>u.id)),c=new Map(t.map(u=>[u.id,u])),l=new Map;for(const u of a){if(u.kind!=="depends_on"||!s.has(u.from)||s.has(u.to))continue;const f=c.get(u.to);f&&f.status!=="done"&&f.status!=="addressed"&&l.set(f.id,f)}return Object.freeze([...l.values()].sort((u,f)=>u.id.localeCompare(f.id)))}function ar(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function GL(e,t){if(!ar(e)||!Array.isArray(e.items)||!ar(e.items[0]))return null;const a=e.items[0],s=ar(t)&&ar(t.item)?t.item:null;if(!s||typeof a.cycleId!="string"||typeof a.title!="string"||typeof a.signal!="string"||typeof a.updatedAt!="string"||!ar(a.counts)||!Array.isArray(s.actions))return null;const c=s.actions.filter(l=>ar(l)?["id","priority","action","owner","firstStep","successMeasure"].every(u=>typeof l[u]=="string"):!1);return Object.freeze({cycleId:a.cycleId,title:a.title,signal:a.signal,updatedAt:a.updatedAt,counts:Object.freeze({actions:Number.isSafeInteger(a.counts.actions)?Number(a.counts.actions):0,gaps:Number.isSafeInteger(a.counts.gaps)?Number(a.counts.gaps):0}),actions:Object.freeze(c)})}function YL(){const[e,t]=B.useState({status:"loading",pulse:null});return B.useEffect(()=>{const a=new AbortController,s=async()=>{try{const l=new URL("/api/operate/local-reviews?page=1&pageSize=1",window.location.origin),u=await fetch(l,{headers:{accept:"application/json"},signal:a.signal});if(!u.ok){t({status:"empty",pulse:null});return}const f=await u.json(),h=ar(f)&&Array.isArray(f.items)&&ar(f.items[0])?f.items[0].cycleId:null;if(typeof h!="string"){t({status:"empty",pulse:null});return}const A=await fetch(new URL(`/api/operate/local-reviews/${encodeURIComponent(h)}`,window.location.origin),{headers:{accept:"application/json"},signal:a.signal});if(!A.ok){t({status:"failed",pulse:null});return}const y=GL(f,await A.json());t(y?{status:"ready",pulse:y}:{status:"failed",pulse:null})}catch{a.signal.aborted||t({status:"failed",pulse:null})}};s();const c=window.setInterval(()=>void s(),5e3);return()=>{window.clearInterval(c),a.abort()}},[]),e}function HL(e,t){const a=`${e.action} ${e.firstStep} ${e.successMeasure}`.toLowerCase();return[...t].some(s=>a.includes(s.toLowerCase()))}function zL({currentBinding:e,current:t}){const[a,s]=B.useState(null),c=YL(),l=Br(t,e);if(!l)return r.jsx(fs,{routeKind:"planning.sprints",title:"Planning cannot be trusted"});const{nodes:u,edges:f}=l.graph,h=u.filter(j=>j.type==="sprint").sort((j,I)=>I.id.localeCompare(j.id)),A=h.find(j=>j.id===a)??h.find(j=>Jg(j)!=="done")??h[0]??null,y=A?iw(u,A):Object.freeze({members:Object.freeze([]),missing:Object.freeze([])}),m=Vj(y.members),E=y.members.length===0?0:Math.round(m.done/y.members.length*100),b=A?ML(y.members,u,f):[],w=new Set(A?[Ut(A),...y.members.flatMap(j=>[j.id,Ut(j)])]:[]),x=c.status==="ready"?c.pulse.actions.filter(j=>HL(j,w)):[];return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-sprints","data-route-kind":"planning.sprints",children:[r.jsx(us,{presentation:l.presentation}),r.jsx(st,{headingLevel:1,eyebrow:"planr-status · sprints",title:"Sprints",count:`${h.length} ${h.length===1?"sprint":"sprints"}`,description:"Commitment, delivery health, dependencies, and operating context from the records already in this workspace."}),h.length===0?r.jsx(At,{padding:0,children:r.jsx(Jt,{icon:"calendar-range",title:"No sprints yet",description:"No artifact of type sprint is in the graph.",action:r.jsx(xa,{command:"/planr-plan",label:"plan the next sprint",size:"sm"})})}):r.jsxs(r.Fragment,{children:[r.jsx("section",{className:"pc-sprints__grid","aria-label":"Sprint timeline",children:h.map(j=>{const I=iw(u,j),C=pl.map(k=>({state:k,count:I.members.filter(N=>N.status===k).length})).filter(k=>k.count>0),O=GI(j),S=sw(j,I),_=(A==null?void 0:A.id)===j.id;return r.jsxs("button",{type:"button",className:"pc-sprints__card","data-active":_||void 0,"aria-pressed":_,onClick:()=>s(j.id),children:[r.jsxs("span",{className:"pc-sprints__head",children:[r.jsx(os,{type:"sprint",id:Ut(j)}),r.jsx(Vn,{tone:S.tone,variant:"outline",children:S.label})]}),r.jsx(y2,{name:rw(j),segments:C}),r.jsxs("span",{className:"pc-sprints__dates",children:[r.jsx(Be,{name:"calendar-range",size:12}),O.start&&O.end?`${O.start} → ${O.end}`:"Dates not recorded"]})]},j.id)})}),A?r.jsxs("section",{className:"pc-sprints__workspace","aria-label":`${Ut(A)} delivery workspace`,children:[r.jsxs("div",{className:"pc-sprints__summary",children:[r.jsxs("div",{className:"pc-sprints__summary-copy",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Current commitment"}),r.jsx("h2",{children:rw(A)}),r.jsx("p",{children:rl(A,"goal","sprintGoal")??"No sprint goal is recorded."})]}),r.jsx(bi,{status:Jg(A),size:"sm"})]}),r.jsxs("dl",{className:"pc-sprints__metrics",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Complete"}),r.jsxs("dd",{children:[E,"%"]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed"}),r.jsx("dd",{children:y.members.length})]}),r.jsxs("div",{"data-attention":m.blocked>0||void 0,children:[r.jsx("dt",{children:"Blocked"}),r.jsx("dd",{children:m.blocked})]}),r.jsxs("div",{"data-attention":b.length>0||void 0,children:[r.jsx("dt",{children:"External deps"}),r.jsx("dd",{children:b.length})]})]}),r.jsxs("div",{className:"pc-sprints__body",children:[r.jsx(At,{title:`${Ut(A)} commitment`,meta:`${y.members.length} items`,padding:0,children:y.members.length>0?r.jsx(ji,{compact:!0,rows:y.members,onRowClick:ls,caption:`Members of ${Ut(A)}`,columns:[al,Wu,om(f),il]}):r.jsx("div",{className:"pc-sprints__empty",children:r.jsx(Jt,{icon:"calendar-range",title:"No committed work",description:"This sprint has no taskIds and no item points back through sprintId."})})}),r.jsxs("aside",{className:"pc-sprints__intelligence","aria-label":"Sprint intelligence",children:[r.jsxs("div",{className:"pc-sprints__intelligence-section",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Delivery health"}),r.jsx("strong",{children:sw(A,y).label}),r.jsxs("p",{children:[m.done," done · ",m.inProgress," in progress · ",m.outstanding," ","outstanding"]})]}),y.missing.length>0?r.jsxs("div",{className:"pc-sprints__intelligence-section","data-tone":"warn",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Scope gaps"}),r.jsxs("strong",{children:[y.missing.length," committed IDs are missing"]}),r.jsx("p",{children:y.missing.join(", ")})]}):null,r.jsxs("div",{className:"pc-sprints__intelligence-section",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Open dependencies"}),r.jsx("strong",{children:b.length===0?"No external blockers recorded":`${b.length} outside this sprint`}),b.length>0?r.jsx("ul",{children:b.slice(0,4).map(j=>r.jsx("li",{children:r.jsxs("button",{type:"button",onClick:()=>ls(j),children:[Ut(j)," · ",j.title]})},j.id))}):null]}),c.status==="ready"?r.jsxs("div",{className:"pc-sprints__intelligence-section","data-tone":"operate",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Latest operating review"}),r.jsx("strong",{children:c.pulse.signal}),r.jsxs("p",{children:[c.pulse.counts.actions," actions · ",c.pulse.counts.gaps," gaps ·"," ",x.length," reference this scope"]}),x.slice(0,3).map(j=>r.jsxs("div",{className:"pc-sprints__operate-action",children:[r.jsx("span",{children:j.priority}),r.jsx("p",{children:j.action}),r.jsxs("small",{children:["Next: ",j.firstStep]}),r.jsxs("small",{children:["Owner: ",j.owner]})]},j.id)),r.jsx("a",{href:"#/operate/today",children:"Open Operate today →"})]}):null]})]})]}):null]})]})}const $L=Object.freeze({"planning.overview":RL,"planning.graph":BL,"planning.board":WU,"planning.list":SL,"planning.sprints":zL,"planning.activity":FU,"planning.console":aL,"planning.detail":aw,"planning.spec":aw});function UL(e){return $L[e.kind]??null}const LL=RG;function PL({route:e,projection:t,binding:a}){return Pe(t)&&t.data!==null&&a!==null&&t.binding!==null&&Ye(t.binding,a)&&e.subjectId===a.subjectId}function cm(e,t){return!Pe(e)||e.kind!=="booting"&&e.kind!=="loading"&&e.kind!=="refreshing"?!1:e.binding===null?e.kind==="booting"&&t===null:t!==null&&Ye(e.binding,t)}function lm({route:e,projection:t}){const a=So(e),s=(a==null?void 0:a.label)??"Workspace",c=e.product==="operate",l=t.kind==="refreshing"?"refreshing":"loading";return r.jsxs("section",{className:"op-workspace op-route-pending","data-route-kind":e.kind,"data-route-pending":t.kind,"aria-busy":"true",children:[r.jsx(st,{eyebrow:c?"planr-operate":"planr-plan",title:s,count:l,description:c?"Reading the Operate projection. The route is already resolved.":`Reading the graph from ${Kc}/. The route is already resolved.`}),c?r.jsx(uo,{count:4,label:`Loading ${s}`}):r.jsx(xg,{rows:8,label:`Loading ${s}`,columns:[{label:"Item"},{label:"Status",width:132},{label:"Sprint",width:88},{label:"Updated",width:88}]})]})}function Na({route:e,binding:t,projection:a,eyebrow:s,title:c,description:l}){return cm(a,t)?r.jsx(lm,{route:e,projection:a}):Pe(a)&&a.data===null?r.jsx("div",{className:"op-workspace","data-route-kind":e.kind,children:r.jsx(KG,{currentBinding:t,route:e,state:a,children:()=>null})}):r.jsx("div",{className:"op-workspace","data-route-kind":e.kind,children:r.jsx(be,{state:"incompatible",eyebrow:s,title:c,description:l})})}function FL({route:e,binding:t,projection:a}){return cm(a,t)?r.jsx(lm,{route:e,projection:a}):Pe(a)&&a.data===null?r.jsx(Na,{route:e,binding:t,projection:a,eyebrow:"Planning projection",title:"Planning cannot be trusted",description:"The current state is not a parser-verified owner-issued Planning graph."}):r.jsx("div",{className:"op-workspace op-planning","data-route-kind":e.kind,children:r.jsx(be,{state:"incompatible",eyebrow:"Planning projection",title:"Planning cannot be trusted",description:"The current state is not a parser-verified owner-issued Planning graph."})})}function VL({route:e,projection:t,binding:a,connectionState:s,searchSources:c,operateSearchBindings:l}){if(e.kind==="planning.search")return r.jsx(LL,{sources:c,operateBindings:l,connectionState:s});const u=UL(e);return cm(t,a)?r.jsx(lm,{route:e,projection:t}):u&&a&&Pe(t)?r.jsx(u,{currentBinding:a,current:t}):r.jsx(FL,{route:e,binding:a,projection:t})}function qL({route:e,projection:t,binding:a}){if(a&&Pe(t)){if(e.kind==="operate.evidence"||e.kind==="operate.evidence-item")return r.jsx(kt.audit.EvidencePage,{currentBinding:a,current:t});if(e.kind==="operate.outcomes"||e.kind==="operate.outcome")return r.jsx(kt.audit.OutcomesPage,{currentBinding:a,current:t});if(e.kind==="operate.history")return r.jsx(kt.audit.HistoryPage,{currentBinding:a,current:t})}const s=e.kind==="operate.history"?"History":e.kind==="operate.outcomes"||e.kind==="operate.outcome"?"Outcomes":"Evidence";return r.jsx("div",{className:"op-workspace op-audit","data-route-kind":e.kind,children:r.jsx(be,{state:"incompatible",eyebrow:`${s} projection`,title:`${s} cannot be trusted`,description:"The current state is not a parser-verified owner-issued audit projection."})})}function KL(e){const{route:t,projection:a,binding:s,operateReviewNavigation:c,refetchCurrent:l}=e;return So(t)?t.product==="planning"?r.jsx(VL,{...e}):t.kind==="operate.today"?s&&Pe(a)&&(a.kind==="first-use"||a.kind==="empty"||a.data!==null&&kt.today.createValidator(s)(a.data))?r.jsx(kt.today.Page,{currentBinding:s,sources:{current:a}}):r.jsx(Na,{...e,eyebrow:"Today projection",title:"Today cannot be trusted",description:"The current state is not a parser-verified owner-issued Today projection."}):t.kind==="operate.cycles"?s&&Pe(a)&&a.data!==null&&kt.cycles.createListValidator(s)(a.data)?r.jsx(kt.cycles.ListPage,{currentBinding:s,current:a}):r.jsx(Na,{...e,eyebrow:"Cycle projection",title:"Cycles cannot be trusted",description:"The current state is not a parser-verified owner-issued Cycles projection."}):t.kind==="operate.cycle"?s&&Pe(a)&&a.data!==null?r.jsx(kt.cycles.DetailRoute,{currentBinding:s,workspace:a,reviewNavigation:c}):r.jsx(Na,{...e,eyebrow:"Cycle projection",title:"Cycle cannot be trusted",description:"The current state is not a parser-verified owner-issued Cycle projection."}):t.kind==="operate.review"?s&&Pe(a)&&a.data!==null&&kt.review.createValidator(s)(a.data)?r.jsx(kt.review.Page,{currentBinding:s,current:a,onRefetch:l}):r.jsx(Na,{...e,eyebrow:"Review projection",title:"Review cannot be trusted",description:"The current state is not a parser-verified owner-issued Review workspace."}):t.kind==="operate.actions"?s&&Pe(a)&&kt.actions.createListValidator(s)(a.data)?r.jsx(kt.actions.ListPage,{currentBinding:s,current:a}):r.jsx(Na,{...e,eyebrow:"Action projection",title:"Actions cannot be trusted",description:"The current state is not a parser-verified owner-issued Actions projection."}):t.kind==="operate.action-planning"?s&&Pe(a)&&a.data!==null?r.jsx(kt.actions.PlanningHandoffPage,{currentBinding:s,current:a,onRefetch:l}):r.jsx(Na,{...e,eyebrow:"Action projection",title:"Action cannot be trusted",description:"The current state is not a parser-verified owner-issued Action workspace."}):t.kind==="operate.action"?s&&Pe(a)&&kt.actions.createDetailValidator(s)(a.data)?r.jsx(kt.actions.DetailPage,{currentBinding:s,current:a,onRefetch:l}):r.jsx(Na,{...e,eyebrow:"Action projection",title:"Action cannot be trusted",description:"The current state is not a parser-verified owner-issued Action workspace."}):t.kind==="operate.recovery"?s&&Pe(a)&&kt.inboxRecovery.createRecoveryValidator(s)(a.data)?r.jsx(kt.inboxRecovery.RecoveryPage,{currentBinding:s,current:a}):r.jsx(Na,{...e,eyebrow:"Recovery projection",title:"Recovery cannot be trusted",description:"The current state is not a parser-verified owner-issued recovery display."}):t.kind==="operate.inbox"||t.kind==="operate.inbox-item"?s&&Pe(a)&&kt.inboxRecovery.createInboxValidator(s)(a.data)?r.jsx(kt.inboxRecovery.InboxPage,{currentBinding:s,current:a,onRefetch:l}):r.jsx(Na,{...e,eyebrow:"Inbox projection",title:"Inbox cannot be trusted",description:"The current state is not a parser-verified owner-issued Inbox projection."}):t.kind==="operate.evidence"||t.kind==="operate.evidence-item"||t.kind==="operate.outcomes"||t.kind==="operate.outcome"||t.kind==="operate.history"?r.jsx(qL,{route:t,projection:a,binding:s}):r.jsx("div",{className:"op-workspace op-workspace--unknown","data-route-kind":t.kind,children:r.jsx(be,{state:"incompatible",eyebrow:"Route composition",title:"Destination is not implemented",description:"This parsed route has no dedicated verified workspace in the current dashboard build."})}):r.jsxs("div",{className:"op-workspace op-workspace--unknown","data-route-kind":"not-found",children:[r.jsx("p",{className:"op-eyebrow",children:"Closed route"}),r.jsx("h1",{children:"Destination not available"}),r.jsx("p",{children:"This address is not part of the OpenPlanr dashboard route contract."}),r.jsx("a",{className:"op-inline-action",href:"#/overview",children:"Return to Planning overview"})]})}const Zg=Object.freeze([{label:"Plan",items:[{kind:"planning.overview",icon:"gauge"},{kind:"planning.list",icon:"list"},{kind:"planning.graph",icon:"workflow"},{kind:"planning.board",icon:"columns-3"},{kind:"planning.sprints",icon:"calendar-range"},{kind:"planning.activity",icon:"activity"}]}]),uu=Object.freeze([{label:"Work",items:[{kind:"operate.today",icon:"target"},{kind:"operate.inbox",icon:"inbox"},{kind:"operate.actions",icon:"git-pull-request"},{kind:"operate.cycles",icon:"calendar-days"}]},{label:"Record",items:[{kind:"operate.evidence",icon:"file-check"},{kind:"operate.outcomes",icon:"flag"},{kind:"operate.history",icon:"history"},{kind:"operate.recovery",icon:"life-buoy"}]}]),Xg=Object.freeze([{kind:"planning.console",icon:"terminal"},{kind:"system.diagnostics",icon:"life-buoy"}]),YI=new Map(Tw.map(e=>[e.kind,e])),JL={"planning.detail":"planning.list","planning.spec":"planning.list","operate.cycle":"operate.cycles","operate.review":"operate.cycles","operate.inbox-item":"operate.inbox","operate.action":"operate.actions","operate.action-planning":"operate.actions","operate.evidence-item":"operate.evidence","operate.outcome":"operate.outcomes"};function HI(e,t){return t.kind==="not-found"?!1:e.kind===t.kind?!0:JL[t.kind]===e.kind}function ow({item:e,route:t}){const a=YI.get(e.kind);return a?r.jsxs("a",{className:"pc-rail__item",href:a.href,"aria-current":HI(a,t)?"page":void 0,children:[r.jsx(Be,{name:e.icon,size:14}),r.jsx("span",{children:a.label})]}):null}function cw({item:e,route:t,onNavigate:a}){const s=YI.get(e.kind);return s?r.jsxs("a",{className:"pc-mobile-nav__item",href:s.href,"aria-current":HI(s,t)?"page":void 0,onClick:a,children:[r.jsx(Be,{name:e.icon,size:16}),r.jsx("span",{children:s.label})]}):null}function ZL({product:e,route:t,operateAvailable:a}){var A,y,m,E,b;const[s,c]=B.useState(!1);B.useEffect(()=>c(!1),[t.kind]);const l=e==="operate"?((A=uu[0])==null?void 0:A.items.slice(0,3))??[]:((y=Zg[0])==null?void 0:y.items.slice(0,3))??[],u=e==="operate"?[...((m=uu[0])==null?void 0:m.items.slice(3))??[],...((E=uu[1])==null?void 0:E.items)??[],...Xg]:[...((b=Zg[0])==null?void 0:b.items.slice(3))??[],...Xg],f=e==="operate"?"Operate":"Planning",h=e==="operate"?{href:"#/overview",icon:"list-tree",label:"Planning",unavailable:!1}:{href:"#/operate/today",icon:a?"gauge":"unplug",label:"Operate",unavailable:!a};return r.jsxs("nav",{className:"pc-mobile-nav","aria-label":`Mobile ${f} navigation`,children:[l.map(w=>r.jsx(cw,{item:w,route:t},w.kind)),r.jsxs("a",{className:"pc-mobile-nav__item",href:h.href,"data-unavailable":h.unavailable||void 0,title:h.unavailable?"operate — local reviews available; actions require a command gateway":void 0,children:[r.jsx(Be,{name:h.icon,size:16}),r.jsx("span",{children:h.label})]}),r.jsxs("details",{className:"pc-mobile-more",open:s,onToggle:w=>c(w.currentTarget.open),children:[r.jsxs("summary",{className:"pc-mobile-nav__item","aria-label":`More ${f} destinations`,children:[r.jsx(Be,{name:"layers",size:16}),r.jsx("span",{children:"More"})]}),r.jsx("div",{className:"pc-mobile-more__sheet",children:u.map(w=>r.jsx(cw,{item:w,route:t,onNavigate:()=>c(!1)},w.kind))})]})]})}function XL({product:e,route:t,operateAvailable:a,onOpenPalette:s}){const c=e==="operate"?uu:Zg,l=!a;return r.jsxs(r.Fragment,{children:[r.jsxs("nav",{className:"pc-rail","aria-label":"Dashboard navigation",children:[r.jsxs("div",{className:"pc-rail__brand",children:[r.jsx("span",{className:"pc-rail__tile","aria-hidden":"true",children:"P"}),r.jsx("span",{className:"pc-rail__wordmark",children:"openplanr"}),r.jsx(Be,{name:"chevrons-up-down",size:13,color:"var(--pc-text-tertiary)"})]}),r.jsxs("div",{className:"pc-rail__products",children:[r.jsxs("a",{className:"pc-rail__product",href:"#/overview","aria-current":e==="planning"?"page":void 0,children:[r.jsx(Be,{name:"list-tree",size:12}),"planning"]}),r.jsxs("a",{className:"pc-rail__product",href:"#/operate/today","aria-current":e==="operate"?"page":void 0,"data-unavailable":l||void 0,title:l?"operate — local reviews available; actions require a command gateway":"operate",children:[r.jsx(Be,{name:l?"unplug":"gauge",size:12}),"operate"]})]}),r.jsxs("button",{type:"button",className:"pc-rail__palette",onClick:s,"aria-keyshortcuts":"Meta+K Control+K",children:[r.jsx(Be,{name:"search",size:13}),r.jsx("span",{children:"Command…"}),r.jsxs("span",{className:"pc-rail__keys",children:[r.jsx(dr,{size:"sm",children:"⌘"}),r.jsx(dr,{size:"sm",children:"K"})]})]}),r.jsx("div",{className:"pc-rail__sections",children:c.map(u=>r.jsxs("div",{className:"pc-rail__section",children:[r.jsx("div",{className:"pc-rail__label",children:u.label}),r.jsx("div",{className:"pc-rail__items",children:u.items.map(f=>r.jsx(ow,{item:f,route:t},f.kind))})]},u.label))}),r.jsx("div",{className:"pc-rail__footer",children:Xg.map(u=>r.jsx(ow,{item:u,route:t},u.kind))})]}),r.jsx(ZL,{product:e,route:t,operateAvailable:a},t.kind)]})}const zI=Object.freeze({booting:{label:"booting",icon:"loader-circle",tone:"amber",dot:"amber",dotLabel:"connecting to the watcher"},connected:{label:"connected",icon:"activity",tone:"lime",dot:"lime",dotLabel:"watcher connected"},"read-only":{label:"read-only",icon:"lock",tone:"ink",dot:"lime",dotLabel:"watcher connected"},stale:{label:"stale",icon:"clock",tone:"amber",dot:"amber",dotLabel:"watcher stale"},offline:{label:"offline",icon:"unplug",tone:"verm",dot:"off",dotLabel:"watcher offline"},incompatible:{label:"incompatible",icon:"octagon-alert",tone:"verm",dot:"off",dotLabel:"watcher stopped"}});function lw({state:e}){const t=zI[e];return r.jsxs("span",{className:"pc-conn","data-tone":t.tone,title:`connection: ${t.label}`,children:[r.jsx(Be,{name:t.icon,size:11,spin:e==="booting"}),t.label]})}function WL({state:e}){const t=zI[e];return r.jsxs("span",{className:"pc-watcher",role:"status","aria-label":t.dotLabel,children:[r.jsx("span",{className:"pc-watcher__dot","data-dot":t.dot,"aria-hidden":"true"}),r.jsx("span",{className:"pc-watcher__label",children:t.dotLabel})]})}const $I="op-theme",dw=Object.freeze({system:"light",light:"dark",dark:"system"}),eP=Object.freeze({system:"monitor",light:"sun",dark:"moon"});function tP(){try{const e=localStorage.getItem($I);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function uw(e){const t=document.documentElement;e==="system"?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e)}function nP(){const[e,t]=B.useState("system");return B.useEffect(()=>{const a=tP();t(a),uw(a)},[]),r.jsx(_j,{icon:eP[e],label:`Theme: ${e}. Switch to ${dw[e]}.`,size:"sm",onClick:()=>{const a=dw[e];t(a),uw(a);try{localStorage.setItem($I,a)}catch{}}})}function aP({projectName:e,showSubject:t=!1,route:a,connectionState:s,inspectorOpen:c,onToggleInspector:l,onOpenPalette:u}){const f=So(a),h=a.product??"system",A=!t||a.kind==="not-found"?null:a.subjectId;return r.jsxs("header",{className:"pc-topbar",children:[e?r.jsx("span",{className:"pc-topbar__crumb",title:e,children:e}):null,r.jsx("span",{className:"pc-topbar__crumb",children:h}),r.jsx(Be,{name:"chevron-right",size:12,color:"var(--pc-text-tertiary)"}),r.jsx("span",{className:"pc-topbar__view",children:(f==null?void 0:f.label)??"Closed route"}),A?r.jsxs(r.Fragment,{children:[r.jsx(Be,{name:"chevron-right",size:12,color:"var(--pc-text-tertiary)"}),r.jsx("span",{className:"pc-topbar__subject",title:A,children:A})]}):null,r.jsxs("button",{type:"button",className:"pc-topbar__palette",onClick:u,"aria-label":"Open the command palette","aria-keyshortcuts":"Meta+K Control+K",children:[r.jsx(Be,{name:"search",size:13}),r.jsx("span",{className:"pc-topbar__placeholder",children:"Jump to a view or an artifact…"}),r.jsxs("span",{className:"pc-rail__keys",children:[r.jsx(dr,{size:"sm",children:"⌘"}),r.jsx(dr,{size:"sm",children:"K"})]})]}),r.jsxs("output",{className:"pc-topbar__end","aria-live":"polite",children:[s!=="read-only"?r.jsx(lw,{state:s}):null,r.jsx(lw,{state:"read-only"})]}),r.jsx(nP,{}),r.jsx(_j,{icon:c?"panel-right-close":"panel-left-close",label:c?"Hide inspector":"Show inspector",size:"sm",active:c,onClick:l})]})}function iP({branch:e,nodeCount:t,edgeCount:a,connectionState:s,buildId:c}){return r.jsxs("footer",{className:"pc-statusbar",children:[r.jsxs("span",{className:"pc-statusbar__item",children:[r.jsx(Be,{name:"git-branch",size:11}),r.jsx("span",{className:"pc-statusbar__text",children:e??r.jsx(gt,{children:"no branch"})})]}),r.jsx("span",{className:"pc-statusbar__item",children:r.jsx("span",{className:"pc-statusbar__text",children:t===null?"graph not read":`${t} nodes · ${a===null?"—":a} edges`})}),r.jsx(WL,{state:s}),r.jsx("span",{className:"pc-statusbar__end",title:"Served build",children:r.jsx("span",{className:"pc-statusbar__text",children:c})})]})}const rP=Object.freeze(["type","sprintId","updated","dependsOn","ref"]);function fw(e){typeof window<"u"&&(window.location.hash=e)}function sP({mode:e,selection:t,floating:a}){return r.jsx("aside",{className:"pc-shell-inspector","data-floating":a||void 0,"aria-label":"Inspector",children:e==="skeleton"?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"pc-shell-inspector__head",children:[r.jsx(cn,{w:92,h:18,radius:"var(--pc-radius-xs)"}),r.jsx(cn,{w:64,h:14})]}),r.jsx(cn,{h:16}),r.jsx(cn,{w:"72%",h:16}),r.jsx("div",{className:"pc-shell-inspector__skeleton",children:rP.map((s,c)=>r.jsxs("div",{className:"pc-shell-inspector__skeleton-row",children:[r.jsx("span",{children:s}),r.jsx(cn,{h:12,delay:c*60})]},s))})]}):e==="stub"?r.jsxs("div",{className:"pc-shell-inspector__stub",children:[r.jsx("span",{className:"pc-shell-inspector__id",children:"inspector"}),r.jsx("p",{children:"No artifact has been read. The schema on disk is a version this build does not parse."})]}):t===null?r.jsx(Jt,{icon:"square-dashed",title:"Nothing selected",description:"Pick a row in a table or a node in the graph to read it here."}):t.kind==="action"?r.jsxs("div",{className:"pc-shell-inspector__content","aria-live":"polite",children:[r.jsxs("div",{className:"pc-shell-inspector__head",children:[r.jsx("span",{className:"pc-shell-inspector__id",children:t.actionId}),r.jsx(jg,{state:t.state,size:"sm"})]}),r.jsx("h2",{className:"pc-shell-inspector__title",children:t.title}),r.jsxs("div",{className:"pc-shell-inspector__metadata",children:[r.jsx(wt,{label:"Revision",mono:!0,children:t.revision}),r.jsx(wt,{label:"Route",mono:!0,children:t.route??r.jsx(gt,{})}),r.jsx(wt,{label:"Executions",mono:!0,children:t.executions>0?t.executions:r.jsx(gt,{children:"none"})}),r.jsx(wt,{label:"Deep link",mono:!0,children:t.deepLink??r.jsx(gt,{})})]}),t.href?r.jsx(ua,{variant:"secondary",size:"sm",iconAfter:"arrow-right",onClick:()=>fw(t.href),children:"Open action"}):null]}):r.jsxs("div",{className:"pc-shell-inspector__content","aria-live":"polite",children:[r.jsxs("div",{className:"pc-shell-inspector__head",children:[r.jsx(os,{type:t.type,id:t.id}),r.jsx(bi,{status:t.status,size:"sm"})]}),r.jsx("h2",{className:"pc-shell-inspector__title",children:t.title}),r.jsxs("div",{className:"pc-shell-inspector__metadata",children:[r.jsx(wt,{label:"Type",mono:!0,children:t.type}),r.jsx(wt,{label:"Sprint",mono:!0,children:t.sprintId??r.jsx(gt,{})}),r.jsx(wt,{label:"Updated",mono:!0,children:t.updated??r.jsx(gt,{})}),r.jsx(wt,{label:"Dependencies",mono:!0,children:t.dependsOn.length>0?t.dependsOn.join(", "):r.jsx(gt,{})}),r.jsx(wt,{label:"Reference",mono:!0,children:t.ref??r.jsx(gt,{})})]}),t.href?r.jsx(ua,{variant:"secondary",size:"sm",iconAfter:"arrow-right",onClick:()=>fw(t.href),children:"Open artifact"}):null]})})}const pw=1180,ng=Object.freeze({"planning.overview":{eyebrow:"planr-status",shape:"overview"},"planning.list":{eyebrow:"planr-plan",shape:"table",columns:[{label:"Item"},{label:"Status",width:132},{label:"Sprint",width:88},{label:"Deps",width:56},{label:"Updated",width:88},{label:"Ref",width:96}]},"planning.graph":{eyebrow:"planr-diagram",shape:"graph"},"planning.board":{eyebrow:"planr-status",shape:"board"},"planning.sprints":{eyebrow:"planr-status",shape:"cards"},"planning.activity":{eyebrow:"planr-status",shape:"cards"},"planning.search":{eyebrow:"planr-status",shape:"table",columns:[{label:"Result"},{label:"Kind",width:120}]},"planning.console":{eyebrow:"planr-dashboard",shape:"table",columns:[{label:"Skill",width:190},{label:"Purpose"},{label:"Invocation",width:268}]},"planning.detail":{eyebrow:"planr-plan",shape:"detail"},"planning.spec":{eyebrow:"planr-spec",shape:"detail"},"system.diagnostics":{eyebrow:"planr-doctor",shape:"table",columns:[{label:"Check"},{label:"Detail"},{label:"Result",width:140}]}}),oP=Object.freeze({eyebrow:"planr-operate",shape:"cards"}),cP=Object.freeze(["a","b","c","d","e"]);function lP(e){return e.kind!=="not-found"&&e.kind in ng?ng[e.kind]:e.product==="operate"?oP:ng["planning.overview"]}function dP({route:e,note:t}){const a=So(e),s=lP(e),c=e.subjectId??(a==null?void 0:a.label)??"Workspace",l=e.product==="operate"?"Reading the Operate projection. The route is already resolved.":`Reading the graph from ${Kc}/. The route is already resolved.`;return r.jsxs("div",{className:"pc-transit","aria-busy":"true",children:[r.jsx(st,{eyebrow:s.eyebrow,title:c,count:t,description:l}),s.shape==="overview"?r.jsxs(r.Fragment,{children:[r.jsx(At,{padding:14,children:r.jsx(cn,{h:44})}),r.jsx("div",{className:"pc-transit__gap",children:r.jsx(xg,{rows:4,label:"Loading blocked",columns:[{label:"Item"},{label:"Depends on",width:200},{label:"Sprint",width:92},{label:"Updated",width:88}]})})]}):s.shape==="graph"?r.jsx(At,{padding:14,children:r.jsx(cn,{h:420})}):s.shape==="board"?r.jsx("div",{className:"pc-transit__board",children:cP.map((u,f)=>r.jsxs(At,{padding:10,children:[r.jsx(cn,{w:"52%",h:12,delay:f*60}),r.jsx("div",{className:"pc-transit__gap-sm",children:r.jsx(cn,{h:54,delay:f*60+40})}),r.jsx("div",{className:"pc-transit__gap-sm",children:r.jsx(cn,{h:54,delay:f*60+80})})]},u))}):s.shape==="cards"?r.jsx(uo,{count:4,label:`Loading ${c}`}):s.shape==="detail"?r.jsx(uo,{count:1,height:168,min:520,label:"Loading artifact"}):r.jsx(xg,{rows:8,columns:s.columns??[],label:`Loading ${c}`})]})}function uP({route:e,phase:t,detail:a}){const s=t==="incompatible"||t==="unavailable",c=["checking",s?t:"compatible"];return r.jsxs("div",{className:"pc-boot",children:[r.jsxs("div",{className:"pc-boot__strip",role:"status","aria-live":"polite",children:[r.jsx(Be,{name:s?"octagon-alert":"loader-circle",size:13,spin:!s,color:s?"var(--pc-astate-failed-fg)":"var(--pc-astate-proposed-fg)"}),r.jsx("span",{children:"boot"}),r.jsx("span",{className:"pc-boot__steps",children:c.map((l,u)=>r.jsxs(B.Fragment,{children:[u>0?r.jsx(Be,{name:"chevron-right",size:11,color:"var(--pc-text-tertiary)"}):null,r.jsx("span",{className:"pc-boot__phase","data-current":l===t||void 0,children:l})]},l))})]}),r.jsx("div",{className:"pc-boot__body",children:s?r.jsx("div",{className:"pc-boot__card",children:r.jsx(At,{padding:14,children:r.jsxs("div",{className:"pc-boot__stack",children:[r.jsx(qt,{tone:t==="incompatible"?"danger":"warn",title:t==="incompatible"?"This build cannot read the graph on disk":"No graph at this path",children:a??(t==="incompatible"?`The ${Kc}/ schema on disk is a version this dashboard does not read. Nothing was opened, and nothing on disk was touched.`:`The dashboard started, but there is no ${Kc}/ directory to read. Planning fills in as soon as one exists.`)}),r.jsx(xa,{command:t==="incompatible"?"/planr-doctor":"/planr-plan",label:t==="incompatible"?"check the schema version":"create the graph",size:"sm"})]})})}):r.jsx("div",{className:"pc-shell__scroll",children:r.jsx(dP,{route:e,note:"booting"})})})]})}function fP({state:e,reason:t}){return e==="stale"?r.jsx("div",{className:"pc-plane-banner",children:r.jsx(qt,{tone:"warn",title:"Showing the last good read",children:t})}):r.jsxs("div",{className:"pc-plane-banner",children:[r.jsx(qt,{tone:"danger",title:"Offline — the watcher is not reachable",children:t}),r.jsx(xa,{command:"/planr-dashboard",label:"restart the local reader",size:"sm"})]})}function pP({detail:e}){return r.jsxs("div",{className:"pc-incompatible",children:[r.jsx(qt,{tone:"danger",title:"This build cannot read the graph on disk",children:e??`The ${Kc}/ schema is a version the dashboard does not understand. It stopped rather than render a partial or wrong reading of the plan.`}),r.jsx(xa,{command:"/planr-doctor",label:"report the schema version on disk",size:"sm"}),r.jsx(qt,{tone:"info",title:"Nothing was changed",children:"The dashboard only ever reads. No file was migrated, rewritten or removed."})]})}const UI=1440;function hP(e){return typeof window>"u"?()=>{}:(window.addEventListener("resize",e),()=>window.removeEventListener("resize",e))}function hw(){return typeof window>"u"?UI:window.innerWidth}function gP(){const{route:e,identity:t,connection:a,buildId:s,binding:c,projection:l,planningProjection:u,operateSearchBindings:f,operateReviewNavigation:h,refetchCurrent:A,bootstrap:y,bootPhase:m,bootDetail:E}=oA(),b=TG(u),w=qA(),j=B.useSyncExternalStore(hP,hw,()=>UI)<pw,[I,C]=B.useState(()=>hw()>=pw);B.useEffect(()=>{j&&C(!1)},[j,e]),B.useEffect(()=>{w.openTick>0&&C(!0)},[w.openTick]);const O=e.product??"planning",S=m==="incompatible"||a.state==="incompatible",_=e.kind==="system.diagnostics"||S,k=a.state==="booting"&&!_,N=k?"skeleton":S?"stub":"selection",z=y!==null&&y.queryRoots.operate===null,M=e.product==="operate"&&z,L=(c==null?void 0:c.productArea)==="planning"?Br(u,c):null,Z=L?null:$j(u),F=L?L.graph.nodes.length:Z&&Z.length>0?Z.length:null,oe=L?L.graph.edges.length:null;return r.jsxs("div",{className:"pc-shell","data-dashboard-build-id":s,"data-product":e.product??"system",children:[r.jsx("a",{className:"pc-skip-link",href:"#main-content",onClick:re=>{var pe;re.preventDefault(),(pe=document.getElementById("main-content"))==null||pe.focus({preventScroll:!1})},children:"Skip to main content"}),r.jsx(XL,{product:O,route:e,operateAvailable:!z,onOpenPalette:b.show}),r.jsxs("div",{className:"pc-shell__column",children:[r.jsx(aP,{route:e,projectName:t.projectName,showSubject:PL({route:e,projection:l,binding:c}),connectionState:a.state,inspectorOpen:I,onToggleInspector:()=>C(re=>!re),onOpenPalette:b.show}),r.jsxs("div",{className:"pc-shell__plane",children:[r.jsx("main",{id:"main-content",className:"pc-shell__main",tabIndex:-1,"aria-busy":k||void 0,children:M?r.jsx(Z2,{route:e,origin:y.origin},e.kind):k?r.jsx(uP,{route:e,phase:m,detail:E}):r.jsxs(r.Fragment,{children:[a.state==="stale"||a.state==="offline"?r.jsx(fP,{state:a.state,reason:a.reason}):null,r.jsx("div",{className:"pc-shell__scroll",children:_?r.jsxs(r.Fragment,{children:[S?r.jsx(pP,{detail:E}):null,r.jsx(C2,{embeddedBuildId:s,bootstrap:y,bootPhase:m,bootDetail:E,connection:a})]}):r.jsx("div",{className:"op-route-frame",children:r.jsx(KL,{route:e,projection:l,binding:c,connectionState:a.state,searchSources:b.sources,operateSearchBindings:f,operateReviewNavigation:h,refetchCurrent:A})})})]})}),I?r.jsx(sP,{mode:N,selection:w.selection,floating:j},`${e.kind}:${e.subjectId??""}:${w.openTick}`):null]}),r.jsx(iP,{branch:(y==null?void 0:y.project.branch)??null,nodeCount:F,edgeCount:oe,connectionState:a.state,buildId:s})]}),r.jsx(NG,{open:b.open,onClose:b.close,sources:b.sources,operateBindings:f,preferredOperateCycleId:e.product==="operate"?c==null?void 0:c.cycleId:null,connectionState:a.state})]})}const gw=/^[A-Za-z0-9][A-Za-z0-9._-]{0,159}$/u,Wg=/^sha256:[a-f0-9]{64}$/u,ag=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,AP=/^(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)$/u,mP=/^[0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z.-]+)?$/u,yP=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,EP=["DASHBOARD_MANIFEST_MISSING","DASHBOARD_MANIFEST_INVALID","DASHBOARD_ASSET_MISSING","DASHBOARD_BUILD_MISMATCH"];function ui(e,t,a){if(e!==t)throw new ee(a,`expected ${t}`);return t}function Aw(e,t,a){if(typeof e!="string"||!t.includes(e))throw new ee(a,"contains an unsupported value");return e}function BP(e){if(typeof e!="string"||e.length<1||e.length>160)throw new ee("$.project.name","contains an invalid string");for(const t of e){const a=t.codePointAt(0)??0;if(a<=31||a>=127&&a<=159)throw new ee("$.project.name","contains an invalid string")}return e}function mw(e,t){if(e===null)return null;const a=ht(e,["actorId","projectId","scopeId","domainId","domainVersion","generation"],t);if(!Number.isSafeInteger(a.generation)||a.generation<0)throw new ee(`${t}.generation`,"expected a non-negative safe integer");return Object.freeze({actorId:Fe(a.actorId,`${t}.actorId`,ag),projectId:Fe(a.projectId,`${t}.projectId`,Wg),scopeId:Fe(a.scopeId,`${t}.scopeId`,ag),domainId:Fe(a.domainId,`${t}.domainId`,ag),domainVersion:Fe(a.domainVersion,`${t}.domainVersion`,AP),generation:a.generation})}function vP(e){const t=ht(e,["kind","schemaVersion","protocolVersion","ui","server","capabilities","project","queryRoots","origin","compatibility"],"$"),a=ht(t.ui,["buildId","expectedBuildId","assetManifestHash"],"$.ui"),s=ht(t.server,["packageVersion"],"$.server"),c=ht(t.capabilities,["planningGraph","operateExperience","operateCommands","diagnostics"],"$.capabilities"),l=ht(c.planningGraph,["schemaVersion"],"$.capabilities.planningGraph"),u=ht(c.operateExperience,["protocolVersion","schemaVersion"],"$.capabilities.operateExperience"),f=ht(c.operateCommands,["protocolVersion","transportVersion","available"],"$.capabilities.operateCommands"),h=ht(c.diagnostics,["schemaVersion","available"],"$.capabilities.diagnostics"),A=ht(t.project,["projectId","name","branch","products"],"$.project"),y=ht(t.queryRoots,["planning","operate"],"$.queryRoots"),m=ht(t.compatibility,["status","reasonCodes"],"$.compatibility"),E=wh(a.buildId,"$.ui.buildId",gw),b=wh(a.expectedBuildId,"$.ui.expectedBuildId",gw),w=wh(a.assetManifestHash,"$.ui.assetManifestHash",Wg),x=Aw(m.status,["compatible","incompatible"],"$.compatibility.status");if(!Array.isArray(m.reasonCodes))throw new ee("$.compatibility.reasonCodes","expected an array");const j=m.reasonCodes.map((S,_)=>Aw(S,EP,`$.compatibility.reasonCodes[${_}]`));if(new Set(j).size!==j.length)throw new ee("$.compatibility.reasonCodes","contains duplicates");if(x==="compatible"){if(!E||!b||!w||j.length>0)throw new ee("$.compatibility","compatible bootstrap lacks exact build custody");if(E!==b)throw new ee("$.ui","compatible build identities differ")}else if(j.length===0)throw new ee("$.compatibility","incompatible bootstrap requires a reason");if(E!==b&&!j.includes("DASHBOARD_BUILD_MISMATCH"))throw new ee("$.ui","build mismatch requires its exact reason");if(j.includes("DASHBOARD_BUILD_MISMATCH")&&E===b)throw new ee("$.ui","build mismatch reason requires unequal build identities");if(!Array.isArray(A.products)||A.products.length!==2||new Set(A.products).size!==2||!A.products.includes("planning")||!A.products.includes("operate"))throw new ee("$.project.products","expected the exact Planning and Operate set");const I=Fe(A.projectId,"$.project.projectId",Wg),C=mw(y.planning,"$.queryRoots.planning"),O=mw(y.operate,"$.queryRoots.operate");for(const[S,_]of[["planning",C],["operate",O]])if(_!==null&&_.projectId!==I)throw new ee(`$.queryRoots.${S}.projectId`,"does not equal the bootstrap project identity");if(C!==null&&(C.scopeId!=="planning"||C.domainId!=="planning"||C.domainVersion!=="1.0.0"))throw new ee("$.queryRoots.planning","does not equal the Planning read domain");return Object.freeze({kind:ui(t.kind,"dashboard-bootstrap","$.kind"),schemaVersion:ui(t.schemaVersion,"1.0.0","$.schemaVersion"),protocolVersion:ui(t.protocolVersion,"1.2.0","$.protocolVersion"),ui:Object.freeze({buildId:E,expectedBuildId:b,assetManifestHash:w}),server:Object.freeze({packageVersion:Fe(s.packageVersion,"$.server.packageVersion",mP)}),capabilities:Object.freeze({planningGraph:Object.freeze({schemaVersion:ui(l.schemaVersion,"1.0.0","$.capabilities.planningGraph.schemaVersion")}),operateExperience:Object.freeze({protocolVersion:ui(u.protocolVersion,"2.0.0","$.capabilities.operateExperience.protocolVersion"),schemaVersion:ui(u.schemaVersion,"1.0.0","$.capabilities.operateExperience.schemaVersion")}),operateCommands:Object.freeze({protocolVersion:ui(f.protocolVersion,"2.0.0","$.capabilities.operateCommands.protocolVersion"),transportVersion:ui(f.transportVersion,"1.0.0","$.capabilities.operateCommands.transportVersion"),available:Uc(f.available,"$.capabilities.operateCommands.available")}),diagnostics:Object.freeze({schemaVersion:ui(h.schemaVersion,"1.0.0","$.capabilities.diagnostics.schemaVersion"),available:Uc(h.available,"$.capabilities.diagnostics.available")})}),project:Object.freeze({projectId:I,name:BP(A.name),branch:Fe(A.branch,"$.project.branch",/^.{1,255}$/u),products:Object.freeze([...A.products])}),queryRoots:Object.freeze({planning:C,operate:O}),origin:Fe(t.origin,"$.origin",yP),compatibility:Object.freeze({status:x,reasonCodes:Object.freeze(j)})})}async function bP(e,t={}){var a;try{const s=await(t.fetcher??fetch)("/api/bootstrap",{method:"GET",headers:{accept:"application/json"},signal:t.signal});if(!s.ok)throw new ee("$",`bootstrap request failed with ${s.status}`);if(!((a=s.headers.get("content-type"))!=null&&a.toLowerCase().startsWith("application/json")))throw new ee("$","bootstrap response is not JSON");const c=vP(Yw(await s.text())),l=t.expectedOrigin??(typeof window>"u"?null:window.location.origin);if(!l||c.origin!==l)throw new ee("$.origin","does not equal the current loopback origin");return c.compatibility.status!=="compatible"||c.ui.buildId!==e||c.ui.expectedBuildId!==e?Object.freeze({bootstrap:c,phase:"incompatible",detail:c.compatibility.reasonCodes.length>0?c.compatibility.reasonCodes.join(" · "):"Installed dashboard build is incompatible."}):Object.freeze({bootstrap:c,phase:"compatible",detail:null})}catch(s){if(s instanceof DOMException&&s.name==="AbortError")throw s;return Object.freeze({bootstrap:null,phase:"unavailable",detail:s instanceof Error?s.message:"OpenPlanr did not return a validated bootstrap envelope."})}}const LI=/^http:\/\/(?:127\.0\.0\.1|localhost):\d+$/u,ef=4*1024*1024;function wP(e){return typeof e=="object"&&e!==null&&e.kind==="operate-action-display-workspace"}function xP(e){return typeof e=="object"&&e!==null&&e.kind==="operate-recovery-display-surface"}function PI(e){return typeof e=="object"&&e!==null&&e.kind==="operate-experience-display-surface"}function jP(e,t,a){if(!LI.test(e))throw new Error("Operate dashboard reads require an exact loopback origin.");if(a.productArea!=="operate"||a.cycleId===null)throw new Error("Operate collection identity is incomplete.");const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s.searchParams.set("cycleId",a.cycleId),s.searchParams.set("projectId",a.projectId),s.searchParams.set("generation",String(a.generation)),s}async function QP(e){const{identity:t}=e;if(t.cycleId===null)return null;const a=jP(e.origin,"/api/operate/actions",t),s=await(e.fetcher??fetch)(a,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>ef)throw new Error("Actions display response exceeds the dashboard JSON limit.");let l;try{l=JSON.parse(c)}catch{throw new Error("Actions display response is not JSON.")}if(!s.ok||!PI(l))return null;try{Cn(l,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:l.payload.generatedAt,eventHead:l.payload.eventHead,viewHash:t.viewHash??l.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",subjectId:null,cycleId:t.cycleId})}catch{return null}return l}function IP(e,t,a){if(!LI.test(e))throw new Error("Operate dashboard reads require an exact loopback origin.");if(a.productArea!=="operate"||a.cycleId===null||a.subjectId===null)throw new Error("Operate Action detail identity is incomplete.");const s=new URL(t,e);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s}async function CP(e){const{identity:t}=e;if(t.subjectId===null||t.cycleId===null)return null;const a=IP(e.origin,`/api/operate/actions/${encodeURIComponent(t.subjectId)}`,t),s=await(e.fetcher??fetch)(a,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>ef)throw new Error("Action display response exceeds the dashboard JSON limit.");let l;try{l=JSON.parse(c)}catch{throw new Error("Action display response is not JSON.")}if(!s.ok||!wP(l))return null;try{const u={actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:l.payload.generatedAt,eventHead:l.payload.eventHead,viewHash:t.viewHash??l.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",cycleId:t.cycleId,subjectId:t.subjectId,actionId:t.subjectId};kg(l,u)}catch{return null}return l}async function SP(e){const{identity:t}=e,a=t.subjectId===null?"/api/operate/inbox":`/api/operate/inbox/${encodeURIComponent(t.subjectId)}`,s=new URL(a,e.origin);s.searchParams.set("scopeId",t.scopeId),s.searchParams.set("domainId",t.domainId),s.searchParams.set("domainVersion",t.domainVersion),s.searchParams.set("projectId",t.projectId),s.searchParams.set("generation",String(t.generation));const c=await(e.fetcher??fetch)(s,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),l=await c.text();if(new TextEncoder().encode(l).byteLength>ef)throw new Error("Inbox display response exceeds the dashboard JSON limit.");let u;try{u=JSON.parse(l)}catch{throw new Error("Inbox display response is not JSON.")}if(!c.ok||!PI(u))return null;try{Cn(u,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:u.payload.generatedAt,eventHead:u.payload.eventHead,viewHash:t.viewHash??u.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:"inbox",subjectId:t.subjectId,cycleId:t.cycleId})}catch{return null}return u}async function OP(e){const{identity:t}=e,a=new URL("/api/operate/recovery",e.origin);a.searchParams.set("scopeId",t.scopeId),a.searchParams.set("domainId",t.domainId),a.searchParams.set("domainVersion",t.domainVersion);const s=await(e.fetcher??fetch)(a,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>ef)throw new Error("Recovery display response exceeds the dashboard JSON limit.");let l;try{l=JSON.parse(c)}catch{throw new Error("Recovery display response is not JSON.")}if(!s.ok||!xP(l))return null;try{Mg(l,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:l.payload.generatedAt,eventHead:l.payload.eventHead,viewHash:t.viewHash??l.payload.viewHash})}catch{return null}return l}const _P=Object.freeze({createDetailValidator:qu,createInboxValidator:am,createListValidator:XA,createRecoveryValidator:im,fetchDetail:CP,fetchInbox:SP,fetchList:QP,fetchRecovery:OP}),NP=Object.freeze({createEvidenceValidator:FQ,createHistoryValidator:qQ,createOutcomeValidator:JQ}),RP=Object.freeze({createDetailValidator:gI,createListValidator:nm}),DP=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,TP=4*1024*1024;function kP(e,t,a,s){if(!DP.test(e))throw new Error("Review reads require an exact loopback origin.");const c=new URL(`/api/operate/cycles/${encodeURIComponent(a)}/reviews/${encodeURIComponent(s)}`,e);return c.searchParams.set("scopeId",t.scopeId),c.searchParams.set("domainId",t.domainId),c.searchParams.set("domainVersion",t.domainVersion),c}async function MP(e){var l;const t=await(e.fetcher??fetch)(kP(e.origin,e.root,e.cycleId,e.reviewId),{headers:{accept:"application/json","x-openplanr-actor":e.root.actorId},cache:"no-store",signal:e.signal});if(!t.ok||!((l=t.headers.get("content-type"))!=null&&l.startsWith("application/json")))throw new Error("The owner-issued Review workspace is unavailable.");const a=await t.text();if(new TextEncoder().encode(a).byteLength>TP)throw new Error("The owner-issued Review workspace exceeds its wire limit.");let s;try{s=JSON.parse(a)}catch{throw new Error("The owner-issued Review workspace is not JSON.")}const c=as(s);return nl(c),nl(c,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,cycleId:e.cycleId,reviewId:e.reviewId,sourceArtifactKind:c.payload.sourceArtifactKind,sourceArtifactHash:c.payload.sourceArtifactHash,sourceEventHead:c.payload.sourceEventHead,sourceReadEventHead:c.payload.sourceReadEventHead,sourceViewHash:c.payload.sourceViewHash}),c}const GP=Object.freeze({createValidator:Xu,fetch:MP,uniqueNavigationForCycle:pI}),YP=Object.freeze({createValidator:rm,resolveModel:NI}),HP=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,zP=4*1024*1024;function $P(e,t){if(!HP.test(e))throw new Error("Dashboard reads require an exact loopback origin.");return new URL(t,e)}async function dm(e,t){var s;if(t!=null&&t.aborted)throw t.reason;if(!e.ok||!((s=e.headers.get("content-type"))!=null&&s.startsWith("application/json")))throw new Error("The owner-issued dashboard projection is unavailable.");const a=await e.text();if(new TextEncoder().encode(a).byteLength>zP)throw new Error("The owner-issued dashboard projection exceeds its wire limit.");try{return JSON.parse(a)}catch{throw new Error("The owner-issued dashboard projection is not JSON.")}}function um(e,t,a){const s=$P(e,t);return s.searchParams.set("scopeId",a.scopeId),s.searchParams.set("domainId",a.domainId),s.searchParams.set("domainVersion",a.domainVersion),s}function fm(e){return Object.freeze({accept:"application/json","x-openplanr-actor":e.actorId})}function UP(e,t,a={}){if(t.kind==="not-found"||t.product===null)throw new Error("A query root cannot bind an unknown or system route.");return Ve({productArea:t.product,route:Pa(t),actorId:e.actorId,projectId:e.projectId,scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,cycleId:a.cycleId??null,subjectId:t.subjectId,eventHead:a.eventHead??null,viewHash:a.viewHash??null,generation:e.generation})}async function LP(e){const t=um(e.origin,`/api/operate/${e.surface}`,e.root),a=await(e.fetcher??fetch)(t,{headers:fm(e.root),cache:"no-store",signal:e.signal}),s=as(await dm(a,e.signal)),c=Cn(s).payload;if(Cn(s,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:c.viewHash,surface:e.surface,subjectId:null,cycleId:null}),c.surface!==e.surface)throw new Error("The owner returned a display for a different Operate surface.");return s}function PP(e,t){if(t==="history")return"/api/operate/history";if(t==="outcome"){if(e.subjectId===null)throw new Error("Outcome detail requires an exact subject.");return`/api/operate/outcomes/${encodeURIComponent(e.subjectId)}`}const a=e.subjectId?`/${encodeURIComponent(e.subjectId)}`:"";return`/api/operate/${t}${a}`}async function FP(e){const t=um(e.origin,PP(e.route,e.surface),e.root);t.searchParams.set("cycleId",e.cycleId);const a=await(e.fetcher??fetch)(t,{headers:fm(e.root),cache:"no-store",signal:e.signal}),s=as(await dm(a,e.signal)),c=La(s).payload;if(La(s,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,cycleId:e.cycleId,subjectId:e.route.subjectId,surface:e.surface,query:null,format:null,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:c.viewHash}),c.surface!==e.surface)throw new Error("The owner returned a display for a different Operate audit surface.");return s}async function VP(e){const t=um(e.origin,`/api/operate/cycles/${encodeURIComponent(e.cycleId)}`,e.root),a=await(e.fetcher??fetch)(t,{headers:fm(e.root),cache:"no-store",signal:e.signal}),s=as(await dm(a,e.signal)),c=bu(s).payload;return bu(s,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:c.viewHash,subjectId:e.cycleId,cycleId:e.cycleId}),s}const qP=Object.freeze({fetchAuditDisplay:FP,fetchCycleDisplay:VP,fetchRootDisplay:LP,identityFromRoot:UP}),KP=Object.freeze({actions:_P,audit:NP,cycles:RP,review:GP,today:YP,transport:qP}),JP=Object.freeze(Object.defineProperty({__proto__:null,operateRuntime:KP},Symbol.toStringTag,{value:"Module"})),ZP=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,tf=/^sha256:[a-f0-9]{64}$/u,XP=/^ppatch_[1-9][0-9]*_[a-f0-9]{16}$/u,WP=/^PLANNING_[A-Z0-9_]{1,119}$/u,e4=new Set(["epic","feature","story","task","spec","backlog","quick","sprint","adr"]),t4=new Set(["done","in-progress","blocked","outstanding","addressed"]),n4=new Set(["contains","depends_on"]),a4=new Set(["agile","spec","mixed","empty"]),pm=16*1024*1024,FI=96,VI=25e4;function he(e,t){throw new ee(e,t)}function jn(e,t,a){if(e===null||typeof e!="object"||Array.isArray(e))return he(a,"expected an object");try{const s=Object.getPrototypeOf(e);if(s!==Object.prototype&&s!==null)return he(a,"expected a plain object");const c=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(c).some(f=>{var h,A;return typeof f!="string"||((h=c[f])==null?void 0:h.get)!==void 0||((A=c[f])==null?void 0:A.set)!==void 0}))return he(a,"contains an accessor or symbol field");const l=Object.keys(c).sort(),u=[...t].sort();return JSON.stringify(l)!==JSON.stringify(u)?he(a,"contains missing or unknown fields"):Object.fromEntries(Object.entries(c).map(([f,h])=>[f,h.value]))}catch(s){if(s instanceof ee)throw s;return he(a,"could not be inspected safely")}}function i4(e,t,a){for(const s of t)try{return jn(e,s,a)}catch(c){if(!(c instanceof ee))throw c}return he(a,"contains missing or unknown fields")}function r4(e,t){const a=new WeakSet;let s=0;const c=(l,u,f)=>{if(s+=1,f>FI||s>VI)return he(u,"contains an over-complex value");if(l===null||typeof l=="string"||typeof l=="boolean")return l;if(typeof l=="number")return Number.isFinite(l)?l:he(u,"contains a non-finite number");if(typeof l!="object")return he(u,"contains a non-JSON value");if(a.has(l))return he(u,"contains a repeated or cyclic object");a.add(l);try{const h=Object.getPrototypeOf(l),A=Array.isArray(l)?Array.prototype:Object.prototype;if(h!==A&&h!==null)return he(u,"contains a non-plain object");const y=Object.getOwnPropertyDescriptors(l);if(Reflect.ownKeys(y).some(m=>{var E,b;return typeof m!="string"||((E=y[m])==null?void 0:E.get)!==void 0||((b=y[m])==null?void 0:b.set)!==void 0}))return he(u,"contains an accessor or symbol field");if(Array.isArray(l)){if(Object.keys(y).some(b=>b!=="length"&&!/^(?:0|[1-9][0-9]*)$/u.test(b)))return he(u,"contains an invalid array field");const E=[];for(let b=0;b<l.length;b+=1){const w=y[String(b)];if(!w)return he(u,"contains a sparse array");E.push(c(w.value,`${u}[${b}]`,f+1))}return E}return Object.fromEntries(Object.entries(y).map(([m,E])=>[m,c(E.value,`${u}.${m}`,f+1)]))}catch(h){if(h instanceof ee)throw h;return he(u,"could not be inspected safely")}finally{a.delete(l)}};return c(e,t,0)}function Qo(e,t,a){return typeof e=="string"&&a.test(e)?e:he(t,"contains an invalid string")}function s4(e){for(let t=0;t<e.length;t+=1){const a=e.charCodeAt(t);if(a>=55296&&a<=56319){const s=e.charCodeAt(t+1);if(!(s>=56320&&s<=57343))return!0;t+=1}else if(a>=56320&&a<=57343)return!0}return!1}function Cu(e,t){return typeof e!="string"||e.length<1||e.length>256||e==="."||e===".."||e.includes("\\")||s4(e)||[...e].some(a=>{const s=a.codePointAt(0)??0;return s<=31||s===127})?he(t,"contains an invalid subject identity"):e}function o4(e,t){const a=jn(e,["sequence","hash"],t);if(!Number.isSafeInteger(a.sequence)||a.sequence<0)return he(`${t}.sequence`,"expected a non-negative safe integer");const s=a.sequence,c=a.hash===null?null:Qo(a.hash,`${t}.hash`,tf);return s===0!=(c===null)?he(t,"has an inconsistent head"):Object.freeze({sequence:s,hash:c})}function sl(e,t){const a=jn(e,["eventHead","viewHash"],t);return Object.freeze({eventHead:o4(a.eventHead,`${t}.eventHead`),viewHash:Qo(a.viewHash,`${t}.viewHash`,tf)})}function c4(e,t="$.binding"){const a=jn(e,["actorId","projectId","scopeId","domainId","domainVersion","generation"],t);return!Number.isSafeInteger(a.generation)||a.generation<0?he(`${t}.generation`,"expected a non-negative safe integer"):a.scopeId!=="planning"||a.domainId!=="planning"||a.domainVersion!=="1.0.0"?he(t,"does not belong to the Planning read domain"):Object.freeze({actorId:Qo(a.actorId,`${t}.actorId`,ZP),projectId:Qo(a.projectId,`${t}.projectId`,tf),scopeId:"planning",domainId:"planning",domainVersion:"1.0.0",generation:a.generation})}function l4(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function Yc(e,t){return l4(e.eventHead,t.eventHead)&&e.viewHash===t.viewHash}function eA(e,t){return t.productArea==="planning"&&e.actorId===t.actorId&&e.projectId===t.projectId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.generation===t.generation}function qI(e,t){const a=c4(e);return eA(a,t)?a:he("$.binding","is foreign to the active read")}function tA(e,t,a){const s=["id","type","title","status","frontmatter"],c=["githubIssue","linearIssueIdentifier"],l=i4(e,Array.from({length:1<<c.length},(y,m)=>[...s,...c.filter((E,b)=>(m&1<<b)!==0)]),t),u=l.type,f=l.status;if(typeof u!="string"||!e4.has(u))return he(`${t}.type`,"contains an unsupported artifact type");if(typeof f!="string"||!t4.has(f))return he(`${t}.status`,"contains an unsupported status");if(typeof l.title!="string")return he(`${t}.title`,"expected a string");const h=r4(l.frontmatter,`${t}.frontmatter`);if(h===null||typeof h!="object"||Array.isArray(h))return he(`${t}.frontmatter`,"expected a plain object");const A={id:Cu(l.id,`${t}.id`),type:u,title:l.title,status:f,frontmatter:h};if(Object.hasOwn(l,"githubIssue")){if(!(typeof l.githubIssue=="string"||Number.isSafeInteger(l.githubIssue)&&l.githubIssue>=0))return he(`${t}.githubIssue`,"expected a string or non-negative integer");A.githubIssue=l.githubIssue}if(Object.hasOwn(l,"linearIssueIdentifier")){if(typeof l.linearIssueIdentifier!="string")return he(`${t}.linearIssueIdentifier`,"expected a string");A.linearIssueIdentifier=l.linearIssueIdentifier}return Object.hasOwn(l,"body")?he(`${t}.body`,"is not permitted on a graph node"):eQ(A)}function nA(e,t){const a=jn(e,["from","to","kind"],t);return typeof a.kind!="string"||!n4.has(a.kind)?he(`${t}.kind`,"contains an unsupported edge kind"):Object.freeze({from:Cu(a.from,`${t}.from`),to:Cu(a.to,`${t}.to`),kind:a.kind})}function hm(e,t){const a=jn(e,["nodes","edges"],t);if(!Array.isArray(a.nodes)||!Array.isArray(a.edges))return he(t,"expected node and edge arrays");const s=a.nodes.map((f,h)=>tA(f,`${t}.nodes[${h}]`)),c=new Set;for(const f of s){if(c.has(f.id))return he(`${t}.nodes`,"contains duplicate node identities");c.add(f.id)}const l=a.edges.map((f,h)=>nA(f,`${t}.edges[${h}]`)),u=new Set;for(const f of l){const h=`${f.kind}\0${f.from}\0${f.to}`;if(!c.has(f.from)||!c.has(f.to))return he(`${t}.edges`,"contains an edge outside this graph");if(u.has(h))return he(`${t}.edges`,"contains duplicate edges");u.add(h)}return Object.freeze({nodes:Object.freeze(s),edges:Object.freeze(l)})}function gm(e){let t=!1,a=!1;for(const s of e.nodes)(s.type==="epic"||s.type==="feature")&&(t=!0),s.type==="spec"&&(a=!0);return t&&a?"mixed":t?"agile":a?"spec":"empty"}function KI(e,t){return typeof e=="string"&&a4.has(e)?e:he(t,"contains an unsupported Planning mode")}function d4(e,t){const a=jn(e,["updated","added","removed","edges"],t),s=jn(a.edges,["added","removed"],`${t}.edges`);if(!Array.isArray(a.updated)||!Array.isArray(a.added)||!Array.isArray(a.removed)||!Array.isArray(s.added)||!Array.isArray(s.removed))return he(t,"contains invalid patch arrays");const c=a.updated.map((b,w)=>tA(b,`${t}.updated[${w}]`)),l=a.added.map((b,w)=>tA(b,`${t}.added[${w}]`)),u=a.removed.map((b,w)=>Cu(b,`${t}.removed[${w}]`)),f=s.added.map((b,w)=>nA(b,`${t}.edges.added[${w}]`)),h=s.removed.map((b,w)=>nA(b,`${t}.edges.removed[${w}]`)),A=[...c,...l].map(b=>b.id);if(new Set(A).size!==A.length||new Set(u).size!==u.length||A.some(b=>u.includes(b)))return he(t,"contains conflicting node operations");const y=b=>`${b.kind}\0${b.from}\0${b.to}`,m=f.map(y),E=h.map(y);return new Set(m).size!==m.length||new Set(E).size!==E.length||m.some(b=>E.includes(b))?he(`${t}.edges`,"contains conflicting edge operations"):Object.freeze({updated:Object.freeze(c),added:Object.freeze(l),removed:Object.freeze(u),edges:Object.freeze({added:Object.freeze(f),removed:Object.freeze(h)})})}function JI(e){if(typeof e!="string"||new TextEncoder().encode(e).byteLength>pm)return he("$","response exceeds the Planning wire limit");try{let t=0,a=0;const s=()=>{for(;/\s/u.test(e[t]??"");)t+=1},c=()=>{if(e[t]!=='"')return he("$","contains an invalid JSON string");const u=t;for(t+=1;t<e.length;)if(e[t]==="\\")t+=2;else{if(e[t]==='"')return t+=1,JSON.parse(e.slice(u,t));t+=1}return he("$","contains an unterminated JSON string")},l=u=>{var f;if(a+=1,(u>FI||a>VI)&&he("$","response exceeds the Planning complexity limit"),s(),e[t]==="{"){t+=1,s();const h=new Set;if(e[t]==="}"){t+=1;return}for(;t<e.length;){s();const A=c();if(h.has(A)&&he("$","response contains duplicate object members"),h.add(A),s(),e[t]!==":"&&he("$","contains an invalid JSON object"),t+=1,l(u+1),s(),e[t]==="}"){t+=1;return}e[t]!==","&&he("$","contains an invalid JSON object"),t+=1}}else if(e[t]==="["){if(t+=1,s(),e[t]==="]"){t+=1;return}for(;t<e.length;){if(l(u+1),s(),e[t]==="]"){t+=1;return}e[t]!==","&&he("$","contains an invalid JSON array"),t+=1}}else if(e[t]==='"'){c();return}else{const h=(f=e.slice(t).match(/^(?:true|false|null|-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)/u))==null?void 0:f[0];h||he("$","contains an invalid JSON value"),t+=h.length;return}he("$","contains an unterminated JSON value")};return l(0),s(),t!==e.length?he("$","contains trailing JSON bytes"):JSON.parse(e)}catch(t){if(t instanceof ee)throw t;return he("$","contains invalid JSON")}}function Su(e,t){const a=jn(e,["kind","schemaVersion","binding","cursor","mode","graph"],"$");if(a.kind!=="planning-graph-snapshot"||a.schemaVersion!=="1.0.0")return he("$","has an unsupported Planning graph contract");const s=qI(a.binding,t),c=sl(a.cursor,"$.cursor"),l=hm(a.graph,"$.graph"),u=KI(a.mode,"$.mode");return xn(l)!==c.viewHash||gm(l)!==u?he("$","graph, mode, and cursor commitment disagree"):Object.freeze({kind:"planning-graph-snapshot",schemaVersion:"1.0.0",binding:s,cursor:c,mode:u,graph:l})}function u4(e,t){return Su(JI(e),t)}function f4(e,t){const a=jn(e,["patchId","patchHash","from","to","patch"],"$.payload"),s=sl(a.from,"$.payload.from"),c=sl(a.to,"$.payload.to"),l=d4(a.patch,"$.payload.patch"),u=Qo(a.patchHash,"$.payload.patchHash",tf),f=Qo(a.patchId,"$.payload.patchId",XP),h=xn(l),A=xn({kind:"planning-live-head",previous:s.eventHead,sequence:c.eventHead.sequence,patchHash:h,viewHash:c.viewHash});return!Yc(c,t)||c.eventHead.sequence!==s.eventHead.sequence+1||c.viewHash===s.viewHash||c.eventHead.hash!==A||xn({from:s,to:c,patch:l})!==u||f!==`ppatch_${c.eventHead.sequence}_${u.slice(7,23)}`?he("$.payload","patch cursor and commitment disagree"):Object.freeze({patchId:f,patchHash:u,from:s,to:c,patch:l})}function yw(e,t){const a=typeof e=="string"?JI(e):e,s=jn(a,["kind","schemaVersion","event","binding","cursor","payload"],"$");if(s.kind!=="planning-live-event"||s.schemaVersion!=="1.0.0")return he("$","has an unsupported Planning live contract");const c=qI(s.binding,t),l=sl(s.cursor,"$.cursor"),u={kind:"planning-live-event",schemaVersion:"1.0.0",binding:c,cursor:l};if(s.event==="snapshot"){const f=jn(s.payload,["mode","graph"],"$.payload"),h=hm(f.graph,"$.payload.graph"),A=KI(f.mode,"$.payload.mode");return xn(h)!==l.viewHash||gm(h)!==A?he("$.payload","snapshot graph and cursor commitment disagree"):Object.freeze({...u,event:"snapshot",payload:Object.freeze({mode:A,graph:h})})}if(s.event==="patch")return Object.freeze({...u,event:"patch",payload:f4(s.payload,l)});if(s.event==="ready"){const f=jn(s.payload,["readOnly","reasonCodes"],"$.payload");return f.readOnly!==!0||!Array.isArray(f.reasonCodes)||f.reasonCodes.length?he("$.payload","contains an invalid ready state"):Object.freeze({...u,event:"ready",payload:Object.freeze({readOnly:!0,reasonCodes:Object.freeze([])})})}if(s.event==="stale"){const f=jn(s.payload,["readOnly","reasonCodes","recovery"],"$.payload");return f.readOnly!==!0||!Array.isArray(f.reasonCodes)||f.reasonCodes.length<1||f.reasonCodes.length>8||f.reasonCodes.some(h=>typeof h!="string"||!WP.test(h))||typeof f.recovery!="string"||f.recovery.length<1||f.recovery.length>240?he("$.payload","contains an invalid stale state"):Object.freeze({...u,event:"stale",payload:Object.freeze({readOnly:!0,reasonCodes:Object.freeze([...f.reasonCodes]),recovery:f.recovery})})}return he("$.event","contains an unsupported Planning event")}function p4(e,t){const a=new Set(t.patch.removed),s=new Map(t.patch.updated.map(y=>[y.id,y])),c=e.nodes.filter(y=>!a.has(y.id)).map(y=>s.get(y.id)??y),l=new Set(c.map(y=>y.id));for(const y of t.patch.updated)if(!l.has(y.id))return he("$.payload.patch.updated","targets a missing node");for(const y of t.patch.added){if(l.has(y.id))return he("$.payload.patch.added","duplicates an existing node");l.add(y.id),c.push(y)}const u=y=>`${y.kind}\0${y.from}\0${y.to}`,f=new Set(t.patch.edges.removed.map(u)),h=e.edges.filter(y=>!f.has(u(y))),A=new Set(h.map(u));for(const y of t.patch.edges.removed)if(!e.edges.some(m=>u(m)===u(y)))return he("$.payload.patch.edges.removed","targets a missing edge");for(const y of t.patch.edges.added){if(A.has(u(y)))return he("$.payload.patch.edges.added","duplicates an existing edge");A.add(u(y)),h.push(y)}return hm({nodes:c,edges:h},"$.nextGraph")}function h4(e){const t=e.identity;let a=e.initial?Su(e.initial,t):null,s=!1,c=!1,l=null,u=a?JSON.stringify(a):null;const f=new Map;a&&!eA(a.binding,t)&&he("$.initial.binding","is foreign to this reconciler");const h=()=>s||!e.isCurrent(t),A=m=>h()?Object.freeze({kind:"rejected",reason:"inactive"}):(c||(c=!0,l=m,e.onRefetch(m)),Object.freeze({kind:"refetch",reason:l??m})),y=m=>{var x,j;if(h())return Object.freeze({kind:"rejected",reason:"inactive"});if(c)return Object.freeze({kind:"refetch",reason:l??"invalid-event"});if(!eA(m.binding,t))return Object.freeze({kind:"rejected",reason:"foreign-binding"});if(m.event==="snapshot"){const I=Object.freeze({kind:"planning-graph-snapshot",schemaVersion:"1.0.0",binding:m.binding,cursor:m.cursor,mode:m.payload.mode,graph:m.payload.graph});if(a){if(I.cursor.eventHead.sequence<a.cursor.eventHead.sequence)return A("restart-regression");if(I.cursor.eventHead.sequence>a.cursor.eventHead.sequence)return A("gap");if(!Yc(I.cursor,a.cursor))return A("divergent-duplicate");const C=JSON.stringify(I);return u===C?Object.freeze({kind:"duplicate"}):A("divergent-duplicate")}return a=I,u=JSON.stringify(I),f.clear(),c=!1,l=null,e.onSnapshot(I),Object.freeze({kind:"accepted",event:"snapshot"})}if(!a)return A("cursor-mismatch");if(m.event==="ready")return Yc(m.cursor,a.cursor)?((x=e.onReady)==null||x.call(e,m),Object.freeze({kind:"accepted",event:"ready"})):A("cursor-mismatch");if(m.event==="stale")return(j=e.onStale)==null||j.call(e,m),A("stale");const E=m.payload,b=`${E.to.eventHead.sequence}:${E.to.eventHead.hash}:${E.to.viewHash}`,w=JSON.stringify(E);if(Yc(E.to,a.cursor))return f.get(b)===w?Object.freeze({kind:"duplicate"}):A("divergent-duplicate");if(E.to.eventHead.sequence<=a.cursor.eventHead.sequence)return A("reordered");if(E.to.eventHead.sequence!==a.cursor.eventHead.sequence+1)return A("gap");if(!Yc(E.from,a.cursor))return A("reordered");try{const I=p4(a.graph,E);if(xn(I)!==E.to.viewHash)return A("state-mismatch");const C=Object.freeze({...a,cursor:E.to,mode:gm(I),graph:I});return f.set(b,w),a=C,u=null,e.onPatch(C,E),Object.freeze({kind:"accepted",event:"patch"})}catch{return A("state-mismatch")}};return Object.freeze({ingest:y,ingestJson:m=>{if(h())return Object.freeze({kind:"rejected",reason:"inactive"});try{return y(yw(m,t))}catch{return A("invalid-event")}},ingestSseFrame:(m,E)=>{if(h())return Object.freeze({kind:"rejected",reason:"inactive"});try{const b=yw(m,t);return E&&E!==b.event?A("invalid-event"):y(b)}catch{return A("invalid-event")}},getSnapshot:()=>a,markReconciled:m=>{const E=Su(m,t);return a=E,u=JSON.stringify(E),f.clear(),c=!1,l=null,!0},dispose:()=>{s=!0}})}function ZI(e,t,a){const s=new URL(e);if(s.protocol!=="http:"||!["127.0.0.1","localhost"].includes(s.hostname)||s.pathname!=="/"||s.search||s.hash)return he("$.origin","expected an exact loopback HTTP origin");if(a.productArea!=="planning"||a.scopeId!=="planning"||a.domainId!=="planning"||a.domainVersion!=="1.0.0")return he("$.identity","does not belong to the Planning read domain");const c=new URL(t,s);return c.searchParams.set("projectId",a.projectId),c.searchParams.set("scopeId",a.scopeId),c.searchParams.set("domainId",a.domainId),c.searchParams.set("domainVersion",a.domainVersion),c.searchParams.set("generation",String(a.generation)),c}async function g4(e,t){var s;if(!e.ok||!((s=e.headers.get("content-type"))!=null&&s.startsWith(t)))return he("$","Planning response is unavailable");const a=await e.text();return new TextEncoder().encode(a).byteLength>pm?he("$","Planning response exceeds its wire limit"):a}async function A4(e){const t=ZI(e.origin,"/api/planning/graph",e.identity),a=await(e.fetcher??fetch)(t,{headers:{accept:"application/json","x-openplanr-actor":e.identity.actorId},cache:"no-store",signal:e.signal});return u4(await g4(a,"application/json"),e.identity)}function m4(e){let t="";for(const a of e)t+=String.fromCharCode(a);return btoa(t).replaceAll("+","-").replaceAll("/","_").replace(/=+$/u,"")}function y4(e){const t=sl(e,"$.cursor");return m4(new TextEncoder().encode(JSON.stringify(t)))}function E4(e){var u,f;const t=new AbortController,a=()=>t.abort();(u=e.signal)!=null&&u.aborted?t.abort(e.signal.reason):(f=e.signal)==null||f.addEventListener("abort",a,{once:!0});const s=ZI(e.origin,"/api/planning/events",e.identity),c={accept:"text/event-stream","x-openplanr-actor":e.identity.actorId};e.lastEventId&&(c["last-event-id"]=e.lastEventId);const l=(async()=>{var E,b;const h=await(e.fetcher??fetch)(s,{headers:c,signal:t.signal});if(!h.ok||!((E=h.headers.get("content-type"))!=null&&E.startsWith("text/event-stream"))||!h.body)return he("$","Planning live response is unavailable");const A=h.body.getReader(),y=new TextDecoder;let m="";try{for(;!t.signal.aborted;){const w=await A.read();if(m+=y.decode(w.value,{stream:!w.done}),m=m.replaceAll(`\r
|
|
547
|
-
`,`
|
|
548
|
-
`).replace(/\r(?!$)/gu,`
|
|
549
|
-
`),w.done&&m.endsWith("\r")&&(m=`${m.slice(0,-1)}
|
|
550
|
-
`),new TextEncoder().encode(m).byteLength>pm)return he("$","Planning live frame exceeds its wire limit");let x=m.indexOf(`
|
|
551
|
-
|
|
552
|
-
`);for(;x>=0;){const j=m.slice(0,x);m=m.slice(x+2);const I=j.split(`
|
|
553
|
-
`),C=(b=I.find(S=>S.startsWith("event:")))==null?void 0:b.slice(6).trim(),O=I.filter(S=>S.startsWith("data:")).map(S=>S.slice(5).trimStart()).join(`
|
|
554
|
-
`);O&&e.reconciler.ingestSseFrame(O,C),x=m.indexOf(`
|
|
555
|
-
|
|
556
|
-
`)}if(w.done){if(m.trim())return he("$","Planning live response ended mid-frame");break}}}finally{A.releaseLock()}})().catch(h=>{if(!t.signal.aborted)throw h instanceof ee?h:new ee("$","Planning live response failed safely")}).finally(()=>{var h;return(h=e.signal)==null?void 0:h.removeEventListener("abort",a)});return Object.freeze({completion:l,close:()=>{var h;t.abort(),e.reconciler.dispose(),(h=e.signal)==null||h.removeEventListener("abort",a)}})}const B4=Object.freeze({connectSse:E4,createSseReconciler:h4,encodeCheckpoint:y4,fetchGraph:A4,parseGraphEnvelope:Su}),v4=Object.freeze(Object.defineProperty({__proto__:null,planningRuntime:B4},Symbol.toStringTag,{value:"Module"})),b4=Object.freeze({create:Ve}),w4=Object.freeze({ValidationError:ee,isValidatedState:Pe,parseSafeError:Uw,parseState:so,statePolicy:oo}),x4=Object.freeze({parse:Ha}),j4=Object.freeze({connectSse:aI,createSseReconciler:nI}),Q4=Object.freeze({identity:b4,projection:w4,routing:x4,transport:j4}),I4=Object.freeze(Object.defineProperty({__proto__:null,dashboardRuntime:Q4},Symbol.toStringTag,{value:"Module"})),{operateRuntime:Xe}=JP,{planningRuntime:Hc}=v4,{dashboardRuntime:Ne}=I4,XI=new Set(["ready","read-only","stale","partial","blocked","offline"]),Pr=Ne.projection.parseState({kind:"booting",binding:null,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:Ne.projection.statePolicy("booting")}),WI=Ne.routing.parse("#/overview");function e0(e){return`DASHBOARD_${e.toUpperCase().replace("-","_")}`}function pr(e){return Ne.projection.parseState({kind:"loading",binding:e,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:Ne.projection.statePolicy("loading")},{currentBinding:e})}function t0(e,t=null){return Ne.projection.parseState({kind:"unavailable",binding:e,data:null,reasonCodes:["DASHBOARD_UNAVAILABLE"],error:t,mutationEnabled:!1,policy:Ne.projection.statePolicy("unavailable")},{currentBinding:e})}function yr(e,t=!1){const s=(e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{}).code==="DASHBOARD_RESPONSE_INVALID"||e instanceof Ne.projection.ValidationError;return Ne.projection.parseSafeError({code:t||!s?"DASHBOARD_READ_FAILED":"DASHBOARD_RESPONSE_INVALID",retryable:!1,context:{operation:"dashboard.projection.read"}})}function Ya(e,t){const a=t??yr(void 0);if(a.code!=="DASHBOARD_RESPONSE_INVALID")return t0(e,a);const s=Ne.projection.parseSafeError({code:"DASHBOARD_RESPONSE_INVALID",retryable:!1,context:{}});return Ne.projection.parseState({kind:"corrupt",binding:null,data:null,reasonCodes:["DASHBOARD_CORRUPT"],error:s,mutationEnabled:!1,policy:Ne.projection.statePolicy("corrupt")})}function C4(e,t,a,s,c=!1,l=null){if(!XI.has(e))throw new Error("Unsupported owner presentation state.");return Ne.projection.parseState({kind:e,binding:t,data:a,reasonCodes:e==="ready"?[]:[e0(e)],error:l,mutationEnabled:e==="ready"&&c,policy:Ne.projection.statePolicy(e)},{currentBinding:t,validateData:s})}function S4(e,t){return!Ne.projection.isValidatedState(e)||e.binding===null||e.data===null?e:Ne.projection.parseState({kind:"stale",binding:e.binding,data:e.data,reasonCodes:["DASHBOARD_STALE"],error:t,mutationEnabled:!1,policy:Ne.projection.statePolicy("stale")},{currentBinding:e.binding,validateData:a=>a!==null})}function O4(e,t){return Ne.projection.parseState({kind:e,binding:t,data:null,reasonCodes:[e0(e)],error:null,mutationEnabled:!1,policy:Ne.projection.statePolicy(e)},{currentBinding:t})}function Fr(e,t){const a=B.useRef(t);a.current=t;const s=B.useRef(e);s.current=e;const c=B.useRef(null),l=B.useRef(null),[u,f]=B.useState(0),[h,A]=B.useState(()=>Object.freeze({key:null,revision:0,phase:"idle",data:null,error:null})),y=B.useCallback(()=>f(j=>j+1),[]),m=B.useCallback(()=>{var O;if(c.current!==null)return c.current;const j=s.current;if(j===null)return Promise.reject(new Error("Owner read is unavailable."));const I=new AbortController;(O=l.current)==null||O.abort(),l.current=I,A(S=>Object.freeze({key:j,revision:S.revision,phase:"loading",data:S.key===j?S.data:null,error:null}));const C=a.current(I.signal).then(S=>{if(I.signal.aborted||s.current!==j)throw new DOMException("Cancelled","AbortError");return A(_=>Object.freeze({key:j,revision:_.revision,phase:"ready",data:S,error:null})),S}).catch(S=>{throw!I.signal.aborted&&s.current===j&&A(_=>Object.freeze({key:j,revision:_.revision,phase:"failed",data:_.key===j?_.data:null,error:yr(S,_.key===j&&_.data!==null)})),S}).finally(()=>{c.current===C&&(c.current=null),l.current===I&&(l.current=null)});return c.current=C,C},[]);B.useEffect(()=>{var I;if((I=l.current)==null||I.abort(),l.current=null,c.current=null,e===null){A(Object.freeze({key:null,revision:u,phase:"idle",data:null,error:null}));return}const j=new AbortController;return A(C=>Object.freeze({key:e,revision:u,phase:"loading",data:C.key===e?C.data:null,error:null})),a.current(j.signal).then(C=>{j.signal.aborted||A(Object.freeze({key:e,revision:u,phase:"ready",data:C,error:null}))}).catch(C=>{j.signal.aborted||A(O=>Object.freeze({key:e,revision:u,phase:"failed",data:O.key===e?O.data:null,error:yr(C,O.key===e&&O.data!==null)}))}),()=>j.abort()},[e,u]);const E=h.key===e&&h.revision===u,b=E?h.phase:e===null?"idle":"loading",w=E?h.data:null,x=E?h.error:null;return B.useMemo(()=>Object.freeze({phase:b,data:w,error:x,refetch:y,reconcile:m}),[w,x,b,m,y])}function _4(e){return e===null?null:JSON.stringify(e)}function N4(e){return e.product==="planning"?e:WI}function R4(e){return e.kind==="operate.evidence"||e.kind==="operate.evidence-item"?"evidence":e.kind==="operate.outcomes"?"outcomes":e.kind==="operate.outcome"?"outcome":e.kind==="operate.history"?"history":null}function tu(e){return e.kind==="operate.actions"||e.kind==="operate.action"||e.kind==="operate.action-planning"||e.kind==="operate.inbox"||e.kind==="operate.inbox-item"||e.kind==="operate.recovery"}function D4(e){return e.kind==="operate.action-planning"?{kind:"operate.action",product:"operate",subjectId:e.subjectId}:e}function Vr(e){return Object.freeze({eventHead:e.payload.eventHead,viewHash:e.payload.viewHash})}function Io(e){const t=e.payload.status;if(!XI.has(t))throw new Ne.projection.ValidationError("$.payload.status","contains an unsupported display status");return t}function T4(e){return e.payload.status==="terminal"?"read-only":Io(e)}function Ew(e,t){if(e.data===null)return e.phase==="loading"||e.phase==="idle"?pr(t):Ya(t,e.error);const a=Ne.identity.create({...t,eventHead:e.data.payload.sourceEventHead,viewHash:e.data.payload.sourceViewHash});return Ei(e,a,e.data,Xe.review.createValidator(a),T4(e.data),e.data.payload.mutationEnabled)}function Ei(e,t,a,s,c,l=!1){const u=e.phase==="failed"?"stale":e.phase==="loading"||e.phase==="idle"?"refreshing":c;try{return C4(u,t,a,s,l,u==="stale"?e.error??yr(void 0,!0):null)}catch(f){return Ya(t,yr(f))}}function Bw(e,t){if(e.data===null)return e.phase==="loading"||e.phase==="idle"?pr(t):Ya(t,e.error);const a=Ne.identity.create({...t,eventHead:e.data.cursor.eventHead,viewHash:e.data.cursor.viewHash});return Ei(e,a,e.data,s=>{try{return Hc.parseGraphEnvelope(s,t),!0}catch{return!1}},"ready")}function vw(e,t,a,s){var u;if(e.data===null)return e.phase==="loading"||e.phase==="idle"?pr(t):Ya(t,e.error);const c=Ne.identity.create({...t,...Vr(e.data)}),l=a==="today"?Xe.today.createValidator(c):Xe.cycles.createListValidator(c);return e.phase!=="ready"?Ei(e,c,e.data,l,Io(e.data),e.data.payload.mutationEnabled):a==="today"&&e.data.payload.surface==="today"&&e.data.payload.status==="ready"&&e.data.payload.data.activeCycle===null?l(e.data)?s?s.phase==="loading"||s.phase==="idle"?Ei(Object.freeze({...e,phase:"loading",error:null}),c,e.data,l,"ready"):s.phase==="failed"?Ei(Object.freeze({...e,phase:"failed",error:s.error}),c,e.data,l,"ready"):((u=s.data)==null?void 0:u.payload.surface)!=="cycles"?Ya(c,yr(new Ne.projection.ValidationError("$.payload.surface","does not contain the required cycles display"))):O4(s.data.payload.data.cycles.length===0?"first-use":"empty",c):pr(c):Ya(c,yr(new Ne.projection.ValidationError("$.data","failed its owner-boundary contract"))):Ei(e,c,e.data,l,Io(e.data),e.data.payload.mutationEnabled)}function k4(e){if(e.subjectId===null)throw new Error("Action display identity requires a subject.");return Ne.identity.create({...e,route:`#/operate/actions/${encodeURIComponent(e.subjectId)}`})}function bw(e,t,a){if(e.data===null)return e.phase==="loading"||e.phase==="idle"?pr(t):Ya(t,e.error);const s=Ne.identity.create({...t,...Vr(e.data)});let c;if(a.kind==="operate.actions")c=Xe.actions.createListValidator(s);else if(a.kind==="operate.action"||a.kind==="operate.action-planning"){const l=a.kind==="operate.action-planning"?k4(s):s;c=Xe.actions.createDetailValidator(l)}else if(a.kind==="operate.inbox"||a.kind==="operate.inbox-item")c=Xe.actions.createInboxValidator(s);else if(a.kind==="operate.recovery")c=Xe.actions.createRecoveryValidator(s);else return t0(s);return Ei(e,s,e.data,c,Io(e.data),a.kind==="operate.action-planning"?!1:e.data.payload.mutationEnabled)}function M4(e,t){var ye,Ee;const a=(e==null?void 0:e.origin)??null,s=JSON.stringify(t),[c,l]=B.useState(null),u=(e==null?void 0:e.queryRoots.planning)??null,f=(e==null?void 0:e.queryRoots.operate)??null,h=B.useMemo(()=>N4(t),[t]),A=B.useMemo(()=>u?Xe.transport.identityFromRoot(u,WI):null,[u]),y=B.useMemo(()=>u?Xe.transport.identityFromRoot(u,h):null,[u,h]),m=Fr(A?JSON.stringify(A):null,R=>{if(!a||!A)throw new Error("Planning query root is unavailable.");return Hc.fetchGraph({origin:a,identity:A,signal:R})}),E=_4(f),b=Fr(E,R=>{if(!a||!f)throw new Error("Operate query root is unavailable.");return Xe.transport.fetchRootDisplay({origin:a,root:f,surface:"today",signal:R})}),w=Fr(E,R=>{if(!a||!f)throw new Error("Operate query root is unavailable.");return Xe.transport.fetchRootDisplay({origin:a,root:f,surface:"cycles",signal:R})}),x=((ye=b.data)==null?void 0:ye.payload.surface)==="today"?b.data:null,j=(x==null?void 0:x.payload.surface)==="today"?((Ee=x.payload.data.activeCycle)==null?void 0:Ee.cycleId)??null:null,I=t.kind==="operate.cycle"?t.subjectId:t.kind==="operate.review"?t.cycleId:j,C=x?Vr(x):null,O=B.useMemo(()=>f&&t.product==="operate"&&I&&C?Xe.transport.identityFromRoot(f,t,{cycleId:I,eventHead:C.eventHead,viewHash:C.viewHash}):null,[C,f,t,I]),S=a&&f&&O?JSON.stringify({root:f,binding:O}):null,_=B.useMemo(()=>f&&t.kind==="operate.review"?Xe.transport.identityFromRoot(f,t,{cycleId:t.cycleId}):null,[f,t]),k=a&&_?JSON.stringify({root:f,route:_.route}):null,N=Fr(k,R=>{if(!a||!f||t.kind!=="operate.review")throw new Error("Operate Review query custody is incomplete.");return Xe.review.fetch({origin:a,root:f,cycleId:t.cycleId,reviewId:t.subjectId,signal:R})}),z=B.useMemo(()=>D4(t),[t]),M=B.useMemo(()=>f&&tu(t)&&I&&C?Xe.transport.identityFromRoot(f,z,{cycleId:I,eventHead:C.eventHead,viewHash:C.viewHash}):null,[z,C,f,t,I]),L=a&&f&&M?JSON.stringify({root:f,binding:M}):null,Z=R4(t),F=Fr(Z?S:null,R=>{if(!a||!f||!I||!Z)throw new Error("Operate audit query custody is incomplete.");return Xe.transport.fetchAuditDisplay({origin:a,root:f,route:t,surface:Z,cycleId:I,signal:R})}),oe=Fr(t.kind==="operate.cycle"?S:null,R=>{if(!a||!f||t.kind!=="operate.cycle")throw new Error("Operate Cycle query custody is incomplete.");return Xe.transport.fetchCycleDisplay({origin:a,root:f,cycleId:t.subjectId,signal:R})}),re=Fr(tu(t)?L:null,R=>{if(!a||!M)throw new Error("Operate route display custody is incomplete.");if(t.kind==="operate.actions")return Xe.actions.fetchList({origin:a,identity:M,signal:R});if(t.kind==="operate.action"||t.kind==="operate.action-planning")return Xe.actions.fetchDetail({origin:a,identity:M,signal:R});if(t.kind==="operate.inbox"||t.kind==="operate.inbox-item")return Xe.actions.fetchInbox({origin:a,identity:M,signal:R});if(t.kind==="operate.recovery")return Xe.actions.fetchRecovery({origin:a,identity:M,signal:R});throw new Error("Operate route does not own a bound display read.")}),pe=B.useMemo(()=>y?Bw(m,y):Pr,[y,m]),Y=B.useMemo(()=>{if(!f)return null;const R=Ne.routing.parse("#/operate/today");return Xe.transport.identityFromRoot(f,R,{cycleId:j})},[j,f]),V=B.useMemo(()=>Y?vw(b,Y,"today",w):Pr,[w,Y,b]),te=B.useMemo(()=>{if(!V.binding||!I)return null;const R=Xe.today.resolveModel({current:V},V.binding);return(R==null?void 0:R.kind)==="surface"?Xe.review.uniqueNavigationForCycle(R,I):null},[I,V]),le=B.useMemo(()=>f?Xe.transport.identityFromRoot(f,Ne.routing.parse("#/operate/cycles")):null,[f]),fe=B.useMemo(()=>le?vw(w,le,"cycles"):Pr,[le,w]),T=B.useMemo(()=>{var ne;if(!f||((ne=w.data)==null?void 0:ne.payload.surface)!=="cycles")return Object.freeze([]);const R=Vr(w.data),J=Ne.routing.parse("#/operate/cycles");return Object.freeze(w.data.payload.data.cycles.map(Ae=>Xe.transport.identityFromRoot(f,J,{cycleId:Ae.cycleId,eventHead:R.eventHead,viewHash:R.viewHash})))},[w,f]),X=B.useMemo(()=>{if(t.product==="planning")return Object.freeze({binding:pe.binding,projection:pe});if(t.product!=="operate"||!f)return Object.freeze({binding:null,projection:Pr});if(t.kind==="operate.today")return Object.freeze({binding:V.binding,projection:V});if(t.kind==="operate.cycles")return Object.freeze({binding:fe.binding,projection:fe});if(t.kind==="operate.review"){if(!_)return Object.freeze({binding:null,projection:Pr});const J=Ew(N,_);return Object.freeze({binding:J.binding,projection:J})}if(!C||!I)return Object.freeze({binding:null,projection:Pr});const R=O;if(!R)return Object.freeze({binding:null,projection:Pr});if(t.kind==="operate.cycle"){if(oe.data===null){const ne=oe.phase==="loading"||oe.phase==="idle"?pr(R):Ya(R,oe.error);return Object.freeze({binding:ne.binding,projection:ne})}const J=Ne.identity.create({...R,...Vr(oe.data)});return Object.freeze({binding:J,projection:Ei(oe,J,oe.data,Xe.cycles.createDetailValidator(J),Io(oe.data),oe.data.payload.mutationEnabled)})}if(Z){if(F.data===null){const Ae=F.phase==="loading"||F.phase==="idle"?pr(R):Ya(R,F.error);return Object.freeze({binding:Ae.binding,projection:Ae})}const J=Ne.identity.create({...R,...Vr(F.data)}),ne=Z==="evidence"?Xe.audit.createEvidenceValidator(J):Z==="outcomes"||Z==="outcome"?Xe.audit.createOutcomeValidator(J):Xe.audit.createHistoryValidator(J);return Object.freeze({binding:J,projection:Ei(F,J,F.data,ne,Io(F.data),!1)})}return tu(t)?Object.freeze({binding:R,projection:bw(re,R,t)}):Object.freeze({binding:R,projection:pr(R)})},[F,Z,re,O,oe,C,fe,f,pe,N,_,t,I,V]);B.useEffect(()=>{l(R=>R!==null&&R.routeKey!==s?null:R)},[s]);const se=B.useMemo(()=>c!==null&&c.routeKey===s&&(!Ne.projection.isValidatedState(X.projection)||X.projection.data===null)?Object.freeze({binding:c.binding,projection:c.projection}):X,[c,X,s]);B.useEffect(()=>{if(!a||!m.data||m.phase!=="ready"||!A)return;const R=Ne.identity.create({...A,eventHead:m.data.cursor.eventHead,viewHash:m.data.cursor.viewHash});let J=!0;const ne=Hc.createSseReconciler({identity:R,initial:m.data,isCurrent:()=>J,onSnapshot:()=>{},onPatch:()=>m.refetch(),onRefetch:()=>m.refetch(),onStale:()=>m.refetch()}),Ae=Hc.connectSse({origin:a,identity:R,reconciler:ne,lastEventId:Hc.encodeCheckpoint(m.data.cursor)});return Ae.completion.catch(()=>{}),()=>{J=!1,Ae.close()}},[a,A,m]),B.useEffect(()=>{if(!a||!f||!x||!Y)return;const R=Vr(x),J=Ne.identity.create({...Y,...R});let ne=!0;const Ae=Ne.transport.createSseReconciler({identity:J,isCurrent:()=>ne,onSnapshot:(xe,Ze)=>{var Ie,ce;(Ze.eventHead.sequence!==((Ie=R.eventHead)==null?void 0:Ie.sequence)||Ze.eventHead.hash!==((ce=R.eventHead)==null?void 0:ce.hash)||Ze.viewHash!==R.viewHash)&&(b.refetch(),w.refetch())},onPatch:()=>{b.refetch(),w.refetch()},onRefetch:()=>{b.refetch(),w.refetch()},onStale:()=>{b.refetch(),w.refetch()}}),we=Ne.transport.connectSse({origin:a,identity:J,reconciler:Ae});return we.completion.catch(()=>{}),()=>{ne=!1,we.close()}},[w,a,f,x,Y,b]);const de=B.useCallback(async()=>{const R=se;R.binding!==null&&Ne.projection.isValidatedState(R.projection)&&R.projection.data!==null&&l(Object.freeze({routeKey:s,binding:R.binding,projection:R.projection}));try{let J;if(t.kind==="operate.review"&&_){const ne=await N.reconcile();J=Ew(Object.freeze({phase:"ready",data:ne,error:null,refetch:N.refetch,reconcile:N.reconcile}),_)}else if(tu(t)&&O){const ne=await re.reconcile();J=bw(Object.freeze({phase:"ready",data:ne,error:null,refetch:re.refetch,reconcile:re.reconcile}),O,t)}else if(t.product==="planning"&&y){const ne=await m.reconcile();J=Bw(Object.freeze({phase:"ready",data:ne,error:null,refetch:m.refetch,reconcile:m.reconcile}),y)}else throw new Ne.projection.ValidationError("$.route","does not own an exact reconciliation read");if(!Ne.projection.isValidatedState(J)||J.data===null)throw new Ne.projection.ValidationError("$.projection","did not return a verified projection");return l(null),J}catch(J){const ne=R.binding!==null&&Ne.projection.isValidatedState(R.projection)&&R.projection.data!==null,Ae=yr(J,ne),we=ne?S4(R.projection,Ae):R.binding===null?R.projection:Ya(R.binding,Ae);return ne&&R.binding!==null&&l(Object.freeze({routeKey:s,binding:R.binding,projection:we})),we}},[re,O,se,y,m,N,_,t,s]);return Object.freeze({binding:se.binding,projection:se.projection,planningProjection:pe,operateCyclesProjection:fe,operateSearchBindings:T,operateReviewNavigation:te,refetchCurrent:de})}function ww(e){return e!==void 0?e:typeof window>"u"?"":window.location.hash}function G4(e,t){return e!==void 0||typeof window>"u"?()=>{}:(window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t))}function Y4({buildId:e,initialHash:t,identity:a,connection:s,bootstrap:c,bootPhase:l,bootDetail:u}){const f=B.useSyncExternalStore(S=>G4(t,S),()=>ww(t),()=>ww(t)),h=c===void 0&&s===void 0,[A,y]=B.useState(c??null),[m,E]=B.useState(l??(h?"checking":"compatible")),[b,w]=B.useState(u??null);B.useEffect(()=>{if(!h)return;const S=new AbortController;return E("checking"),w("Waiting for OpenPlanr to return a validated bootstrap envelope."),bP(e,{signal:S.signal}).then(_=>{y(_.bootstrap),E(_.phase==="compatible"?"compatible":_.phase),w(_.detail)}).catch(()=>{}),()=>S.abort()},[e,h]);const x=B.useMemo(()=>s??j1(A,e,b),[A,b,e,s]),j=B.useMemo(()=>a??Q1(A),[A,a]),I=B.useMemo(()=>Ha(f),[f]),C=I.kind==="system.diagnostics"||m==="incompatible"||x.state==="incompatible",O=M4(m==="compatible"&&x.state!=="incompatible"&&I.product!==null?A:null,I);return r.jsxs(E1,{buildId:e,initialHash:C?Pa(Mw):t,identity:j,connection:x,bootstrap:A,bootPhase:m,bootDetail:b,binding:O.binding,projection:O.projection,planningProjection:O.planningProjection,operateCyclesProjection:O.operateCyclesProjection,operateSearchBindings:O.operateSearchBindings,operateReviewNavigation:O.operateReviewNavigation,refetchCurrent:O.refetchCurrent,children:[r.jsx(v1,{}),r.jsx(gP,{})]})}const n0=document.querySelector("#root");if(!n0)throw new Error("OpenPlanr dashboard root element is missing.");TS.createRoot(n0).render(r.jsx(B.StrictMode,{children:r.jsx(Y4,{buildId:"dashboard-0.1.19-8b7d00340d6ac9ae"})}));
|
|
557
|
-
//# sourceMappingURL=index-n08LJ6bK.js.map
|