{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/coordinators/validation.coordinator.ts",
          "name": "articlePixelsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-validation-coordinator-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/validation.coordinator.ts",
            "label": "core/coordinators/validation.coordinator.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/validation.coordinator.ts.md",
            "ref": "anatomy:file-build-scripts-core-coordinators-validation-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "pngPixelsOf",
      "signature": "export const pngPixelsOf = function pngPixelsOf(bytes: Buffer): number | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/adapters/document.adapter.ts",
          "name": "readDocument",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-adapters-document-adapter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/adapters/document.adapter.ts",
            "label": "core/adapters/document.adapter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/adapters/document.adapter.ts.md",
            "ref": "anatomy:file-build-scripts-core-adapters-document-adapter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "readArtifact",
      "signature": "export const readArtifact = function readArtifact(html: string): PageArtifact {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/site.converter.ts",
          "name": "tabsIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-site-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/site.converter.ts",
            "label": "core/converters/site.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/site.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-site-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "tabIdsOf",
      "signature": "export const tabIdsOf = function tabIdsOf(raw: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "MAIN_SELECTOR",
      "signature": "const MAIN_SELECTOR = \"main\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "CANONICAL_SELECTOR",
      "signature": "const CANONICAL_SELECTOR = 'link[rel=\"canonical\"]';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "MARKDOWN_ALTERNATE_SELECTOR",
      "signature": "const MARKDOWN_ALTERNATE_SELECTOR = 'link[rel=\"alternate\"][type=\"text/markdown\"]';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "JSON_ALTERNATE_SELECTOR",
      "signature": "const JSON_ALTERNATE_SELECTOR = 'link[rel=\"alternate\"][type=\"application/json\"]';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "DESCRIPTION_SELECTOR",
      "signature": "const DESCRIPTION_SELECTOR = 'meta[name=\"description\"]';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "ROBOTS_SELECTOR",
      "signature": "const ROBOTS_SELECTOR = 'meta[name=\"robots\"]';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "SCHEMA_SELECTOR",
      "signature": "const SCHEMA_SELECTOR = 'script[type=\"application/ld+json\"]';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "LINK_SELECTOR",
      "signature": "const LINK_SELECTOR = \"a[href]\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "LOC_OPEN",
      "signature": "const LOC_OPEN = \"<loc>\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "LOC_CLOSE",
      "signature": "const LOC_CLOSE = \"</loc>\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "artifactOf",
      "signature": "const artifactOf = function artifactOf(document: Document): PageArtifact {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "locationsOf",
      "signature": "export const locationsOf = function locationsOf(xml: string): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "found",
      "signature": "const found: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "cursor",
      "signature": "let cursor = xml.indexOf(LOC_OPEN);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "start",
      "signature": "const start = cursor + LOC_OPEN.length;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "end",
      "signature": "const end = xml.indexOf(LOC_CLOSE, start);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "PNG_SIGNATURE",
      "signature": "const PNG_SIGNATURE = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "PNG_WIDTH_OFFSET",
      "signature": "const PNG_WIDTH_OFFSET = 16;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "PNG_HEIGHT_OFFSET",
      "signature": "const PNG_HEIGHT_OFFSET = 20;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "PNG_HEADER_BYTES",
      "signature": "const PNG_HEADER_BYTES = 24;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "id",
      "signature": "const id = textAt(tab, PAYLOAD_ID_KEY);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "buildRoutesOf",
      "signature": "export const buildRoutesOf = function buildRoutesOf("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "payload",
      "signature": "const payload = payloadOf(page);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "tabs",
      "signature": "const tabs = payload === null ? [] : tabIdsOf(payload).slice(1);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-build-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "build.converter.ts",
  "path": "core/converters/build.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-build-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-adapters-document-adapter-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/adapters/document.adapter.ts",
          "label": "core/adapters/document.adapter.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/adapters/document.adapter.ts.md",
          "ref": "anatomy:file-build-scripts-core-adapters-document-adapter-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-site-converter-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/converters/site.converter.ts",
          "label": "core/converters/site.converter.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/converters/site.converter.ts.md",
          "ref": "anatomy:file-build-scripts-core-converters-site-converter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-coordinators-validation-coordinator-ts",
          "json": "https://banes-lab.com/json/source/build-scripts/core/coordinators/validation.coordinator.ts",
          "label": "core/coordinators/validation.coordinator.ts",
          "markdown": "https://banes-lab.com/source/build-scripts/core/coordinators/validation.coordinator.ts.md",
          "ref": "anatomy:file-build-scripts-core-coordinators-validation-coordinator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-adapters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-adapters",
          "label": "core/adapters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-adapters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-adapters"
        },
        {
          "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"
        },
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-coordinators",
          "label": "core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-coordinators.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-coordinators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "build",
    "variant": null
  },
  "stats": {
    "bytes": 3753,
    "callable": 6,
    "definitions": 27,
    "edges": 2,
    "exported": 12,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 2,
      "isolated": 24
    },
    "lines": {
      "blank": 8,
      "code": 78,
      "total": 86
    }
  },
  "summary": "78 lines of code and 27 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/build.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-catalog-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/catalog.converter.ts",
      "label": "core/converters/catalog.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/catalog.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-catalog-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-browser-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/browser.converter.ts",
      "label": "core/converters/browser.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/browser.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-browser-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"
  }
}
