@cagent/chat-embedding-core 0.0.13 → 0.0.14
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.
- package/.env +6 -0
- package/README.md +213 -213
- package/bun.lock +1548 -1548
- package/dist/abnfDiagram-VRR7QNED-3cfb3856.js +1 -0
- package/dist/abnfDiagram-VRR7QNED-686410b0.js +1 -0
- package/dist/abnfDiagram-VRR7QNED-fb22812d.js +1 -0
- package/dist/api/chatRoom.d.ts.map +1 -0
- package/dist/arc-24dd4755.js +1 -0
- package/dist/arc-5d6257cf.js +1 -0
- package/dist/arc-90e71e7e.js +1 -0
- package/dist/architecture-TIHT7OUA-a997f441.js +1 -0
- package/dist/architecture-TIHT7OUA-faa1f9b3.js +1 -0
- package/dist/architectureDiagram-ZJ3FMSHR-87443299.js +1 -0
- package/dist/architectureDiagram-ZJ3FMSHR-93988e41.js +1 -0
- package/dist/architectureDiagram-ZJ3FMSHR-bde2dd21.js +1 -0
- package/dist/blockDiagram-677ZJIJ3-25a94a47.js +1 -0
- package/dist/blockDiagram-677ZJIJ3-88bd543c.js +1 -0
- package/dist/blockDiagram-677ZJIJ3-c769a3c8.js +1 -0
- package/dist/c4Diagram-LMCZKHZV-763880d7.js +1 -0
- package/dist/c4Diagram-LMCZKHZV-d7fc839e.js +1 -0
- package/dist/c4Diagram-LMCZKHZV-da04a76e.js +1 -0
- package/dist/channel-11d3f4bc.js +1 -0
- package/dist/channel-534c2e17.js +1 -0
- package/dist/channel-c3cf6060.js +1 -0
- package/dist/chunk-2Q5K7J3B-2892df89.js +1 -0
- package/dist/chunk-2Q5K7J3B-7960ff8e.js +1 -0
- package/dist/chunk-2Q5K7J3B-9497bf31.js +1 -0
- package/dist/chunk-32BRIVSS-10123eba.js +1 -0
- package/dist/chunk-32BRIVSS-10ac68f7.js +1 -0
- package/dist/chunk-32BRIVSS-8a8507a2.js +1 -0
- package/dist/chunk-5VM5RSS4-36b32f6e.js +1 -0
- package/dist/chunk-5VM5RSS4-4b2efd20.js +1 -0
- package/dist/chunk-5VM5RSS4-5fc85a49.js +1 -0
- package/dist/chunk-EX3LRPZG-36494b87.js +1 -0
- package/dist/chunk-EX3LRPZG-6cd1f2fa.js +1 -0
- package/dist/chunk-EX3LRPZG-7ac6d0d7.js +1 -0
- package/dist/chunk-JWPE2WC7-15a55950.js +1 -0
- package/dist/chunk-JWPE2WC7-84faee3d.js +1 -0
- package/dist/chunk-JWPE2WC7-e2521b1e.js +1 -0
- package/dist/chunk-MOJQB5TN-47f0392f.js +1 -0
- package/dist/chunk-MOJQB5TN-5cc2e61b.js +1 -0
- package/dist/chunk-MOJQB5TN-ea88675c.js +1 -0
- package/dist/chunk-PUDLZKDR-057ec46a.js +1 -0
- package/dist/chunk-PUDLZKDR-53309be9.js +1 -0
- package/dist/chunk-PUDLZKDR-6de50ada.js +1 -0
- package/dist/chunk-RYQCIY6F-06b096c5.js +1 -0
- package/dist/chunk-RYQCIY6F-453400cd.js +1 -0
- package/dist/chunk-RYQCIY6F-8de649c8.js +1 -0
- package/dist/chunk-V7JOEXUC-4083766f.js +1 -0
- package/dist/chunk-V7JOEXUC-4e8d7729.js +1 -0
- package/dist/chunk-V7JOEXUC-bb2df9b0.js +1 -0
- package/dist/chunk-VR4S4FIN-5feb7571.js +1 -0
- package/dist/chunk-VR4S4FIN-9df47127.js +1 -0
- package/dist/chunk-VR4S4FIN-c4f2681d.js +1 -0
- package/dist/chunk-XXDRQBXY-3c9d8bf9.js +1 -0
- package/dist/chunk-XXDRQBXY-de00e988.js +1 -0
- package/dist/chunk-XXDRQBXY-f923ffed.js +1 -0
- package/dist/classDiagram-OUVF2IWQ-5cdf5fe6.js +1 -0
- package/dist/classDiagram-OUVF2IWQ-d51bd736.js +1 -0
- package/dist/classDiagram-OUVF2IWQ-fc2b54d6.js +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-5cdf5fe6.js +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-d51bd736.js +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-fc2b54d6.js +1 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Bot.d.ts.map +1 -0
- package/dist/components/FeedbackContentDialog.d.ts.map +1 -0
- package/dist/components/RoomReconnectAlert.d.ts.map +1 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/TypingBubble.d.ts.map +1 -0
- package/dist/components/avatars/Avatar.d.ts.map +1 -0
- package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
- package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -0
- package/dist/components/bubbles/BotBubble.d.ts.map +1 -0
- package/dist/components/bubbles/ChartBubble.d.ts.map +1 -0
- package/dist/components/bubbles/ChartLoadingPlaceholder.d.ts.map +1 -0
- package/dist/components/bubbles/ChartPlaceholder.d.ts.map +1 -0
- package/dist/components/bubbles/ChartPopupModal.d.ts.map +1 -0
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
- package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +1 -0
- package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
- package/dist/components/bubbles/SourceBubble.d.ts.map +1 -0
- package/dist/components/bubbles/StableChartWrapper.d.ts.map +1 -0
- package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -0
- package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
- package/dist/components/buttons/CancelButton.d.ts.map +1 -0
- package/dist/components/buttons/CopyMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/EditMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -0
- package/dist/components/buttons/ImageUploadButton.d.ts.map +1 -0
- package/dist/components/buttons/LeadCaptureButtons.d.ts.map +1 -0
- package/dist/components/buttons/PopupToast.d.ts.map +1 -0
- package/dist/components/buttons/RecordAudioButton.d.ts.map +1 -0
- package/dist/components/buttons/SendButton.d.ts.map +1 -0
- package/dist/components/dialogs/EditMessageDialog.d.ts.map +1 -0
- package/dist/components/icons/AddImageIcon.d.ts.map +1 -0
- package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
- package/dist/components/icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/CircleDotIcon.d.ts.map +1 -0
- package/dist/components/icons/ClipboardIcon.d.ts.map +1 -0
- package/dist/components/icons/CopyIcon.d.ts.map +1 -0
- package/dist/components/icons/DeleteIcon.d.ts.map +1 -0
- package/dist/components/icons/EditIcon.d.ts.map +1 -0
- package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
- package/dist/components/icons/RecordIcon.d.ts.map +1 -0
- package/dist/components/icons/ResetZoomIcon.d.ts.map +1 -0
- package/dist/components/icons/SendIcon.d.ts.map +1 -0
- package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
- package/dist/components/icons/StopIcon.d.ts.map +1 -0
- package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -0
- package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -0
- package/dist/components/icons/TickIcon.d.ts.map +1 -0
- package/dist/components/icons/TrashIcon.d.ts.map +1 -0
- package/dist/components/icons/XIcon.d.ts.map +1 -0
- package/dist/components/icons/ZoomInIcon.d.ts.map +1 -0
- package/dist/components/icons/ZoomOutIcon.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/image/PreviewImage.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -0
- package/dist/components/inputs/textInput/index.d.ts.map +1 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/cose-bilkent-JH36ORCC-ac4d2e28.js +1 -0
- package/dist/cose-bilkent-JH36ORCC-c3560feb.js +1 -0
- package/dist/cose-bilkent-JH36ORCC-f0ddc3e7.js +1 -0
- package/dist/cynefin-VYW2F7L2-2458ad91.js +1 -0
- package/dist/cynefin-VYW2F7L2-a8648cf6.js +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-62a29383.js +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-910b3dfd.js +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-deb0bb2c.js +1 -0
- package/dist/cytoscape.esm-56d2239f.js +1 -0
- package/dist/cytoscape.esm-c9352dc8.js +1 -0
- package/dist/dagre-VKFMJZFB-1467d0af.js +1 -0
- package/dist/dagre-VKFMJZFB-35daad97.js +1 -0
- package/dist/dagre-VKFMJZFB-c5b9a4a0.js +1 -0
- package/dist/defaultLocale-b4977250.js +1 -0
- package/dist/defaultLocale-e35a4def.js +1 -0
- package/dist/diagram-FQU43EPY-41eed431.js +1 -0
- package/dist/diagram-FQU43EPY-613e9e4e.js +1 -0
- package/dist/diagram-FQU43EPY-d256050e.js +1 -0
- package/dist/diagram-G47NLZAW-813bbb70.js +1 -0
- package/dist/diagram-G47NLZAW-8ef917d1.js +1 -0
- package/dist/diagram-G47NLZAW-aa02607c.js +1 -0
- package/dist/diagram-NH7WQ7WH-0af7a921.js +1 -0
- package/dist/diagram-NH7WQ7WH-0e4f7f17.js +1 -0
- package/dist/diagram-NH7WQ7WH-6f91f6aa.js +1 -0
- package/dist/diagram-OA4YK3LP-0fba2475.js +1 -0
- package/dist/diagram-OA4YK3LP-587273f4.js +1 -0
- package/dist/diagram-OA4YK3LP-6cbfc7a5.js +1 -0
- package/dist/diagram-WEI45ONY-0241463f.js +1 -0
- package/dist/diagram-WEI45ONY-dd634033.js +1 -0
- package/dist/diagram-WEI45ONY-e002e844.js +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-20ac4ba3.js +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-e9974165.js +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-ead44055.js +1 -0
- package/dist/erDiagram-Q63AITRT-1febb8fc.js +1 -0
- package/dist/erDiagram-Q63AITRT-4ea4b93d.js +1 -0
- package/dist/erDiagram-Q63AITRT-bcb00855.js +1 -0
- package/dist/eventmodeling-45OFAUF4-a82f1f18.js +1 -0
- package/dist/eventmodeling-45OFAUF4-dcf667fc.js +1 -0
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
- package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
- package/dist/features/bubble/components/Tooltip.d.ts.map +1 -0
- package/dist/features/bubble/components/index.d.ts.map +1 -0
- package/dist/features/bubble/index.d.ts.map +1 -0
- package/dist/features/bubble/types.d.ts.map +1 -0
- package/dist/features/full/components/Full.d.ts.map +1 -0
- package/dist/features/full/components/index.d.ts.map +1 -0
- package/dist/features/full/index.d.ts.map +1 -0
- package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
- package/dist/features/popup/components/Popup.d.ts.map +1 -0
- package/dist/features/popup/components/index.d.ts.map +1 -0
- package/dist/features/popup/index.d.ts.map +1 -0
- package/dist/features/popup/types.d.ts.map +1 -0
- package/dist/flowDiagram-23GEKE2U-14ee2b3c.js +1 -0
- package/dist/flowDiagram-23GEKE2U-7ab9c2e4.js +1 -0
- package/dist/flowDiagram-23GEKE2U-f7309569.js +1 -0
- package/dist/ganttDiagram-NO4QXBWP-249a167d.js +1 -0
- package/dist/ganttDiagram-NO4QXBWP-bd530d12.js +1 -0
- package/dist/ganttDiagram-NO4QXBWP-e5e495d6.js +1 -0
- package/dist/gitGraph-TEB2WS4Q-72ba3362.js +1 -0
- package/dist/gitGraph-TEB2WS4Q-d07b15b3.js +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-2964ff91.js +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-4d9324ad.js +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-97bf868b.js +1 -0
- package/dist/graph-0df36b9d.js +1 -0
- package/dist/graph-c6801890.js +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/info-DKCQHKI2-d8e8a901.js +1 -0
- package/dist/info-DKCQHKI2-dd69502c.js +1 -0
- package/dist/infoDiagram-FWYZ7A6U-1267309e.js +1 -0
- package/dist/infoDiagram-FWYZ7A6U-5b9d28af.js +1 -0
- package/dist/infoDiagram-FWYZ7A6U-cc33afe4.js +1 -0
- package/dist/init-b029a625.js +1 -0
- package/dist/init-cf76ae07.js +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-3f0977e8.js +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-89c1b2f4.js +1 -0
- package/dist/ishikawaDiagram-FXEZZL3T-9fef4653.js +1 -0
- package/dist/journeyDiagram-5HDEW3XC-563a68ff.js +1 -0
- package/dist/journeyDiagram-5HDEW3XC-c8c8d701.js +1 -0
- package/dist/journeyDiagram-5HDEW3XC-e6c5e84b.js +1 -0
- package/dist/kanban-definition-HUTT4EX6-3719e367.js +1 -0
- package/dist/kanban-definition-HUTT4EX6-7bc0cd1e.js +1 -0
- package/dist/kanban-definition-HUTT4EX6-d8b002e3.js +1 -0
- package/dist/katex-67456a45.js +1 -0
- package/dist/katex-b134d23c.js +1 -0
- package/dist/layout-e44354bf.js +1 -0
- package/dist/layout-ff5d33a1.js +1 -0
- package/dist/linear-7b1a23f3.js +1 -0
- package/dist/linear-d7ad6d25.js +1 -0
- package/dist/linear-e5c99c88.js +1 -0
- package/dist/map-05f0ff95.js +1 -0
- package/dist/map-d3292a5b.js +1 -0
- package/dist/mermaid-parser.core-6df0beec.js +1 -0
- package/dist/mermaid-parser.core-d8d1c2b9.js +1 -0
- package/dist/mermaid.core-2d237a1e.js +1 -0
- package/dist/mermaid.core-70d5aead.js +1 -0
- package/dist/mermaid.core-8797d6a9.js +1 -0
- package/dist/mindmap-definition-LN4V7U3C-04a12a88.js +1 -0
- package/dist/mindmap-definition-LN4V7U3C-86a890ce.js +1 -0
- package/dist/mindmap-definition-LN4V7U3C-f495948c.js +1 -0
- package/dist/ordinal-221e41d7.js +1 -0
- package/dist/ordinal-4a51e46c.js +1 -0
- package/dist/packet-7NZHBO7P-b4586e10.js +1 -0
- package/dist/packet-7NZHBO7P-f62750ff.js +1 -0
- package/dist/pegDiagram-2B236MQR-234fe6d1.js +1 -0
- package/dist/pegDiagram-2B236MQR-2826e278.js +1 -0
- package/dist/pegDiagram-2B236MQR-64eeb662.js +1 -0
- package/dist/pie-RZYD4A2V-106ba3d7.js +1 -0
- package/dist/pie-RZYD4A2V-752eda00.js +1 -0
- package/dist/pieDiagram-ENE6RG2P-0c3b09b8.js +1 -0
- package/dist/pieDiagram-ENE6RG2P-3fb5f734.js +1 -0
- package/dist/pieDiagram-ENE6RG2P-af928526.js +1 -0
- package/dist/quadrantDiagram-ABIIQ3AL-1a55c0f5.js +1 -0
- package/dist/quadrantDiagram-ABIIQ3AL-3d15c26d.js +1 -0
- package/dist/quadrantDiagram-ABIIQ3AL-9110fa9c.js +1 -0
- package/dist/queries/sendMessageQuery.d.ts.map +1 -0
- package/dist/radar-I7S5WNFK-53bde9ff.js +1 -0
- package/dist/radar-I7S5WNFK-87e8c5ba.js +1 -0
- package/dist/railroad-3IZDKUUU-99427b9f.js +1 -0
- package/dist/railroad-3IZDKUUU-9e29587d.js +1 -0
- package/dist/railroad-abnf-AHOZXSZD-1d11cb5b.js +1 -0
- package/dist/railroad-abnf-AHOZXSZD-c27db0bc.js +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-38dff87c.js +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-6bb5de0c.js +1 -0
- package/dist/railroad-peg-LSFZ7HO6-c9f0aa71.js +1 -0
- package/dist/railroad-peg-LSFZ7HO6-efcb0a43.js +1 -0
- package/dist/railroadDiagram-RFXS5EU6-14373a87.js +1 -0
- package/dist/railroadDiagram-RFXS5EU6-ec9e696e.js +1 -0
- package/dist/railroadDiagram-RFXS5EU6-effa5611.js +1 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/requirementDiagram-TGXJPOKE-3d199581.js +1 -0
- package/dist/requirementDiagram-TGXJPOKE-5a337f1a.js +1 -0
- package/dist/requirementDiagram-TGXJPOKE-a7960859.js +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-209eac30.js +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-3c852fda.js +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-46aa1eb1.js +1 -0
- package/dist/sequenceDiagram-DBY2YBRQ-4121f7c2.js +1 -0
- package/dist/sequenceDiagram-DBY2YBRQ-7bad18e4.js +1 -0
- package/dist/sequenceDiagram-DBY2YBRQ-af96f48e.js +1 -0
- package/dist/sizeCapture-X5ZJPWSS-13826306.js +1 -0
- package/dist/sizeCapture-X5ZJPWSS-32e2eec7.js +1 -0
- package/dist/sizeCapture-X5ZJPWSS-a078176f.js +1 -0
- package/dist/stateDiagram-2N3HPSRC-527374a2.js +1 -0
- package/dist/stateDiagram-2N3HPSRC-8047e124.js +1 -0
- package/dist/stateDiagram-2N3HPSRC-ba344b5d.js +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-7580bf69.js +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-d4c58fd3.js +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-e5921044.js +1 -0
- package/dist/store/constant.d.ts.map +1 -0
- package/dist/swimlanes-5IMT3BWC-5834b232.js +1 -0
- package/dist/swimlanes-5IMT3BWC-791a3547.js +1 -0
- package/dist/swimlanes-5IMT3BWC-db2c593a.js +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-36c30eec.js +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-89220ddd.js +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-b621330d.js +1 -0
- package/dist/timeline-definition-FHXFAJF6-0482a67a.js +1 -0
- package/dist/timeline-definition-FHXFAJF6-1d165a67.js +1 -0
- package/dist/timeline-definition-FHXFAJF6-f9600b97.js +1 -0
- package/dist/treeView-QDETBFTQ-0ecf20cd.js +1 -0
- package/dist/treeView-QDETBFTQ-96ed8e2f.js +1 -0
- package/dist/treemap-6X3UGDF4-0a7f19ca.js +1 -0
- package/dist/treemap-6X3UGDF4-9f498e0c.js +1 -0
- package/dist/types/chart.d.ts.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/audioRecording.d.ts.map +1 -0
- package/dist/utils/chartInstanceManager.d.ts.map +1 -0
- package/dist/utils/chartTagParser.d.ts.map +1 -0
- package/dist/utils/chatInputHistory.d.ts.map +1 -0
- package/dist/utils/chatStreamHelper.d.ts.map +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/isMobileSignal.d.ts.map +1 -0
- package/dist/utils/transcriptApi.d.ts.map +1 -0
- package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
- package/dist/vennDiagram-L72KCM5P-05176193.js +1 -0
- package/dist/vennDiagram-L72KCM5P-25a48393.js +1 -0
- package/dist/vennDiagram-L72KCM5P-28cffef7.js +1 -0
- package/dist/wardley-OPB4EBWU-08c5f013.js +1 -0
- package/dist/wardley-OPB4EBWU-9803a1d9.js +1 -0
- package/dist/wardleyDiagram-EHGQE667-052e6de9.js +1 -0
- package/dist/wardleyDiagram-EHGQE667-6a614fd9.js +1 -0
- package/dist/wardleyDiagram-EHGQE667-d11fe904.js +1 -0
- package/dist/web-25bb78b9.js +1 -0
- package/dist/web-753300e1.js +1 -0
- package/dist/web-c3ed22c4.js +1 -0
- package/dist/web.d.ts.map +1 -0
- package/dist/web.js +1 -1
- package/dist/window.d.ts.map +1 -0
- package/dist/xychartDiagram-FW5EYKEG-43118b83.js +1 -0
- package/dist/xychartDiagram-FW5EYKEG-d77187fe.js +1 -0
- package/dist/xychartDiagram-FW5EYKEG-f2fac492.js +1 -0
- package/package.json +86 -86
- package/server.js +477 -477
- package/.idea/flowise-chatbox.iml +0 -10
- package/.idea/modules.xml +0 -8
- package/.idea/workspace.xml +0 -4
- package/docs/embedding-style-guide.md +0 -417
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e;(t=self.document)&&!t.getElementById("livereloadscript")&&((e=t.createElement("script")).async=1,e.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",e.id="livereloadscript",t.getElementsByTagName("head")[0].appendChild(e));import{d as a,g as n}from"./chunk-32BRIVSS-10ac68f7.js";import{_ as i,a as r,s,g as o,b as l,c as h,d,w as p,e as u,f as y,h as g,i as b,j as _,l as f,k as m,m as x}from"./mermaid.core-70d5aead.js";import"./web-25bb78b9.js";var E,S=(()=>{var t=i(function(t,e,a,n){for(a=a||{},n=t.length;n--;a[t[n]]=e);return a},"o"),e=[1,26],a=[1,27],n=[1,28],r=[1,63],s=[1,64],o=[1,65],l=[1,66],h=[1,67],d=[1,68],p=[1,69],u=[1,29],y=[1,30],g=[1,31],b=[1,32],_=[1,33],f=[1,34],m=[1,35],x=[1,36],E=[1,37],S=[1,38],A=[1,39],C=[1,40],v=[1,41],w=[1,42],O=[1,43],k=[1,44],T=[1,45],R=[1,46],D=[1,47],N=[1,48],P=[1,50],B=[1,51],j=[1,52],I=[1,53],M=[1,54],L=[1,55],Y=[1,56],U=[1,57],F=[1,58],X=[1,59],z=[1,60],W=[14,42],Q=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],$=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],H=[1,82],V=[1,83],q=[1,84],G=[1,85],K=[12,14,42],J=[12,14,33,42],Z=[12,14,33,42,76,77,79,80],tt=[12,33],et=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],at={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:i(function(t,e,a,n,i,r,s){var o=r.length-1;switch(i){case 3:n.setDirection("TB");break;case 4:n.setDirection("BT");break;case 5:n.setDirection("RL");break;case 6:n.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:n.setC4Type(r[o-3]);break;case 19:n.setTitle(r[o].substring(6)),this.$=r[o].substring(6);break;case 20:n.setAccDescription(r[o].substring(15)),this.$=r[o].substring(15);break;case 21:this.$=r[o].trim(),n.setTitle(this.$);break;case 22:case 23:this.$=r[o].trim(),n.setAccDescription(this.$);break;case 28:r[o].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 29:r[o].splice(2,0,"SYSTEM"),n.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 30:n.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 31:r[o].splice(2,0,"CONTAINER"),n.addContainerBoundary(...r[o]),this.$=r[o];break;case 32:n.addDeploymentNode("node",...r[o]),this.$=r[o];break;case 33:n.addDeploymentNode("nodeL",...r[o]),this.$=r[o];break;case 34:n.addDeploymentNode("nodeR",...r[o]),this.$=r[o];break;case 35:n.popBoundaryParseStack();break;case 39:n.addPersonOrSystem("person",...r[o]),this.$=r[o];break;case 40:n.addPersonOrSystem("external_person",...r[o]),this.$=r[o];break;case 41:n.addPersonOrSystem("system",...r[o]),this.$=r[o];break;case 42:n.addPersonOrSystem("system_db",...r[o]),this.$=r[o];break;case 43:n.addPersonOrSystem("system_queue",...r[o]),this.$=r[o];break;case 44:n.addPersonOrSystem("external_system",...r[o]),this.$=r[o];break;case 45:n.addPersonOrSystem("external_system_db",...r[o]),this.$=r[o];break;case 46:n.addPersonOrSystem("external_system_queue",...r[o]),this.$=r[o];break;case 47:n.addContainer("container",...r[o]),this.$=r[o];break;case 48:n.addContainer("container_db",...r[o]),this.$=r[o];break;case 49:n.addContainer("container_queue",...r[o]),this.$=r[o];break;case 50:n.addContainer("external_container",...r[o]),this.$=r[o];break;case 51:n.addContainer("external_container_db",...r[o]),this.$=r[o];break;case 52:n.addContainer("external_container_queue",...r[o]),this.$=r[o];break;case 53:n.addComponent("component",...r[o]),this.$=r[o];break;case 54:n.addComponent("component_db",...r[o]),this.$=r[o];break;case 55:n.addComponent("component_queue",...r[o]),this.$=r[o];break;case 56:n.addComponent("external_component",...r[o]),this.$=r[o];break;case 57:n.addComponent("external_component_db",...r[o]),this.$=r[o];break;case 58:n.addComponent("external_component_queue",...r[o]),this.$=r[o];break;case 60:n.addRel("rel",...r[o]),this.$=r[o];break;case 61:n.addRel("birel",...r[o]),this.$=r[o];break;case 62:n.addRel("rel_u",...r[o]),this.$=r[o];break;case 63:n.addRel("rel_d",...r[o]),this.$=r[o];break;case 64:n.addRel("rel_l",...r[o]),this.$=r[o];break;case 65:n.addRel("rel_r",...r[o]),this.$=r[o];break;case 66:n.addRel("rel_b",...r[o]),this.$=r[o];break;case 67:r[o].splice(0,1),n.addRel("rel",...r[o]),this.$=r[o];break;case 68:n.updateElStyle("update_el_style",...r[o]),this.$=r[o];break;case 69:n.updateRelStyle("update_rel_style",...r[o]),this.$=r[o];break;case 70:n.updateLayoutConfig("update_layout_config",...r[o]),this.$=r[o];break;case 71:this.$=[r[o]];break;case 72:r[o].unshift(r[o-1]),this.$=r[o];break;case 73:case 75:this.$=r[o].trim();break;case 74:var l={};l[r[o-1].trim()]=r[o].trim(),this.$=l;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:at=[1,24],23:nt=[1,25],24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{13:70,19:20,20:21,21:22,22:at,23:nt,24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{13:71,19:20,20:21,21:22,22:at,23:nt,24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{13:72,19:20,20:21,21:22,22:at,23:nt,24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{13:73,19:20,20:21,21:22,22:at,23:nt,24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{14:[1,74]},t(W,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:s,37:o,38:l,39:h,40:d,41:p,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z}),t(W,[2,14]),t(Q,[2,16],{12:[1,76]}),t(W,[2,36],{12:[1,77]}),t($,[2,19]),t($,[2,20]),{25:[1,78]},{27:[1,79]},t($,[2,23]),{35:80,75:81,76:H,77:V,79:q,80:G},{35:86,75:81,76:H,77:V,79:q,80:G},{35:87,75:81,76:H,77:V,79:q,80:G},{35:88,75:81,76:H,77:V,79:q,80:G},{35:89,75:81,76:H,77:V,79:q,80:G},{35:90,75:81,76:H,77:V,79:q,80:G},{35:91,75:81,76:H,77:V,79:q,80:G},{35:92,75:81,76:H,77:V,79:q,80:G},{35:93,75:81,76:H,77:V,79:q,80:G},{35:94,75:81,76:H,77:V,79:q,80:G},{35:95,75:81,76:H,77:V,79:q,80:G},{35:96,75:81,76:H,77:V,79:q,80:G},{35:97,75:81,76:H,77:V,79:q,80:G},{35:98,75:81,76:H,77:V,79:q,80:G},{35:99,75:81,76:H,77:V,79:q,80:G},{35:100,75:81,76:H,77:V,79:q,80:G},{35:101,75:81,76:H,77:V,79:q,80:G},{35:102,75:81,76:H,77:V,79:q,80:G},{35:103,75:81,76:H,77:V,79:q,80:G},{35:104,75:81,76:H,77:V,79:q,80:G},t(K,[2,59]),{35:105,75:81,76:H,77:V,79:q,80:G},{35:106,75:81,76:H,77:V,79:q,80:G},{35:107,75:81,76:H,77:V,79:q,80:G},{35:108,75:81,76:H,77:V,79:q,80:G},{35:109,75:81,76:H,77:V,79:q,80:G},{35:110,75:81,76:H,77:V,79:q,80:G},{35:111,75:81,76:H,77:V,79:q,80:G},{35:112,75:81,76:H,77:V,79:q,80:G},{35:113,75:81,76:H,77:V,79:q,80:G},{35:114,75:81,76:H,77:V,79:q,80:G},{35:115,75:81,76:H,77:V,79:q,80:G},{20:116,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{12:[1,118],33:[1,117]},{35:119,75:81,76:H,77:V,79:q,80:G},{35:120,75:81,76:H,77:V,79:q,80:G},{35:121,75:81,76:H,77:V,79:q,80:G},{35:122,75:81,76:H,77:V,79:q,80:G},{35:123,75:81,76:H,77:V,79:q,80:G},{35:124,75:81,76:H,77:V,79:q,80:G},{35:125,75:81,76:H,77:V,79:q,80:G},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(W,[2,15]),t(Q,[2,17],{21:22,19:130,22:at,23:nt,24:e,26:a,28:n}),t(W,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:at,23:nt,24:e,26:a,28:n,34:r,36:s,37:o,38:l,39:h,40:d,41:p,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z}),t($,[2,21]),t($,[2,22]),t(K,[2,39]),t(J,[2,71],{75:81,35:132,76:H,77:V,79:q,80:G}),t(Z,[2,73]),{78:[1,133]},t(Z,[2,75]),t(Z,[2,76]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),t(K,[2,64]),t(K,[2,65]),t(K,[2,66]),t(K,[2,67]),t(K,[2,68]),t(K,[2,69]),t(K,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(tt,[2,28]),t(tt,[2,29]),t(tt,[2,30]),t(tt,[2,31]),t(tt,[2,32]),t(tt,[2,33]),t(tt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Q,[2,18]),t(W,[2,38]),t(J,[2,72]),t(Z,[2,74]),t(K,[2,24]),t(K,[2,35]),t(et,[2,25]),t(et,[2,26],{12:[1,138]}),t(et,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:i(function(t,e){var a;if(!e.recoverable)throw(a=new Error(t)).hash=e,a;this.trace(t)},"parseError"),parse:i(function(t){var e,a=this,n=[0],r=[],s=[null],o=[],l=this.table,c="",h=0,d=0,p=o.slice.call(arguments,1),u=Object.create(this.lexer),y={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(y.yy[e]=this.yy[e]);u.setInput(t,y.yy),y.yy.lexer=u,y.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc,b=(o.push(g),u.options&&u.options.ranges);function _(){var t=r.pop()||u.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(r=t).pop()),t=a.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){n.length=n.length-2*t,s.length=s.length-t,o.length=o.length-t},"popStack"),i(_,"lex");for(var f,m,x,E,S,A,C={};;){if(m=n[n.length-1],void 0===(x=this.defaultActions[m]||(null==f&&(f=_()),l[m]&&l[m][f]))||!x.length||!x[0]){var v,w=[];for(E in l[m])this.terminals_[E]&&2<E&&w.push("'"+this.terminals_[E]+"'");v=u.showPosition?"Parse error on line "+(h+1)+":\n"+u.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(v,{text:u.match,token:this.terminals_[f]||f,line:u.yylineno,loc:g,expected:w})}if(x[0]instanceof Array&&1<x.length)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+f);switch(x[0]){case 1:n.push(f),s.push(u.yytext),o.push(u.yylloc),n.push(x[1]),f=null,d=u.yyleng,c=u.yytext,h=u.yylineno,g=u.yylloc;break;case 2:if(S=this.productions_[x[1]][1],C.$=s[s.length-S],C._$={first_line:o[o.length-(S||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(S||1)].first_column,last_column:o[o.length-1].last_column},b&&(C._$.range=[o[o.length-(S||1)].range[0],o[o.length-1].range[1]]),void 0!==(A=this.performAction.apply(C,[c,d,h,y.yy,x[1],s,o].concat(p))))return A;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),o=o.slice(0,-1*S)),n.push(this.productions_[x[1]][0]),s.push(C.$),o.push(C._$),A=l[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},"parse")},nt={EOF:1,parseError:i(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g),n=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===t.length?this.yylloc.first_column:0)+t[t.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i(function(t,e){var a,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,n,i=this._currentRules(),r=0;r<i.length;r++)if((a=this._input.match(this.rules[i[r]]))&&(!e||a[0].length>e[0].length))if(e=a,n=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[r])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){return this.next()||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:i(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(t,e,a,n){switch(a){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};function it(){this.yy={}}return at.lexer=nt,i(it,"Parser"),new((it.prototype=at).Parser=it)})(),A=S.parser=S,C=[],v=[""],w="global",O="",k=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],T=[],R="",D=!1,N=4,P=2,B=i(function(){return E},"getC4Type"),j=i(function(t){t=b(t,d()),E=t},"setC4Type"),I=i(function(t,e,a,n,i,r,s,o,l){if(null!=t&&null!=e&&null!=a&&null!=n){let h={};var c=T.find(t=>t.from===e&&t.to===a);c?h=c:T.push(h),h.type=t,h.from=e,h.to=a,h.label={text:n},null==i?h.techn={text:""}:"object"==typeof i?([c,t]=Object.entries(i)[0],h[c]={text:t}):h.techn={text:i},null==r?h.descr={text:""}:"object"==typeof r?([n,c]=Object.entries(r)[0],h[n]={text:c}):h.descr={text:r},"object"==typeof s?([t,i]=Object.entries(s)[0],h[t]=i):h.sprite=s,"object"==typeof o?([n,c]=Object.entries(o)[0],h[n]=c):h.tags=o,"object"==typeof l?([r,t]=Object.entries(l)[0],h[r]=t):h.link=l,h.wrap=it()}},"addRel"),M=i(function(t,e,a,n,i,r,s){if(null!==e&&null!==a){let l={};var o=C.find(t=>t.alias===e);o&&e===o.alias?l=o:(l.alias=e,C.push(l)),l.label=null==a?{text:""}:{text:a},null==n?l.descr={text:""}:"object"==typeof n?([o,a]=Object.entries(n)[0],l[o]={text:a}):l.descr={text:n},"object"==typeof i?([o,a]=Object.entries(i)[0],l[o]=a):l.sprite=i,"object"==typeof r?([n,o]=Object.entries(r)[0],l[n]=o):l.tags=r,"object"==typeof s?([a,i]=Object.entries(s)[0],l[a]=i):l.link=s,l.typeC4Shape={text:t},l.parentBoundary=w,l.wrap=it()}},"addPersonOrSystem"),L=i(function(t,e,a,n,i,r,s,o){if(null!==e&&null!==a){let c={};var l=C.find(t=>t.alias===e);l&&e===l.alias?c=l:(c.alias=e,C.push(c)),c.label=null==a?{text:""}:{text:a},null==n?c.techn={text:""}:"object"==typeof n?([l,a]=Object.entries(n)[0],c[l]={text:a}):c.techn={text:n},null==i?c.descr={text:""}:"object"==typeof i?([l,a]=Object.entries(i)[0],c[l]={text:a}):c.descr={text:i},"object"==typeof r?([n,l]=Object.entries(r)[0],c[n]=l):c.sprite=r,"object"==typeof s?([a,i]=Object.entries(s)[0],c[a]=i):c.tags=s,"object"==typeof o?([n,l]=Object.entries(o)[0],c[n]=l):c.link=o,c.wrap=it(),c.typeC4Shape={text:t},c.parentBoundary=w}},"addContainer"),Y=i(function(t,e,a,n,i,r,s,o){if(null!==e&&null!==a){let c={};var l=C.find(t=>t.alias===e);l&&e===l.alias?c=l:(c.alias=e,C.push(c)),c.label=null==a?{text:""}:{text:a},null==n?c.techn={text:""}:"object"==typeof n?([l,a]=Object.entries(n)[0],c[l]={text:a}):c.techn={text:n},null==i?c.descr={text:""}:"object"==typeof i?([l,a]=Object.entries(i)[0],c[l]={text:a}):c.descr={text:i},"object"==typeof r?([n,l]=Object.entries(r)[0],c[n]=l):c.sprite=r,"object"==typeof s?([a,i]=Object.entries(s)[0],c[a]=i):c.tags=s,"object"==typeof o?([n,l]=Object.entries(o)[0],c[n]=l):c.link=o,c.wrap=it(),c.typeC4Shape={text:t},c.parentBoundary=w}},"addComponent"),U=i(function(t,e,a,n,i){if(null!==t&&null!==e){let s={};var r=k.find(e=>e.alias===t);r&&t===r.alias?s=r:(s.alias=t,k.push(s)),s.label=null==e?{text:""}:{text:e},null==a?s.type={text:"system"}:"object"==typeof a?([r,e]=Object.entries(a)[0],s[r]={text:e}):s.type={text:a},"object"==typeof n?([r,e]=Object.entries(n)[0],s[r]=e):s.tags=n,"object"==typeof i?([a,r]=Object.entries(i)[0],s[a]=r):s.link=i,s.parentBoundary=w,s.wrap=it(),O=w,w=t,v.push(O)}},"addPersonOrSystemBoundary"),F=i(function(t,e,a,n,i){if(null!==t&&null!==e){let s={};var r=k.find(e=>e.alias===t);r&&t===r.alias?s=r:(s.alias=t,k.push(s)),s.label=null==e?{text:""}:{text:e},null==a?s.type={text:"container"}:"object"==typeof a?([r,e]=Object.entries(a)[0],s[r]={text:e}):s.type={text:a},"object"==typeof n?([r,e]=Object.entries(n)[0],s[r]=e):s.tags=n,"object"==typeof i?([a,r]=Object.entries(i)[0],s[a]=r):s.link=i,s.parentBoundary=w,s.wrap=it(),O=w,w=t,v.push(O)}},"addContainerBoundary"),X=i(function(t,e,a,n,i,r,s,o){if(null!==e&&null!==a){let r={};var l=k.find(t=>t.alias===e);l&&e===l.alias?r=l:(r.alias=e,k.push(r)),r.label=null==a?{text:""}:{text:a},null==n?r.type={text:"node"}:"object"==typeof n?([l,a]=Object.entries(n)[0],r[l]={text:a}):r.type={text:n},null==i?r.descr={text:""}:"object"==typeof i?([l,a]=Object.entries(i)[0],r[l]={text:a}):r.descr={text:i},"object"==typeof s?([n,l]=Object.entries(s)[0],r[n]=l):r.tags=s,"object"==typeof o?([a,i]=Object.entries(o)[0],r[a]=i):r.link=o,r.nodeType=t,r.parentBoundary=w,r.wrap=it(),O=w,w=e,v.push(O)}},"addDeploymentNode"),z=i(function(){w=O,v.pop(),O=v.pop(),v.push(O)},"popBoundaryParseStack"),W=i(function(t,e,a,n,i,r,s,o,l,c,h){let d=C.find(t=>t.alias===e);var p,u;void 0===d&&void 0===(d=k.find(t=>t.alias===e))||(null!=a&&("object"==typeof a?([u,p]=Object.entries(a)[0],d[u]=p):d.bgColor=a),null!=n&&("object"==typeof n?([u,p]=Object.entries(n)[0],d[u]=p):d.fontColor=n),null!=i&&("object"==typeof i?([a,u]=Object.entries(i)[0],d[a]=u):d.borderColor=i),null!=r&&("object"==typeof r?([p,n]=Object.entries(r)[0],d[p]=n):d.shadowing=r),null!=s&&("object"==typeof s?([a,u]=Object.entries(s)[0],d[a]=u):d.shape=s),null!=o&&("object"==typeof o?([i,p]=Object.entries(o)[0],d[i]=p):d.sprite=o),null!=l&&("object"==typeof l?([n,r]=Object.entries(l)[0],d[n]=r):d.techn=l),null!=c&&("object"==typeof c?([a,u]=Object.entries(c)[0],d[a]=u):d.legendText=c),null!=h&&("object"==typeof h?([s,i]=Object.entries(h)[0],d[s]=i):d.legendSprite=h))},"updateElStyle"),Q=i(function(t,e,a,n,i,r,s){var o,l,c=T.find(t=>t.from===e&&t.to===a);void 0!==c&&(null!=n&&("object"==typeof n?([o,l]=Object.entries(n)[0],c[o]=l):c.textColor=n),null!=i&&("object"==typeof i?([o,l]=Object.entries(i)[0],c[o]=l):c.lineColor=i),null!=r&&("object"==typeof r?([n,o]=Object.entries(r)[0],c[n]=parseInt(o)):c.offsetX=parseInt(r)),null!=s)&&("object"==typeof s?([l,i]=Object.entries(s)[0],c[l]=parseInt(i)):c.offsetY=parseInt(s))},"updateRelStyle"),$=i(function(t,e,a){let n=N,i=P;var r;n="object"==typeof e?(r=Object.values(e)[0],parseInt(r)):parseInt(e),i="object"==typeof a?(r=Object.values(a)[0],parseInt(r)):parseInt(a),1<=n&&(N=n),1<=i&&(P=i)},"updateLayoutConfig"),H=i(function(){return N},"getC4ShapeInRow"),V=i(function(){return P},"getC4BoundaryInRow"),q=i(function(){return w},"getCurrentBoundaryParse"),G=i(function(){return O},"getParentBoundaryParse"),K=i(function(t){return null==t?C:C.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),J=i(function(t){return C.find(e=>e.alias===t)},"getC4Shape"),Z=i(function(t){return Object.keys(K(t))},"getC4ShapeKeys"),tt=i(function(t){return null==t?k:k.filter(e=>e.parentBoundary===t)},"getBoundaries"),et=i(function(){return T},"getRels"),at=i(function(){return R},"getTitle"),nt=i(function(t){D=t},"setWrap"),it=i(function(){return D},"autoWrap"),rt=i(function(){C=[],k=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],w="global",v=[O=""],T=[],D=!(v=[R=""]),N=4,P=2},"clear"),st=i(function(t){t=b(t,d()),R=t},"setTitle"),ot={addPersonOrSystem:M,addPersonOrSystemBoundary:U,addContainer:L,addContainerBoundary:F,addComponent:Y,addDeploymentNode:X,popBoundaryParseStack:z,addRel:I,updateElStyle:W,updateRelStyle:Q,updateLayoutConfig:$,autoWrap:it,setWrap:nt,getC4ShapeArray:K,getC4Shape:J,getC4ShapeKeys:Z,getBoundaries:tt,getBoundarys:tt,getCurrentBoundaryParse:q,getParentBoundaryParse:G,getRels:et,getTitle:at,getC4Type:B,getC4ShapeInRow:H,getC4BoundaryInRow:V,setAccTitle:s,getAccTitle:o,getAccDescription:l,setAccDescription:h,getConfig:i(()=>d().c4,"getConfig"),clear:rt,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:st,setC4Type:j},lt=i(function(t,e){return a(t,e)},"drawRect"),ct=i(function(t,e,a,n,i,r){(t=t.append("image")).attr("width",e),t.attr("height",a),t.attr("x",n),t.attr("y",i),e=r.startsWith("data:image/png;base64")?r:x(r),t.attr("xlink:href",e)},"drawImage"),ht=i((t,e,a,n)=>{var i,r=t.append("g");let s=0;for(i of e){var o,l=i.textColor||"#444444",c=i.lineColor||"#444444",h=i.offsetX?parseInt(i.offsetX):0,d=i.offsetY?parseInt(i.offsetY):0;c=(0===s?((o=r.append("line")).attr("x1",i.startPoint.x),o.attr("y1",i.startPoint.y),o.attr("x2",i.endPoint.x),o.attr("y2",i.endPoint.y),o.attr("stroke-width","1"),o.attr("stroke",c),o.style("fill","none"),"rel_b"!==i.type&&o.attr("marker-end","url(#"+n+"-arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||o.attr("marker-start","url(#"+n+"-arrowend)"),s=-1):((o=r.append("path")).attr("fill","none").attr("stroke-width","1").attr("stroke",c).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),"rel_b"!==i.type&&o.attr("marker-end","url(#"+n+"-arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||o.attr("marker-start","url(#"+n+"-arrowend)")),a.messageFont());Et(a)(i.label.text,r,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+h,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+d,i.label.width,i.label.height,{fill:l},c),i.techn&&""!==i.techn.text&&(c=a.messageFont(),Et(a)("["+i.techn.text+"]",r,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+h,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+d,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:l,"font-style":"italic"},c))}},"drawRels"),dt=i(function(t,e,a){t=t.append("g");var n=e.bgColor||"none",i=e.fontColor||"black";let r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(r={"stroke-width":1}),n={x:e.x,y:e.y,fill:n,stroke:e.borderColor||"#444444",width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:r},lt(t,n);let s=a.boundaryFont();s.fontWeight="bold",s.fontSize=s.fontSize+2,s.fontColor=i,Et(a)(e.label.text,t,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},s),e.type&&""!==e.type.text&&((s=a.boundaryFont()).fontColor=i,Et(a)(e.type.text,t,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},s)),e.descr&&""!==e.descr.text&&((s=a.boundaryFont()).fontSize=s.fontSize-2,s.fontColor=i,Et(a)(e.descr.text,t,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},s))},"drawBoundary"),pt=i(function(t,e,a){var i=e.bgColor||a[e.typeC4Shape.text+"_bg_color"],r=e.borderColor||a[e.typeC4Shape.text+"_border_color"],s=e.fontColor||"#FFFFFF";let o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var l=t.append("g"),c=(l.attr("class","person-man"),n());switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=e.x,c.y=e.y,c.fill=i,c.width=e.width,c.height=e.height,c.stroke=r,c.rx=2.5,c.ry=2.5,c.attrs={"stroke-width":.5},lt(l,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}switch(t=xt(a,e.typeC4Shape.text),l.append("text").attr("fill",s).attr("font-family",t.fontFamily).attr("font-size",t.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":ct(l,48,48,e.x+e.width/2-24,e.y+e.image.Y,o)}let h=a[e.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,Et(a)(e.label.text,l,e.x,e.y+e.label.Y,e.width,e.height,{fill:s},h),(h=a[e.typeC4Shape.text+"Font"]()).fontColor=s,e.techn&&""!==e.techn?.text?Et(a)(e.techn.text,l,e.x,e.y+e.techn.Y,e.width,e.height,{fill:s,"font-style":"italic"},h):e.type&&""!==e.type.text&&Et(a)(e.type.text,l,e.x,e.y+e.type.Y,e.width,e.height,{fill:s,"font-style":"italic"},h),e.descr&&""!==e.descr.text&&((h=a.personFont()).fontColor=s,Et(a)(e.descr.text,l,e.x,e.y+e.descr.Y,e.width,e.height,{fill:s},h)),e.height},"drawC4Shape"),ut=i(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),yt=i(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),gt=i(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),bt=i(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),_t=i(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),ft=i(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),mt=i(function(t,e){(t=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4)).append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),xt=i((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),Et=(()=>{function t(t,e,a,i,r,s,o){n(e.append("text").attr("x",a+r/2).attr("y",i+s/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,a,i,r,s,o,l){var{fontSize:c,fontFamily:h,fontWeight:d}=l,p=t.split(u.lineBreakRegex);for(let t=0;t<p.length;t++){var y=t*c-c*(p.length-1)/2,g=e.append("text").attr("x",a+r/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",d).style("font-family",h);g.append("tspan").attr("dy",y).text(p[t]).attr("alignment-baseline","mathematical"),n(g,o)}}function a(t,a,i,r,s,o,l,c){(o=(a=a.append("switch")).append("foreignObject").attr("x",i).attr("y",r).attr("width",s).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%")).append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,a,i,r,s,0,l,c),n(o,l)}function n(t,e){for(var a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return i(t,"byText"),i(e,"byTspan"),i(a,"byFo"),i(n,"_setTextAttrs"),function(n){return"fo"===n.textPlacement?a:"old"===n.textPlacement?t:e}})(),St={drawRect:lt,drawBoundary:dt,drawC4Shape:pt,drawRels:ht,drawImage:ct,insertArrowHead:bt,insertArrowEnd:_t,insertArrowFilledHead:ft,insertArrowCrossHead:mt,insertDatabaseIcon:ut,insertComputerIcon:yt,insertClockIcon:gt},At=0,Ct=0,vt=4,wt=2,Ot=(S.yy=ot,{}),kt=class{static{i(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Tt(t.db.getConfig())}setData(t,e,a,n){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=n}updateVal(t,e,a,n){void 0===t[e]?t[e]=a:t[e]=n(a,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,a=e+t.width,n=this.nextData.starty+2*t.margin,i=n+t.height;(e>=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>vt)&&(e=this.nextData.startx+t.margin+Ot.nextLinePaddingX,n=this.nextData.stopy+2*t.margin,this.nextData.stopx=a=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=n+t.height,this.nextData.cnt=1),t.x=e,t.y=n,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Tt(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},Tt=i(function(t){r(Ot,t),t.fontFamily&&(Ot.personFontFamily=Ot.systemFontFamily=Ot.messageFontFamily=t.fontFamily),t.fontSize&&(Ot.personFontSize=Ot.systemFontSize=Ot.messageFontSize=t.fontSize),t.fontWeight&&(Ot.personFontWeight=Ot.systemFontWeight=Ot.messageFontWeight=t.fontWeight)},"setConf"),Rt=i((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),Dt=i(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),Nt=i(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function Pt(t,e,a,n,i){if(!e[t].width)if(a)e[t].text=p(e[t].text,i,n),e[t].textLines=e[t].text.split(u.lineBreakRegex).length,e[t].width=i,e[t].height=y(e[t].text,n);else{var r,s;a=e[t].text.split(u.lineBreakRegex);for(s of(e[t].textLines=a.length,e[t].height=0,e[t].width=0,a))e[t].width=Math.max(g(s,n),e[t].width),r=y(s,n),e[t].height=e[t].height+r}}i(Pt,"calcC4ShapeTextWH");var Bt=i(function(t,e,a){e.x=a.data.startx,e.y=a.data.starty,e.width=a.data.stopx-a.data.startx,e.height=a.data.stopy-a.data.starty,e.label.y=Ot.c4ShapeMargin-35;a=e.wrap&&Ot.wrap;var n=Dt(Ot),i=(n.fontSize=n.fontSize+2,n.fontWeight="bold",g(e.label.text,n));Pt("label",e,a,n,i),St.drawBoundary(t,e,Ot)},"drawBoundary"),jt=i(function(t,e,a,n){let i=0;for(var r of n){i=0;var s=a[r];switch((r=Rt(Ot,s.typeC4Shape.text)).fontSize=r.fontSize-2,s.typeC4Shape.width=g("«"+s.typeC4Shape.text+"»",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=Ot.c4ShapePadding,i=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);r=s.wrap&&Ot.wrap;var o=Ot.width-2*Ot.c4ShapePadding,l=Rt(Ot,s.typeC4Shape.text);l.fontSize=l.fontSize+2,l.fontWeight="bold",Pt("label",s,r,l,o),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&""!==s.type.text?(s.type.text="["+s.type.text+"]",Pt("type",s,r,Rt(Ot,s.typeC4Shape.text),o),s.type.Y=i+5,i=s.type.Y+s.type.height):s.techn&&""!==s.techn.text&&(s.techn.text="["+s.techn.text+"]",Pt("techn",s,r,Rt(Ot,s.techn.text),o),s.techn.Y=i+5,i=s.techn.Y+s.techn.height);let n=i,c=s.label.width;s.descr&&""!==s.descr.text&&(Pt("descr",s,r,Rt(Ot,s.typeC4Shape.text),o),s.descr.Y=i+20,i=s.descr.Y+s.descr.height,c=Math.max(s.label.width,s.descr.width),n=i-5*s.descr.textLines),c+=Ot.c4ShapePadding,s.width=Math.max(s.width||Ot.width,c,Ot.width),s.height=Math.max(s.height||Ot.height,n,Ot.height),s.margin=s.margin||Ot.c4ShapeMargin,t.insert(s),St.drawC4Shape(e,s,Ot)}t.bumpLastMargin(Ot.c4ShapeMargin)},"drawC4ShapeArray"),It=class{static{i(this,"Point")}constructor(t,e){this.x=t,this.y=e}},Mt=i(function(t,e){var a=t.x,n=t.y,i=e.x,r=(e=e.y,a+t.width/2),s=n+t.height/2,o=Math.abs(a-i),l=Math.abs(n-e),c=l/o,h=t.height/t.width;let d=null;return n==e&&a<i?d=new It(a+t.width,s):n==e&&i<a?d=new It(a,s):a==i&&n<e?d=new It(r,n+t.height):a==i&&e<n&&(d=new It(r,n)),i<a&&n<e?d=c<=h?new It(a,s+c*t.width/2):new It(r-o/l*t.height/2,n+t.height):a<i&&n<e?d=c<=h?new It(a+t.width,s+c*t.width/2):new It(r+o/l*t.height/2,n+t.height):a<i&&e<n?d=c<=h?new It(a+t.width,s-c*t.width/2):new It(r+t.height/2*o/l,n):i<a&&e<n&&(d=c<=h?new It(a,s-t.width/2*c):new It(r-t.height/2*o/l,n)),d},"getIntersectPoint"),Lt=i(function(t,e){var a={x:0,y:0};return{startPoint:(a.x=e.x+e.width/2,a.y=e.y+e.height/2,Mt(t,a)),endPoint:t=(a.x=t.x+t.width/2,a.y=t.y+t.height/2,Mt(e,a))}},"getIntersectPoints"),Yt=i(function(t,e,a,n,i){let r=0;for(var s of e){r+=1;var o=s.wrap&&Ot.wrap,l=Nt(Ot);"C4Dynamic"===n.db.getC4Type()&&(s.label.text=r+": "+s.label.text);let t=g(s.label.text,l);Pt("label",s,o,l,t),s.techn&&""!==s.techn.text&&(t=g(s.techn.text,l),Pt("techn",s,o,l,t)),s.descr&&""!==s.descr.text&&(t=g(s.descr.text,l),Pt("descr",s,o,l,t)),o=a(s.from),l=a(s.to),o=Lt(o,l),s.startPoint=o.startPoint,s.endPoint=o.endPoint}St.drawRels(t,e,Ot,i)},"drawRels");function Ut(t,e,a,n,i){var r,s,o=new kt(i);for([r,s]of(o.data.widthLimit=a.data.widthLimit/Math.min(wt,n.length),n.entries())){let n=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=n,n=s.image.Y+s.image.height);var l,c=s.wrap&&Ot.wrap;c=((l=Dt(Ot)).fontSize=l.fontSize+2,l.fontWeight="bold",Pt("label",s,c,l,o.data.widthLimit),s.label.Y=n+8,n=s.label.Y+s.label.height,s.type&&""!==s.type.text&&(s.type.text="["+s.type.text+"]",Pt("type",s,c,l=Dt(Ot),o.data.widthLimit),s.type.Y=n+5,n=s.type.Y+s.type.height),s.descr&&""!==s.descr.text&&((l=Dt(Ot)).fontSize=l.fontSize-2,Pt("descr",s,c,l,o.data.widthLimit),s.descr.Y=n+20,n=s.descr.Y+s.descr.height),0==r||r%wt==0?(c=a.data.startx+Ot.diagramMarginX,l=a.data.stopy+Ot.diagramMarginY+n,o.setData(c,c,l,l)):(c=o.data.stopx!==o.data.startx?o.data.stopx+Ot.diagramMarginX:o.data.startx,l=o.data.starty,o.setData(c,c,l,l)),o.name=s.alias,i.db.getC4ShapeArray(s.alias));0<(c=(0<(l=i.db.getC4ShapeKeys(s.alias)).length&&jt(o,t,c,l),e=s.alias,i.db.getBoundaries(e))).length&&Ut(t,e,o,c,i),"global"!==s.alias&&Bt(t,s,o),a.data.stopy=Math.max(o.data.stopy+Ot.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(o.data.stopx+Ot.c4ShapeMargin,a.data.stopx),At=Math.max(At,a.data.stopx),Ct=Math.max(Ct,a.data.stopy)}}i(Ut,"drawInsideBoundary");var Ft=i(function(t,e,a,n){let i;Ot=d().c4,"sandbox"===(o=d().securityLevel)&&(i=_("#i"+e));var r=_("sandbox"===o?i.nodes()[0].contentDocument.body:"body"),s=n.db,o=(s=(n.db.setWrap(Ot.wrap),vt=s.getC4ShapeInRow(),wt=s.getC4BoundaryInRow(),f.debug("C:"+JSON.stringify(Ot,null,2)),"sandbox"===o?r.select(`[id="${e}"]`):_(`[id="${e}"]`)),r=((o=(St.insertComputerIcon(s,e),St.insertDatabaseIcon(s,e),St.insertClockIcon(s,e),new kt(n))).setData(Ot.diagramMarginX,Ot.diagramMarginX,Ot.diagramMarginY,Ot.diagramMarginY),o.data.widthLimit=screen.availWidth,At=Ot.diagramMarginX,Ct=Ot.diagramMarginY,n.db.getTitle()),e=(n=(Ut(s,"",o,n.db.getBoundaries(""),n),St.insertArrowHead(s,e),St.insertArrowEnd(s,e),St.insertArrowCrossHead(s,e),St.insertArrowFilledHead(s,e),Yt(s,n.db.getRels(),n.db.getC4Shape,n,e),o.data.stopx=At,o.data.stopy=Ct,o.data)).stopy-n.starty+2*Ot.diagramMarginY,n.stopx-n.startx+2*Ot.diagramMarginX);r&&s.append("text").text(r).attr("x",(n.stopx-n.startx)/2-4*Ot.diagramMarginX).attr("y",n.starty+Ot.diagramMarginY),m(s,e,o,Ot.useMaxWidth),r=r?60:0;s.attr("viewBox",n.startx-Ot.diagramMarginX+" -"+(Ot.diagramMarginY+r)+" "+o+" "+(e+r)),f.debug("models:",n)},"draw"),Xt={drawPersonOrSystemArray:jt,drawBoundary:Bt,setConf:Tt,draw:Ft},zt=i(t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`,"getStyles"),Wt={parser:A,db:ot,renderer:Xt,styles:zt,init:i(({c4:t,wrap:e})=>{Xt.setConf(t),ot.setWrap(e)},"init")};export{Wt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as t,g as e}from"./chunk-32BRIVSS-10123eba.js";import{_ as a,a as n,s as i,g as r,b as s,c as o,d as l,w as h,e as d,f as p,h as u,i as y,j as g,l as b,k as _,m as f}from"./mermaid.core-8797d6a9.js";import"./web-c3ed22c4.js";var x,m=function(){var t=a((function(t,e,a,n){for(a=a||{},n=t.length;n--;a[t[n]]=e);return a}),"o"),e=[1,24],n=[1,25],i=[1,26],r=[1,27],s=[1,28],o=[1,63],l=[1,64],h=[1,65],d=[1,66],p=[1,67],u=[1,68],y=[1,69],g=[1,29],b=[1,30],_=[1,31],f=[1,32],x=[1,33],m=[1,34],E=[1,35],S=[1,36],A=[1,37],C=[1,38],w=[1,39],v=[1,40],O=[1,41],k=[1,42],T=[1,43],R=[1,44],D=[1,45],N=[1,46],P=[1,47],B=[1,48],j=[1,50],I=[1,51],M=[1,52],L=[1,53],Y=[1,54],U=[1,55],F=[1,56],X=[1,57],z=[1,58],W=[1,59],Q=[1,60],$=[14,42],H=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],V=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],q=[1,82],G=[1,83],K=[1,84],J=[1,85],Z=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],at=[12,33],nt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74];e={trace:a((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:a((function(t,e,a,n,i,r,s){var o=r.length-1;switch(i){case 3:n.setDirection("TB");break;case 4:n.setDirection("BT");break;case 5:n.setDirection("RL");break;case 6:n.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:n.setC4Type(r[o-3]);break;case 19:n.setTitle(r[o].substring(6)),this.$=r[o].substring(6);break;case 20:n.setAccDescription(r[o].substring(15)),this.$=r[o].substring(15);break;case 21:this.$=r[o].trim(),n.setTitle(this.$);break;case 22:case 23:this.$=r[o].trim(),n.setAccDescription(this.$);break;case 28:r[o].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 29:r[o].splice(2,0,"SYSTEM"),n.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 30:n.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 31:r[o].splice(2,0,"CONTAINER"),n.addContainerBoundary(...r[o]),this.$=r[o];break;case 32:n.addDeploymentNode("node",...r[o]),this.$=r[o];break;case 33:n.addDeploymentNode("nodeL",...r[o]),this.$=r[o];break;case 34:n.addDeploymentNode("nodeR",...r[o]),this.$=r[o];break;case 35:n.popBoundaryParseStack();break;case 39:n.addPersonOrSystem("person",...r[o]),this.$=r[o];break;case 40:n.addPersonOrSystem("external_person",...r[o]),this.$=r[o];break;case 41:n.addPersonOrSystem("system",...r[o]),this.$=r[o];break;case 42:n.addPersonOrSystem("system_db",...r[o]),this.$=r[o];break;case 43:n.addPersonOrSystem("system_queue",...r[o]),this.$=r[o];break;case 44:n.addPersonOrSystem("external_system",...r[o]),this.$=r[o];break;case 45:n.addPersonOrSystem("external_system_db",...r[o]),this.$=r[o];break;case 46:n.addPersonOrSystem("external_system_queue",...r[o]),this.$=r[o];break;case 47:n.addContainer("container",...r[o]),this.$=r[o];break;case 48:n.addContainer("container_db",...r[o]),this.$=r[o];break;case 49:n.addContainer("container_queue",...r[o]),this.$=r[o];break;case 50:n.addContainer("external_container",...r[o]),this.$=r[o];break;case 51:n.addContainer("external_container_db",...r[o]),this.$=r[o];break;case 52:n.addContainer("external_container_queue",...r[o]),this.$=r[o];break;case 53:n.addComponent("component",...r[o]),this.$=r[o];break;case 54:n.addComponent("component_db",...r[o]),this.$=r[o];break;case 55:n.addComponent("component_queue",...r[o]),this.$=r[o];break;case 56:n.addComponent("external_component",...r[o]),this.$=r[o];break;case 57:n.addComponent("external_component_db",...r[o]),this.$=r[o];break;case 58:n.addComponent("external_component_queue",...r[o]),this.$=r[o];break;case 60:n.addRel("rel",...r[o]),this.$=r[o];break;case 61:n.addRel("birel",...r[o]),this.$=r[o];break;case 62:n.addRel("rel_u",...r[o]),this.$=r[o];break;case 63:n.addRel("rel_d",...r[o]),this.$=r[o];break;case 64:n.addRel("rel_l",...r[o]),this.$=r[o];break;case 65:n.addRel("rel_r",...r[o]),this.$=r[o];break;case 66:n.addRel("rel_b",...r[o]),this.$=r[o];break;case 67:r[o].splice(0,1),n.addRel("rel",...r[o]),this.$=r[o];break;case 68:n.updateElStyle("update_el_style",...r[o]),this.$=r[o];break;case 69:n.updateRelStyle("update_rel_style",...r[o]),this.$=r[o];break;case 70:n.updateLayoutConfig("update_layout_config",...r[o]),this.$=r[o];break;case 71:this.$=[r[o]];break;case 72:r[o].unshift(r[o-1]),this.$=r[o];break;case 73:case 75:this.$=r[o].trim();break;case 74:var l={};l[r[o-1].trim()]=r[o].trim(),this.$=l;break;case 76:this.$=""}}),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:n,24:i,26:r,28:s,29:49,30:61,32:62,34:o,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:g,45:b,46:_,47:f,48:x,49:m,50:E,51:S,52:A,53:C,54:w,55:v,56:O,57:k,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{13:70,19:20,20:21,21:22,22:e,23:n,24:i,26:r,28:s,29:49,30:61,32:62,34:o,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:g,45:b,46:_,47:f,48:x,49:m,50:E,51:S,52:A,53:C,54:w,55:v,56:O,57:k,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{13:71,19:20,20:21,21:22,22:e,23:n,24:i,26:r,28:s,29:49,30:61,32:62,34:o,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:g,45:b,46:_,47:f,48:x,49:m,50:E,51:S,52:A,53:C,54:w,55:v,56:O,57:k,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{13:72,19:20,20:21,21:22,22:e,23:n,24:i,26:r,28:s,29:49,30:61,32:62,34:o,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:g,45:b,46:_,47:f,48:x,49:m,50:E,51:S,52:A,53:C,54:w,55:v,56:O,57:k,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{13:73,19:20,20:21,21:22,22:e,23:n,24:i,26:r,28:s,29:49,30:61,32:62,34:o,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:g,45:b,46:_,47:f,48:x,49:m,50:E,51:S,52:A,53:C,54:w,55:v,56:O,57:k,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{14:[1,74]},t($,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:l,37:h,38:d,39:p,40:u,41:y,44:g,45:b,46:_,47:f,48:x,49:m,50:E,51:S,52:A,53:C,54:w,55:v,56:O,57:k,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q}),t($,[2,14]),t(H,[2,16],{12:[1,76]}),t($,[2,36],{12:[1,77]}),t(V,[2,19]),t(V,[2,20]),{25:[1,78]},{27:[1,79]},t(V,[2,23]),{35:80,75:81,76:q,77:G,79:K,80:J},{35:86,75:81,76:q,77:G,79:K,80:J},{35:87,75:81,76:q,77:G,79:K,80:J},{35:88,75:81,76:q,77:G,79:K,80:J},{35:89,75:81,76:q,77:G,79:K,80:J},{35:90,75:81,76:q,77:G,79:K,80:J},{35:91,75:81,76:q,77:G,79:K,80:J},{35:92,75:81,76:q,77:G,79:K,80:J},{35:93,75:81,76:q,77:G,79:K,80:J},{35:94,75:81,76:q,77:G,79:K,80:J},{35:95,75:81,76:q,77:G,79:K,80:J},{35:96,75:81,76:q,77:G,79:K,80:J},{35:97,75:81,76:q,77:G,79:K,80:J},{35:98,75:81,76:q,77:G,79:K,80:J},{35:99,75:81,76:q,77:G,79:K,80:J},{35:100,75:81,76:q,77:G,79:K,80:J},{35:101,75:81,76:q,77:G,79:K,80:J},{35:102,75:81,76:q,77:G,79:K,80:J},{35:103,75:81,76:q,77:G,79:K,80:J},{35:104,75:81,76:q,77:G,79:K,80:J},t(Z,[2,59]),{35:105,75:81,76:q,77:G,79:K,80:J},{35:106,75:81,76:q,77:G,79:K,80:J},{35:107,75:81,76:q,77:G,79:K,80:J},{35:108,75:81,76:q,77:G,79:K,80:J},{35:109,75:81,76:q,77:G,79:K,80:J},{35:110,75:81,76:q,77:G,79:K,80:J},{35:111,75:81,76:q,77:G,79:K,80:J},{35:112,75:81,76:q,77:G,79:K,80:J},{35:113,75:81,76:q,77:G,79:K,80:J},{35:114,75:81,76:q,77:G,79:K,80:J},{35:115,75:81,76:q,77:G,79:K,80:J},{20:116,29:49,30:61,32:62,34:o,36:l,37:h,38:d,39:p,40:u,41:y,43:23,44:g,45:b,46:_,47:f,48:x,49:m,50:E,51:S,52:A,53:C,54:w,55:v,56:O,57:k,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q},{12:[1,118],33:[1,117]},{35:119,75:81,76:q,77:G,79:K,80:J},{35:120,75:81,76:q,77:G,79:K,80:J},{35:121,75:81,76:q,77:G,79:K,80:J},{35:122,75:81,76:q,77:G,79:K,80:J},{35:123,75:81,76:q,77:G,79:K,80:J},{35:124,75:81,76:q,77:G,79:K,80:J},{35:125,75:81,76:q,77:G,79:K,80:J},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t($,[2,15]),t(H,[2,17],{21:22,19:130,22:e,23:n,24:i,26:r,28:s}),t($,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:n,24:i,26:r,28:s,34:o,36:l,37:h,38:d,39:p,40:u,41:y,44:g,45:b,46:_,47:f,48:x,49:m,50:E,51:S,52:A,53:C,54:w,55:v,56:O,57:k,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:L,68:Y,69:U,70:F,71:X,72:z,73:W,74:Q}),t(V,[2,21]),t(V,[2,22]),t(Z,[2,39]),t(tt,[2,71],{75:81,35:132,76:q,77:G,79:K,80:J}),t(et,[2,73]),{78:[1,133]},t(et,[2,75]),t(et,[2,76]),t(Z,[2,40]),t(Z,[2,41]),t(Z,[2,42]),t(Z,[2,43]),t(Z,[2,44]),t(Z,[2,45]),t(Z,[2,46]),t(Z,[2,47]),t(Z,[2,48]),t(Z,[2,49]),t(Z,[2,50]),t(Z,[2,51]),t(Z,[2,52]),t(Z,[2,53]),t(Z,[2,54]),t(Z,[2,55]),t(Z,[2,56]),t(Z,[2,57]),t(Z,[2,58]),t(Z,[2,60]),t(Z,[2,61]),t(Z,[2,62]),t(Z,[2,63]),t(Z,[2,64]),t(Z,[2,65]),t(Z,[2,66]),t(Z,[2,67]),t(Z,[2,68]),t(Z,[2,69]),t(Z,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(at,[2,28]),t(at,[2,29]),t(at,[2,30]),t(at,[2,31]),t(at,[2,32]),t(at,[2,33]),t(at,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(H,[2,18]),t($,[2,38]),t(tt,[2,72]),t(et,[2,74]),t(Z,[2,24]),t(Z,[2,35]),t(nt,[2,25]),t(nt,[2,26],{12:[1,138]}),t(nt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:a((function(t,e){var a;if(!e.recoverable)throw(a=new Error(t)).hash=e,a;this.trace(t)}),"parseError"),parse:a((function(t){var e,n=this,i=[0],r=[],s=[null],o=[],l=this.table,c="",h=0,d=0,p=o.slice.call(arguments,1),u=Object.create(this.lexer),y={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(y.yy[e]=this.yy[e]);u.setInput(t,y.yy),y.yy.lexer=u,y.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc,b=(o.push(g),u.options&&u.options.ranges);function _(){var t=r.pop()||u.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(r=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,a((function(t){i.length=i.length-2*t,s.length=s.length-t,o.length=o.length-t}),"popStack"),a(_,"lex");for(var f,x,m,E,S,A,C={};;){if(x=i[i.length-1],void 0===(m=this.defaultActions[x]||(null==f&&(f=_()),l[x]&&l[x][f]))||!m.length||!m[0]){var w,v=[];for(E in l[x])this.terminals_[E]&&2<E&&v.push("'"+this.terminals_[E]+"'");w=u.showPosition?"Parse error on line "+(h+1)+":\n"+u.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(w,{text:u.match,token:this.terminals_[f]||f,line:u.yylineno,loc:g,expected:v})}if(m[0]instanceof Array&&1<m.length)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+f);switch(m[0]){case 1:i.push(f),s.push(u.yytext),o.push(u.yylloc),i.push(m[1]),f=null,d=u.yyleng,c=u.yytext,h=u.yylineno,g=u.yylloc;break;case 2:if(S=this.productions_[m[1]][1],C.$=s[s.length-S],C._$={first_line:o[o.length-(S||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(S||1)].first_column,last_column:o[o.length-1].last_column},b&&(C._$.range=[o[o.length-(S||1)].range[0],o[o.length-1].range[1]]),void 0!==(A=this.performAction.apply(C,[c,d,h,y.yy,m[1],s,o].concat(p))))return A;S&&(i=i.slice(0,-1*S*2),s=s.slice(0,-1*S),o=o.slice(0,-1*S)),i.push(this.productions_[m[1]][0]),s.push(C.$),o.push(C._$),A=l[i[i.length-2]][i[i.length-1]],i.push(A);break;case 3:return!0}}return!0}),"parse")},n={EOF:1,parseError:a((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:a((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:a((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:a((function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g),n=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===t.length?this.yylloc.first_column:0)+t[t.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:a((function(){return this._more=!0,this}),"more"),reject:a((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:a((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:a((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:a((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:a((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:a((function(t,e){var a,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var i in n)this[i]=n[i];return!1}),"test_match"),next:a((function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,n,i=this._currentRules(),r=0;r<i.length;r++)if((a=this._input.match(this.rules[i[r]]))&&(!e||a[0].length>e[0].length))if(e=a,n=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[r])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:a((function(){return this.next()||this.lex()}),"lex"),begin:a((function(t){this.conditionStack.push(t)}),"begin"),popState:a((function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:a((function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules}),"_currentRules"),topState:a((function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:a((function(t){this.begin(t)}),"pushState"),stateStackSize:a((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:a((function(t,e,a,n){switch(a){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}}),"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};function it(){this.yy={}}return e.lexer=n,a(it,"Parser"),new((it.prototype=e).Parser=it)}(),E=m.parser=m,S=[],A=[""],C="global",w="",v=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],O=[],k="",T=!1,R=4,D=2,N=a((function(){return x}),"getC4Type"),P=a((function(t){t=y(t,l()),x=t}),"setC4Type"),B=a((function(t,e,a,n,i,r,s,o,l){if(null!=t&&null!=e&&null!=a&&null!=n){let h={};var c=O.find((t=>t.from===e&&t.to===a));c?h=c:O.push(h),h.type=t,h.from=e,h.to=a,h.label={text:n},null==i?h.techn={text:""}:"object"==typeof i?([c,t]=Object.entries(i)[0],h[c]={text:t}):h.techn={text:i},null==r?h.descr={text:""}:"object"==typeof r?([n,c]=Object.entries(r)[0],h[n]={text:c}):h.descr={text:r},"object"==typeof s?([t,i]=Object.entries(s)[0],h[t]=i):h.sprite=s,"object"==typeof o?([n,c]=Object.entries(o)[0],h[n]=c):h.tags=o,"object"==typeof l?([r,t]=Object.entries(l)[0],h[r]=t):h.link=l,h.wrap=at()}}),"addRel"),j=a((function(t,e,a,n,i,r,s){if(null!==e&&null!==a){let l={};var o=S.find((t=>t.alias===e));o&&e===o.alias?l=o:(l.alias=e,S.push(l)),l.label=null==a?{text:""}:{text:a},null==n?l.descr={text:""}:"object"==typeof n?([o,a]=Object.entries(n)[0],l[o]={text:a}):l.descr={text:n},"object"==typeof i?([o,a]=Object.entries(i)[0],l[o]=a):l.sprite=i,"object"==typeof r?([n,o]=Object.entries(r)[0],l[n]=o):l.tags=r,"object"==typeof s?([a,i]=Object.entries(s)[0],l[a]=i):l.link=s,l.typeC4Shape={text:t},l.parentBoundary=C,l.wrap=at()}}),"addPersonOrSystem"),I=a((function(t,e,a,n,i,r,s,o){if(null!==e&&null!==a){let c={};var l=S.find((t=>t.alias===e));l&&e===l.alias?c=l:(c.alias=e,S.push(c)),c.label=null==a?{text:""}:{text:a},null==n?c.techn={text:""}:"object"==typeof n?([l,a]=Object.entries(n)[0],c[l]={text:a}):c.techn={text:n},null==i?c.descr={text:""}:"object"==typeof i?([l,a]=Object.entries(i)[0],c[l]={text:a}):c.descr={text:i},"object"==typeof r?([n,l]=Object.entries(r)[0],c[n]=l):c.sprite=r,"object"==typeof s?([a,i]=Object.entries(s)[0],c[a]=i):c.tags=s,"object"==typeof o?([n,l]=Object.entries(o)[0],c[n]=l):c.link=o,c.wrap=at(),c.typeC4Shape={text:t},c.parentBoundary=C}}),"addContainer"),M=a((function(t,e,a,n,i,r,s,o){if(null!==e&&null!==a){let c={};var l=S.find((t=>t.alias===e));l&&e===l.alias?c=l:(c.alias=e,S.push(c)),c.label=null==a?{text:""}:{text:a},null==n?c.techn={text:""}:"object"==typeof n?([l,a]=Object.entries(n)[0],c[l]={text:a}):c.techn={text:n},null==i?c.descr={text:""}:"object"==typeof i?([l,a]=Object.entries(i)[0],c[l]={text:a}):c.descr={text:i},"object"==typeof r?([n,l]=Object.entries(r)[0],c[n]=l):c.sprite=r,"object"==typeof s?([a,i]=Object.entries(s)[0],c[a]=i):c.tags=s,"object"==typeof o?([n,l]=Object.entries(o)[0],c[n]=l):c.link=o,c.wrap=at(),c.typeC4Shape={text:t},c.parentBoundary=C}}),"addComponent"),L=a((function(t,e,a,n,i){if(null!==t&&null!==e){let s={};var r=v.find((e=>e.alias===t));r&&t===r.alias?s=r:(s.alias=t,v.push(s)),s.label=null==e?{text:""}:{text:e},null==a?s.type={text:"system"}:"object"==typeof a?([r,e]=Object.entries(a)[0],s[r]={text:e}):s.type={text:a},"object"==typeof n?([r,e]=Object.entries(n)[0],s[r]=e):s.tags=n,"object"==typeof i?([a,r]=Object.entries(i)[0],s[a]=r):s.link=i,s.parentBoundary=C,s.wrap=at(),w=C,C=t,A.push(w)}}),"addPersonOrSystemBoundary"),Y=a((function(t,e,a,n,i){if(null!==t&&null!==e){let s={};var r=v.find((e=>e.alias===t));r&&t===r.alias?s=r:(s.alias=t,v.push(s)),s.label=null==e?{text:""}:{text:e},null==a?s.type={text:"container"}:"object"==typeof a?([r,e]=Object.entries(a)[0],s[r]={text:e}):s.type={text:a},"object"==typeof n?([r,e]=Object.entries(n)[0],s[r]=e):s.tags=n,"object"==typeof i?([a,r]=Object.entries(i)[0],s[a]=r):s.link=i,s.parentBoundary=C,s.wrap=at(),w=C,C=t,A.push(w)}}),"addContainerBoundary"),U=a((function(t,e,a,n,i,r,s,o){if(null!==e&&null!==a){let r={};var l=v.find((t=>t.alias===e));l&&e===l.alias?r=l:(r.alias=e,v.push(r)),r.label=null==a?{text:""}:{text:a},null==n?r.type={text:"node"}:"object"==typeof n?([l,a]=Object.entries(n)[0],r[l]={text:a}):r.type={text:n},null==i?r.descr={text:""}:"object"==typeof i?([l,a]=Object.entries(i)[0],r[l]={text:a}):r.descr={text:i},"object"==typeof s?([n,l]=Object.entries(s)[0],r[n]=l):r.tags=s,"object"==typeof o?([a,i]=Object.entries(o)[0],r[a]=i):r.link=o,r.nodeType=t,r.parentBoundary=C,r.wrap=at(),w=C,C=e,A.push(w)}}),"addDeploymentNode"),F=a((function(){C=w,A.pop(),w=A.pop(),A.push(w)}),"popBoundaryParseStack"),X=a((function(t,e,a,n,i,r,s,o,l,c,h){let d=S.find((t=>t.alias===e));var p,u;void 0===d&&void 0===(d=v.find((t=>t.alias===e)))||(null!=a&&("object"==typeof a?([u,p]=Object.entries(a)[0],d[u]=p):d.bgColor=a),null!=n&&("object"==typeof n?([u,p]=Object.entries(n)[0],d[u]=p):d.fontColor=n),null!=i&&("object"==typeof i?([a,u]=Object.entries(i)[0],d[a]=u):d.borderColor=i),null!=r&&("object"==typeof r?([p,n]=Object.entries(r)[0],d[p]=n):d.shadowing=r),null!=s&&("object"==typeof s?([a,u]=Object.entries(s)[0],d[a]=u):d.shape=s),null!=o&&("object"==typeof o?([i,p]=Object.entries(o)[0],d[i]=p):d.sprite=o),null!=l&&("object"==typeof l?([n,r]=Object.entries(l)[0],d[n]=r):d.techn=l),null!=c&&("object"==typeof c?([a,u]=Object.entries(c)[0],d[a]=u):d.legendText=c),null!=h&&("object"==typeof h?([s,i]=Object.entries(h)[0],d[s]=i):d.legendSprite=h))}),"updateElStyle"),z=a((function(t,e,a,n,i,r,s){var o,l,c=O.find((t=>t.from===e&&t.to===a));void 0!==c&&(null!=n&&("object"==typeof n?([o,l]=Object.entries(n)[0],c[o]=l):c.textColor=n),null!=i&&("object"==typeof i?([o,l]=Object.entries(i)[0],c[o]=l):c.lineColor=i),null!=r&&("object"==typeof r?([n,o]=Object.entries(r)[0],c[n]=parseInt(o)):c.offsetX=parseInt(r)),null!=s)&&("object"==typeof s?([l,i]=Object.entries(s)[0],c[l]=parseInt(i)):c.offsetY=parseInt(s))}),"updateRelStyle"),W=a((function(t,e,a){let n=R,i=D;var r;n="object"==typeof e?(r=Object.values(e)[0],parseInt(r)):parseInt(e),i="object"==typeof a?(r=Object.values(a)[0],parseInt(r)):parseInt(a),1<=n&&(R=n),1<=i&&(D=i)}),"updateLayoutConfig"),Q=a((function(){return R}),"getC4ShapeInRow"),$=a((function(){return D}),"getC4BoundaryInRow"),H=a((function(){return C}),"getCurrentBoundaryParse"),V=a((function(){return w}),"getParentBoundaryParse"),q=a((function(t){return null==t?S:S.filter((e=>e.parentBoundary===t))}),"getC4ShapeArray"),G=a((function(t){return S.find((e=>e.alias===t))}),"getC4Shape"),K=a((function(t){return Object.keys(q(t))}),"getC4ShapeKeys"),J=a((function(t){return null==t?v:v.filter((e=>e.parentBoundary===t))}),"getBoundaries"),Z=a((function(){return O}),"getRels"),tt=a((function(){return k}),"getTitle"),et=a((function(t){T=t}),"setWrap"),at=a((function(){return T}),"autoWrap"),nt=a((function(){S=[],v=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],C="global",A=[w=""],O=[],T=!(A=[k=""]),R=4,D=2}),"clear"),it=a((function(t){t=y(t,l()),k=t}),"setTitle"),rt={addPersonOrSystem:j,addPersonOrSystemBoundary:L,addContainer:I,addContainerBoundary:Y,addComponent:M,addDeploymentNode:U,popBoundaryParseStack:F,addRel:B,updateElStyle:X,updateRelStyle:z,updateLayoutConfig:W,autoWrap:at,setWrap:et,getC4ShapeArray:q,getC4Shape:G,getC4ShapeKeys:K,getBoundaries:J,getBoundarys:J,getCurrentBoundaryParse:H,getParentBoundaryParse:V,getRels:Z,getTitle:tt,getC4Type:N,getC4ShapeInRow:Q,getC4BoundaryInRow:$,setAccTitle:i,getAccTitle:r,getAccDescription:s,setAccDescription:o,getConfig:a((()=>l().c4),"getConfig"),clear:nt,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:it,setC4Type:P},st=a((function(e,a){return t(e,a)}),"drawRect"),ot=a((function(t,e,a,n,i,r){(t=t.append("image")).attr("width",e),t.attr("height",a),t.attr("x",n),t.attr("y",i),e=r.startsWith("data:image/png;base64")?r:f(r),t.attr("xlink:href",e)}),"drawImage"),lt=a(((t,e,a,n)=>{var i,r=t.append("g");let s=0;for(i of e){var o,l=i.textColor||"#444444",c=i.lineColor||"#444444",h=i.offsetX?parseInt(i.offsetX):0,d=i.offsetY?parseInt(i.offsetY):0;c=(0===s?((o=r.append("line")).attr("x1",i.startPoint.x),o.attr("y1",i.startPoint.y),o.attr("x2",i.endPoint.x),o.attr("y2",i.endPoint.y),o.attr("stroke-width","1"),o.attr("stroke",c),o.style("fill","none"),"rel_b"!==i.type&&o.attr("marker-end","url(#"+n+"-arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||o.attr("marker-start","url(#"+n+"-arrowend)"),s=-1):((o=r.append("path")).attr("fill","none").attr("stroke-width","1").attr("stroke",c).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),"rel_b"!==i.type&&o.attr("marker-end","url(#"+n+"-arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||o.attr("marker-start","url(#"+n+"-arrowend)")),a.messageFont());xt(a)(i.label.text,r,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+h,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+d,i.label.width,i.label.height,{fill:l},c),i.techn&&""!==i.techn.text&&(c=a.messageFont(),xt(a)("["+i.techn.text+"]",r,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+h,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+d,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:l,"font-style":"italic"},c))}}),"drawRels"),ct=a((function(t,e,a){t=t.append("g");var n=e.bgColor||"none",i=e.borderColor||"#444444",r=e.fontColor||"black";let s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(s={"stroke-width":1}),n={x:e.x,y:e.y,fill:n,stroke:i,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:s},st(t,n);let o=a.boundaryFont();o.fontWeight="bold",o.fontSize=o.fontSize+2,o.fontColor=r,xt(a)(e.label.text,t,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},o),e.type&&""!==e.type.text&&((o=a.boundaryFont()).fontColor=r,xt(a)(e.type.text,t,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},o)),e.descr&&""!==e.descr.text&&((o=a.boundaryFont()).fontSize=o.fontSize-2,o.fontColor=r,xt(a)(e.descr.text,t,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},o))}),"drawBoundary"),ht=a((function(t,a,n){var i=a.bgColor||n[a.typeC4Shape.text+"_bg_color"],r=a.borderColor||n[a.typeC4Shape.text+"_border_color"],s=a.fontColor||"#FFFFFF";let o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(a.typeC4Shape.text){case"person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var l=t.append("g"),c=(l.attr("class","person-man"),e());switch(a.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=a.x,c.y=a.y,c.fill=i,c.width=a.width,c.height=a.height,c.stroke=r,c.rx=2.5,c.ry=2.5,c.attrs={"stroke-width":.5},st(l,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",a.x).replaceAll("starty",a.y).replaceAll("half",a.width/2).replaceAll("height",a.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",a.x).replaceAll("starty",a.y).replaceAll("half",a.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",a.x).replaceAll("starty",a.y).replaceAll("width",a.width).replaceAll("half",a.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",a.x+a.width).replaceAll("starty",a.y).replaceAll("half",a.height/2))}switch(t=ft(n,a.typeC4Shape.text),l.append("text").attr("fill",s).attr("font-family",t.fontFamily).attr("font-size",t.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",a.typeC4Shape.width).attr("x",a.x+a.width/2-a.typeC4Shape.width/2).attr("y",a.y+a.typeC4Shape.Y).text("<<"+a.typeC4Shape.text+">>"),a.typeC4Shape.text){case"person":case"external_person":ot(l,48,48,a.x+a.width/2-24,a.y+a.image.Y,o)}let h=n[a.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,xt(n)(a.label.text,l,a.x,a.y+a.label.Y,a.width,a.height,{fill:s},h),(h=n[a.typeC4Shape.text+"Font"]()).fontColor=s,a.techn&&""!==a.techn?.text?xt(n)(a.techn.text,l,a.x,a.y+a.techn.Y,a.width,a.height,{fill:s,"font-style":"italic"},h):a.type&&""!==a.type.text&&xt(n)(a.type.text,l,a.x,a.y+a.type.Y,a.width,a.height,{fill:s,"font-style":"italic"},h),a.descr&&""!==a.descr.text&&((h=n.personFont()).fontColor=s,xt(n)(a.descr.text,l,a.x,a.y+a.descr.Y,a.width,a.height,{fill:s},h)),a.height}),"drawC4Shape"),dt=a((function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}),"insertDatabaseIcon"),pt=a((function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")}),"insertComputerIcon"),ut=a((function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}),"insertClockIcon"),yt=a((function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}),"insertArrowHead"),gt=a((function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}),"insertArrowEnd"),bt=a((function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"insertArrowFilledHead"),_t=a((function(t,e){(t=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4)).append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}),"insertArrowCrossHead"),ft=a(((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]})),"getC4ShapeFont"),xt=function(){function t(t,e,a,n,r,s,o){i(e.append("text").attr("x",a+r/2).attr("y",n+s/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,a,n,r,s,o,l){var{fontSize:c,fontFamily:h,fontWeight:p}=l,u=t.split(d.lineBreakRegex);for(let t=0;t<u.length;t++){var y=t*c-c*(u.length-1)/2,g=e.append("text").attr("x",a+r/2).attr("y",n).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",p).style("font-family",h);g.append("tspan").attr("dy",y).text(u[t]).attr("alignment-baseline","mathematical"),i(g,o)}}function n(t,a,n,r,s,o,l,c){(o=(a=a.append("switch")).append("foreignObject").attr("x",n).attr("y",r).attr("width",s).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%")).append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,a,n,r,s,0,l,c),i(o,l)}function i(t,e){for(const a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return a(t,"byText"),a(e,"byTspan"),a(n,"byFo"),a(i,"_setTextAttrs"),function(a){return"fo"===a.textPlacement?n:"old"===a.textPlacement?t:e}}(),mt={drawRect:st,drawBoundary:ct,drawC4Shape:ht,drawRels:lt,drawImage:ot,insertArrowHead:yt,insertArrowEnd:gt,insertArrowFilledHead:bt,insertArrowCrossHead:_t,insertDatabaseIcon:dt,insertComputerIcon:pt,insertClockIcon:ut},Et=0,St=0,At=4,Ct=2,wt=(m.yy=rt,{}),vt=class{static{a(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Ot(t.db.getConfig())}setData(t,e,a,n){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=n}updateVal(t,e,a,n){void 0===t[e]?t[e]=a:t[e]=n(a,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,a=e+t.width,n=this.nextData.starty+2*t.margin,i=n+t.height;(e>=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>At)&&(e=this.nextData.startx+t.margin+wt.nextLinePaddingX,n=this.nextData.stopy+2*t.margin,this.nextData.stopx=a=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=n+t.height,this.nextData.cnt=1),t.x=e,t.y=n,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Ot(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},Ot=a((function(t){n(wt,t),t.fontFamily&&(wt.personFontFamily=wt.systemFontFamily=wt.messageFontFamily=t.fontFamily),t.fontSize&&(wt.personFontSize=wt.systemFontSize=wt.messageFontSize=t.fontSize),t.fontWeight&&(wt.personFontWeight=wt.systemFontWeight=wt.messageFontWeight=t.fontWeight)}),"setConf"),kt=a(((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]})),"c4ShapeFont"),Tt=a((t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight})),"boundaryFont"),Rt=a((t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight})),"messageFont");function Dt(t,e,a,n,i){if(!e[t].width)if(a)e[t].text=h(e[t].text,i,n),e[t].textLines=e[t].text.split(d.lineBreakRegex).length,e[t].width=i,e[t].height=p(e[t].text,n);else{var r;a=e[t].text.split(d.lineBreakRegex);e[t].textLines=a.length,e[t].height=0,e[t].width=0;for(const i of a)e[t].width=Math.max(u(i,n),e[t].width),r=p(i,n),e[t].height=e[t].height+r}}a(Dt,"calcC4ShapeTextWH");var Nt=a((function(t,e,a){e.x=a.data.startx,e.y=a.data.starty,e.width=a.data.stopx-a.data.startx,e.height=a.data.stopy-a.data.starty,e.label.y=wt.c4ShapeMargin-35;a=e.wrap&&wt.wrap;var n=Tt(wt),i=(n.fontSize=n.fontSize+2,n.fontWeight="bold",u(e.label.text,n));Dt("label",e,a,n,i),mt.drawBoundary(t,e,wt)}),"drawBoundary"),Pt=a((function(t,e,a,n){let i=0;for(const c of n){i=0;var r=a[c];switch((s=kt(wt,r.typeC4Shape.text)).fontSize=s.fontSize-2,r.typeC4Shape.width=u("«"+r.typeC4Shape.text+"»",s),r.typeC4Shape.height=s.fontSize+2,r.typeC4Shape.Y=wt.c4ShapePadding,i=r.typeC4Shape.Y+r.typeC4Shape.height-4,r.image={width:0,height:0,Y:0},r.typeC4Shape.text){case"person":case"external_person":r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height}r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height);var s=r.wrap&&wt.wrap,o=wt.width-2*wt.c4ShapePadding,l=kt(wt,r.typeC4Shape.text);l.fontSize=l.fontSize+2,l.fontWeight="bold",Dt("label",r,s,l,o),r.label.Y=i+8,i=r.label.Y+r.label.height,r.type&&""!==r.type.text?(r.type.text="["+r.type.text+"]",Dt("type",r,s,kt(wt,r.typeC4Shape.text),o),r.type.Y=i+5,i=r.type.Y+r.type.height):r.techn&&""!==r.techn.text&&(r.techn.text="["+r.techn.text+"]",Dt("techn",r,s,kt(wt,r.techn.text),o),r.techn.Y=i+5,i=r.techn.Y+r.techn.height);let n=i,h=r.label.width;r.descr&&""!==r.descr.text&&(Dt("descr",r,s,kt(wt,r.typeC4Shape.text),o),r.descr.Y=i+20,i=r.descr.Y+r.descr.height,h=Math.max(r.label.width,r.descr.width),n=i-5*r.descr.textLines),h+=wt.c4ShapePadding,r.width=Math.max(r.width||wt.width,h,wt.width),r.height=Math.max(r.height||wt.height,n,wt.height),r.margin=r.margin||wt.c4ShapeMargin,t.insert(r),mt.drawC4Shape(e,r,wt)}t.bumpLastMargin(wt.c4ShapeMargin)}),"drawC4ShapeArray"),Bt=class{static{a(this,"Point")}constructor(t,e){this.x=t,this.y=e}},jt=a((function(t,e){var a=t.x,n=t.y,i=e.x,r=(e=e.y,a+t.width/2),s=n+t.height/2,o=Math.abs(a-i),l=Math.abs(n-e),c=l/o,h=t.height/t.width;let d=null;return n==e&&a<i?d=new Bt(a+t.width,s):n==e&&i<a?d=new Bt(a,s):a==i&&n<e?d=new Bt(r,n+t.height):a==i&&e<n&&(d=new Bt(r,n)),i<a&&n<e?d=c<=h?new Bt(a,s+c*t.width/2):new Bt(r-o/l*t.height/2,n+t.height):a<i&&n<e?d=c<=h?new Bt(a+t.width,s+c*t.width/2):new Bt(r+o/l*t.height/2,n+t.height):a<i&&e<n?d=c<=h?new Bt(a+t.width,s-c*t.width/2):new Bt(r+t.height/2*o/l,n):i<a&&e<n&&(d=c<=h?new Bt(a,s-t.width/2*c):new Bt(r-t.height/2*o/l,n)),d}),"getIntersectPoint"),It=a((function(t,e){var a={x:0,y:0};return{startPoint:(a.x=e.x+e.width/2,a.y=e.y+e.height/2,jt(t,a)),endPoint:t=(a.x=t.x+t.width/2,a.y=t.y+t.height/2,jt(e,a))}}),"getIntersectPoints"),Mt=a((function(t,e,a,n,i){let r=0;for(var s of e){r+=1;var o=s.wrap&&wt.wrap,l=Rt(wt);"C4Dynamic"===n.db.getC4Type()&&(s.label.text=r+": "+s.label.text);let t=u(s.label.text,l);Dt("label",s,o,l,t),s.techn&&""!==s.techn.text&&(t=u(s.techn.text,l),Dt("techn",s,o,l,t)),s.descr&&""!==s.descr.text&&(t=u(s.descr.text,l),Dt("descr",s,o,l,t)),o=a(s.from),l=a(s.to),o=It(o,l),s.startPoint=o.startPoint,s.endPoint=o.endPoint}mt.drawRels(t,e,wt,i)}),"drawRels");function Lt(t,e,a,n,i){var r,s,o=new vt(i);for([r,s]of(o.data.widthLimit=a.data.widthLimit/Math.min(Ct,n.length),n.entries())){let n=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=n,n=s.image.Y+s.image.height);var l,c=s.wrap&&wt.wrap;c=((l=Tt(wt)).fontSize=l.fontSize+2,l.fontWeight="bold",Dt("label",s,c,l,o.data.widthLimit),s.label.Y=n+8,n=s.label.Y+s.label.height,s.type&&""!==s.type.text&&(s.type.text="["+s.type.text+"]",Dt("type",s,c,l=Tt(wt),o.data.widthLimit),s.type.Y=n+5,n=s.type.Y+s.type.height),s.descr&&""!==s.descr.text&&((l=Tt(wt)).fontSize=l.fontSize-2,Dt("descr",s,c,l,o.data.widthLimit),s.descr.Y=n+20,n=s.descr.Y+s.descr.height),0==r||r%Ct==0?(c=a.data.startx+wt.diagramMarginX,l=a.data.stopy+wt.diagramMarginY+n,o.setData(c,c,l,l)):(c=o.data.stopx!==o.data.startx?o.data.stopx+wt.diagramMarginX:o.data.startx,l=o.data.starty,o.setData(c,c,l,l)),o.name=s.alias,i.db.getC4ShapeArray(s.alias));0<(c=(0<(l=i.db.getC4ShapeKeys(s.alias)).length&&Pt(o,t,c,l),e=s.alias,i.db.getBoundaries(e))).length&&Lt(t,e,o,c,i),"global"!==s.alias&&Nt(t,s,o),a.data.stopy=Math.max(o.data.stopy+wt.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(o.data.stopx+wt.c4ShapeMargin,a.data.stopx),Et=Math.max(Et,a.data.stopx),St=Math.max(St,a.data.stopy)}}a(Lt,"drawInsideBoundary");var Yt=a((function(t,e,a,n){let i;wt=l().c4,"sandbox"===(o=l().securityLevel)&&(i=g("#i"+e));var r=g("sandbox"===o?i.nodes()[0].contentDocument.body:"body"),s=n.db,o=(s=(n.db.setWrap(wt.wrap),At=s.getC4ShapeInRow(),Ct=s.getC4BoundaryInRow(),b.debug("C:"+JSON.stringify(wt,null,2)),"sandbox"===o?r.select(`[id="${e}"]`):g(`[id="${e}"]`)),r=((o=(mt.insertComputerIcon(s,e),mt.insertDatabaseIcon(s,e),mt.insertClockIcon(s,e),new vt(n))).setData(wt.diagramMarginX,wt.diagramMarginX,wt.diagramMarginY,wt.diagramMarginY),o.data.widthLimit=screen.availWidth,Et=wt.diagramMarginX,St=wt.diagramMarginY,n.db.getTitle()),e=(n=(Lt(s,"",o,n.db.getBoundaries(""),n),mt.insertArrowHead(s,e),mt.insertArrowEnd(s,e),mt.insertArrowCrossHead(s,e),mt.insertArrowFilledHead(s,e),Mt(s,n.db.getRels(),n.db.getC4Shape,n,e),o.data.stopx=Et,o.data.stopy=St,o.data)).stopy-n.starty+2*wt.diagramMarginY,n.stopx-n.startx+2*wt.diagramMarginX);r&&s.append("text").text(r).attr("x",(n.stopx-n.startx)/2-4*wt.diagramMarginX).attr("y",n.starty+wt.diagramMarginY),_(s,e,o,wt.useMaxWidth),r=r?60:0;s.attr("viewBox",n.startx-wt.diagramMarginX+" -"+(wt.diagramMarginY+r)+" "+o+" "+(e+r)),b.debug("models:",n)}),"draw"),Ut={drawPersonOrSystemArray:Pt,drawBoundary:Nt,setConf:Ot,draw:Yt},Ft=a((t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`),"getStyles"),Xt={parser:E,db:rt,renderer:Ut,styles:Ft,init:a((({c4:t,wrap:e})=>{Ut.setConf(t),rt.setWrap(e)}),"init")};export{Xt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e;(t=self.document)&&!t.getElementById("livereloadscript")&&((e=t.createElement("script")).async=1,e.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",e.id="livereloadscript",t.getElementsByTagName("head")[0].appendChild(e));import{d as a,g as n}from"./chunk-32BRIVSS-8a8507a2.js";import{_ as i,a as r,s,g as o,b as l,c as h,d,w as p,e as u,f as y,h as g,i as b,j as _,l as f,k as m,m as x}from"./mermaid.core-2d237a1e.js";import"./web-753300e1.js";var E,S=(()=>{var t=i(function(t,e,a,n){for(a=a||{},n=t.length;n--;a[t[n]]=e);return a},"o"),e=[1,26],a=[1,27],n=[1,28],r=[1,63],s=[1,64],o=[1,65],l=[1,66],h=[1,67],d=[1,68],p=[1,69],u=[1,29],y=[1,30],g=[1,31],b=[1,32],_=[1,33],f=[1,34],m=[1,35],x=[1,36],E=[1,37],S=[1,38],A=[1,39],C=[1,40],v=[1,41],w=[1,42],O=[1,43],k=[1,44],T=[1,45],R=[1,46],D=[1,47],N=[1,48],P=[1,50],B=[1,51],j=[1,52],I=[1,53],M=[1,54],L=[1,55],Y=[1,56],U=[1,57],F=[1,58],X=[1,59],z=[1,60],W=[14,42],Q=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],$=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],H=[1,82],V=[1,83],q=[1,84],G=[1,85],K=[12,14,42],J=[12,14,33,42],Z=[12,14,33,42,76,77,79,80],tt=[12,33],et=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],at={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:i(function(t,e,a,n,i,r,s){var o=r.length-1;switch(i){case 3:n.setDirection("TB");break;case 4:n.setDirection("BT");break;case 5:n.setDirection("RL");break;case 6:n.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:n.setC4Type(r[o-3]);break;case 19:n.setTitle(r[o].substring(6)),this.$=r[o].substring(6);break;case 20:n.setAccDescription(r[o].substring(15)),this.$=r[o].substring(15);break;case 21:this.$=r[o].trim(),n.setTitle(this.$);break;case 22:case 23:this.$=r[o].trim(),n.setAccDescription(this.$);break;case 28:r[o].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 29:r[o].splice(2,0,"SYSTEM"),n.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 30:n.addPersonOrSystemBoundary(...r[o]),this.$=r[o];break;case 31:r[o].splice(2,0,"CONTAINER"),n.addContainerBoundary(...r[o]),this.$=r[o];break;case 32:n.addDeploymentNode("node",...r[o]),this.$=r[o];break;case 33:n.addDeploymentNode("nodeL",...r[o]),this.$=r[o];break;case 34:n.addDeploymentNode("nodeR",...r[o]),this.$=r[o];break;case 35:n.popBoundaryParseStack();break;case 39:n.addPersonOrSystem("person",...r[o]),this.$=r[o];break;case 40:n.addPersonOrSystem("external_person",...r[o]),this.$=r[o];break;case 41:n.addPersonOrSystem("system",...r[o]),this.$=r[o];break;case 42:n.addPersonOrSystem("system_db",...r[o]),this.$=r[o];break;case 43:n.addPersonOrSystem("system_queue",...r[o]),this.$=r[o];break;case 44:n.addPersonOrSystem("external_system",...r[o]),this.$=r[o];break;case 45:n.addPersonOrSystem("external_system_db",...r[o]),this.$=r[o];break;case 46:n.addPersonOrSystem("external_system_queue",...r[o]),this.$=r[o];break;case 47:n.addContainer("container",...r[o]),this.$=r[o];break;case 48:n.addContainer("container_db",...r[o]),this.$=r[o];break;case 49:n.addContainer("container_queue",...r[o]),this.$=r[o];break;case 50:n.addContainer("external_container",...r[o]),this.$=r[o];break;case 51:n.addContainer("external_container_db",...r[o]),this.$=r[o];break;case 52:n.addContainer("external_container_queue",...r[o]),this.$=r[o];break;case 53:n.addComponent("component",...r[o]),this.$=r[o];break;case 54:n.addComponent("component_db",...r[o]),this.$=r[o];break;case 55:n.addComponent("component_queue",...r[o]),this.$=r[o];break;case 56:n.addComponent("external_component",...r[o]),this.$=r[o];break;case 57:n.addComponent("external_component_db",...r[o]),this.$=r[o];break;case 58:n.addComponent("external_component_queue",...r[o]),this.$=r[o];break;case 60:n.addRel("rel",...r[o]),this.$=r[o];break;case 61:n.addRel("birel",...r[o]),this.$=r[o];break;case 62:n.addRel("rel_u",...r[o]),this.$=r[o];break;case 63:n.addRel("rel_d",...r[o]),this.$=r[o];break;case 64:n.addRel("rel_l",...r[o]),this.$=r[o];break;case 65:n.addRel("rel_r",...r[o]),this.$=r[o];break;case 66:n.addRel("rel_b",...r[o]),this.$=r[o];break;case 67:r[o].splice(0,1),n.addRel("rel",...r[o]),this.$=r[o];break;case 68:n.updateElStyle("update_el_style",...r[o]),this.$=r[o];break;case 69:n.updateRelStyle("update_rel_style",...r[o]),this.$=r[o];break;case 70:n.updateLayoutConfig("update_layout_config",...r[o]),this.$=r[o];break;case 71:this.$=[r[o]];break;case 72:r[o].unshift(r[o-1]),this.$=r[o];break;case 73:case 75:this.$=r[o].trim();break;case 74:var l={};l[r[o-1].trim()]=r[o].trim(),this.$=l;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:at=[1,24],23:nt=[1,25],24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{13:70,19:20,20:21,21:22,22:at,23:nt,24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{13:71,19:20,20:21,21:22,22:at,23:nt,24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{13:72,19:20,20:21,21:22,22:at,23:nt,24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{13:73,19:20,20:21,21:22,22:at,23:nt,24:e,26:a,28:n,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{14:[1,74]},t(W,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:s,37:o,38:l,39:h,40:d,41:p,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z}),t(W,[2,14]),t(Q,[2,16],{12:[1,76]}),t(W,[2,36],{12:[1,77]}),t($,[2,19]),t($,[2,20]),{25:[1,78]},{27:[1,79]},t($,[2,23]),{35:80,75:81,76:H,77:V,79:q,80:G},{35:86,75:81,76:H,77:V,79:q,80:G},{35:87,75:81,76:H,77:V,79:q,80:G},{35:88,75:81,76:H,77:V,79:q,80:G},{35:89,75:81,76:H,77:V,79:q,80:G},{35:90,75:81,76:H,77:V,79:q,80:G},{35:91,75:81,76:H,77:V,79:q,80:G},{35:92,75:81,76:H,77:V,79:q,80:G},{35:93,75:81,76:H,77:V,79:q,80:G},{35:94,75:81,76:H,77:V,79:q,80:G},{35:95,75:81,76:H,77:V,79:q,80:G},{35:96,75:81,76:H,77:V,79:q,80:G},{35:97,75:81,76:H,77:V,79:q,80:G},{35:98,75:81,76:H,77:V,79:q,80:G},{35:99,75:81,76:H,77:V,79:q,80:G},{35:100,75:81,76:H,77:V,79:q,80:G},{35:101,75:81,76:H,77:V,79:q,80:G},{35:102,75:81,76:H,77:V,79:q,80:G},{35:103,75:81,76:H,77:V,79:q,80:G},{35:104,75:81,76:H,77:V,79:q,80:G},t(K,[2,59]),{35:105,75:81,76:H,77:V,79:q,80:G},{35:106,75:81,76:H,77:V,79:q,80:G},{35:107,75:81,76:H,77:V,79:q,80:G},{35:108,75:81,76:H,77:V,79:q,80:G},{35:109,75:81,76:H,77:V,79:q,80:G},{35:110,75:81,76:H,77:V,79:q,80:G},{35:111,75:81,76:H,77:V,79:q,80:G},{35:112,75:81,76:H,77:V,79:q,80:G},{35:113,75:81,76:H,77:V,79:q,80:G},{35:114,75:81,76:H,77:V,79:q,80:G},{35:115,75:81,76:H,77:V,79:q,80:G},{20:116,29:49,30:61,32:62,34:r,36:s,37:o,38:l,39:h,40:d,41:p,43:23,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z},{12:[1,118],33:[1,117]},{35:119,75:81,76:H,77:V,79:q,80:G},{35:120,75:81,76:H,77:V,79:q,80:G},{35:121,75:81,76:H,77:V,79:q,80:G},{35:122,75:81,76:H,77:V,79:q,80:G},{35:123,75:81,76:H,77:V,79:q,80:G},{35:124,75:81,76:H,77:V,79:q,80:G},{35:125,75:81,76:H,77:V,79:q,80:G},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(W,[2,15]),t(Q,[2,17],{21:22,19:130,22:at,23:nt,24:e,26:a,28:n}),t(W,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:at,23:nt,24:e,26:a,28:n,34:r,36:s,37:o,38:l,39:h,40:d,41:p,44:u,45:y,46:g,47:b,48:_,49:f,50:m,51:x,52:E,53:S,54:A,55:C,56:v,57:w,58:O,59:k,60:T,61:R,62:D,63:N,64:P,65:B,66:j,67:I,68:M,69:L,70:Y,71:U,72:F,73:X,74:z}),t($,[2,21]),t($,[2,22]),t(K,[2,39]),t(J,[2,71],{75:81,35:132,76:H,77:V,79:q,80:G}),t(Z,[2,73]),{78:[1,133]},t(Z,[2,75]),t(Z,[2,76]),t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(K,[2,43]),t(K,[2,44]),t(K,[2,45]),t(K,[2,46]),t(K,[2,47]),t(K,[2,48]),t(K,[2,49]),t(K,[2,50]),t(K,[2,51]),t(K,[2,52]),t(K,[2,53]),t(K,[2,54]),t(K,[2,55]),t(K,[2,56]),t(K,[2,57]),t(K,[2,58]),t(K,[2,60]),t(K,[2,61]),t(K,[2,62]),t(K,[2,63]),t(K,[2,64]),t(K,[2,65]),t(K,[2,66]),t(K,[2,67]),t(K,[2,68]),t(K,[2,69]),t(K,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(tt,[2,28]),t(tt,[2,29]),t(tt,[2,30]),t(tt,[2,31]),t(tt,[2,32]),t(tt,[2,33]),t(tt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(Q,[2,18]),t(W,[2,38]),t(J,[2,72]),t(Z,[2,74]),t(K,[2,24]),t(K,[2,35]),t(et,[2,25]),t(et,[2,26],{12:[1,138]}),t(et,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:i(function(t,e){var a;if(!e.recoverable)throw(a=new Error(t)).hash=e,a;this.trace(t)},"parseError"),parse:i(function(t){var e,a=this,n=[0],r=[],s=[null],o=[],l=this.table,c="",h=0,d=0,p=o.slice.call(arguments,1),u=Object.create(this.lexer),y={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(y.yy[e]=this.yy[e]);u.setInput(t,y.yy),y.yy.lexer=u,y.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc,b=(o.push(g),u.options&&u.options.ranges);function _(){var t=r.pop()||u.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(r=t).pop()),t=a.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){n.length=n.length-2*t,s.length=s.length-t,o.length=o.length-t},"popStack"),i(_,"lex");for(var f,m,x,E,S,A,C={};;){if(m=n[n.length-1],void 0===(x=this.defaultActions[m]||(null==f&&(f=_()),l[m]&&l[m][f]))||!x.length||!x[0]){var v,w=[];for(E in l[m])this.terminals_[E]&&2<E&&w.push("'"+this.terminals_[E]+"'");v=u.showPosition?"Parse error on line "+(h+1)+":\n"+u.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(v,{text:u.match,token:this.terminals_[f]||f,line:u.yylineno,loc:g,expected:w})}if(x[0]instanceof Array&&1<x.length)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+f);switch(x[0]){case 1:n.push(f),s.push(u.yytext),o.push(u.yylloc),n.push(x[1]),f=null,d=u.yyleng,c=u.yytext,h=u.yylineno,g=u.yylloc;break;case 2:if(S=this.productions_[x[1]][1],C.$=s[s.length-S],C._$={first_line:o[o.length-(S||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(S||1)].first_column,last_column:o[o.length-1].last_column},b&&(C._$.range=[o[o.length-(S||1)].range[0],o[o.length-1].range[1]]),void 0!==(A=this.performAction.apply(C,[c,d,h,y.yy,x[1],s,o].concat(p))))return A;S&&(n=n.slice(0,-1*S*2),s=s.slice(0,-1*S),o=o.slice(0,-1*S)),n.push(this.productions_[x[1]][0]),s.push(C.$),o.push(C._$),A=l[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},"parse")},nt={EOF:1,parseError:i(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g),n=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===t.length?this.yylloc.first_column:0)+t[t.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i(function(t,e){var a,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(n.yylloc.range=this.yylloc.range.slice(0)),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var i in n)this[i]=n[i];return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,n,i=this._currentRules(),r=0;r<i.length;r++)if((a=this._input.match(this.rules[i[r]]))&&(!e||a[0].length>e[0].length))if(e=a,n=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[r])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){return this.next()||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:i(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(t,e,a,n){switch(a){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};function it(){this.yy={}}return at.lexer=nt,i(it,"Parser"),new((it.prototype=at).Parser=it)})(),A=S.parser=S,C=[],v=[""],w="global",O="",k=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],T=[],R="",D=!1,N=4,P=2,B=i(function(){return E},"getC4Type"),j=i(function(t){t=b(t,d()),E=t},"setC4Type"),I=i(function(t,e,a,n,i,r,s,o,l){if(null!=t&&null!=e&&null!=a&&null!=n){let h={};var c=T.find(t=>t.from===e&&t.to===a);c?h=c:T.push(h),h.type=t,h.from=e,h.to=a,h.label={text:n},null==i?h.techn={text:""}:"object"==typeof i?([c,t]=Object.entries(i)[0],h[c]={text:t}):h.techn={text:i},null==r?h.descr={text:""}:"object"==typeof r?([n,c]=Object.entries(r)[0],h[n]={text:c}):h.descr={text:r},"object"==typeof s?([t,i]=Object.entries(s)[0],h[t]=i):h.sprite=s,"object"==typeof o?([n,c]=Object.entries(o)[0],h[n]=c):h.tags=o,"object"==typeof l?([r,t]=Object.entries(l)[0],h[r]=t):h.link=l,h.wrap=it()}},"addRel"),M=i(function(t,e,a,n,i,r,s){if(null!==e&&null!==a){let l={};var o=C.find(t=>t.alias===e);o&&e===o.alias?l=o:(l.alias=e,C.push(l)),l.label=null==a?{text:""}:{text:a},null==n?l.descr={text:""}:"object"==typeof n?([o,a]=Object.entries(n)[0],l[o]={text:a}):l.descr={text:n},"object"==typeof i?([o,a]=Object.entries(i)[0],l[o]=a):l.sprite=i,"object"==typeof r?([n,o]=Object.entries(r)[0],l[n]=o):l.tags=r,"object"==typeof s?([a,i]=Object.entries(s)[0],l[a]=i):l.link=s,l.typeC4Shape={text:t},l.parentBoundary=w,l.wrap=it()}},"addPersonOrSystem"),L=i(function(t,e,a,n,i,r,s,o){if(null!==e&&null!==a){let c={};var l=C.find(t=>t.alias===e);l&&e===l.alias?c=l:(c.alias=e,C.push(c)),c.label=null==a?{text:""}:{text:a},null==n?c.techn={text:""}:"object"==typeof n?([l,a]=Object.entries(n)[0],c[l]={text:a}):c.techn={text:n},null==i?c.descr={text:""}:"object"==typeof i?([l,a]=Object.entries(i)[0],c[l]={text:a}):c.descr={text:i},"object"==typeof r?([n,l]=Object.entries(r)[0],c[n]=l):c.sprite=r,"object"==typeof s?([a,i]=Object.entries(s)[0],c[a]=i):c.tags=s,"object"==typeof o?([n,l]=Object.entries(o)[0],c[n]=l):c.link=o,c.wrap=it(),c.typeC4Shape={text:t},c.parentBoundary=w}},"addContainer"),Y=i(function(t,e,a,n,i,r,s,o){if(null!==e&&null!==a){let c={};var l=C.find(t=>t.alias===e);l&&e===l.alias?c=l:(c.alias=e,C.push(c)),c.label=null==a?{text:""}:{text:a},null==n?c.techn={text:""}:"object"==typeof n?([l,a]=Object.entries(n)[0],c[l]={text:a}):c.techn={text:n},null==i?c.descr={text:""}:"object"==typeof i?([l,a]=Object.entries(i)[0],c[l]={text:a}):c.descr={text:i},"object"==typeof r?([n,l]=Object.entries(r)[0],c[n]=l):c.sprite=r,"object"==typeof s?([a,i]=Object.entries(s)[0],c[a]=i):c.tags=s,"object"==typeof o?([n,l]=Object.entries(o)[0],c[n]=l):c.link=o,c.wrap=it(),c.typeC4Shape={text:t},c.parentBoundary=w}},"addComponent"),U=i(function(t,e,a,n,i){if(null!==t&&null!==e){let s={};var r=k.find(e=>e.alias===t);r&&t===r.alias?s=r:(s.alias=t,k.push(s)),s.label=null==e?{text:""}:{text:e},null==a?s.type={text:"system"}:"object"==typeof a?([r,e]=Object.entries(a)[0],s[r]={text:e}):s.type={text:a},"object"==typeof n?([r,e]=Object.entries(n)[0],s[r]=e):s.tags=n,"object"==typeof i?([a,r]=Object.entries(i)[0],s[a]=r):s.link=i,s.parentBoundary=w,s.wrap=it(),O=w,w=t,v.push(O)}},"addPersonOrSystemBoundary"),F=i(function(t,e,a,n,i){if(null!==t&&null!==e){let s={};var r=k.find(e=>e.alias===t);r&&t===r.alias?s=r:(s.alias=t,k.push(s)),s.label=null==e?{text:""}:{text:e},null==a?s.type={text:"container"}:"object"==typeof a?([r,e]=Object.entries(a)[0],s[r]={text:e}):s.type={text:a},"object"==typeof n?([r,e]=Object.entries(n)[0],s[r]=e):s.tags=n,"object"==typeof i?([a,r]=Object.entries(i)[0],s[a]=r):s.link=i,s.parentBoundary=w,s.wrap=it(),O=w,w=t,v.push(O)}},"addContainerBoundary"),X=i(function(t,e,a,n,i,r,s,o){if(null!==e&&null!==a){let r={};var l=k.find(t=>t.alias===e);l&&e===l.alias?r=l:(r.alias=e,k.push(r)),r.label=null==a?{text:""}:{text:a},null==n?r.type={text:"node"}:"object"==typeof n?([l,a]=Object.entries(n)[0],r[l]={text:a}):r.type={text:n},null==i?r.descr={text:""}:"object"==typeof i?([l,a]=Object.entries(i)[0],r[l]={text:a}):r.descr={text:i},"object"==typeof s?([n,l]=Object.entries(s)[0],r[n]=l):r.tags=s,"object"==typeof o?([a,i]=Object.entries(o)[0],r[a]=i):r.link=o,r.nodeType=t,r.parentBoundary=w,r.wrap=it(),O=w,w=e,v.push(O)}},"addDeploymentNode"),z=i(function(){w=O,v.pop(),O=v.pop(),v.push(O)},"popBoundaryParseStack"),W=i(function(t,e,a,n,i,r,s,o,l,c,h){let d=C.find(t=>t.alias===e);var p,u;void 0===d&&void 0===(d=k.find(t=>t.alias===e))||(null!=a&&("object"==typeof a?([u,p]=Object.entries(a)[0],d[u]=p):d.bgColor=a),null!=n&&("object"==typeof n?([u,p]=Object.entries(n)[0],d[u]=p):d.fontColor=n),null!=i&&("object"==typeof i?([a,u]=Object.entries(i)[0],d[a]=u):d.borderColor=i),null!=r&&("object"==typeof r?([p,n]=Object.entries(r)[0],d[p]=n):d.shadowing=r),null!=s&&("object"==typeof s?([a,u]=Object.entries(s)[0],d[a]=u):d.shape=s),null!=o&&("object"==typeof o?([i,p]=Object.entries(o)[0],d[i]=p):d.sprite=o),null!=l&&("object"==typeof l?([n,r]=Object.entries(l)[0],d[n]=r):d.techn=l),null!=c&&("object"==typeof c?([a,u]=Object.entries(c)[0],d[a]=u):d.legendText=c),null!=h&&("object"==typeof h?([s,i]=Object.entries(h)[0],d[s]=i):d.legendSprite=h))},"updateElStyle"),Q=i(function(t,e,a,n,i,r,s){var o,l,c=T.find(t=>t.from===e&&t.to===a);void 0!==c&&(null!=n&&("object"==typeof n?([o,l]=Object.entries(n)[0],c[o]=l):c.textColor=n),null!=i&&("object"==typeof i?([o,l]=Object.entries(i)[0],c[o]=l):c.lineColor=i),null!=r&&("object"==typeof r?([n,o]=Object.entries(r)[0],c[n]=parseInt(o)):c.offsetX=parseInt(r)),null!=s)&&("object"==typeof s?([l,i]=Object.entries(s)[0],c[l]=parseInt(i)):c.offsetY=parseInt(s))},"updateRelStyle"),$=i(function(t,e,a){let n=N,i=P;var r;n="object"==typeof e?(r=Object.values(e)[0],parseInt(r)):parseInt(e),i="object"==typeof a?(r=Object.values(a)[0],parseInt(r)):parseInt(a),1<=n&&(N=n),1<=i&&(P=i)},"updateLayoutConfig"),H=i(function(){return N},"getC4ShapeInRow"),V=i(function(){return P},"getC4BoundaryInRow"),q=i(function(){return w},"getCurrentBoundaryParse"),G=i(function(){return O},"getParentBoundaryParse"),K=i(function(t){return null==t?C:C.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),J=i(function(t){return C.find(e=>e.alias===t)},"getC4Shape"),Z=i(function(t){return Object.keys(K(t))},"getC4ShapeKeys"),tt=i(function(t){return null==t?k:k.filter(e=>e.parentBoundary===t)},"getBoundaries"),et=i(function(){return T},"getRels"),at=i(function(){return R},"getTitle"),nt=i(function(t){D=t},"setWrap"),it=i(function(){return D},"autoWrap"),rt=i(function(){C=[],k=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],w="global",v=[O=""],T=[],D=!(v=[R=""]),N=4,P=2},"clear"),st=i(function(t){t=b(t,d()),R=t},"setTitle"),ot={addPersonOrSystem:M,addPersonOrSystemBoundary:U,addContainer:L,addContainerBoundary:F,addComponent:Y,addDeploymentNode:X,popBoundaryParseStack:z,addRel:I,updateElStyle:W,updateRelStyle:Q,updateLayoutConfig:$,autoWrap:it,setWrap:nt,getC4ShapeArray:K,getC4Shape:J,getC4ShapeKeys:Z,getBoundaries:tt,getBoundarys:tt,getCurrentBoundaryParse:q,getParentBoundaryParse:G,getRels:et,getTitle:at,getC4Type:B,getC4ShapeInRow:H,getC4BoundaryInRow:V,setAccTitle:s,getAccTitle:o,getAccDescription:l,setAccDescription:h,getConfig:i(()=>d().c4,"getConfig"),clear:rt,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:st,setC4Type:j},lt=i(function(t,e){return a(t,e)},"drawRect"),ct=i(function(t,e,a,n,i,r){(t=t.append("image")).attr("width",e),t.attr("height",a),t.attr("x",n),t.attr("y",i),e=r.startsWith("data:image/png;base64")?r:x(r),t.attr("xlink:href",e)},"drawImage"),ht=i((t,e,a,n)=>{var i,r=t.append("g");let s=0;for(i of e){var o,l=i.textColor||"#444444",c=i.lineColor||"#444444",h=i.offsetX?parseInt(i.offsetX):0,d=i.offsetY?parseInt(i.offsetY):0;c=(0===s?((o=r.append("line")).attr("x1",i.startPoint.x),o.attr("y1",i.startPoint.y),o.attr("x2",i.endPoint.x),o.attr("y2",i.endPoint.y),o.attr("stroke-width","1"),o.attr("stroke",c),o.style("fill","none"),"rel_b"!==i.type&&o.attr("marker-end","url(#"+n+"-arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||o.attr("marker-start","url(#"+n+"-arrowend)"),s=-1):((o=r.append("path")).attr("fill","none").attr("stroke-width","1").attr("stroke",c).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),"rel_b"!==i.type&&o.attr("marker-end","url(#"+n+"-arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||o.attr("marker-start","url(#"+n+"-arrowend)")),a.messageFont());Et(a)(i.label.text,r,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+h,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+d,i.label.width,i.label.height,{fill:l},c),i.techn&&""!==i.techn.text&&(c=a.messageFont(),Et(a)("["+i.techn.text+"]",r,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+h,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+d,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:l,"font-style":"italic"},c))}},"drawRels"),dt=i(function(t,e,a){t=t.append("g");var n=e.bgColor||"none",i=e.fontColor||"black";let r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(r={"stroke-width":1}),n={x:e.x,y:e.y,fill:n,stroke:e.borderColor||"#444444",width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:r},lt(t,n);let s=a.boundaryFont();s.fontWeight="bold",s.fontSize=s.fontSize+2,s.fontColor=i,Et(a)(e.label.text,t,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},s),e.type&&""!==e.type.text&&((s=a.boundaryFont()).fontColor=i,Et(a)(e.type.text,t,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},s)),e.descr&&""!==e.descr.text&&((s=a.boundaryFont()).fontSize=s.fontSize-2,s.fontColor=i,Et(a)(e.descr.text,t,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},s))},"drawBoundary"),pt=i(function(t,e,a){var i=e.bgColor||a[e.typeC4Shape.text+"_bg_color"],r=e.borderColor||a[e.typeC4Shape.text+"_border_color"],s=e.fontColor||"#FFFFFF";let o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var l=t.append("g"),c=(l.attr("class","person-man"),n());switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=e.x,c.y=e.y,c.fill=i,c.width=e.width,c.height=e.height,c.stroke=r,c.rx=2.5,c.ry=2.5,c.attrs={"stroke-width":.5},lt(l,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}switch(t=xt(a,e.typeC4Shape.text),l.append("text").attr("fill",s).attr("font-family",t.fontFamily).attr("font-size",t.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":ct(l,48,48,e.x+e.width/2-24,e.y+e.image.Y,o)}let h=a[e.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,Et(a)(e.label.text,l,e.x,e.y+e.label.Y,e.width,e.height,{fill:s},h),(h=a[e.typeC4Shape.text+"Font"]()).fontColor=s,e.techn&&""!==e.techn?.text?Et(a)(e.techn.text,l,e.x,e.y+e.techn.Y,e.width,e.height,{fill:s,"font-style":"italic"},h):e.type&&""!==e.type.text&&Et(a)(e.type.text,l,e.x,e.y+e.type.Y,e.width,e.height,{fill:s,"font-style":"italic"},h),e.descr&&""!==e.descr.text&&((h=a.personFont()).fontColor=s,Et(a)(e.descr.text,l,e.x,e.y+e.descr.Y,e.width,e.height,{fill:s},h)),e.height},"drawC4Shape"),ut=i(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),yt=i(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),gt=i(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),bt=i(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),_t=i(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),ft=i(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),mt=i(function(t,e){(t=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4)).append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),xt=i((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"getC4ShapeFont"),Et=(()=>{function t(t,e,a,i,r,s,o){n(e.append("text").attr("x",a+r/2).attr("y",i+s/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,a,i,r,s,o,l){var{fontSize:c,fontFamily:h,fontWeight:d}=l,p=t.split(u.lineBreakRegex);for(let t=0;t<p.length;t++){var y=t*c-c*(p.length-1)/2,g=e.append("text").attr("x",a+r/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",d).style("font-family",h);g.append("tspan").attr("dy",y).text(p[t]).attr("alignment-baseline","mathematical"),n(g,o)}}function a(t,a,i,r,s,o,l,c){(o=(a=a.append("switch")).append("foreignObject").attr("x",i).attr("y",r).attr("width",s).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%")).append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,a,i,r,s,0,l,c),n(o,l)}function n(t,e){for(var a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return i(t,"byText"),i(e,"byTspan"),i(a,"byFo"),i(n,"_setTextAttrs"),function(n){return"fo"===n.textPlacement?a:"old"===n.textPlacement?t:e}})(),St={drawRect:lt,drawBoundary:dt,drawC4Shape:pt,drawRels:ht,drawImage:ct,insertArrowHead:bt,insertArrowEnd:_t,insertArrowFilledHead:ft,insertArrowCrossHead:mt,insertDatabaseIcon:ut,insertComputerIcon:yt,insertClockIcon:gt},At=0,Ct=0,vt=4,wt=2,Ot=(S.yy=ot,{}),kt=class{static{i(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Tt(t.db.getConfig())}setData(t,e,a,n){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=n}updateVal(t,e,a,n){void 0===t[e]?t[e]=a:t[e]=n(a,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,a=e+t.width,n=this.nextData.starty+2*t.margin,i=n+t.height;(e>=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>vt)&&(e=this.nextData.startx+t.margin+Ot.nextLinePaddingX,n=this.nextData.stopy+2*t.margin,this.nextData.stopx=a=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=n+t.height,this.nextData.cnt=1),t.x=e,t.y=n,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Tt(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},Tt=i(function(t){r(Ot,t),t.fontFamily&&(Ot.personFontFamily=Ot.systemFontFamily=Ot.messageFontFamily=t.fontFamily),t.fontSize&&(Ot.personFontSize=Ot.systemFontSize=Ot.messageFontSize=t.fontSize),t.fontWeight&&(Ot.personFontWeight=Ot.systemFontWeight=Ot.messageFontWeight=t.fontWeight)},"setConf"),Rt=i((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),"c4ShapeFont"),Dt=i(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),Nt=i(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function Pt(t,e,a,n,i){if(!e[t].width)if(a)e[t].text=p(e[t].text,i,n),e[t].textLines=e[t].text.split(u.lineBreakRegex).length,e[t].width=i,e[t].height=y(e[t].text,n);else{var r,s;a=e[t].text.split(u.lineBreakRegex);for(s of(e[t].textLines=a.length,e[t].height=0,e[t].width=0,a))e[t].width=Math.max(g(s,n),e[t].width),r=y(s,n),e[t].height=e[t].height+r}}i(Pt,"calcC4ShapeTextWH");var Bt=i(function(t,e,a){e.x=a.data.startx,e.y=a.data.starty,e.width=a.data.stopx-a.data.startx,e.height=a.data.stopy-a.data.starty,e.label.y=Ot.c4ShapeMargin-35;a=e.wrap&&Ot.wrap;var n=Dt(Ot),i=(n.fontSize=n.fontSize+2,n.fontWeight="bold",g(e.label.text,n));Pt("label",e,a,n,i),St.drawBoundary(t,e,Ot)},"drawBoundary"),jt=i(function(t,e,a,n){let i=0;for(var r of n){i=0;var s=a[r];switch((r=Rt(Ot,s.typeC4Shape.text)).fontSize=r.fontSize-2,s.typeC4Shape.width=g("«"+s.typeC4Shape.text+"»",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=Ot.c4ShapePadding,i=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);r=s.wrap&&Ot.wrap;var o=Ot.width-2*Ot.c4ShapePadding,l=Rt(Ot,s.typeC4Shape.text);l.fontSize=l.fontSize+2,l.fontWeight="bold",Pt("label",s,r,l,o),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&""!==s.type.text?(s.type.text="["+s.type.text+"]",Pt("type",s,r,Rt(Ot,s.typeC4Shape.text),o),s.type.Y=i+5,i=s.type.Y+s.type.height):s.techn&&""!==s.techn.text&&(s.techn.text="["+s.techn.text+"]",Pt("techn",s,r,Rt(Ot,s.techn.text),o),s.techn.Y=i+5,i=s.techn.Y+s.techn.height);let n=i,c=s.label.width;s.descr&&""!==s.descr.text&&(Pt("descr",s,r,Rt(Ot,s.typeC4Shape.text),o),s.descr.Y=i+20,i=s.descr.Y+s.descr.height,c=Math.max(s.label.width,s.descr.width),n=i-5*s.descr.textLines),c+=Ot.c4ShapePadding,s.width=Math.max(s.width||Ot.width,c,Ot.width),s.height=Math.max(s.height||Ot.height,n,Ot.height),s.margin=s.margin||Ot.c4ShapeMargin,t.insert(s),St.drawC4Shape(e,s,Ot)}t.bumpLastMargin(Ot.c4ShapeMargin)},"drawC4ShapeArray"),It=class{static{i(this,"Point")}constructor(t,e){this.x=t,this.y=e}},Mt=i(function(t,e){var a=t.x,n=t.y,i=e.x,r=(e=e.y,a+t.width/2),s=n+t.height/2,o=Math.abs(a-i),l=Math.abs(n-e),c=l/o,h=t.height/t.width;let d=null;return n==e&&a<i?d=new It(a+t.width,s):n==e&&i<a?d=new It(a,s):a==i&&n<e?d=new It(r,n+t.height):a==i&&e<n&&(d=new It(r,n)),i<a&&n<e?d=c<=h?new It(a,s+c*t.width/2):new It(r-o/l*t.height/2,n+t.height):a<i&&n<e?d=c<=h?new It(a+t.width,s+c*t.width/2):new It(r+o/l*t.height/2,n+t.height):a<i&&e<n?d=c<=h?new It(a+t.width,s-c*t.width/2):new It(r+t.height/2*o/l,n):i<a&&e<n&&(d=c<=h?new It(a,s-t.width/2*c):new It(r-t.height/2*o/l,n)),d},"getIntersectPoint"),Lt=i(function(t,e){var a={x:0,y:0};return{startPoint:(a.x=e.x+e.width/2,a.y=e.y+e.height/2,Mt(t,a)),endPoint:t=(a.x=t.x+t.width/2,a.y=t.y+t.height/2,Mt(e,a))}},"getIntersectPoints"),Yt=i(function(t,e,a,n,i){let r=0;for(var s of e){r+=1;var o=s.wrap&&Ot.wrap,l=Nt(Ot);"C4Dynamic"===n.db.getC4Type()&&(s.label.text=r+": "+s.label.text);let t=g(s.label.text,l);Pt("label",s,o,l,t),s.techn&&""!==s.techn.text&&(t=g(s.techn.text,l),Pt("techn",s,o,l,t)),s.descr&&""!==s.descr.text&&(t=g(s.descr.text,l),Pt("descr",s,o,l,t)),o=a(s.from),l=a(s.to),o=Lt(o,l),s.startPoint=o.startPoint,s.endPoint=o.endPoint}St.drawRels(t,e,Ot,i)},"drawRels");function Ut(t,e,a,n,i){var r,s,o=new kt(i);for([r,s]of(o.data.widthLimit=a.data.widthLimit/Math.min(wt,n.length),n.entries())){let n=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=n,n=s.image.Y+s.image.height);var l,c=s.wrap&&Ot.wrap;c=((l=Dt(Ot)).fontSize=l.fontSize+2,l.fontWeight="bold",Pt("label",s,c,l,o.data.widthLimit),s.label.Y=n+8,n=s.label.Y+s.label.height,s.type&&""!==s.type.text&&(s.type.text="["+s.type.text+"]",Pt("type",s,c,l=Dt(Ot),o.data.widthLimit),s.type.Y=n+5,n=s.type.Y+s.type.height),s.descr&&""!==s.descr.text&&((l=Dt(Ot)).fontSize=l.fontSize-2,Pt("descr",s,c,l,o.data.widthLimit),s.descr.Y=n+20,n=s.descr.Y+s.descr.height),0==r||r%wt==0?(c=a.data.startx+Ot.diagramMarginX,l=a.data.stopy+Ot.diagramMarginY+n,o.setData(c,c,l,l)):(c=o.data.stopx!==o.data.startx?o.data.stopx+Ot.diagramMarginX:o.data.startx,l=o.data.starty,o.setData(c,c,l,l)),o.name=s.alias,i.db.getC4ShapeArray(s.alias));0<(c=(0<(l=i.db.getC4ShapeKeys(s.alias)).length&&jt(o,t,c,l),e=s.alias,i.db.getBoundaries(e))).length&&Ut(t,e,o,c,i),"global"!==s.alias&&Bt(t,s,o),a.data.stopy=Math.max(o.data.stopy+Ot.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(o.data.stopx+Ot.c4ShapeMargin,a.data.stopx),At=Math.max(At,a.data.stopx),Ct=Math.max(Ct,a.data.stopy)}}i(Ut,"drawInsideBoundary");var Ft=i(function(t,e,a,n){let i;Ot=d().c4,"sandbox"===(o=d().securityLevel)&&(i=_("#i"+e));var r=_("sandbox"===o?i.nodes()[0].contentDocument.body:"body"),s=n.db,o=(s=(n.db.setWrap(Ot.wrap),vt=s.getC4ShapeInRow(),wt=s.getC4BoundaryInRow(),f.debug("C:"+JSON.stringify(Ot,null,2)),"sandbox"===o?r.select(`[id="${e}"]`):_(`[id="${e}"]`)),r=((o=(St.insertComputerIcon(s,e),St.insertDatabaseIcon(s,e),St.insertClockIcon(s,e),new kt(n))).setData(Ot.diagramMarginX,Ot.diagramMarginX,Ot.diagramMarginY,Ot.diagramMarginY),o.data.widthLimit=screen.availWidth,At=Ot.diagramMarginX,Ct=Ot.diagramMarginY,n.db.getTitle()),e=(n=(Ut(s,"",o,n.db.getBoundaries(""),n),St.insertArrowHead(s,e),St.insertArrowEnd(s,e),St.insertArrowCrossHead(s,e),St.insertArrowFilledHead(s,e),Yt(s,n.db.getRels(),n.db.getC4Shape,n,e),o.data.stopx=At,o.data.stopy=Ct,o.data)).stopy-n.starty+2*Ot.diagramMarginY,n.stopx-n.startx+2*Ot.diagramMarginX);r&&s.append("text").text(r).attr("x",(n.stopx-n.startx)/2-4*Ot.diagramMarginX).attr("y",n.starty+Ot.diagramMarginY),m(s,e,o,Ot.useMaxWidth),r=r?60:0;s.attr("viewBox",n.startx-Ot.diagramMarginX+" -"+(Ot.diagramMarginY+r)+" "+o+" "+(e+r)),f.debug("models:",n)},"draw"),Xt={drawPersonOrSystemArray:jt,drawBoundary:Bt,setConf:Tt,draw:Ft},zt=i(t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`,"getStyles"),Wt={parser:A,db:ot,renderer:Xt,styles:zt,init:i(({c4:t,wrap:e})=>{Xt.setConf(t),ot.setWrap(e)},"init")};export{Wt as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,a;(e=self.document)&&!e.getElementById("livereloadscript")&&((a=e.createElement("script")).async=1,a.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",a.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(a));import{aj as r,ak as s}from"./mermaid.core-2d237a1e.js";var l=(e,a)=>r.lang.round(s.parse(e)[a]);export{l as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,a;(e=self.document)&&!e.getElementById("livereloadscript")&&((a=e.createElement("script")).async=1,a.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",a.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(a));import{aj as r,ak as s}from"./mermaid.core-70d5aead.js";var l=(e,a)=>r.lang.round(s.parse(e)[a]);export{l as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aj as a,ak as r}from"./mermaid.core-8797d6a9.js";var o=(o,s)=>a.lang.round(r.parse(o)[s]);export{o as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"./mermaid.core-8797d6a9.js";var i=class{constructor(t){this.init=t,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};export{i as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,t;(e=self.document)&&!e.getElementById("livereloadscript")&&((t=e.createElement("script")).async=1,t.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",t.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(t));import{_ as s}from"./mermaid.core-70d5aead.js";var i=class{constructor(e){this.init=e,this.records=this.init()}static{s(this,"ImperativeState")}reset(){this.records=this.init()}};export{i as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,t;(e=self.document)&&!e.getElementById("livereloadscript")&&((t=e.createElement("script")).async=1,t.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",t.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(t));import{_ as s}from"./mermaid.core-2d237a1e.js";var i=class{constructor(e){this.init=e,this.records=this.init()}static{s(this,"ImperativeState")}reset(){this.records=this.init()}};export{i as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t,j as a,V as r,m as e}from"./mermaid.core-8797d6a9.js";var s=t(((t,a)=>{var r=t.append("rect");if(r.attr("x",a.x),r.attr("y",a.y),r.attr("fill",a.fill),r.attr("stroke",a.stroke),r.attr("width",a.width),r.attr("height",a.height),a.name&&r.attr("name",a.name),a.rx&&r.attr("rx",a.rx),a.ry&&r.attr("ry",a.ry),void 0!==a.attrs)for(const t in a.attrs)r.attr(t,a.attrs[t]);return a.class&&r.attr("class",a.class),r}),"drawRect"),l=t(((t,a)=>{a={x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,stroke:a.stroke,class:"rect"},s(t,a).lower()}),"drawBackgroundRect"),i=t(((t,a)=>{var e=a.text.replace(r," "),s=((t=t.append("text")).attr("x",a.x),t.attr("y",a.y),t.attr("class","legend"),t.style("text-anchor",a.anchor),a.class&&t.attr("class",a.class),t.append("tspan"));return s.attr("x",a.x+2*a.textMargin),s.text(e),t}),"drawText"),o=t(((t,a,r,s)=>{(t=t.append("image")).attr("x",a),t.attr("y",r),a=e(s),t.attr("xlink:href",a)}),"drawImage"),x=t(((t,a,r,s)=>{(t=t.append("use")).attr("x",a),t.attr("y",r),a=e(s),t.attr("xlink:href","#"+a)}),"drawEmbeddedImage"),d=t((()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0})),"getNoteRect"),n=t((()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0})),"getTextObj"),y=t((()=>{let t=a(".mermaidTooltip");return t.empty()?a("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100"):t}),"createTooltip");export{n as a,l as b,y as c,s as d,x as e,o as f,d as g,i as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e;(t=self.document)&&!t.getElementById("livereloadscript")&&((e=t.createElement("script")).async=1,e.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",e.id="livereloadscript",t.getElementsByTagName("head")[0].appendChild(e));import{_ as a,j as r,V as s,m as l}from"./mermaid.core-70d5aead.js";var i=a((t,e)=>{var a=t.append("rect");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("width",e.width),a.attr("height",e.height),e.name&&a.attr("name",e.name),e.rx&&a.attr("rx",e.rx),e.ry&&a.attr("ry",e.ry),void 0!==e.attrs)for(var r in e.attrs)a.attr(r,e.attrs[r]);return e.class&&a.attr("class",e.class),a},"drawRect"),d=a((t,e)=>{e={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"},i(t,e).lower()},"drawBackgroundRect"),o=a((t,e)=>{var a=e.text.replace(s," "),r=((t=t.append("text")).attr("x",e.x),t.attr("y",e.y),t.attr("class","legend"),t.style("text-anchor",e.anchor),e.class&&t.attr("class",e.class),t.append("tspan"));return r.attr("x",e.x+2*e.textMargin),r.text(a),t},"drawText"),n=a((t,e,a,r)=>{(t=t.append("image")).attr("x",e),t.attr("y",a),e=l(r),t.attr("xlink:href",e)},"drawImage"),p=a((t,e,a,r)=>{(t=t.append("use")).attr("x",e),t.attr("y",a),e=l(r),t.attr("xlink:href","#"+e)},"drawEmbeddedImage"),x=a(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),y=a(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),c=a(()=>{let t=r(".mermaidTooltip");return t.empty()?r("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100"):t},"createTooltip");export{y as a,d as b,c,i as d,p as e,n as f,x as g,o as h};
|