{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "presentation/widgets/tab.widget.ts",
          "name": "selectTab",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-tab-widget-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/widgets/tab.widget.ts",
            "label": "presentation/widgets/tab.widget.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/widgets/tab.widget.ts.md",
            "ref": "anatomy:file-presentation-widgets-tab-widget-ts"
          }
        },
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "render",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "loadedPage",
      "signature": "export const loadedPage = function loadedPage(id: string): PageDefinition | undefined {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "render",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "loadPage",
      "signature": "export const loadPage = async function loadPage(id: string): Promise<PageDefinition | undefined> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "pages",
      "signature": "const pages = createRegistry<PageEntry>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "loaded",
      "signature": "const loaded = new Map<string, PageDefinition>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "pending",
      "signature": "const pending = new Map<string, Promise<PageDefinition | undefined>>();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "registerPage",
      "signature": "export const registerPage = function registerPage(page: PageEntry): void {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "getPage",
      "signature": "export const getPage = function getPage(id: string): PageEntry | undefined {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "listPages",
      "signature": "export const listPages = function listPages(): readonly PageEntry[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "registeredPages",
      "signature": "export const registeredPages = function registeredPages(): readonly PageEntry[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "held",
      "signature": "const held = loaded.get(id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "entry",
      "signature": "const entry = pages.byId(id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "inFlight",
      "signature": "const inFlight = pending.get(id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "loading",
      "signature": "const loading = entry.load().then((definition) => {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "loadCompletePage",
      "signature": "export const loadCompletePage = async function loadCompletePage(id: string): Promise<PageDefinition | undefined> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "definition",
      "signature": "const definition = await loadPage(id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "complete",
      "signature": "const complete = await definition.complete();"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-domain-registries-page-registry-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "page.registry.ts",
  "path": "domain/registries/page.registry.ts",
  "ref": "anatomy:file-domain-registries-page-registry-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-domain-registries",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-domain-registries",
          "label": "domain/registries",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-domain-registries.md",
          "ref": "chapter:/anatomy/tree#folder-domain-registries"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#file-presentation-widgets-tab-widget-ts",
          "json": "https://banes-lab.com/json/source/tree/presentation/widgets/tab.widget.ts",
          "label": "presentation/widgets/tab.widget.ts",
          "markdown": "https://banes-lab.com/source/tree/presentation/widgets/tab.widget.ts.md",
          "ref": "anatomy:file-presentation-widgets-tab-widget-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
          "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
          "label": "runtime/coordinators/route.coordinator.ts",
          "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
          "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/disciplined-methodology/build#the-filesystem-is-the-architecture",
          "json": "https://banes-lab.com/json/disciplined-methodology/build/the-filesystem-is-the-architecture",
          "label": "The filesystem is the architecture",
          "markdown": "https://banes-lab.com/disciplined-methodology/build/the-filesystem-is-the-architecture.md",
          "ref": "chapter:/disciplined-methodology/build#the-filesystem-is-the-architecture"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-runtime-discovery",
          "json": "https://banes-lab.com/json/records/architecture/runtime-discovery",
          "label": "Runtime Discovery",
          "markdown": "https://banes-lab.com/records/architecture/runtime-discovery.md",
          "ref": "architecture:runtime-discovery"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-open-closed",
          "json": "https://banes-lab.com/json/records/architecture/open-closed",
          "label": "Open/Closed Principle",
          "markdown": "https://banes-lab.com/records/architecture/open-closed.md",
          "ref": "architecture:open-closed"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-metadata-driven-design",
          "json": "https://banes-lab.com/json/records/architecture/metadata-driven-design",
          "label": "Metadata-Driven Design",
          "markdown": "https://banes-lab.com/records/architecture/metadata-driven-design.md",
          "ref": "architecture:metadata-driven-design"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-lazy-evaluation",
          "json": "https://banes-lab.com/json/records/architecture/lazy-evaluation",
          "label": "Lazy Evaluation",
          "markdown": "https://banes-lab.com/records/architecture/lazy-evaluation.md",
          "ref": "architecture:lazy-evaluation"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-plugin-architecture",
          "json": "https://banes-lab.com/json/records/architecture/plugin-architecture",
          "label": "Plugin Architecture",
          "markdown": "https://banes-lab.com/records/architecture/plugin-architecture.md",
          "ref": "architecture:plugin-architecture"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-extension-points",
          "json": "https://banes-lab.com/json/records/architecture/extension-points",
          "label": "Extension Points",
          "markdown": "https://banes-lab.com/records/architecture/extension-points.md",
          "ref": "architecture:extension-points"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-registry-pattern",
          "json": "https://banes-lab.com/json/records/architecture/registry-pattern",
          "label": "Registry Pattern",
          "markdown": "https://banes-lab.com/records/architecture/registry-pattern.md",
          "ref": "architecture:registry-pattern"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-self-registration",
          "json": "https://banes-lab.com/json/records/lexicon/self-registration",
          "label": "Self-Registration",
          "markdown": "https://banes-lab.com/records/lexicon/self-registration.md",
          "ref": "lexicon:self-registration"
        }
      ],
      "relation": "evidence-for"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-widgets",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-widgets",
          "label": "presentation/widgets",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-widgets.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-widgets"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-runtime-coordinators",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-runtime-coordinators",
          "label": "runtime/coordinators",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-runtime-coordinators.md",
          "ref": "chapter:/anatomy/tree#folder-runtime-coordinators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "registry",
    "subject": "page",
    "variant": null
  },
  "stats": {
    "bytes": 1914,
    "callable": 7,
    "definitions": 16,
    "edges": 0,
    "exported": 13,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 2,
      "isolated": 14
    },
    "lines": {
      "blank": 8,
      "code": 53,
      "total": 61
    }
  },
  "summary": "53 lines of code and 16 definitions.",
  "text": "https://banes-lab.com/source/tree/domain/registries/page.registry.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/tree#file-domain-registries-record-registry-ts",
      "json": "https://banes-lab.com/json/source/tree/domain/registries/record.registry.ts",
      "label": "domain/registries/record.registry.ts",
      "markdown": "https://banes-lab.com/source/tree/domain/registries/record.registry.ts.md",
      "ref": "anatomy:file-domain-registries-record-registry-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-domain-registries-base-registry-ts",
      "json": "https://banes-lab.com/json/source/tree/domain/registries/base.registry.ts",
      "label": "domain/registries/base.registry.ts",
      "markdown": "https://banes-lab.com/source/tree/domain/registries/base.registry.ts.md",
      "ref": "anatomy:file-domain-registries-base-registry-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/domain/registries",
    "label": "domain/registries",
    "markdown": "https://banes-lab.com/api/source/tree/domain/registries.md",
    "ref": "api:source/tree/domain/registries"
  }
}
