# ruff: noqa: E501
"""The nested map Page: the parts of the Page component of the systemap map.

The canvas page shows this map when the reader goes into the card Page. The actors are the
components of the parent map that have a flow with Page."""

from __future__ import annotations

from systemap import (  # type: ignore[import-not-found, unused-ignore]
    Component,
    Container,
    Flow,
    Meaning,
    Model,
    Region,
)

MODEL = Model(
    canvas=(904, 1142),
    containers=(
        Container(id='around', label='AROUND', box=(16, 16, 190, 1110)),
        Container(id='part', label='PAGE', box=(230, 16, 658, 516), tone='server'),
    ),
    regions=(
        Region(id='data', label='DATA', box=(250, 308, 190, 112), container='part'),
        Region(id='canvas', label='CANVAS PAGE', box=(488, 308, 380, 204), container='part'),
        Region(id='linked', label='LINKED PAGE', box=(250, 68, 190, 204), container='part'),
        Region(id='shared', label='SHARED PARTS', box=(488, 68, 190, 112), container='part'),
    ),
    components=(
        Component(
            id='CLI',
            does='Gives commands to make, examine, render and update the map. Map check errors give a nonzero exit code. A second-opinion error can leave the map check report without errors. systemap live serves the page of the working tree on the loopback address and makes it again after each change. It writes the pages only in its directory and removes the pages of removed maps. The page servers do not supply a file that a symbolic link puts in a location that is not in the served directory. They refuse a POST request and a GET request for /events from a page of a different web site. systemap extract, refresh, render and figure --out hold the write lock .systemap/write.lock. If a different command holds that lock, they stop with exit code 1 and write no file. With --map ID, check, judgement, rules, place, describe, journeys, review and decisions pending and status read only the model files of that map, of its parent maps and of its nested maps, and report only that map. Such a run does not examine the pages or the entry coverage. refresh, extract and decisions submit refuse --map. render, refresh and live write the canvas page, and a small page that goes to the canvas page for each nested map. With [render] canvas = false, they write the linked pages and give one notice line. systemap parts --stub CARD writes a stub of a new nested map with positions. It writes no file if the stub has a check problem or if the file exists.',
            kind='actor',
            container='around',
            x=36,
            y=786,
        ),
        Component(
            id='ChangeDetector',
            does='Compares source revisions, or a revision and the working tree. Shows changed public names, module renames and components that import changed modules. systemap delta gives findings and necessary actions. With --comment, it writes the architecture summary of a pull request: the contract changes, the map changes and the rule results, with the assurance level of each item. With a page URL in the configuration of the base commit, the comment also has a link to the Changes view. systemap history shows changes to the software structure through time. Resolves each revision from a person to a commit SHA before the other Git commands use it. A working-tree path can have a Git filter that only the repository configuration gives. Such a path is not a changed path, and its change is not known.',
            kind='actor',
            container='around',
            x=36,
            y=694,
        ),
        Component(
            id='Check',
            does='Does checks of module coverage, entries, interfaces, TypeScript records, layout, routes, labels, text, meaning and outputs. Compares the import rules with the resolved imports. Compares the source symbol of each state of a state machine with the constants in the facts. Gives each contract rule without a reason, and does not reject the map for it. Gives all findings. Returns exit code 1 if there are errors.',
            kind='actor',
            container='around',
            x=36,
            y=878,
        ),
        Component(
            id='Config',
            does='Reads systemap.toml or [tool.systemap] in pyproject.toml with default values. Finds package roots, test files and source-language settings. For TypeScript, selects the one source folder of the tsconfig include entries, then src, then the repository root. Finds the type-test files for test_patterns. Finds the configuration files that the language reads, with the tsconfig files that extends and references name. Keeps judgement answers and reasons. Rejects unknown keys, values of the wrong form and entries without reasons. Reads the writing profile, the [rules] table, the [render] table and the decision provider. Reads model files as data and does not run their code. Reads the invariants and import rules of each map from its contract file. From 2.0, also reads them from the model file, and rejects a map whose two files both give them. systemap refresh and systemap extract move them from the model file to the contract file one time. Reads a repository file only if the file is a regular file in the repository. Reads and writes a cache file or an output file only in the repository. A write replaces a link and does not write to the target of the link. Rejects a configured cache, output or model path that is not in the repository. Writes a cache file or an output file through a temporary file of each writer. On Windows, if os.replace gives PermissionError, waits and tries os.replace again a small number of times. A new file gets the mode of a usual write. A file that is present keeps its mode. Holds a lock on a cache file while one process reads or changes it. Makes the write lock .systemap/write.lock with O_EXCL, so that only one command at a time writes the shared files. A second process does not wait. It stops with an error that gives the lock path and the command that holds the lock. In one process, an inner lock continues. A lock that a stopped process left stays until a person removes it. If .systemap/.gitignore does not exist, systemap init and a write of the answer cache, the facts cache or the decision store in .systemap write that file with the line *. systemap convert writes a model file that needs code again with literal values. systemap review writes the current review digest of one component or one flow into the model file. It holds the lock of each model file of the map from the read to the write. A dry run takes no lock. When systemap refresh and systemap extract move a contract or record the source records of flow reviews, they also hold the lock of each model file from the read to the write. In each release, systemap refresh and systemap extract record the source records of each flow review before source tracking one time. They also write the current evidence digest of each answer from 2.0.0 that agrees with the source one time. For the 2.0.0 form of the evidence, they get the ast.unparse text of the Python signatures and constant previews from the source again. Adds exact answers with citations to systemap.toml and keeps the other text of the file. Rejects a family answer with a previous name of a decision finding kind. Rejects a package root that is not in the repository. Rejects a model value that does not agree with the type of its field. Rejects a configured output file that is not in the output directory. Rejects a layer ID that is not a safe name and a component ID that is a key of the page data.',
            kind='actor',
            container='around',
            x=36,
            y=326,
        ),
        Component(
            id='FactsExtractor',
            does='Reads the syntax tree and writes module records. Records public names, imports, the lines that use imported names, test imports and entry points. Records the source files and TypeScript syntax that it cannot read or parse, with the cause of each record. Resolves self-name imports and package.json subpath imports to modules of the same package. An import of a declaration file is not an unresolved import. Relative imports and path aliases can also name declaration files. A comment directly before a TypeScript variable does not become the module description without a blank line or a module tag. Records each re-export target without a module one time for each statement and target, with its line and names. An indirect re-export through an import gives the same record. A license notice does not become a module description. Records a digest of the configuration values that extraction reads. Writes the Python syntax digest and the api fingerprints from the syntax text of systemap, and takes the Python signatures and constant values from the source text. Thus these values are the same on each supported Python version. A Python syntax node that the syntax text does not know stops the extraction. Reads stored facts through systemap facts. The language adapters give the language operations and the facts with the same meaning for each language. For the upgrade of answers from 2.0.0, the Python adapter gives each module record with the ast.unparse text of 2.0.0 for the signatures and constant values. The stored facts do not change.',
            kind='actor',
            container='around',
            x=36,
            y=234,
        ),
        Component(
            id='Figures',
            does='Makes a figure from the same diagram generator for a document. Shows the system, components in a plan, or a change. Gives an SVG file with a background. Shows the model and configuration text as HTML text. Rejects an SVG ID that is not a safe HTML ID.',
            kind='actor',
            container='around',
            x=36,
            y=970,
        ),
        Component(
            id='Judgement',
            does='Gives findings for examination: single-module components, incorrect groups, missing flow explanations, layers, entry points, imports and TypeScript records. Uses accepted answers and policies. Reports stale component source reviews and source records outside the flow endpoints or the sequence step components. Gives each flow review earlier than source tracking as a row with a label, not as a finding. A change to a cited module opens the flow review again. With --strict, returns exit code 1 for findings without answers or for a model without components. Gives the cause, the fix line and the source location rows of each unknown surface finding. Gives a contract reason finding for each invariant or import rule without a reason. A finding line contains no line number, source excerpt, parser version or count. The evidence digest of an answer contains the names, imports and entry points that the finding cites. A comment, a function body or a test does not open an answer again. Gives no finding about a test file. Gives an answer item with a previous decision kind name as a stale answer with the current line. With --json, writes the findings, answers and counts as one JSON object. Gives the assurance level and the freshness of each component, flow, invariant and import rule to the JSON object and to the page. Gives the open boundary findings of the map tree to the canvas page. It applies the answers only to the boundary findings, thus it does not make the other findings. An exact answer that also names a different finding needs all findings. Only an import rule with the result pass is established. A current source review or flow review gives examined. All other claims are unknown. With require_reviews, a missing source review is a finding. systemap decisions gives the claims to a coding agent, rejects verdicts without correct citations, records the correct verdicts and shows the unknown claims. With --order-by-drift, puts the stale source review lines in sequence by the drift score from a decision provider. systemap decisions submit holds .systemap/write.lock from the read of the store to the last write. Before the first review write, it takes the lock of each model file that a review can write. The store write reads the store again and keeps the records of the other keys. If the configuration does not load after the answer write, the command restores the previous bytes only if no different writer changed the file. systemap suggest gives initial module groups and the map= file name of each possible nested map. systemap parts writes the part plan of the nested maps of one map: the modules, the module groups, the adjacent components, the flows and imports at each boundary, the entry points, and two digests. A different source fact, or a different contract of the parent map or of a map above it, makes the plan stale. A new commit with the same source facts does not make the plan stale. systemap parts --results examines the result file of each nested part against the plan. In each nested map, gives a boundary flow finding for a flow across the boundary of the map that the parent map does not show in the same direction, and for a parent flow that no nested flow shows. Gives a boundary import finding for an import across the boundary when the nested map has no actor or no flow for the imported component. The owner of an imported module is the component that claims it in the nearest map above the nested map.',
            kind='actor',
            container='around',
            x=36,
            y=418,
        ),
        Component(
            id='Maintainer',
            does='Examines judgement answers. Corrects model errors and writes the map in a Git commit.',
            kind='actor',
            container='around',
            x=36,
            y=1062,
        ),
        Component(
            id='Model',
            does='Gives the schema for containers, regions, components, flows, invariants, import rules and meaning tables. Gives the schema for state machines: the states of one item of a component, each with its source symbol, and the transitions with their causes. Finds a state machine that names an unknown component, state, flow or sequence. Gives the contract of each map: its invariants and import rules, each with a reason. Gives a finding for a rule without a reason. Does model checks. Sets flow evidence states and source review digests. A flow review digest contains the flow claim and the digests of the cited modules. Loads child maps when a component card opens a map. With a map ID, loads only that map, its parent maps and its nested maps, and does not read the files of other maps. A card that opens a map must have an ID that is one path segment. Replaces a model file through a temporary file. If a replacement fails, restores the previous files. Holds the lock <model file>.lock of each model file during the write, so that two processes can write two different model files at the same time. Gives the file name of a nested map: the map ID in lower case, with _ in place of each /, and .py. Gives the files of the part plan and of the result files in map/parts. Refuses a stem of a nested map that is reserved, that is the same as a different stem, or whose prefix is the start of a different stem. To find the modules that the module claims of a component cover, it uses a sorted list of the module names. It keeps this list for each of the last 4 module lists that it examined.',
            kind='actor',
            container='around',
            x=36,
            y=602,
        ),
        Component(
            id='Schematic',
            does='Makes the SVG diagram. Uses card symbols for component kinds and line colors for flow kinds. Shows connected components, selected sequence steps and the change marks of a revision comparison. Gives the script that changes the layer, the map position and the zoom. When the zoom is less than 100 percent, makes the map labels larger. Rejects a theme value that contains a mark that can change the HTML or the CSS. Rejects a theme key that is not a safe name and a card symbol that is not available. The inspector gives the assurance level and the freshness of each component, flow and invariant.',
            kind='actor',
            container='around',
            x=36,
            y=510,
        ),
        Component(
            id='PageData',
            does='Makes the data of the pages. For the canvas page, gives one object with the cards, the flow paths, the sequences, the state machines, the changes and the details of all maps. For the linked page, gives the module records.',
            implemented_by=(
                'systemap.canvas_data',
                'systemap.canvas_changes',
                'systemap.canvas_states',
                'systemap.canvas_sequences',
                'systemap.canvas_details',
                'systemap.page_data',
            ),
            entry='build',
            region='data',
            x=270,
            y=348,
            source_review="689e8a421750678c15842a3cbfa8421be6b5cdedc9f219b956d28a51fec97f6f",
        ),
        Component(
            id='CanvasPage',
            does='Makes the canvas page from the page data and the script parts. Makes the header, and a page for each nested map that goes to the canvas page. Gives the pages of a map tree to the commands. If the configuration sets canvas = false, starts the linked page.',
            implemented_by=(
                'systemap.canvas_page',
                'systemap.canvas_header',
                'systemap.canvas_redirect',
                'systemap.render_pages',
                'systemap.page_canvas',
            ),
            entry='pages',
            region='canvas',
            x=508,
            y=440,
            source_review="99ce3355b643febf134342b83dd17a765adc5217aeed0ffa98eee698b535ffae",
        ),
        Component(
            id='CanvasDrawing',
            does='Gives the script parts that draw the maps on the canvas: the scene, the cards, the flow lines, the labels, the stored images, the fades, the text, the ports and the legend.',
            implemented_by=(
                'systemap.page_canvas_scene',
                'systemap.page_canvas_draw',
                'systemap.page_canvas_image',
                'systemap.page_canvas_fade',
                'systemap.page_canvas_text',
                'systemap.page_canvas_finish',
                'systemap.page_canvas_ports',
            ),
            entry='DRAW',
            region='canvas',
            x=698,
            y=440,
            source_review="78b70c0faee642c7a1d6dc3c2e121b3762e3390c398d91df9ac8ad1a2cfcbe4f",
        ),
        Component(
            id='CanvasControls',
            does='Gives the script parts for the keyboard, the touch screen, the list of the map tree and Find.',
            implemented_by=(
                'systemap.page_canvas_keys',
                'systemap.page_canvas_touch',
                'systemap.page_canvas_tree',
                'systemap.page_canvas_find',
            ),
            entry='KEYS',
            region='canvas',
            x=508,
            y=348,
            source_review="2905038906b15368635707570f0e36d67b3508e84b31e2d5224a2f606cc331ee",
        ),
        Component(
            id='CanvasViews',
            does='Gives the script parts for the views of the canvas page: the layers, the Sequences view, the States view, the Changes view, the caption and the Details panel.',
            implemented_by=(
                'systemap.page_canvas_view',
                'systemap.page_canvas_changes',
                'systemap.page_canvas_caption',
                'systemap.page_canvas_board',
                'systemap.page_canvas_sequences',
                'systemap.page_canvas_details',
            ),
            entry='VIEW_PART',
            region='canvas',
            x=698,
            y=348,
            source_review="6e7d002a2dd2562d5d59611dca7870635a969a6fe71d5b4712772ce196264965",
        ),
        Component(
            id='LinkedPage',
            does='Makes the linked page: one page for each map, with the SVG diagram, the reading panel, the guide, the map controls and the phone layout. Gives its text tools to the other parts.',
            implemented_by=(
                'systemap.page',
                'systemap.page_script',
                'systemap.page_workspace',
                'systemap.page_guide',
                'systemap.page_present',
                'systemap.page_mapview',
                'systemap.page_phone',
                'systemap.page_motion',
                'systemap.page_groups',
                'systemap.page_group_lines',
            ),
            entry='build',
            region='linked',
            x=270,
            y=200,
            source_review="b597771ab4002b2fdcbffb48bec904da2f6652a6a5e0f5bf61a950f8657f97d3",
        ),
        Component(
            id='LinkedViews',
            does='Gives the Sequences view and the Changes view of the linked page: their toolbars, their panels, their data and their scripts.',
            implemented_by=(
                'systemap.page_sequences',
                'systemap.page_sequence_script',
                'systemap.page_changes',
                'systemap.page_changes_script',
                'systemap.page_changes_map',
            ),
            entry='toolbar',
            region='linked',
            x=270,
            y=108,
            source_review="04b679ab6a7b7ad3294241e3e951d387ac9a32106fa1a0088e9f76db6cc480a8",
        ),
        Component(
            id='PageAssets',
            does='Gives the parts that the two pages share: the styles, the icons, the Find list, the font, the content security policy and the script of the live page.',
            implemented_by=(
                'systemap.page_assets',
                'systemap.page_icons',
                'systemap.page_palette',
                'systemap.page_font',
                'systemap.page_csp',
                'systemap.page_live',
            ),
            entry='CSS',
            region='shared',
            x=508,
            y=108,
            source_review="bf60693f7e3fc0d8ea237bec6674245d54511653737571b459e3af223f315405",
        ),
    ),
    flows=(
        Flow('PageData', 'CanvasPage', 'canvas data', 'data',
             source_refs=('systemap.canvas_page@031ae8836d5f04af2f88e1c08d150f727fc2c757ca72abd471558fb7b2d3ca3a', 'systemap.canvas_data@5c2564d5c6292ef43a712a0cbe73094cea26212c2941d9023f2e56b5dfd07d8d',),
             review_digest="b174a0f2ca6c0cf98c4fcc82754cc2d7ce8dd81d66de7421fa0cfd999d7907b2"),
        Flow('CanvasDrawing', 'CanvasPage', 'drawing script', 'data',
             source_refs=('systemap.page_canvas@51bacc66cf239f24ea4fa9ea06fae0b3613a6da99c0ae870cff86d16d7daebc1', 'systemap.page_canvas_draw@b254d25027a3b1b8a1e0fc7aa1fd2335623fb5664f87c147acb5830b8e8db32b',),
             review_digest="d734ceb6630a7d4f7304686f3648bdef29ff23d9c59998bfe7cc942bc636e7a0"),
        Flow('CanvasControls', 'CanvasPage', 'control script', 'data',
             source_refs=('systemap.page_canvas@51bacc66cf239f24ea4fa9ea06fae0b3613a6da99c0ae870cff86d16d7daebc1', 'systemap.page_canvas_keys@c14b7dc89fe6102adf3df71474c078b94a916691536f7bdeb721adab504d4165',),
             review_digest="1e634fb75173f616bc785fe4cdecc48052d0b853bfa6b30ea56d95c3abf34226"),
        Flow('CanvasViews', 'CanvasPage', 'view script', 'data',
             source_refs=('systemap.page_canvas@51bacc66cf239f24ea4fa9ea06fae0b3613a6da99c0ae870cff86d16d7daebc1', 'systemap.page_canvas_view@b80bd0d820aedb8c28afb0c338bd20448da4d92e09497fa7aa2960e837ca26d7',),
             review_digest="d88e0303c04c3c89e2e996cdba32a423094889ac1f2867ca2329fb1683881d53"),
        Flow('CanvasPage', 'LinkedPage', 'render', 'control',
             source_refs=('systemap.render_pages@b6ae2008546aa4c5e2e9b56177a12faf137b74527362c56a3a1c31d4d0f7f1c4', 'systemap.page@16dd067c914f9d24b4a64c3f5a7b076959f1841a1452ed30b9bc1f414b558ae1',),
             review_digest="47bda7f5baba95e92a2e89d024bc279af22ff978a4cbb107a4c4492d426575d5"),
        Flow('PageAssets', 'CanvasPage', 'font, policy', 'data',
             source_refs=('systemap.canvas_page@031ae8836d5f04af2f88e1c08d150f727fc2c757ca72abd471558fb7b2d3ca3a', 'systemap.page_font@95c8e50c60cbc4cdc8e9a07a905bdf7aa0e324e77cc3e655c0330778695001c3', 'systemap.page_csp@16e1b02de9aa490a88573a961cdfa72e2d993f7a39a995aad36d1eefd55a8333',),
             review_digest="0ed164b79493139ce9b4f16aea4c863f9af085158fba38986ab93d9f355b5e55"),
        Flow('PageAssets', 'LinkedPage', 'styles, icons', 'data',
             source_refs=('systemap.page@16dd067c914f9d24b4a64c3f5a7b076959f1841a1452ed30b9bc1f414b558ae1', 'systemap.page_assets@567b8d40d7c4a0f30f57291e2c7bec6ff0e590d5a78307c25c78bdaa324a19cd', 'systemap.page_icons@a084a58edf5b616aba34cf22da24ace6f3ecb399f724e4a3d5dd3b5b4edfa8b9',),
             review_digest="eb3c8cd6dcbec8cfa6cbd3658bfb38eb69e2dc40202bb3cdf2e83319f9b1f500"),
        Flow('LinkedViews', 'LinkedPage', 'view parts', 'data',
             source_refs=('systemap.page@16dd067c914f9d24b4a64c3f5a7b076959f1841a1452ed30b9bc1f414b558ae1', 'systemap.page_sequences@fca8451cf2ad76b3818c52c68081a9a6dd004e89cf390633ec3cad3a3c2f5369', 'systemap.page_changes@35133119c0e2717371cedb9ad60770ff6fe3f655cd87dad0d6f7815cc11b5efa',),
             review_digest="01c432fdb97991e879ebbeb9889d78620e748be53ab42668f93c7f4f52bd31a3"),
        Flow('PageData', 'LinkedPage', 'module records', 'data',
             source_refs=('systemap.page@16dd067c914f9d24b4a64c3f5a7b076959f1841a1452ed30b9bc1f414b558ae1', 'systemap.page_data@241ade46b9bc086505074413b3ec899ded295103877d77e4f2a88424fd8a76ed',),
             review_digest="302a5a7636b4f3bbad1475916fa22d2ebfe46b023e7e992cf44f5adc8e609b89"),
        Flow('LinkedViews', 'PageData', 'entries, comparison', 'data',
             source_refs=('systemap.canvas_sequences@af17734f0c2050047f18d0594d2558e2e663617dfa25a97e03c217bda5f37951', 'systemap.page_sequences@fca8451cf2ad76b3818c52c68081a9a6dd004e89cf390633ec3cad3a3c2f5369', 'systemap.canvas_changes@546f174ae2b2cc4e8e8ffddc2c75a03f8ad3d663eeb559f1b15ea7374390394e', 'systemap.page_changes@35133119c0e2717371cedb9ad60770ff6fe3f655cd87dad0d6f7815cc11b5efa',),
             review_digest="dbb2553a67c6c6c23ecd56652d08e0ce728b3e1e5502291e2ab9c25377b72a57"),
        Flow('LinkedPage', 'CanvasViews', 'keys sheet', 'data',
             source_refs=('systemap.page_canvas_details@68dbbd6fa161efb9f64a48168c2ef3a967eef63a0581f3fcdf56eae407a5b757', 'systemap.page_motion@b62276af681d3053f7bcb7e7f607c1d83ea3ee83a5ef4066d3ffa463613959a3',),
             review_digest="1d4a619a07d1f44b40faea0e6e11beed9fb26eb99c1fa8670163ebfcaf502b29"),
        Flow('LinkedViews', 'CanvasViews', 'changes command', 'data',
             source_refs=('systemap.page_canvas_changes@d0fe508fc878a52559aaeb45cfa90a6bcde2b578bf8c6bdd615ebfe951b378fa', 'systemap.page_changes@35133119c0e2717371cedb9ad60770ff6fe3f655cd87dad0d6f7815cc11b5efa',),
             review_digest="4db6d4ca597181d91ed77d02e24a62854f2a5a9ffb4a64537d77c9d83d72809a"),
        Flow('PageAssets', 'CanvasControls', 'Find list', 'data',
             source_refs=('systemap.page_canvas_find@3126016f8695d35d7a88d90013e2c972248bcc146c1f9ec8b1580b66c9ebf5cc', 'systemap.page_palette@218ffc4569b7e498004c1562ec4163d2f10d543ef58b3001e008bbf2819900b0',),
             review_digest="fc4a3441350d46db36b6dcc19d6ba7d47db83c9d88de8bcb1783787e99e51718"),
        Flow('PageAssets', 'CanvasViews', 'icons', 'data',
             source_refs=('systemap.page_canvas_sequences@fbb0dc88bcbd1cf39ba2e4fe10e5ee5c525a0ca715f17bb7fbc8d58c3649b311', 'systemap.page_icons@a084a58edf5b616aba34cf22da24ace6f3ecb399f724e4a3d5dd3b5b4edfa8b9',),
             review_digest="71d83c46755ef933ffa4bc826e129ad8df367ce795eabbe03dd5dadc451b01a5"),
        Flow('PageAssets', 'LinkedViews', 'icons', 'data',
             source_refs=('systemap.page_sequences@fca8451cf2ad76b3818c52c68081a9a6dd004e89cf390633ec3cad3a3c2f5369', 'systemap.page_icons@a084a58edf5b616aba34cf22da24ace6f3ecb399f724e4a3d5dd3b5b4edfa8b9',),
             review_digest="8ab7153824c3de2ca4cacab85cc4fd151db5eeb0635e4126a3e8656bd421e16a"),
        Flow('CLI', 'CanvasPage', 'render', 'control'),
        Flow('Check', 'CanvasPage', 'render to compare', 'control'),
        Flow('Config', 'CanvasPage', 'name, paths', 'data'),
        Flow('CanvasPage', 'Figures', 'map hash', 'data'),
        Flow('Judgement', 'PageData', 'uncovered entry points, assurance levels, boundary findings', 'data'),
        Flow('FactsExtractor', 'PageData', 'source records', 'data'),
        Flow('ChangeDetector', 'PageData', 'change map', 'data'),
        Flow('Model', 'PageData', 'layers', 'data'),
        Flow('Schematic', 'LinkedPage', 'svg, detail', 'data'),
        Flow('CanvasPage', 'Maintainer', 'the page', 'data'),
        Flow('Schematic', 'PageData', 'svg, detail', 'data'),
        Flow('Config', 'PageData', 'name, paths', 'data'),
        Flow('Judgement', 'CanvasPage', 'uncovered entry points, assurance levels, boundary findings', 'data'),
        Flow('Model', 'CanvasPage', 'layers', 'data'),
        Flow('Schematic', 'CanvasPage', 'svg, detail', 'data'),
        Flow('ChangeDetector', 'CanvasPage', 'change map', 'data'),
        Flow('Judgement', 'LinkedPage', 'uncovered entry points, assurance levels, boundary findings', 'data'),
        Flow('Config', 'LinkedPage', 'name, paths', 'data'),
        Flow('Model', 'LinkedPage', 'layers', 'data'),
        Flow('Model', 'CanvasViews', 'layers', 'data'),
        Flow('Schematic', 'LinkedViews', 'svg, detail', 'data'),
        Flow('ChangeDetector', 'LinkedViews', 'change map', 'data'),
        Flow('Judgement', 'LinkedViews', 'uncovered entry points, assurance levels, boundary findings', 'data'),
        Flow('Model', 'LinkedViews', 'layers', 'data'),
        Flow('FactsExtractor', 'LinkedViews', 'source records', 'data'),
        Flow('Config', 'PageAssets', 'name, paths', 'data'),
    ),
    flow_kinds=(),
)

MEANING = Meaning(
    plain={
        'CLI': 'The commands',
        'ChangeDetector': 'The source comparison',
        'Check': 'The map checks',
        'Config': 'The configuration',
        'FactsExtractor': 'The source records',
        'Figures': 'The document figures',
        'Judgement': 'The review findings',
        'Maintainer': 'The maintainer',
        'Model': 'The map schema',
        'Schematic': 'The map diagram',
        'PageData': 'The page data',
        'CanvasPage': 'The canvas page',
        'CanvasDrawing': 'The canvas drawing',
        'CanvasControls': 'The canvas controls',
        'CanvasViews': 'The canvas views',
        'LinkedPage': 'The linked page',
        'LinkedViews': 'The linked views',
        'PageAssets': 'The page assets',
    },
    relations={
        ('PageData', 'CanvasPage'): 'The canvas page puts the data object in the page one time.',
        ('CanvasDrawing', 'CanvasPage'): 'The canvas page joins the drawing parts into one script.',
        ('CanvasControls', 'CanvasPage'): 'The canvas page joins the control parts into the same script.',
        ('CanvasViews', 'CanvasPage'): 'The canvas page joins the view parts into the same script.',
        ('CanvasPage', 'LinkedPage'): 'If the configuration sets canvas = false, the page writer makes the linked pages.',
        ('PageAssets', 'CanvasPage'): 'The canvas page gets the font and the content security policy.',
        ('PageAssets', 'LinkedPage'): 'The linked page gets its styles and icons.',
        ('LinkedViews', 'LinkedPage'): 'The linked page gets the toolbars, panels and scripts of the two views.',
        ('PageData', 'LinkedPage'): 'The linked page gets the module records for its source panel.',
        ('LinkedViews', 'PageData'): 'The page data uses the entry text of a sequence and the test for a comparison.',
        ('LinkedPage', 'CanvasViews'): 'The Details part gets the sheet of the keyboard keys.',
        ('LinkedViews', 'CanvasViews'): 'The Changes view of the canvas page shows the same command as the linked page.',
        ('PageAssets', 'CanvasControls'): 'Find on the canvas page uses the list of the linked page.',
        ('PageAssets', 'CanvasViews'): 'The Sequences toolbar gets its icons.',
        ('PageAssets', 'LinkedViews'): 'The Sequences toolbar of the linked page gets its icons.',
        ('CLI', 'CanvasPage'): 'render and refresh make the pages from the facts and the model.',
        ('Check', 'CanvasPage'): 'The output check makes the pages from stored facts. It compares the result with the stored pages.',
        ('Config', 'CanvasPage'): 'The pages read their title and the render settings from the configuration.',
        ('CanvasPage', 'Figures'): 'The canvas page gives the URL hash of a map. A figure caption uses it.',
        ('Judgement', 'PageData'): 'The page data gets the assurance level of each claim and the open boundary findings.',
        ('FactsExtractor', 'PageData'): 'The page data gets the stored source records of each module.',
        ('ChangeDetector', 'PageData'): 'With --base, the page data gets the changed components.',
        ('Model', 'PageData'): 'The page data uses the components, layers, sequences and state machines of the model.',
        ('Schematic', 'LinkedPage'): 'The linked page contains the SVG and the detail data of the diagram.',
        ('CanvasPage', 'Maintainer'): 'The maintainer opens the canvas page.',
        ('Schematic', 'PageData'): 'The page data uses the geometry of the diagram and the marks of the change map.',
        ('Config', 'PageData'): 'The page data reads the name of the system and the evidence settings.',
        ('Judgement', 'CanvasPage'): 'The canvas page gets the open boundary findings of the map tree.',
        ('Model', 'CanvasPage'): 'The canvas page reads the map tree.',
        ('Schematic', 'CanvasPage'): 'The canvas page gets the theme tokens of the map page.',
        ('ChangeDetector', 'CanvasPage'): 'With --base, the page writer gets the source change.',
        ('Judgement', 'LinkedPage'): 'The linked page gets the assurance level of each invariant and import rule.',
        ('Config', 'LinkedPage'): 'The linked page reads the name of the system and the evidence settings.',
        ('Model', 'LinkedPage'): 'The linked page uses the components, layers and sequences of the model.',
        ('Model', 'CanvasViews'): 'The Details part gets the words for each evidence state of a flow.',
        ('Schematic', 'LinkedViews'): 'The Changes view of the linked page uses the change marks of the diagram.',
        ('ChangeDetector', 'LinkedViews'): 'The Changes view of the linked page gets the comparison of the model with its base.',
        ('Judgement', 'LinkedViews'): 'The Sequences view of the linked page uses the coverage rule for entry points.',
        ('Model', 'LinkedViews'): 'The Sequences view of the linked page reads the sequences of the model.',
        ('FactsExtractor', 'LinkedViews'): 'The Sequences view of the linked page reads the entry points from the source records.',
        ('Config', 'PageAssets'): 'The policy part reads a page file through the file reader of the configuration.',
    },
)
