@cardstack/boxel-cli 0.3.2-unstable.59 → 0.3.2-unstable.60

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.
Files changed (921) hide show
  1. package/api.ts +3 -3
  2. package/bundled-realms/base/command.gts +73 -0
  3. package/bundled-test-harness/assets/adapter-TgpmkD23.js +2 -0
  4. package/bundled-test-harness/assets/add-field-to-card-definition-command-test-BVVD6_Wq.js +111 -0
  5. package/bundled-test-harness/assets/add-workspace-test-BvvYJ2Fk.js +71 -0
  6. package/bundled-test-harness/assets/ai-assistant-Ba_RBqf6.js +129 -0
  7. package/bundled-test-harness/assets/ai-assistant-panel-service-test-DK87n1hh.js +95 -0
  8. package/bundled-test-harness/assets/ai-assistant-test-CZATBlJS.js +2137 -0
  9. package/bundled-test-harness/assets/ai-function-generation-test-e58MHziu.js +996 -0
  10. package/bundled-test-harness/assets/ai-module-creation-test-CEieL3Fa.js +150 -0
  11. package/bundled-test-harness/assets/aibot-message-DhTbAqNk.js +1185 -0
  12. package/bundled-test-harness/assets/amd-transpile-test-CSk5COu7.js +425 -0
  13. package/bundled-test-harness/assets/app-Btfy4HWI.js +21464 -0
  14. package/bundled-test-harness/assets/apply-boxel-formatting-test-BHTP9NBp.js +134 -0
  15. package/bundled-test-harness/assets/apply-markdown-edit-test-BETCndeK.js +230 -0
  16. package/bundled-test-harness/assets/apply-search-replace-block-test-KNolar0-.js +630 -0
  17. package/bundled-test-harness/assets/arc-CA8yZ0zo.js +199 -0
  18. package/bundled-test-harness/assets/architecture-7EHR7CIX-C5JFMGdb.js +3 -0
  19. package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-CmVPjKgm.js +7400 -0
  20. package/bundled-test-harness/assets/auth-error-guard-test-D0rKESg_.js +30 -0
  21. package/bundled-test-harness/assets/auth-service-worker-test-DGg_vbKo.js +538 -0
  22. package/bundled-test-harness/assets/authed-fetch-test-CHF3eh_H.js +75 -0
  23. package/bundled-test-harness/assets/avif-image-def-test-p9tiyh4_.js +186 -0
  24. package/bundled-test-harness/assets/base-realm-Chjzrp6m.js +2 -0
  25. package/bundled-test-harness/assets/base-realm-DpSTsZxD.js +140 -0
  26. package/bundled-test-harness/assets/basic-test-D7qEz4hw.js +128 -0
  27. package/bundled-test-harness/assets/bfm-card-references-test-D-m1YnL8.js +577 -0
  28. package/bundled-test-harness/assets/binary-upload-dedupe-test-8RKK73EG.js +308 -0
  29. package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-BdVFTa2C.js +4355 -0
  30. package/bundled-test-harness/assets/bot-registration-test-9zYny2wR.js +99 -0
  31. package/bundled-test-harness/assets/box-test-0T92xi3A.js +51 -0
  32. package/bundled-test-harness/assets/brand-guide-attachments-test-5ZtPn4cC.js +87 -0
  33. package/bundled-test-harness/assets/brand-guide-custom-css-test-CKKSgKyp.js +135 -0
  34. package/bundled-test-harness/assets/brand-logo-mark-field-test-nlNNQ3rw.js +87 -0
  35. package/bundled-test-harness/assets/broken-link-template-test-BGIExVof.js +345 -0
  36. package/bundled-test-harness/assets/browser-index-BaR-gTqG.js +3 -0
  37. package/bundled-test-harness/assets/browser-index-G4NKYBAj.js +8802 -0
  38. package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-DyugX7zz.js +3764 -0
  39. package/bundled-test-harness/assets/cached-fetch-test-MtqvDphJ.js +93 -0
  40. package/bundled-test-harness/assets/can-read-realm-test-BZmwIOqS.js +58 -0
  41. package/bundled-test-harness/assets/cancel-indexing-job-test-BsQtQbDu.js +71 -0
  42. package/bundled-test-harness/assets/card-api-test-BxQ8f0-c.js +196 -0
  43. package/bundled-test-harness/assets/card-basics-test-B-uBZ8o4.js +4895 -0
  44. package/bundled-test-harness/assets/card-catalog-test-YmwmyIKf.js +377 -0
  45. package/bundled-test-harness/assets/card-copy-test-LoqdH1CQ.js +777 -0
  46. package/bundled-test-harness/assets/card-def-field-def-relationships-test-DvtBA1jv.js +560 -0
  47. package/bundled-test-harness/assets/card-def-menu-items-test-DHnd0LuM.js +182 -0
  48. package/bundled-test-harness/assets/card-delete-test-vKF0Jf1X.js +412 -0
  49. package/bundled-test-harness/assets/card-directory-name-test-CbCuPwSz.js +71 -0
  50. package/bundled-test-harness/assets/card-playground-test-CRIP3b5-.js +1497 -0
  51. package/bundled-test-harness/assets/card-prerender-ClYlSOBU.js +12661 -0
  52. package/bundled-test-harness/assets/card-search-adorn-test-Mggk5ZgY.js +128 -0
  53. package/bundled-test-harness/assets/card-search-query-builder-test-Cdl12s50.js +88 -0
  54. package/bundled-test-harness/assets/card-search-selection-menu-test-CtuCCLoB.js +108 -0
  55. package/bundled-test-harness/assets/channel-BKUMepxs.js +8 -0
  56. package/bundled-test-harness/assets/check-correctness-test-DBh8DT_f.js +252 -0
  57. package/bundled-test-harness/assets/chunk-2J33WTMH-ClrRoNQU.js +31 -0
  58. package/bundled-test-harness/assets/chunk-3OPIFGDE-g_0Oh8jN.js +5548 -0
  59. package/bundled-test-harness/assets/chunk-4BX2VUAB-D2LCc7Y9.js +11 -0
  60. package/bundled-test-harness/assets/chunk-4EGX6M5U-D8vRS5IG.js +44 -0
  61. package/bundled-test-harness/assets/chunk-55IACEB6-C5j4VAmb.js +10 -0
  62. package/bundled-test-harness/assets/chunk-5DO6E6H7-CPb3jsP0.js +27 -0
  63. package/bundled-test-harness/assets/chunk-5ZQYHXKU-BlVb7vgG.js +1767 -0
  64. package/bundled-test-harness/assets/chunk-727SXJPM-C_NVCDMC.js +3877 -0
  65. package/bundled-test-harness/assets/chunk-AQP2D5EJ-CpwrMix_.js +2622 -0
  66. package/bundled-test-harness/assets/chunk-BR22UD5L-AF0NWdjT.js +85 -0
  67. package/bundled-test-harness/assets/chunk-BSJP7CBP-Dgun5vYb.js +114 -0
  68. package/bundled-test-harness/assets/chunk-CSCIHK7Q-D7nFiAZ-.js +6144 -0
  69. package/bundled-test-harness/assets/chunk-FHYWG6QK-2nuXS9PL.js +27 -0
  70. package/bundled-test-harness/assets/chunk-FMBD7UC4-O-Y8VK1S.js +20 -0
  71. package/bundled-test-harness/assets/chunk-KSCS5N6A-Du5-DprU.js +871 -0
  72. package/bundled-test-harness/assets/chunk-L5ZTLDWV-C2lDtkix.js +43 -0
  73. package/bundled-test-harness/assets/chunk-LZXEDZCA-qAMsMZkF.js +65 -0
  74. package/bundled-test-harness/assets/chunk-MPE355IW-DcT_60Oq.js +27 -0
  75. package/bundled-test-harness/assets/chunk-MZUSXYTE-BsH_YmnC.js +36 -0
  76. package/bundled-test-harness/assets/chunk-N66VUXT2-DMyMHgoS.js +70 -0
  77. package/bundled-test-harness/assets/chunk-ND2GUHAM-DO1Znn8O.js +93 -0
  78. package/bundled-test-harness/assets/chunk-NZK2D7GU-B1YWBxHm.js +89 -0
  79. package/bundled-test-harness/assets/chunk-O5CBEL6O-CZVSBsRq.js +2395 -0
  80. package/bundled-test-harness/assets/chunk-PUPMXCY4-DzOK-Vbt.js +27 -0
  81. package/bundled-test-harness/assets/chunk-QZHKN3VN-DJFnRn99.js +20 -0
  82. package/bundled-test-harness/assets/chunk-UIBZB4QT-5KIxBxjk.js +27 -0
  83. package/bundled-test-harness/assets/chunk-WCWK7LTN-BsQwhliq.js +36 -0
  84. package/bundled-test-harness/assets/chunk-WU5MYG2G-DUVb5MAo.js +12 -0
  85. package/bundled-test-harness/assets/chunk-XPW4576I-DLaJYAOU.js +2341 -0
  86. package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-DjP2uozG.js +31 -0
  87. package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-Dt6ps5uz.js +31 -0
  88. package/bundled-test-harness/assets/code-equality-assertion-BBezFT13.js +474 -0
  89. package/bundled-test-harness/assets/code-patches-test-DzoQGARM.js +1128 -0
  90. package/bundled-test-harness/assets/code-patching-test-D8r-pJ5w.js +114 -0
  91. package/bundled-test-harness/assets/code-ref-test-DU3HChNz.js +138 -0
  92. package/bundled-test-harness/assets/code-semantics-service-test-DArUotKy.js +65 -0
  93. package/bundled-test-harness/assets/code-submode-test-h5wWKsz2.js +1762 -0
  94. package/bundled-test-harness/assets/codeblocks-test-FbuwTy5v.js +492 -0
  95. package/bundled-test-harness/assets/codemirror-context-DVlC9C78.js +2 -0
  96. package/bundled-test-harness/assets/codemirror-editor-test-JDT9uwqM.js +1176 -0
  97. package/bundled-test-harness/assets/color-field-test-BssRlQAX.js +213 -0
  98. package/bundled-test-harness/assets/command-definitions-test-J21kOxBs.js +72 -0
  99. package/bundled-test-harness/assets/commands-DAo0DgCX.js +1379 -0
  100. package/bundled-test-harness/assets/commands-calling-test-C3deVvv_.js +200 -0
  101. package/bundled-test-harness/assets/commands-test--0zViqs2.js +1041 -0
  102. package/bundled-test-harness/assets/commands-test-BwNn2npL.js +1145 -0
  103. package/bundled-test-harness/assets/computed-test-BD_KrZmc.js +882 -0
  104. package/bundled-test-harness/assets/container-C8gu0I0Q.js +14605 -0
  105. package/bundled-test-harness/assets/convert-to-class-name-test-CX21VRzM.js +17 -0
  106. package/bundled-test-harness/assets/copy-and-edit-test-BUy_o8XJ.js +291 -0
  107. package/bundled-test-harness/assets/copy-card-test-LWbugEPe.js +156 -0
  108. package/bundled-test-harness/assets/copy-file-to-realm-test-BS25EUGV.js +99 -0
  109. package/bundled-test-harness/assets/copy-source-test-Dh33cqM8.js +56 -0
  110. package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-CjAFDdpS.js +4275 -0
  111. package/bundled-test-harness/assets/create-file-test-DOc3YYij.js +963 -0
  112. package/bundled-test-harness/assets/create-file-test-DgUya7-i.js +397 -0
  113. package/bundled-test-harness/assets/create-listing-modal-test-DZxZBYS7.js +194 -0
  114. package/bundled-test-harness/assets/create-listing-pr-request-Aw0ms76l.js +64 -0
  115. package/bundled-test-harness/assets/create-listing-pr-request-test-CFvqkgky.js +117 -0
  116. package/bundled-test-harness/assets/create-spec-test-BTRt8oe8.js +239 -0
  117. package/bundled-test-harness/assets/csv-file-def-test-BVffg8wL.js +101 -0
  118. package/bundled-test-harness/assets/dagre-BM42HDAG-GoRrN65x.js +606 -0
  119. package/bundled-test-harness/assets/dagre-ByxOOmYM.js +4195 -0
  120. package/bundled-test-harness/assets/date-time-fields-test-BEcfCqgB.js +322 -0
  121. package/bundled-test-harness/assets/debug-message-test-CAxbe6x2.js +119 -0
  122. package/bundled-test-harness/assets/diagram-2AECGRRQ-B6-pvp9H.js +279 -0
  123. package/bundled-test-harness/assets/diagram-5GNKFQAL-C9M7hXIc.js +142 -0
  124. package/bundled-test-harness/assets/diagram-KO2AKTUF-BNJvCLGK.js +551 -0
  125. package/bundled-test-harness/assets/diagram-LMA3HP47-hlJyTtqP.js +184 -0
  126. package/bundled-test-harness/assets/diagram-OG6HWLK6-BvPoB3IH.js +857 -0
  127. package/bundled-test-harness/assets/diffing-test-De9Ev_Fr.js +210 -0
  128. package/bundled-test-harness/assets/dist-BsEojs3T.js +232 -0
  129. package/bundled-test-harness/assets/dist-CY3T64Hs.js +105 -0
  130. package/bundled-test-harness/assets/dist-q2xz8RMj.js +2 -0
  131. package/bundled-test-harness/assets/editor-test-DOI_TvWQ.js +551 -0
  132. package/bundled-test-harness/assets/editor.main-CpuM6HrX.js +43566 -0
  133. package/bundled-test-harness/assets/editor.main-DkMgS1qm.js +3 -0
  134. package/bundled-test-harness/assets/email-field-test-t-80Z94b.js +74 -0
  135. package/bundled-test-harness/assets/enum-field-test-DVp-2pip.js +909 -0
  136. package/bundled-test-harness/assets/erDiagram-TEJ5UH35-CYniRkua.js +2041 -0
  137. package/bundled-test-harness/assets/error-display-test-IuRxKyLz.js +343 -0
  138. package/bundled-test-harness/assets/evaluate-module-test-DdnfbFp-.js +66 -0
  139. package/bundled-test-harness/assets/eventmodeling-FCH6USID-BO089-Cs.js +3 -0
  140. package/bundled-test-harness/assets/execute-atomic-operations-test-CgbvrBlu.js +75 -0
  141. package/bundled-test-harness/assets/externals-5atxeNU4.js +5533 -0
  142. package/bundled-test-harness/assets/extract-css-variables-test-Cii-CYfc.js +169 -0
  143. package/bundled-test-harness/assets/fallback-banner-test-CUUd-Wuu.js +227 -0
  144. package/bundled-test-harness/assets/fallback-banner-test-D4NWyahM.js +53 -0
  145. package/bundled-test-harness/assets/fallback-models-test-2MJ1jAs8.js +163 -0
  146. package/bundled-test-harness/assets/fetch-card-json-test-Cruqsq6S.js +63 -0
  147. package/bundled-test-harness/assets/fetcher-test-CkHlbTzz.js +85 -0
  148. package/bundled-test-harness/assets/field-configuration-test-CqwsGNib.js +535 -0
  149. package/bundled-test-harness/assets/field-markdown-domain-test-DPjz8i4Y.js +615 -0
  150. package/bundled-test-harness/assets/field-markdown-primitives-test-Dw07UtT7.js +362 -0
  151. package/bundled-test-harness/assets/field-markdown-specialized-test-C-t34PAw.js +527 -0
  152. package/bundled-test-harness/assets/field-path-parser-test-BeNjacPu.js +387 -0
  153. package/bundled-test-harness/assets/field-playground-test-BILTGxqr.js +902 -0
  154. package/bundled-test-harness/assets/field-support-predicates-test-Df24w0Wa.js +170 -0
  155. package/bundled-test-harness/assets/field-test-helpers-P22hxBNz.js +45 -0
  156. package/bundled-test-harness/assets/file-attachment-test-Cjg4NBeM.js +635 -0
  157. package/bundled-test-harness/assets/file-chooser-test-Cl0XujPT.js +439 -0
  158. package/bundled-test-harness/assets/file-def-live-reload-test-D4Obzi12.js +50 -0
  159. package/bundled-test-harness/assets/file-def-manager-DUgR-gjs.js +470 -0
  160. package/bundled-test-harness/assets/file-def-manager-canonicalize-test-D_LWVsvz.js +451 -0
  161. package/bundled-test-harness/assets/file-def-menu-items-test-xvsUTOK4.js +114 -0
  162. package/bundled-test-harness/assets/file-def-navigation-test-DxPceB7E.js +109 -0
  163. package/bundled-test-harness/assets/file-def-serialization-test-CpwbDb8p.js +87 -0
  164. package/bundled-test-harness/assets/file-def-test-CEnKcvW9.js +219 -0
  165. package/bundled-test-harness/assets/file-tree-test-DE2aH6iq.js +773 -0
  166. package/bundled-test-harness/assets/flac-audio-def-test-BCg7LnR6.js +138 -0
  167. package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-Xv8-LIxQ.js +4883 -0
  168. package/bundled-test-harness/assets/formatted-aibot-message-test-CsxFn62P.js +366 -0
  169. package/bundled-test-harness/assets/formatted-user-message-test-DjZc8qnA.js +43 -0
  170. package/bundled-test-harness/assets/freestyle-test-QEZaZCNJ.js +17 -0
  171. package/bundled-test-harness/assets/full-reindex-realm-test-C_c2OTTD.js +103 -0
  172. package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-DmvkzS5w.js +4060 -0
  173. package/bundled-test-harness/assets/garbage-collection-test-BVuvfidI.js +373 -0
  174. package/bundled-test-harness/assets/general-test-Ydis4jEq.js +926 -0
  175. package/bundled-test-harness/assets/generate-css-variables-test-CZCmgTAO.js +88 -0
  176. package/bundled-test-harness/assets/generate-example-cards-one-shot-test-x_szhkSN.js +67 -0
  177. package/bundled-test-harness/assets/get-available-realm-identifiers-test-DvRnwCHR.js +49 -0
  178. package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-46TE-XA0.js +49 -0
  179. package/bundled-test-harness/assets/get-default-writable-realm-test-DaAkxTNh.js +56 -0
  180. package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-9XEGHVOV.js +55 -0
  181. package/bundled-test-harness/assets/get-relationship-membership-state-test-BY4gk5JZ.js +1306 -0
  182. package/bundled-test-harness/assets/get-type-refs-from-filter-test-BynlX0JE.js +136 -0
  183. package/bundled-test-harness/assets/get-user-system-card-test-D98Xxn1k.js +52 -0
  184. package/bundled-test-harness/assets/gif-image-def-test-FwKGFGWw.js +161 -0
  185. package/bundled-test-harness/assets/gitGraph-WXDBUCRP-Bmn0Z_Xi.js +3 -0
  186. package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-BAo0G82W.js +1150 -0
  187. package/bundled-test-harness/assets/gts-file-def-test-ivEk8Muv.js +99 -0
  188. package/bundled-test-harness/assets/head-format-preview-test-CNhvk724.js +156 -0
  189. package/bundled-test-harness/assets/helpers-BH4Yfo_2.js +5 -0
  190. package/bundled-test-harness/assets/host-mode-test-BRNndb2h.js +391 -0
  191. package/bundled-test-harness/assets/host-submode-test-DHd0x-6x.js +904 -0
  192. package/bundled-test-harness/assets/index-query-engine-test-7Fzc09fG.js +2548 -0
  193. package/bundled-test-harness/assets/index-writer-test-D3cL2q2N.js +1842 -0
  194. package/bundled-test-harness/assets/indexeddb-crypto-store-C09Shau-.js +49434 -0
  195. package/bundled-test-harness/assets/info-J43DQDTF-Dz5b1Xgc.js +3 -0
  196. package/bundled-test-harness/assets/infoDiagram-5YYISTIA-Dl8XvIfi.js +23 -0
  197. package/bundled-test-harness/assets/inspector-test-CVZVQdIJ.js +1776 -0
  198. package/bundled-test-harness/assets/instance-filter-matcher-test-C-4z6qUt.js +564 -0
  199. package/bundled-test-harness/assets/instantiate-card-test-eQ22Vt_m.js +104 -0
  200. package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-hXPsRPMU.js +497 -0
  201. package/bundled-test-harness/assets/interact-submode-setup-D55IIVc5.js +558 -0
  202. package/bundled-test-harness/assets/interact-submode-test-BwrtFe2m.js +725 -0
  203. package/bundled-test-harness/assets/invalidate-realm-identifiers-test-BMk7yd-D.js +101 -0
  204. package/bundled-test-harness/assets/invite-user-to-room-test-B5B0umJQ.js +67 -0
  205. package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-BrO7NAng.js +1009 -0
  206. package/bundled-test-harness/assets/isolated-render-test-DX1wdHoS.js +51 -0
  207. package/bundled-test-harness/assets/item-button-QkVr-FW0.js +203 -0
  208. package/bundled-test-harness/assets/javascript-BWNQhcCY.js +75 -0
  209. package/bundled-test-harness/assets/job-priority-header-test-CuBZloLK.js +81 -0
  210. package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-B7BT66v0.js +1256 -0
  211. package/bundled-test-harness/assets/jpg-image-def-test-DEx462nY.js +430 -0
  212. package/bundled-test-harness/assets/json-file-def-test-Cray6ly6.js +92 -0
  213. package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C0E5Vmr_.js +1284 -0
  214. package/bundled-test-harness/assets/last-modified-date-test-BzE25NOB.js +18 -0
  215. package/bundled-test-harness/assets/limited-set-test-NwGNoXKc.js +123 -0
  216. package/bundled-test-harness/assets/line-BbGOk93s.js +55 -0
  217. package/bundled-test-harness/assets/linear-CHTo-YQl.js +417 -0
  218. package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-CZdgRM1b.js +315 -0
  219. package/bundled-test-harness/assets/linksto-error-sentinel-test-DhsHO7Xs.js +236 -0
  220. package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-mt-RrRta.js +303 -0
  221. package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CdGUXZsi.js +301 -0
  222. package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-DOJ_6Gwf.js +258 -0
  223. package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-BZC-gslF.js +194 -0
  224. package/bundled-test-harness/assets/live-prerendered-search-BSkwf5AH.js +639 -0
  225. package/bundled-test-harness/assets/live-test-DTfxZnsy.js +100 -0
  226. package/bundled-test-harness/assets/live-test-WOMYpc1I.js +2 -0
  227. package/bundled-test-harness/assets/loader-icon-error-test-F_ukQytn.js +62 -0
  228. package/bundled-test-harness/assets/loader-parallel-prefetch-test-DpNaFnhc.js +257 -0
  229. package/bundled-test-harness/assets/loader-retry-test-EQ2X0bFS.js +173 -0
  230. package/bundled-test-harness/assets/loader-test-BYkWAwc4.js +245 -0
  231. package/bundled-test-harness/assets/loading-test-jfWH_OpH.js +63 -0
  232. package/bundled-test-harness/assets/login-error-text-test-Cldr1X6h.js +51 -0
  233. package/bundled-test-harness/assets/m4a-audio-def-test-BQ1WKApD.js +185 -0
  234. package/bundled-test-harness/assets/main-ByAsLO_g.js +5 -0
  235. package/bundled-test-harness/assets/markdown-fallback-test-dtTaGP1s.js +316 -0
  236. package/bundled-test-harness/assets/markdown-file-def-test-shW9Xxd1.js +286 -0
  237. package/bundled-test-harness/assets/markdown-helpers-test-B6H7p4ay.js +183 -0
  238. package/bundled-test-harness/assets/markdown-highlighting-test-ZIrFNHRe.js +244 -0
  239. package/bundled-test-harness/assets/markdown-preview-KII3nJ2M.js +69 -0
  240. package/bundled-test-harness/assets/markdown-preview-test-De-IaUbK.js +237 -0
  241. package/bundled-test-harness/assets/marked-sync-CGSehq4u.js +2 -0
  242. package/bundled-test-harness/assets/marked-sync-DenC7QgC.js +2561 -0
  243. package/bundled-test-harness/assets/marked-sync-test-jZBr20Hq.js +146 -0
  244. package/bundled-test-harness/assets/matrix-service-sliding-sync-test-Ax4kyAMt.js +33 -0
  245. package/bundled-test-harness/assets/mermaid-parser.core-B_3tzKUl.js +114 -0
  246. package/bundled-test-harness/assets/mermaid.core-D2hqA7Hq.js +1700 -0
  247. package/bundled-test-harness/assets/message-service-subscription-test-B42KnJ91.js +113 -0
  248. package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-IZz7Qpd0.js +1347 -0
  249. package/bundled-test-harness/assets/mock-matrix-BhFWlMMr.js +14292 -0
  250. package/bundled-test-harness/assets/mock-matrix-CrtMntcN.js +2 -0
  251. package/bundled-test-harness/assets/module-transpile-cache-test-BtWN4OiM.js +66 -0
  252. package/bundled-test-harness/assets/monaco.contribution-B1hOUP3w.js +2 -0
  253. package/bundled-test-harness/assets/monaco.contribution-DhNsYtZe.js +2 -0
  254. package/bundled-test-harness/assets/monaco.contribution-DvJDImx2.js +103 -0
  255. package/bundled-test-harness/assets/monaco.contribution-yXcOyzue.js +243 -0
  256. package/bundled-test-harness/assets/mp3-audio-def-test-D365TuA7.js +129 -0
  257. package/bundled-test-harness/assets/mutex-test-DY09HLvv.js +71 -0
  258. package/bundled-test-harness/assets/number-field-test-wYaQjnzA.js +153 -0
  259. package/bundled-test-harness/assets/ogg-audio-def-test-Dl01PP31.js +191 -0
  260. package/bundled-test-harness/assets/open-create-listing-modal-test-D8C2PUFv.js +117 -0
  261. package/bundled-test-harness/assets/open-workspace-test-DN2n8IkC.js +48 -0
  262. package/bundled-test-harness/assets/operator-mode-acceptance-test-B_hzJZo4.js +1044 -0
  263. package/bundled-test-harness/assets/operator-mode-card-catalog-test-Hrrnkdt9.js +989 -0
  264. package/bundled-test-harness/assets/operator-mode-links-test-DC6sc9TZ.js +797 -0
  265. package/bundled-test-harness/assets/operator-mode-state-service-test-Aqz9_v0U.js +122 -0
  266. package/bundled-test-harness/assets/operator-mode-test-CLgpZGEM.js +617 -0
  267. package/bundled-test-harness/assets/operator-mode-ui-test-CDRrORfC.js +985 -0
  268. package/bundled-test-harness/assets/ordinal-BIRuJQBH.js +85 -0
  269. package/bundled-test-harness/assets/overlay-menu-items-test-of24KuXp.js +316 -0
  270. package/bundled-test-harness/assets/packet-YPE3B663-hs92geQG.js +3 -0
  271. package/bundled-test-harness/assets/panel-rIdTMDfK.js +3371 -0
  272. package/bundled-test-harness/assets/past-sessions-test-ZKr4ACF0.js +321 -0
  273. package/bundled-test-harness/assets/patch-code-test-BZa-Itrt.js +203 -0
  274. package/bundled-test-harness/assets/patch-fields-test-BkaHs-zo.js +992 -0
  275. package/bundled-test-harness/assets/patch-instance-test-CRMgg52p.js +287 -0
  276. package/bundled-test-harness/assets/persist-module-inspector-view-test-CqNy2RXR.js +62 -0
  277. package/bundled-test-harness/assets/phone-number-field-test-CV6gntON.js +72 -0
  278. package/bundled-test-harness/assets/pie-LRSECV5Y-DcM5pWE3.js +3 -0
  279. package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CtO8RHpU.js +253 -0
  280. package/bundled-test-harness/assets/plan-install-test-lfBTuWXU.js +417 -0
  281. package/bundled-test-harness/assets/playground-VscW9KdT.js +57 -0
  282. package/bundled-test-harness/assets/png-image-def-test-CRspcIHP.js +222 -0
  283. package/bundled-test-harness/assets/prerender-file-extract-test-D3SpxfMI.js +176 -0
  284. package/bundled-test-harness/assets/prerender-html-test-WWptGXJ0.js +615 -0
  285. package/bundled-test-harness/assets/prerender-meta-test-DwQEGN6j.js +388 -0
  286. package/bundled-test-harness/assets/prerender-module-test-BM1AOwRF.js +195 -0
  287. package/bundled-test-harness/assets/prerendered-card-search-test-BVJ8IHLe.js +708 -0
  288. package/bundled-test-harness/assets/preview-format-test-DDpiXDN_.js +103 -0
  289. package/bundled-test-harness/assets/preview-test-D2UV1C5D.js +455 -0
  290. package/bundled-test-harness/assets/published-realm-url-DUIZzAJ5.js +52 -0
  291. package/bundled-test-harness/assets/published-realm-url-test-CIgSf4Ub.js +137 -0
  292. package/bundled-test-harness/assets/qs-test-Bi679H5w.js +36 -0
  293. package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-GOTAKsCo.js +2324 -0
  294. package/bundled-test-harness/assets/query-field-barrier-test-BlOuVxdS.js +118 -0
  295. package/bundled-test-harness/assets/query-field-error-sentinel-test-BsB76iUQ.js +202 -0
  296. package/bundled-test-harness/assets/query-field-normalization-test-B2YodJCr.js +271 -0
  297. package/bundled-test-harness/assets/query-field-schema-test-CQhJASFx.js +231 -0
  298. package/bundled-test-harness/assets/query-fields-test-CaZ19leM.js +535 -0
  299. package/bundled-test-harness/assets/queue-test-DrSip6mJ.js +216 -0
  300. package/bundled-test-harness/assets/radar-GUYGQ44K-BkAe1nkp.js +3 -0
  301. package/bundled-test-harness/assets/read-card-for-ai-assistant-test-D8yB-OL9.js +91 -0
  302. package/bundled-test-harness/assets/read-file-for-ai-assistant-test-K3M0-lBD.js +45 -0
  303. package/bundled-test-harness/assets/read-source-test-CKlb0ORb.js +67 -0
  304. package/bundled-test-harness/assets/read-text-file-test-CJdasDDU.js +124 -0
  305. package/bundled-test-harness/assets/realm-DhUCLR5r.js +884 -0
  306. package/bundled-test-harness/assets/realm-field-test-kFgxphDI.js +101 -0
  307. package/bundled-test-harness/assets/realm-index-card-id-test-DAnMAqw4.js +18 -0
  308. package/bundled-test-harness/assets/realm-indexing-test-BQkX-Dat.js +4018 -0
  309. package/bundled-test-harness/assets/realm-paths-test-CmEi9rzu.js +33 -0
  310. package/bundled-test-harness/assets/realm-querying-test-eq3qSXLu.js +1062 -0
  311. package/bundled-test-harness/assets/realm-test-DLQAtdMt.js +2409 -0
  312. package/bundled-test-harness/assets/reasoning-test-CwTfyDlj.js +234 -0
  313. package/bundled-test-harness/assets/recent-files-test-MVIGLp8S.js +449 -0
  314. package/bundled-test-harness/assets/reindex-realm-test-BwLgJeB3.js +119 -0
  315. package/bundled-test-harness/assets/relationship-loading-state-test-B4Ca43yD.js +289 -0
  316. package/bundled-test-harness/assets/render-component-BKEihV4U.js +2 -0
  317. package/bundled-test-harness/assets/render-error-test-DWD6tfNe.js +22 -0
  318. package/bundled-test-harness/assets/render-service-test-BjuoVrUK.js +87 -0
  319. package/bundled-test-harness/assets/render-timer-stub-test-BgUY5u3X.js +84 -0
  320. package/bundled-test-harness/assets/rendered-markdown-DOP-s6fW.js +211 -0
  321. package/bundled-test-harness/assets/rendered-markdown-test-CD02UYwA.js +360 -0
  322. package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-DJIy7eR9.js +2550 -0
  323. package/bundled-test-harness/assets/rich-markdown-field-test-BJeQx1tL.js +806 -0
  324. package/bundled-test-harness/assets/room-message-test-CjD7FlPD.js +171 -0
  325. package/bundled-test-harness/assets/rust-crypto-GS0FFZ7H.js +16141 -0
  326. package/bundled-test-harness/assets/sanitize-module-list-test-gi0pcqSy.js +68 -0
  327. package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-wBsbt1Mr.js +1357 -0
  328. package/bundled-test-harness/assets/schema-editor-test-BSqu8W3e.js +784 -0
  329. package/bundled-test-harness/assets/schema-generation-test-DVFuSsLl.js +28 -0
  330. package/bundled-test-harness/assets/scrolling-test-CpzkRiBS.js +292 -0
  331. package/bundled-test-harness/assets/search-and-choose-test-DVWX4XRb.js +156 -0
  332. package/bundled-test-harness/assets/search-cache-key-test-BMnYM4a5.js +79 -0
  333. package/bundled-test-harness/assets/search-command-test-kEfT0AO7.js +135 -0
  334. package/bundled-test-harness/assets/search-correlation-id-test-D08FtVUZ.js +101 -0
  335. package/bundled-test-harness/assets/search-data-test-CTrBEc1m.js +243 -0
  336. package/bundled-test-harness/assets/search-google-images-test-UnKG8qCp.js +168 -0
  337. package/bundled-test-harness/assets/search-in-flight-key-test-9Va-JXFz.js +79 -0
  338. package/bundled-test-harness/assets/search-test-COlO2lZi.js +847 -0
  339. package/bundled-test-harness/assets/send-ai-assistant-message-test-BPjOjt2R.js +52 -0
  340. package/bundled-test-harness/assets/send-bot-trigger-event-test-BB4lHbB_.js +56 -0
  341. package/bundled-test-harness/assets/send-request-via-proxy-test-U8frmHZA.js +333 -0
  342. package/bundled-test-harness/assets/sending-test-DjEzksEX.js +317 -0
  343. package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-QAEjhoay.js +5551 -0
  344. package/bundled-test-harness/assets/serialization-test-DHdLriC8.js +8283 -0
  345. package/bundled-test-harness/assets/set-user-system-card-test-C8I1lDBh.js +59 -0
  346. package/bundled-test-harness/assets/setup-BkuybBki.js +769 -0
  347. package/bundled-test-harness/assets/setup-gxkWJKID.js +2 -0
  348. package/bundled-test-harness/assets/show-card-test-DHKQ6AI4.js +362 -0
  349. package/bundled-test-harness/assets/skills-test-DlMgZrPV.js +568 -0
  350. package/bundled-test-harness/assets/spec-test-s9Zj7x2E.js +1012 -0
  351. package/bundled-test-harness/assets/stateDiagram-AJRCARHV-nEhf3efZ.js +363 -0
  352. package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-tZz_3w-7.js +29 -0
  353. package/bundled-test-harness/assets/store-add-test-D44FWRl3.js +52 -0
  354. package/bundled-test-harness/assets/store-test-TTmNBs5v.js +1562 -0
  355. package/bundled-test-harness/assets/summarize-session-test-DHAuNb5K.js +169 -0
  356. package/bundled-test-harness/assets/svg-image-def-test-C2_GGzR6.js +164 -0
  357. package/bundled-test-harness/assets/switch-submode-test-CfGaoxVe.js +168 -0
  358. package/bundled-test-harness/assets/test-realm-service-worker-C21o7yvW.js +73 -0
  359. package/bundled-test-harness/assets/tests-BSt6h9iC.js +2771 -0
  360. package/bundled-test-harness/assets/text-file-def-test-CR4QO7e_.js +93 -0
  361. package/bundled-test-harness/assets/text-input-validator-test-DYS3mFj9.js +155 -0
  362. package/bundled-test-harness/assets/text-suggestion-test-GUxJ7WtF.js +339 -0
  363. package/bundled-test-harness/assets/theme-card-test-Ba2KqFB8.js +573 -0
  364. package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-BQYyTIei.js +1545 -0
  365. package/bundled-test-harness/assets/transform-cards-test-DyA8eCom.js +341 -0
  366. package/bundled-test-harness/assets/treeView-BLDUP644-Z4ezSvef.js +3 -0
  367. package/bundled-test-harness/assets/treemap-LRROVOQU-Bf5rk_He.js +3 -0
  368. package/bundled-test-harness/assets/ts-file-def-test-Cxnc6H74.js +90 -0
  369. package/bundled-test-harness/assets/tsMode-oJEHe-CR.js +968 -0
  370. package/bundled-test-harness/assets/typescript-DLbb7q56.js +2 -0
  371. package/bundled-test-harness/assets/update-room-skills-test-B7VLHU3-.js +197 -0
  372. package/bundled-test-harness/assets/url-test-w-69Zycf.js +103 -0
  373. package/bundled-test-harness/assets/use-ai-assistant-test-DJkFz7_b.js +330 -0
  374. package/bundled-test-harness/assets/validate-realm-test-BioLutB8.js +53 -0
  375. package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-9eLwsQET.js +2833 -0
  376. package/bundled-test-harness/assets/wardley-L42UT6IY-qNP5_917.js +3 -0
  377. package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-DZhEm4N4.js +872 -0
  378. package/bundled-test-harness/assets/wav-audio-def-test-DqsTEBw8.js +155 -0
  379. package/bundled-test-harness/assets/webp-image-def-test-23wOLPMu.js +225 -0
  380. package/bundled-test-harness/assets/workspace-chooser-delete-test-Q6S_nGDT.js +189 -0
  381. package/bundled-test-harness/assets/workspace-chooser-test-CzsvY1v_.js +235 -0
  382. package/bundled-test-harness/assets/workspace-delete-multiple-test-BNFHkJpQ.js +213 -0
  383. package/bundled-test-harness/assets/workspace-delete-summary-test-DLzNdjvC.js +63 -0
  384. package/bundled-test-harness/assets/write-binary-file-test-PHHt9fVI.js +100 -0
  385. package/bundled-test-harness/assets/write-text-file-test-DuHe6tR5.js +172 -0
  386. package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-bflHQbEv.js +2551 -0
  387. package/bundled-test-harness/index.html +24 -23
  388. package/bundled-test-harness/tests/index.html +31 -30
  389. package/bundled-types/base/command.d.ts +48 -0
  390. package/bundled-types/host-app/components/operator-mode/publish-realm-modal.gts +17 -26
  391. package/bundled-types/host-app/lib/published-realm-url.ts +135 -0
  392. package/package.json +2 -2
  393. package/src/build-program.ts +12 -12
  394. package/src/commands/consolidate-workspaces.ts +1 -1
  395. package/src/commands/file/delete.ts +4 -4
  396. package/src/commands/file/index.ts +6 -6
  397. package/src/commands/file/lint.ts +4 -4
  398. package/src/commands/file/list.ts +3 -3
  399. package/src/commands/file/read.ts +3 -3
  400. package/src/commands/file/touch.ts +6 -6
  401. package/src/commands/file/write.ts +3 -3
  402. package/src/commands/lint.ts +6 -6
  403. package/src/commands/parse.ts +6 -6
  404. package/src/commands/profile.ts +4 -4
  405. package/src/commands/read-transpiled.ts +6 -3
  406. package/src/commands/realm/cancel-indexing.ts +3 -3
  407. package/src/commands/realm/create.ts +2 -2
  408. package/src/commands/realm/history.ts +4 -4
  409. package/src/commands/realm/index.ts +15 -15
  410. package/src/commands/realm/indexing-errors.ts +3 -3
  411. package/src/commands/realm/list.ts +2 -2
  412. package/src/commands/realm/milestone.ts +4 -4
  413. package/src/commands/realm/publish.ts +4 -4
  414. package/src/commands/realm/pull.ts +6 -6
  415. package/src/commands/realm/push.ts +7 -7
  416. package/src/commands/realm/remove.ts +3 -3
  417. package/src/commands/realm/status.ts +8 -8
  418. package/src/commands/realm/sync.ts +9 -9
  419. package/src/commands/realm/unpublish.ts +3 -3
  420. package/src/commands/realm/wait-for-ready.ts +2 -2
  421. package/src/commands/realm/watch/index.ts +2 -2
  422. package/src/commands/realm/watch/start.ts +13 -10
  423. package/src/commands/realm/watch/stop.ts +2 -2
  424. package/src/commands/run-command.ts +6 -3
  425. package/src/commands/search.ts +3 -3
  426. package/src/commands/test.ts +5 -5
  427. package/src/index.ts +2 -2
  428. package/src/lib/auth-resolver.ts +3 -3
  429. package/src/lib/boxel-cli-client.ts +18 -15
  430. package/src/lib/checkpoint-manager.ts +1 -1
  431. package/src/lib/find-checkpoint.ts +1 -1
  432. package/src/lib/profile-manager.ts +4 -4
  433. package/src/lib/realm-local-paths.ts +1 -1
  434. package/src/lib/realm-sync-base.ts +1 -1
  435. package/src/lib/seed-auth.ts +1 -1
  436. package/src/lib/sync-logic.ts +1 -1
  437. package/src/lib/watch-process-registry.ts +1 -1
  438. package/bundled-test-harness/assets/adapter-C8oDflNN.js +0 -2
  439. package/bundled-test-harness/assets/add-field-to-card-definition-command-test-Cs670972.js +0 -111
  440. package/bundled-test-harness/assets/add-workspace-test-BviDAUBK.js +0 -71
  441. package/bundled-test-harness/assets/ai-assistant-B5fp2iOz.js +0 -129
  442. package/bundled-test-harness/assets/ai-assistant-panel-service-test-NpHZzZAz.js +0 -95
  443. package/bundled-test-harness/assets/ai-assistant-test-jPV29jEw.js +0 -2137
  444. package/bundled-test-harness/assets/ai-function-generation-test-QRPcE9tQ.js +0 -996
  445. package/bundled-test-harness/assets/ai-module-creation-test-DyuyfnkY.js +0 -150
  446. package/bundled-test-harness/assets/aibot-message-Dwxp5hTW.js +0 -1185
  447. package/bundled-test-harness/assets/amd-transpile-test-CF7Lkbif.js +0 -425
  448. package/bundled-test-harness/assets/app-CgP2IpNG.js +0 -21464
  449. package/bundled-test-harness/assets/apply-boxel-formatting-test-BXyZ3z0I.js +0 -134
  450. package/bundled-test-harness/assets/apply-markdown-edit-test-C6bcaj3a.js +0 -230
  451. package/bundled-test-harness/assets/apply-search-replace-block-test-BSwC4J9g.js +0 -630
  452. package/bundled-test-harness/assets/arc-DNRb_8LA.js +0 -199
  453. package/bundled-test-harness/assets/architecture-7EHR7CIX-BtVh_LBJ.js +0 -3
  454. package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-D9UYbaKj.js +0 -7400
  455. package/bundled-test-harness/assets/auth-error-guard-test-Bvu8E7Wy.js +0 -30
  456. package/bundled-test-harness/assets/auth-service-worker-test-CC6DzdfK.js +0 -538
  457. package/bundled-test-harness/assets/authed-fetch-test-CfF-IBHI.js +0 -75
  458. package/bundled-test-harness/assets/avif-image-def-test-B9L2z0nR.js +0 -186
  459. package/bundled-test-harness/assets/base-realm-43wjttN2.js +0 -140
  460. package/bundled-test-harness/assets/base-realm-CJ5x9iyX.js +0 -2
  461. package/bundled-test-harness/assets/basic-test-B64a5zCK.js +0 -128
  462. package/bundled-test-harness/assets/bfm-card-references-test-cLQVLpth.js +0 -577
  463. package/bundled-test-harness/assets/binary-upload-dedupe-test-By7Y1iQ3.js +0 -308
  464. package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-LgOorG2O.js +0 -4355
  465. package/bundled-test-harness/assets/bot-registration-test-DOjf0P1R.js +0 -99
  466. package/bundled-test-harness/assets/box-test-Cd1-RcXg.js +0 -51
  467. package/bundled-test-harness/assets/brand-guide-attachments-test-DxRqP8fo.js +0 -87
  468. package/bundled-test-harness/assets/brand-guide-custom-css-test-DBpZiHzJ.js +0 -135
  469. package/bundled-test-harness/assets/brand-logo-mark-field-test-61k4e5Om.js +0 -87
  470. package/bundled-test-harness/assets/broken-link-template-test-A1P4flQ5.js +0 -345
  471. package/bundled-test-harness/assets/browser-index-Bzhpucwe.js +0 -3
  472. package/bundled-test-harness/assets/browser-index-D0mzSWYV.js +0 -8802
  473. package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-1iq94vGa.js +0 -3764
  474. package/bundled-test-harness/assets/cached-fetch-test-ByQ-5OQI.js +0 -93
  475. package/bundled-test-harness/assets/can-read-realm-test-VFLHJdEv.js +0 -58
  476. package/bundled-test-harness/assets/cancel-indexing-job-test-n3Os4ZaX.js +0 -71
  477. package/bundled-test-harness/assets/card-api-test-DvNfLv3V.js +0 -196
  478. package/bundled-test-harness/assets/card-basics-test-CKzZuFdw.js +0 -4895
  479. package/bundled-test-harness/assets/card-catalog-test-JFvkVHED.js +0 -377
  480. package/bundled-test-harness/assets/card-copy-test-iwrFA72s.js +0 -777
  481. package/bundled-test-harness/assets/card-def-field-def-relationships-test-D5s2RH5t.js +0 -560
  482. package/bundled-test-harness/assets/card-def-menu-items-test-XcmkT4NF.js +0 -182
  483. package/bundled-test-harness/assets/card-delete-test-jtAOHk1Y.js +0 -412
  484. package/bundled-test-harness/assets/card-directory-name-test-veQEp5FJ.js +0 -71
  485. package/bundled-test-harness/assets/card-playground-test-P7Ed0tO4.js +0 -1497
  486. package/bundled-test-harness/assets/card-prerender-DXG8cQEv.js +0 -12661
  487. package/bundled-test-harness/assets/card-search-adorn-test-BX0-IJHB.js +0 -128
  488. package/bundled-test-harness/assets/card-search-query-builder-test-D01uixke.js +0 -88
  489. package/bundled-test-harness/assets/card-search-selection-menu-test-DMTeZFmW.js +0 -108
  490. package/bundled-test-harness/assets/channel-BvoW_rbI.js +0 -8
  491. package/bundled-test-harness/assets/check-correctness-test-D7QB1GTo.js +0 -252
  492. package/bundled-test-harness/assets/chunk-2J33WTMH-BbxCvOlt.js +0 -31
  493. package/bundled-test-harness/assets/chunk-3OPIFGDE-DHY3s0oT.js +0 -5548
  494. package/bundled-test-harness/assets/chunk-4BX2VUAB-CRivrLQ6.js +0 -11
  495. package/bundled-test-harness/assets/chunk-4EGX6M5U-qWzlMeqd.js +0 -44
  496. package/bundled-test-harness/assets/chunk-55IACEB6-DOl6NECJ.js +0 -10
  497. package/bundled-test-harness/assets/chunk-5DO6E6H7-scwNnzDb.js +0 -27
  498. package/bundled-test-harness/assets/chunk-5ZQYHXKU-BeETnugr.js +0 -1767
  499. package/bundled-test-harness/assets/chunk-727SXJPM-BlycTxFE.js +0 -3877
  500. package/bundled-test-harness/assets/chunk-AQP2D5EJ-BE3Clw-g.js +0 -2622
  501. package/bundled-test-harness/assets/chunk-BR22UD5L-BTPKlhWA.js +0 -85
  502. package/bundled-test-harness/assets/chunk-BSJP7CBP-BIhtUfvc.js +0 -114
  503. package/bundled-test-harness/assets/chunk-CSCIHK7Q-DnRAp6Bv.js +0 -6144
  504. package/bundled-test-harness/assets/chunk-FHYWG6QK-DpIXIGDC.js +0 -27
  505. package/bundled-test-harness/assets/chunk-FMBD7UC4-B36w3LIg.js +0 -20
  506. package/bundled-test-harness/assets/chunk-KSCS5N6A-gbz9p9BU.js +0 -871
  507. package/bundled-test-harness/assets/chunk-L5ZTLDWV-HNfH9U8K.js +0 -43
  508. package/bundled-test-harness/assets/chunk-LZXEDZCA-CbKHJfzx.js +0 -65
  509. package/bundled-test-harness/assets/chunk-MPE355IW-BGVbCTZH.js +0 -27
  510. package/bundled-test-harness/assets/chunk-MZUSXYTE-DoCjuxcJ.js +0 -36
  511. package/bundled-test-harness/assets/chunk-N66VUXT2-BX17MI-i.js +0 -70
  512. package/bundled-test-harness/assets/chunk-ND2GUHAM-IpeiJZYz.js +0 -93
  513. package/bundled-test-harness/assets/chunk-NZK2D7GU-CH-Gg7qc.js +0 -89
  514. package/bundled-test-harness/assets/chunk-O5CBEL6O-D2JbLgI8.js +0 -2395
  515. package/bundled-test-harness/assets/chunk-PUPMXCY4-DS4ZxM2V.js +0 -27
  516. package/bundled-test-harness/assets/chunk-QZHKN3VN-WLHeRUJ3.js +0 -20
  517. package/bundled-test-harness/assets/chunk-UIBZB4QT-DNIJBpkq.js +0 -27
  518. package/bundled-test-harness/assets/chunk-WCWK7LTN-CqRJ3WOy.js +0 -36
  519. package/bundled-test-harness/assets/chunk-WU5MYG2G-CtItCLbE.js +0 -12
  520. package/bundled-test-harness/assets/chunk-XPW4576I-D2Q7Qo8n.js +0 -2341
  521. package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-CnNFReKQ.js +0 -31
  522. package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-BlhpbohY.js +0 -31
  523. package/bundled-test-harness/assets/code-equality-assertion-C-2g5YGf.js +0 -474
  524. package/bundled-test-harness/assets/code-patches-test-DaV4Mon_.js +0 -1128
  525. package/bundled-test-harness/assets/code-patching-test-CcbWlImN.js +0 -114
  526. package/bundled-test-harness/assets/code-ref-test-8Yj8gbww.js +0 -138
  527. package/bundled-test-harness/assets/code-semantics-service-test-C3srTfDz.js +0 -65
  528. package/bundled-test-harness/assets/code-submode-test-BUhjvWtB.js +0 -1762
  529. package/bundled-test-harness/assets/codeblocks-test-3zAp0_GA.js +0 -492
  530. package/bundled-test-harness/assets/codemirror-context-C7KmSAyy.js +0 -2
  531. package/bundled-test-harness/assets/codemirror-editor-test-WojU4k2h.js +0 -1176
  532. package/bundled-test-harness/assets/color-field-test-yESUakoE.js +0 -213
  533. package/bundled-test-harness/assets/command-definitions-test-UsXsAhn7.js +0 -72
  534. package/bundled-test-harness/assets/commands-CBDBujm_.js +0 -1379
  535. package/bundled-test-harness/assets/commands-calling-test-DJTl0EbL.js +0 -200
  536. package/bundled-test-harness/assets/commands-test-DW2gupNS.js +0 -1041
  537. package/bundled-test-harness/assets/commands-test-DjLnuojW.js +0 -1145
  538. package/bundled-test-harness/assets/computed-test-0n5g8Ez5.js +0 -882
  539. package/bundled-test-harness/assets/container-D8y7fmir.js +0 -14602
  540. package/bundled-test-harness/assets/convert-to-class-name-test-DSIflIV2.js +0 -17
  541. package/bundled-test-harness/assets/copy-and-edit-test-BuK1ZHr-.js +0 -291
  542. package/bundled-test-harness/assets/copy-card-test-DnDC4_7J.js +0 -156
  543. package/bundled-test-harness/assets/copy-file-to-realm-test-CFd_3Iff.js +0 -99
  544. package/bundled-test-harness/assets/copy-source-test-38yUGJor.js +0 -56
  545. package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-DXA1S87S.js +0 -4275
  546. package/bundled-test-harness/assets/create-file-test-B2oem0-V.js +0 -963
  547. package/bundled-test-harness/assets/create-file-test-BHk00RtD.js +0 -397
  548. package/bundled-test-harness/assets/create-listing-modal-test-L-71-Uo2.js +0 -194
  549. package/bundled-test-harness/assets/create-listing-pr-request-CZaLsHhE.js +0 -64
  550. package/bundled-test-harness/assets/create-listing-pr-request-test-OGzk4Q2E.js +0 -117
  551. package/bundled-test-harness/assets/create-spec-test-BsM7VKuH.js +0 -239
  552. package/bundled-test-harness/assets/csv-file-def-test-BhJalhE-.js +0 -101
  553. package/bundled-test-harness/assets/dagre-BIk_r1iU.js +0 -4195
  554. package/bundled-test-harness/assets/dagre-BM42HDAG-FaUWeGOj.js +0 -606
  555. package/bundled-test-harness/assets/date-time-fields-test-Cs5T6Xk1.js +0 -322
  556. package/bundled-test-harness/assets/debug-message-test-WlHe7pJF.js +0 -119
  557. package/bundled-test-harness/assets/diagram-2AECGRRQ-DLve-IVM.js +0 -279
  558. package/bundled-test-harness/assets/diagram-5GNKFQAL-CJG1RTLk.js +0 -142
  559. package/bundled-test-harness/assets/diagram-KO2AKTUF-DYGDq3dD.js +0 -551
  560. package/bundled-test-harness/assets/diagram-LMA3HP47-BNRYdpMl.js +0 -184
  561. package/bundled-test-harness/assets/diagram-OG6HWLK6-BlJH5g83.js +0 -857
  562. package/bundled-test-harness/assets/diffing-test-DO54USSm.js +0 -210
  563. package/bundled-test-harness/assets/dist-BDRmXkWl.js +0 -232
  564. package/bundled-test-harness/assets/dist-BfNSLd0O.js +0 -105
  565. package/bundled-test-harness/assets/dist-BoireClP.js +0 -2
  566. package/bundled-test-harness/assets/editor-test-DChC9LuR.js +0 -551
  567. package/bundled-test-harness/assets/editor.main-BiohyrHK.js +0 -3
  568. package/bundled-test-harness/assets/editor.main-CMU_0pR1.js +0 -43566
  569. package/bundled-test-harness/assets/email-field-test-DWIFSfZ-.js +0 -74
  570. package/bundled-test-harness/assets/enum-field-test-BUc6l4us.js +0 -909
  571. package/bundled-test-harness/assets/erDiagram-TEJ5UH35-pOJ2novh.js +0 -2041
  572. package/bundled-test-harness/assets/error-display-test-CHSE6h6Z.js +0 -343
  573. package/bundled-test-harness/assets/evaluate-module-test-Caa5n0B9.js +0 -66
  574. package/bundled-test-harness/assets/eventmodeling-FCH6USID-B6XXU7R3.js +0 -3
  575. package/bundled-test-harness/assets/execute-atomic-operations-test-CT060oDk.js +0 -75
  576. package/bundled-test-harness/assets/externals-Do1fVZ4j.js +0 -5533
  577. package/bundled-test-harness/assets/extract-css-variables-test-DzjAsMgg.js +0 -169
  578. package/bundled-test-harness/assets/fallback-banner-test-CmxysrDn.js +0 -227
  579. package/bundled-test-harness/assets/fallback-banner-test-DJ4cO8PB.js +0 -53
  580. package/bundled-test-harness/assets/fallback-models-test-r5upJFeA.js +0 -163
  581. package/bundled-test-harness/assets/fetch-card-json-test-Di1wmvy5.js +0 -63
  582. package/bundled-test-harness/assets/fetcher-test-DjzNl_7F.js +0 -85
  583. package/bundled-test-harness/assets/field-configuration-test-C3vr-HhG.js +0 -535
  584. package/bundled-test-harness/assets/field-markdown-domain-test-DG2U4qIm.js +0 -615
  585. package/bundled-test-harness/assets/field-markdown-primitives-test-Bay2v8nT.js +0 -362
  586. package/bundled-test-harness/assets/field-markdown-specialized-test-Bl0Sl4sc.js +0 -527
  587. package/bundled-test-harness/assets/field-path-parser-test-bxxwUjcm.js +0 -387
  588. package/bundled-test-harness/assets/field-playground-test-Bcjfws4m.js +0 -902
  589. package/bundled-test-harness/assets/field-support-predicates-test-DYTqOGvv.js +0 -170
  590. package/bundled-test-harness/assets/field-test-helpers-DYSfSGdh.js +0 -45
  591. package/bundled-test-harness/assets/file-attachment-test-6ypDRDS7.js +0 -635
  592. package/bundled-test-harness/assets/file-chooser-test-mtmcHTFP.js +0 -439
  593. package/bundled-test-harness/assets/file-def-live-reload-test-CX1-lOv6.js +0 -50
  594. package/bundled-test-harness/assets/file-def-manager-DNHII2oj.js +0 -470
  595. package/bundled-test-harness/assets/file-def-manager-canonicalize-test-i_7UVakF.js +0 -451
  596. package/bundled-test-harness/assets/file-def-menu-items-test-Dw458iku.js +0 -114
  597. package/bundled-test-harness/assets/file-def-navigation-test-B3Ztr1Rd.js +0 -109
  598. package/bundled-test-harness/assets/file-def-serialization-test-C_gV8AkU.js +0 -87
  599. package/bundled-test-harness/assets/file-def-test-vXXJmtxX.js +0 -219
  600. package/bundled-test-harness/assets/file-tree-test-BJCiw9jm.js +0 -773
  601. package/bundled-test-harness/assets/flac-audio-def-test-BX3SE1vW.js +0 -138
  602. package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-7Q5ROn4X.js +0 -4883
  603. package/bundled-test-harness/assets/formatted-aibot-message-test-DyqUz2nt.js +0 -366
  604. package/bundled-test-harness/assets/formatted-user-message-test-aqAzqvBP.js +0 -43
  605. package/bundled-test-harness/assets/freestyle-test-CLRrZkAE.js +0 -17
  606. package/bundled-test-harness/assets/full-reindex-realm-test-ClqPVQ0c.js +0 -103
  607. package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-BkDoIAAE.js +0 -4060
  608. package/bundled-test-harness/assets/garbage-collection-test-Ba2dD3qS.js +0 -373
  609. package/bundled-test-harness/assets/general-test-D0zhs14K.js +0 -926
  610. package/bundled-test-harness/assets/generate-css-variables-test-CKrXSlHs.js +0 -88
  611. package/bundled-test-harness/assets/generate-example-cards-one-shot-test-fSAdGJeT.js +0 -67
  612. package/bundled-test-harness/assets/get-available-realm-identifiers-test-BXMUW65I.js +0 -49
  613. package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-DKEq6Zcq.js +0 -49
  614. package/bundled-test-harness/assets/get-default-writable-realm-test-Dp4nBIRP.js +0 -56
  615. package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-DYNnMgD-.js +0 -55
  616. package/bundled-test-harness/assets/get-relationship-membership-state-test-k9EUNWeq.js +0 -1306
  617. package/bundled-test-harness/assets/get-type-refs-from-filter-test-BPuivF-v.js +0 -136
  618. package/bundled-test-harness/assets/get-user-system-card-test-DSHv00O7.js +0 -52
  619. package/bundled-test-harness/assets/gif-image-def-test-LuDSr5Kz.js +0 -161
  620. package/bundled-test-harness/assets/gitGraph-WXDBUCRP-BrG_LYEh.js +0 -3
  621. package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-QJjQcX4J.js +0 -1150
  622. package/bundled-test-harness/assets/gts-file-def-test-bS3ML062.js +0 -99
  623. package/bundled-test-harness/assets/head-format-preview-test-B8IPh71E.js +0 -156
  624. package/bundled-test-harness/assets/helpers-wSIq-bau.js +0 -5
  625. package/bundled-test-harness/assets/host-mode-test-D44nXoQZ.js +0 -391
  626. package/bundled-test-harness/assets/host-submode-test-CefkXg9F.js +0 -904
  627. package/bundled-test-harness/assets/index-query-engine-test-DJnDqmfK.js +0 -2548
  628. package/bundled-test-harness/assets/index-writer-test-BcrCMj37.js +0 -1842
  629. package/bundled-test-harness/assets/indexeddb-crypto-store-RTTNdynf.js +0 -49434
  630. package/bundled-test-harness/assets/info-J43DQDTF-DhDzvz9k.js +0 -3
  631. package/bundled-test-harness/assets/infoDiagram-5YYISTIA-8TmRFIRz.js +0 -23
  632. package/bundled-test-harness/assets/inspector-test-D4iMBlbL.js +0 -1776
  633. package/bundled-test-harness/assets/instance-filter-matcher-test-CYT6N3hN.js +0 -564
  634. package/bundled-test-harness/assets/instantiate-card-test-j1JS5lDe.js +0 -104
  635. package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-B-aXzOh6.js +0 -497
  636. package/bundled-test-harness/assets/interact-submode-setup-VMwOUl3u.js +0 -558
  637. package/bundled-test-harness/assets/interact-submode-test-D5lNNXdq.js +0 -725
  638. package/bundled-test-harness/assets/invalidate-realm-identifiers-test-71Ze8eGV.js +0 -101
  639. package/bundled-test-harness/assets/invite-user-to-room-test-UfjsvwVp.js +0 -67
  640. package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-7UALIGwM.js +0 -1009
  641. package/bundled-test-harness/assets/isolated-render-test-C2IL-Fz3.js +0 -51
  642. package/bundled-test-harness/assets/item-button-6g7XYj56.js +0 -203
  643. package/bundled-test-harness/assets/javascript-BwLQ7_Nc.js +0 -75
  644. package/bundled-test-harness/assets/job-priority-header-test-C3FfKLPP.js +0 -81
  645. package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-t4gEZYup.js +0 -1256
  646. package/bundled-test-harness/assets/jpg-image-def-test-BTBk9lk5.js +0 -430
  647. package/bundled-test-harness/assets/json-file-def-test-BpU_Eidn.js +0 -92
  648. package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C_KHB3_r.js +0 -1284
  649. package/bundled-test-harness/assets/last-modified-date-test-fE7IP0q0.js +0 -18
  650. package/bundled-test-harness/assets/limited-set-test-uu2vX1Sv.js +0 -123
  651. package/bundled-test-harness/assets/line-BiZHXOjs.js +0 -55
  652. package/bundled-test-harness/assets/linear-DUaMMmmA.js +0 -417
  653. package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-qZeqQ1gt.js +0 -315
  654. package/bundled-test-harness/assets/linksto-error-sentinel-test-BaV3I8Xx.js +0 -236
  655. package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-BvJi1vCb.js +0 -303
  656. package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CK60Cugk.js +0 -301
  657. package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-BWxdEO9D.js +0 -258
  658. package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-CIsLhqR2.js +0 -194
  659. package/bundled-test-harness/assets/live-prerendered-search-jZe3I16p.js +0 -639
  660. package/bundled-test-harness/assets/live-test-CF_R5WGr.js +0 -2
  661. package/bundled-test-harness/assets/live-test-jO7lXuyB.js +0 -100
  662. package/bundled-test-harness/assets/loader-icon-error-test-N4JYZuTx.js +0 -62
  663. package/bundled-test-harness/assets/loader-parallel-prefetch-test-DteeG7mU.js +0 -257
  664. package/bundled-test-harness/assets/loader-retry-test-DYVgpS_I.js +0 -173
  665. package/bundled-test-harness/assets/loader-test-DLI8JIx-.js +0 -245
  666. package/bundled-test-harness/assets/loading-test-D4ZBtRYf.js +0 -63
  667. package/bundled-test-harness/assets/login-error-text-test-Dcq7q3EY.js +0 -51
  668. package/bundled-test-harness/assets/m4a-audio-def-test-BKqGO-CW.js +0 -185
  669. package/bundled-test-harness/assets/main-BjBdsiQT.js +0 -5
  670. package/bundled-test-harness/assets/markdown-fallback-test-BBj80dZZ.js +0 -316
  671. package/bundled-test-harness/assets/markdown-file-def-test-BnMF5rQF.js +0 -286
  672. package/bundled-test-harness/assets/markdown-helpers-test-DnuuSLfS.js +0 -183
  673. package/bundled-test-harness/assets/markdown-highlighting-test-CWRp2Rce.js +0 -244
  674. package/bundled-test-harness/assets/markdown-preview-test-Bf5OqKGf.js +0 -237
  675. package/bundled-test-harness/assets/markdown-preview-yYHtwNeI.js +0 -69
  676. package/bundled-test-harness/assets/marked-sync-2EfimW4i.js +0 -2
  677. package/bundled-test-harness/assets/marked-sync-DZOVFLjK.js +0 -2561
  678. package/bundled-test-harness/assets/marked-sync-test-BaaYbZNF.js +0 -146
  679. package/bundled-test-harness/assets/matrix-service-sliding-sync-test-CdEy3ASW.js +0 -33
  680. package/bundled-test-harness/assets/mermaid-parser.core-CKNAdXJW.js +0 -114
  681. package/bundled-test-harness/assets/mermaid.core-C0mfwy8A.js +0 -1700
  682. package/bundled-test-harness/assets/message-service-subscription-test-pGz_7rz3.js +0 -113
  683. package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-ClcHxkdY.js +0 -1347
  684. package/bundled-test-harness/assets/mock-matrix-D7JHfFtT.js +0 -2
  685. package/bundled-test-harness/assets/mock-matrix-DqDbNhEj.js +0 -14292
  686. package/bundled-test-harness/assets/module-transpile-cache-test-D0M-fPxs.js +0 -66
  687. package/bundled-test-harness/assets/monaco.contribution-BEs3qwfd.js +0 -103
  688. package/bundled-test-harness/assets/monaco.contribution-Dpx8UiPl.js +0 -2
  689. package/bundled-test-harness/assets/monaco.contribution-RF_qxJYG.js +0 -2
  690. package/bundled-test-harness/assets/monaco.contribution-jPVrF29f.js +0 -243
  691. package/bundled-test-harness/assets/mp3-audio-def-test-CxeRk1bl.js +0 -129
  692. package/bundled-test-harness/assets/mutex-test-D1xyxTj2.js +0 -71
  693. package/bundled-test-harness/assets/number-field-test-gjAGDy6P.js +0 -153
  694. package/bundled-test-harness/assets/ogg-audio-def-test-B6Ww3Ixr.js +0 -191
  695. package/bundled-test-harness/assets/open-create-listing-modal-test-uN58T3rI.js +0 -117
  696. package/bundled-test-harness/assets/open-workspace-test-DXVsvBFJ.js +0 -48
  697. package/bundled-test-harness/assets/operator-mode-acceptance-test-BxIq2xSS.js +0 -1044
  698. package/bundled-test-harness/assets/operator-mode-card-catalog-test-xFYx9_ng.js +0 -989
  699. package/bundled-test-harness/assets/operator-mode-links-test-qhXWmz-S.js +0 -797
  700. package/bundled-test-harness/assets/operator-mode-state-service-test-BdA_uvaY.js +0 -122
  701. package/bundled-test-harness/assets/operator-mode-test-D3EyTwq3.js +0 -617
  702. package/bundled-test-harness/assets/operator-mode-ui-test-CSrk6Q0A.js +0 -985
  703. package/bundled-test-harness/assets/ordinal-DO1mUmjg.js +0 -85
  704. package/bundled-test-harness/assets/overlay-menu-items-test-CuqqLsQT.js +0 -316
  705. package/bundled-test-harness/assets/packet-YPE3B663--JkMNy78.js +0 -3
  706. package/bundled-test-harness/assets/panel-C2rtbx32.js +0 -3371
  707. package/bundled-test-harness/assets/past-sessions-test-B9SCbbXz.js +0 -316
  708. package/bundled-test-harness/assets/patch-code-test-CcFr9pDb.js +0 -203
  709. package/bundled-test-harness/assets/patch-fields-test-BW1gzcJM.js +0 -992
  710. package/bundled-test-harness/assets/patch-instance-test-DKqA9gQ6.js +0 -287
  711. package/bundled-test-harness/assets/persist-module-inspector-view-test-D1eKBUkt.js +0 -62
  712. package/bundled-test-harness/assets/phone-number-field-test-D1is5RWv.js +0 -72
  713. package/bundled-test-harness/assets/pie-LRSECV5Y-BDVv8Wdy.js +0 -3
  714. package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CSYI-nMz.js +0 -253
  715. package/bundled-test-harness/assets/plan-install-test-DB-PrjPR.js +0 -417
  716. package/bundled-test-harness/assets/playground-B0iQV7dU.js +0 -57
  717. package/bundled-test-harness/assets/png-image-def-test-DnOsJGs6.js +0 -222
  718. package/bundled-test-harness/assets/prerender-file-extract-test-DhOLozj2.js +0 -176
  719. package/bundled-test-harness/assets/prerender-html-test-DKVhQZA9.js +0 -615
  720. package/bundled-test-harness/assets/prerender-meta-test-CnRNyqSz.js +0 -388
  721. package/bundled-test-harness/assets/prerender-module-test-D163QcrZ.js +0 -195
  722. package/bundled-test-harness/assets/prerendered-card-search-test-DX-8yabJ.js +0 -708
  723. package/bundled-test-harness/assets/preview-format-test-H7bnpdlC.js +0 -103
  724. package/bundled-test-harness/assets/preview-test-B7u6uWJR.js +0 -455
  725. package/bundled-test-harness/assets/qs-test-COb0mre6.js +0 -36
  726. package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-2Y2ben29.js +0 -2324
  727. package/bundled-test-harness/assets/query-field-barrier-test-Cypj-MhK.js +0 -118
  728. package/bundled-test-harness/assets/query-field-error-sentinel-test-Dnqn8TdN.js +0 -202
  729. package/bundled-test-harness/assets/query-field-normalization-test-B7D8SHBP.js +0 -271
  730. package/bundled-test-harness/assets/query-field-schema-test-DIYY3-c8.js +0 -231
  731. package/bundled-test-harness/assets/query-fields-test-k-VBF9PE.js +0 -535
  732. package/bundled-test-harness/assets/queue-test-B_74vXZE.js +0 -216
  733. package/bundled-test-harness/assets/radar-GUYGQ44K-Cn2A0VBR.js +0 -3
  734. package/bundled-test-harness/assets/read-card-for-ai-assistant-test-SyL9F_La.js +0 -91
  735. package/bundled-test-harness/assets/read-file-for-ai-assistant-test-nLPp49U2.js +0 -45
  736. package/bundled-test-harness/assets/read-source-test-DBELJkhN.js +0 -67
  737. package/bundled-test-harness/assets/read-text-file-test-CP1JuWlX.js +0 -124
  738. package/bundled-test-harness/assets/realm-Dr4iygv_.js +0 -884
  739. package/bundled-test-harness/assets/realm-field-test-Cice2mYk.js +0 -101
  740. package/bundled-test-harness/assets/realm-index-card-id-test-BzpozdWc.js +0 -18
  741. package/bundled-test-harness/assets/realm-indexing-test-C0YSXziR.js +0 -4018
  742. package/bundled-test-harness/assets/realm-paths-test-DV_g07rF.js +0 -33
  743. package/bundled-test-harness/assets/realm-querying-test-B526abM0.js +0 -1062
  744. package/bundled-test-harness/assets/realm-test-D8UN5X-w.js +0 -2409
  745. package/bundled-test-harness/assets/reasoning-test-ClIOvdkX.js +0 -234
  746. package/bundled-test-harness/assets/recent-files-test-C2J_dJUD.js +0 -449
  747. package/bundled-test-harness/assets/reindex-realm-test-DMphy1g6.js +0 -119
  748. package/bundled-test-harness/assets/relationship-loading-state-test-BWrZdLlZ.js +0 -289
  749. package/bundled-test-harness/assets/render-component-BII_KnyK.js +0 -2
  750. package/bundled-test-harness/assets/render-error-test-BUAJJlUi.js +0 -22
  751. package/bundled-test-harness/assets/render-service-test-BKkCjErY.js +0 -87
  752. package/bundled-test-harness/assets/render-timer-stub-test-TUDMWJ8v.js +0 -84
  753. package/bundled-test-harness/assets/rendered-markdown-ColekGTF.js +0 -211
  754. package/bundled-test-harness/assets/rendered-markdown-test-B4CWIo02.js +0 -360
  755. package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-CTICatxk.js +0 -2550
  756. package/bundled-test-harness/assets/rich-markdown-field-test-B5u6D3Nk.js +0 -806
  757. package/bundled-test-harness/assets/room-message-test-0eJSqQfu.js +0 -171
  758. package/bundled-test-harness/assets/rust-crypto-B0m3j_yZ.js +0 -16141
  759. package/bundled-test-harness/assets/sanitize-module-list-test-rH6OqjKh.js +0 -68
  760. package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-hBIg6-LP.js +0 -1357
  761. package/bundled-test-harness/assets/schema-editor-test-DH4MLFCD.js +0 -784
  762. package/bundled-test-harness/assets/schema-generation-test-BZMkX7VA.js +0 -28
  763. package/bundled-test-harness/assets/scrolling-test-CFTyLG8X.js +0 -292
  764. package/bundled-test-harness/assets/search-and-choose-test-CcbVyp4c.js +0 -156
  765. package/bundled-test-harness/assets/search-cache-key-test-BYt46iNT.js +0 -79
  766. package/bundled-test-harness/assets/search-command-test-BRIJPr54.js +0 -135
  767. package/bundled-test-harness/assets/search-correlation-id-test-B298Tfux.js +0 -101
  768. package/bundled-test-harness/assets/search-data-test-DHV2Fd4S.js +0 -243
  769. package/bundled-test-harness/assets/search-google-images-test-CNrazllP.js +0 -168
  770. package/bundled-test-harness/assets/search-in-flight-key-test-Dy3bU2c1.js +0 -79
  771. package/bundled-test-harness/assets/search-test-DL1-gD-G.js +0 -847
  772. package/bundled-test-harness/assets/send-ai-assistant-message-test-CyEkQ5pD.js +0 -52
  773. package/bundled-test-harness/assets/send-bot-trigger-event-test-CAsK28m-.js +0 -56
  774. package/bundled-test-harness/assets/send-request-via-proxy-test-DpMlRvPv.js +0 -333
  775. package/bundled-test-harness/assets/sending-test-BOeGYcTU.js +0 -317
  776. package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-DQMiI040.js +0 -5551
  777. package/bundled-test-harness/assets/serialization-test-gY2QQVxS.js +0 -8283
  778. package/bundled-test-harness/assets/set-user-system-card-test-BE3y5GNK.js +0 -59
  779. package/bundled-test-harness/assets/setup-B8O9JQKq.js +0 -769
  780. package/bundled-test-harness/assets/setup-BMqGUBDK.js +0 -2
  781. package/bundled-test-harness/assets/show-card-test-BfJNnWMy.js +0 -362
  782. package/bundled-test-harness/assets/skills-test-CqhnZxBi.js +0 -568
  783. package/bundled-test-harness/assets/spec-test-BUKNn_1q.js +0 -1012
  784. package/bundled-test-harness/assets/stateDiagram-AJRCARHV-BoOij2yt.js +0 -363
  785. package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-Dosil5p2.js +0 -29
  786. package/bundled-test-harness/assets/store-add-test-BR1M-IDR.js +0 -52
  787. package/bundled-test-harness/assets/store-test-DaqI-HRh.js +0 -1562
  788. package/bundled-test-harness/assets/summarize-session-test-BMg54JGF.js +0 -169
  789. package/bundled-test-harness/assets/svg-image-def-test-xNyIKRPV.js +0 -164
  790. package/bundled-test-harness/assets/switch-submode-test-BKvpODUD.js +0 -168
  791. package/bundled-test-harness/assets/test-realm-service-worker-DK4SmTM5.js +0 -73
  792. package/bundled-test-harness/assets/tests-x4_eRjiT.js +0 -2770
  793. package/bundled-test-harness/assets/text-file-def-test-CsXiyVfI.js +0 -93
  794. package/bundled-test-harness/assets/text-input-validator-test-D4s_laO7.js +0 -155
  795. package/bundled-test-harness/assets/text-suggestion-test-CkLf1xuS.js +0 -339
  796. package/bundled-test-harness/assets/theme-card-test-D-6L6OfD.js +0 -573
  797. package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-DD2d81uJ.js +0 -1545
  798. package/bundled-test-harness/assets/transform-cards-test-CRZF2gqZ.js +0 -341
  799. package/bundled-test-harness/assets/treeView-BLDUP644-CUm8wuM-.js +0 -3
  800. package/bundled-test-harness/assets/treemap-LRROVOQU-lbLrY2PE.js +0 -3
  801. package/bundled-test-harness/assets/ts-file-def-test-CDo6ojCf.js +0 -90
  802. package/bundled-test-harness/assets/tsMode-BPQoRibc.js +0 -968
  803. package/bundled-test-harness/assets/typescript-BaU6yDhK.js +0 -2
  804. package/bundled-test-harness/assets/update-room-skills-test-BnSgVFwT.js +0 -197
  805. package/bundled-test-harness/assets/url-test-CK-HB0qu.js +0 -103
  806. package/bundled-test-harness/assets/use-ai-assistant-test-BuJXEP8H.js +0 -330
  807. package/bundled-test-harness/assets/validate-realm-test-Cx7MOtS8.js +0 -53
  808. package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-DtXtzGwZ.js +0 -2833
  809. package/bundled-test-harness/assets/wardley-L42UT6IY-D8aCp_Ox.js +0 -3
  810. package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-D-73g3bB.js +0 -872
  811. package/bundled-test-harness/assets/wav-audio-def-test-DIo2GzQL.js +0 -155
  812. package/bundled-test-harness/assets/webp-image-def-test-BQsV0_De.js +0 -225
  813. package/bundled-test-harness/assets/workspace-chooser-delete-test-peDXmnQf.js +0 -189
  814. package/bundled-test-harness/assets/workspace-chooser-test-DS2RtTEF.js +0 -235
  815. package/bundled-test-harness/assets/workspace-delete-multiple-test-DTbjRSzN.js +0 -213
  816. package/bundled-test-harness/assets/workspace-delete-summary-test-B--ink4m.js +0 -63
  817. package/bundled-test-harness/assets/write-binary-file-test-A3TQ5lFn.js +0 -100
  818. package/bundled-test-harness/assets/write-text-file-test-D_rjNDsT.js +0 -172
  819. package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-D1aoqDp-.js +0 -2551
  820. /package/bundled-test-harness/assets/{abap-CLdVBGqB.js → abap-FZAuBTMl.js} +0 -0
  821. /package/bundled-test-harness/assets/{apex-DV8eHjgQ.js → apex-CAO3qFTc.js} +0 -0
  822. /package/bundled-test-harness/assets/{array-DsDWWqmW.js → array-CRfHnEm4.js} +0 -0
  823. /package/bundled-test-harness/assets/{azcli-C4pZYsiJ.js → azcli-Bnu7jG0Y.js} +0 -0
  824. /package/bundled-test-harness/assets/{bat-DBoaeFpB.js → bat-DdE54Pqq.js} +0 -0
  825. /package/bundled-test-harness/assets/{bicep-VlrJhbeK.js → bicep-Dp4vFp3K.js} +0 -0
  826. /package/bundled-test-harness/assets/{cameligo-jyzrvLUm.js → cameligo-Cym4x98m.js} +0 -0
  827. /package/bundled-test-harness/assets/{chunk-NNHCCRGN-Be15HUz2.js → chunk-NNHCCRGN-PWOfDYpb.js} +0 -0
  828. /package/bundled-test-harness/assets/{clojure-bzahmEtz.js → clojure-B47IJ25u.js} +0 -0
  829. /package/bundled-test-harness/assets/{codemirror-context-BauLYUNt.js → codemirror-context-oJy03XqC.js} +0 -0
  830. /package/bundled-test-harness/assets/{coffee-CMADdzOH.js → coffee-CZlkBXT8.js} +0 -0
  831. /package/bundled-test-harness/assets/{cpp-CEJwzcLE.js → cpp-mX4KaA7p.js} +0 -0
  832. /package/bundled-test-harness/assets/{csharp-XYqm0UE0.js → csharp-C-OeDGwk.js} +0 -0
  833. /package/bundled-test-harness/assets/{csp-82fNWQc2.js → csp-AS2OEE8R.js} +0 -0
  834. /package/bundled-test-harness/assets/{css-B5b0ooFS.js → css-C-TQxhWe.js} +0 -0
  835. /package/bundled-test-harness/assets/{cssMode-DTKuqAkO.js → cssMode-C87GnEsk.js} +0 -0
  836. /package/bundled-test-harness/assets/{cypher-Df9GkdDY.js → cypher-T6F_0eIM.js} +0 -0
  837. /package/bundled-test-harness/assets/{cytoscape.esm-D0iwZ9Jj.js → cytoscape.esm-Bc2V-MhP.js} +0 -0
  838. /package/bundled-test-harness/assets/{dart-C4JY9dMc.js → dart-DzVesk0n.js} +0 -0
  839. /package/bundled-test-harness/assets/{defaultLocale-BtLxQtxy.js → defaultLocale-CAoL4lzt.js} +0 -0
  840. /package/bundled-test-harness/assets/{dist-D-PuK2H3.js → dist-BZ5MfZEJ.js} +0 -0
  841. /package/bundled-test-harness/assets/{dockerfile-Ck0tNttO.js → dockerfile-BH0_bQxC.js} +0 -0
  842. /package/bundled-test-harness/assets/{ecl-BpeXqJR_.js → ecl-KIxjxrJo.js} +0 -0
  843. /package/bundled-test-harness/assets/{elixir-HmBzrXaX.js → elixir-CPPdtCW1.js} +0 -0
  844. /package/bundled-test-harness/assets/{flow9-DhsfsDhH.js → flow9-Dxho7Ldf.js} +0 -0
  845. /package/bundled-test-harness/assets/{freemarker2-D3Yd6nGl.js → freemarker2-DP1aOr3_.js} +0 -0
  846. /package/bundled-test-harness/assets/{fsharp-D56OprHc.js → fsharp-ozN53Joe.js} +0 -0
  847. /package/bundled-test-harness/assets/{go-BITsFLfX.js → go-DPj6Rbqe.js} +0 -0
  848. /package/bundled-test-harness/assets/{graphlib-qkaQhadO.js → graphlib-DOITgaas.js} +0 -0
  849. /package/bundled-test-harness/assets/{graphql-CJJVsEX1.js → graphql-C8_-AnBG.js} +0 -0
  850. /package/bundled-test-harness/assets/{handlebars-Dvw6QbL7.js → handlebars-B2gYBZpU.js} +0 -0
  851. /package/bundled-test-harness/assets/{hcl-DSTZcJuq.js → hcl-r3d7BhXB.js} +0 -0
  852. /package/bundled-test-harness/assets/{helpers-D_JZYUOQ.js → helpers-CItTycq2.js} +0 -0
  853. /package/bundled-test-harness/assets/{html-Bik3qLmc.js → html-DhN1Nxr0.js} +0 -0
  854. /package/bundled-test-harness/assets/{htmlMode-DPCaR3Ab.js → htmlMode-BnBg5hCh.js} +0 -0
  855. /package/bundled-test-harness/assets/{ini-li-kC8ZU.js → ini-CzzRigmS.js} +0 -0
  856. /package/bundled-test-harness/assets/{init-Bq7IGMcH.js → init-Bd2YUhsG.js} +0 -0
  857. /package/bundled-test-harness/assets/{java-CETpuNN7.js → java-BgeDsIoV.js} +0 -0
  858. /package/bundled-test-harness/assets/{jsonMode-CZ3hOG-W.js → jsonMode-sRb0gsB8.js} +0 -0
  859. /package/bundled-test-harness/assets/{julia-hgihs1aN.js → julia-u3K1H5Ts.js} +0 -0
  860. /package/bundled-test-harness/assets/{katex-DqhsSYO4.js → katex-CHY7BUZt.js} +0 -0
  861. /package/bundled-test-harness/assets/{kotlin-CKfyb82K.js → kotlin-DfqmlJ10.js} +0 -0
  862. /package/bundled-test-harness/assets/{less-xB5yXbw8.js → less-CSzH7DPY.js} +0 -0
  863. /package/bundled-test-harness/assets/{lexon-BLwrXVrI.js → lexon-DwPTpxXt.js} +0 -0
  864. /package/bundled-test-harness/assets/{liquid-Bf2lpknJ.js → liquid-95J9g5Vk.js} +0 -0
  865. /package/bundled-test-harness/assets/{lua-Ch5i3IrF.js → lua-CGw6zbeh.js} +0 -0
  866. /package/bundled-test-harness/assets/{m3-D5tNlhaF.js → m3-BfgwloGF.js} +0 -0
  867. /package/bundled-test-harness/assets/{markdown-Dzc9uMky.js → markdown-RZRK7Mc9.js} +0 -0
  868. /package/bundled-test-harness/assets/{mdx-xsI4TJrf.js → mdx-BYD-W2sn.js} +0 -0
  869. /package/bundled-test-harness/assets/{mips-CmdzHkQm.js → mips-DAySN5Lp.js} +0 -0
  870. /package/bundled-test-harness/assets/{msdax-CAZvxB9E.js → msdax-Cy0COjTJ.js} +0 -0
  871. /package/bundled-test-harness/assets/{mysql-CyVS-z5H.js → mysql-CfGw9jyw.js} +0 -0
  872. /package/bundled-test-harness/assets/{objective-c-CCG8cTc_.js → objective-c-B4uU-8T-.js} +0 -0
  873. /package/bundled-test-harness/assets/{pascal-c8B45FOC.js → pascal-CGDuZzXi.js} +0 -0
  874. /package/bundled-test-harness/assets/{pascaligo-CCqwSqBv.js → pascaligo-eg02k4VJ.js} +0 -0
  875. /package/bundled-test-harness/assets/{path-CsS38UoK.js → path-Dxiz9G2t.js} +0 -0
  876. /package/bundled-test-harness/assets/{perl-JUICYbO2.js → perl-BiT-JJJw.js} +0 -0
  877. /package/bundled-test-harness/assets/{pgsql-aNRiL0Cg.js → pgsql-DAMjrVBF.js} +0 -0
  878. /package/bundled-test-harness/assets/{php-B0YZj_Vw.js → php-kOSUYQyc.js} +0 -0
  879. /package/bundled-test-harness/assets/{pla-D3Zb3KCn.js → pla-BShYV-HC.js} +0 -0
  880. /package/bundled-test-harness/assets/{postiats-ks1KABlA.js → postiats-9Xamd4W2.js} +0 -0
  881. /package/bundled-test-harness/assets/{powerquery-D35K_osc.js → powerquery-l2Nw525Q.js} +0 -0
  882. /package/bundled-test-harness/assets/{powershell-DXQo6KTk.js → powershell-B5rdEn86.js} +0 -0
  883. /package/bundled-test-harness/assets/{protobuf-CFDvn49_.js → protobuf-DjFcruCV.js} +0 -0
  884. /package/bundled-test-harness/assets/{pug-CGdWzJm1.js → pug-d79Nz4-Z.js} +0 -0
  885. /package/bundled-test-harness/assets/{python-BHLYjYlP.js → python-d8oxFZIM.js} +0 -0
  886. /package/bundled-test-harness/assets/{qsharp-BIq3i63T.js → qsharp-CeTlfxZW.js} +0 -0
  887. /package/bundled-test-harness/assets/{qunit-2hoQyeAZ.js → qunit-Cqwmt9Vl.js} +0 -0
  888. /package/bundled-test-harness/assets/{r-CBvzvDSA.js → r-BOu7JTro.js} +0 -0
  889. /package/bundled-test-harness/assets/{razor-JQ0RiIvo.js → razor-ZatoG_Is.js} +0 -0
  890. /package/bundled-test-harness/assets/{recent-files-cards-BQMviQb1.js → recent-files-cards-C3vIjaKb.js} +0 -0
  891. /package/bundled-test-harness/assets/{redis-BmSHTqTU.js → redis-DdXYPyQE.js} +0 -0
  892. /package/bundled-test-harness/assets/{redshift-B1NmQEH7.js → redshift-DswnW-YX.js} +0 -0
  893. /package/bundled-test-harness/assets/{render-component-g_fhz2dX.js → render-component-Bs21y6iv.js} +0 -0
  894. /package/bundled-test-harness/assets/{restructuredtext-Br9BtTbk.js → restructuredtext-C75vUmvX.js} +0 -0
  895. /package/bundled-test-harness/assets/{rough.esm-D8VnzNsL.js → rough.esm-B83ARgx6.js} +0 -0
  896. /package/bundled-test-harness/assets/{ruby-D9_-y1I3.js → ruby-D77950a-.js} +0 -0
  897. /package/bundled-test-harness/assets/{rust-1Jjr1EOs.js → rust-C_G4PKsG.js} +0 -0
  898. /package/bundled-test-harness/assets/{sb-X2JE4zEr.js → sb-Cz3P8_Gp.js} +0 -0
  899. /package/bundled-test-harness/assets/{scala-qFJERKkR.js → scala-DYqUg04P.js} +0 -0
  900. /package/bundled-test-harness/assets/{scheme-D-WJPStO.js → scheme-B31XEGu5.js} +0 -0
  901. /package/bundled-test-harness/assets/{scss-DysfZiXA.js → scss-CtvB8On5.js} +0 -0
  902. /package/bundled-test-harness/assets/{shell-C0Iu3NNJ.js → shell-C2QqpcPN.js} +0 -0
  903. /package/bundled-test-harness/assets/{solidity-Bato3Qrk.js → solidity-FHrhZFd-.js} +0 -0
  904. /package/bundled-test-harness/assets/{sophia-DI0cKdK8.js → sophia-Cxv5FOXb.js} +0 -0
  905. /package/bundled-test-harness/assets/{sparql-BTJMtwoD.js → sparql-CgGkGeQB.js} +0 -0
  906. /package/bundled-test-harness/assets/{sql-R6uHqFYU.js → sql-S6Dos2P0.js} +0 -0
  907. /package/bundled-test-harness/assets/{src-CdPyB7gY.js → src-CvuaVSsl.js} +0 -0
  908. /package/bundled-test-harness/assets/{st-CoyBvq37.js → st-Bfa7LAWp.js} +0 -0
  909. /package/bundled-test-harness/assets/{swift-Bj-haAlF.js → swift-BQD5Ef-A.js} +0 -0
  910. /package/bundled-test-harness/assets/{systemverilog-B-x1NEFI.js → systemverilog-DaNkPux4.js} +0 -0
  911. /package/bundled-test-harness/assets/{tcl-DAUdSQgz.js → tcl-gOPgCDyb.js} +0 -0
  912. /package/bundled-test-harness/assets/{test-support-BHjxBpDK.js → test-support-BEQX5x9U.js} +0 -0
  913. /package/bundled-test-harness/assets/{test-support-yKvYEh-u.js → test-support-BL4XKobD.js} +0 -0
  914. /package/bundled-test-harness/assets/{twig-B0sJ-GzS.js → twig-Bk4gPn5b.js} +0 -0
  915. /package/bundled-test-harness/assets/{typescript-DTMIM5Gl.js → typescript-pPYlxWzr.js} +0 -0
  916. /package/bundled-test-harness/assets/{typespec-6yo9VQxY.js → typespec-D9Zz743B.js} +0 -0
  917. /package/bundled-test-harness/assets/{vb-Bh2IfdtJ.js → vb-ziqHIsJV.js} +0 -0
  918. /package/bundled-test-harness/assets/{view-card-demo-U_AOj-RK.js → view-card-demo-CSIVYD3T.js} +0 -0
  919. /package/bundled-test-harness/assets/{wgsl-DsvJnCCt.js → wgsl-BXiwkiJL.js} +0 -0
  920. /package/bundled-test-harness/assets/{xml-CisPXcjD.js → xml-a_tUOik-.js} +0 -0
  921. /package/bundled-test-harness/assets/{yaml-DkHUoYI5.js → yaml-B3H8LDzK.js} +0 -0
@@ -0,0 +1,3764 @@
1
+ import "./chunk-CGdGNDIi.js";
2
+ import { g as log, h as __name$1, p as select_default } from "./src-CvuaVSsl.js";
3
+ import { H as setAccDescription, U as setAccTitle, c as configureSvgSize, r as assignWithDepth_default, s as common_default, v as getAccDescription, x as getConfig2, y as getAccTitle, z as sanitizeText } from "./chunk-CSCIHK7Q-D7nFiAZ-.js";
4
+ import { t as require_dist } from "./dist-BZ5MfZEJ.js";
5
+ import { _ as wrapLabel, n as calculateTextHeight, r as calculateTextWidth } from "./chunk-5ZQYHXKU-BlVb7vgG.js";
6
+ import { a as drawRect, s as getNoteRect } from "./chunk-ND2GUHAM-DO1Znn8O.js";
7
+ //#region ../../node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.mjs
8
+ var import_dist = require_dist();
9
+ var parser = function() {
10
+ var o = /* @__PURE__ */ __name$1(function(k, v, o2, l) {
11
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v);
12
+ return o2;
13
+ }, "o");
14
+ var $V0 = [1, 24];
15
+ var $V1 = [1, 25];
16
+ var $V2 = [1, 26];
17
+ var $V3 = [1, 27];
18
+ var $V4 = [1, 28];
19
+ var $V5 = [1, 63];
20
+ var $V6 = [1, 64];
21
+ var $V7 = [1, 65];
22
+ var $V8 = [1, 66];
23
+ var $V9 = [1, 67];
24
+ var $Va = [1, 68];
25
+ var $Vb = [1, 69];
26
+ var $Vc = [1, 29];
27
+ var $Vd = [1, 30];
28
+ var $Ve = [1, 31];
29
+ var $Vf = [1, 32];
30
+ var $Vg = [1, 33];
31
+ var $Vh = [1, 34];
32
+ var $Vi = [1, 35];
33
+ var $Vj = [1, 36];
34
+ var $Vk = [1, 37];
35
+ var $Vl = [1, 38];
36
+ var $Vm = [1, 39];
37
+ var $Vn = [1, 40];
38
+ var $Vo = [1, 41];
39
+ var $Vp = [1, 42];
40
+ var $Vq = [1, 43];
41
+ var $Vr = [1, 44];
42
+ var $Vs = [1, 45];
43
+ var $Vt = [1, 46];
44
+ var $Vu = [1, 47];
45
+ var $Vv = [1, 48];
46
+ var $Vw = [1, 50];
47
+ var $Vx = [1, 51];
48
+ var $Vy = [1, 52];
49
+ var $Vz = [1, 53];
50
+ var $VA = [1, 54];
51
+ var $VB = [1, 55];
52
+ var $VC = [1, 56];
53
+ var $VD = [1, 57];
54
+ var $VE = [1, 58];
55
+ var $VF = [1, 59];
56
+ var $VG = [1, 60];
57
+ var $VH = [14, 42];
58
+ var $VI = [
59
+ 14,
60
+ 34,
61
+ 36,
62
+ 37,
63
+ 38,
64
+ 39,
65
+ 40,
66
+ 41,
67
+ 42,
68
+ 44,
69
+ 45,
70
+ 46,
71
+ 47,
72
+ 48,
73
+ 49,
74
+ 50,
75
+ 51,
76
+ 52,
77
+ 53,
78
+ 54,
79
+ 55,
80
+ 56,
81
+ 57,
82
+ 58,
83
+ 59,
84
+ 60,
85
+ 61,
86
+ 62,
87
+ 63,
88
+ 64,
89
+ 65,
90
+ 66,
91
+ 67,
92
+ 68,
93
+ 69,
94
+ 70,
95
+ 71,
96
+ 72,
97
+ 73,
98
+ 74
99
+ ];
100
+ var $VJ = [
101
+ 12,
102
+ 14,
103
+ 34,
104
+ 36,
105
+ 37,
106
+ 38,
107
+ 39,
108
+ 40,
109
+ 41,
110
+ 42,
111
+ 44,
112
+ 45,
113
+ 46,
114
+ 47,
115
+ 48,
116
+ 49,
117
+ 50,
118
+ 51,
119
+ 52,
120
+ 53,
121
+ 54,
122
+ 55,
123
+ 56,
124
+ 57,
125
+ 58,
126
+ 59,
127
+ 60,
128
+ 61,
129
+ 62,
130
+ 63,
131
+ 64,
132
+ 65,
133
+ 66,
134
+ 67,
135
+ 68,
136
+ 69,
137
+ 70,
138
+ 71,
139
+ 72,
140
+ 73,
141
+ 74
142
+ ];
143
+ var $VK = [1, 82];
144
+ var $VL = [1, 83];
145
+ var $VM = [1, 84];
146
+ var $VN = [1, 85];
147
+ var $VO = [
148
+ 12,
149
+ 14,
150
+ 42
151
+ ];
152
+ var $VP = [
153
+ 12,
154
+ 14,
155
+ 33,
156
+ 42
157
+ ];
158
+ var $VQ = [
159
+ 12,
160
+ 14,
161
+ 33,
162
+ 42,
163
+ 76,
164
+ 77,
165
+ 79,
166
+ 80
167
+ ];
168
+ var $VR = [12, 33];
169
+ var $VS = [
170
+ 34,
171
+ 36,
172
+ 37,
173
+ 38,
174
+ 39,
175
+ 40,
176
+ 41,
177
+ 44,
178
+ 45,
179
+ 46,
180
+ 47,
181
+ 48,
182
+ 49,
183
+ 50,
184
+ 51,
185
+ 52,
186
+ 53,
187
+ 54,
188
+ 55,
189
+ 56,
190
+ 57,
191
+ 58,
192
+ 59,
193
+ 60,
194
+ 61,
195
+ 62,
196
+ 63,
197
+ 64,
198
+ 65,
199
+ 66,
200
+ 67,
201
+ 68,
202
+ 69,
203
+ 70,
204
+ 71,
205
+ 72,
206
+ 73,
207
+ 74
208
+ ];
209
+ var parser2 = {
210
+ trace: /* @__PURE__ */ __name$1(function trace() {}, "trace"),
211
+ yy: {},
212
+ symbols_: {
213
+ "error": 2,
214
+ "start": 3,
215
+ "mermaidDoc": 4,
216
+ "direction": 5,
217
+ "direction_tb": 6,
218
+ "direction_bt": 7,
219
+ "direction_rl": 8,
220
+ "direction_lr": 9,
221
+ "graphConfig": 10,
222
+ "C4_CONTEXT": 11,
223
+ "NEWLINE": 12,
224
+ "statements": 13,
225
+ "EOF": 14,
226
+ "C4_CONTAINER": 15,
227
+ "C4_COMPONENT": 16,
228
+ "C4_DYNAMIC": 17,
229
+ "C4_DEPLOYMENT": 18,
230
+ "otherStatements": 19,
231
+ "diagramStatements": 20,
232
+ "otherStatement": 21,
233
+ "title": 22,
234
+ "accDescription": 23,
235
+ "acc_title": 24,
236
+ "acc_title_value": 25,
237
+ "acc_descr": 26,
238
+ "acc_descr_value": 27,
239
+ "acc_descr_multiline_value": 28,
240
+ "boundaryStatement": 29,
241
+ "boundaryStartStatement": 30,
242
+ "boundaryStopStatement": 31,
243
+ "boundaryStart": 32,
244
+ "LBRACE": 33,
245
+ "ENTERPRISE_BOUNDARY": 34,
246
+ "attributes": 35,
247
+ "SYSTEM_BOUNDARY": 36,
248
+ "BOUNDARY": 37,
249
+ "CONTAINER_BOUNDARY": 38,
250
+ "NODE": 39,
251
+ "NODE_L": 40,
252
+ "NODE_R": 41,
253
+ "RBRACE": 42,
254
+ "diagramStatement": 43,
255
+ "PERSON": 44,
256
+ "PERSON_EXT": 45,
257
+ "SYSTEM": 46,
258
+ "SYSTEM_DB": 47,
259
+ "SYSTEM_QUEUE": 48,
260
+ "SYSTEM_EXT": 49,
261
+ "SYSTEM_EXT_DB": 50,
262
+ "SYSTEM_EXT_QUEUE": 51,
263
+ "CONTAINER": 52,
264
+ "CONTAINER_DB": 53,
265
+ "CONTAINER_QUEUE": 54,
266
+ "CONTAINER_EXT": 55,
267
+ "CONTAINER_EXT_DB": 56,
268
+ "CONTAINER_EXT_QUEUE": 57,
269
+ "COMPONENT": 58,
270
+ "COMPONENT_DB": 59,
271
+ "COMPONENT_QUEUE": 60,
272
+ "COMPONENT_EXT": 61,
273
+ "COMPONENT_EXT_DB": 62,
274
+ "COMPONENT_EXT_QUEUE": 63,
275
+ "REL": 64,
276
+ "BIREL": 65,
277
+ "REL_U": 66,
278
+ "REL_D": 67,
279
+ "REL_L": 68,
280
+ "REL_R": 69,
281
+ "REL_B": 70,
282
+ "REL_INDEX": 71,
283
+ "UPDATE_EL_STYLE": 72,
284
+ "UPDATE_REL_STYLE": 73,
285
+ "UPDATE_LAYOUT_CONFIG": 74,
286
+ "attribute": 75,
287
+ "STR": 76,
288
+ "STR_KEY": 77,
289
+ "STR_VALUE": 78,
290
+ "ATTRIBUTE": 79,
291
+ "ATTRIBUTE_EMPTY": 80,
292
+ "$accept": 0,
293
+ "$end": 1
294
+ },
295
+ terminals_: {
296
+ 2: "error",
297
+ 6: "direction_tb",
298
+ 7: "direction_bt",
299
+ 8: "direction_rl",
300
+ 9: "direction_lr",
301
+ 11: "C4_CONTEXT",
302
+ 12: "NEWLINE",
303
+ 14: "EOF",
304
+ 15: "C4_CONTAINER",
305
+ 16: "C4_COMPONENT",
306
+ 17: "C4_DYNAMIC",
307
+ 18: "C4_DEPLOYMENT",
308
+ 22: "title",
309
+ 23: "accDescription",
310
+ 24: "acc_title",
311
+ 25: "acc_title_value",
312
+ 26: "acc_descr",
313
+ 27: "acc_descr_value",
314
+ 28: "acc_descr_multiline_value",
315
+ 33: "LBRACE",
316
+ 34: "ENTERPRISE_BOUNDARY",
317
+ 36: "SYSTEM_BOUNDARY",
318
+ 37: "BOUNDARY",
319
+ 38: "CONTAINER_BOUNDARY",
320
+ 39: "NODE",
321
+ 40: "NODE_L",
322
+ 41: "NODE_R",
323
+ 42: "RBRACE",
324
+ 44: "PERSON",
325
+ 45: "PERSON_EXT",
326
+ 46: "SYSTEM",
327
+ 47: "SYSTEM_DB",
328
+ 48: "SYSTEM_QUEUE",
329
+ 49: "SYSTEM_EXT",
330
+ 50: "SYSTEM_EXT_DB",
331
+ 51: "SYSTEM_EXT_QUEUE",
332
+ 52: "CONTAINER",
333
+ 53: "CONTAINER_DB",
334
+ 54: "CONTAINER_QUEUE",
335
+ 55: "CONTAINER_EXT",
336
+ 56: "CONTAINER_EXT_DB",
337
+ 57: "CONTAINER_EXT_QUEUE",
338
+ 58: "COMPONENT",
339
+ 59: "COMPONENT_DB",
340
+ 60: "COMPONENT_QUEUE",
341
+ 61: "COMPONENT_EXT",
342
+ 62: "COMPONENT_EXT_DB",
343
+ 63: "COMPONENT_EXT_QUEUE",
344
+ 64: "REL",
345
+ 65: "BIREL",
346
+ 66: "REL_U",
347
+ 67: "REL_D",
348
+ 68: "REL_L",
349
+ 69: "REL_R",
350
+ 70: "REL_B",
351
+ 71: "REL_INDEX",
352
+ 72: "UPDATE_EL_STYLE",
353
+ 73: "UPDATE_REL_STYLE",
354
+ 74: "UPDATE_LAYOUT_CONFIG",
355
+ 76: "STR",
356
+ 77: "STR_KEY",
357
+ 78: "STR_VALUE",
358
+ 79: "ATTRIBUTE",
359
+ 80: "ATTRIBUTE_EMPTY"
360
+ },
361
+ productions_: [
362
+ 0,
363
+ [3, 1],
364
+ [3, 1],
365
+ [5, 1],
366
+ [5, 1],
367
+ [5, 1],
368
+ [5, 1],
369
+ [4, 1],
370
+ [10, 4],
371
+ [10, 4],
372
+ [10, 4],
373
+ [10, 4],
374
+ [10, 4],
375
+ [13, 1],
376
+ [13, 1],
377
+ [13, 2],
378
+ [19, 1],
379
+ [19, 2],
380
+ [19, 3],
381
+ [21, 1],
382
+ [21, 1],
383
+ [21, 2],
384
+ [21, 2],
385
+ [21, 1],
386
+ [29, 3],
387
+ [30, 3],
388
+ [30, 3],
389
+ [30, 4],
390
+ [32, 2],
391
+ [32, 2],
392
+ [32, 2],
393
+ [32, 2],
394
+ [32, 2],
395
+ [32, 2],
396
+ [32, 2],
397
+ [31, 1],
398
+ [20, 1],
399
+ [20, 2],
400
+ [20, 3],
401
+ [43, 2],
402
+ [43, 2],
403
+ [43, 2],
404
+ [43, 2],
405
+ [43, 2],
406
+ [43, 2],
407
+ [43, 2],
408
+ [43, 2],
409
+ [43, 2],
410
+ [43, 2],
411
+ [43, 2],
412
+ [43, 2],
413
+ [43, 2],
414
+ [43, 2],
415
+ [43, 2],
416
+ [43, 2],
417
+ [43, 2],
418
+ [43, 2],
419
+ [43, 2],
420
+ [43, 2],
421
+ [43, 1],
422
+ [43, 2],
423
+ [43, 2],
424
+ [43, 2],
425
+ [43, 2],
426
+ [43, 2],
427
+ [43, 2],
428
+ [43, 2],
429
+ [43, 2],
430
+ [43, 2],
431
+ [43, 2],
432
+ [43, 2],
433
+ [35, 1],
434
+ [35, 2],
435
+ [75, 1],
436
+ [75, 2],
437
+ [75, 1],
438
+ [75, 1]
439
+ ],
440
+ performAction: /* @__PURE__ */ __name$1(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
441
+ var $0 = $$.length - 1;
442
+ switch (yystate) {
443
+ case 3:
444
+ yy.setDirection("TB");
445
+ break;
446
+ case 4:
447
+ yy.setDirection("BT");
448
+ break;
449
+ case 5:
450
+ yy.setDirection("RL");
451
+ break;
452
+ case 6:
453
+ yy.setDirection("LR");
454
+ break;
455
+ case 8:
456
+ case 9:
457
+ case 10:
458
+ case 11:
459
+ case 12:
460
+ yy.setC4Type($$[$0 - 3]);
461
+ break;
462
+ case 19:
463
+ yy.setTitle($$[$0].substring(6));
464
+ this.$ = $$[$0].substring(6);
465
+ break;
466
+ case 20:
467
+ yy.setAccDescription($$[$0].substring(15));
468
+ this.$ = $$[$0].substring(15);
469
+ break;
470
+ case 21:
471
+ this.$ = $$[$0].trim();
472
+ yy.setTitle(this.$);
473
+ break;
474
+ case 22:
475
+ case 23:
476
+ this.$ = $$[$0].trim();
477
+ yy.setAccDescription(this.$);
478
+ break;
479
+ case 28:
480
+ $$[$0].splice(2, 0, "ENTERPRISE");
481
+ yy.addPersonOrSystemBoundary(...$$[$0]);
482
+ this.$ = $$[$0];
483
+ break;
484
+ case 29:
485
+ $$[$0].splice(2, 0, "SYSTEM");
486
+ yy.addPersonOrSystemBoundary(...$$[$0]);
487
+ this.$ = $$[$0];
488
+ break;
489
+ case 30:
490
+ yy.addPersonOrSystemBoundary(...$$[$0]);
491
+ this.$ = $$[$0];
492
+ break;
493
+ case 31:
494
+ $$[$0].splice(2, 0, "CONTAINER");
495
+ yy.addContainerBoundary(...$$[$0]);
496
+ this.$ = $$[$0];
497
+ break;
498
+ case 32:
499
+ yy.addDeploymentNode("node", ...$$[$0]);
500
+ this.$ = $$[$0];
501
+ break;
502
+ case 33:
503
+ yy.addDeploymentNode("nodeL", ...$$[$0]);
504
+ this.$ = $$[$0];
505
+ break;
506
+ case 34:
507
+ yy.addDeploymentNode("nodeR", ...$$[$0]);
508
+ this.$ = $$[$0];
509
+ break;
510
+ case 35:
511
+ yy.popBoundaryParseStack();
512
+ break;
513
+ case 39:
514
+ yy.addPersonOrSystem("person", ...$$[$0]);
515
+ this.$ = $$[$0];
516
+ break;
517
+ case 40:
518
+ yy.addPersonOrSystem("external_person", ...$$[$0]);
519
+ this.$ = $$[$0];
520
+ break;
521
+ case 41:
522
+ yy.addPersonOrSystem("system", ...$$[$0]);
523
+ this.$ = $$[$0];
524
+ break;
525
+ case 42:
526
+ yy.addPersonOrSystem("system_db", ...$$[$0]);
527
+ this.$ = $$[$0];
528
+ break;
529
+ case 43:
530
+ yy.addPersonOrSystem("system_queue", ...$$[$0]);
531
+ this.$ = $$[$0];
532
+ break;
533
+ case 44:
534
+ yy.addPersonOrSystem("external_system", ...$$[$0]);
535
+ this.$ = $$[$0];
536
+ break;
537
+ case 45:
538
+ yy.addPersonOrSystem("external_system_db", ...$$[$0]);
539
+ this.$ = $$[$0];
540
+ break;
541
+ case 46:
542
+ yy.addPersonOrSystem("external_system_queue", ...$$[$0]);
543
+ this.$ = $$[$0];
544
+ break;
545
+ case 47:
546
+ yy.addContainer("container", ...$$[$0]);
547
+ this.$ = $$[$0];
548
+ break;
549
+ case 48:
550
+ yy.addContainer("container_db", ...$$[$0]);
551
+ this.$ = $$[$0];
552
+ break;
553
+ case 49:
554
+ yy.addContainer("container_queue", ...$$[$0]);
555
+ this.$ = $$[$0];
556
+ break;
557
+ case 50:
558
+ yy.addContainer("external_container", ...$$[$0]);
559
+ this.$ = $$[$0];
560
+ break;
561
+ case 51:
562
+ yy.addContainer("external_container_db", ...$$[$0]);
563
+ this.$ = $$[$0];
564
+ break;
565
+ case 52:
566
+ yy.addContainer("external_container_queue", ...$$[$0]);
567
+ this.$ = $$[$0];
568
+ break;
569
+ case 53:
570
+ yy.addComponent("component", ...$$[$0]);
571
+ this.$ = $$[$0];
572
+ break;
573
+ case 54:
574
+ yy.addComponent("component_db", ...$$[$0]);
575
+ this.$ = $$[$0];
576
+ break;
577
+ case 55:
578
+ yy.addComponent("component_queue", ...$$[$0]);
579
+ this.$ = $$[$0];
580
+ break;
581
+ case 56:
582
+ yy.addComponent("external_component", ...$$[$0]);
583
+ this.$ = $$[$0];
584
+ break;
585
+ case 57:
586
+ yy.addComponent("external_component_db", ...$$[$0]);
587
+ this.$ = $$[$0];
588
+ break;
589
+ case 58:
590
+ yy.addComponent("external_component_queue", ...$$[$0]);
591
+ this.$ = $$[$0];
592
+ break;
593
+ case 60:
594
+ yy.addRel("rel", ...$$[$0]);
595
+ this.$ = $$[$0];
596
+ break;
597
+ case 61:
598
+ yy.addRel("birel", ...$$[$0]);
599
+ this.$ = $$[$0];
600
+ break;
601
+ case 62:
602
+ yy.addRel("rel_u", ...$$[$0]);
603
+ this.$ = $$[$0];
604
+ break;
605
+ case 63:
606
+ yy.addRel("rel_d", ...$$[$0]);
607
+ this.$ = $$[$0];
608
+ break;
609
+ case 64:
610
+ yy.addRel("rel_l", ...$$[$0]);
611
+ this.$ = $$[$0];
612
+ break;
613
+ case 65:
614
+ yy.addRel("rel_r", ...$$[$0]);
615
+ this.$ = $$[$0];
616
+ break;
617
+ case 66:
618
+ yy.addRel("rel_b", ...$$[$0]);
619
+ this.$ = $$[$0];
620
+ break;
621
+ case 67:
622
+ $$[$0].splice(0, 1);
623
+ yy.addRel("rel", ...$$[$0]);
624
+ this.$ = $$[$0];
625
+ break;
626
+ case 68:
627
+ yy.updateElStyle("update_el_style", ...$$[$0]);
628
+ this.$ = $$[$0];
629
+ break;
630
+ case 69:
631
+ yy.updateRelStyle("update_rel_style", ...$$[$0]);
632
+ this.$ = $$[$0];
633
+ break;
634
+ case 70:
635
+ yy.updateLayoutConfig("update_layout_config", ...$$[$0]);
636
+ this.$ = $$[$0];
637
+ break;
638
+ case 71:
639
+ this.$ = [$$[$0]];
640
+ break;
641
+ case 72:
642
+ $$[$0].unshift($$[$0 - 1]);
643
+ this.$ = $$[$0];
644
+ break;
645
+ case 73:
646
+ case 75:
647
+ this.$ = $$[$0].trim();
648
+ break;
649
+ case 74:
650
+ let kv = {};
651
+ kv[$$[$0 - 1].trim()] = $$[$0].trim();
652
+ this.$ = kv;
653
+ break;
654
+ case 76:
655
+ this.$ = "";
656
+ break;
657
+ }
658
+ }, "anonymous"),
659
+ table: [
660
+ {
661
+ 3: 1,
662
+ 4: 2,
663
+ 5: 3,
664
+ 6: [1, 5],
665
+ 7: [1, 6],
666
+ 8: [1, 7],
667
+ 9: [1, 8],
668
+ 10: 4,
669
+ 11: [1, 9],
670
+ 15: [1, 10],
671
+ 16: [1, 11],
672
+ 17: [1, 12],
673
+ 18: [1, 13]
674
+ },
675
+ { 1: [3] },
676
+ { 1: [2, 1] },
677
+ { 1: [2, 2] },
678
+ { 1: [2, 7] },
679
+ { 1: [2, 3] },
680
+ { 1: [2, 4] },
681
+ { 1: [2, 5] },
682
+ { 1: [2, 6] },
683
+ { 12: [1, 14] },
684
+ { 12: [1, 15] },
685
+ { 12: [1, 16] },
686
+ { 12: [1, 17] },
687
+ { 12: [1, 18] },
688
+ {
689
+ 13: 19,
690
+ 19: 20,
691
+ 20: 21,
692
+ 21: 22,
693
+ 22: $V0,
694
+ 23: $V1,
695
+ 24: $V2,
696
+ 26: $V3,
697
+ 28: $V4,
698
+ 29: 49,
699
+ 30: 61,
700
+ 32: 62,
701
+ 34: $V5,
702
+ 36: $V6,
703
+ 37: $V7,
704
+ 38: $V8,
705
+ 39: $V9,
706
+ 40: $Va,
707
+ 41: $Vb,
708
+ 43: 23,
709
+ 44: $Vc,
710
+ 45: $Vd,
711
+ 46: $Ve,
712
+ 47: $Vf,
713
+ 48: $Vg,
714
+ 49: $Vh,
715
+ 50: $Vi,
716
+ 51: $Vj,
717
+ 52: $Vk,
718
+ 53: $Vl,
719
+ 54: $Vm,
720
+ 55: $Vn,
721
+ 56: $Vo,
722
+ 57: $Vp,
723
+ 58: $Vq,
724
+ 59: $Vr,
725
+ 60: $Vs,
726
+ 61: $Vt,
727
+ 62: $Vu,
728
+ 63: $Vv,
729
+ 64: $Vw,
730
+ 65: $Vx,
731
+ 66: $Vy,
732
+ 67: $Vz,
733
+ 68: $VA,
734
+ 69: $VB,
735
+ 70: $VC,
736
+ 71: $VD,
737
+ 72: $VE,
738
+ 73: $VF,
739
+ 74: $VG
740
+ },
741
+ {
742
+ 13: 70,
743
+ 19: 20,
744
+ 20: 21,
745
+ 21: 22,
746
+ 22: $V0,
747
+ 23: $V1,
748
+ 24: $V2,
749
+ 26: $V3,
750
+ 28: $V4,
751
+ 29: 49,
752
+ 30: 61,
753
+ 32: 62,
754
+ 34: $V5,
755
+ 36: $V6,
756
+ 37: $V7,
757
+ 38: $V8,
758
+ 39: $V9,
759
+ 40: $Va,
760
+ 41: $Vb,
761
+ 43: 23,
762
+ 44: $Vc,
763
+ 45: $Vd,
764
+ 46: $Ve,
765
+ 47: $Vf,
766
+ 48: $Vg,
767
+ 49: $Vh,
768
+ 50: $Vi,
769
+ 51: $Vj,
770
+ 52: $Vk,
771
+ 53: $Vl,
772
+ 54: $Vm,
773
+ 55: $Vn,
774
+ 56: $Vo,
775
+ 57: $Vp,
776
+ 58: $Vq,
777
+ 59: $Vr,
778
+ 60: $Vs,
779
+ 61: $Vt,
780
+ 62: $Vu,
781
+ 63: $Vv,
782
+ 64: $Vw,
783
+ 65: $Vx,
784
+ 66: $Vy,
785
+ 67: $Vz,
786
+ 68: $VA,
787
+ 69: $VB,
788
+ 70: $VC,
789
+ 71: $VD,
790
+ 72: $VE,
791
+ 73: $VF,
792
+ 74: $VG
793
+ },
794
+ {
795
+ 13: 71,
796
+ 19: 20,
797
+ 20: 21,
798
+ 21: 22,
799
+ 22: $V0,
800
+ 23: $V1,
801
+ 24: $V2,
802
+ 26: $V3,
803
+ 28: $V4,
804
+ 29: 49,
805
+ 30: 61,
806
+ 32: 62,
807
+ 34: $V5,
808
+ 36: $V6,
809
+ 37: $V7,
810
+ 38: $V8,
811
+ 39: $V9,
812
+ 40: $Va,
813
+ 41: $Vb,
814
+ 43: 23,
815
+ 44: $Vc,
816
+ 45: $Vd,
817
+ 46: $Ve,
818
+ 47: $Vf,
819
+ 48: $Vg,
820
+ 49: $Vh,
821
+ 50: $Vi,
822
+ 51: $Vj,
823
+ 52: $Vk,
824
+ 53: $Vl,
825
+ 54: $Vm,
826
+ 55: $Vn,
827
+ 56: $Vo,
828
+ 57: $Vp,
829
+ 58: $Vq,
830
+ 59: $Vr,
831
+ 60: $Vs,
832
+ 61: $Vt,
833
+ 62: $Vu,
834
+ 63: $Vv,
835
+ 64: $Vw,
836
+ 65: $Vx,
837
+ 66: $Vy,
838
+ 67: $Vz,
839
+ 68: $VA,
840
+ 69: $VB,
841
+ 70: $VC,
842
+ 71: $VD,
843
+ 72: $VE,
844
+ 73: $VF,
845
+ 74: $VG
846
+ },
847
+ {
848
+ 13: 72,
849
+ 19: 20,
850
+ 20: 21,
851
+ 21: 22,
852
+ 22: $V0,
853
+ 23: $V1,
854
+ 24: $V2,
855
+ 26: $V3,
856
+ 28: $V4,
857
+ 29: 49,
858
+ 30: 61,
859
+ 32: 62,
860
+ 34: $V5,
861
+ 36: $V6,
862
+ 37: $V7,
863
+ 38: $V8,
864
+ 39: $V9,
865
+ 40: $Va,
866
+ 41: $Vb,
867
+ 43: 23,
868
+ 44: $Vc,
869
+ 45: $Vd,
870
+ 46: $Ve,
871
+ 47: $Vf,
872
+ 48: $Vg,
873
+ 49: $Vh,
874
+ 50: $Vi,
875
+ 51: $Vj,
876
+ 52: $Vk,
877
+ 53: $Vl,
878
+ 54: $Vm,
879
+ 55: $Vn,
880
+ 56: $Vo,
881
+ 57: $Vp,
882
+ 58: $Vq,
883
+ 59: $Vr,
884
+ 60: $Vs,
885
+ 61: $Vt,
886
+ 62: $Vu,
887
+ 63: $Vv,
888
+ 64: $Vw,
889
+ 65: $Vx,
890
+ 66: $Vy,
891
+ 67: $Vz,
892
+ 68: $VA,
893
+ 69: $VB,
894
+ 70: $VC,
895
+ 71: $VD,
896
+ 72: $VE,
897
+ 73: $VF,
898
+ 74: $VG
899
+ },
900
+ {
901
+ 13: 73,
902
+ 19: 20,
903
+ 20: 21,
904
+ 21: 22,
905
+ 22: $V0,
906
+ 23: $V1,
907
+ 24: $V2,
908
+ 26: $V3,
909
+ 28: $V4,
910
+ 29: 49,
911
+ 30: 61,
912
+ 32: 62,
913
+ 34: $V5,
914
+ 36: $V6,
915
+ 37: $V7,
916
+ 38: $V8,
917
+ 39: $V9,
918
+ 40: $Va,
919
+ 41: $Vb,
920
+ 43: 23,
921
+ 44: $Vc,
922
+ 45: $Vd,
923
+ 46: $Ve,
924
+ 47: $Vf,
925
+ 48: $Vg,
926
+ 49: $Vh,
927
+ 50: $Vi,
928
+ 51: $Vj,
929
+ 52: $Vk,
930
+ 53: $Vl,
931
+ 54: $Vm,
932
+ 55: $Vn,
933
+ 56: $Vo,
934
+ 57: $Vp,
935
+ 58: $Vq,
936
+ 59: $Vr,
937
+ 60: $Vs,
938
+ 61: $Vt,
939
+ 62: $Vu,
940
+ 63: $Vv,
941
+ 64: $Vw,
942
+ 65: $Vx,
943
+ 66: $Vy,
944
+ 67: $Vz,
945
+ 68: $VA,
946
+ 69: $VB,
947
+ 70: $VC,
948
+ 71: $VD,
949
+ 72: $VE,
950
+ 73: $VF,
951
+ 74: $VG
952
+ },
953
+ { 14: [1, 74] },
954
+ o($VH, [2, 13], {
955
+ 43: 23,
956
+ 29: 49,
957
+ 30: 61,
958
+ 32: 62,
959
+ 20: 75,
960
+ 34: $V5,
961
+ 36: $V6,
962
+ 37: $V7,
963
+ 38: $V8,
964
+ 39: $V9,
965
+ 40: $Va,
966
+ 41: $Vb,
967
+ 44: $Vc,
968
+ 45: $Vd,
969
+ 46: $Ve,
970
+ 47: $Vf,
971
+ 48: $Vg,
972
+ 49: $Vh,
973
+ 50: $Vi,
974
+ 51: $Vj,
975
+ 52: $Vk,
976
+ 53: $Vl,
977
+ 54: $Vm,
978
+ 55: $Vn,
979
+ 56: $Vo,
980
+ 57: $Vp,
981
+ 58: $Vq,
982
+ 59: $Vr,
983
+ 60: $Vs,
984
+ 61: $Vt,
985
+ 62: $Vu,
986
+ 63: $Vv,
987
+ 64: $Vw,
988
+ 65: $Vx,
989
+ 66: $Vy,
990
+ 67: $Vz,
991
+ 68: $VA,
992
+ 69: $VB,
993
+ 70: $VC,
994
+ 71: $VD,
995
+ 72: $VE,
996
+ 73: $VF,
997
+ 74: $VG
998
+ }),
999
+ o($VH, [2, 14]),
1000
+ o($VI, [2, 16], { 12: [1, 76] }),
1001
+ o($VH, [2, 36], { 12: [1, 77] }),
1002
+ o($VJ, [2, 19]),
1003
+ o($VJ, [2, 20]),
1004
+ { 25: [1, 78] },
1005
+ { 27: [1, 79] },
1006
+ o($VJ, [2, 23]),
1007
+ {
1008
+ 35: 80,
1009
+ 75: 81,
1010
+ 76: $VK,
1011
+ 77: $VL,
1012
+ 79: $VM,
1013
+ 80: $VN
1014
+ },
1015
+ {
1016
+ 35: 86,
1017
+ 75: 81,
1018
+ 76: $VK,
1019
+ 77: $VL,
1020
+ 79: $VM,
1021
+ 80: $VN
1022
+ },
1023
+ {
1024
+ 35: 87,
1025
+ 75: 81,
1026
+ 76: $VK,
1027
+ 77: $VL,
1028
+ 79: $VM,
1029
+ 80: $VN
1030
+ },
1031
+ {
1032
+ 35: 88,
1033
+ 75: 81,
1034
+ 76: $VK,
1035
+ 77: $VL,
1036
+ 79: $VM,
1037
+ 80: $VN
1038
+ },
1039
+ {
1040
+ 35: 89,
1041
+ 75: 81,
1042
+ 76: $VK,
1043
+ 77: $VL,
1044
+ 79: $VM,
1045
+ 80: $VN
1046
+ },
1047
+ {
1048
+ 35: 90,
1049
+ 75: 81,
1050
+ 76: $VK,
1051
+ 77: $VL,
1052
+ 79: $VM,
1053
+ 80: $VN
1054
+ },
1055
+ {
1056
+ 35: 91,
1057
+ 75: 81,
1058
+ 76: $VK,
1059
+ 77: $VL,
1060
+ 79: $VM,
1061
+ 80: $VN
1062
+ },
1063
+ {
1064
+ 35: 92,
1065
+ 75: 81,
1066
+ 76: $VK,
1067
+ 77: $VL,
1068
+ 79: $VM,
1069
+ 80: $VN
1070
+ },
1071
+ {
1072
+ 35: 93,
1073
+ 75: 81,
1074
+ 76: $VK,
1075
+ 77: $VL,
1076
+ 79: $VM,
1077
+ 80: $VN
1078
+ },
1079
+ {
1080
+ 35: 94,
1081
+ 75: 81,
1082
+ 76: $VK,
1083
+ 77: $VL,
1084
+ 79: $VM,
1085
+ 80: $VN
1086
+ },
1087
+ {
1088
+ 35: 95,
1089
+ 75: 81,
1090
+ 76: $VK,
1091
+ 77: $VL,
1092
+ 79: $VM,
1093
+ 80: $VN
1094
+ },
1095
+ {
1096
+ 35: 96,
1097
+ 75: 81,
1098
+ 76: $VK,
1099
+ 77: $VL,
1100
+ 79: $VM,
1101
+ 80: $VN
1102
+ },
1103
+ {
1104
+ 35: 97,
1105
+ 75: 81,
1106
+ 76: $VK,
1107
+ 77: $VL,
1108
+ 79: $VM,
1109
+ 80: $VN
1110
+ },
1111
+ {
1112
+ 35: 98,
1113
+ 75: 81,
1114
+ 76: $VK,
1115
+ 77: $VL,
1116
+ 79: $VM,
1117
+ 80: $VN
1118
+ },
1119
+ {
1120
+ 35: 99,
1121
+ 75: 81,
1122
+ 76: $VK,
1123
+ 77: $VL,
1124
+ 79: $VM,
1125
+ 80: $VN
1126
+ },
1127
+ {
1128
+ 35: 100,
1129
+ 75: 81,
1130
+ 76: $VK,
1131
+ 77: $VL,
1132
+ 79: $VM,
1133
+ 80: $VN
1134
+ },
1135
+ {
1136
+ 35: 101,
1137
+ 75: 81,
1138
+ 76: $VK,
1139
+ 77: $VL,
1140
+ 79: $VM,
1141
+ 80: $VN
1142
+ },
1143
+ {
1144
+ 35: 102,
1145
+ 75: 81,
1146
+ 76: $VK,
1147
+ 77: $VL,
1148
+ 79: $VM,
1149
+ 80: $VN
1150
+ },
1151
+ {
1152
+ 35: 103,
1153
+ 75: 81,
1154
+ 76: $VK,
1155
+ 77: $VL,
1156
+ 79: $VM,
1157
+ 80: $VN
1158
+ },
1159
+ {
1160
+ 35: 104,
1161
+ 75: 81,
1162
+ 76: $VK,
1163
+ 77: $VL,
1164
+ 79: $VM,
1165
+ 80: $VN
1166
+ },
1167
+ o($VO, [2, 59]),
1168
+ {
1169
+ 35: 105,
1170
+ 75: 81,
1171
+ 76: $VK,
1172
+ 77: $VL,
1173
+ 79: $VM,
1174
+ 80: $VN
1175
+ },
1176
+ {
1177
+ 35: 106,
1178
+ 75: 81,
1179
+ 76: $VK,
1180
+ 77: $VL,
1181
+ 79: $VM,
1182
+ 80: $VN
1183
+ },
1184
+ {
1185
+ 35: 107,
1186
+ 75: 81,
1187
+ 76: $VK,
1188
+ 77: $VL,
1189
+ 79: $VM,
1190
+ 80: $VN
1191
+ },
1192
+ {
1193
+ 35: 108,
1194
+ 75: 81,
1195
+ 76: $VK,
1196
+ 77: $VL,
1197
+ 79: $VM,
1198
+ 80: $VN
1199
+ },
1200
+ {
1201
+ 35: 109,
1202
+ 75: 81,
1203
+ 76: $VK,
1204
+ 77: $VL,
1205
+ 79: $VM,
1206
+ 80: $VN
1207
+ },
1208
+ {
1209
+ 35: 110,
1210
+ 75: 81,
1211
+ 76: $VK,
1212
+ 77: $VL,
1213
+ 79: $VM,
1214
+ 80: $VN
1215
+ },
1216
+ {
1217
+ 35: 111,
1218
+ 75: 81,
1219
+ 76: $VK,
1220
+ 77: $VL,
1221
+ 79: $VM,
1222
+ 80: $VN
1223
+ },
1224
+ {
1225
+ 35: 112,
1226
+ 75: 81,
1227
+ 76: $VK,
1228
+ 77: $VL,
1229
+ 79: $VM,
1230
+ 80: $VN
1231
+ },
1232
+ {
1233
+ 35: 113,
1234
+ 75: 81,
1235
+ 76: $VK,
1236
+ 77: $VL,
1237
+ 79: $VM,
1238
+ 80: $VN
1239
+ },
1240
+ {
1241
+ 35: 114,
1242
+ 75: 81,
1243
+ 76: $VK,
1244
+ 77: $VL,
1245
+ 79: $VM,
1246
+ 80: $VN
1247
+ },
1248
+ {
1249
+ 35: 115,
1250
+ 75: 81,
1251
+ 76: $VK,
1252
+ 77: $VL,
1253
+ 79: $VM,
1254
+ 80: $VN
1255
+ },
1256
+ {
1257
+ 20: 116,
1258
+ 29: 49,
1259
+ 30: 61,
1260
+ 32: 62,
1261
+ 34: $V5,
1262
+ 36: $V6,
1263
+ 37: $V7,
1264
+ 38: $V8,
1265
+ 39: $V9,
1266
+ 40: $Va,
1267
+ 41: $Vb,
1268
+ 43: 23,
1269
+ 44: $Vc,
1270
+ 45: $Vd,
1271
+ 46: $Ve,
1272
+ 47: $Vf,
1273
+ 48: $Vg,
1274
+ 49: $Vh,
1275
+ 50: $Vi,
1276
+ 51: $Vj,
1277
+ 52: $Vk,
1278
+ 53: $Vl,
1279
+ 54: $Vm,
1280
+ 55: $Vn,
1281
+ 56: $Vo,
1282
+ 57: $Vp,
1283
+ 58: $Vq,
1284
+ 59: $Vr,
1285
+ 60: $Vs,
1286
+ 61: $Vt,
1287
+ 62: $Vu,
1288
+ 63: $Vv,
1289
+ 64: $Vw,
1290
+ 65: $Vx,
1291
+ 66: $Vy,
1292
+ 67: $Vz,
1293
+ 68: $VA,
1294
+ 69: $VB,
1295
+ 70: $VC,
1296
+ 71: $VD,
1297
+ 72: $VE,
1298
+ 73: $VF,
1299
+ 74: $VG
1300
+ },
1301
+ {
1302
+ 12: [1, 118],
1303
+ 33: [1, 117]
1304
+ },
1305
+ {
1306
+ 35: 119,
1307
+ 75: 81,
1308
+ 76: $VK,
1309
+ 77: $VL,
1310
+ 79: $VM,
1311
+ 80: $VN
1312
+ },
1313
+ {
1314
+ 35: 120,
1315
+ 75: 81,
1316
+ 76: $VK,
1317
+ 77: $VL,
1318
+ 79: $VM,
1319
+ 80: $VN
1320
+ },
1321
+ {
1322
+ 35: 121,
1323
+ 75: 81,
1324
+ 76: $VK,
1325
+ 77: $VL,
1326
+ 79: $VM,
1327
+ 80: $VN
1328
+ },
1329
+ {
1330
+ 35: 122,
1331
+ 75: 81,
1332
+ 76: $VK,
1333
+ 77: $VL,
1334
+ 79: $VM,
1335
+ 80: $VN
1336
+ },
1337
+ {
1338
+ 35: 123,
1339
+ 75: 81,
1340
+ 76: $VK,
1341
+ 77: $VL,
1342
+ 79: $VM,
1343
+ 80: $VN
1344
+ },
1345
+ {
1346
+ 35: 124,
1347
+ 75: 81,
1348
+ 76: $VK,
1349
+ 77: $VL,
1350
+ 79: $VM,
1351
+ 80: $VN
1352
+ },
1353
+ {
1354
+ 35: 125,
1355
+ 75: 81,
1356
+ 76: $VK,
1357
+ 77: $VL,
1358
+ 79: $VM,
1359
+ 80: $VN
1360
+ },
1361
+ { 14: [1, 126] },
1362
+ { 14: [1, 127] },
1363
+ { 14: [1, 128] },
1364
+ { 14: [1, 129] },
1365
+ { 1: [2, 8] },
1366
+ o($VH, [2, 15]),
1367
+ o($VI, [2, 17], {
1368
+ 21: 22,
1369
+ 19: 130,
1370
+ 22: $V0,
1371
+ 23: $V1,
1372
+ 24: $V2,
1373
+ 26: $V3,
1374
+ 28: $V4
1375
+ }),
1376
+ o($VH, [2, 37], {
1377
+ 19: 20,
1378
+ 20: 21,
1379
+ 21: 22,
1380
+ 43: 23,
1381
+ 29: 49,
1382
+ 30: 61,
1383
+ 32: 62,
1384
+ 13: 131,
1385
+ 22: $V0,
1386
+ 23: $V1,
1387
+ 24: $V2,
1388
+ 26: $V3,
1389
+ 28: $V4,
1390
+ 34: $V5,
1391
+ 36: $V6,
1392
+ 37: $V7,
1393
+ 38: $V8,
1394
+ 39: $V9,
1395
+ 40: $Va,
1396
+ 41: $Vb,
1397
+ 44: $Vc,
1398
+ 45: $Vd,
1399
+ 46: $Ve,
1400
+ 47: $Vf,
1401
+ 48: $Vg,
1402
+ 49: $Vh,
1403
+ 50: $Vi,
1404
+ 51: $Vj,
1405
+ 52: $Vk,
1406
+ 53: $Vl,
1407
+ 54: $Vm,
1408
+ 55: $Vn,
1409
+ 56: $Vo,
1410
+ 57: $Vp,
1411
+ 58: $Vq,
1412
+ 59: $Vr,
1413
+ 60: $Vs,
1414
+ 61: $Vt,
1415
+ 62: $Vu,
1416
+ 63: $Vv,
1417
+ 64: $Vw,
1418
+ 65: $Vx,
1419
+ 66: $Vy,
1420
+ 67: $Vz,
1421
+ 68: $VA,
1422
+ 69: $VB,
1423
+ 70: $VC,
1424
+ 71: $VD,
1425
+ 72: $VE,
1426
+ 73: $VF,
1427
+ 74: $VG
1428
+ }),
1429
+ o($VJ, [2, 21]),
1430
+ o($VJ, [2, 22]),
1431
+ o($VO, [2, 39]),
1432
+ o($VP, [2, 71], {
1433
+ 75: 81,
1434
+ 35: 132,
1435
+ 76: $VK,
1436
+ 77: $VL,
1437
+ 79: $VM,
1438
+ 80: $VN
1439
+ }),
1440
+ o($VQ, [2, 73]),
1441
+ { 78: [1, 133] },
1442
+ o($VQ, [2, 75]),
1443
+ o($VQ, [2, 76]),
1444
+ o($VO, [2, 40]),
1445
+ o($VO, [2, 41]),
1446
+ o($VO, [2, 42]),
1447
+ o($VO, [2, 43]),
1448
+ o($VO, [2, 44]),
1449
+ o($VO, [2, 45]),
1450
+ o($VO, [2, 46]),
1451
+ o($VO, [2, 47]),
1452
+ o($VO, [2, 48]),
1453
+ o($VO, [2, 49]),
1454
+ o($VO, [2, 50]),
1455
+ o($VO, [2, 51]),
1456
+ o($VO, [2, 52]),
1457
+ o($VO, [2, 53]),
1458
+ o($VO, [2, 54]),
1459
+ o($VO, [2, 55]),
1460
+ o($VO, [2, 56]),
1461
+ o($VO, [2, 57]),
1462
+ o($VO, [2, 58]),
1463
+ o($VO, [2, 60]),
1464
+ o($VO, [2, 61]),
1465
+ o($VO, [2, 62]),
1466
+ o($VO, [2, 63]),
1467
+ o($VO, [2, 64]),
1468
+ o($VO, [2, 65]),
1469
+ o($VO, [2, 66]),
1470
+ o($VO, [2, 67]),
1471
+ o($VO, [2, 68]),
1472
+ o($VO, [2, 69]),
1473
+ o($VO, [2, 70]),
1474
+ {
1475
+ 31: 134,
1476
+ 42: [1, 135]
1477
+ },
1478
+ { 12: [1, 136] },
1479
+ { 33: [1, 137] },
1480
+ o($VR, [2, 28]),
1481
+ o($VR, [2, 29]),
1482
+ o($VR, [2, 30]),
1483
+ o($VR, [2, 31]),
1484
+ o($VR, [2, 32]),
1485
+ o($VR, [2, 33]),
1486
+ o($VR, [2, 34]),
1487
+ { 1: [2, 9] },
1488
+ { 1: [2, 10] },
1489
+ { 1: [2, 11] },
1490
+ { 1: [2, 12] },
1491
+ o($VI, [2, 18]),
1492
+ o($VH, [2, 38]),
1493
+ o($VP, [2, 72]),
1494
+ o($VQ, [2, 74]),
1495
+ o($VO, [2, 24]),
1496
+ o($VO, [2, 35]),
1497
+ o($VS, [2, 25]),
1498
+ o($VS, [2, 26], { 12: [1, 138] }),
1499
+ o($VS, [2, 27])
1500
+ ],
1501
+ defaultActions: {
1502
+ 2: [2, 1],
1503
+ 3: [2, 2],
1504
+ 4: [2, 7],
1505
+ 5: [2, 3],
1506
+ 6: [2, 4],
1507
+ 7: [2, 5],
1508
+ 8: [2, 6],
1509
+ 74: [2, 8],
1510
+ 126: [2, 9],
1511
+ 127: [2, 10],
1512
+ 128: [2, 11],
1513
+ 129: [2, 12]
1514
+ },
1515
+ parseError: /* @__PURE__ */ __name$1(function parseError(str, hash) {
1516
+ if (hash.recoverable) this.trace(str);
1517
+ else {
1518
+ var error = new Error(str);
1519
+ error.hash = hash;
1520
+ throw error;
1521
+ }
1522
+ }, "parseError"),
1523
+ parse: /* @__PURE__ */ __name$1(function parse(input) {
1524
+ var self = this;
1525
+ var stack = [0];
1526
+ var tstack = [];
1527
+ var vstack = [null];
1528
+ var lstack = [];
1529
+ var table = this.table;
1530
+ var yytext = "";
1531
+ var yylineno = 0;
1532
+ var yyleng = 0;
1533
+ var recovering = 0;
1534
+ var TERROR = 2;
1535
+ var EOF = 1;
1536
+ var args = lstack.slice.call(arguments, 1);
1537
+ var lexer2 = Object.create(this.lexer);
1538
+ var sharedState = { yy: {} };
1539
+ for (var k in this.yy) if (Object.prototype.hasOwnProperty.call(this.yy, k)) sharedState.yy[k] = this.yy[k];
1540
+ lexer2.setInput(input, sharedState.yy);
1541
+ sharedState.yy.lexer = lexer2;
1542
+ sharedState.yy.parser = this;
1543
+ if (typeof lexer2.yylloc == "undefined") lexer2.yylloc = {};
1544
+ var yyloc = lexer2.yylloc;
1545
+ lstack.push(yyloc);
1546
+ var ranges = lexer2.options && lexer2.options.ranges;
1547
+ if (typeof sharedState.yy.parseError === "function") this.parseError = sharedState.yy.parseError;
1548
+ else this.parseError = Object.getPrototypeOf(this).parseError;
1549
+ function popStack(n) {
1550
+ stack.length = stack.length - 2 * n;
1551
+ vstack.length = vstack.length - n;
1552
+ lstack.length = lstack.length - n;
1553
+ }
1554
+ __name$1(popStack, "popStack");
1555
+ function lex() {
1556
+ var token = tstack.pop() || lexer2.lex() || EOF;
1557
+ if (typeof token !== "number") {
1558
+ if (token instanceof Array) {
1559
+ tstack = token;
1560
+ token = tstack.pop();
1561
+ }
1562
+ token = self.symbols_[token] || token;
1563
+ }
1564
+ return token;
1565
+ }
1566
+ __name$1(lex, "lex");
1567
+ var symbol;
1568
+ var preErrorSymbol;
1569
+ var state;
1570
+ var action;
1571
+ var r;
1572
+ var yyval = {};
1573
+ var p;
1574
+ var len;
1575
+ var newState;
1576
+ var expected;
1577
+ while (true) {
1578
+ state = stack[stack.length - 1];
1579
+ if (this.defaultActions[state]) action = this.defaultActions[state];
1580
+ else {
1581
+ if (symbol === null || typeof symbol == "undefined") symbol = lex();
1582
+ action = table[state] && table[state][symbol];
1583
+ }
1584
+ if (typeof action === "undefined" || !action.length || !action[0]) {
1585
+ var errStr = "";
1586
+ expected = [];
1587
+ for (p in table[state]) if (this.terminals_[p] && p > TERROR) expected.push("'" + this.terminals_[p] + "'");
1588
+ if (lexer2.showPosition) errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1589
+ else errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1590
+ this.parseError(errStr, {
1591
+ text: lexer2.match,
1592
+ token: this.terminals_[symbol] || symbol,
1593
+ line: lexer2.yylineno,
1594
+ loc: yyloc,
1595
+ expected
1596
+ });
1597
+ }
1598
+ if (action[0] instanceof Array && action.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1599
+ switch (action[0]) {
1600
+ case 1:
1601
+ stack.push(symbol);
1602
+ vstack.push(lexer2.yytext);
1603
+ lstack.push(lexer2.yylloc);
1604
+ stack.push(action[1]);
1605
+ symbol = null;
1606
+ if (!preErrorSymbol) {
1607
+ yyleng = lexer2.yyleng;
1608
+ yytext = lexer2.yytext;
1609
+ yylineno = lexer2.yylineno;
1610
+ yyloc = lexer2.yylloc;
1611
+ if (recovering > 0) recovering--;
1612
+ } else {
1613
+ symbol = preErrorSymbol;
1614
+ preErrorSymbol = null;
1615
+ }
1616
+ break;
1617
+ case 2:
1618
+ len = this.productions_[action[1]][1];
1619
+ yyval.$ = vstack[vstack.length - len];
1620
+ yyval._$ = {
1621
+ first_line: lstack[lstack.length - (len || 1)].first_line,
1622
+ last_line: lstack[lstack.length - 1].last_line,
1623
+ first_column: lstack[lstack.length - (len || 1)].first_column,
1624
+ last_column: lstack[lstack.length - 1].last_column
1625
+ };
1626
+ if (ranges) yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
1627
+ r = this.performAction.apply(yyval, [
1628
+ yytext,
1629
+ yyleng,
1630
+ yylineno,
1631
+ sharedState.yy,
1632
+ action[1],
1633
+ vstack,
1634
+ lstack
1635
+ ].concat(args));
1636
+ if (typeof r !== "undefined") return r;
1637
+ if (len) {
1638
+ stack = stack.slice(0, -1 * len * 2);
1639
+ vstack = vstack.slice(0, -1 * len);
1640
+ lstack = lstack.slice(0, -1 * len);
1641
+ }
1642
+ stack.push(this.productions_[action[1]][0]);
1643
+ vstack.push(yyval.$);
1644
+ lstack.push(yyval._$);
1645
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
1646
+ stack.push(newState);
1647
+ break;
1648
+ case 3: return true;
1649
+ }
1650
+ }
1651
+ return true;
1652
+ }, "parse")
1653
+ };
1654
+ parser2.lexer = /* @__PURE__ */ function() {
1655
+ return {
1656
+ EOF: 1,
1657
+ parseError: /* @__PURE__ */ __name$1(function parseError(str, hash) {
1658
+ if (this.yy.parser) this.yy.parser.parseError(str, hash);
1659
+ else throw new Error(str);
1660
+ }, "parseError"),
1661
+ setInput: /* @__PURE__ */ __name$1(function(input, yy) {
1662
+ this.yy = yy || this.yy || {};
1663
+ this._input = input;
1664
+ this._more = this._backtrack = this.done = false;
1665
+ this.yylineno = this.yyleng = 0;
1666
+ this.yytext = this.matched = this.match = "";
1667
+ this.conditionStack = ["INITIAL"];
1668
+ this.yylloc = {
1669
+ first_line: 1,
1670
+ first_column: 0,
1671
+ last_line: 1,
1672
+ last_column: 0
1673
+ };
1674
+ if (this.options.ranges) this.yylloc.range = [0, 0];
1675
+ this.offset = 0;
1676
+ return this;
1677
+ }, "setInput"),
1678
+ input: /* @__PURE__ */ __name$1(function() {
1679
+ var ch = this._input[0];
1680
+ this.yytext += ch;
1681
+ this.yyleng++;
1682
+ this.offset++;
1683
+ this.match += ch;
1684
+ this.matched += ch;
1685
+ if (ch.match(/(?:\r\n?|\n).*/g)) {
1686
+ this.yylineno++;
1687
+ this.yylloc.last_line++;
1688
+ } else this.yylloc.last_column++;
1689
+ if (this.options.ranges) this.yylloc.range[1]++;
1690
+ this._input = this._input.slice(1);
1691
+ return ch;
1692
+ }, "input"),
1693
+ unput: /* @__PURE__ */ __name$1(function(ch) {
1694
+ var len = ch.length;
1695
+ var lines = ch.split(/(?:\r\n?|\n)/g);
1696
+ this._input = ch + this._input;
1697
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
1698
+ this.offset -= len;
1699
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
1700
+ this.match = this.match.substr(0, this.match.length - 1);
1701
+ this.matched = this.matched.substr(0, this.matched.length - 1);
1702
+ if (lines.length - 1) this.yylineno -= lines.length - 1;
1703
+ var r = this.yylloc.range;
1704
+ this.yylloc = {
1705
+ first_line: this.yylloc.first_line,
1706
+ last_line: this.yylineno + 1,
1707
+ first_column: this.yylloc.first_column,
1708
+ last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
1709
+ };
1710
+ if (this.options.ranges) this.yylloc.range = [r[0], r[0] + this.yyleng - len];
1711
+ this.yyleng = this.yytext.length;
1712
+ return this;
1713
+ }, "unput"),
1714
+ more: /* @__PURE__ */ __name$1(function() {
1715
+ this._more = true;
1716
+ return this;
1717
+ }, "more"),
1718
+ reject: /* @__PURE__ */ __name$1(function() {
1719
+ if (this.options.backtrack_lexer) this._backtrack = true;
1720
+ else return 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(), {
1721
+ text: "",
1722
+ token: null,
1723
+ line: this.yylineno
1724
+ });
1725
+ return this;
1726
+ }, "reject"),
1727
+ less: /* @__PURE__ */ __name$1(function(n) {
1728
+ this.unput(this.match.slice(n));
1729
+ }, "less"),
1730
+ pastInput: /* @__PURE__ */ __name$1(function() {
1731
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
1732
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
1733
+ }, "pastInput"),
1734
+ upcomingInput: /* @__PURE__ */ __name$1(function() {
1735
+ var next = this.match;
1736
+ if (next.length < 20) next += this._input.substr(0, 20 - next.length);
1737
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
1738
+ }, "upcomingInput"),
1739
+ showPosition: /* @__PURE__ */ __name$1(function() {
1740
+ var pre = this.pastInput();
1741
+ var c2 = new Array(pre.length + 1).join("-");
1742
+ return pre + this.upcomingInput() + "\n" + c2 + "^";
1743
+ }, "showPosition"),
1744
+ test_match: /* @__PURE__ */ __name$1(function(match, indexed_rule) {
1745
+ var token;
1746
+ var lines;
1747
+ var backup;
1748
+ if (this.options.backtrack_lexer) {
1749
+ backup = {
1750
+ yylineno: this.yylineno,
1751
+ yylloc: {
1752
+ first_line: this.yylloc.first_line,
1753
+ last_line: this.last_line,
1754
+ first_column: this.yylloc.first_column,
1755
+ last_column: this.yylloc.last_column
1756
+ },
1757
+ yytext: this.yytext,
1758
+ match: this.match,
1759
+ matches: this.matches,
1760
+ matched: this.matched,
1761
+ yyleng: this.yyleng,
1762
+ offset: this.offset,
1763
+ _more: this._more,
1764
+ _input: this._input,
1765
+ yy: this.yy,
1766
+ conditionStack: this.conditionStack.slice(0),
1767
+ done: this.done
1768
+ };
1769
+ if (this.options.ranges) backup.yylloc.range = this.yylloc.range.slice(0);
1770
+ }
1771
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
1772
+ if (lines) this.yylineno += lines.length;
1773
+ this.yylloc = {
1774
+ first_line: this.yylloc.last_line,
1775
+ last_line: this.yylineno + 1,
1776
+ first_column: this.yylloc.last_column,
1777
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
1778
+ };
1779
+ this.yytext += match[0];
1780
+ this.match += match[0];
1781
+ this.matches = match;
1782
+ this.yyleng = this.yytext.length;
1783
+ if (this.options.ranges) this.yylloc.range = [this.offset, this.offset += this.yyleng];
1784
+ this._more = false;
1785
+ this._backtrack = false;
1786
+ this._input = this._input.slice(match[0].length);
1787
+ this.matched += match[0];
1788
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
1789
+ if (this.done && this._input) this.done = false;
1790
+ if (token) return token;
1791
+ else if (this._backtrack) {
1792
+ for (var k in backup) this[k] = backup[k];
1793
+ return false;
1794
+ }
1795
+ return false;
1796
+ }, "test_match"),
1797
+ next: /* @__PURE__ */ __name$1(function() {
1798
+ if (this.done) return this.EOF;
1799
+ if (!this._input) this.done = true;
1800
+ var token;
1801
+ var match;
1802
+ var tempMatch;
1803
+ var index;
1804
+ if (!this._more) {
1805
+ this.yytext = "";
1806
+ this.match = "";
1807
+ }
1808
+ var rules = this._currentRules();
1809
+ for (var i = 0; i < rules.length; i++) {
1810
+ tempMatch = this._input.match(this.rules[rules[i]]);
1811
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
1812
+ match = tempMatch;
1813
+ index = i;
1814
+ if (this.options.backtrack_lexer) {
1815
+ token = this.test_match(tempMatch, rules[i]);
1816
+ if (token !== false) return token;
1817
+ else if (this._backtrack) {
1818
+ match = false;
1819
+ continue;
1820
+ } else return false;
1821
+ } else if (!this.options.flex) break;
1822
+ }
1823
+ }
1824
+ if (match) {
1825
+ token = this.test_match(match, rules[index]);
1826
+ if (token !== false) return token;
1827
+ return false;
1828
+ }
1829
+ if (this._input === "") return this.EOF;
1830
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1831
+ text: "",
1832
+ token: null,
1833
+ line: this.yylineno
1834
+ });
1835
+ }, "next"),
1836
+ lex: /* @__PURE__ */ __name$1(function lex() {
1837
+ var r = this.next();
1838
+ if (r) return r;
1839
+ else return this.lex();
1840
+ }, "lex"),
1841
+ begin: /* @__PURE__ */ __name$1(function begin(condition) {
1842
+ this.conditionStack.push(condition);
1843
+ }, "begin"),
1844
+ popState: /* @__PURE__ */ __name$1(function popState() {
1845
+ if (this.conditionStack.length - 1 > 0) return this.conditionStack.pop();
1846
+ else return this.conditionStack[0];
1847
+ }, "popState"),
1848
+ _currentRules: /* @__PURE__ */ __name$1(function _currentRules() {
1849
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
1850
+ else return this.conditions["INITIAL"].rules;
1851
+ }, "_currentRules"),
1852
+ topState: /* @__PURE__ */ __name$1(function topState(n) {
1853
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
1854
+ if (n >= 0) return this.conditionStack[n];
1855
+ else return "INITIAL";
1856
+ }, "topState"),
1857
+ pushState: /* @__PURE__ */ __name$1(function pushState(condition) {
1858
+ this.begin(condition);
1859
+ }, "pushState"),
1860
+ stateStackSize: /* @__PURE__ */ __name$1(function stateStackSize() {
1861
+ return this.conditionStack.length;
1862
+ }, "stateStackSize"),
1863
+ options: {},
1864
+ performAction: /* @__PURE__ */ __name$1(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
1865
+ switch ($avoiding_name_collisions) {
1866
+ case 0: return 6;
1867
+ case 1: return 7;
1868
+ case 2: return 8;
1869
+ case 3: return 9;
1870
+ case 4: return 22;
1871
+ case 5: return 23;
1872
+ case 6:
1873
+ this.begin("acc_title");
1874
+ return 24;
1875
+ case 7:
1876
+ this.popState();
1877
+ return "acc_title_value";
1878
+ case 8:
1879
+ this.begin("acc_descr");
1880
+ return 26;
1881
+ case 9:
1882
+ this.popState();
1883
+ return "acc_descr_value";
1884
+ case 10:
1885
+ this.begin("acc_descr_multiline");
1886
+ break;
1887
+ case 11:
1888
+ this.popState();
1889
+ break;
1890
+ case 12: return "acc_descr_multiline_value";
1891
+ case 13: break;
1892
+ case 14:
1893
+ c;
1894
+ break;
1895
+ case 15: return 12;
1896
+ case 16: break;
1897
+ case 17: return 11;
1898
+ case 18: return 15;
1899
+ case 19: return 16;
1900
+ case 20: return 17;
1901
+ case 21: return 18;
1902
+ case 22:
1903
+ this.begin("person_ext");
1904
+ return 45;
1905
+ case 23:
1906
+ this.begin("person");
1907
+ return 44;
1908
+ case 24:
1909
+ this.begin("system_ext_queue");
1910
+ return 51;
1911
+ case 25:
1912
+ this.begin("system_ext_db");
1913
+ return 50;
1914
+ case 26:
1915
+ this.begin("system_ext");
1916
+ return 49;
1917
+ case 27:
1918
+ this.begin("system_queue");
1919
+ return 48;
1920
+ case 28:
1921
+ this.begin("system_db");
1922
+ return 47;
1923
+ case 29:
1924
+ this.begin("system");
1925
+ return 46;
1926
+ case 30:
1927
+ this.begin("boundary");
1928
+ return 37;
1929
+ case 31:
1930
+ this.begin("enterprise_boundary");
1931
+ return 34;
1932
+ case 32:
1933
+ this.begin("system_boundary");
1934
+ return 36;
1935
+ case 33:
1936
+ this.begin("container_ext_queue");
1937
+ return 57;
1938
+ case 34:
1939
+ this.begin("container_ext_db");
1940
+ return 56;
1941
+ case 35:
1942
+ this.begin("container_ext");
1943
+ return 55;
1944
+ case 36:
1945
+ this.begin("container_queue");
1946
+ return 54;
1947
+ case 37:
1948
+ this.begin("container_db");
1949
+ return 53;
1950
+ case 38:
1951
+ this.begin("container");
1952
+ return 52;
1953
+ case 39:
1954
+ this.begin("container_boundary");
1955
+ return 38;
1956
+ case 40:
1957
+ this.begin("component_ext_queue");
1958
+ return 63;
1959
+ case 41:
1960
+ this.begin("component_ext_db");
1961
+ return 62;
1962
+ case 42:
1963
+ this.begin("component_ext");
1964
+ return 61;
1965
+ case 43:
1966
+ this.begin("component_queue");
1967
+ return 60;
1968
+ case 44:
1969
+ this.begin("component_db");
1970
+ return 59;
1971
+ case 45:
1972
+ this.begin("component");
1973
+ return 58;
1974
+ case 46:
1975
+ this.begin("node");
1976
+ return 39;
1977
+ case 47:
1978
+ this.begin("node");
1979
+ return 39;
1980
+ case 48:
1981
+ this.begin("node_l");
1982
+ return 40;
1983
+ case 49:
1984
+ this.begin("node_r");
1985
+ return 41;
1986
+ case 50:
1987
+ this.begin("rel");
1988
+ return 64;
1989
+ case 51:
1990
+ this.begin("birel");
1991
+ return 65;
1992
+ case 52:
1993
+ this.begin("rel_u");
1994
+ return 66;
1995
+ case 53:
1996
+ this.begin("rel_u");
1997
+ return 66;
1998
+ case 54:
1999
+ this.begin("rel_d");
2000
+ return 67;
2001
+ case 55:
2002
+ this.begin("rel_d");
2003
+ return 67;
2004
+ case 56:
2005
+ this.begin("rel_l");
2006
+ return 68;
2007
+ case 57:
2008
+ this.begin("rel_l");
2009
+ return 68;
2010
+ case 58:
2011
+ this.begin("rel_r");
2012
+ return 69;
2013
+ case 59:
2014
+ this.begin("rel_r");
2015
+ return 69;
2016
+ case 60:
2017
+ this.begin("rel_b");
2018
+ return 70;
2019
+ case 61:
2020
+ this.begin("rel_index");
2021
+ return 71;
2022
+ case 62:
2023
+ this.begin("update_el_style");
2024
+ return 72;
2025
+ case 63:
2026
+ this.begin("update_rel_style");
2027
+ return 73;
2028
+ case 64:
2029
+ this.begin("update_layout_config");
2030
+ return 74;
2031
+ case 65: return "EOF_IN_STRUCT";
2032
+ case 66:
2033
+ this.begin("attribute");
2034
+ return "ATTRIBUTE_EMPTY";
2035
+ case 67:
2036
+ this.begin("attribute");
2037
+ break;
2038
+ case 68:
2039
+ this.popState();
2040
+ this.popState();
2041
+ break;
2042
+ case 69: return 80;
2043
+ case 70: break;
2044
+ case 71: return 80;
2045
+ case 72:
2046
+ this.begin("string");
2047
+ break;
2048
+ case 73:
2049
+ this.popState();
2050
+ break;
2051
+ case 74: return "STR";
2052
+ case 75:
2053
+ this.begin("string_kv");
2054
+ break;
2055
+ case 76:
2056
+ this.begin("string_kv_key");
2057
+ return "STR_KEY";
2058
+ case 77:
2059
+ this.popState();
2060
+ this.begin("string_kv_value");
2061
+ break;
2062
+ case 78: return "STR_VALUE";
2063
+ case 79:
2064
+ this.popState();
2065
+ this.popState();
2066
+ break;
2067
+ case 80: return "STR";
2068
+ case 81: return "LBRACE";
2069
+ case 82: return "RBRACE";
2070
+ case 83: return "SPACE";
2071
+ case 84: return "EOL";
2072
+ case 85: return 14;
2073
+ }
2074
+ }, "anonymous"),
2075
+ rules: [
2076
+ /^(?:.*direction\s+TB[^\n]*)/,
2077
+ /^(?:.*direction\s+BT[^\n]*)/,
2078
+ /^(?:.*direction\s+RL[^\n]*)/,
2079
+ /^(?:.*direction\s+LR[^\n]*)/,
2080
+ /^(?:title\s[^#\n;]+)/,
2081
+ /^(?:accDescription\s[^#\n;]+)/,
2082
+ /^(?:accTitle\s*:\s*)/,
2083
+ /^(?:(?!\n||)*[^\n]*)/,
2084
+ /^(?:accDescr\s*:\s*)/,
2085
+ /^(?:(?!\n||)*[^\n]*)/,
2086
+ /^(?:accDescr\s*\{\s*)/,
2087
+ /^(?:[\}])/,
2088
+ /^(?:[^\}]*)/,
2089
+ /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
2090
+ /^(?:%%[^\n]*(\r?\n)*)/,
2091
+ /^(?:\s*(\r?\n)+)/,
2092
+ /^(?:\s+)/,
2093
+ /^(?:C4Context\b)/,
2094
+ /^(?:C4Container\b)/,
2095
+ /^(?:C4Component\b)/,
2096
+ /^(?:C4Dynamic\b)/,
2097
+ /^(?:C4Deployment\b)/,
2098
+ /^(?:Person_Ext\b)/,
2099
+ /^(?:Person\b)/,
2100
+ /^(?:SystemQueue_Ext\b)/,
2101
+ /^(?:SystemDb_Ext\b)/,
2102
+ /^(?:System_Ext\b)/,
2103
+ /^(?:SystemQueue\b)/,
2104
+ /^(?:SystemDb\b)/,
2105
+ /^(?:System\b)/,
2106
+ /^(?:Boundary\b)/,
2107
+ /^(?:Enterprise_Boundary\b)/,
2108
+ /^(?:System_Boundary\b)/,
2109
+ /^(?:ContainerQueue_Ext\b)/,
2110
+ /^(?:ContainerDb_Ext\b)/,
2111
+ /^(?:Container_Ext\b)/,
2112
+ /^(?:ContainerQueue\b)/,
2113
+ /^(?:ContainerDb\b)/,
2114
+ /^(?:Container\b)/,
2115
+ /^(?:Container_Boundary\b)/,
2116
+ /^(?:ComponentQueue_Ext\b)/,
2117
+ /^(?:ComponentDb_Ext\b)/,
2118
+ /^(?:Component_Ext\b)/,
2119
+ /^(?:ComponentQueue\b)/,
2120
+ /^(?:ComponentDb\b)/,
2121
+ /^(?:Component\b)/,
2122
+ /^(?:Deployment_Node\b)/,
2123
+ /^(?:Node\b)/,
2124
+ /^(?:Node_L\b)/,
2125
+ /^(?:Node_R\b)/,
2126
+ /^(?:Rel\b)/,
2127
+ /^(?:BiRel\b)/,
2128
+ /^(?:Rel_Up\b)/,
2129
+ /^(?:Rel_U\b)/,
2130
+ /^(?:Rel_Down\b)/,
2131
+ /^(?:Rel_D\b)/,
2132
+ /^(?:Rel_Left\b)/,
2133
+ /^(?:Rel_L\b)/,
2134
+ /^(?:Rel_Right\b)/,
2135
+ /^(?:Rel_R\b)/,
2136
+ /^(?:Rel_Back\b)/,
2137
+ /^(?:RelIndex\b)/,
2138
+ /^(?:UpdateElementStyle\b)/,
2139
+ /^(?:UpdateRelStyle\b)/,
2140
+ /^(?:UpdateLayoutConfig\b)/,
2141
+ /^(?:$)/,
2142
+ /^(?:[(][ ]*[,])/,
2143
+ /^(?:[(])/,
2144
+ /^(?:[)])/,
2145
+ /^(?:,,)/,
2146
+ /^(?:,)/,
2147
+ /^(?:[ ]*["]["])/,
2148
+ /^(?:[ ]*["])/,
2149
+ /^(?:["])/,
2150
+ /^(?:[^"]*)/,
2151
+ /^(?:[ ]*[\$])/,
2152
+ /^(?:[^=]*)/,
2153
+ /^(?:[=][ ]*["])/,
2154
+ /^(?:[^"]+)/,
2155
+ /^(?:["])/,
2156
+ /^(?:[^,]+)/,
2157
+ /^(?:\{)/,
2158
+ /^(?:\})/,
2159
+ /^(?:[\s]+)/,
2160
+ /^(?:[\n\r]+)/,
2161
+ /^(?:$)/
2162
+ ],
2163
+ conditions: {
2164
+ "acc_descr_multiline": {
2165
+ "rules": [11, 12],
2166
+ "inclusive": false
2167
+ },
2168
+ "acc_descr": {
2169
+ "rules": [9],
2170
+ "inclusive": false
2171
+ },
2172
+ "acc_title": {
2173
+ "rules": [7],
2174
+ "inclusive": false
2175
+ },
2176
+ "string_kv_value": {
2177
+ "rules": [78, 79],
2178
+ "inclusive": false
2179
+ },
2180
+ "string_kv_key": {
2181
+ "rules": [77],
2182
+ "inclusive": false
2183
+ },
2184
+ "string_kv": {
2185
+ "rules": [76],
2186
+ "inclusive": false
2187
+ },
2188
+ "string": {
2189
+ "rules": [73, 74],
2190
+ "inclusive": false
2191
+ },
2192
+ "attribute": {
2193
+ "rules": [
2194
+ 68,
2195
+ 69,
2196
+ 70,
2197
+ 71,
2198
+ 72,
2199
+ 75,
2200
+ 80
2201
+ ],
2202
+ "inclusive": false
2203
+ },
2204
+ "update_layout_config": {
2205
+ "rules": [
2206
+ 65,
2207
+ 66,
2208
+ 67,
2209
+ 68
2210
+ ],
2211
+ "inclusive": false
2212
+ },
2213
+ "update_rel_style": {
2214
+ "rules": [
2215
+ 65,
2216
+ 66,
2217
+ 67,
2218
+ 68
2219
+ ],
2220
+ "inclusive": false
2221
+ },
2222
+ "update_el_style": {
2223
+ "rules": [
2224
+ 65,
2225
+ 66,
2226
+ 67,
2227
+ 68
2228
+ ],
2229
+ "inclusive": false
2230
+ },
2231
+ "rel_b": {
2232
+ "rules": [
2233
+ 65,
2234
+ 66,
2235
+ 67,
2236
+ 68
2237
+ ],
2238
+ "inclusive": false
2239
+ },
2240
+ "rel_r": {
2241
+ "rules": [
2242
+ 65,
2243
+ 66,
2244
+ 67,
2245
+ 68
2246
+ ],
2247
+ "inclusive": false
2248
+ },
2249
+ "rel_l": {
2250
+ "rules": [
2251
+ 65,
2252
+ 66,
2253
+ 67,
2254
+ 68
2255
+ ],
2256
+ "inclusive": false
2257
+ },
2258
+ "rel_d": {
2259
+ "rules": [
2260
+ 65,
2261
+ 66,
2262
+ 67,
2263
+ 68
2264
+ ],
2265
+ "inclusive": false
2266
+ },
2267
+ "rel_u": {
2268
+ "rules": [
2269
+ 65,
2270
+ 66,
2271
+ 67,
2272
+ 68
2273
+ ],
2274
+ "inclusive": false
2275
+ },
2276
+ "rel_bi": {
2277
+ "rules": [],
2278
+ "inclusive": false
2279
+ },
2280
+ "rel": {
2281
+ "rules": [
2282
+ 65,
2283
+ 66,
2284
+ 67,
2285
+ 68
2286
+ ],
2287
+ "inclusive": false
2288
+ },
2289
+ "node_r": {
2290
+ "rules": [
2291
+ 65,
2292
+ 66,
2293
+ 67,
2294
+ 68
2295
+ ],
2296
+ "inclusive": false
2297
+ },
2298
+ "node_l": {
2299
+ "rules": [
2300
+ 65,
2301
+ 66,
2302
+ 67,
2303
+ 68
2304
+ ],
2305
+ "inclusive": false
2306
+ },
2307
+ "node": {
2308
+ "rules": [
2309
+ 65,
2310
+ 66,
2311
+ 67,
2312
+ 68
2313
+ ],
2314
+ "inclusive": false
2315
+ },
2316
+ "index": {
2317
+ "rules": [],
2318
+ "inclusive": false
2319
+ },
2320
+ "rel_index": {
2321
+ "rules": [
2322
+ 65,
2323
+ 66,
2324
+ 67,
2325
+ 68
2326
+ ],
2327
+ "inclusive": false
2328
+ },
2329
+ "component_ext_queue": {
2330
+ "rules": [
2331
+ 65,
2332
+ 66,
2333
+ 67,
2334
+ 68
2335
+ ],
2336
+ "inclusive": false
2337
+ },
2338
+ "component_ext_db": {
2339
+ "rules": [
2340
+ 65,
2341
+ 66,
2342
+ 67,
2343
+ 68
2344
+ ],
2345
+ "inclusive": false
2346
+ },
2347
+ "component_ext": {
2348
+ "rules": [
2349
+ 65,
2350
+ 66,
2351
+ 67,
2352
+ 68
2353
+ ],
2354
+ "inclusive": false
2355
+ },
2356
+ "component_queue": {
2357
+ "rules": [
2358
+ 65,
2359
+ 66,
2360
+ 67,
2361
+ 68
2362
+ ],
2363
+ "inclusive": false
2364
+ },
2365
+ "component_db": {
2366
+ "rules": [
2367
+ 65,
2368
+ 66,
2369
+ 67,
2370
+ 68
2371
+ ],
2372
+ "inclusive": false
2373
+ },
2374
+ "component": {
2375
+ "rules": [
2376
+ 65,
2377
+ 66,
2378
+ 67,
2379
+ 68
2380
+ ],
2381
+ "inclusive": false
2382
+ },
2383
+ "container_boundary": {
2384
+ "rules": [
2385
+ 65,
2386
+ 66,
2387
+ 67,
2388
+ 68
2389
+ ],
2390
+ "inclusive": false
2391
+ },
2392
+ "container_ext_queue": {
2393
+ "rules": [
2394
+ 65,
2395
+ 66,
2396
+ 67,
2397
+ 68
2398
+ ],
2399
+ "inclusive": false
2400
+ },
2401
+ "container_ext_db": {
2402
+ "rules": [
2403
+ 65,
2404
+ 66,
2405
+ 67,
2406
+ 68
2407
+ ],
2408
+ "inclusive": false
2409
+ },
2410
+ "container_ext": {
2411
+ "rules": [
2412
+ 65,
2413
+ 66,
2414
+ 67,
2415
+ 68
2416
+ ],
2417
+ "inclusive": false
2418
+ },
2419
+ "container_queue": {
2420
+ "rules": [
2421
+ 65,
2422
+ 66,
2423
+ 67,
2424
+ 68
2425
+ ],
2426
+ "inclusive": false
2427
+ },
2428
+ "container_db": {
2429
+ "rules": [
2430
+ 65,
2431
+ 66,
2432
+ 67,
2433
+ 68
2434
+ ],
2435
+ "inclusive": false
2436
+ },
2437
+ "container": {
2438
+ "rules": [
2439
+ 65,
2440
+ 66,
2441
+ 67,
2442
+ 68
2443
+ ],
2444
+ "inclusive": false
2445
+ },
2446
+ "birel": {
2447
+ "rules": [
2448
+ 65,
2449
+ 66,
2450
+ 67,
2451
+ 68
2452
+ ],
2453
+ "inclusive": false
2454
+ },
2455
+ "system_boundary": {
2456
+ "rules": [
2457
+ 65,
2458
+ 66,
2459
+ 67,
2460
+ 68
2461
+ ],
2462
+ "inclusive": false
2463
+ },
2464
+ "enterprise_boundary": {
2465
+ "rules": [
2466
+ 65,
2467
+ 66,
2468
+ 67,
2469
+ 68
2470
+ ],
2471
+ "inclusive": false
2472
+ },
2473
+ "boundary": {
2474
+ "rules": [
2475
+ 65,
2476
+ 66,
2477
+ 67,
2478
+ 68
2479
+ ],
2480
+ "inclusive": false
2481
+ },
2482
+ "system_ext_queue": {
2483
+ "rules": [
2484
+ 65,
2485
+ 66,
2486
+ 67,
2487
+ 68
2488
+ ],
2489
+ "inclusive": false
2490
+ },
2491
+ "system_ext_db": {
2492
+ "rules": [
2493
+ 65,
2494
+ 66,
2495
+ 67,
2496
+ 68
2497
+ ],
2498
+ "inclusive": false
2499
+ },
2500
+ "system_ext": {
2501
+ "rules": [
2502
+ 65,
2503
+ 66,
2504
+ 67,
2505
+ 68
2506
+ ],
2507
+ "inclusive": false
2508
+ },
2509
+ "system_queue": {
2510
+ "rules": [
2511
+ 65,
2512
+ 66,
2513
+ 67,
2514
+ 68
2515
+ ],
2516
+ "inclusive": false
2517
+ },
2518
+ "system_db": {
2519
+ "rules": [
2520
+ 65,
2521
+ 66,
2522
+ 67,
2523
+ 68
2524
+ ],
2525
+ "inclusive": false
2526
+ },
2527
+ "system": {
2528
+ "rules": [
2529
+ 65,
2530
+ 66,
2531
+ 67,
2532
+ 68
2533
+ ],
2534
+ "inclusive": false
2535
+ },
2536
+ "person_ext": {
2537
+ "rules": [
2538
+ 65,
2539
+ 66,
2540
+ 67,
2541
+ 68
2542
+ ],
2543
+ "inclusive": false
2544
+ },
2545
+ "person": {
2546
+ "rules": [
2547
+ 65,
2548
+ 66,
2549
+ 67,
2550
+ 68
2551
+ ],
2552
+ "inclusive": false
2553
+ },
2554
+ "INITIAL": {
2555
+ "rules": [
2556
+ 0,
2557
+ 1,
2558
+ 2,
2559
+ 3,
2560
+ 4,
2561
+ 5,
2562
+ 6,
2563
+ 8,
2564
+ 10,
2565
+ 13,
2566
+ 14,
2567
+ 15,
2568
+ 16,
2569
+ 17,
2570
+ 18,
2571
+ 19,
2572
+ 20,
2573
+ 21,
2574
+ 22,
2575
+ 23,
2576
+ 24,
2577
+ 25,
2578
+ 26,
2579
+ 27,
2580
+ 28,
2581
+ 29,
2582
+ 30,
2583
+ 31,
2584
+ 32,
2585
+ 33,
2586
+ 34,
2587
+ 35,
2588
+ 36,
2589
+ 37,
2590
+ 38,
2591
+ 39,
2592
+ 40,
2593
+ 41,
2594
+ 42,
2595
+ 43,
2596
+ 44,
2597
+ 45,
2598
+ 46,
2599
+ 47,
2600
+ 48,
2601
+ 49,
2602
+ 50,
2603
+ 51,
2604
+ 52,
2605
+ 53,
2606
+ 54,
2607
+ 55,
2608
+ 56,
2609
+ 57,
2610
+ 58,
2611
+ 59,
2612
+ 60,
2613
+ 61,
2614
+ 62,
2615
+ 63,
2616
+ 64,
2617
+ 81,
2618
+ 82,
2619
+ 83,
2620
+ 84,
2621
+ 85
2622
+ ],
2623
+ "inclusive": true
2624
+ }
2625
+ }
2626
+ };
2627
+ }();
2628
+ function Parser() {
2629
+ this.yy = {};
2630
+ }
2631
+ __name$1(Parser, "Parser");
2632
+ Parser.prototype = parser2;
2633
+ parser2.Parser = Parser;
2634
+ return new Parser();
2635
+ }();
2636
+ parser.parser = parser;
2637
+ var c4Diagram_default = parser;
2638
+ var c4ShapeArray = [];
2639
+ var boundaryParseStack = [""];
2640
+ var currentBoundaryParse = "global";
2641
+ var parentBoundaryParse = "";
2642
+ var boundaries = [{
2643
+ alias: "global",
2644
+ label: { text: "global" },
2645
+ type: { text: "global" },
2646
+ tags: null,
2647
+ link: null,
2648
+ parentBoundary: ""
2649
+ }];
2650
+ var rels = [];
2651
+ var title = "";
2652
+ var wrapEnabled = false;
2653
+ var c4ShapeInRow = 4;
2654
+ var c4BoundaryInRow = 2;
2655
+ var c4Type;
2656
+ var getC4Type = /* @__PURE__ */ __name$1(function() {
2657
+ return c4Type;
2658
+ }, "getC4Type");
2659
+ var setC4Type = /* @__PURE__ */ __name$1(function(c4TypeParam) {
2660
+ c4Type = sanitizeText(c4TypeParam, getConfig2());
2661
+ }, "setC4Type");
2662
+ var addRel = /* @__PURE__ */ __name$1(function(type, from, to, label, techn, descr, sprite, tags, link) {
2663
+ if (type === void 0 || type === null || from === void 0 || from === null || to === void 0 || to === null || label === void 0 || label === null) return;
2664
+ let rel = {};
2665
+ const old = rels.find((rel2) => rel2.from === from && rel2.to === to);
2666
+ if (old) rel = old;
2667
+ else rels.push(rel);
2668
+ rel.type = type;
2669
+ rel.from = from;
2670
+ rel.to = to;
2671
+ rel.label = { text: label };
2672
+ if (techn === void 0 || techn === null) rel.techn = { text: "" };
2673
+ else if (typeof techn === "object") {
2674
+ let [key, value] = Object.entries(techn)[0];
2675
+ rel[key] = { text: value };
2676
+ } else rel.techn = { text: techn };
2677
+ if (descr === void 0 || descr === null) rel.descr = { text: "" };
2678
+ else if (typeof descr === "object") {
2679
+ let [key, value] = Object.entries(descr)[0];
2680
+ rel[key] = { text: value };
2681
+ } else rel.descr = { text: descr };
2682
+ if (typeof sprite === "object") {
2683
+ let [key, value] = Object.entries(sprite)[0];
2684
+ rel[key] = value;
2685
+ } else rel.sprite = sprite;
2686
+ if (typeof tags === "object") {
2687
+ let [key, value] = Object.entries(tags)[0];
2688
+ rel[key] = value;
2689
+ } else rel.tags = tags;
2690
+ if (typeof link === "object") {
2691
+ let [key, value] = Object.entries(link)[0];
2692
+ rel[key] = value;
2693
+ } else rel.link = link;
2694
+ rel.wrap = autoWrap();
2695
+ }, "addRel");
2696
+ var addPersonOrSystem = /* @__PURE__ */ __name$1(function(typeC4Shape, alias, label, descr, sprite, tags, link) {
2697
+ if (alias === null || label === null) return;
2698
+ let personOrSystem = {};
2699
+ const old = c4ShapeArray.find((personOrSystem2) => personOrSystem2.alias === alias);
2700
+ if (old && alias === old.alias) personOrSystem = old;
2701
+ else {
2702
+ personOrSystem.alias = alias;
2703
+ c4ShapeArray.push(personOrSystem);
2704
+ }
2705
+ if (label === void 0 || label === null) personOrSystem.label = { text: "" };
2706
+ else personOrSystem.label = { text: label };
2707
+ if (descr === void 0 || descr === null) personOrSystem.descr = { text: "" };
2708
+ else if (typeof descr === "object") {
2709
+ let [key, value] = Object.entries(descr)[0];
2710
+ personOrSystem[key] = { text: value };
2711
+ } else personOrSystem.descr = { text: descr };
2712
+ if (typeof sprite === "object") {
2713
+ let [key, value] = Object.entries(sprite)[0];
2714
+ personOrSystem[key] = value;
2715
+ } else personOrSystem.sprite = sprite;
2716
+ if (typeof tags === "object") {
2717
+ let [key, value] = Object.entries(tags)[0];
2718
+ personOrSystem[key] = value;
2719
+ } else personOrSystem.tags = tags;
2720
+ if (typeof link === "object") {
2721
+ let [key, value] = Object.entries(link)[0];
2722
+ personOrSystem[key] = value;
2723
+ } else personOrSystem.link = link;
2724
+ personOrSystem.typeC4Shape = { text: typeC4Shape };
2725
+ personOrSystem.parentBoundary = currentBoundaryParse;
2726
+ personOrSystem.wrap = autoWrap();
2727
+ }, "addPersonOrSystem");
2728
+ var addContainer = /* @__PURE__ */ __name$1(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
2729
+ if (alias === null || label === null) return;
2730
+ let container = {};
2731
+ const old = c4ShapeArray.find((container2) => container2.alias === alias);
2732
+ if (old && alias === old.alias) container = old;
2733
+ else {
2734
+ container.alias = alias;
2735
+ c4ShapeArray.push(container);
2736
+ }
2737
+ if (label === void 0 || label === null) container.label = { text: "" };
2738
+ else container.label = { text: label };
2739
+ if (techn === void 0 || techn === null) container.techn = { text: "" };
2740
+ else if (typeof techn === "object") {
2741
+ let [key, value] = Object.entries(techn)[0];
2742
+ container[key] = { text: value };
2743
+ } else container.techn = { text: techn };
2744
+ if (descr === void 0 || descr === null) container.descr = { text: "" };
2745
+ else if (typeof descr === "object") {
2746
+ let [key, value] = Object.entries(descr)[0];
2747
+ container[key] = { text: value };
2748
+ } else container.descr = { text: descr };
2749
+ if (typeof sprite === "object") {
2750
+ let [key, value] = Object.entries(sprite)[0];
2751
+ container[key] = value;
2752
+ } else container.sprite = sprite;
2753
+ if (typeof tags === "object") {
2754
+ let [key, value] = Object.entries(tags)[0];
2755
+ container[key] = value;
2756
+ } else container.tags = tags;
2757
+ if (typeof link === "object") {
2758
+ let [key, value] = Object.entries(link)[0];
2759
+ container[key] = value;
2760
+ } else container.link = link;
2761
+ container.wrap = autoWrap();
2762
+ container.typeC4Shape = { text: typeC4Shape };
2763
+ container.parentBoundary = currentBoundaryParse;
2764
+ }, "addContainer");
2765
+ var addComponent = /* @__PURE__ */ __name$1(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
2766
+ if (alias === null || label === null) return;
2767
+ let component = {};
2768
+ const old = c4ShapeArray.find((component2) => component2.alias === alias);
2769
+ if (old && alias === old.alias) component = old;
2770
+ else {
2771
+ component.alias = alias;
2772
+ c4ShapeArray.push(component);
2773
+ }
2774
+ if (label === void 0 || label === null) component.label = { text: "" };
2775
+ else component.label = { text: label };
2776
+ if (techn === void 0 || techn === null) component.techn = { text: "" };
2777
+ else if (typeof techn === "object") {
2778
+ let [key, value] = Object.entries(techn)[0];
2779
+ component[key] = { text: value };
2780
+ } else component.techn = { text: techn };
2781
+ if (descr === void 0 || descr === null) component.descr = { text: "" };
2782
+ else if (typeof descr === "object") {
2783
+ let [key, value] = Object.entries(descr)[0];
2784
+ component[key] = { text: value };
2785
+ } else component.descr = { text: descr };
2786
+ if (typeof sprite === "object") {
2787
+ let [key, value] = Object.entries(sprite)[0];
2788
+ component[key] = value;
2789
+ } else component.sprite = sprite;
2790
+ if (typeof tags === "object") {
2791
+ let [key, value] = Object.entries(tags)[0];
2792
+ component[key] = value;
2793
+ } else component.tags = tags;
2794
+ if (typeof link === "object") {
2795
+ let [key, value] = Object.entries(link)[0];
2796
+ component[key] = value;
2797
+ } else component.link = link;
2798
+ component.wrap = autoWrap();
2799
+ component.typeC4Shape = { text: typeC4Shape };
2800
+ component.parentBoundary = currentBoundaryParse;
2801
+ }, "addComponent");
2802
+ var addPersonOrSystemBoundary = /* @__PURE__ */ __name$1(function(alias, label, type, tags, link) {
2803
+ if (alias === null || label === null) return;
2804
+ let boundary = {};
2805
+ const old = boundaries.find((boundary2) => boundary2.alias === alias);
2806
+ if (old && alias === old.alias) boundary = old;
2807
+ else {
2808
+ boundary.alias = alias;
2809
+ boundaries.push(boundary);
2810
+ }
2811
+ if (label === void 0 || label === null) boundary.label = { text: "" };
2812
+ else boundary.label = { text: label };
2813
+ if (type === void 0 || type === null) boundary.type = { text: "system" };
2814
+ else if (typeof type === "object") {
2815
+ let [key, value] = Object.entries(type)[0];
2816
+ boundary[key] = { text: value };
2817
+ } else boundary.type = { text: type };
2818
+ if (typeof tags === "object") {
2819
+ let [key, value] = Object.entries(tags)[0];
2820
+ boundary[key] = value;
2821
+ } else boundary.tags = tags;
2822
+ if (typeof link === "object") {
2823
+ let [key, value] = Object.entries(link)[0];
2824
+ boundary[key] = value;
2825
+ } else boundary.link = link;
2826
+ boundary.parentBoundary = currentBoundaryParse;
2827
+ boundary.wrap = autoWrap();
2828
+ parentBoundaryParse = currentBoundaryParse;
2829
+ currentBoundaryParse = alias;
2830
+ boundaryParseStack.push(parentBoundaryParse);
2831
+ }, "addPersonOrSystemBoundary");
2832
+ var addContainerBoundary = /* @__PURE__ */ __name$1(function(alias, label, type, tags, link) {
2833
+ if (alias === null || label === null) return;
2834
+ let boundary = {};
2835
+ const old = boundaries.find((boundary2) => boundary2.alias === alias);
2836
+ if (old && alias === old.alias) boundary = old;
2837
+ else {
2838
+ boundary.alias = alias;
2839
+ boundaries.push(boundary);
2840
+ }
2841
+ if (label === void 0 || label === null) boundary.label = { text: "" };
2842
+ else boundary.label = { text: label };
2843
+ if (type === void 0 || type === null) boundary.type = { text: "container" };
2844
+ else if (typeof type === "object") {
2845
+ let [key, value] = Object.entries(type)[0];
2846
+ boundary[key] = { text: value };
2847
+ } else boundary.type = { text: type };
2848
+ if (typeof tags === "object") {
2849
+ let [key, value] = Object.entries(tags)[0];
2850
+ boundary[key] = value;
2851
+ } else boundary.tags = tags;
2852
+ if (typeof link === "object") {
2853
+ let [key, value] = Object.entries(link)[0];
2854
+ boundary[key] = value;
2855
+ } else boundary.link = link;
2856
+ boundary.parentBoundary = currentBoundaryParse;
2857
+ boundary.wrap = autoWrap();
2858
+ parentBoundaryParse = currentBoundaryParse;
2859
+ currentBoundaryParse = alias;
2860
+ boundaryParseStack.push(parentBoundaryParse);
2861
+ }, "addContainerBoundary");
2862
+ var addDeploymentNode = /* @__PURE__ */ __name$1(function(nodeType, alias, label, type, descr, sprite, tags, link) {
2863
+ if (alias === null || label === null) return;
2864
+ let boundary = {};
2865
+ const old = boundaries.find((boundary2) => boundary2.alias === alias);
2866
+ if (old && alias === old.alias) boundary = old;
2867
+ else {
2868
+ boundary.alias = alias;
2869
+ boundaries.push(boundary);
2870
+ }
2871
+ if (label === void 0 || label === null) boundary.label = { text: "" };
2872
+ else boundary.label = { text: label };
2873
+ if (type === void 0 || type === null) boundary.type = { text: "node" };
2874
+ else if (typeof type === "object") {
2875
+ let [key, value] = Object.entries(type)[0];
2876
+ boundary[key] = { text: value };
2877
+ } else boundary.type = { text: type };
2878
+ if (descr === void 0 || descr === null) boundary.descr = { text: "" };
2879
+ else if (typeof descr === "object") {
2880
+ let [key, value] = Object.entries(descr)[0];
2881
+ boundary[key] = { text: value };
2882
+ } else boundary.descr = { text: descr };
2883
+ if (typeof tags === "object") {
2884
+ let [key, value] = Object.entries(tags)[0];
2885
+ boundary[key] = value;
2886
+ } else boundary.tags = tags;
2887
+ if (typeof link === "object") {
2888
+ let [key, value] = Object.entries(link)[0];
2889
+ boundary[key] = value;
2890
+ } else boundary.link = link;
2891
+ boundary.nodeType = nodeType;
2892
+ boundary.parentBoundary = currentBoundaryParse;
2893
+ boundary.wrap = autoWrap();
2894
+ parentBoundaryParse = currentBoundaryParse;
2895
+ currentBoundaryParse = alias;
2896
+ boundaryParseStack.push(parentBoundaryParse);
2897
+ }, "addDeploymentNode");
2898
+ var popBoundaryParseStack = /* @__PURE__ */ __name$1(function() {
2899
+ currentBoundaryParse = parentBoundaryParse;
2900
+ boundaryParseStack.pop();
2901
+ parentBoundaryParse = boundaryParseStack.pop();
2902
+ boundaryParseStack.push(parentBoundaryParse);
2903
+ }, "popBoundaryParseStack");
2904
+ var updateElStyle = /* @__PURE__ */ __name$1(function(typeC4Shape, elementName, bgColor, fontColor, borderColor, shadowing, shape, sprite, techn, legendText, legendSprite) {
2905
+ let old = c4ShapeArray.find((element) => element.alias === elementName);
2906
+ if (old === void 0) {
2907
+ old = boundaries.find((element) => element.alias === elementName);
2908
+ if (old === void 0) return;
2909
+ }
2910
+ if (bgColor !== void 0 && bgColor !== null) if (typeof bgColor === "object") {
2911
+ let [key, value] = Object.entries(bgColor)[0];
2912
+ old[key] = value;
2913
+ } else old.bgColor = bgColor;
2914
+ if (fontColor !== void 0 && fontColor !== null) if (typeof fontColor === "object") {
2915
+ let [key, value] = Object.entries(fontColor)[0];
2916
+ old[key] = value;
2917
+ } else old.fontColor = fontColor;
2918
+ if (borderColor !== void 0 && borderColor !== null) if (typeof borderColor === "object") {
2919
+ let [key, value] = Object.entries(borderColor)[0];
2920
+ old[key] = value;
2921
+ } else old.borderColor = borderColor;
2922
+ if (shadowing !== void 0 && shadowing !== null) if (typeof shadowing === "object") {
2923
+ let [key, value] = Object.entries(shadowing)[0];
2924
+ old[key] = value;
2925
+ } else old.shadowing = shadowing;
2926
+ if (shape !== void 0 && shape !== null) if (typeof shape === "object") {
2927
+ let [key, value] = Object.entries(shape)[0];
2928
+ old[key] = value;
2929
+ } else old.shape = shape;
2930
+ if (sprite !== void 0 && sprite !== null) if (typeof sprite === "object") {
2931
+ let [key, value] = Object.entries(sprite)[0];
2932
+ old[key] = value;
2933
+ } else old.sprite = sprite;
2934
+ if (techn !== void 0 && techn !== null) if (typeof techn === "object") {
2935
+ let [key, value] = Object.entries(techn)[0];
2936
+ old[key] = value;
2937
+ } else old.techn = techn;
2938
+ if (legendText !== void 0 && legendText !== null) if (typeof legendText === "object") {
2939
+ let [key, value] = Object.entries(legendText)[0];
2940
+ old[key] = value;
2941
+ } else old.legendText = legendText;
2942
+ if (legendSprite !== void 0 && legendSprite !== null) if (typeof legendSprite === "object") {
2943
+ let [key, value] = Object.entries(legendSprite)[0];
2944
+ old[key] = value;
2945
+ } else old.legendSprite = legendSprite;
2946
+ }, "updateElStyle");
2947
+ var updateRelStyle = /* @__PURE__ */ __name$1(function(typeC4Shape, from, to, textColor, lineColor, offsetX, offsetY) {
2948
+ const old = rels.find((rel) => rel.from === from && rel.to === to);
2949
+ if (old === void 0) return;
2950
+ if (textColor !== void 0 && textColor !== null) if (typeof textColor === "object") {
2951
+ let [key, value] = Object.entries(textColor)[0];
2952
+ old[key] = value;
2953
+ } else old.textColor = textColor;
2954
+ if (lineColor !== void 0 && lineColor !== null) if (typeof lineColor === "object") {
2955
+ let [key, value] = Object.entries(lineColor)[0];
2956
+ old[key] = value;
2957
+ } else old.lineColor = lineColor;
2958
+ if (offsetX !== void 0 && offsetX !== null) if (typeof offsetX === "object") {
2959
+ let [key, value] = Object.entries(offsetX)[0];
2960
+ old[key] = parseInt(value);
2961
+ } else old.offsetX = parseInt(offsetX);
2962
+ if (offsetY !== void 0 && offsetY !== null) if (typeof offsetY === "object") {
2963
+ let [key, value] = Object.entries(offsetY)[0];
2964
+ old[key] = parseInt(value);
2965
+ } else old.offsetY = parseInt(offsetY);
2966
+ }, "updateRelStyle");
2967
+ var updateLayoutConfig = /* @__PURE__ */ __name$1(function(typeC4Shape, c4ShapeInRowParam, c4BoundaryInRowParam) {
2968
+ let c4ShapeInRowValue = c4ShapeInRow;
2969
+ let c4BoundaryInRowValue = c4BoundaryInRow;
2970
+ if (typeof c4ShapeInRowParam === "object") {
2971
+ const value = Object.values(c4ShapeInRowParam)[0];
2972
+ c4ShapeInRowValue = parseInt(value);
2973
+ } else c4ShapeInRowValue = parseInt(c4ShapeInRowParam);
2974
+ if (typeof c4BoundaryInRowParam === "object") {
2975
+ const value = Object.values(c4BoundaryInRowParam)[0];
2976
+ c4BoundaryInRowValue = parseInt(value);
2977
+ } else c4BoundaryInRowValue = parseInt(c4BoundaryInRowParam);
2978
+ if (c4ShapeInRowValue >= 1) c4ShapeInRow = c4ShapeInRowValue;
2979
+ if (c4BoundaryInRowValue >= 1) c4BoundaryInRow = c4BoundaryInRowValue;
2980
+ }, "updateLayoutConfig");
2981
+ var getC4ShapeInRow = /* @__PURE__ */ __name$1(function() {
2982
+ return c4ShapeInRow;
2983
+ }, "getC4ShapeInRow");
2984
+ var getC4BoundaryInRow = /* @__PURE__ */ __name$1(function() {
2985
+ return c4BoundaryInRow;
2986
+ }, "getC4BoundaryInRow");
2987
+ var getCurrentBoundaryParse = /* @__PURE__ */ __name$1(function() {
2988
+ return currentBoundaryParse;
2989
+ }, "getCurrentBoundaryParse");
2990
+ var getParentBoundaryParse = /* @__PURE__ */ __name$1(function() {
2991
+ return parentBoundaryParse;
2992
+ }, "getParentBoundaryParse");
2993
+ var getC4ShapeArray = /* @__PURE__ */ __name$1(function(parentBoundary) {
2994
+ if (parentBoundary === void 0 || parentBoundary === null) return c4ShapeArray;
2995
+ else return c4ShapeArray.filter((personOrSystem) => {
2996
+ return personOrSystem.parentBoundary === parentBoundary;
2997
+ });
2998
+ }, "getC4ShapeArray");
2999
+ var getC4Shape = /* @__PURE__ */ __name$1(function(alias) {
3000
+ return c4ShapeArray.find((personOrSystem) => personOrSystem.alias === alias);
3001
+ }, "getC4Shape");
3002
+ var getC4ShapeKeys = /* @__PURE__ */ __name$1(function(parentBoundary) {
3003
+ return Object.keys(getC4ShapeArray(parentBoundary));
3004
+ }, "getC4ShapeKeys");
3005
+ var getBoundaries = /* @__PURE__ */ __name$1(function(parentBoundary) {
3006
+ if (parentBoundary === void 0 || parentBoundary === null) return boundaries;
3007
+ else return boundaries.filter((boundary) => boundary.parentBoundary === parentBoundary);
3008
+ }, "getBoundaries");
3009
+ var getBoundarys = getBoundaries;
3010
+ var getRels = /* @__PURE__ */ __name$1(function() {
3011
+ return rels;
3012
+ }, "getRels");
3013
+ var getTitle = /* @__PURE__ */ __name$1(function() {
3014
+ return title;
3015
+ }, "getTitle");
3016
+ var setWrap = /* @__PURE__ */ __name$1(function(wrapSetting) {
3017
+ wrapEnabled = wrapSetting;
3018
+ }, "setWrap");
3019
+ var autoWrap = /* @__PURE__ */ __name$1(function() {
3020
+ return wrapEnabled;
3021
+ }, "autoWrap");
3022
+ var c4Db_default = {
3023
+ addPersonOrSystem,
3024
+ addPersonOrSystemBoundary,
3025
+ addContainer,
3026
+ addContainerBoundary,
3027
+ addComponent,
3028
+ addDeploymentNode,
3029
+ popBoundaryParseStack,
3030
+ addRel,
3031
+ updateElStyle,
3032
+ updateRelStyle,
3033
+ updateLayoutConfig,
3034
+ autoWrap,
3035
+ setWrap,
3036
+ getC4ShapeArray,
3037
+ getC4Shape,
3038
+ getC4ShapeKeys,
3039
+ getBoundaries,
3040
+ getBoundarys,
3041
+ getCurrentBoundaryParse,
3042
+ getParentBoundaryParse,
3043
+ getRels,
3044
+ getTitle,
3045
+ getC4Type,
3046
+ getC4ShapeInRow,
3047
+ getC4BoundaryInRow,
3048
+ setAccTitle,
3049
+ getAccTitle,
3050
+ getAccDescription,
3051
+ setAccDescription,
3052
+ getConfig: /* @__PURE__ */ __name$1(() => getConfig2().c4, "getConfig"),
3053
+ clear: /* @__PURE__ */ __name$1(function() {
3054
+ c4ShapeArray = [];
3055
+ boundaries = [{
3056
+ alias: "global",
3057
+ label: { text: "global" },
3058
+ type: { text: "global" },
3059
+ tags: null,
3060
+ link: null,
3061
+ parentBoundary: ""
3062
+ }];
3063
+ parentBoundaryParse = "";
3064
+ currentBoundaryParse = "global";
3065
+ boundaryParseStack = [""];
3066
+ rels = [];
3067
+ boundaryParseStack = [""];
3068
+ title = "";
3069
+ wrapEnabled = false;
3070
+ c4ShapeInRow = 4;
3071
+ c4BoundaryInRow = 2;
3072
+ }, "clear"),
3073
+ LINETYPE: {
3074
+ SOLID: 0,
3075
+ DOTTED: 1,
3076
+ NOTE: 2,
3077
+ SOLID_CROSS: 3,
3078
+ DOTTED_CROSS: 4,
3079
+ SOLID_OPEN: 5,
3080
+ DOTTED_OPEN: 6,
3081
+ LOOP_START: 10,
3082
+ LOOP_END: 11,
3083
+ ALT_START: 12,
3084
+ ALT_ELSE: 13,
3085
+ ALT_END: 14,
3086
+ OPT_START: 15,
3087
+ OPT_END: 16,
3088
+ ACTIVE_START: 17,
3089
+ ACTIVE_END: 18,
3090
+ PAR_START: 19,
3091
+ PAR_AND: 20,
3092
+ PAR_END: 21,
3093
+ RECT_START: 22,
3094
+ RECT_END: 23,
3095
+ SOLID_POINT: 24,
3096
+ DOTTED_POINT: 25
3097
+ },
3098
+ ARROWTYPE: {
3099
+ FILLED: 0,
3100
+ OPEN: 1
3101
+ },
3102
+ PLACEMENT: {
3103
+ LEFTOF: 0,
3104
+ RIGHTOF: 1,
3105
+ OVER: 2
3106
+ },
3107
+ setTitle: /* @__PURE__ */ __name$1(function(txt) {
3108
+ title = sanitizeText(txt, getConfig2());
3109
+ }, "setTitle"),
3110
+ setC4Type
3111
+ };
3112
+ var drawRect2 = /* @__PURE__ */ __name$1(function(elem, rectData) {
3113
+ return drawRect(elem, rectData);
3114
+ }, "drawRect");
3115
+ var drawImage = /* @__PURE__ */ __name$1(function(elem, width, height, x, y, link) {
3116
+ const imageElem = elem.append("image");
3117
+ imageElem.attr("width", width);
3118
+ imageElem.attr("height", height);
3119
+ imageElem.attr("x", x);
3120
+ imageElem.attr("y", y);
3121
+ let sanitizedLink = link.startsWith("data:image/png;base64") ? link : (0, import_dist.sanitizeUrl)(link);
3122
+ imageElem.attr("xlink:href", sanitizedLink);
3123
+ }, "drawImage");
3124
+ var drawRels = /* @__PURE__ */ __name$1((elem, rels2, conf2, diagramId) => {
3125
+ const relsElem = elem.append("g");
3126
+ let i = 0;
3127
+ for (let rel of rels2) {
3128
+ let textColor = rel.textColor ? rel.textColor : "#444444";
3129
+ let strokeColor = rel.lineColor ? rel.lineColor : "#444444";
3130
+ let offsetX = rel.offsetX ? parseInt(rel.offsetX) : 0;
3131
+ let offsetY = rel.offsetY ? parseInt(rel.offsetY) : 0;
3132
+ let url = "";
3133
+ if (i === 0) {
3134
+ let line = relsElem.append("line");
3135
+ line.attr("x1", rel.startPoint.x);
3136
+ line.attr("y1", rel.startPoint.y);
3137
+ line.attr("x2", rel.endPoint.x);
3138
+ line.attr("y2", rel.endPoint.y);
3139
+ line.attr("stroke-width", "1");
3140
+ line.attr("stroke", strokeColor);
3141
+ line.style("fill", "none");
3142
+ if (rel.type !== "rel_b") line.attr("marker-end", "url(" + url + "#" + diagramId + "-arrowhead)");
3143
+ if (rel.type === "birel" || rel.type === "rel_b") line.attr("marker-start", "url(" + url + "#" + diagramId + "-arrowend)");
3144
+ i = -1;
3145
+ } else {
3146
+ let line = relsElem.append("path");
3147
+ line.attr("fill", "none").attr("stroke-width", "1").attr("stroke", strokeColor).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", rel.startPoint.x).replaceAll("starty", rel.startPoint.y).replaceAll("controlx", rel.startPoint.x + (rel.endPoint.x - rel.startPoint.x) / 2 - (rel.endPoint.x - rel.startPoint.x) / 4).replaceAll("controly", rel.startPoint.y + (rel.endPoint.y - rel.startPoint.y) / 2).replaceAll("stopx", rel.endPoint.x).replaceAll("stopy", rel.endPoint.y));
3148
+ if (rel.type !== "rel_b") line.attr("marker-end", "url(" + url + "#" + diagramId + "-arrowhead)");
3149
+ if (rel.type === "birel" || rel.type === "rel_b") line.attr("marker-start", "url(" + url + "#" + diagramId + "-arrowend)");
3150
+ }
3151
+ let messageConf = conf2.messageFont();
3152
+ _drawTextCandidateFunc(conf2)(rel.label.text, relsElem, Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX, Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + offsetY, rel.label.width, rel.label.height, { fill: textColor }, messageConf);
3153
+ if (rel.techn && rel.techn.text !== "") {
3154
+ messageConf = conf2.messageFont();
3155
+ _drawTextCandidateFunc(conf2)("[" + rel.techn.text + "]", relsElem, Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX, Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + conf2.messageFontSize + 5 + offsetY, Math.max(rel.label.width, rel.techn.width), rel.techn.height, {
3156
+ fill: textColor,
3157
+ "font-style": "italic"
3158
+ }, messageConf);
3159
+ }
3160
+ }
3161
+ }, "drawRels");
3162
+ var drawBoundary = /* @__PURE__ */ __name$1(function(elem, boundary, conf2) {
3163
+ const boundaryElem = elem.append("g");
3164
+ let fillColor = boundary.bgColor ? boundary.bgColor : "none";
3165
+ let strokeColor = boundary.borderColor ? boundary.borderColor : "#444444";
3166
+ let fontColor = boundary.fontColor ? boundary.fontColor : "black";
3167
+ let attrsValue = {
3168
+ "stroke-width": 1,
3169
+ "stroke-dasharray": "7.0,7.0"
3170
+ };
3171
+ if (boundary.nodeType) attrsValue = { "stroke-width": 1 };
3172
+ drawRect2(boundaryElem, {
3173
+ x: boundary.x,
3174
+ y: boundary.y,
3175
+ fill: fillColor,
3176
+ stroke: strokeColor,
3177
+ width: boundary.width,
3178
+ height: boundary.height,
3179
+ rx: 2.5,
3180
+ ry: 2.5,
3181
+ attrs: attrsValue
3182
+ });
3183
+ let boundaryConf = conf2.boundaryFont();
3184
+ boundaryConf.fontWeight = "bold";
3185
+ boundaryConf.fontSize = boundaryConf.fontSize + 2;
3186
+ boundaryConf.fontColor = fontColor;
3187
+ _drawTextCandidateFunc(conf2)(boundary.label.text, boundaryElem, boundary.x, boundary.y + boundary.label.Y, boundary.width, boundary.height, { fill: "#444444" }, boundaryConf);
3188
+ if (boundary.type && boundary.type.text !== "") {
3189
+ boundaryConf = conf2.boundaryFont();
3190
+ boundaryConf.fontColor = fontColor;
3191
+ _drawTextCandidateFunc(conf2)(boundary.type.text, boundaryElem, boundary.x, boundary.y + boundary.type.Y, boundary.width, boundary.height, { fill: "#444444" }, boundaryConf);
3192
+ }
3193
+ if (boundary.descr && boundary.descr.text !== "") {
3194
+ boundaryConf = conf2.boundaryFont();
3195
+ boundaryConf.fontSize = boundaryConf.fontSize - 2;
3196
+ boundaryConf.fontColor = fontColor;
3197
+ _drawTextCandidateFunc(conf2)(boundary.descr.text, boundaryElem, boundary.x, boundary.y + boundary.descr.Y, boundary.width, boundary.height, { fill: "#444444" }, boundaryConf);
3198
+ }
3199
+ }, "drawBoundary");
3200
+ var drawC4Shape = /* @__PURE__ */ __name$1(function(elem, c4Shape, conf2) {
3201
+ let fillColor = c4Shape.bgColor ? c4Shape.bgColor : conf2[c4Shape.typeC4Shape.text + "_bg_color"];
3202
+ let strokeColor = c4Shape.borderColor ? c4Shape.borderColor : conf2[c4Shape.typeC4Shape.text + "_border_color"];
3203
+ let fontColor = c4Shape.fontColor ? c4Shape.fontColor : "#FFFFFF";
3204
+ let personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
3205
+ switch (c4Shape.typeC4Shape.text) {
3206
+ case "person":
3207
+ personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
3208
+ break;
3209
+ case "external_person":
3210
+ personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
3211
+ break;
3212
+ }
3213
+ const c4ShapeElem = elem.append("g");
3214
+ c4ShapeElem.attr("class", "person-man");
3215
+ const rect = getNoteRect();
3216
+ switch (c4Shape.typeC4Shape.text) {
3217
+ case "person":
3218
+ case "external_person":
3219
+ case "system":
3220
+ case "external_system":
3221
+ case "container":
3222
+ case "external_container":
3223
+ case "component":
3224
+ case "external_component":
3225
+ rect.x = c4Shape.x;
3226
+ rect.y = c4Shape.y;
3227
+ rect.fill = fillColor;
3228
+ rect.width = c4Shape.width;
3229
+ rect.height = c4Shape.height;
3230
+ rect.stroke = strokeColor;
3231
+ rect.rx = 2.5;
3232
+ rect.ry = 2.5;
3233
+ rect.attrs = { "stroke-width": .5 };
3234
+ drawRect2(c4ShapeElem, rect);
3235
+ break;
3236
+ case "system_db":
3237
+ case "external_system_db":
3238
+ case "container_db":
3239
+ case "external_container_db":
3240
+ case "component_db":
3241
+ case "external_component_db":
3242
+ c4ShapeElem.append("path").attr("fill", fillColor).attr("stroke-width", "0.5").attr("stroke", strokeColor).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", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.width / 2).replaceAll("height", c4Shape.height));
3243
+ c4ShapeElem.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", strokeColor).attr("d", "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.width / 2));
3244
+ break;
3245
+ case "system_queue":
3246
+ case "external_system_queue":
3247
+ case "container_queue":
3248
+ case "external_container_queue":
3249
+ case "component_queue":
3250
+ case "external_component_queue":
3251
+ c4ShapeElem.append("path").attr("fill", fillColor).attr("stroke-width", "0.5").attr("stroke", strokeColor).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", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("width", c4Shape.width).replaceAll("half", c4Shape.height / 2));
3252
+ c4ShapeElem.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", strokeColor).attr("d", "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", c4Shape.x + c4Shape.width).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.height / 2));
3253
+ break;
3254
+ }
3255
+ let c4ShapeFontConf = getC4ShapeFont(conf2, c4Shape.typeC4Shape.text);
3256
+ c4ShapeElem.append("text").attr("fill", fontColor).attr("font-family", c4ShapeFontConf.fontFamily).attr("font-size", c4ShapeFontConf.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", c4Shape.typeC4Shape.width).attr("x", c4Shape.x + c4Shape.width / 2 - c4Shape.typeC4Shape.width / 2).attr("y", c4Shape.y + c4Shape.typeC4Shape.Y).text("<<" + c4Shape.typeC4Shape.text + ">>");
3257
+ switch (c4Shape.typeC4Shape.text) {
3258
+ case "person":
3259
+ case "external_person":
3260
+ drawImage(c4ShapeElem, 48, 48, c4Shape.x + c4Shape.width / 2 - 24, c4Shape.y + c4Shape.image.Y, personImg);
3261
+ break;
3262
+ }
3263
+ let textFontConf = conf2[c4Shape.typeC4Shape.text + "Font"]();
3264
+ textFontConf.fontWeight = "bold";
3265
+ textFontConf.fontSize = textFontConf.fontSize + 2;
3266
+ textFontConf.fontColor = fontColor;
3267
+ _drawTextCandidateFunc(conf2)(c4Shape.label.text, c4ShapeElem, c4Shape.x, c4Shape.y + c4Shape.label.Y, c4Shape.width, c4Shape.height, { fill: fontColor }, textFontConf);
3268
+ textFontConf = conf2[c4Shape.typeC4Shape.text + "Font"]();
3269
+ textFontConf.fontColor = fontColor;
3270
+ if (c4Shape.techn && c4Shape.techn?.text !== "") _drawTextCandidateFunc(conf2)(c4Shape.techn.text, c4ShapeElem, c4Shape.x, c4Shape.y + c4Shape.techn.Y, c4Shape.width, c4Shape.height, {
3271
+ fill: fontColor,
3272
+ "font-style": "italic"
3273
+ }, textFontConf);
3274
+ else if (c4Shape.type && c4Shape.type.text !== "") _drawTextCandidateFunc(conf2)(c4Shape.type.text, c4ShapeElem, c4Shape.x, c4Shape.y + c4Shape.type.Y, c4Shape.width, c4Shape.height, {
3275
+ fill: fontColor,
3276
+ "font-style": "italic"
3277
+ }, textFontConf);
3278
+ if (c4Shape.descr && c4Shape.descr.text !== "") {
3279
+ textFontConf = conf2.personFont();
3280
+ textFontConf.fontColor = fontColor;
3281
+ _drawTextCandidateFunc(conf2)(c4Shape.descr.text, c4ShapeElem, c4Shape.x, c4Shape.y + c4Shape.descr.Y, c4Shape.width, c4Shape.height, { fill: fontColor }, textFontConf);
3282
+ }
3283
+ return c4Shape.height;
3284
+ }, "drawC4Shape");
3285
+ var insertDatabaseIcon = /* @__PURE__ */ __name$1(function(elem, id) {
3286
+ elem.append("defs").append("symbol").attr("id", id + "-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");
3287
+ }, "insertDatabaseIcon");
3288
+ var insertComputerIcon = /* @__PURE__ */ __name$1(function(elem, id) {
3289
+ elem.append("defs").append("symbol").attr("id", id + "-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");
3290
+ }, "insertComputerIcon");
3291
+ var insertClockIcon = /* @__PURE__ */ __name$1(function(elem, id) {
3292
+ elem.append("defs").append("symbol").attr("id", id + "-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");
3293
+ }, "insertClockIcon");
3294
+ var insertArrowHead = /* @__PURE__ */ __name$1(function(elem, id) {
3295
+ elem.append("defs").append("marker").attr("id", id + "-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");
3296
+ }, "insertArrowHead");
3297
+ var insertArrowEnd = /* @__PURE__ */ __name$1(function(elem, id) {
3298
+ elem.append("defs").append("marker").attr("id", id + "-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");
3299
+ }, "insertArrowEnd");
3300
+ var insertArrowFilledHead = /* @__PURE__ */ __name$1(function(elem, id) {
3301
+ elem.append("defs").append("marker").attr("id", id + "-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");
3302
+ }, "insertArrowFilledHead");
3303
+ var insertArrowCrossHead = /* @__PURE__ */ __name$1(function(elem, id) {
3304
+ const marker = elem.append("defs").append("marker").attr("id", id + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
3305
+ marker.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");
3306
+ marker.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");
3307
+ }, "insertArrowCrossHead");
3308
+ var getC4ShapeFont = /* @__PURE__ */ __name$1((cnf, typeC4Shape) => {
3309
+ return {
3310
+ fontFamily: cnf[typeC4Shape + "FontFamily"],
3311
+ fontSize: cnf[typeC4Shape + "FontSize"],
3312
+ fontWeight: cnf[typeC4Shape + "FontWeight"]
3313
+ };
3314
+ }, "getC4ShapeFont");
3315
+ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
3316
+ function byText(content, g, x, y, width, height, textAttrs) {
3317
+ _setTextAttrs(g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content), textAttrs);
3318
+ }
3319
+ __name$1(byText, "byText");
3320
+ function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
3321
+ const { fontSize, fontFamily, fontWeight } = conf2;
3322
+ const lines = content.split(common_default.lineBreakRegex);
3323
+ for (let i = 0; i < lines.length; i++) {
3324
+ const dy = i * fontSize - fontSize * (lines.length - 1) / 2;
3325
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", fontSize).style("font-weight", fontWeight).style("font-family", fontFamily);
3326
+ text.append("tspan").attr("dy", dy).text(lines[i]).attr("alignment-baseline", "mathematical");
3327
+ _setTextAttrs(text, textAttrs);
3328
+ }
3329
+ }
3330
+ __name$1(byTspan, "byTspan");
3331
+ function byFo(content, g, x, y, width, height, textAttrs, conf2) {
3332
+ const s = g.append("switch");
3333
+ const text = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3334
+ text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
3335
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
3336
+ _setTextAttrs(text, textAttrs);
3337
+ }
3338
+ __name$1(byFo, "byFo");
3339
+ function _setTextAttrs(toText, fromTextAttrsDict) {
3340
+ for (const key in fromTextAttrsDict) if (fromTextAttrsDict.hasOwnProperty(key)) toText.attr(key, fromTextAttrsDict[key]);
3341
+ }
3342
+ __name$1(_setTextAttrs, "_setTextAttrs");
3343
+ return function(conf2) {
3344
+ return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
3345
+ };
3346
+ }();
3347
+ var svgDraw_default = {
3348
+ drawRect: drawRect2,
3349
+ drawBoundary,
3350
+ drawC4Shape,
3351
+ drawRels,
3352
+ drawImage,
3353
+ insertArrowHead,
3354
+ insertArrowEnd,
3355
+ insertArrowFilledHead,
3356
+ insertArrowCrossHead,
3357
+ insertDatabaseIcon,
3358
+ insertComputerIcon,
3359
+ insertClockIcon
3360
+ };
3361
+ var globalBoundaryMaxX = 0;
3362
+ var globalBoundaryMaxY = 0;
3363
+ var c4ShapeInRow2 = 4;
3364
+ var c4BoundaryInRow2 = 2;
3365
+ parser.yy = c4Db_default;
3366
+ var conf = {};
3367
+ var Bounds = class {
3368
+ static {
3369
+ __name$1(this, "Bounds");
3370
+ }
3371
+ constructor(diagObj) {
3372
+ this.name = "";
3373
+ this.data = {};
3374
+ this.data.startx = void 0;
3375
+ this.data.stopx = void 0;
3376
+ this.data.starty = void 0;
3377
+ this.data.stopy = void 0;
3378
+ this.data.widthLimit = void 0;
3379
+ this.nextData = {};
3380
+ this.nextData.startx = void 0;
3381
+ this.nextData.stopx = void 0;
3382
+ this.nextData.starty = void 0;
3383
+ this.nextData.stopy = void 0;
3384
+ this.nextData.cnt = 0;
3385
+ setConf(diagObj.db.getConfig());
3386
+ }
3387
+ setData(startx, stopx, starty, stopy) {
3388
+ this.nextData.startx = this.data.startx = startx;
3389
+ this.nextData.stopx = this.data.stopx = stopx;
3390
+ this.nextData.starty = this.data.starty = starty;
3391
+ this.nextData.stopy = this.data.stopy = stopy;
3392
+ }
3393
+ updateVal(obj, key, val, fun) {
3394
+ if (obj[key] === void 0) obj[key] = val;
3395
+ else obj[key] = fun(val, obj[key]);
3396
+ }
3397
+ insert(c4Shape) {
3398
+ this.nextData.cnt = this.nextData.cnt + 1;
3399
+ let _startx = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + c4Shape.margin : this.nextData.stopx + c4Shape.margin * 2;
3400
+ let _stopx = _startx + c4Shape.width;
3401
+ let _starty = this.nextData.starty + c4Shape.margin * 2;
3402
+ let _stopy = _starty + c4Shape.height;
3403
+ if (_startx >= this.data.widthLimit || _stopx >= this.data.widthLimit || this.nextData.cnt > c4ShapeInRow2) {
3404
+ _startx = this.nextData.startx + c4Shape.margin + conf.nextLinePaddingX;
3405
+ _starty = this.nextData.stopy + c4Shape.margin * 2;
3406
+ this.nextData.stopx = _stopx = _startx + c4Shape.width;
3407
+ this.nextData.starty = this.nextData.stopy;
3408
+ this.nextData.stopy = _stopy = _starty + c4Shape.height;
3409
+ this.nextData.cnt = 1;
3410
+ }
3411
+ c4Shape.x = _startx;
3412
+ c4Shape.y = _starty;
3413
+ this.updateVal(this.data, "startx", _startx, Math.min);
3414
+ this.updateVal(this.data, "starty", _starty, Math.min);
3415
+ this.updateVal(this.data, "stopx", _stopx, Math.max);
3416
+ this.updateVal(this.data, "stopy", _stopy, Math.max);
3417
+ this.updateVal(this.nextData, "startx", _startx, Math.min);
3418
+ this.updateVal(this.nextData, "starty", _starty, Math.min);
3419
+ this.updateVal(this.nextData, "stopx", _stopx, Math.max);
3420
+ this.updateVal(this.nextData, "stopy", _stopy, Math.max);
3421
+ }
3422
+ init(diagObj) {
3423
+ this.name = "";
3424
+ this.data = {
3425
+ startx: void 0,
3426
+ stopx: void 0,
3427
+ starty: void 0,
3428
+ stopy: void 0,
3429
+ widthLimit: void 0
3430
+ };
3431
+ this.nextData = {
3432
+ startx: void 0,
3433
+ stopx: void 0,
3434
+ starty: void 0,
3435
+ stopy: void 0,
3436
+ cnt: 0
3437
+ };
3438
+ setConf(diagObj.db.getConfig());
3439
+ }
3440
+ bumpLastMargin(margin) {
3441
+ this.data.stopx += margin;
3442
+ this.data.stopy += margin;
3443
+ }
3444
+ };
3445
+ var setConf = /* @__PURE__ */ __name$1(function(cnf) {
3446
+ assignWithDepth_default(conf, cnf);
3447
+ if (cnf.fontFamily) conf.personFontFamily = conf.systemFontFamily = conf.messageFontFamily = cnf.fontFamily;
3448
+ if (cnf.fontSize) conf.personFontSize = conf.systemFontSize = conf.messageFontSize = cnf.fontSize;
3449
+ if (cnf.fontWeight) conf.personFontWeight = conf.systemFontWeight = conf.messageFontWeight = cnf.fontWeight;
3450
+ }, "setConf");
3451
+ var c4ShapeFont = /* @__PURE__ */ __name$1((cnf, typeC4Shape) => {
3452
+ return {
3453
+ fontFamily: cnf[typeC4Shape + "FontFamily"],
3454
+ fontSize: cnf[typeC4Shape + "FontSize"],
3455
+ fontWeight: cnf[typeC4Shape + "FontWeight"]
3456
+ };
3457
+ }, "c4ShapeFont");
3458
+ var boundaryFont = /* @__PURE__ */ __name$1((cnf) => {
3459
+ return {
3460
+ fontFamily: cnf.boundaryFontFamily,
3461
+ fontSize: cnf.boundaryFontSize,
3462
+ fontWeight: cnf.boundaryFontWeight
3463
+ };
3464
+ }, "boundaryFont");
3465
+ var messageFont = /* @__PURE__ */ __name$1((cnf) => {
3466
+ return {
3467
+ fontFamily: cnf.messageFontFamily,
3468
+ fontSize: cnf.messageFontSize,
3469
+ fontWeight: cnf.messageFontWeight
3470
+ };
3471
+ }, "messageFont");
3472
+ function calcC4ShapeTextWH(textType, c4Shape, c4ShapeTextWrap, textConf, textLimitWidth) {
3473
+ if (!c4Shape[textType].width) if (c4ShapeTextWrap) {
3474
+ c4Shape[textType].text = wrapLabel(c4Shape[textType].text, textLimitWidth, textConf);
3475
+ c4Shape[textType].textLines = c4Shape[textType].text.split(common_default.lineBreakRegex).length;
3476
+ c4Shape[textType].width = textLimitWidth;
3477
+ c4Shape[textType].height = calculateTextHeight(c4Shape[textType].text, textConf);
3478
+ } else {
3479
+ let lines = c4Shape[textType].text.split(common_default.lineBreakRegex);
3480
+ c4Shape[textType].textLines = lines.length;
3481
+ let lineHeight = 0;
3482
+ c4Shape[textType].height = 0;
3483
+ c4Shape[textType].width = 0;
3484
+ for (const line of lines) {
3485
+ c4Shape[textType].width = Math.max(calculateTextWidth(line, textConf), c4Shape[textType].width);
3486
+ lineHeight = calculateTextHeight(line, textConf);
3487
+ c4Shape[textType].height = c4Shape[textType].height + lineHeight;
3488
+ }
3489
+ }
3490
+ }
3491
+ __name$1(calcC4ShapeTextWH, "calcC4ShapeTextWH");
3492
+ var drawBoundary2 = /* @__PURE__ */ __name$1(function(diagram2, boundary, bounds) {
3493
+ boundary.x = bounds.data.startx;
3494
+ boundary.y = bounds.data.starty;
3495
+ boundary.width = bounds.data.stopx - bounds.data.startx;
3496
+ boundary.height = bounds.data.stopy - bounds.data.starty;
3497
+ boundary.label.y = conf.c4ShapeMargin - 35;
3498
+ let boundaryTextWrap = boundary.wrap && conf.wrap;
3499
+ let boundaryLabelConf = boundaryFont(conf);
3500
+ boundaryLabelConf.fontSize = boundaryLabelConf.fontSize + 2;
3501
+ boundaryLabelConf.fontWeight = "bold";
3502
+ calcC4ShapeTextWH("label", boundary, boundaryTextWrap, boundaryLabelConf, calculateTextWidth(boundary.label.text, boundaryLabelConf));
3503
+ svgDraw_default.drawBoundary(diagram2, boundary, conf);
3504
+ }, "drawBoundary");
3505
+ var drawC4ShapeArray = /* @__PURE__ */ __name$1(function(currentBounds, diagram2, c4ShapeArray2, c4ShapeKeys) {
3506
+ let Y = 0;
3507
+ for (const c4ShapeKey of c4ShapeKeys) {
3508
+ Y = 0;
3509
+ const c4Shape = c4ShapeArray2[c4ShapeKey];
3510
+ let c4ShapeTypeConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
3511
+ c4ShapeTypeConf.fontSize = c4ShapeTypeConf.fontSize - 2;
3512
+ c4Shape.typeC4Shape.width = calculateTextWidth("«" + c4Shape.typeC4Shape.text + "»", c4ShapeTypeConf);
3513
+ c4Shape.typeC4Shape.height = c4ShapeTypeConf.fontSize + 2;
3514
+ c4Shape.typeC4Shape.Y = conf.c4ShapePadding;
3515
+ Y = c4Shape.typeC4Shape.Y + c4Shape.typeC4Shape.height - 4;
3516
+ c4Shape.image = {
3517
+ width: 0,
3518
+ height: 0,
3519
+ Y: 0
3520
+ };
3521
+ switch (c4Shape.typeC4Shape.text) {
3522
+ case "person":
3523
+ case "external_person":
3524
+ c4Shape.image.width = 48;
3525
+ c4Shape.image.height = 48;
3526
+ c4Shape.image.Y = Y;
3527
+ Y = c4Shape.image.Y + c4Shape.image.height;
3528
+ break;
3529
+ }
3530
+ if (c4Shape.sprite) {
3531
+ c4Shape.image.width = 48;
3532
+ c4Shape.image.height = 48;
3533
+ c4Shape.image.Y = Y;
3534
+ Y = c4Shape.image.Y + c4Shape.image.height;
3535
+ }
3536
+ let c4ShapeTextWrap = c4Shape.wrap && conf.wrap;
3537
+ let textLimitWidth = conf.width - conf.c4ShapePadding * 2;
3538
+ let c4ShapeLabelConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
3539
+ c4ShapeLabelConf.fontSize = c4ShapeLabelConf.fontSize + 2;
3540
+ c4ShapeLabelConf.fontWeight = "bold";
3541
+ calcC4ShapeTextWH("label", c4Shape, c4ShapeTextWrap, c4ShapeLabelConf, textLimitWidth);
3542
+ c4Shape.label.Y = Y + 8;
3543
+ Y = c4Shape.label.Y + c4Shape.label.height;
3544
+ if (c4Shape.type && c4Shape.type.text !== "") {
3545
+ c4Shape.type.text = "[" + c4Shape.type.text + "]";
3546
+ calcC4ShapeTextWH("type", c4Shape, c4ShapeTextWrap, c4ShapeFont(conf, c4Shape.typeC4Shape.text), textLimitWidth);
3547
+ c4Shape.type.Y = Y + 5;
3548
+ Y = c4Shape.type.Y + c4Shape.type.height;
3549
+ } else if (c4Shape.techn && c4Shape.techn.text !== "") {
3550
+ c4Shape.techn.text = "[" + c4Shape.techn.text + "]";
3551
+ calcC4ShapeTextWH("techn", c4Shape, c4ShapeTextWrap, c4ShapeFont(conf, c4Shape.techn.text), textLimitWidth);
3552
+ c4Shape.techn.Y = Y + 5;
3553
+ Y = c4Shape.techn.Y + c4Shape.techn.height;
3554
+ }
3555
+ let rectHeight = Y;
3556
+ let rectWidth = c4Shape.label.width;
3557
+ if (c4Shape.descr && c4Shape.descr.text !== "") {
3558
+ calcC4ShapeTextWH("descr", c4Shape, c4ShapeTextWrap, c4ShapeFont(conf, c4Shape.typeC4Shape.text), textLimitWidth);
3559
+ c4Shape.descr.Y = Y + 20;
3560
+ Y = c4Shape.descr.Y + c4Shape.descr.height;
3561
+ rectWidth = Math.max(c4Shape.label.width, c4Shape.descr.width);
3562
+ rectHeight = Y - c4Shape.descr.textLines * 5;
3563
+ }
3564
+ rectWidth = rectWidth + conf.c4ShapePadding;
3565
+ c4Shape.width = Math.max(c4Shape.width || conf.width, rectWidth, conf.width);
3566
+ c4Shape.height = Math.max(c4Shape.height || conf.height, rectHeight, conf.height);
3567
+ c4Shape.margin = c4Shape.margin || conf.c4ShapeMargin;
3568
+ currentBounds.insert(c4Shape);
3569
+ svgDraw_default.drawC4Shape(diagram2, c4Shape, conf);
3570
+ }
3571
+ currentBounds.bumpLastMargin(conf.c4ShapeMargin);
3572
+ }, "drawC4ShapeArray");
3573
+ var Point = class {
3574
+ static {
3575
+ __name$1(this, "Point");
3576
+ }
3577
+ constructor(x, y) {
3578
+ this.x = x;
3579
+ this.y = y;
3580
+ }
3581
+ };
3582
+ var getIntersectPoint = /* @__PURE__ */ __name$1(function(fromNode, endPoint) {
3583
+ let x1 = fromNode.x;
3584
+ let y1 = fromNode.y;
3585
+ let x2 = endPoint.x;
3586
+ let y2 = endPoint.y;
3587
+ let fromCenterX = x1 + fromNode.width / 2;
3588
+ let fromCenterY = y1 + fromNode.height / 2;
3589
+ let dx = Math.abs(x1 - x2);
3590
+ let dy = Math.abs(y1 - y2);
3591
+ let tanDYX = dy / dx;
3592
+ let fromDYX = fromNode.height / fromNode.width;
3593
+ let returnPoint = null;
3594
+ if (y1 == y2 && x1 < x2) returnPoint = new Point(x1 + fromNode.width, fromCenterY);
3595
+ else if (y1 == y2 && x1 > x2) returnPoint = new Point(x1, fromCenterY);
3596
+ else if (x1 == x2 && y1 < y2) returnPoint = new Point(fromCenterX, y1 + fromNode.height);
3597
+ else if (x1 == x2 && y1 > y2) returnPoint = new Point(fromCenterX, y1);
3598
+ if (x1 > x2 && y1 < y2) if (fromDYX >= tanDYX) returnPoint = new Point(x1, fromCenterY + tanDYX * fromNode.width / 2);
3599
+ else returnPoint = new Point(fromCenterX - dx / dy * fromNode.height / 2, y1 + fromNode.height);
3600
+ else if (x1 < x2 && y1 < y2) if (fromDYX >= tanDYX) returnPoint = new Point(x1 + fromNode.width, fromCenterY + tanDYX * fromNode.width / 2);
3601
+ else returnPoint = new Point(fromCenterX + dx / dy * fromNode.height / 2, y1 + fromNode.height);
3602
+ else if (x1 < x2 && y1 > y2) if (fromDYX >= tanDYX) returnPoint = new Point(x1 + fromNode.width, fromCenterY - tanDYX * fromNode.width / 2);
3603
+ else returnPoint = new Point(fromCenterX + fromNode.height / 2 * dx / dy, y1);
3604
+ else if (x1 > x2 && y1 > y2) if (fromDYX >= tanDYX) returnPoint = new Point(x1, fromCenterY - fromNode.width / 2 * tanDYX);
3605
+ else returnPoint = new Point(fromCenterX - fromNode.height / 2 * dx / dy, y1);
3606
+ return returnPoint;
3607
+ }, "getIntersectPoint");
3608
+ var getIntersectPoints = /* @__PURE__ */ __name$1(function(fromNode, endNode) {
3609
+ let endIntersectPoint = {
3610
+ x: 0,
3611
+ y: 0
3612
+ };
3613
+ endIntersectPoint.x = endNode.x + endNode.width / 2;
3614
+ endIntersectPoint.y = endNode.y + endNode.height / 2;
3615
+ let startPoint = getIntersectPoint(fromNode, endIntersectPoint);
3616
+ endIntersectPoint.x = fromNode.x + fromNode.width / 2;
3617
+ endIntersectPoint.y = fromNode.y + fromNode.height / 2;
3618
+ return {
3619
+ startPoint,
3620
+ endPoint: getIntersectPoint(endNode, endIntersectPoint)
3621
+ };
3622
+ }, "getIntersectPoints");
3623
+ var drawRels2 = /* @__PURE__ */ __name$1(function(diagram2, rels2, getC4ShapeObj, diagObj, diagramId) {
3624
+ let i = 0;
3625
+ for (let rel of rels2) {
3626
+ i = i + 1;
3627
+ let relTextWrap = rel.wrap && conf.wrap;
3628
+ let relConf = messageFont(conf);
3629
+ if (diagObj.db.getC4Type() === "C4Dynamic") rel.label.text = i + ": " + rel.label.text;
3630
+ let textLimitWidth = calculateTextWidth(rel.label.text, relConf);
3631
+ calcC4ShapeTextWH("label", rel, relTextWrap, relConf, textLimitWidth);
3632
+ if (rel.techn && rel.techn.text !== "") {
3633
+ textLimitWidth = calculateTextWidth(rel.techn.text, relConf);
3634
+ calcC4ShapeTextWH("techn", rel, relTextWrap, relConf, textLimitWidth);
3635
+ }
3636
+ if (rel.descr && rel.descr.text !== "") {
3637
+ textLimitWidth = calculateTextWidth(rel.descr.text, relConf);
3638
+ calcC4ShapeTextWH("descr", rel, relTextWrap, relConf, textLimitWidth);
3639
+ }
3640
+ let points = getIntersectPoints(getC4ShapeObj(rel.from), getC4ShapeObj(rel.to));
3641
+ rel.startPoint = points.startPoint;
3642
+ rel.endPoint = points.endPoint;
3643
+ }
3644
+ svgDraw_default.drawRels(diagram2, rels2, conf, diagramId);
3645
+ }, "drawRels");
3646
+ function drawInsideBoundary(diagram2, parentBoundaryAlias, parentBounds, currentBoundaries, diagObj) {
3647
+ let currentBounds = new Bounds(diagObj);
3648
+ currentBounds.data.widthLimit = parentBounds.data.widthLimit / Math.min(c4BoundaryInRow2, currentBoundaries.length);
3649
+ for (let [i, currentBoundary] of currentBoundaries.entries()) {
3650
+ let Y = 0;
3651
+ currentBoundary.image = {
3652
+ width: 0,
3653
+ height: 0,
3654
+ Y: 0
3655
+ };
3656
+ if (currentBoundary.sprite) {
3657
+ currentBoundary.image.width = 48;
3658
+ currentBoundary.image.height = 48;
3659
+ currentBoundary.image.Y = Y;
3660
+ Y = currentBoundary.image.Y + currentBoundary.image.height;
3661
+ }
3662
+ let currentBoundaryTextWrap = currentBoundary.wrap && conf.wrap;
3663
+ let currentBoundaryLabelConf = boundaryFont(conf);
3664
+ currentBoundaryLabelConf.fontSize = currentBoundaryLabelConf.fontSize + 2;
3665
+ currentBoundaryLabelConf.fontWeight = "bold";
3666
+ calcC4ShapeTextWH("label", currentBoundary, currentBoundaryTextWrap, currentBoundaryLabelConf, currentBounds.data.widthLimit);
3667
+ currentBoundary.label.Y = Y + 8;
3668
+ Y = currentBoundary.label.Y + currentBoundary.label.height;
3669
+ if (currentBoundary.type && currentBoundary.type.text !== "") {
3670
+ currentBoundary.type.text = "[" + currentBoundary.type.text + "]";
3671
+ calcC4ShapeTextWH("type", currentBoundary, currentBoundaryTextWrap, boundaryFont(conf), currentBounds.data.widthLimit);
3672
+ currentBoundary.type.Y = Y + 5;
3673
+ Y = currentBoundary.type.Y + currentBoundary.type.height;
3674
+ }
3675
+ if (currentBoundary.descr && currentBoundary.descr.text !== "") {
3676
+ let currentBoundaryDescrConf = boundaryFont(conf);
3677
+ currentBoundaryDescrConf.fontSize = currentBoundaryDescrConf.fontSize - 2;
3678
+ calcC4ShapeTextWH("descr", currentBoundary, currentBoundaryTextWrap, currentBoundaryDescrConf, currentBounds.data.widthLimit);
3679
+ currentBoundary.descr.Y = Y + 20;
3680
+ Y = currentBoundary.descr.Y + currentBoundary.descr.height;
3681
+ }
3682
+ if (i == 0 || i % c4BoundaryInRow2 === 0) {
3683
+ let _x = parentBounds.data.startx + conf.diagramMarginX;
3684
+ let _y = parentBounds.data.stopy + conf.diagramMarginY + Y;
3685
+ currentBounds.setData(_x, _x, _y, _y);
3686
+ } else {
3687
+ let _x = currentBounds.data.stopx !== currentBounds.data.startx ? currentBounds.data.stopx + conf.diagramMarginX : currentBounds.data.startx;
3688
+ let _y = currentBounds.data.starty;
3689
+ currentBounds.setData(_x, _x, _y, _y);
3690
+ }
3691
+ currentBounds.name = currentBoundary.alias;
3692
+ let currentPersonOrSystemArray = diagObj.db.getC4ShapeArray(currentBoundary.alias);
3693
+ let currentPersonOrSystemKeys = diagObj.db.getC4ShapeKeys(currentBoundary.alias);
3694
+ if (currentPersonOrSystemKeys.length > 0) drawC4ShapeArray(currentBounds, diagram2, currentPersonOrSystemArray, currentPersonOrSystemKeys);
3695
+ parentBoundaryAlias = currentBoundary.alias;
3696
+ let nextCurrentBoundaries = diagObj.db.getBoundaries(parentBoundaryAlias);
3697
+ if (nextCurrentBoundaries.length > 0) drawInsideBoundary(diagram2, parentBoundaryAlias, currentBounds, nextCurrentBoundaries, diagObj);
3698
+ if (currentBoundary.alias !== "global") drawBoundary2(diagram2, currentBoundary, currentBounds);
3699
+ parentBounds.data.stopy = Math.max(currentBounds.data.stopy + conf.c4ShapeMargin, parentBounds.data.stopy);
3700
+ parentBounds.data.stopx = Math.max(currentBounds.data.stopx + conf.c4ShapeMargin, parentBounds.data.stopx);
3701
+ globalBoundaryMaxX = Math.max(globalBoundaryMaxX, parentBounds.data.stopx);
3702
+ globalBoundaryMaxY = Math.max(globalBoundaryMaxY, parentBounds.data.stopy);
3703
+ }
3704
+ }
3705
+ __name$1(drawInsideBoundary, "drawInsideBoundary");
3706
+ var c4Renderer_default = {
3707
+ drawPersonOrSystemArray: drawC4ShapeArray,
3708
+ drawBoundary: drawBoundary2,
3709
+ setConf,
3710
+ draw: /* @__PURE__ */ __name$1(function(_text, id, _version, diagObj) {
3711
+ conf = getConfig2().c4;
3712
+ const securityLevel = getConfig2().securityLevel;
3713
+ let sandboxElement;
3714
+ if (securityLevel === "sandbox") sandboxElement = select_default("#i" + id);
3715
+ const root = securityLevel === "sandbox" ? select_default(sandboxElement.nodes()[0].contentDocument.body) : select_default("body");
3716
+ let db = diagObj.db;
3717
+ diagObj.db.setWrap(conf.wrap);
3718
+ c4ShapeInRow2 = db.getC4ShapeInRow();
3719
+ c4BoundaryInRow2 = db.getC4BoundaryInRow();
3720
+ log.debug(`C:${JSON.stringify(conf, null, 2)}`);
3721
+ const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select_default(`[id="${id}"]`);
3722
+ svgDraw_default.insertComputerIcon(diagram2, id);
3723
+ svgDraw_default.insertDatabaseIcon(diagram2, id);
3724
+ svgDraw_default.insertClockIcon(diagram2, id);
3725
+ let screenBounds = new Bounds(diagObj);
3726
+ screenBounds.setData(conf.diagramMarginX, conf.diagramMarginX, conf.diagramMarginY, conf.diagramMarginY);
3727
+ screenBounds.data.widthLimit = screen.availWidth;
3728
+ globalBoundaryMaxX = conf.diagramMarginX;
3729
+ globalBoundaryMaxY = conf.diagramMarginY;
3730
+ const title2 = diagObj.db.getTitle();
3731
+ drawInsideBoundary(diagram2, "", screenBounds, diagObj.db.getBoundaries(""), diagObj);
3732
+ svgDraw_default.insertArrowHead(diagram2, id);
3733
+ svgDraw_default.insertArrowEnd(diagram2, id);
3734
+ svgDraw_default.insertArrowCrossHead(diagram2, id);
3735
+ svgDraw_default.insertArrowFilledHead(diagram2, id);
3736
+ drawRels2(diagram2, diagObj.db.getRels(), diagObj.db.getC4Shape, diagObj, id);
3737
+ screenBounds.data.stopx = globalBoundaryMaxX;
3738
+ screenBounds.data.stopy = globalBoundaryMaxY;
3739
+ const box = screenBounds.data;
3740
+ let height = box.stopy - box.starty + 2 * conf.diagramMarginY;
3741
+ const width = box.stopx - box.startx + 2 * conf.diagramMarginX;
3742
+ if (title2) diagram2.append("text").text(title2).attr("x", (box.stopx - box.startx) / 2 - 4 * conf.diagramMarginX).attr("y", box.starty + conf.diagramMarginY);
3743
+ configureSvgSize(diagram2, height, width, conf.useMaxWidth);
3744
+ const extraVertForTitle = title2 ? 60 : 0;
3745
+ diagram2.attr("viewBox", box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle));
3746
+ log.debug(`models:`, box);
3747
+ }, "draw")
3748
+ };
3749
+ var diagram = {
3750
+ parser: c4Diagram_default,
3751
+ db: c4Db_default,
3752
+ renderer: c4Renderer_default,
3753
+ styles: /* @__PURE__ */ __name$1((options) => `.person {
3754
+ stroke: ${options.personBorder};
3755
+ fill: ${options.personBkg};
3756
+ }
3757
+ `, "getStyles"),
3758
+ init: /* @__PURE__ */ __name$1(({ c4, wrap }) => {
3759
+ c4Renderer_default.setConf(c4);
3760
+ c4Db_default.setWrap(wrap);
3761
+ }, "init")
3762
+ };
3763
+ //#endregion
3764
+ export { diagram };