@skill-map/cli 0.69.0 → 0.71.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.
Files changed (45) hide show
  1. package/dist/cli/tutorial/sm-tutorial/SKILL.md +8 -3
  2. package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/agents-hub/providers/codex/en/agents-hub.md +2 -0
  3. package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/agents-hub/providers/codex/es/agents-hub.md +2 -0
  4. package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/en/todo-bullet-agent.md +1 -0
  5. package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/en/todo-bullet-command.md +1 -0
  6. package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/en/todo-bullet-skill.md +1 -0
  7. package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/es/todo-bullet-agent.md +1 -0
  8. package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/es/todo-bullet-command.md +1 -0
  9. package/dist/cli/tutorial/sm-tutorial/fixtures-data/edits/todo-connectors/providers/codex/es/todo-bullet-skill.md +1 -0
  10. package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/harness/providers/codex/en/__PROVIDER__/skills/publish/SKILL.md +2 -2
  11. package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/harness/providers/codex/es/__PROVIDER__/skills/publish/SKILL.md +2 -2
  12. package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/master/providers/codex/en/.codex/agents/master-agent.toml +1 -1
  13. package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/master/providers/codex/es/.codex/agents/master-agent.toml +1 -1
  14. package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/portfolio/providers/codex/en/.codex/agents/content-editor.toml +1 -1
  15. package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/portfolio/providers/codex/es/.codex/agents/content-editor.toml +1 -1
  16. package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/prologue/providers/codex/en/.codex/agents/demo-agent.toml +1 -1
  17. package/dist/cli/tutorial/sm-tutorial/fixtures-data/sets/prologue/providers/codex/es/.codex/agents/demo-agent.toml +1 -1
  18. package/dist/cli/tutorial/sm-tutorial/references/_core.md +73 -47
  19. package/dist/cli/tutorial/sm-tutorial/references/_manifest.yml +2 -2
  20. package/dist/cli/tutorial/sm-tutorial/references/part-authoring.md +0 -7
  21. package/dist/cli/tutorial/sm-tutorial/references/part-basic-daily.md +10 -26
  22. package/dist/cli/tutorial/sm-tutorial/references/part-basic-fundamentals.md +10 -18
  23. package/dist/cli/tutorial/sm-tutorial/references/part-basic-kickoff.md +12 -31
  24. package/dist/cli/tutorial/sm-tutorial/references/part-cli.md +0 -4
  25. package/dist/cli/tutorial/sm-tutorial/references/part-daily-loop.md +97 -43
  26. package/dist/cli/tutorial/sm-tutorial/references/part-fundamentals.md +11 -14
  27. package/dist/cli/tutorial/sm-tutorial/references/part-mcp.md +4 -14
  28. package/dist/cli/tutorial/sm-tutorial/references/part-plugins.md +0 -8
  29. package/dist/cli/tutorial/sm-tutorial/references/part-project-kickoff.md +18 -36
  30. package/dist/cli/tutorial/sm-tutorial/references/part-settings.md +2 -10
  31. package/dist/cli/tutorial/sm-tutorial/scripts/lib/paths.js +6 -5
  32. package/dist/cli.js +441 -269
  33. package/dist/index.js +115 -18
  34. package/dist/kernel/index.d.ts +27 -0
  35. package/dist/kernel/index.js +115 -18
  36. package/dist/ui/chunk-CK4C2IIP.js +3 -0
  37. package/dist/ui/{chunk-RRRXQNG6.js → chunk-EVNCL7FV.js} +21 -21
  38. package/dist/ui/{chunk-E7GLGHVY.js → chunk-GUGB4JY5.js} +1 -1
  39. package/dist/ui/{chunk-SXSNTF26.js → chunk-RSPEJBPT.js} +1 -1
  40. package/dist/ui/chunk-SQCXHF3J.js +2 -0
  41. package/dist/ui/index.html +1 -1
  42. package/dist/ui/{main-23NGLEUB.js → main-GY4PAVQW.js} +3 -3
  43. package/package.json +2 -2
  44. package/dist/ui/chunk-RLRSNHYG.js +0 -3
  45. package/dist/ui/chunk-SI4MGFOW.js +0 -2
@@ -1 +1 @@
1
- import{c as l,d as c,i as d}from"./chunk-SXSNTF26.js";import{K as a,P as o,ga as r,wc as s}from"./chunk-EJVWTBMV.js";var h={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"Per-machine preferences.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."},telemetry:{label:"Send anonymous error & usage reports",description:"Report crashes and which features you use. No file contents or paths.",hint:"Restart sm for this to take effect."}},extraTheme:{label:"Theme",description:"Pick a specialty theme.",options:{none:{label:"None",description:"Use the topbar dark/light toggle."}}},storageHintLabel:"Settings are stored in:",storageHintPath:"~/.skill-map/settings.json"},project:{heading:"Project",introPrefix:"These settings apply only to this project and are saved in",introPath:".skill-map/settings.local.json",introSuffix:".",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",sidecarWritersLabel:"Allow sidecar writers",sidecarWritersDescription:"Let actions write `.sm` files (version, tags, stability) next to your notes. Turn this off on a shared project to keep them out of the repo: the setting is committed, so it applies to the whole team.",pluginTrustLabel:"Trust plugins this project enables (this machine only)",pluginTrustDescription:"Run any plugin under .skill-map/plugins/ that the project enables, without trusting each one by hand. This applies only to your machine and is never committed. Turn it off to require per-plugin trust again.",pluginTrustConfirmHeader:"Trust every plugin this project enables?",pluginTrustConfirmIntro:"This lets any plugin the project enables run its code on this machine, including ones you have not reviewed. It applies only to your machine and is never committed.",pluginTrustConfirmAccept:"Trust project plugins",pluginTrustConfirmReject:"Cancel",referencePathsLabel:"Folders for link validation",referencePathsDescription:"If your notes link to files outside this project, list those folders here. Skill-map checks them only to confirm the links work, nothing from these folders shows up in the map.",referencePathsPlaceholder:"~/Documents/research",referencePathsInputAriaLabel:"New folder path",commaForbidden:"Add one path at a time, without commas.",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel",ignorePatternsLabel:"Ignored patterns",ignorePatternsDescriptionPrefix:"Patterns that exclude files and folders from the scan, stored in",ignorePatternsDescriptionFile:".skillmapignore",ignorePatternsDescriptionMiddle:"at the project root. Same syntax as",ignorePatternsDescriptionGitignore:".gitignore",ignorePatternsDescriptionSuffix:"(one pattern per line).",ignorePatternsPlaceholder:"secrets.md",ignorePatternsInputAriaLabel:"New ignore pattern",ignorePatternEmpty:"Pattern cannot be empty or whitespace-only.",ignorePatternHasControlChar:"Pattern must be a single line without control characters.",ignorePatternDuplicate:"This pattern is already in the list.",addIgnorePatternLabel:"Add pattern",removeIgnorePatternLabel:"Remove",activeProviderLabel:"Active provider",activeProviderDescription:"Selects which provider sees this project. The map reflects how the chosen provider interprets your files.",activeProviderSourceAutodetect:"Auto-detected from your files (no value saved yet).",activeProviderSourceDefault:"No provider marker detected. Showing the universal Markdown view (nothing saved).",activeProviderDetectedPrefix:"Detected:",activeProviderDisabledSuffix:"(disabled)",activeProviderConfirmHeader:"Switch the active provider?",activeProviderConfirmIntro:"Switching will clear the persisted scan (nodes, links, issues). Jobs and history are kept. You will need to run `sm scan` after the switch.",activeProviderConfirmAccept:"Switch and clear scan",activeProviderConfirmReject:"Cancel",activeProviderSwitchedPrefix:"Lens switched. Cleared",activeProviderSwitchedSuffix:"scan table(s). Run `sm scan` to repopulate.",activeProviderSwitchedNoDb:"Lens switched. Run `sm scan` to populate the map under the new lens."},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",changelogFooterText:"Want the full changelog?",changelogFooterLinkLabel:"See it on GitHub \u2192",changelogFooterUrl:"https://github.com/crystian/skill-map/blob/main/src/CHANGELOG.md",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutDbValue:(e,i)=>e==="present"?i:`${e} \xB7 ${i}`,aboutLoading:"Loading\u2026",aboutUnknown:"-",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.ai/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:e=>`No plugins match "${e}".`,pluginsKindFilterAll:"All",pluginsKindFilterOptionA11y:(e,i)=>i?`Show only ${e} extensions`:"Show all kinds",pluginsSourceFilterOptionA11y:(e,i)=>i?`Show only ${e} plugins`:"Show all sources",pluginsFilterA11y:"Filter plugins by source and kind",pluginsFilterAllA11y:"Show every plugin (clear the source and kind filters)",pluginsProjectEmpty:"No project plugins yet. Drop one under .skill-map/plugins/ or create it with sm plugins create <id>.",unsavedChangesMessage:e=>e===1?'1 unsaved change. Click "Apply" to persist it.':`${e} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending changes",applyA11y:"Apply pending changes and refresh the map",applyErrorPrefix:"Could not apply changes:",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:e=>e===1?"You have 1 unsaved change.":`You have ${e} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",stability:{experimental:"experimental",beta:"beta",deprecated:"deprecated",tooltip:"Lifecycle stage declared by the extension manifest."},runtimeErrors:{badge:e=>e===1?"1 runtime error":`${e} runtime errors`,badgeTooltip:"This plugin loaded fine, but some of its contributions were rejected during the last scan. Expand for details.",expandLabel:"Show runtime errors",collapseLabel:"Hide runtime errors",extensionPrefix:"Extension:",slotPrefix:"Slot:",contributionPrefix:"Contribution:",a11y:{toggle:(e,i)=>`Runtime errors for plugin ${e} (${i})`}},trust:{trustLabel:"Trust",untrustLabel:"Untrust",trustedBadge:"Trusted",trustedTooltip:"You trusted this plugin to run on this machine.",trustTooltip:"Allow this plugin to run on this machine. Local only, never committed.",untrustedReason:"Enabled but not trusted on this machine, so its code does not run.",trustRestartLoad:"Restart the server to load it.",trustRestartUnload:"Restart the server to unload it.",a11y:{trust:e=>`Trust plugin ${e} to run on this machine`,untrust:e=>`Stop trusting plugin ${e}`}},pluginSection:{navLabel:e=>e,intro:"Configure this plugin's options. Changes apply when you click Apply.",formA11y:e=>`Settings for ${e}`,sectionA11y:e=>`Settings for plugin ${e}`},statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(e,i)=>i?`Enable plugin ${e}`:`Disable plugin ${e}`,extensionToggle:(e,i)=>i?`Enable ${e}`:`Disable ${e}`,pluginRow:e=>`Plugin ${e} row`,extensionRow:e=>`Extension ${e} row`}};var p={available:"Update available",copiedLabel:"Copied!",tooltip:e=>`v${e} is available. Click to copy the install command.`,copyCommand:"npm i -g @skill-map/cli@latest",copiedTooltip:"Copied! Paste it in your terminal.",npmLinkUrl:"https://www.npmjs.com/package/@skill-map/cli",npmLinkTooltip:"Open on npm",npmLinkA11y:"Open the @skill-map/cli package page on npm",a11yLabel:e=>`Update available: version ${e}, click to copy the install command`,versionLabel:e=>`v${e}`,versionTooltip:e=>`skill-map CLI v${e}`,versionA11yLabel:e=>`Running version ${e}`,fetchFailed:e=>`UpdateCheckService: fetch failed (${e})`};var S=(()=>{class e{dataSource=o(l);status=r(null);isOutdated=s(()=>this.status()?.isOutdated===!0);latest=s(()=>this.status()?.latest??null);current=s(()=>this.status()?.current??null);async load(){try{let t=await this.dataSource.getUpdateStatus();this.status.set(t)}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(p.fetchFailed(n))}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var u={scanFailed:e=>`scan-trigger failed: ${e}`};var x=(()=>{class e{dataSource=o(l);loader=o(d);scanning=r(!1);scanError=r(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(t){let n=t instanceof c||t instanceof Error?t.message:String(t);this.scanError.set(n),console.warn(u.scanFailed(n))}finally{this.scanning.set(!1)}}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{p as a,S as b,h as c,x as d};
1
+ import{c as l,d as c,i as d}from"./chunk-RSPEJBPT.js";import{K as a,P as o,ga as r,wc as s}from"./chunk-EJVWTBMV.js";var h={triggerLabel:"Settings",triggerTooltip:"Settings",modalTitle:"Settings",closeLabel:"Close",sections:{plugins:"Plugins",general:"General",project:"Project",changelog:"Changelog",about:"About"},general:{heading:"General",intro:"Per-machine preferences.",loadErrorPrefix:"Could not load preferences:",saveErrorPrefix:"Could not save preferences:",toggles:{"updateCheck.enabled":{label:"Check for updates",description:"Check npm for newer @skill-map/cli releases."},telemetry:{label:"Send anonymous error & usage reports",description:"Report crashes and which features you use. No file contents or paths.",hint:"Restart sm for this to take effect."}},extraTheme:{label:"Theme",description:"Pick a specialty theme.",options:{none:{label:"None",description:"Use the topbar dark/light toggle."}}},storageHintLabel:"Settings are stored in:",storageHintPath:"~/.skill-map/settings.json"},project:{heading:"Project",introPrefix:"These settings apply only to this project and are saved in",introPath:".skill-map/settings.local.json",introSuffix:".",loadErrorPrefix:"Could not load project settings:",saveErrorPrefix:"Could not save project settings:",sidecarWritersLabel:"Allow sidecar writers",sidecarWritersDescription:"Let actions write `.sm` files (version, tags, stability) next to your notes. Turn this off on a shared project to keep them out of the repo: the setting is committed, so it applies to the whole team.",pluginTrustLabel:"Trust plugins this project enables (this machine only)",pluginTrustDescription:"Run any plugin under .skill-map/plugins/ that the project enables, without trusting each one by hand. This applies only to your machine and is never committed. Turn it off to require per-plugin trust again.",pluginTrustConfirmHeader:"Trust every plugin this project enables?",pluginTrustConfirmIntro:"This lets any plugin the project enables run its code on this machine, including ones you have not reviewed. It applies only to your machine and is never committed.",pluginTrustConfirmAccept:"Trust project plugins",pluginTrustConfirmReject:"Cancel",referencePathsLabel:"Folders for link validation",referencePathsDescription:"If your notes link to files outside this project, list those folders here. Skill-map checks them only to confirm the links work, nothing from these folders shows up in the map.",referencePathsPlaceholder:"~/Documents/research",referencePathsInputAriaLabel:"New folder path",commaForbidden:"Add one path at a time, without commas.",addPathLabel:"Add path",removePathLabel:"Remove",confirmDialogHeader:"Allow access to folders outside this project?",confirmDialogIntro:"This change lets the scan read files in:",confirmDialogAccept:"Allow access",confirmDialogReject:"Cancel",ignorePatternsLabel:"Ignored patterns",ignorePatternsDescriptionPrefix:"Patterns that exclude files and folders from the scan, stored in",ignorePatternsDescriptionFile:".skillmapignore",ignorePatternsDescriptionMiddle:"at the project root. Same syntax as",ignorePatternsDescriptionGitignore:".gitignore",ignorePatternsDescriptionSuffix:"(one pattern per line).",ignorePatternsPlaceholder:"secrets.md",ignorePatternsInputAriaLabel:"New ignore pattern",ignorePatternEmpty:"Pattern cannot be empty or whitespace-only.",ignorePatternHasControlChar:"Pattern must be a single line without control characters.",ignorePatternDuplicate:"This pattern is already in the list.",addIgnorePatternLabel:"Add pattern",removeIgnorePatternLabel:"Remove",activeProviderLabel:"Active provider",activeProviderDescription:"Selects which provider sees this project. The map reflects how the chosen provider interprets your files.",activeProviderSourceAutodetect:"Auto-detected from your files (no value saved yet).",activeProviderSourceDefault:"No provider marker detected. Showing the universal Markdown view (nothing saved).",activeProviderDetectedPrefix:"Detected:",activeProviderDisabledSuffix:"(disabled)",activeProviderConfirmHeader:"Switch the active provider?",activeProviderConfirmIntro:"Switching will clear the persisted scan (nodes, links, issues). Jobs and history are kept. You will need to run `sm scan` after the switch.",activeProviderConfirmAccept:"Switch and clear scan",activeProviderConfirmReject:"Cancel",activeProviderSwitchedPrefix:"Lens switched. Cleared",activeProviderSwitchedSuffix:"scan table(s). Run `sm scan` to repopulate.",activeProviderSwitchedNoDb:"Lens switched. Run `sm scan` to populate the map under the new lens."},changelogHeading:"Changelog",changelogIntro:"What's new in skill-map. Each entry covers a release of @skill-map/cli (the CLI + bundled UI) and lists the user-facing changes plus the workspace(s) each one affects.",changelogEmpty:"No release notes yet. Future releases will populate this list automatically from the changesets shipped in each PR.",changelogInternalRelease:"Internal release. Focus on stability, infra, and refactors. No user-facing changes this time.",changelogAffectedPackages:"Affected packages",changelogFooterText:"Want the full changelog?",changelogFooterLinkLabel:"See it on GitHub \u2192",changelogFooterUrl:"https://github.com/crystian/skill-map/blob/main/src/CHANGELOG.md",aboutHeading:"About",aboutIntro:"Version information for the running CLI / server.",aboutCliLabel:"skill-map CLI",aboutSpecLabel:"Spec version",aboutSchemaLabel:"Schema version",aboutFolderLabel:"Project folder",aboutDbLabel:"Project DB",aboutDbValue:(e,i)=>e==="present"?i:`${e} \xB7 ${i}`,aboutLoading:"Loading\u2026",aboutUnknown:"-",aboutErrorPrefix:"Could not read health endpoint:",aboutLinksHeading:"Links",aboutWebsiteLabel:"Website",aboutGithubLabel:"GitHub",aboutWebsiteUrl:"https://skill-map.ai/",aboutGithubUrl:"https://github.com/crystian/skill-map",aboutStarHeading:"Enjoying skill-map?",aboutStarBody:"If it's useful to you, drop us a star on GitHub, it helps a lot and keeps the project alive.",aboutStarCta:"Star on GitHub",aboutStarA11y:"Open the skill-map repository on GitHub to give it a star",pluginsHeading:"Plugins",pluginsIntro:"Enable or disable installed plugins.",pluginsSearchPlaceholder:"Filter by name\u2026",pluginsSearchA11y:"Filter plugins by name",pluginsSearchEmpty:e=>`No plugins match "${e}".`,pluginsKindFilterAll:"All",pluginsKindFilterOptionA11y:(e,i)=>i?`Show only ${e} extensions`:"Show all kinds",pluginsSourceFilterOptionA11y:(e,i)=>i?`Show only ${e} plugins`:"Show all sources",pluginsFilterA11y:"Filter plugins by source and kind",pluginsFilterAllA11y:"Show every plugin (clear the source and kind filters)",pluginsProjectEmpty:"No project plugins yet. Drop one under .skill-map/plugins/ or create it with sm plugins create <id>.",unsavedChangesMessage:e=>e===1?'1 unsaved change. Click "Apply" to persist it.':`${e} unsaved changes. Click "Apply" to persist them.`,startsAsDisabledRowHint:"This plugin started disabled and is not loaded in memory. Restart `sm serve` for the change to take effect.",startsAsDisabledFooterHint:"Some plugins were disabled when the server started. Consider restarting `sm serve` so they take effect.",discardChanges:"Discard",applyAndClose:"Apply",discardA11y:"Discard pending changes",applyA11y:"Apply pending changes and refresh the map",applyErrorPrefix:"Could not apply changes:",confirmCloseTitle:"Apply pending changes?",confirmCloseBody:e=>e===1?"You have 1 unsaved change.":`You have ${e} unsaved changes.`,keepEditing:"Keep editing",sourceBuiltIn:"Built-in",sourceProject:"Project",enabledLabel:"Enabled",disabledLabel:"Disabled",lockedLabel:"Locked",lockedTooltip:"Locked by the host (cannot be toggled).",expandLabel:"Show extensions",collapseLabel:"Hide extensions",stability:{experimental:"experimental",beta:"beta",deprecated:"deprecated",tooltip:"Lifecycle stage declared by the extension manifest."},runtimeErrors:{badge:e=>e===1?"1 runtime error":`${e} runtime errors`,badgeTooltip:"This plugin loaded fine, but some of its contributions were rejected during the last scan. Expand for details.",expandLabel:"Show runtime errors",collapseLabel:"Hide runtime errors",extensionPrefix:"Extension:",slotPrefix:"Slot:",contributionPrefix:"Contribution:",a11y:{toggle:(e,i)=>`Runtime errors for plugin ${e} (${i})`}},trust:{trustLabel:"Trust",untrustLabel:"Untrust",trustedBadge:"Trusted",trustedTooltip:"You trusted this plugin to run on this machine.",trustTooltip:"Allow this plugin to run on this machine. Local only, never committed.",untrustedReason:"Enabled but not trusted on this machine, so its code does not run.",trustRestartLoad:"Restart the server to load it.",trustRestartUnload:"Restart the server to unload it.",a11y:{trust:e=>`Trust plugin ${e} to run on this machine`,untrust:e=>`Stop trusting plugin ${e}`}},pluginSection:{navLabel:e=>e,intro:"Configure this plugin's options. Changes apply when you click Apply.",formA11y:e=>`Settings for ${e}`,sectionA11y:e=>`Settings for plugin ${e}`},statusFailure:{"incompatible-spec":"Incompatible spec version","invalid-manifest":"Invalid manifest","load-error":"Failed to load","id-collision":"Plugin id collision"},loading:"Loading plugins\u2026",empty:"No plugins installed.",errorPrefix:"Could not load plugins:",toggleErrorPrefix:"Toggle failed:",a11y:{triggerLabel:"Open settings",pluginToggle:(e,i)=>i?`Enable plugin ${e}`:`Disable plugin ${e}`,extensionToggle:(e,i)=>i?`Enable ${e}`:`Disable ${e}`,pluginRow:e=>`Plugin ${e} row`,extensionRow:e=>`Extension ${e} row`}};var p={available:"Update available",copiedLabel:"Copied!",tooltip:e=>`v${e} is available. Click to copy the install command.`,copyCommand:"npm i -g @skill-map/cli@latest",copiedTooltip:"Copied! Paste it in your terminal.",npmLinkUrl:"https://www.npmjs.com/package/@skill-map/cli",npmLinkTooltip:"Open on npm",npmLinkA11y:"Open the @skill-map/cli package page on npm",a11yLabel:e=>`Update available: version ${e}, click to copy the install command`,versionLabel:e=>`v${e}`,versionTooltip:e=>`skill-map CLI v${e}`,versionA11yLabel:e=>`Running version ${e}`,fetchFailed:e=>`UpdateCheckService: fetch failed (${e})`};var S=(()=>{class e{dataSource=o(l);status=r(null);isOutdated=s(()=>this.status()?.isOutdated===!0);latest=s(()=>this.status()?.latest??null);current=s(()=>this.status()?.current??null);async load(){try{let t=await this.dataSource.getUpdateStatus();this.status.set(t)}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(p.fetchFailed(n))}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var u={scanFailed:e=>`scan-trigger failed: ${e}`};var x=(()=>{class e{dataSource=o(l);loader=o(d);scanning=r(!1);scanError=r(null);async run(){if(!this.scanning()){this.scanning.set(!0),this.scanError.set(null);try{await this.dataSource.runScan(),await this.loader.load()}catch(t){let n=t instanceof c||t instanceof Error?t.message:String(t);this.scanError.set(n),console.warn(u.scanFailed(n))}finally{this.scanning.set(!1)}}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{p as a,S as b,h as c,x as d};
@@ -1,2 +1,2 @@
1
1
  import{$ as m,B as I,E as A,H as D,K as f,N as b,P as l,_ as O,c as v,d as x,f as N,ga as i,ja as g,u as w,wc as d}from"./chunk-EJVWTBMV.js";import{a as u,b as y}from"./chunk-ZRJ5ZCFR.js";var j=new b("DATA_SOURCE"),F=class extends Error{code;details;constructor(s,e,t){super(e),this.name="DataSourceError",this.code=s,this.details=t}};var T="sm.map.visible-paths";function L(){let n=null;try{n=localStorage.getItem(T)}catch{return new Set}if(!n)return new Set;let s;try{s=JSON.parse(n)}catch{return new Set}if(!Array.isArray(s))return new Set;let e=new Set;for(let t of s)typeof t=="string"&&t.length>0&&e.add(t);return e}function B(n){try{if(n.size===0){localStorage.removeItem(T);return}localStorage.setItem(T,JSON.stringify([...n]))}catch{}}function G(n,s){if(n.size!==s.size)return!1;for(let e of n)if(!s.has(e))return!1;return!0}function X(n,s){let e=`${s}/`;for(let t of n)if(t.startsWith(e))return!0;return!1}var $=(()=>{class n{_paths=i(L());paths=this._paths.asReadonly();isActive=d(()=>this._paths().size>0);count=d(()=>this._paths().size);inScope(e){let t=this._paths();return t.size===0||t.has(e)}constructor(){g(()=>B(this._paths()))}toggleLeaf(e){let t=new Set(this._paths());t.has(e)?t.delete(e):t.add(e),this._paths.set(t)}toggleFolder(e){if(e==="")return;let t=new Set(this._paths());t.has(e)?t.delete(e):t.add(e),this._paths.set(t)}setOnly(e){this._paths.set(new Set(e))}_isolateOrigin=null;_isolateSnapshot=null;_isolateResult=null;resetIsolateMemory(){this._isolateOrigin=null,this._isolateSnapshot=null,this._isolateResult=null}isolate(e,t){let r=new Set(t);if(this._isolateOrigin===e&&this._isolateResult!==null&&G(this._paths(),this._isolateResult)){let a=this._isolateSnapshot??new Set;return this.resetIsolateMemory(),this.setOnly(a),"restored"}return this._isolateSnapshot=this._paths(),this._isolateOrigin=e,this._isolateResult=r,this.setOnly(r),"isolated"}clear(){this._paths().size!==0&&this._paths.set(new Set)}prune(e){let t=this._paths();if(t.size===0)return;let r=!1,o=new Set;for(let a of t)e.has(a)||X(e,a)?o.add(a):r=!0;r&&this._paths.set(o)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function M(n){n||(n=l(m));let s=new v(e=>{if(n.destroyed){e.next();return}return n.onDestroy(e.next.bind(e))});return e=>e.pipe(A(s))}function Ae(n,s){let t=!s?.manualCleanup?s?.injector?.get(m)??l(m):null,r=J(s?.equal),o;s?.requireSync?o=i({kind:0},{equal:r}):o=i({kind:1,value:s?.initialValue},{equal:r});let a,c=n.subscribe({next:h=>o.set({kind:1,value:h}),error:h=>{o.set({kind:2,error:h}),a?.()},complete:()=>{a?.()}});if(s?.requireSync&&o().kind===0)throw new D(601,!1);return a=t?.onDestroy(c.unsubscribe.bind(c)),d(()=>{let h=o();switch(h.kind){case 1:return h.value;case 2:throw h.error;case 0:throw new D(601,!1)}},{equal:s?.equal})}function J(n=Object.is){return(s,e)=>s.kind===1&&e.kind===1&&n(s.value,e.value)}function E(n){if(typeof n!="object"||n===null)return!1;let s=n;if(typeof s.type!="string"||s.type.length===0)return!1;let e=s.timestamp;return!(typeof e!="number"&&typeof e!="string"||!("data"in s))}function P(n){if(!E(n)||n.type!=="sidecar.bumped")return!1;let s=n.data;if(typeof s!="object"||s===null||typeof s.nodePath!="string"||s.nodePath.length===0)return!1;let e=s.version;return!(e!==null&&typeof e!="number"||s.status!=="fresh")}var K=new b("SKILL_MAP_MODE");function Be(){return typeof document>"u"?"live":document.querySelector('meta[name="skill-map-mode"]')?.content==="demo"?"demo":"live"}var p={connected:n=>`[ws] connected to ${n}`,closed:(n,s)=>`[ws] closed (code=${n}, reason="${s}")`,malformedFrame:n=>`[ws] malformed frame dropped: ${n}`,socketError:n=>`[ws] socket error: ${n}`,reconnectScheduled:(n,s)=>`[ws] reconnect attempt ${s} scheduled in ${n}ms`,reconnectGiveUp:n=>`[ws] giving up after ${n} failed reconnect attempts`};var U=[1e3,2e3,4e3,8e3,16e3,3e4],q=10,Q=1e4,Z=new Set([1e3]);function ee(){return typeof window>"u"||!window.location?"ws://127.0.0.1:4242/ws":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}var te=new b("WS_SOCKET_FACTORY",{providedIn:"root",factory:()=>n=>new WebSocket(n)}),ne=new b("WS_URL",{providedIn:"root",factory:()=>ee()}),V=(()=>{class n{mode=l(K);destroyRef=l(m);subject=new x;socket=null;reconnectTimer=null;stabilityTimer=null;reconnectAttempt=0;disposed=!1;_connectionState=i("connecting");connectionState=this._connectionState.asReadonly();_stableConnected=i(!1);stableConnected=this._stableConnected.asReadonly();_scanActive=i(!1);scanActive=this._scanActive.asReadonly();socketFactory=l(te);url=l(ne);events$;scanCompleted$;sidecarBumped$;constructor(){this.mode!=="live"?this.events$=N:this.events$=new v(e=>{!this.socket&&!this.disposed&&this.connect();let t=this.subject.subscribe(e);return()=>t.unsubscribe()}).pipe(I({resetOnRefCountZero:!1})),this.scanCompleted$=this.events$.pipe(w(e=>e.type==="scan.completed")),this.sidecarBumped$=this.events$.pipe(w(P)),this.destroyRef.onDestroy(()=>this.disconnect())}disconnect(){if(!this.disposed){if(this.disposed=!0,this.clearStabilityTimer(),this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.socket){try{this.socket.close(1e3,"client disconnect")}catch{}this.socket=null}this.subject.complete()}}reconnect(){this.disposed||this.socket||(this.clearStabilityTimer(),this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.reconnectAttempt=0,this._connectionState.set("connecting"),this.connect())}ngOnDestroy(){this.disconnect()}connect(){if(this.disposed)return;let e;try{e=this.socketFactory(this.url)}catch(t){let r=t instanceof Error?t.message:String(t);console.warn(p.socketError(r)),this.scheduleReconnect();return}this.socket=e,e.onopen=()=>{this._connectionState.set("open"),this.clearStabilityTimer(),this.stabilityTimer=setTimeout(()=>{this.stabilityTimer=null,this.reconnectAttempt=0,this._stableConnected.set(!0)},Q),console.info(p.connected(this.url))},e.onmessage=t=>{this.handleFrame(t.data)},e.onerror=t=>{let r=typeof t=="object"&&t!==null&&"message"in t?String(t.message??"unknown"):"unknown";console.warn(p.socketError(r))},e.onclose=t=>{console.info(p.closed(t.code,t.reason)),this.socket=null,this.clearStabilityTimer(),!this.disposed&&(Z.has(t.code)||this.scheduleReconnect())}}handleFrame(e){if(typeof e!="string"){console.warn(p.malformedFrame("non-string frame"));return}let t;try{t=JSON.parse(e)}catch(r){let o=r instanceof Error?r.message:String(r);console.warn(p.malformedFrame(o));return}if(!E(t)){console.warn(p.malformedFrame("envelope shape"));return}t.type==="scan.started"?this._scanActive.set(!0):t.type==="scan.completed"&&this._scanActive.set(!1),this.subject.next(t)}clearStabilityTimer(){this._stableConnected.set(!1),this._scanActive.set(!1),this.stabilityTimer!==null&&(clearTimeout(this.stabilityTimer),this.stabilityTimer=null)}scheduleReconnect(){if(this.disposed)return;if(this.reconnectAttempt>=q){console.warn(p.reconnectGiveUp(q)),this._connectionState.set("lost");return}this._connectionState.set("reconnecting");let e=Math.min(this.reconnectAttempt,U.length-1),t=U[e];this.reconnectAttempt+=1,console.info(p.reconnectScheduled(t,this.reconnectAttempt)),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},t)}get _reconnectAttempt(){return this.reconnectAttempt}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var se=150,tt=(()=>{class n{dataSource=l(j);wsEvents=l(V);selection=l($);destroyRef=l(m);_scanMeta=i(null);_liteNodes=i([]);_branch=i(null);_branchNodes=i([]);_loading=i(!1);_error=i(null);selectionFetchTimer=null;lastFetchedSelectionKey=null;pendingRefresh=!1;wsConnectedBefore=!1;scanMeta=this._scanMeta.asReadonly();liteNodes=this._liteNodes.asReadonly();branch=this._branch.asReadonly();loading=this._loading.asReadonly();error=this._error.asReadonly();nodes=this._branchNodes.asReadonly();scan=d(()=>{let e=this._scanMeta();if(!e)return null;let t=this._branch();return y(u({},e),{nodes:t?.nodes??[],links:t?.links??[],issues:t?.issues??[]})});liteNodeViews=d(()=>this._liteNodes().map(re));count=d(()=>this._branchNodes().length);corpusCount=d(()=>this._liteNodes().length);byKind=d(()=>{let e=new Map;for(let t of this._branchNodes()){let r=e.get(t.kind);r?r.push(t):e.set(t.kind,[t])}return e});hasAnyFavorites=d(()=>this._branchNodes().some(e=>e.isFavorite===!0));constructor(){this.lastFetchedSelectionKey=_([...this.selection.paths()]),this.wsEvents.scanCompleted$.pipe(M(this.destroyRef)).subscribe(()=>{this.load()}),this.wsEvents.sidecarBumped$.pipe(M(this.destroyRef)).subscribe(e=>{this.patchSidecarFromBump({nodePath:e.data.nodePath,version:e.data.version,status:e.data.status})}),g(()=>{this.wsEvents.stableConnected()&&(this.wsConnectedBefore&&this.load(),this.wsConnectedBefore=!0)}),g(()=>{let e=[...this.selection.paths()];_(e)!==this.lastFetchedSelectionKey&&(this.selectionFetchTimer!==null&&clearTimeout(this.selectionFetchTimer),this.selectionFetchTimer=setTimeout(()=>{this.selectionFetchTimer=null,this.loadBranch(e)},se))}),this.destroyRef.onDestroy(()=>{this.selectionFetchTimer!==null&&clearTimeout(this.selectionFetchTimer)})}setFavoriteLocal(e,t){this._branchNodes.update(r=>{let o=!1,a=r.map(c=>c.path!==e||c.isFavorite===t?c:(o=!0,y(u({},c),{isFavorite:t})));return o?a:r})}async toggleFavorite(e,t){this.setFavoriteLocal(e,t);try{return t?await this.dataSource.setFavorite(e):await this.dataSource.unsetFavorite(e),t}catch(r){this.setFavoriteLocal(e,!t);let o=r instanceof Error?r.message:String(r);return this._error.set(o),!t}}patchSidecarFromBump(e){this._branchNodes.update(t=>{let r=!1,o=t.map(a=>{if(a.path!==e.nodePath)return a;r=!0;let c=a.sidecar,h=u({},c?.annotations??{});return e.version!==null&&(h.version=e.version),y(u({},a),{sidecar:u({present:!0,status:e.status,annotations:h},c?.root===void 0?{}:{root:c.root})})});return r?o:t})}async load(){if(this._loading()){this.pendingRefresh=!0;return}this._loading.set(!0),this._error.set(null);let e=[...this.selection.paths()];this.lastFetchedSelectionKey=_(e);try{let[t,r,o]=await Promise.all([this.dataSource.loadScanMeta(),this.dataSource.loadFolders(),this.dataSource.loadBranch(e)]);this._scanMeta.set(t),this._liteNodes.set(r),this.applyBranch(o)}catch(t){let r=t instanceof Error?t.message:String(t);this._error.set(r)}finally{this._loading.set(!1),this.pendingRefresh&&(this.pendingRefresh=!1,queueMicrotask(()=>{this.load()}))}}async loadBranch(e){if(this._loading()){this.pendingRefresh=!0;return}this._loading.set(!0),this._error.set(null),this.lastFetchedSelectionKey=_(e);try{let t=await this.dataSource.loadBranch(e);this.applyBranch(t)}catch(t){let r=t instanceof Error?t.message:String(t);this._error.set(r)}finally{this._loading.set(!1),this.pendingRefresh&&(this.pendingRefresh=!1,queueMicrotask(()=>{this.load()}))}}applyBranch(e){this._branch.set(e),this._branchNodes.set(e.nodes.map(oe))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function _(n){return[...n].sort().join(`
2
- `)}function re(n){let s={path:n.path,kind:n.kind,frontmatter:{name:"",description:""},linksInCount:n.linksInCount,linksOutCount:n.linksOutCount,tokensTotal:n.tokensTotal??void 0,modifiedAtMs:n.modifiedAtMs??void 0};return n.sidecarStatus&&(s.sidecar={present:!0,status:n.sidecarStatus}),s}function oe(n){let s=n.kind,e=n.frontmatter??{},t=y(u({},e),{name:typeof e.name=="string"?e.name:"",description:typeof e.description=="string"?e.description:""}),r={path:n.path,kind:s,provider:n.provider,frontmatter:t,linksOutCount:n.linksOutCount,linksInCount:n.linksInCount,externalRefsCount:n.externalRefsCount,bytesTotal:n.bytes?.total,tokensTotal:n.tokens?.total,modifiedAtMs:n.modifiedAtMs??void 0,bodyHash:n.bodyHash,frontmatterHash:n.frontmatterHash,isFavorite:n.isFavorite===!0};return n.sidecar&&(r.sidecar=u({},n.sidecar)),n.contributions&&(r.contributions=[...n.contributions]),r}var C=[{id:"neon-red",htmlClass:"app-neon-red",forcesDark:!0,label:"Neon R",description:"Electric-red glow on a deep console."},{id:"neon-green",htmlClass:"app-neon-green",forcesDark:!0,label:"Neon G",description:"Electric-green glow on a deep console."},{id:"neon",htmlClass:"app-neon",forcesDark:!0,label:"Neon B",description:"Electric-cyan glow on a deep-navy console."},{id:"matrix",htmlClass:"app-matrix",forcesDark:!0,favicon:"favicon-matrix.svg",fontHref:"https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap",fontLinkId:"sm-matrix-font",label:"Matrix",description:"Cyber-green retint on the dark palette."}];function k(n){return n?C.find(s=>s.id===n)??null:null}var H="skill-map.ui.theme",R="skill-map.ui.extra-theme",ie="app-dark",ae="dark",W="(prefers-color-scheme: dark)",ce="favicon.svg",le='link[rel="icon"][type="image/svg+xml"]',lt=(()=>{class n{doc=l(O);destroyRef=l(m);mode=i(this.readInitialMode());extraTheme=i(this.readInitialExtra());systemPrefersDark=i(this.readSystemPref());resolved=d(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),g(()=>{let e=this.extraTheme(),t=k(e),o=this.resolved()==="dark"||t?.forcesDark===!0,a=this.doc.documentElement;a.classList.toggle(ie,o),a.classList.toggle(ae,o);for(let c of C)a.classList.toggle(c.htmlClass,t?.id===c.id);this.applyFavicon(t?.favicon??ce),t&&this.ensureExtraThemeFont(t);try{let c=this.doc.defaultView?.localStorage;c?.setItem(H,this.mode()),t===null?c?.removeItem(R):c?.setItem(R,t.id)}catch{}})}toggle(){this.extraTheme()!==null&&this.extraTheme.set(null),this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}setExtraTheme(e){this.extraTheme.set(k(e)?.id??null)}readInitialMode(){try{let e=this.doc.defaultView?.localStorage.getItem(H);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readInitialExtra(){try{let e=this.doc.defaultView?.localStorage.getItem(R);return k(e)?.id??null}catch{return null}}readSystemPref(){try{return this.doc.defaultView?.matchMedia(W).matches??!1}catch{return!1}}ensureExtraThemeFont(e){if(!e.fontHref||!e.fontLinkId||this.doc.getElementById(e.fontLinkId))return;let t=this.doc.head;if(!t)return;let r=this.doc.createElement("link");r.id=e.fontLinkId,r.rel="stylesheet",r.href=e.fontHref,t.appendChild(r)}applyFavicon(e){let t=this.doc.querySelector(le);t&&t.getAttribute("href")!==e&&t.setAttribute("href",e)}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;let t=e.matchMedia(W),r=o=>{this.systemPrefersDark.set(o.matches)};t.addEventListener("change",r),this.destroyRef.onDestroy(()=>t.removeEventListener("change",r))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var de="#9ca3af",ue="#6b7280",ft=(()=>{class n{_entries=i([]);providers=this._entries.asReadonly();index=d(()=>{let e=new Map;for(let t of this._entries())e.set(t.id,t);return e});ingest(e){if(!e)return;let t=[];for(let[r,o]of Object.entries(e))t.push(u({id:r},o));he(this._entries(),t)||this._entries.set(t)}lookup(e){return this.index().get(e)}cardChip(e){if(!e)return null;let t=this.lookup(e);return t?t.hideChip?null:Y(t):z(e)}lensChip(e){if(!e)return null;let t=this.lookup(e);return t?Y(t):z(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Y(n){let s={label:n.label,color:n.color};return n.colorDark!==void 0&&(s.colorDark=n.colorDark),s}function z(n){return{label:n,color:de,colorDark:ue}}function he(n,s){if(n.length!==s.length)return!1;for(let e=0;e<n.length;e++)if(JSON.stringify(n[e])!==JSON.stringify(s[e]))return!1;return!0}export{M as a,Ae as b,j as c,F as d,$ as e,K as f,Be as g,V as h,tt as i,C as j,lt as k,ft as l};
2
+ `)}function re(n){let s={path:n.path,kind:n.kind,frontmatter:{name:"",description:""},linksInCount:n.linksInCount,linksOutCount:n.linksOutCount,tokensTotal:n.tokensTotal??void 0,modifiedAtMs:n.modifiedAtMs??void 0};return n.sidecarStatus&&(s.sidecar={present:!0,status:n.sidecarStatus}),s}function oe(n){let s=n.kind,e=n.frontmatter??{},t=y(u({},e),{name:typeof e.name=="string"?e.name:"",description:typeof e.description=="string"?e.description:""}),r={path:n.path,kind:s,provider:n.provider,frontmatter:t,linksOutCount:n.linksOutCount,linksInCount:n.linksInCount,externalRefsCount:n.externalRefsCount,bytesTotal:n.bytes?.total,tokensTotal:n.tokens?.total,modifiedAtMs:n.modifiedAtMs??void 0,bodyHash:n.bodyHash,frontmatterHash:n.frontmatterHash,isFavorite:n.isFavorite===!0};return n.sidecar&&(r.sidecar=u({},n.sidecar)),n.contributions&&(r.contributions=[...n.contributions]),r}var ie="#9ca3af",ae="#6b7280",it=(()=>{class n{_entries=i([]);providers=this._entries.asReadonly();index=d(()=>{let e=new Map;for(let t of this._entries())e.set(t.id,t);return e});ingest(e){if(!e)return;let t=[];for(let[r,o]of Object.entries(e))t.push(u({id:r},o));ce(this._entries(),t)||this._entries.set(t)}lookup(e){return this.index().get(e)}cardChip(e){if(!e)return null;let t=this.lookup(e);return t?t.hideChip?null:H(t):W(e)}lensChip(e){if(!e)return null;let t=this.lookup(e);return t?H(t):W(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function H(n){let s={label:n.label,color:n.color};return n.colorDark!==void 0&&(s.colorDark=n.colorDark),s}function W(n){return{label:n,color:ie,colorDark:ae}}function ce(n,s){if(n.length!==s.length)return!1;for(let e=0;e<n.length;e++)if(JSON.stringify(n[e])!==JSON.stringify(s[e]))return!1;return!0}var C=[{id:"neon-red",htmlClass:"app-neon-red",forcesDark:!0,label:"Neon R",description:"Electric-red glow on a deep console."},{id:"neon-green",htmlClass:"app-neon-green",forcesDark:!0,label:"Neon G",description:"Electric-green glow on a deep console."},{id:"neon",htmlClass:"app-neon",forcesDark:!0,label:"Neon B",description:"Electric-cyan glow on a deep-navy console."},{id:"matrix",htmlClass:"app-matrix",forcesDark:!0,favicon:"favicon-matrix.svg",fontHref:"https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap",fontLinkId:"sm-matrix-font",label:"Matrix",description:"Cyber-green retint on the dark palette."}];function k(n){return n?C.find(s=>s.id===n)??null:null}var Y="skill-map.ui.theme",R="skill-map.ui.extra-theme",le="app-dark",de="dark",z="(prefers-color-scheme: dark)",ue="favicon.svg",he='link[rel="icon"][type="image/svg+xml"]',mt=(()=>{class n{doc=l(O);destroyRef=l(m);mode=i(this.readInitialMode());extraTheme=i(this.readInitialExtra());systemPrefersDark=i(this.readSystemPref());resolved=d(()=>{let e=this.mode();return e==="auto"?this.systemPrefersDark()?"dark":"light":e});constructor(){this.subscribeToSystemPref(),g(()=>{let e=this.extraTheme(),t=k(e),o=this.resolved()==="dark"||t?.forcesDark===!0,a=this.doc.documentElement;a.classList.toggle(le,o),a.classList.toggle(de,o);for(let c of C)a.classList.toggle(c.htmlClass,t?.id===c.id);this.applyFavicon(t?.favicon??ue),t&&this.ensureExtraThemeFont(t);try{let c=this.doc.defaultView?.localStorage;c?.setItem(Y,this.mode()),t===null?c?.removeItem(R):c?.setItem(R,t.id)}catch{}})}toggle(){this.extraTheme()!==null&&this.extraTheme.set(null),this.mode.update(e=>e==="auto"?"light":e==="light"?"dark":"auto")}set(e){this.mode.set(e)}setExtraTheme(e){this.extraTheme.set(k(e)?.id??null)}readInitialMode(){try{let e=this.doc.defaultView?.localStorage.getItem(Y);if(e==="auto"||e==="light"||e==="dark")return e}catch{}return"auto"}readInitialExtra(){try{let e=this.doc.defaultView?.localStorage.getItem(R);return k(e)?.id??null}catch{return null}}readSystemPref(){try{return this.doc.defaultView?.matchMedia(z).matches??!1}catch{return!1}}ensureExtraThemeFont(e){if(!e.fontHref||!e.fontLinkId||this.doc.getElementById(e.fontLinkId))return;let t=this.doc.head;if(!t)return;let r=this.doc.createElement("link");r.id=e.fontLinkId,r.rel="stylesheet",r.href=e.fontHref,t.appendChild(r)}applyFavicon(e){let t=this.doc.querySelector(he);t&&t.getAttribute("href")!==e&&t.setAttribute("href",e)}subscribeToSystemPref(){let e=this.doc.defaultView;if(!e||typeof e.matchMedia!="function")return;let t=e.matchMedia(z),r=o=>{this.systemPrefersDark.set(o.matches)};t.addEventListener("change",r),this.destroyRef.onDestroy(()=>t.removeEventListener("change",r))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=f({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();export{M as a,Ae as b,j as c,F as d,$ as e,K as f,Be as g,V as h,tt as i,it as j,C as k,mt as l};
@@ -0,0 +1,2 @@
1
+ import{b as Mt,i as Ee}from"./chunk-KHDWXSGR.js";import{a as Nt,c as Se,d as ze,l as kt}from"./chunk-RSPEJBPT.js";import{b as Et,c as St}from"./chunk-CG25RHMO.js";import{wa as H,xa as G}from"./chunk-JKPG5PO7.js";import{g as Tt}from"./chunk-7WMT2LX4.js";import{$ as ut,$b as w,Ab as T,Bb as S,Cb as de,Fb as yt,Ib as he,Ja as p,K as V,Kb as Me,Lb as xt,Mb as h,N as dt,P as j,V as me,W as ge,Xb as bt,Yb as te,Za as A,_ as pt,_b as Be,ac as M,bc as Ne,cb as ft,db as mt,ga as F,ja as Te,jb as gt,kb as vt,lb as ht,lc as Ct,mc as wt,nb as k,qb as N,rb as E,sb as _t,ub as W,vb as q,wb as $,wc as d,xb as I,yb as D,yc as P,zb as ee}from"./chunk-EJVWTBMV.js";import{a as we,b as ct,d as lt}from"./chunk-ZRJ5ZCFR.js";var Gn=new Set(["stale-body","stale-frontmatter","stale-both"]);function Dt(e){return e?Gn.has(e.status??null):!1}function ke(e){let i=e.metadata;return i&&typeof i=="object"&&!Array.isArray(i)?i:null}function So(e){if(!e)return null;let i=e.sidecar?.annotations;if(i&&typeof i.version=="number")return`v${i.version}`;let t=ke(e.frontmatter)?.version;return typeof t=="string"&&t.length>0?`v${t}`:null}function ko(e){if(!e)return null;let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let n=ke(e.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function Do(e){return Dt(e?.sidecar)}function Ot(e){if(!e)return[];let t=e.sidecar?.annotations?.tags;if(Array.isArray(t))return t.filter(o=>typeof o=="string"&&o.length>0);let n=ke(e.frontmatter)?.tags;return Array.isArray(n)?n.filter(o=>typeof o=="string"&&o.length>0):[]}function Oo(e,i){switch(e?.sidecar?.status){case"stale-body":return i.staleBody;case"stale-frontmatter":return i.staleFrontmatter;case"stale-both":return i.staleBoth;default:return""}}function Io(e){return e<1e3?`${e}`:e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(e/1e3)}k`}function Po(e){let i=new Date(e);if(isNaN(i.getTime()))return e;let t=Date.now()-i.getTime(),n=Math.floor(t/1e3);if(n<60)return"just now";let o=Math.floor(n/60);if(o<60)return`${o} minute${o===1?"":"s"} ago`;let r=Math.floor(o/60);if(r<24)return`${r} hour${r===1?"":"s"} ago`;let s=Math.floor(r/24);if(s<30)return`${s} day${s===1?"":"s"} ago`;let a=Math.floor(s/30);if(a<12)return`${a} month${a===1?"":"s"} ago`;let c=Math.floor(s/365);return`${c} year${c===1?"":"s"} ago`}function Ao(e){return Number.isFinite(e)?new Date(e).toISOString().slice(0,10):""}function Fo(e){return Number.isFinite(e)?`${new Date(e).toISOString().slice(0,19).replace("T"," ")}Z`:""}var It=["invokes","references","points","mentions"],Pt="sm.workspace.search-affects-map";function Yn(){if(typeof localStorage>"u")return!1;let e=localStorage.getItem(Pt);return e===null?!1:e==="1"}function Xn(e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Pt,e?"1":"0")}catch{}}var Bo=(()=>{class e{_searchText=F("");_selectedKinds=F([]);_kindToggleExplicitEmpty=F(!1);_favoritesOnly=F(!1);_selectedLinkKinds=F([]);_severityErrorActive=F(!1);_severityWarnActive=F(!1);_searchAffectsMap=F(Yn());searchText=this._searchText.asReadonly();searchAffectsMap=this._searchAffectsMap.asReadonly();selectedKinds=this._selectedKinds.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();selectedLinkKinds=this._selectedLinkKinds.asReadonly();severityErrorActive=this._severityErrorActive.asReadonly();severityWarnActive=this._severityWarnActive.asReadonly();kindToggleExplicitEmpty=this._kindToggleExplicitEmpty.asReadonly();isActive=d(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._kindToggleExplicitEmpty()||this._favoritesOnly()||this._selectedLinkKinds().length>0||this._severityErrorActive()||this._severityWarnActive());setSearchText(t){this._searchText.set(t)}toggleSearchAffectsMap(){let t=!this._searchAffectsMap();this._searchAffectsMap.set(t),Xn(t)}setKinds(t){this._kindToggleExplicitEmpty.set(!1),this._selectedKinds.set([...t])}toggleKind(t,n){let o=this._selectedKinds(),r=n,a=this._kindToggleExplicitEmpty()?new Set:o.length===0?new Set(r):new Set(o);a.has(t)?a.delete(t):a.add(t),a.size===r.length?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1)):a.size===0?(this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!0)):(this._selectedKinds.set([...a]),this._kindToggleExplicitEmpty.set(!1))}isKindActive(t){if(this._kindToggleExplicitEmpty())return!1;let n=this._selectedKinds();return n.length===0?!0:n.includes(t)}setFavoritesOnly(t){this._favoritesOnly.set(t)}setLinkKinds(t){this._selectedLinkKinds.set([...t])}toggleLinkKind(t){let n=this._selectedLinkKinds(),o=n.length===0?new Set(It):new Set(n);o.has(t)?o.delete(t):o.add(t),o.size===It.length?this._selectedLinkKinds.set([]):this._selectedLinkKinds.set([...o])}isLinkKindActive(t){let n=this._selectedLinkKinds();return n.length===0?!0:n.includes(t)}toggleSeverity(t){t==="error"?this._severityErrorActive.set(!this._severityErrorActive()):this._severityWarnActive.set(!this._severityWarnActive())}isSeverityActive(t){return t==="error"?this._severityErrorActive():this._severityWarnActive()}setSeverityFilters(t){let n=new Set(t);this._severityErrorActive.set(n.has("error")),this._severityWarnActive.set(n.has("warn"))}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._kindToggleExplicitEmpty.set(!1),this._favoritesOnly.set(!1),this._selectedLinkKinds.set([]),this._severityErrorActive.set(!1),this._severityWarnActive.set(!1)}apply(t,n,o){let r=o?.includeSearch??!0,s=o?.includeKinds??!0,a=r?this.searchText().trim().toLowerCase():"",c=this.selectedKinds(),l=this._kindToggleExplicitEmpty(),f=this.favoritesOnly(),y=this._severityErrorActive(),_=this._severityWarnActive(),g=(y||_)&&n!==void 0;return t.filter(C=>{if(a){let m=Ot(C).join(" ");if(![C.path,C.frontmatter.name??"",C.frontmatter.description??"",m].join(" ").toLowerCase().includes(a))return!1}return!(s&&(l||c.length>0&&!c.includes(C.kind))||f&&C.isFavorite!==!0||g&&(y&&!n.errors.has(C.path)||_&&!n.warns.has(C.path)))})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Wn=(()=>{class e{router=j(Ee);open(t){this.router.navigate(["/"],{queryParams:{path:t}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),At=new dt("NODE_OPEN_INTENT",{providedIn:"root",factory:()=>j(Wn)});var Ft={healthFailed:e=>`ProjectInfoService: /api/health probe failed (${e})`};var Qo=(()=>{class e{dataSource=j(Se);status=F(null);cwd=d(()=>this.status()?.cwd??null);implVersion=d(()=>this.status()?.implVersion??null);dev=d(()=>this.status()?.dev===!0);activeProviderState=F(null);activeProvider=d(()=>this.activeProviderState());async load(){try{let t=await this.dataSource.health();this.status.set(t)}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(Ft.healthFailed(n))}await this.reloadActiveProvider()}async reloadActiveProvider(){try{let t=await this.dataSource.getActiveProvider();this.activeProviderState.set(t.activeProvider)}catch{}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var De="sm-debug-slots",qn="debug",Qn="is-debug-slots",$t=(()=>{class e{visible=F(!1);constructor(){this.visible.set(this.resolveInitial()),Te(()=>{let t=this.visible();document.documentElement.classList.toggle(Qn,t)})}toggle(){let t=!this.visible();this.visible.set(t);try{localStorage.setItem(De,t?"1":"0")}catch{}}resolveInitial(){let n=new URLSearchParams(window.location.search).get(qn);if(n!==null&&n!=="0"&&n!=="false"){try{localStorage.setItem(De,"1")}catch{}return!0}if(n==="0"||n==="false"){try{localStorage.setItem(De,"0")}catch{}return!1}try{return localStorage.getItem(De)==="1"}catch{return!1}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Lt=(()=>{class e{registry=F({});setRegistry(t){t&&this.registry.set(t)}get(t){return this.registry()[t]}all(){return this.registry()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function J(e){return typeof e=="object"&&e!==null}function ae(e,i){return J(e)&&Array.isArray(e[i])}function Oe(e,i){return J(e)&&typeof e[i]=="string"}var Y={panelHeader:"Plugin contributions",panelCount:e=>`${e} contribution${e===1?"":"s"}`,emptyDefault:"No contributions for this node.",rendererInvalid:"Contribution data failed schema validation.",rendererUnknownSlot:e=>`Unknown slot: ${e}. Update the UI to a newer catalog version.`,overflowBadge:e=>`+${e}`,overflowTooltip:e=>`Hidden: ${e}`,recordsCell:{boolTrue:"yes",boolFalse:"no"}};var Jn=(e,i)=>i.label;function Zn(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function ei(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function ti(e,i){if(e&1&&(T(0,"li",4)(1,"span",5),w(2),S(),T(3,"span",6),de(4,"span",7),S(),T(5,"span",8),w(6),S()()),e&2){let t=i.$implicit,n=h(2);k("title",t.tooltip??""),p(2),M(t.label),p(2),bt("width",n.percent(t.value),"%"),p(2),M(t.value)}}function ni(e,i){if(e&1&&(T(0,"ul",3),W(1,ti,7,5,"li",4,Jn),S()),e&2){let t=h();p(),q(t.bars())}}var Rt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"bars")?t:{bars:[]}:{bars:[]}});bars=d(()=>this.typed().bars??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??Y.emptyDefault);maxValue=d(()=>this.bars().reduce((n,o)=>o.value>n?o.value:n,0));percent(t){let n=this.maxValue();return n===0?0:Math.round(t/n*100)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-breakdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-breakdown"],[1,"vc-breakdown__header"],[1,"vc-breakdown__empty"],[1,"vc-breakdown__rows"],[1,"vc-breakdown__row"],[1,"vc-breakdown__label"],[1,"vc-breakdown__bar-track"],["aria-hidden","true",1,"vc-breakdown__bar"],[1,"vc-breakdown__value"]],template:function(n,o){n&1&&(T(0,"section",0),N(1,Zn,2,1,"h5",1),N(2,ei,2,1,"p",2)(3,ni,3,0,"ul",3),S()),n&2&&(k("data-testid","renderer-node-breakdown"),p(),E(o.label()?1:-1),p(),E(o.bars().length===0?2:3))},styles:[".vc-breakdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-breakdown__rows[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.25rem}.vc-breakdown__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(4rem,.4fr) 1fr 3rem;align-items:center;gap:.5rem;font-size:.85rem}.vc-breakdown__label[_ngcontent-%COMP%]{color:var(--p-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vc-breakdown__bar-track[_ngcontent-%COMP%]{background:var(--p-surface-100);border-radius:var(--sm-radius-md);height:.625rem;overflow:hidden}.vc-breakdown__bar[_ngcontent-%COMP%]{display:block;height:100%;background:var(--p-primary-500)}.vc-breakdown__value[_ngcontent-%COMP%]{text-align:right;color:var(--p-text-color)}.vc-breakdown__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function ii(e,i){if(e&1&&(T(0,"span",1),w(1),S()),e&2){let t=h(),n=h();Be(n.hostClass()),p(),M(t.text)}}function oi(e,i){if(e&1&&de(0,"i",1),e&2){let t=h(),n=h();Be(n.hostClass()+" "+t.cls)}}function ri(e,i){e&1&&N(0,ii,2,3,"span",0)(1,oi,1,2,"i",0),e&2&&E(i.kind==="emoji"?0:1)}function Ke(e){if(!e)return null;let i=e.trim();if(i.length===0)return null;let t=i.codePointAt(0)??0;if(!(t>=65&&t<=90||t>=97&&t<=122))return{kind:"emoji",text:i};if(/^pi pi-[a-z0-9-]+$/.test(i))return{kind:"pi",cls:i};if(/^pi-[a-z0-9-]+$/.test(i))return{kind:"pi",cls:`pi ${i}`};if(/^fa-(?:solid|regular|brands) fa-[a-z0-9-]+$/.test(i))return{kind:"fa",cls:i};if(/^fa-[a-z0-9-]+$/.test(i)){let o=i.slice(3);return o==="solid"||o==="regular"||o==="brands"||o.includes("fa-")?null:{kind:"fa",cls:`fa-solid ${i}`}}return null}var oe=(()=>{class e{icon=P(void 0);hostClass=P("");resolved=d(()=>{let t=this.icon(),n=Ke(t);return t&&!n&&console.warn(`[sm-icon] Invalid icon string "${t}". Expected emoji, pi-foo, pi pi-foo, fa-{solid|regular|brands} fa-foo, or fa-foo.`),n});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-icon"]],inputs:{icon:[1,"icon"],hostClass:[1,"hostClass"]},decls:1,vars:1,consts:[["aria-hidden","true",3,"class"],["aria-hidden","true"]],template:function(n,o){if(n&1&&N(0,ri,2,1),n&2){let r;E((r=o.resolved())?0:-1,r)}},styles:["[_nghost-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:inherit;line-height:inherit}[_nghost-%COMP%] i[_ngcontent-%COMP%]{transform:translateY(1px)}"],changeDetection:0})}return e})();function ai(e,i){if(e&1&&(I(0,"span",3),w(1),D()),e&2){let t=h();k("aria-label",t.ariaLabel()),p(),M(t.value())}}var Ie=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:0}:t});value=d(()=>this.typed().value);icon=d(()=>this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=d(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-counter"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:12,consts:[[1,"vc-counter",3,"pTooltip"],[1,"vc-counter__icon"],[3,"icon"],[1,"vc-counter__value"]],template:function(n,o){n&1&&(I(0,"span",0)(1,"span",1),ee(2,"sm-icon",2),D(),N(3,ai,2,2,"span",3),D()),n&2&&(te("vc-counter--info",o.severity()==="info")("vc-counter--warn",o.severity()==="warn")("vc-counter--success",o.severity()==="success")("vc-counter--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),k("data-testid","renderer-node-counter"),p(2),$("icon",o.icon()),p(),E(o.value()>0?3:-1))},dependencies:[G,H,oe],styles:[".vc-counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1;color:var(--p-text-color)}.vc-counter__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-counter__value[_ngcontent-%COMP%]{font-weight:600;color:var(--p-text-color);line-height:1;display:block}.vc-counter--info[_ngcontent-%COMP%], .vc-counter--info[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-counter--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn);opacity:.85}.vc-counter--warn[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-counter--success[_ngcontent-%COMP%], .vc-counter--success[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-counter--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error);opacity:.85}.vc-counter--danger[_ngcontent-%COMP%] .vc-counter__value[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var si=(e,i)=>i.key;function ci(e,i){if(e&1&&(I(0,"h5",1),w(1),D()),e&2){let t=h();p(),M(t.label())}}function li(e,i){if(e&1&&(I(0,"p",2),w(1),D()),e&2){let t=h();p(),M(t.emptyText())}}function di(e,i){if(e&1&&(I(0,"dt",4),w(1),D(),I(2,"dd"),w(3),D()),e&2){let t=i.$implicit,n=h(2);$("pTooltip",t.tooltip??""),p(),M(t.key),p(2),M(n.formatValue(t.value))}}function pi(e,i){if(e&1&&(I(0,"dl",3),W(1,di,4,3,null,null,si),D()),e&2){let t=h();p(),q(t.pairs())}}var jt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"pairs")?t:{pairs:[]}:{pairs:[]}});pairs=d(()=>this.typed().pairs??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??Y.emptyDefault);formatValue(t){return t==null?"\xB7":typeof t=="boolean"?t?"true":"false":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-key-values"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-kv"],[1,"vc-kv__header"],[1,"vc-kv__empty"],[1,"vc-kv__list"],[3,"pTooltip"]],template:function(n,o){n&1&&(I(0,"section",0),N(1,ci,2,1,"h5",1),N(2,li,2,1,"p",2)(3,pi,3,0,"dl",3),D()),n&2&&(k("data-testid","renderer-node-key-values"),p(),E(o.label()?1:-1),p(),E(o.pairs().length===0?2:3))},dependencies:[G,H],styles:[".vc-kv__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-kv__list[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(6rem,max-content) 1fr;gap:.25rem .75rem;margin:0;font-size:.85rem}.vc-kv__list[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-weight:500}.vc-kv__list[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{color:var(--p-text-color);margin:0;word-break:break-word}.vc-kv__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var ui=(e,i)=>i.path;function fi(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function mi(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function gi(e,i){if(e&1&&(T(0,"span",5),w(1),S()),e&2){let t=h().$implicit;p(),M(t.kind)}}function vi(e,i){if(e&1){let t=he();T(0,"li")(1,"button",4),xt("click",function(){let o=me(t).$implicit,r=h(2);return ge(r.onOpenPath(o.path))}),N(2,gi,2,1,"span",5),T(3,"span",6),w(4),S()()()}if(e&2){let t=i.$implicit;p(2),E(t.kind?2:-1),p(2),M(t.label??t.path)}}function hi(e,i){if(e&1&&(T(0,"ul",3),W(1,vi,5,2,"li",null,ui),S()),e&2){let t=h();p(),q(t.links())}}var Bt=(()=>{class e{openIntent=j(At);inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?ae(t,"links")?t:{links:[]}:{links:[]}});links=d(()=>this.typed().links??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??Y.emptyDefault);onOpenPath(t){this.openIntent.open(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-link-list"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-links"],[1,"vc-links__header"],[1,"vc-links__empty"],[1,"vc-links__list"],["type","button",1,"vc-links__btn",3,"click"],[1,"vc-links__kind"],[1,"vc-links__label"]],template:function(n,o){n&1&&(T(0,"section",0),N(1,fi,2,1,"h5",1),N(2,mi,2,1,"p",2)(3,hi,3,0,"ul",3),S()),n&2&&(k("data-testid","renderer-node-link-list"),p(),E(o.label()?1:-1),p(),E(o.links().length===0?2:3))},styles:[".vc-links__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-links__list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem;font-size:.85rem}.vc-links__btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;background:transparent;border:0;padding:.25rem .5rem;border-radius:var(--sm-radius-md);color:var(--p-primary-color);cursor:pointer;text-align:left;width:100%}.vc-links__btn[_ngcontent-%COMP%]:hover{background:var(--p-surface-100)}.vc-links__kind[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-family:var(--sm-font-mono);font-size:.75rem}.vc-links__label[_ngcontent-%COMP%]{word-break:break-all}.vc-links__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var zt=(e,i)=>i.key;function _i(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function yi(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function xi(e,i){if(e&1&&(T(0,"th"),w(1),S()),e&2){let t=i.$implicit;p(),M(t.label)}}function bi(e,i){if(e&1&&de(0,"i",4),e&2){let t=h(4);k("aria-label",t.texts.boolTrue)}}function Ci(e,i){if(e&1&&de(0,"i",5),e&2){let t=h(4);k("aria-label",t.texts.boolFalse)}}function wi(e,i){}function Ti(e,i){if(e&1&&w(0),e&2){let t=h().$implicit,n=h().$implicit,o=h(2);Ne(" ",o.cellText(n[t.key])," ")}}function Mi(e,i){if(e&1&&(T(0,"td"),N(1,bi,1,1,"i",4)(2,Ci,1,1,"i",5)(3,wi,0,0)(4,Ti,1,1),S()),e&2){let t,n=i.$implicit,o=h().$implicit,r=h(2);p(),E((t=r.cellKind(o[n.key]))==="bool-true"?1:t==="bool-false"?2:t==="empty"?3:4)}}function Ni(e,i){if(e&1&&(T(0,"tr"),W(1,Mi,5,1,"td",null,zt),S()),e&2){let t=h(2);p(),q(t.columns())}}function Ei(e,i){if(e&1&&(T(0,"table",3)(1,"thead")(2,"tr"),W(3,xi,2,1,"th",null,zt),S()(),T(5,"tbody"),W(6,Ni,3,0,"tr",null,_t),S()()),e&2){let t=h();p(3),q(t.columns()),p(3),q(t.rows())}}var Kt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?!ae(t,"columns")||!ae(t,"rows")?{columns:[],rows:[]}:t:{columns:[],rows:[]}});columns=d(()=>this.typed().columns??[]);rows=d(()=>this.typed().rows??[]);label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??Y.emptyDefault);texts=Y.recordsCell;cellKind(t){return t==null?"empty":typeof t=="boolean"?t?"bool-true":"bool-false":"text"}cellText(t){return t==null?"":String(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-records"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-records"],[1,"vc-records__header"],[1,"vc-records__empty"],[1,"vc-records__table"],["role","img",1,"pi","pi-check","vc-records__bool","vc-records__bool--true"],["role","img",1,"pi","pi-minus","vc-records__bool","vc-records__bool--false"]],template:function(n,o){n&1&&(T(0,"section",0),N(1,_i,2,1,"h5",1),N(2,yi,2,1,"p",2)(3,Ei,8,0,"table",3),S()),n&2&&(k("data-testid","renderer-node-records"),p(),E(o.label()?1:-1),p(),E(o.rows().length===0?2:3))},styles:[".vc-records__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-records__table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:.85rem}.vc-records__table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-200);color:var(--p-text-muted-color);font-weight:600}.vc-records__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.25rem .5rem;border-bottom:1px solid var(--p-surface-100);color:var(--p-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}.vc-records__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}.vc-records__bool[_ngcontent-%COMP%]{font-size:.9rem;line-height:1}.vc-records__bool--true[_ngcontent-%COMP%]{color:var(--p-primary-color)}.vc-records__bool--false[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}"],changeDetection:0})}return e})();function Si(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function ki(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function Di(e,i){if(e&1&&(T(0,"pre",3),w(1),S()),e&2){let t=h();p(),M(t.markdown())}}var Ut=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return J(t)?Oe(t,"markdown")?t:{markdown:""}:{markdown:""}});markdown=d(()=>this.typed().markdown??"");label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??Y.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-markdown"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-markdown"],[1,"vc-markdown__header"],[1,"vc-markdown__empty"],[1,"vc-markdown__body"]],template:function(n,o){n&1&&(T(0,"section",0),N(1,Si,2,1,"h5",1),N(2,ki,2,1,"p",2)(3,Di,2,1,"pre",3),S()),n&2&&(k("data-testid","renderer-node-markdown"),p(),E(o.label()?1:-1),p(),E(o.markdown()?3:2))},styles:[".vc-markdown__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-markdown__body[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-color);background:var(--p-surface-50);padding:.5rem;border-radius:var(--sm-radius-md);white-space:pre-wrap;word-break:break-word;margin:0;max-height:12rem;overflow:auto}.vc-markdown__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();var Vt={countAriaFallback:"count"};function Oi(e,i){if(e&1&&(I(0,"span",1),ee(1,"sm-icon",4),D()),e&2){let t=h();p(),$("icon",t.icon())}}function Ii(e,i){if(e&1&&(I(0,"span",2),w(1),D()),e&2){let t=h();p(),M(t.label())}}function Pi(e,i){if(e&1&&(I(0,"span",3),w(1),D()),e&2){let t=h();k("aria-label",t.countAria()),p(),M(t.count())}}var Ht=(()=>{class e{inputs=P.required();texts=Vt;typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.inputs().icon);label=d(()=>{let t=this.typed().label;return typeof t=="string"?t:""});count=d(()=>{let t=this.typed().count;return typeof t=="number"&&Number.isFinite(t)?t:null});severity=d(()=>this.typed().severity);hasTint=d(()=>!!this.severity()&&this.label().length>0);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");countAria=d(()=>this.inputs().label??(this.label()||this.texts.countAriaFallback));static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-badge"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:15,consts:[["tooltipPosition","left",1,"vc-badge",3,"pTooltip"],[1,"vc-badge__icon"],[1,"vc-badge__label"],[1,"vc-badge__count"],[3,"icon"]],template:function(n,o){n&1&&(I(0,"span",0),N(1,Oi,2,1,"span",1),N(2,Ii,2,1,"span",2),N(3,Pi,2,2,"span",3),D()),n&2&&(te("vc-badge--tinted",o.hasTint())("vc-badge--info",o.severity()==="info")("vc-badge--warn",o.severity()==="warn")("vc-badge--success",o.severity()==="success")("vc-badge--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),k("data-testid","renderer-node-badge"),p(),E(o.icon()?1:-1),p(),E(o.label()?2:-1),p(),E(o.count()!==null?3:-1))},dependencies:[G,H,oe],styles:[".vc-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;line-height:1;color:var(--p-text-color)}.vc-badge__icon[_ngcontent-%COMP%]{font-size:.6rem;line-height:1;display:block}.vc-badge__label[_ngcontent-%COMP%]{font-weight:500;line-height:1;display:block}.vc-badge__count[_ngcontent-%COMP%]{font-weight:600;line-height:1;display:block}.vc-badge--info[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-info)}.vc-badge--warn[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-warn);opacity:.85}.vc-badge--success[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-success)}.vc-badge--danger[_ngcontent-%COMP%]:not(.vc-badge--tinted){color:var(--sm-severity-error);opacity:.85}.vc-badge--tinted[_ngcontent-%COMP%]{padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-badge--tinted.vc-badge--info[_ngcontent-%COMP%]{background:var(--sm-severity-info-bg);color:var(--sm-severity-info)}.vc-badge--tinted.vc-badge--warn[_ngcontent-%COMP%]{background:var(--sm-severity-warn-bg);color:var(--sm-severity-warn)}.vc-badge--tinted.vc-badge--success[_ngcontent-%COMP%]{background:var(--sm-severity-success-bg);color:var(--sm-severity-success)}.vc-badge--tinted.vc-badge--danger[_ngcontent-%COMP%]{background:var(--sm-severity-error-bg);color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Gt={errorPrefix:"Action failed:",errorFresh:"This node is fresh; nothing to do.",errorNotFound:"Node not found on the server.",errorReadonly:"Actions are not available in demo mode.",errorGeneric:"Could not run the action."};var Yt=(()=>{class e{dataSource=j(Se);texts=Gt;inFlightSig=F(!1);errorSig=F(null);consentOpenSig=F(!1);inFlight=this.inFlightSig.asReadonly();error=this.errorSig.asReadonly();consentOpen=this.consentOpenSig.asReadonly();idle=d(()=>!this.inFlightSig());pending=null;async dispatch(t,n,o){this.inFlightSig()||(this.errorSig.set(null),await this.run(t,n,o,{}))}resolveConsent(t){this.consentOpenSig.set(!1);let n=this.pending;if(this.pending=null,!n||!t.accepted)return;let o=t.always?{confirm:!0,always:!0}:{confirm:!0};this.run(n.actionId,n.nodePath,n.input,o)}dismissError(){this.errorSig.set(null)}async run(t,n,o,r){this.inFlightSig.set(!0);try{await this.dataSource.dispatchAction(t,n,we({input:o},r))}catch(s){if(r.confirm!==!0&&s instanceof ze&&s.code==="confirm-required"&&Ai(s.details)){this.pending={actionId:t,nodePath:n,input:o},this.consentOpenSig.set(!0);return}this.errorSig.set(this.formatError(s))}finally{this.inFlightSig.set(!1)}}formatError(t){if(t instanceof ze)switch(t.code){case"sidecar-fresh":return`${this.texts.errorPrefix} ${this.texts.errorFresh}`;case"not-found":return`${this.texts.errorPrefix} ${this.texts.errorNotFound}`;case"demo-readonly":return`${this.texts.errorPrefix} ${this.texts.errorReadonly}`;default:return`${this.texts.errorPrefix} ${t.message||this.texts.errorGeneric}`}let n=t instanceof Error?t.message:String(t);return`${this.texts.errorPrefix} ${n||this.texts.errorGeneric}`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ai(e){return typeof e!="object"||e===null?!1:e.key==="allowEditSmFiles"}var Xt={fallbackLabel:"Run action",dismissErrorAriaLabel:"Dismiss",promptDialogHeader:"Provide a value"};var Fi=()=>[import("./chunk-I6ED2OW7.js").then(e=>e.ActionPromptDialog)];function $i(e,i){if(e&1){let t=he();I(0,"span",2)(1,"span",3),w(2),D(),I(3,"button",4),Me("click",function(){me(t);let o=h();return ge(o.dismissError())}),ee(4,"i",5),D()()}if(e&2){let t=h();p(2),M(i),p(),k("aria-label",t.texts.dismissErrorAriaLabel)}}function Li(e,i){if(e&1){let t=he();I(0,"sm-action-prompt-dialog",7),Me("confirmed",function(o){me(t);let r=h(2);return ge(r.onPromptConfirmed(o))})("closed",function(){me(t);let o=h(2);return ge(o.cancelPrompt())}),D()}if(e&2){let t=h(2);$("open",t.promptOpen())("descriptor",t.promptDescriptor())("headerText",t.dialogHeader())("busy",t.inFlight())}}function Ri(e,i){if(e&1&&N(0,Li,1,4,"sm-action-prompt-dialog",6),e&2){let t,n=h();E((t=n.prompt())?0:-1,t)}}var Wt=(()=>{class e{inputs=P.required();texts=Xt;dispatcher=j(Yt);inFlightSig=F(!1);errorSig=F(null);promptOpenSig=F(!1);promptOpenedSig=F(!1);inFlight=this.inFlightSig.asReadonly();error=this.errorSig.asReadonly();promptOpen=this.promptOpenSig.asReadonly();promptOpened=this.promptOpenedSig.asReadonly();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{actionId:""}:t});actionId=d(()=>this.typed().actionId||"");label=d(()=>this.typed().label??this.inputs().label??this.texts.fallbackLabel);icon=d(()=>{let t=Ke(this.typed().icon??this.inputs().icon);return t&&t.kind!=="emoji"?t.cls:void 0});enabled=d(()=>this.typed().enabled!==!1);severity=d(()=>{switch(this.typed().severity){case"info":return"info";case"warn":return"warn";case"success":return"success";case"danger":return"danger";default:return}});tooltip=d(()=>this.enabled()?this.inputs().tooltip??"":this.typed().disabledReason??"");prompt=d(()=>{let t=this.typed().prompt;return!t||typeof t!="object"||!t.inputType||!t.paramKey?null:t});promptDescriptor=d(()=>{let t=this.prompt();return{inputType:t?.inputType??"",label:t?.label??"",options:t?.options,defaultValue:t?.defaultValue}});dialogHeader=d(()=>this.typed().label??this.texts.promptDialogHeader);run(){if(!(!this.enabled()||this.inFlightSig())){if(this.prompt()){this.openPrompt();return}this.dispatch(this.typed().input)}}openPrompt(){this.errorSig.set(null),this.promptOpenedSig.set(!0),this.promptOpenSig.set(!0)}onPromptConfirmed(t){let n=this.prompt();if(!n)return;this.promptOpenSig.set(!1);let o=ct(we({},this.typed().input??{}),{[n.paramKey]:t});this.dispatch(o)}cancelPrompt(){this.promptOpenSig.set(!1)}async dispatch(t){let n=this.actionId(),o=this.inputs().nodePath;if(!(!n||!o)){this.errorSig.set(null),this.inFlightSig.set(!0);try{await this.dispatcher.dispatch(n,o,t);let r=this.dispatcher.error();r&&this.errorSig.set(r)}finally{this.inFlightSig.set(!1)}}}dismissError(){this.errorSig.set(null),this.dispatcher.dismissError()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-action-button"]],inputs:{inputs:[1,"inputs"]},decls:6,vars:9,consts:[["data-testid","renderer-node-action-button",1,"vc-action"],["size","small",3,"onClick","label","icon","severity","disabled","loading","pTooltip"],["role","alert","data-testid","renderer-node-action-button-error",1,"vc-action__error"],[1,"vc-action__error-text"],["type","button","data-testid","renderer-node-action-button-error-dismiss",1,"vc-action__error-dismiss",3,"click"],["aria-hidden","true",1,"pi","pi-times"],[3,"open","descriptor","headerText","busy"],[3,"confirmed","closed","open","descriptor","headerText","busy"]],template:function(n,o){if(n&1&&(I(0,"span",0)(1,"p-button",1),Me("onClick",function(){return o.run()}),D(),N(2,$i,5,2,"span",2),D(),mt(3,Ri,1,1),gt(4,3,Fi),ht()),n&2){let r;p(),$("label",o.label())("icon",o.icon()??"")("severity",o.severity())("disabled",!o.enabled()||o.inFlight())("loading",o.inFlight())("pTooltip",o.tooltip()),k("data-testid","action-"+o.actionId()),p(),E((r=o.error())?2:-1,r),p(2),vt(o.promptOpened())}},dependencies:[St,Et,G,H],styles:[".vc-action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap}.vc-action__error[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.3rem;font-size:.8rem;color:var(--sm-severity-error);background:var(--sm-severity-error-bg);padding:.1rem .4rem;border-radius:var(--sm-radius-sm)}.vc-action__error-dismiss[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:0;line-height:1;color:var(--sm-severity-error);display:inline-flex}.vc-action__error-dismiss[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{font-size:.7rem}"],changeDetection:0})}return e})();var ji=()=>[],qt=(e,i)=>i.label;function Bi(e,i){if(e&1&&(T(0,"h5",1),w(1),S()),e&2){let t=h();p(),M(t.label())}}function zi(e,i){if(e&1&&(T(0,"p",2),w(1),S()),e&2){let t=h();p(),M(t.emptyText())}}function Ki(e,i){if(e&1&&(T(0,"span",5),w(1),S()),e&2){let t=h().$implicit;p(),M(t.marker)}}function Ui(e,i){if(e&1&&(T(0,"span",5),w(1),S()),e&2){let t=h().$implicit;p(),M(t.marker)}}function Vi(e,i){if(e&1&&(T(0,"li",4),N(1,Ui,2,1,"span",5),T(2,"span",6),w(3),S()()),e&2){let t=i.$implicit;k("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),M(t.label)}}function Hi(e,i){if(e&1&&(T(0,"ul",7),W(1,Vi,4,3,"li",4,qt),S()),e&2){let t=h().$implicit;p(),q(t.children)}}function Gi(e,i){if(e&1&&(T(0,"li",4),N(1,Ki,2,1,"span",5),T(2,"span",6),w(3),S(),N(4,Hi,3,0,"ul",7),S()),e&2){let t=i.$implicit;k("title",t.tooltip??""),p(),E(t.marker?1:-1),p(2),M(t.label),p(),E(t.children&&t.children.length>0?4:-1)}}function Yi(e,i){if(e&1&&(T(0,"ul",3),W(1,Gi,5,4,"li",4,qt),S()),e&2){let t=h();p(),q(t.root().children??Ct(0,ji))}}var Qt=(()=>{class e{inputs=P.required();root=d(()=>{let t=this.inputs().payload;return J(t)?Oe(t,"label")?t.children!==void 0&&!Array.isArray(t.children)?{label:""}:t:{label:""}:{label:""}});rootIsEmpty=d(()=>{let t=this.root();return!t.children||t.children.length===0});label=d(()=>this.inputs().label);emptyText=d(()=>this.inputs().emptyText??Y.emptyDefault);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-tree"]],inputs:{inputs:[1,"inputs"]},decls:4,vars:3,consts:[[1,"vc-tree"],[1,"vc-tree__header"],[1,"vc-tree__empty"],["role","tree",1,"vc-tree__list"],["role","treeitem"],["aria-hidden","true",1,"vc-tree__marker"],[1,"vc-tree__label"],["role","group",1,"vc-tree__list"]],template:function(n,o){n&1&&(T(0,"section",0),N(1,Bi,2,1,"h5",1),N(2,zi,2,1,"p",2)(3,Yi,3,1,"ul",3),S()),n&2&&(k("data-testid","renderer-node-tree"),p(),E(o.label()?1:-1),p(),E(o.rootIsEmpty()?2:3))},styles:[".vc-tree__header[_ngcontent-%COMP%]{font-size:.85rem;color:var(--p-text-muted-color);margin:0 0 .5rem}.vc-tree__list[_ngcontent-%COMP%]{list-style:none;padding-left:1rem;margin:0;font-size:.85rem}.vc-tree__list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{padding:.125rem 0}.vc-tree__marker[_ngcontent-%COMP%]{margin-right:.25rem;opacity:.7}.vc-tree__label[_ngcontent-%COMP%]{color:var(--p-text-color)}.vc-tree__empty[_ngcontent-%COMP%]{color:var(--p-text-muted-color);font-size:.85rem;margin:0}"],changeDetection:0})}return e})();function Xi(e,i){if(e&1&&(I(0,"span",2),w(1),D()),e&2){let t=h();p(),M(t.formattedCount())}}var Jt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.typed().icon??this.inputs().icon);severity=d(()=>this.typed().severity);count=d(()=>this.typed().count??null);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");formattedCount=d(()=>{let t=this.count();return t===null?"":t>=99?"99+":String(t)});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-alert"]],inputs:{inputs:[1,"inputs"]},decls:3,vars:12,consts:[[1,"vc-alert",3,"pTooltip"],["hostClass","vc-alert__icon",3,"icon"],[1,"vc-alert__count"]],template:function(n,o){n&1&&(I(0,"span",0),ee(1,"sm-icon",1),N(2,Xi,2,1,"span",2),D()),n&2&&(te("vc-alert--info",o.severity()==="info")("vc-alert--warn",o.severity()==="warn")("vc-alert--success",o.severity()==="success")("vc-alert--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),k("data-testid","renderer-node-alert"),p(),$("icon",o.icon()),p(),E(o.count()!==null?2:-1))},dependencies:[G,H,oe],styles:[".vc-alert[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:.125rem;min-width:1.1rem;min-height:1.1rem;font-size:.85rem;color:var(--p-surface-700)}.vc-alert--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-alert--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-alert--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-alert--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();var Zt=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{}:t});icon=d(()=>this.typed().icon??this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");ariaLabel=d(()=>this.inputs().label??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-node-icon"]],inputs:{inputs:[1,"inputs"]},decls:2,vars:12,consts:[[1,"vc-icon",3,"pTooltip"],["hostClass","vc-icon__glyph",3,"icon"]],template:function(n,o){n&1&&(I(0,"span",0),ee(1,"sm-icon",1),D()),n&2&&(te("vc-icon--info",o.severity()==="info")("vc-icon--warn",o.severity()==="warn")("vc-icon--success",o.severity()==="success")("vc-icon--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),k("aria-label",o.ariaLabel())("data-testid","renderer-node-icon"),p(),$("icon",o.icon()))},dependencies:[G,H,oe],styles:[".vc-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;line-height:1;width:22px;height:22px}.vc-icon__glyph[_ngcontent-%COMP%]{font-size:.7rem;line-height:1;display:block}.vc-icon--info[_ngcontent-%COMP%]{color:var(--sm-severity-info)}.vc-icon--warn[_ngcontent-%COMP%]{color:var(--sm-severity-warn)}.vc-icon--success[_ngcontent-%COMP%]{color:var(--sm-severity-success)}.vc-icon--danger[_ngcontent-%COMP%]{color:var(--sm-severity-error)}"],changeDetection:0})}return e})();function Wi(e,i){if(e&1&&(I(0,"span",3),w(1),D()),e&2){let t=h();p(),M(t.label())}}var en=(()=>{class e{inputs=P.required();typed=d(()=>{let t=this.inputs().payload;return typeof t!="object"||t===null?{value:""}:t});value=d(()=>String(this.typed().value??""));label=d(()=>this.typed().label??this.inputs().label);icon=d(()=>this.inputs().icon);severity=d(()=>this.typed().severity);resolvedTooltip=d(()=>this.typed().tooltip??this.inputs().tooltip??"");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-scope-stat"]],inputs:{inputs:[1,"inputs"]},decls:5,vars:13,consts:[[1,"vc-stat",3,"pTooltip"],["hostClass","vc-stat__icon",3,"icon"],[1,"vc-stat__value"],[1,"vc-stat__label"]],template:function(n,o){n&1&&(I(0,"span",0),ee(1,"sm-icon",1),I(2,"span",2),w(3),D(),N(4,Wi,2,1,"span",3),D()),n&2&&(te("vc-stat--info",o.severity()==="info")("vc-stat--warn",o.severity()==="warn")("vc-stat--success",o.severity()==="success")("vc-stat--danger",o.severity()==="danger"),$("pTooltip",o.resolvedTooltip()),k("data-testid","renderer-scope-stat"),p(),$("icon",o.icon()),p(2),M(o.value()),p(),E(o.label()?4:-1))},dependencies:[G,H,oe],styles:[".vc-stat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:.75rem;font-size:.85rem;background:var(--p-surface-100);color:var(--p-surface-800)}.vc-stat__label[_ngcontent-%COMP%]{color:var(--p-surface-500);font-size:.8rem}.vc-stat--info[_ngcontent-%COMP%]{background:var(--p-blue-100);color:var(--p-blue-700)}.vc-stat--warn[_ngcontent-%COMP%]{background:var(--p-yellow-100);color:var(--p-yellow-800)}.vc-stat--success[_ngcontent-%COMP%]{background:var(--p-green-100);color:var(--p-green-700)}.vc-stat--danger[_ngcontent-%COMP%]{background:var(--p-red-100);color:var(--p-red-700)}"],changeDetection:0})}return e})();var Ue={"card.title.right":Zt,"card.subtitle.left":Ie,"card.footer.left":Ie,"card.footer.right":Ie,"graph.node.alert":Jt,"inspector.header.badge":Ht,"inspector.action.button":Wt,"inspector.body.panel.breakdown":Rt,"inspector.body.panel.records":Kt,"inspector.body.panel.tree":Qt,"inspector.body.panel.key-values":jt,"inspector.body.panel.link-list":Bt,"inspector.body.panel.markdown":Ut,"topbar.nav.start":en};function tn(e){return e in Ue}var rs=new Set(["inspector.body.panel.breakdown","inspector.body.panel.records","inspector.body.panel.tree","inspector.body.panel.key-values","inspector.body.panel.link-list","inspector.body.panel.markdown"]),le={"topbar.nav.start":{id:"topbar.nav.start",cardinality:"multi",maxItems:3,order:"alphabetical",strategy:"append"},"inspector.header.badge":{id:"inspector.header.badge",cardinality:"multi",maxItems:4,order:"priority",strategy:"append",respectSeverity:!0},"inspector.action.button":{id:"inspector.action.button",cardinality:"multi",order:"priority",strategy:"append",respectSeverity:!0},"inspector.body.panel.breakdown":{id:"inspector.body.panel.breakdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.records":{id:"inspector.body.panel.records",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.tree":{id:"inspector.body.panel.tree",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.key-values":{id:"inspector.body.panel.key-values",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.link-list":{id:"inspector.body.panel.link-list",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"inspector.body.panel.markdown":{id:"inspector.body.panel.markdown",cardinality:"multi",maxItems:50,order:"alphabetical",strategy:"append"},"card.footer.left":{id:"card.footer.left",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.footer.right":{id:"card.footer.right",cardinality:"multi",maxItems:5,order:"priority",strategy:"append",respectSeverity:!0},"card.subtitle.left":{id:"card.subtitle.left",cardinality:"multi",maxItems:3,order:"priority",strategy:"append",respectSeverity:!0},"card.title.right":{id:"card.title.right",cardinality:"multi",maxItems:2,order:"priority",strategy:"append",respectSeverity:!0},"graph.node.alert":{id:"graph.node.alert",cardinality:"multi",maxItems:1,order:"severity",strategy:"append",showOverflowBadge:!1}};function nn(e,i,t,n){let o=le[i].respectSeverity!==!1,r=e.payload;if(!o&&typeof r=="object"&&r!==null&&"severity"in r){let a=r,{severity:c}=a;r=lt(a,["severity"])}let s={pluginId:e.pluginId,extensionId:e.extensionId,contributionId:e.contributionId,nodePath:t,payload:r};return n?.label&&(s.label=n.label),n?.tooltip&&(s.tooltip=n.tooltip),n?.icon&&(s.icon=n.icon),n?.emptyText&&(s.emptyText=n.emptyText),s}var qi=e=>({inputs:e}),Qi=(e,i)=>i.qualifiedId;function Ji(e,i){e&1&&yt(0)}function Zi(e,i){if(e&1&&(I(0,"span",1),ft(1,Ji,1,0,"ng-container",3),D()),e&2){let t=i.$implicit,n=h(2);k("data-testid","contribution-"+t.qualifiedId.replaceAll("/","-")),p(),$("ngComponentOutlet",n.rendererFor(t.slot))("ngComponentOutletInputs",wt(3,qi,t.rendererInputs))}}function eo(e,i){if(e&1&&(I(0,"span",2),w(1),D()),e&2){let t=h(2);$("pTooltip",t.overflowTooltip()),p(),Ne(" ",t.overflowBadge()," ")}}function to(e,i){if(e&1&&(I(0,"span",0),W(1,Zi,2,5,"span",1,Qi),N(3,eo,2,2,"span",2),D()),e&2){let t=h();k("data-testid","view-contributions-host-"+t.testidSuffix()),p(),q(t.visible()),p(2),E(t.overflowCount()>0&&t.showOverflowBadge()?3:-1)}}var bs=(()=>{class e{slot=P.required();node=P(null);debugSlots=j($t);debugVisible=this.debugSlots.visible;testidSuffix=d(()=>this.slot().replaceAll(".","-"));registry=j(Lt);dispatched=d(()=>{let t=this.node();if(!t)return[];let n=t.contributions??[];if(n.length===0)return[];let o=this.slot(),r=n.filter(s=>s.slot===o).filter(s=>tn(s.slot));return this.sortBySlotOrder(r,o).map(s=>({qualifiedId:`${s.pluginId}/${s.extensionId}/${s.contributionId}`,slot:s.slot,rendererInputs:this.buildInputs(s,o,t.path)}))});visible=d(()=>{let t=this.dispatched(),n=le[this.slot()].maxItems;return n===void 0?t:t.slice(0,n)});debugTitle=d(()=>{if(!this.debugVisible())return null;let t=this.dispatched();return t.length===0?null:t.map(n=>n.qualifiedId).join(`
2
+ `)});overflowCount=d(()=>{let t=this.dispatched(),n=le[this.slot()].maxItems;return n===void 0?0:Math.max(0,t.length-n)});showOverflowBadge=d(()=>le[this.slot()].showOverflowBadge!==!1);overflowBadge=d(()=>Y.overflowBadge(this.overflowCount()));overflowTooltip=d(()=>{let t=this.dispatched(),n=le[this.slot()].maxItems;if(n===void 0)return"";let o=t.slice(n).map(r=>r.qualifiedId).join(", ");return Y.overflowTooltip(o)});rendererFor(t){return Ue[t]}buildInputs(t,n,o){let r=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return nn(t,n,o,this.registry.get(r))}sortBySlotOrder(t,n){let o=le[n].order;return o==="fifo"?t.slice():o==="priority"?t.slice().sort((r,s)=>{let a=this.priorityFor(r),c=this.priorityFor(s);return a!==c?a-c:Ve(r,s)}):o==="severity"?t.slice().sort((r,s)=>{let a=on(r),c=on(s);return a!==c?c-a:Ve(r,s)}):t.slice().sort(Ve)}priorityFor(t){let n=`${t.pluginId}/${t.extensionId}/${t.contributionId}`;return this.registry.get(n)?.priority??100}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=A({type:e,selectors:[["sm-view-contributions-host"]],hostVars:4,hostBindings:function(n,o){n&2&&(k("data-debug-slot",o.debugVisible()?o.slot():null)("title",o.debugTitle()),te("sm-debug-slot",o.debugVisible()))},inputs:{slot:[1,"slot"],node:[1,"node"]},decls:1,vars:1,consts:[[1,"vch"],[1,"vch__slot"],["data-testid","view-contributions-host-overflow",1,"vch__overflow",3,"pTooltip"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(n,o){n&1&&N(0,to,4,2,"span",0),n&2&&E(o.visible().length>0||o.overflowCount()>0?0:-1)},dependencies:[Tt,G,H],styles:["[_nghost-%COMP%]{display:contents}.vch[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.7rem;flex-wrap:wrap}.vch__slot[_ngcontent-%COMP%]{display:inline-flex}.vch__overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.75rem;background:var(--p-surface-100);color:var(--p-surface-600);font-size:.8rem;cursor:default}"],changeDetection:0})}return e})();function Ve(e,i){let t=`${e.pluginId}/${e.extensionId}/${e.contributionId}`,n=`${i.pluginId}/${i.extensionId}/${i.contributionId}`;return t<n?-1:t>n?1:0}function on(e){let i=e.payload;if(typeof i!="object"||i===null)return 0;switch(i.severity){case"danger":return 4;case"warn":return 3;case"info":return 2;case"success":return 1;default:return 0}}var ws="https://bb9dce0fd2cb4ab27ac0475aa394aeb4@o4511475590037504.ingest.de.sentry.io/4511475725959248",He="phc_vMX3PcNeDsacWNg2hYEbKVXDijSWcjKFzabCkzU7RNEr",rn="https://eu.i.posthog.com";var no="<HOME>",io=["server_name","user"],oo=[/[A-Za-z]:[\\/]Users[\\/][^\\/\s:*?"<>|]+/g,/\/(?:home|Users)\/[^/\s:]+/g,/\/root(?=\/|\b)/g];function ro(e){let i=e;for(let t of oo)i=i.replace(t,no);return i}function an(e){let i=Ge(e);if(i!==null&&typeof i=="object"&&!Array.isArray(i)){let t=i;for(let n of io)n in t&&delete t[n]}return i}function Ge(e){if(typeof e=="string")return ro(e);if(Array.isArray(e))return e.map(i=>Ge(i));if(e!==null&&typeof e=="object"){let i={};for(let[t,n]of Object.entries(e))i[t]=Ge(n);return i}return e}var sn=!1,_e=null;async function Ss(e){if(sn||He===""||!e.consentEnabled||e.distinctId===null)return;let{default:i}=await import("./chunk-I3I4KHR5.js");i.init(He,{api_host:rn,autocapture:!1,capture_pageview:!1,capture_pageleave:!1,disable_session_recording:!0,person_profiles:"identified_only",bootstrap:{distinctID:e.distinctId},before_send:t=>t===null?null:an(t)}),_e=i,sn=!0}function Ye(e,i={}){_e!==null&&_e.capture(e,i)}function cn(e){_e!==null&&_e.register(e)}var $s=(()=>{class e{router=j(Ee);theme=j(kt);destroyRef=j(ut);constructor(){this.router.events.pipe(Nt(this.destroyRef)).subscribe(t=>{if(t instanceof Mt){let n=ao(t.urlAfterRedirects);n!==null&&Ye(`ui.view.${n}`)}}),Te(()=>this.syncTheme())}trackFeature(t){Ye(`ui.feature.${t}`)}syncTheme(){cn({theme_base:this.theme.resolved(),theme_extra:this.theme.extraTheme()??"none"})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ao(e){return(e.split("?")[0]??"")==="/"?"workspace":null}function Xe(e,i){var t,n=1;e==null&&(e=0),i==null&&(i=0);function o(){var r,s=t.length,a,c=0,l=0;for(r=0;r<s;++r)a=t[r],c+=a.x,l+=a.y;for(c=(c/s-e)*n,l=(l/s-i)*n,r=0;r<s;++r)a=t[r],a.x-=c,a.y-=l}return o.initialize=function(r){t=r},o.x=function(r){return arguments.length?(e=+r,o):e},o.y=function(r){return arguments.length?(i=+r,o):i},o.strength=function(r){return arguments.length?(n=+r,o):n},o}function ln(e){let i=+this._x.call(null,e),t=+this._y.call(null,e);return dn(this.cover(i,t),i,t,e)}function dn(e,i,t,n){if(isNaN(i)||isNaN(t))return e;var o,r=e._root,s={data:n},a=e._x0,c=e._y0,l=e._x1,f=e._y1,y,_,g,C,m,u,v,x;if(!r)return e._root=s,e;for(;r.length;)if((m=i>=(y=(a+l)/2))?a=y:l=y,(u=t>=(_=(c+f)/2))?c=_:f=_,o=r,!(r=r[v=u<<1|m]))return o[v]=s,e;if(g=+e._x.call(null,r.data),C=+e._y.call(null,r.data),i===g&&t===C)return s.next=r,o?o[v]=s:e._root=s,e;do o=o?o[v]=new Array(4):e._root=new Array(4),(m=i>=(y=(a+l)/2))?a=y:l=y,(u=t>=(_=(c+f)/2))?c=_:f=_;while((v=u<<1|m)===(x=(C>=_)<<1|g>=y));return o[x]=r,o[v]=s,e}function pn(e){var i,t,n=e.length,o,r,s=new Array(n),a=new Array(n),c=1/0,l=1/0,f=-1/0,y=-1/0;for(t=0;t<n;++t)isNaN(o=+this._x.call(null,i=e[t]))||isNaN(r=+this._y.call(null,i))||(s[t]=o,a[t]=r,o<c&&(c=o),o>f&&(f=o),r<l&&(l=r),r>y&&(y=r));if(c>f||l>y)return this;for(this.cover(c,l).cover(f,y),t=0;t<n;++t)dn(this,s[t],a[t],e[t]);return this}function un(e,i){if(isNaN(e=+e)||isNaN(i=+i))return this;var t=this._x0,n=this._y0,o=this._x1,r=this._y1;if(isNaN(t))o=(t=Math.floor(e))+1,r=(n=Math.floor(i))+1;else{for(var s=o-t||1,a=this._root,c,l;t>e||e>=o||n>i||i>=r;)switch(l=(i<n)<<1|e<t,c=new Array(4),c[l]=a,a=c,s*=2,l){case 0:o=t+s,r=n+s;break;case 1:t=o-s,r=n+s;break;case 2:o=t+s,n=r-s;break;case 3:t=o-s,n=r-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=t,this._y0=n,this._x1=o,this._y1=r,this}function fn(){var e=[];return this.visit(function(i){if(!i.length)do e.push(i.data);while(i=i.next)}),e}function mn(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function U(e,i,t,n,o){this.node=e,this.x0=i,this.y0=t,this.x1=n,this.y1=o}function gn(e,i,t){var n,o=this._x0,r=this._y0,s,a,c,l,f=this._x1,y=this._y1,_=[],g=this._root,C,m;for(g&&_.push(new U(g,o,r,f,y)),t==null?t=1/0:(o=e-t,r=i-t,f=e+t,y=i+t,t*=t);C=_.pop();)if(!(!(g=C.node)||(s=C.x0)>f||(a=C.y0)>y||(c=C.x1)<o||(l=C.y1)<r))if(g.length){var u=(s+c)/2,v=(a+l)/2;_.push(new U(g[3],u,v,c,l),new U(g[2],s,v,u,l),new U(g[1],u,a,c,v),new U(g[0],s,a,u,v)),(m=(i>=v)<<1|e>=u)&&(C=_[_.length-1],_[_.length-1]=_[_.length-1-m],_[_.length-1-m]=C)}else{var x=e-+this._x.call(null,g.data),O=i-+this._y.call(null,g.data),b=x*x+O*O;if(b<t){var L=Math.sqrt(t=b);o=e-L,r=i-L,f=e+L,y=i+L,n=g.data}}return n}function vn(e){if(isNaN(f=+this._x.call(null,e))||isNaN(y=+this._y.call(null,e)))return this;var i,t=this._root,n,o,r,s=this._x0,a=this._y0,c=this._x1,l=this._y1,f,y,_,g,C,m,u,v;if(!t)return this;if(t.length)for(;;){if((C=f>=(_=(s+c)/2))?s=_:c=_,(m=y>=(g=(a+l)/2))?a=g:l=g,i=t,!(t=t[u=m<<1|C]))return this;if(!t.length)break;(i[u+1&3]||i[u+2&3]||i[u+3&3])&&(n=i,v=u)}for(;t.data!==e;)if(o=t,!(t=t.next))return this;return(r=t.next)&&delete t.next,o?(r?o.next=r:delete o.next,this):i?(r?i[u]=r:delete i[u],(t=i[0]||i[1]||i[2]||i[3])&&t===(i[3]||i[2]||i[1]||i[0])&&!t.length&&(n?n[v]=t:this._root=t),this):(this._root=r,this)}function hn(e){for(var i=0,t=e.length;i<t;++i)this.remove(e[i]);return this}function _n(){return this._root}function yn(){var e=0;return this.visit(function(i){if(!i.length)do++e;while(i=i.next)}),e}function xn(e){var i=[],t,n=this._root,o,r,s,a,c;for(n&&i.push(new U(n,this._x0,this._y0,this._x1,this._y1));t=i.pop();)if(!e(n=t.node,r=t.x0,s=t.y0,a=t.x1,c=t.y1)&&n.length){var l=(r+a)/2,f=(s+c)/2;(o=n[3])&&i.push(new U(o,l,f,a,c)),(o=n[2])&&i.push(new U(o,r,f,l,c)),(o=n[1])&&i.push(new U(o,l,s,a,f)),(o=n[0])&&i.push(new U(o,r,s,l,f))}return this}function bn(e){var i=[],t=[],n;for(this._root&&i.push(new U(this._root,this._x0,this._y0,this._x1,this._y1));n=i.pop();){var o=n.node;if(o.length){var r,s=n.x0,a=n.y0,c=n.x1,l=n.y1,f=(s+c)/2,y=(a+l)/2;(r=o[0])&&i.push(new U(r,s,a,f,y)),(r=o[1])&&i.push(new U(r,f,a,c,y)),(r=o[2])&&i.push(new U(r,s,y,f,l)),(r=o[3])&&i.push(new U(r,f,y,c,l))}t.push(n)}for(;n=t.pop();)e(n.node,n.x0,n.y0,n.x1,n.y1);return this}function Cn(e){return e[0]}function wn(e){return arguments.length?(this._x=e,this):this._x}function Tn(e){return e[1]}function Mn(e){return arguments.length?(this._y=e,this):this._y}function ue(e,i,t){var n=new We(i??Cn,t??Tn,NaN,NaN,NaN,NaN);return e==null?n:n.addAll(e)}function We(e,i,t,n,o,r){this._x=e,this._y=i,this._x0=t,this._y0=n,this._x1=o,this._y1=r,this._root=void 0}function Nn(e){for(var i={data:e.data},t=i;e=e.next;)t=t.next={data:e.data};return i}var Q=ue.prototype=We.prototype;Q.copy=function(){var e=new We(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root,t,n;if(!i)return e;if(!i.length)return e._root=Nn(i),e;for(t=[{source:i,target:e._root=new Array(4)}];i=t.pop();)for(var o=0;o<4;++o)(n=i.source[o])&&(n.length?t.push({source:n,target:i.target[o]=new Array(4)}):i.target[o]=Nn(n));return e};Q.add=ln;Q.addAll=pn;Q.cover=un;Q.data=fn;Q.extent=mn;Q.find=gn;Q.remove=vn;Q.removeAll=hn;Q.root=_n;Q.size=yn;Q.visit=xn;Q.visitAfter=bn;Q.x=wn;Q.y=Mn;function B(e){return function(){return e}}function ie(e){return(e()-.5)*1e-6}function so(e){return e.x+e.vx}function co(e){return e.y+e.vy}function qe(e){var i,t,n,o=1,r=1;typeof e!="function"&&(e=B(e==null?1:+e));function s(){for(var l,f=i.length,y,_,g,C,m,u,v=0;v<r;++v)for(y=ue(i,so,co).visitAfter(a),l=0;l<f;++l)_=i[l],m=t[_.index],u=m*m,g=_.x+_.vx,C=_.y+_.vy,y.visit(x);function x(O,b,L,X,Z){var z=O.data,ne=O.r,K=m+ne;if(z){if(z.index>_.index){var se=g-z.x-z.vx,ce=C-z.y-z.vy,re=se*se+ce*ce;re<K*K&&(se===0&&(se=ie(n),re+=se*se),ce===0&&(ce=ie(n),re+=ce*ce),re=(K-(re=Math.sqrt(re)))/re*o,_.vx+=(se*=re)*(K=(ne*=ne)/(u+ne)),_.vy+=(ce*=re)*K,z.vx-=se*(K=1-K),z.vy-=ce*K)}return}return b>g+K||X<g-K||L>C+K||Z<C-K}}function a(l){if(l.data)return l.r=t[l.data.index];for(var f=l.r=0;f<4;++f)l[f]&&l[f].r>l.r&&(l.r=l[f].r)}function c(){if(i){var l,f=i.length,y;for(t=new Array(f),l=0;l<f;++l)y=i[l],t[y.index]=+e(y,l,i)}}return s.initialize=function(l,f){i=l,n=f,c()},s.iterations=function(l){return arguments.length?(r=+l,s):r},s.strength=function(l){return arguments.length?(o=+l,s):o},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:B(+l),c(),s):e},s}function lo(e){return e.index}function En(e,i){var t=e.get(i);if(!t)throw new Error("node not found: "+i);return t}function Qe(e){var i=lo,t=y,n,o=B(30),r,s,a,c,l,f=1;e==null&&(e=[]);function y(u){return 1/Math.min(a[u.source.index],a[u.target.index])}function _(u){for(var v=0,x=e.length;v<f;++v)for(var O=0,b,L,X,Z,z,ne,K;O<x;++O)b=e[O],L=b.source,X=b.target,Z=X.x+X.vx-L.x-L.vx||ie(l),z=X.y+X.vy-L.y-L.vy||ie(l),ne=Math.sqrt(Z*Z+z*z),ne=(ne-r[O])/ne*u*n[O],Z*=ne,z*=ne,X.vx-=Z*(K=c[O]),X.vy-=z*K,L.vx+=Z*(K=1-K),L.vy+=z*K}function g(){if(s){var u,v=s.length,x=e.length,O=new Map(s.map((L,X)=>[i(L,X,s),L])),b;for(u=0,a=new Array(v);u<x;++u)b=e[u],b.index=u,typeof b.source!="object"&&(b.source=En(O,b.source)),typeof b.target!="object"&&(b.target=En(O,b.target)),a[b.source.index]=(a[b.source.index]||0)+1,a[b.target.index]=(a[b.target.index]||0)+1;for(u=0,c=new Array(x);u<x;++u)b=e[u],c[u]=a[b.source.index]/(a[b.source.index]+a[b.target.index]);n=new Array(x),C(),r=new Array(x),m()}}function C(){if(s)for(var u=0,v=e.length;u<v;++u)n[u]=+t(e[u],u,e)}function m(){if(s)for(var u=0,v=e.length;u<v;++u)r[u]=+o(e[u],u,e)}return _.initialize=function(u,v){s=u,l=v,g()},_.links=function(u){return arguments.length?(e=u,g(),_):e},_.id=function(u){return arguments.length?(i=u,_):i},_.iterations=function(u){return arguments.length?(f=+u,_):f},_.strength=function(u){return arguments.length?(t=typeof u=="function"?u:B(+u),C(),_):t},_.distance=function(u){return arguments.length?(o=typeof u=="function"?u:B(+u),m(),_):o},_}var po={value:()=>{}};function kn(){for(var e=0,i=arguments.length,t={},n;e<i;++e){if(!(n=arguments[e]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new Pe(t)}function Pe(e){this._=e}function uo(e,i){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");if(o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}Pe.prototype=kn.prototype={constructor:Pe,on:function(e,i){var t=this._,n=uo(e+"",t),o,r=-1,s=n.length;if(arguments.length<2){for(;++r<s;)if((o=(e=n[r]).type)&&(o=fo(t[o],e.name)))return o;return}if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++r<s;)if(o=(e=n[r]).type)t[o]=Sn(t[o],e.name,i);else if(i==null)for(o in t)t[o]=Sn(t[o],e.name,null);return this},copy:function(){var e={},i=this._;for(var t in i)e[t]=i[t].slice();return new Pe(e)},call:function(e,i){if((o=arguments.length-2)>0)for(var t=new Array(o),n=0,o,r;n<o;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],n=0,o=r.length;n<o;++n)r[n].value.apply(i,t)},apply:function(e,i,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],o=0,r=n.length;o<r;++o)n[o].value.apply(i,t)}};function fo(e,i){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===i)return o.value}function Sn(e,i,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===i){e[n]=po,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:i,value:t}),e}var Je=kn;var ve=0,xe=0,ye=0,On=1e3,Ae,be,Fe=0,fe=0,$e=0,Ce=typeof performance=="object"&&performance.now?performance:Date,In=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function tt(){return fe||(In(mo),fe=Ce.now()+$e)}function mo(){fe=0}function Ze(){this._call=this._time=this._next=null}Ze.prototype=Le.prototype={constructor:Ze,restart:function(e,i,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?tt():+t)+(i==null?0:+i),!this._next&&be!==this&&(be?be._next=this:Ae=this,be=this),this._call=e,this._time=t,et()},stop:function(){this._call&&(this._call=null,this._time=1/0,et())}};function Le(e,i,t){var n=new Ze;return n.restart(e,i,t),n}function Pn(){tt(),++ve;for(var e=Ae,i;e;)(i=fe-e._time)>=0&&e._call.call(void 0,i),e=e._next;--ve}function Dn(){fe=(Fe=Ce.now())+$e,ve=xe=0;try{Pn()}finally{ve=0,vo(),fe=0}}function go(){var e=Ce.now(),i=e-Fe;i>On&&($e-=i,Fe=e)}function vo(){for(var e,i=Ae,t,n=1/0;i;)i._call?(n>i._time&&(n=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:Ae=t);be=e,et(n)}function et(e){if(!ve){xe&&(xe=clearTimeout(xe));var i=e-fe;i>24?(e<1/0&&(xe=setTimeout(Dn,e-Ce.now()-$e)),ye&&(ye=clearInterval(ye))):(ye||(Fe=Ce.now(),ye=setInterval(go,On)),ve=1,In(Dn))}}function An(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function Fn(e){return e.x}function $n(e){return e.y}var ho=10,_o=Math.PI*(3-Math.sqrt(5));function nt(e){var i,t=1,n=.001,o=1-Math.pow(n,1/300),r=0,s=.6,a=new Map,c=Le(y),l=Je("tick","end"),f=An();e==null&&(e=[]);function y(){_(),l.call("tick",i),t<n&&(c.stop(),l.call("end",i))}function _(m){var u,v=e.length,x;m===void 0&&(m=1);for(var O=0;O<m;++O)for(t+=(r-t)*o,a.forEach(function(b){b(t)}),u=0;u<v;++u)x=e[u],x.fx==null?x.x+=x.vx*=s:(x.x=x.fx,x.vx=0),x.fy==null?x.y+=x.vy*=s:(x.y=x.fy,x.vy=0);return i}function g(){for(var m=0,u=e.length,v;m<u;++m){if(v=e[m],v.index=m,v.fx!=null&&(v.x=v.fx),v.fy!=null&&(v.y=v.fy),isNaN(v.x)||isNaN(v.y)){var x=ho*Math.sqrt(.5+m),O=m*_o;v.x=x*Math.cos(O),v.y=x*Math.sin(O)}(isNaN(v.vx)||isNaN(v.vy))&&(v.vx=v.vy=0)}}function C(m){return m.initialize&&m.initialize(e,f),m}return g(),i={tick:_,restart:function(){return c.restart(y),i},stop:function(){return c.stop(),i},nodes:function(m){return arguments.length?(e=m,g(),a.forEach(C),i):e},alpha:function(m){return arguments.length?(t=+m,i):t},alphaMin:function(m){return arguments.length?(n=+m,i):n},alphaDecay:function(m){return arguments.length?(o=+m,i):+o},alphaTarget:function(m){return arguments.length?(r=+m,i):r},velocityDecay:function(m){return arguments.length?(s=1-m,i):1-s},randomSource:function(m){return arguments.length?(f=m,a.forEach(C),i):f},force:function(m,u){return arguments.length>1?(u==null?a.delete(m):a.set(m,C(u)),i):a.get(m)},find:function(m,u,v){var x=0,O=e.length,b,L,X,Z,z;for(v==null?v=1/0:v*=v,x=0;x<O;++x)Z=e[x],b=m-Z.x,L=u-Z.y,X=b*b+L*L,X<v&&(z=Z,v=X);return z},on:function(m,u){return arguments.length>1?(l.on(m,u),i):l.on(m)}}}function it(){var e,i,t,n,o=B(-30),r,s=1,a=1/0,c=.81;function l(g){var C,m=e.length,u=ue(e,Fn,$n).visitAfter(y);for(n=g,C=0;C<m;++C)i=e[C],u.visit(_)}function f(){if(e){var g,C=e.length,m;for(r=new Array(C),g=0;g<C;++g)m=e[g],r[m.index]=+o(m,g,e)}}function y(g){var C=0,m,u,v=0,x,O,b;if(g.length){for(x=O=b=0;b<4;++b)(m=g[b])&&(u=Math.abs(m.value))&&(C+=m.value,v+=u,x+=u*m.x,O+=u*m.y);g.x=x/v,g.y=O/v}else{m=g,m.x=m.data.x,m.y=m.data.y;do C+=r[m.data.index];while(m=m.next)}g.value=C}function _(g,C,m,u){if(!g.value)return!0;var v=g.x-i.x,x=g.y-i.y,O=u-C,b=v*v+x*x;if(O*O/c<b)return b<a&&(v===0&&(v=ie(t),b+=v*v),x===0&&(x=ie(t),b+=x*x),b<s&&(b=Math.sqrt(s*b)),i.vx+=v*g.value*n/b,i.vy+=x*g.value*n/b),!0;if(g.length||b>=a)return;(g.data!==i||g.next)&&(v===0&&(v=ie(t),b+=v*v),x===0&&(x=ie(t),b+=x*x),b<s&&(b=Math.sqrt(s*b)));do g.data!==i&&(O=r[g.data.index]*n/b,i.vx+=v*O,i.vy+=x*O);while(g=g.next)}return l.initialize=function(g,C){e=g,t=C,f()},l.strength=function(g){return arguments.length?(o=typeof g=="function"?g:B(+g),f(),l):o},l.distanceMin=function(g){return arguments.length?(s=g*g,l):Math.sqrt(s)},l.distanceMax=function(g){return arguments.length?(a=g*g,l):Math.sqrt(a)},l.theta=function(g){return arguments.length?(c=g*g,l):Math.sqrt(c)},l}function ot(e){var i=B(.1),t,n,o;typeof e!="function"&&(e=B(e==null?0:+e));function r(a){for(var c=0,l=t.length,f;c<l;++c)f=t[c],f.vx+=(o[c]-f.x)*n[c]*a}function s(){if(t){var a,c=t.length;for(n=new Array(c),o=new Array(c),a=0;a<c;++a)n[a]=isNaN(o[a]=+e(t[a],a,t))?0:+i(t[a],a,t)}}return r.initialize=function(a){t=a,s()},r.strength=function(a){return arguments.length?(i=typeof a=="function"?a:B(+a),s(),r):i},r.x=function(a){return arguments.length?(e=typeof a=="function"?a:B(+a),s(),r):e},r}function rt(e){var i=B(.1),t,n,o;typeof e!="function"&&(e=B(e==null?0:+e));function r(a){for(var c=0,l=t.length,f;c<l;++c)f=t[c],f.vy+=(o[c]-f.y)*n[c]*a}function s(){if(t){var a,c=t.length;for(n=new Array(c),o=new Array(c),a=0;a<c;++a)n[a]=isNaN(o[a]=+e(t[a],a,t))?0:+i(t[a],a,t)}}return r.initialize=function(a){t=a,s()},r.strength=function(a){return arguments.length?(i=typeof a=="function"?a:B(+a),s(),r):i},r.y=function(a){return arguments.length?(e=typeof a=="function"?a:B(+a),s(),r):e},r}var yo=["network-simplex","longest-path","force"];function Zc(e){return e!=="force"}var xo=["TOP_BOTTOM","BOTTOM_TOP","LEFT_RIGHT","RIGHT_LEFT"];var Ln={compact:{nodeGap:40,layerGap:56},normal:{nodeGap:64,layerGap:96},spacious:{nodeGap:96,layerGap:144}},el="network-simplex",tl="LEFT_RIGHT",nl="normal";function il(e){return typeof e=="string"&&yo.includes(e)}function ol(e){return typeof e=="string"&&xo.includes(e)}var at=260,Rn=120;function jn(e){return e.resolvedTarget??e.target}function dl(e,i){let t=i?.links??[],n=new Set(e.map(f=>f.path)),o=new Set,r=0,s=0,a=0,c=0,l=0;for(let f of t){if(!n.has(f.source)){r++;continue}let y=jn(f);if(!n.has(y)){s++;continue}if(f.source===y){a++;continue}let _=Bn(f.kind,f.source,y);if(o.has(_)){c++;continue}o.add(_),l++}return{raw:t.length,drawn:l,brokenSource:r,brokenTarget:s,selfLoops:a,duplicates:c}}function pl(e,i){let t=e.map(o=>o.path).sort(),n=i.map(o=>o.id).sort();return`${t.length}|${t.join(",")}|${n.length}|${n.join(",")}`}function ul(e,i){let t=new Set(e.map(c=>c.path)),n=new Map,o=i?.links??[];for(let c of o){if(!t.has(c.source))continue;let l=jn(c);if(!t.has(l)||c.source===l)continue;let f=Bn(c.kind,c.source,l),y=typeof c.confidence=="number"?c.confidence:.6,_=n.get(f);_?y>_.confidence&&(_.confidence=y):n.set(f,{id:f,from:c.source,to:l,kind:c.kind,confidence:y})}let r=[...n.values()],s=new Map;for(let c of e)s.set(c.path,c);let a=new Map;for(let c of i?.nodes??[])a.set(c.path,c);return{nodesByPath:s,apiNodesByPath:a,edges:r}}async function fl(e,i,t,n){let o={width:at,height:Rn},r=i.map(f=>({id:f.path,size:o})),s=t.map(f=>({source:f.from,target:f.to})),a=Ln[n.spacing],c=await e.calculate(r,s,{algorithm:n.algorithm,direction:n.direction,nodeGap:a.nodeGap,layerGap:a.layerGap}),l=new Map;for(let{id:f,position:y}of c.nodes)l.set(f,{x:y.x,y:y.y});return l}function ml(e,i){let t=e.map(a=>({id:a.path})),n=i.map(a=>({source:a.from,target:a.to})),o=nt(t).force("link",Qe(n).id(a=>a.id).distance(90).strength(1)).force("charge",it().strength(-200)).force("center",Xe(0,0)).force("x",ot(0).strength(.06)).force("y",rt(0).strength(.06)).force("collide",qe(at/2+12)).stop(),r=400;for(let a=0;a<r;a++)o.tick();let s=new Map;for(let a of t)s.set(a.id,{x:(a.x??0)-at/2,y:(a.y??0)-Rn/2});return s}function gl(e,i,t,n=null){let o=e.edges.filter(c=>i.has(c.from)&&i.has(c.to)&&(n===null||n.has(c.kind))),r=new Map,s=new Map;for(let c of o)r.set(c.from,(r.get(c.from)??0)+1),s.set(c.to,(s.get(c.to)??0)+1);let a=[];for(let c of i){let l=e.nodesByPath.get(c);if(!l)continue;let f=e.apiNodesByPath.get(c),y=t.get(c),_=e.positions.get(c)??{x:0,y:0},g=y?{x:y.x,y:y.y}:_;a.push({id:c,path:c,view:l,kind:l.kind,position:g,stats:{linksIn:s.get(c)??0,linksOut:r.get(c)??0,bytesTotal:f?.bytes.total,tokensTotal:f?.tokens?.total,externalRefsCount:f?.externalRefsCount},summary:bo(l)})}return{nodes:a,edges:o}}function bo(e){let i={injectionDetected:!1,contentQuality:"clean"},t=(e.frontmatter.description??e.frontmatter.name??"").trim();return{kind:"markdown",confidence:.6,safety:i,whatItCovers:t||`${e.kind} entry`,topics:[],keyFacts:[]}}function Bn(e,i,t){return`${e}:${i}::${t}`}var zn={invalidHex:e=>`deriveTints: invalid hex color "${e}" (expected #RRGGBB)`};function Re(e,i,t){return[Math.round(e[0]+(i[0]-e[0])*t),Math.round(e[1]+(i[1]-e[1])*t),Math.round(e[2]+(i[2]-e[2])*t)]}function Co(e){let i=/^#([0-9a-f]{6})$/i.exec(e);if(!i)throw new Error(zn.invalidHex(e));let t=parseInt(i[1],16);return[t>>16&255,t>>8&255,t&255]}function je([e,i,t]){let n=o=>Math.max(0,Math.min(255,o)).toString(16).padStart(2,"0");return`#${n(e)}${n(i)}${n(t)}`}var Kn=[255,255,255],Un=[0,0,0];function st(e,i){let t=Co(e);return i==="light"?{bg:je(Re(t,Kn,.85)),fg:je(Re(t,Un,.5))}:{bg:je(Re(t,Un,.7)),fg:je(Re(t,Kn,.6))}}var wo=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,Vn=/^#[0-9a-f]{6}$/i,Tl=(()=>{class e{doc=j(pt);_entries=F([]);kinds=this._entries.asReadonly();index=d(()=>{let t=new Map;for(let n of this._entries())t.set(n.name,n);return t});ingest(t){if(!t)return;let n=[];for(let[r,s]of Object.entries(t)){if(!wo.test(r))continue;let a=s.providers[s.primaryProviderId];if(!a)continue;let c={name:r,primaryProviderId:s.primaryProviderId,providers:s.providers,label:a.label,color:a.color};a.colorDark!==void 0&&(c.colorDark=a.colorDark),a.emoji!==void 0&&(c.emoji=a.emoji),a.icon!==void 0&&(c.icon=a.icon),n.push(c)}let o=this._entries();Mo(o,n)||(this._entries.set(n),this.applyCssVars())}lookup(t){return this.index().get(t)}labelOf(t){return this.lookup(t)?.label??t}colorOf(t,n="light"){let o=this.lookup(t);return o?n==="dark"?o.colorDark??o.color:o.color:"#9ca3af"}iconOf(t){return this.lookup(t)?.icon}emojiOf(t){return this.lookup(t)?.emoji}providersOf(t){return this.lookup(t)?.providers}applyCssVars(){if(!this.doc.head)return;let t=To(this.doc),n=[],o=[];for(let r of this._entries()){if(!Vn.test(r.color))continue;let s=r.colorDark??r.color;if(Vn.test(s))try{let a=st(r.color,"light"),c=st(s,"dark");n.push(`--sm-kind-${r.name}: ${r.color};`),n.push(`--sm-kind-${r.name}-bg: ${a.bg};`),n.push(`--sm-kind-${r.name}-fg: ${a.fg};`),o.push(`--sm-kind-${r.name}: ${s};`),o.push(`--sm-kind-${r.name}-bg: ${c.bg};`),o.push(`--sm-kind-${r.name}-fg: ${c.fg};`)}catch{continue}}t.textContent=`:root { ${n.join(" ")} } .app-dark { ${o.join(" ")} }`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=V({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hn="sm-kind-vars";function To(e){let i=e.getElementById(Hn);return i||(i=e.createElement("style"),i.id=Hn,e.head.appendChild(i)),i}function Mo(e,i){if(e.length!==i.length)return!1;for(let t=0;t<e.length;t++){let n=e[t],o=i[t];if(n.name!==o.name||n.primaryProviderId!==o.primaryProviderId||JSON.stringify(n.providers)!==JSON.stringify(o.providers))return!1}return!0}export{So as a,ko as b,Do as c,Ot as d,Oo as e,Io as f,Po as g,Ao as h,Fo as i,It as j,Bo as k,At as l,yo as m,Zc as n,xo as o,el as p,tl as q,nl as r,il as s,ol as t,Tl as u,Qo as v,$t as w,Lt as x,oe as y,Yt as z,Ue as A,tn as B,rs as C,nn as D,bs as E,ws as F,an as G,Ss as H,cn as I,$s as J,dl as K,pl as L,ul as M,fl as N,ml as O,gl as P};
@@ -36,5 +36,5 @@
36
36
  <style>:root{--ff-white:#ffffff;--ff-black:#000000;--ff-gray-0:#ffffff;--ff-gray-25:#fcfcfc;--ff-gray-50:#f8f8f7;--ff-gray-75:#f2f2f0;--ff-gray-100:#e9e9e6;--ff-gray-150:#dcdcd7;--ff-gray-200:#c9c9c1;--ff-gray-300:#afafa5;--ff-gray-400:#8d8d81;--ff-gray-500:#69695f;--ff-gray-600:#505048;--ff-gray-700:#3c3c36;--ff-gray-800:#272722;--ff-gray-900:#1b1b18;--ff-gray-950:#141412;--ff-gray-1000:#0f0f0d;--ff-alpha-black-04:rgba(15, 15, 13, .04);--ff-alpha-black-06:rgba(15, 15, 13, .06);--ff-alpha-black-08:rgba(15, 15, 13, .08);--ff-alpha-black-10:rgba(15, 15, 13, .1);--ff-alpha-black-12:rgba(15, 15, 13, .12);--ff-alpha-black-15:rgba(15, 15, 13, .15);--ff-alpha-black-20:rgba(15, 15, 13, .2);--ff-alpha-black-30:rgba(15, 15, 13, .3);--ff-alpha-black-40:rgba(15, 15, 13, .4);--ff-alpha-black-60:rgba(15, 15, 13, .6);--ff-alpha-white-04:rgba(255, 255, 255, .04);--ff-alpha-white-06:rgba(255, 255, 255, .06);--ff-alpha-white-08:rgba(255, 255, 255, .08);--ff-alpha-white-10:rgba(255, 255, 255, .1);--ff-alpha-white-12:rgba(255, 255, 255, .12);--ff-alpha-white-15:rgba(255, 255, 255, .15);--ff-alpha-white-20:rgba(255, 255, 255, .2);--ff-alpha-white-30:rgba(255, 255, 255, .3);--ff-alpha-white-40:rgba(255, 255, 255, .4);--ff-alpha-white-60:rgba(255, 255, 255, .6);--ff-blue-100:#e8f2ff;--ff-blue-200:#bad8ff;--ff-blue-300:#7db7ff;--ff-blue-400:#4176ff;--ff-blue-500:#2759db;--ff-blue-600:#1b3f9e;--ff-green-100:#e7f7ef;--ff-green-300:#71c795;--ff-green-400:#2b9b5f;--ff-green-500:#1e7748;--ff-yellow-100:#fff5de;--ff-yellow-300:#e1b354;--ff-yellow-400:#bb8121;--ff-yellow-500:#916112;--ff-red-100:#feeceb;--ff-red-300:#e48d85;--ff-red-400:#c55245;--ff-red-500:#9e3a2f;--ff-radius-4:4px;--ff-radius-6:6px;--ff-radius-pill:999px;--ff-font-family-sans:"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--ff-font-family-mono:ui-monospace, "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;--ff-font-size-xs:12px;--ff-font-size-sm:14px;--ff-font-size-md:16px;--ff-font-size-lg:18px;--ff-shadow-1:0 1px 2px rgba(15, 15, 13, .05), 0 8px 20px rgba(15, 15, 13, .04);--ff-shadow-2:0 10px 28px rgba(15, 15, 13, .08), 0 3px 10px rgba(15, 15, 13, .05);--ff-shadow-3:0 18px 48px rgba(15, 15, 13, .12), 0 6px 16px rgba(15, 15, 13, .08)}:root{--ff-color-surface-page:var(--ff-gray-25);--ff-color-surface-canvas:var(--ff-gray-25);--ff-color-surface-card:var(--ff-white);--ff-color-surface-group:rgba(65, 118, 255, .14);--ff-color-surface-group-active:rgba(65, 118, 255, .2);--ff-color-surface-muted:var(--ff-gray-50);--ff-color-surface-soft:var(--ff-gray-75);--ff-color-surface-accent-soft:rgba(65, 118, 255, .1);--ff-color-border-default:var(--ff-alpha-black-12);--ff-color-border-subtle:var(--ff-alpha-black-08);--ff-color-border-strong:var(--ff-alpha-black-20);--ff-color-border-accent:var(--ff-blue-500);--ff-color-text-primary:var(--ff-gray-800);--ff-color-text-secondary:var(--ff-gray-500);--ff-color-text-tertiary:var(--ff-gray-400);--ff-color-text-inverse:var(--ff-white);--ff-color-accent:var(--ff-blue-500);--ff-color-accent-strong:var(--ff-blue-600);--ff-color-success:var(--ff-green-400);--ff-color-warning:var(--ff-yellow-400);--ff-color-danger:var(--ff-red-400);--ff-color-disabled-surface:var(--ff-gray-100);--ff-color-disabled-border:var(--ff-alpha-black-10);--ff-color-disabled-text:var(--ff-gray-300);--ff-color-selection-fill:rgba(65, 118, 255, .12);--ff-color-selection-stroke:rgba(65, 118, 255, .28);--ff-color-grid:var(--ff-alpha-black-08);--ff-color-grid-strong:var(--ff-alpha-black-15);--ff-color-connector-connected:var(--ff-blue-500);--ff-color-connection:var(--ff-gray-600);--ff-color-connection-muted:var(--ff-gray-300);--ff-color-connection-hover:var(--ff-alpha-black-12);--ff-color-grouping-drop-target-border:var(--ff-gray-800);--ff-color-grouping-drop-target-border-active:var(--ff-gray-800);--ff-color-waypoint-fill:var(--ff-white);--ff-color-waypoint-stroke:var(--ff-blue-500);--ff-color-waypoint-candidate-fill:var(--ff-white);--ff-color-waypoint-candidate-stroke:var(--ff-green-400);--ff-color-minimap-surface:var(--ff-white);--ff-color-minimap-node:var(--ff-gray-700);--ff-color-minimap-view:rgba(65, 118, 255, .14);--ff-color-magnetic-line:var(--ff-blue-500);--ff-color-magnetic-rect-fill:rgba(65, 118, 255, .08);--ff-color-magnetic-rect-border:rgba(65, 118, 255, .24);--ff-radius-node:var(--ff-radius-4);--ff-radius-group:var(--ff-radius-4);--ff-radius-control:var(--ff-radius-4);--ff-radius-socket-square:var(--ff-radius-6);--ff-radius-pill:var(--ff-radius-pill);--ff-font-sans:var(--ff-font-family-sans);--ff-font-mono:var(--ff-font-family-mono);--ff-font-size-body:var(--ff-font-size-sm);--ff-font-size-label:var(--ff-font-size-xs);--ff-shadow-surface:var(--ff-shadow-1);--ff-shadow-floating:var(--ff-shadow-2)}:root{--ff-flow-background-color:var(--ff-color-surface-page);--ff-flow-text-color:var(--ff-color-text-primary);--ff-flow-font-family:var(--ff-font-sans);--ff-flow-font-size:var(--ff-font-size-body);--ff-canvas-background-color:var(--ff-color-surface-canvas);--ff-node-background-color:var(--ff-color-surface-card);--ff-node-background-color-inverse:var(--ff-color-text-primary);--ff-node-border-color:var(--ff-color-border-default);--ff-node-border-color-selected:var(--ff-color-border-accent);--ff-node-color:var(--ff-color-text-primary);--ff-node-border-radius:var(--ff-radius-node);--ff-node-shadow:var(--ff-shadow-surface);--ff-node-shadow-selected:var(--ff-shadow-floating);--ff-node-width:120px;--ff-node-min-height:56px;--ff-node-padding:24px;--ff-group-background-color:var(--ff-color-surface-group);--ff-group-background-color-active:var(--ff-color-surface-group-active);--ff-group-border-color:var(--ff-color-border-subtle);--ff-group-border-color-selected:var(--ff-color-border-accent);--ff-group-border-color-active:var(--ff-color-border-accent);--ff-group-color:var(--ff-color-text-secondary);--ff-group-border-radius:var(--ff-radius-group);--ff-group-min-width:180px;--ff-group-min-height:120px;--ff-group-padding:24px;--ff-grouping-drop-target-border-color:var(--ff-color-grouping-drop-target-border);--ff-grouping-drop-target-border-style:dashed;--ff-grouping-drop-target-border-width:1px;--ff-grouping-drop-target-border-color-active:var( --ff-color-grouping-drop-target-border-active );--ff-grouping-drop-target-border-style-active:dashed;--ff-grouping-drop-target-border-width-active:2px;--ff-resize-handle-size:8px;--ff-resize-handle-fill:var(--ff-color-accent);--ff-resize-handle-stroke:var(--ff-color-surface-card);--ff-resize-handle-ring:var(--ff-color-accent);--ff-resize-handle-radius:1px;--ff-resize-handle-fill-active:var(--ff-color-surface-card);--ff-rotate-handle-size:16px;--ff-rotate-handle-offset:40px;--ff-rotate-handle-background-color:var(--ff-color-surface-card);--ff-rotate-handle-border-color:var(--ff-color-border-strong);--ff-rotate-handle-guide-color:var(--ff-color-border-strong);--ff-connector-background-color:var(--ff-color-surface-card);--ff-connector-border-color:var(--ff-color-text-secondary);--ff-connector-connected-color:var(--ff-color-connector-connected);--ff-connector-accent-color:var(--ff-color-accent);--ff-connector-disabled-color:var(--ff-color-disabled-surface);--ff-connector-disabled-border-color:var(--ff-color-disabled-border);--ff-connector-size:14px;--ff-connector-border-width:2px;--ff-connector-input-radius:var(--ff-radius-4);--ff-connector-node-ring-color:var(--ff-canvas-background-color);--ff-outlet-background-color:var(--ff-color-surface-muted);--ff-outlet-border-color:var(--ff-color-border-default);--ff-outlet-color:var(--ff-color-accent);--ff-outlet-disabled-background-color:var(--ff-color-disabled-surface);--ff-outlet-disabled-border-color:var(--ff-color-disabled-border);--ff-outlet-disabled-color:var(--ff-color-disabled-text);--ff-outlet-border-radius:var(--ff-radius-pill);--ff-outlet-padding-y:6px;--ff-outlet-padding-x:12px;--ff-connection-color:var(--ff-color-connection);--ff-snap-connection-color:var(--ff-color-connection-muted);--ff-connection-hover-color:var(--ff-color-connection-hover);--ff-connection-selected-color:var(--ff-color-accent);--ff-connection-label-color:var(--ff-color-text-secondary);--ff-connection-content-color:var(--ff-node-color);--ff-connection-content-background-color:var(--ff-node-background-color);--ff-connection-content-border-color:var(--ff-node-border-color);--ff-connection-content-border-color-selected:var(--ff-connection-selected-color);--ff-connection-content-border-radius:var(--ff-node-border-radius);--ff-connection-content-font-size:13px;--ff-connection-content-padding-y:2px;--ff-connection-content-padding-x:8px;--ff-connection-width:2px;--ff-connection-hit-width:14px;--ff-connection-drag-handle-fill:var(--ff-color-surface-card);--ff-connection-drag-handle-stroke:var(--ff-color-accent);--ff-marker-color:var(--ff-connection-color);--ff-waypoint-fill:var(--ff-color-waypoint-fill);--ff-waypoint-stroke:var(--ff-color-waypoint-stroke);--ff-waypoint-candidate-fill:var(--ff-color-waypoint-candidate-fill);--ff-waypoint-candidate-stroke:var(--ff-color-waypoint-candidate-stroke);--ff-background-line-color:var(--ff-color-grid);--ff-background-dot-color:var(--ff-color-grid-strong);--ff-selection-area-color:var(--ff-color-selection-fill);--ff-selection-area-border-color:var(--ff-color-selection-stroke);--ff-minimap-background-color:var(--ff-color-minimap-surface);--ff-minimap-border-color:var(--ff-color-border-default);--ff-minimap-node-color:var(--ff-color-minimap-node);--ff-minimap-node-selected-color:var(--ff-color-accent);--ff-minimap-view-color:var(--ff-color-minimap-view);--ff-minimap-view-border-color:var(--ff-color-selection-stroke);--ff-minimap-border-radius:var(--ff-radius-node);--ff-minimap-shadow:var(--ff-shadow-floating);--ff-magnetic-line-color:var(--ff-color-magnetic-line);--ff-magnetic-rect-fill:var(--ff-color-magnetic-rect-fill);--ff-magnetic-rect-border-color:var(--ff-color-magnetic-rect-border);--ff-external-item-background-color:var(--ff-color-surface-card);--ff-external-item-border-color:var(--ff-color-border-default);--ff-external-item-color:var(--ff-color-text-primary);--ff-external-item-disabled-color:var(--ff-color-disabled-text);--ff-external-item-disabled-background-color:var(--ff-color-disabled-surface);--ff-external-item-border-radius:var(--ff-radius-node);--ff-external-item-shadow:var(--ff-shadow-surface);--ff-external-item-preview-shadow:var(--ff-shadow-floating);--ff-external-item-placeholder-background-color:var(--ff-color-surface-soft);--ff-external-item-placeholder-border-color:var(--ff-color-border-subtle)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}:root{--fa-family-brands:"Font Awesome 7 Brands";--fa-font-brands:normal 400 1em/1 var(--fa-family-brands)}:root{--fa-font-regular:normal 400 1em/1 var(--fa-family-classic)}:root{--fa-family-classic:"Font Awesome 7 Free";--fa-font-solid:normal 900 1em/1 var(--fa-family-classic);--fa-style-family-classic:var(--fa-family-classic)}:root{--sm-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--sm-font-display-brand:"Geist", system-ui, sans-serif;--sm-radius-sm:3px;--sm-radius-md:4px;--sm-radius-lg:.5rem;--sm-radius-xl:.65rem;--sm-radius-pill:999px;--sm-violet-50:#F5F3FF;--sm-violet-100:#EDE9FE;--sm-violet-200:#DDD6FE;--sm-violet-300:#C4B5FD;--sm-violet-400:#A78BFA;--sm-violet-500:#8B5CF6;--sm-violet-600:#7C3AED;--sm-violet-700:#6D28D9;--sm-violet-800:#4C1D95;--sm-violet-900:#2E1065}html,body{margin:0;padding:0;height:100dvh;overflow:hidden;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--sm-bg-page);color:var(--p-text-color)}*,*:before,*:after{box-sizing:border-box}*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--p-text-color) 30%,transparent) transparent}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--p-text-color) 25%,transparent);border-radius:var(--sm-radius-pill);border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background-color:color-mix(in srgb,var(--p-text-color) 45%,transparent)}:root{--sm-bg-page:#f8fafc;--sm-bg-content:#ffffff;--sm-bg-hover:#f1f5f9;--sm-border:#e2e8f0;--sm-nav-active-bg:#eff6ff;--sm-edge-invokes:#b8843a;--sm-edge-invokes-active:#f59e0b;--sm-edge-references:#7daa90;--sm-edge-references-active:#10b981;--sm-edge-points:#8f7cb8;--sm-edge-points-active:#7c3aed;--sm-edge-mentions:#6fa2c0;--sm-edge-mentions-active:#0ea5e9;--sm-edge-neutral:#6b7280;--sm-link-in-bg:#e0e7ff;--sm-link-in-fg:#3730a3;--sm-link-out-bg:#fef3c7;--sm-link-out-fg:#92400e;--sm-severity-info:#1e3a8a;--sm-severity-success:#065f46;--sm-severity-warn:#ca8a04;--sm-severity-error:#991b1b;--sm-severity-info-bg:rgba(219, 234, 254, .35);--sm-severity-success-bg:rgba(209, 250, 229, .35);--sm-severity-warn-bg:rgba(254, 243, 199, .35);--sm-severity-error-bg:rgba(254, 226, 226, .35);--sm-stat-tokens-bg:rgba(59, 130, 246, .14);--sm-stat-bytes-bg:rgba(245, 158, 11, .16);--sm-hl-comment:#6e7781;--sm-hl-keyword:#cf222e;--sm-hl-string:#0a3069;--sm-hl-number:#0550ae;--sm-hl-title:#8250df;--sm-hl-attr:#0550ae;--sm-hl-built-in:#953800;--sm-hl-meta:#6e7781;--sm-hl-addition:#116329;--sm-hl-deletion:#82071e;--sm-accent-fg:#ffffff;--sm-shadow-topbar:0 1px 2px rgba(0, 0, 0, .03);--sm-shadow-eventlog:0 -4px 16px rgba(0, 0, 0, .08);--sm-shadow-floating:0 4px 14px rgba(0, 0, 0, .08);--sm-shadow-card:0 1px 2px rgba(0, 0, 0, .05);--sm-shadow-card-hover:0 3px 12px rgba(0, 0, 0, .12);--sm-shadow-panel:0 4px 24px rgba(0, 0, 0, .12)}</style><link rel="stylesheet" href="styles-VEGETYWD.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-VEGETYWD.css"></noscript></head>
37
37
  <body>
38
38
  <sm-root></sm-root>
39
- <link rel="modulepreload" href="chunk-SI4MGFOW.js"><link rel="modulepreload" href="chunk-KHDWXSGR.js"><link rel="modulepreload" href="chunk-E7GLGHVY.js"><link rel="modulepreload" href="chunk-SXSNTF26.js"><link rel="modulepreload" href="chunk-Z7SOKILO.js"><link rel="modulepreload" href="chunk-CG25RHMO.js"><link rel="modulepreload" href="chunk-JKPG5PO7.js"><link rel="modulepreload" href="chunk-7WMT2LX4.js"><link rel="modulepreload" href="chunk-TQBXK5JN.js"><link rel="modulepreload" href="chunk-EJVWTBMV.js"><script src="main-23NGLEUB.js" type="module"></script></body>
39
+ <link rel="modulepreload" href="chunk-SQCXHF3J.js"><link rel="modulepreload" href="chunk-KHDWXSGR.js"><link rel="modulepreload" href="chunk-GUGB4JY5.js"><link rel="modulepreload" href="chunk-RSPEJBPT.js"><link rel="modulepreload" href="chunk-Z7SOKILO.js"><link rel="modulepreload" href="chunk-CG25RHMO.js"><link rel="modulepreload" href="chunk-JKPG5PO7.js"><link rel="modulepreload" href="chunk-7WMT2LX4.js"><link rel="modulepreload" href="chunk-TQBXK5JN.js"><link rel="modulepreload" href="chunk-EJVWTBMV.js"><script src="main-GY4PAVQW.js" type="module"></script></body>
40
40
  </html>