{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/graph.site.converter.ts",
          "name": "partGraph",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-site-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.site.converter.ts",
            "label": "core/converters/graph.site.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.site.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-site-converter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "captionsOf",
      "signature": "export const captionsOf = function captionsOf(section: unknown): readonly string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/graph.code.converter.ts",
          "name": "citationOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-code-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.code.converter.ts",
            "label": "core/converters/graph.code.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.code.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-code-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "siteNodes",
      "signature": "export const siteNodes = function siteNodes("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/graph.site.converter.ts",
          "name": "captionsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-site-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.site.converter.ts",
            "label": "core/converters/graph.site.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.site.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-graph-site-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 99,
      "name": "partGraph",
      "signature": "export const partGraph = function partGraph("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "PART_PREFIX",
      "signature": "const PART_PREFIX = \"part:\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "PART_MARK",
      "signature": "const PART_MARK = \"/\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "NUMBER_MARK",
      "signature": "const NUMBER_MARK = \".\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "KIND_KEY",
      "signature": "const KIND_KEY = \"kind\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "CAPTION_KEY",
      "signature": "const CAPTION_KEY = \"caption\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "listOf",
      "signature": "const listOf = function listOf(value: unknown, key: string): readonly unknown[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "held",
      "signature": "const held = isRecord(value) ? value[key] : null;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "captionOf",
      "signature": "const captionOf = function captionOf(block: unknown): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "kind",
      "signature": "const kind = typeof block[KIND_KEY] === \"string\" ? block[KIND_KEY] : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "tag",
      "signature": "const tag = block[TAG_FIELD_BY_KIND.get(kind) ?? CAPTION_KEY];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "blocks",
      "signature": "const blocks = ["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "caption",
      "signature": "const caption = captionOf(block);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "refOf",
      "signature": "const refOf = function refOf(path: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "routeGraph",
      "signature": "export const routeGraph = function routeGraph("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "pages",
      "signature": "const pages = new Map(routes.filter((route) => route.tab === null).map((route) => [route.page, route.path]));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "tabs",
      "signature": "const tabs = routes.flatMap((route) => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "page",
      "signature": "const page = pages.get(route.page);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "sections",
      "signature": "const sections = plans.map((plan) => ({ from: refOf(plan.tab.path), relation: contains, to: plan.identity.ref }));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 105,
      "name": "nodes",
      "signature": "const nodes: GraphNode[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 106,
      "name": "edges",
      "signature": "const edges: GraphEdge[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 108,
      "name": "section",
      "signature": "const section = plan.identity.ref;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 109,
      "name": "number",
      "signature": "const number = numbers.get(section) ?? null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 110,
      "name": "citation",
      "signature": "const citation = citationOf(plan, numbers, codes);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 112,
      "name": "ordinal",
      "signature": "const ordinal = String(index + 1);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 113,
      "name": "ref",
      "signature": "const ref = PART_PREFIX + section.slice(CHAPTER_PREFIX.length) + PART_MARK + ordinal;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-site-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "graph.site.converter.ts",
  "path": "core/converters/graph.site.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-graph-site-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-code-converter-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.code.converter.ts",
          "label": "core/converters/graph.code.converter.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.code.converter.ts.md",
          "ref": "anatomy:file-build-scripts-core-converters-graph-code-converter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "graph",
    "variant": "site"
  },
  "stats": {
    "bytes": 4659,
    "callable": 7,
    "definitions": 28,
    "edges": 2,
    "exported": 17,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 2,
      "isolated": 25
    },
    "lines": {
      "blank": 8,
      "code": 121,
      "total": 129
    }
  },
  "summary": "121 lines of code and 28 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/graph.site.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-source-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.source.converter.ts",
      "label": "core/converters/graph.source.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.source.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-graph-source-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-segment-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.segment.converter.ts",
      "label": "core/converters/graph.segment.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.segment.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-graph-segment-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/build-scripts/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/build-scripts/core/converters.md",
    "ref": "api:source/build-scripts/core/converters"
  }
}
