reflex-agent 0.4.0 → 0.5.0

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 (251) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +90 -90
  3. package/.next/app-path-routes-manifest.json +9 -9
  4. package/.next/build-manifest.json +5 -5
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/react-loadable-manifest.json +1 -1
  7. package/.next/server/app/_not-found/page.js +2 -2
  8. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  9. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/agents/[agentId]/page.js +2 -2
  11. package/.next/server/app/agents/[agentId]/page.js.nft.json +1 -1
  12. package/.next/server/app/agents/[agentId]/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/api/agents/[agentId]/respond/route.js +1 -1
  14. package/.next/server/app/api/agents/[agentId]/respond/route.js.nft.json +1 -1
  15. package/.next/server/app/api/agents/[agentId]/respond/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/images/[rootId]/[file]/route_client-reference-manifest.js +1 -1
  17. package/.next/server/app/api/oauth/callback/route.js +2 -2
  18. package/.next/server/app/api/oauth/callback/route_client-reference-manifest.js +1 -1
  19. package/.next/server/app/api/oauth/start/route_client-reference-manifest.js +1 -1
  20. package/.next/server/app/api/roots/[id]/attachments/route_client-reference-manifest.js +1 -1
  21. package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route.js +1 -1
  22. package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route.js.nft.json +1 -1
  23. package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route_client-reference-manifest.js +1 -1
  24. package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route.js +1 -1
  25. package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route.js.nft.json +1 -1
  26. package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route_client-reference-manifest.js +1 -1
  27. package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route.js +2 -2
  28. package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route.js.nft.json +1 -1
  29. package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route_client-reference-manifest.js +1 -1
  30. package/.next/server/app/api/roots/[id]/dashboard/route.js +1 -1
  31. package/.next/server/app/api/roots/[id]/dashboard/route.js.nft.json +1 -1
  32. package/.next/server/app/api/roots/[id]/dashboard/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/api/roots/[id]/suggestions/route.js +1 -1
  34. package/.next/server/app/api/roots/[id]/suggestions/route.js.nft.json +1 -1
  35. package/.next/server/app/api/roots/[id]/suggestions/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/api/utilities/[scope]/[id]/bundle.js/route_client-reference-manifest.js +1 -1
  37. package/.next/server/app/api/utilities/[scope]/[id]/host/route.js +1 -1
  38. package/.next/server/app/api/utilities/[scope]/[id]/host/route.js.nft.json +1 -1
  39. package/.next/server/app/api/utilities/[scope]/[id]/host/route_client-reference-manifest.js +1 -1
  40. package/.next/server/app/api/utilities/[scope]/[id]/host-api.mjs/route_client-reference-manifest.js +1 -1
  41. package/.next/server/app/api/utilities/[scope]/[id]/host-ui.mjs/route_client-reference-manifest.js +1 -1
  42. package/.next/server/app/api/utilities/[scope]/[id]/iframe/route_client-reference-manifest.js +1 -1
  43. package/.next/server/app/api/utilities/[scope]/[id]/style.css/route_client-reference-manifest.js +1 -1
  44. package/.next/server/app/audit/page.js +1 -1
  45. package/.next/server/app/audit/page.js.nft.json +1 -1
  46. package/.next/server/app/audit/page_client-reference-manifest.js +1 -1
  47. package/.next/server/app/onboarding/page.js +4 -4
  48. package/.next/server/app/onboarding/page.js.nft.json +1 -1
  49. package/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  50. package/.next/server/app/page.js +2 -2
  51. package/.next/server/app/page.js.nft.json +1 -1
  52. package/.next/server/app/page_client-reference-manifest.js +1 -1
  53. package/.next/server/app/roots/[id]/chat/[topicId]/page.js +2 -2
  54. package/.next/server/app/roots/[id]/chat/[topicId]/page.js.nft.json +1 -1
  55. package/.next/server/app/roots/[id]/chat/[topicId]/page_client-reference-manifest.js +1 -1
  56. package/.next/server/app/roots/[id]/kb/[...slug]/page.js +2 -2
  57. package/.next/server/app/roots/[id]/kb/[...slug]/page.js.nft.json +1 -1
  58. package/.next/server/app/roots/[id]/kb/[...slug]/page_client-reference-manifest.js +1 -1
  59. package/.next/server/app/roots/[id]/page.js +3 -3
  60. package/.next/server/app/roots/[id]/page.js.nft.json +1 -1
  61. package/.next/server/app/roots/[id]/page_client-reference-manifest.js +1 -1
  62. package/.next/server/app/roots/[id]/workflows/[wfId]/page.js +2 -2
  63. package/.next/server/app/roots/[id]/workflows/[wfId]/page.js.nft.json +1 -1
  64. package/.next/server/app/roots/[id]/workflows/[wfId]/page_client-reference-manifest.js +1 -1
  65. package/.next/server/app/roots/[id]/workflows/page.js +1 -1
  66. package/.next/server/app/roots/[id]/workflows/page.js.nft.json +1 -1
  67. package/.next/server/app/roots/[id]/workflows/page_client-reference-manifest.js +1 -1
  68. package/.next/server/app/roots/new/page.js +4 -4
  69. package/.next/server/app/roots/new/page.js.nft.json +1 -1
  70. package/.next/server/app/roots/new/page_client-reference-manifest.js +1 -1
  71. package/.next/server/app/settings/page.js +4 -4
  72. package/.next/server/app/settings/page.js.nft.json +1 -1
  73. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  74. package/.next/server/app/share/[id]/file/page.js +1 -1
  75. package/.next/server/app/share/[id]/file/page.js.nft.json +1 -1
  76. package/.next/server/app/share/[id]/file/page_client-reference-manifest.js +1 -1
  77. package/.next/server/app/share/[id]/page.js +2 -2
  78. package/.next/server/app/share/[id]/page.js.nft.json +1 -1
  79. package/.next/server/app/share/[id]/page_client-reference-manifest.js +1 -1
  80. package/.next/server/app/utilities/[scope]/[id]/page.js +2 -2
  81. package/.next/server/app/utilities/[scope]/[id]/page.js.nft.json +1 -1
  82. package/.next/server/app/utilities/[scope]/[id]/page_client-reference-manifest.js +1 -1
  83. package/.next/server/app/utilities/page.js +2 -2
  84. package/.next/server/app/utilities/page.js.nft.json +1 -1
  85. package/.next/server/app/utilities/page_client-reference-manifest.js +1 -1
  86. package/.next/server/app-paths-manifest.json +9 -9
  87. package/.next/server/chunks/1004.js +1 -0
  88. package/.next/server/chunks/106.js +148 -0
  89. package/.next/server/chunks/1100.js +34 -0
  90. package/.next/server/chunks/1189.js +1 -0
  91. package/.next/server/chunks/1220.js +115 -0
  92. package/.next/server/chunks/1271.js +79 -0
  93. package/.next/server/chunks/1378.js +23 -0
  94. package/.next/server/chunks/1640.js +29 -0
  95. package/.next/server/chunks/1811.js +1 -0
  96. package/.next/server/chunks/{7264.js → 1862.js} +2 -2
  97. package/.next/server/chunks/1869.js +93 -0
  98. package/.next/server/chunks/1973.js +166 -0
  99. package/.next/server/chunks/2035.js +1 -1
  100. package/.next/server/chunks/2249.js +1 -0
  101. package/.next/server/chunks/2264.js +287 -0
  102. package/.next/server/chunks/2278.js +1 -0
  103. package/.next/server/chunks/2318.js +1 -0
  104. package/.next/server/chunks/2485.js +2 -2
  105. package/.next/server/chunks/2521.js +1 -0
  106. package/.next/server/chunks/2552.js +1 -0
  107. package/.next/server/chunks/2626.js +1 -0
  108. package/.next/server/chunks/2669.js +104 -0
  109. package/.next/server/chunks/2673.js +153 -0
  110. package/.next/server/chunks/2749.js +1 -0
  111. package/.next/server/chunks/2761.js +90 -0
  112. package/.next/server/chunks/285.js +3 -3
  113. package/.next/server/chunks/2886.js +64 -0
  114. package/.next/server/chunks/2995.js +1 -1
  115. package/.next/server/chunks/3332.js +1 -1
  116. package/.next/server/chunks/3378.js +1 -0
  117. package/.next/server/chunks/352.js +79 -0
  118. package/.next/server/chunks/360.js +1 -0
  119. package/.next/server/chunks/3746.js +93 -0
  120. package/.next/server/chunks/3811.js +5 -0
  121. package/.next/server/chunks/383.js +80 -0
  122. package/.next/server/chunks/3870.js +215 -0
  123. package/.next/server/chunks/3935.js +34 -0
  124. package/.next/server/chunks/4031.js +2 -2
  125. package/.next/server/chunks/4046.js +141 -0
  126. package/.next/server/chunks/416.js +77 -0
  127. package/.next/server/chunks/4263.js +1 -0
  128. package/.next/server/chunks/4282.js +1 -0
  129. package/.next/server/chunks/431.js +1 -0
  130. package/.next/server/chunks/4339.js +23 -0
  131. package/.next/server/chunks/4343.js +148 -0
  132. package/.next/server/chunks/4450.js +80 -0
  133. package/.next/server/chunks/4457.js +1 -0
  134. package/.next/server/chunks/4537.js +43 -0
  135. package/.next/server/chunks/4580.js +1 -0
  136. package/.next/server/chunks/4653.js +1 -0
  137. package/.next/server/chunks/4695.js +77 -0
  138. package/.next/server/chunks/4733.js +1 -0
  139. package/.next/server/chunks/4812.js +1 -1
  140. package/.next/server/chunks/4828.js +80 -0
  141. package/.next/server/chunks/4851.js +1 -0
  142. package/.next/server/chunks/4863.js +29 -0
  143. package/.next/server/chunks/4925.js +1 -1
  144. package/.next/server/chunks/4934.js +1 -0
  145. package/.next/server/chunks/5080.js +43 -0
  146. package/.next/server/chunks/5142.js +1 -0
  147. package/.next/server/chunks/539.js +1 -0
  148. package/.next/server/chunks/5395.js +1 -0
  149. package/.next/server/chunks/5407.js +9 -0
  150. package/.next/server/chunks/5543.js +1 -1
  151. package/.next/server/chunks/5558.js +1 -0
  152. package/.next/server/chunks/5690.js +1 -0
  153. package/.next/server/chunks/5723.js +1 -0
  154. package/.next/server/chunks/5753.js +1 -0
  155. package/.next/server/chunks/5783.js +226 -0
  156. package/.next/server/chunks/5811.js +1 -0
  157. package/.next/server/chunks/5822.js +24 -0
  158. package/.next/server/chunks/6038.js +252 -0
  159. package/.next/server/chunks/617.js +24 -0
  160. package/.next/server/chunks/6294.js +1 -0
  161. package/.next/server/chunks/6332.js +1 -0
  162. package/.next/server/chunks/6355.js +1 -0
  163. package/.next/server/chunks/6448.js +3 -0
  164. package/.next/server/chunks/6460.js +5 -0
  165. package/.next/server/chunks/6483.js +252 -0
  166. package/.next/server/chunks/6888.js +1 -0
  167. package/.next/server/chunks/6909.js +3 -3
  168. package/.next/server/chunks/6946.js +1 -0
  169. package/.next/server/chunks/7068.js +1 -0
  170. package/.next/server/chunks/7118.js +24 -0
  171. package/.next/server/chunks/7242.js +166 -0
  172. package/.next/server/chunks/7315.js +1 -0
  173. package/.next/server/chunks/7356.js +141 -0
  174. package/.next/server/chunks/7520.js +226 -0
  175. package/.next/server/chunks/7759.js +1 -0
  176. package/.next/server/chunks/7800.js +1 -0
  177. package/.next/server/chunks/7934.js +1 -0
  178. package/.next/server/chunks/7948.js +1 -0
  179. package/.next/server/chunks/795.js +115 -0
  180. package/.next/server/chunks/8015.js +287 -0
  181. package/.next/server/chunks/8019.js +80 -0
  182. package/.next/server/chunks/8150.js +1 -0
  183. package/.next/server/chunks/824.js +1 -0
  184. package/.next/server/chunks/8326.js +1 -0
  185. package/.next/server/chunks/8384.js +153 -0
  186. package/.next/server/chunks/8451.js +1 -0
  187. package/.next/server/chunks/8674.js +104 -0
  188. package/.next/server/chunks/8897.js +64 -0
  189. package/.next/server/chunks/8945.js +1 -0
  190. package/.next/server/chunks/8948.js +36 -0
  191. package/.next/server/chunks/8977.js +1 -0
  192. package/.next/server/chunks/899.js +1 -0
  193. package/.next/server/chunks/9024.js +1 -0
  194. package/.next/server/chunks/9098.js +1 -1
  195. package/.next/server/chunks/9269.js +1 -0
  196. package/.next/server/chunks/9417.js +215 -0
  197. package/.next/server/chunks/9419.js +36 -0
  198. package/.next/server/chunks/9490.js +9 -0
  199. package/.next/server/chunks/9496.js +90 -0
  200. package/.next/server/chunks/9513.js +24 -0
  201. package/.next/server/chunks/9745.js +1 -0
  202. package/.next/server/chunks/{3662.js → 9829.js} +1 -1
  203. package/.next/server/chunks/9965.js +1 -0
  204. package/.next/server/functions-config-manifest.json +1 -1
  205. package/.next/server/middleware-build-manifest.js +1 -1
  206. package/.next/server/middleware-manifest.json +5 -5
  207. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  208. package/.next/server/pages/500.html +1 -1
  209. package/.next/server/server-reference-manifest.js +1 -1
  210. package/.next/server/server-reference-manifest.json +1 -1
  211. package/.next/static/chunks/2905-ca16d00d09da792e.js +1 -0
  212. package/.next/static/chunks/3608-556a93ce17c48331.js +1 -0
  213. package/.next/static/chunks/4108.40efe5d61bfc7f08.js +1 -0
  214. package/.next/static/chunks/4200-fc9e833f8a521cff.js +1 -0
  215. package/.next/static/chunks/{6886-4b169c08d9745ce0.js → 6919-830592f52172ae19.js} +1 -1
  216. package/.next/static/chunks/7320-00a597d3985d7624.js +1 -0
  217. package/.next/static/chunks/app/layout-5d864c5e6de9cf17.js +1 -0
  218. package/.next/static/chunks/app/onboarding/page-ccaa9f5d106a765a.js +1 -0
  219. package/.next/static/chunks/app/page-bd26227f60ea0122.js +1 -0
  220. package/.next/static/chunks/app/roots/[id]/chat/[topicId]/{page-9de733628c6de625.js → page-f7c36b058c709b0a.js} +1 -1
  221. package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-0ed3a1f1311c348d.js +1 -0
  222. package/.next/static/chunks/app/roots/[id]/page-cd62fc140883317f.js +1 -0
  223. package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-5b08fe35708be776.js +1 -0
  224. package/.next/static/chunks/app/roots/new/{page-70df040d98ddfcb9.js → page-1a712172486a0f8f.js} +1 -1
  225. package/.next/static/chunks/app/settings/page-632b39256dcf7ebb.js +1 -0
  226. package/.next/static/chunks/app/share/[id]/{page-04701cd3e2f42faf.js → page-975a2a05e33257c9.js} +1 -1
  227. package/.next/static/chunks/app/utilities/[scope]/[id]/page-424ecd0f018a58f0.js +1 -0
  228. package/.next/static/chunks/app/utilities/page-a5befa7a77ab5796.js +1 -0
  229. package/.next/static/chunks/{webpack-4f6b598d96af4ca7.js → webpack-f7bc4101f4444d07.js} +1 -1
  230. package/.next/trace +89 -47
  231. package/package.json +1 -1
  232. package/.next/server/chunks/4347.js +0 -3
  233. package/.next/server/chunks/4836.js +0 -1
  234. package/.next/server/chunks/8823.js +0 -1
  235. package/.next/server/chunks/9402.js +0 -1
  236. package/.next/static/chunks/3873-924fc0f386eb1005.js +0 -1
  237. package/.next/static/chunks/4108.e2aef54ba9b68f73.js +0 -1
  238. package/.next/static/chunks/4690-3065e11cc18ad056.js +0 -1
  239. package/.next/static/chunks/5779-bf4e7d8930f04f49.js +0 -1
  240. package/.next/static/chunks/8982-137b26d526f24a8b.js +0 -1
  241. package/.next/static/chunks/app/layout-f939333a791cb267.js +0 -1
  242. package/.next/static/chunks/app/onboarding/page-4291d58b0c6b16e1.js +0 -1
  243. package/.next/static/chunks/app/page-c84defded9ae76c3.js +0 -1
  244. package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-f7772a63468ff75d.js +0 -1
  245. package/.next/static/chunks/app/roots/[id]/page-db94c337847a0543.js +0 -1
  246. package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-cc556969ba89dab1.js +0 -1
  247. package/.next/static/chunks/app/settings/page-0451927b1906fdf0.js +0 -1
  248. package/.next/static/chunks/app/utilities/[scope]/[id]/page-b5c5ca2c72af92a4.js +0 -1
  249. package/.next/static/chunks/app/utilities/page-d66b3d654623ac67.js +0 -1
  250. /package/.next/static/{qL2ylFt2IFmDVVrLaCl4u → AoffeFQkXIEvh9BnegJev}/_buildManifest.js +0 -0
  251. /package/.next/static/{qL2ylFt2IFmDVVrLaCl4u → AoffeFQkXIEvh9BnegJev}/_ssgManifest.js +0 -0
@@ -0,0 +1,141 @@
1
+ "use strict";exports.id=7356,exports.ids=[7356],exports.modules={37356:(a,b,c)=>{c.d(b,{diagram:()=>br});var d=c(44995),e=c(29872),f=c(15251),g=c(15667),h=c(86947),i=c(41553),j=c(77703),k=c(16726),l=c(72865),m=c(84410),n=c(25007);function o(a,b){for(let c in b)Object.hasOwn(b,c)&&(a[c]=b[c])}var p=c(85669),q=c(8774),r=c(7285),s=c(7800),t=function(){var a=(0,j.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,15],c=[1,7],d=[1,13],e=[1,14],f=[1,19],g=[1,16],h=[1,17],i=[1,18],k=[8,30],l=[8,10,21,28,29,30,31,39,43,46],m=[1,23],n=[1,24],o=[8,10,15,16,21,28,29,30,31,39,43,46],p=[8,10,15,16,21,27,28,29,30,31,39,43,46],q=[1,49],r={trace:(0,j.K2)(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,j.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",f[h-1]),d.setHierarchy(f[h-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",f[h]),"number"==typeof f[h].length?this.$=f[h]:this.$=[f[h]];break;case 13:d.getLogger().debug("Rule: statement #2: ",f[h-1]),this.$=[f[h-1]].concat(f[h]);break;case 14:d.getLogger().debug("Rule: link: ",f[h],a),this.$={edgeTypeStr:f[h],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",f[h-3],f[h-1],f[h]),this.$={edgeTypeStr:f[h],label:f[h-1]};break;case 18:let i=parseInt(f[h]),j=d.generateId();this.$={id:j,type:"space",label:"",width:i,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",f[h-2],f[h-1],f[h]," typestr: ",f[h-1].edgeTypeStr);let k=d.edgeStrToEdgeData(f[h-1].edgeTypeStr),l=d.edgeStrToEdgeStartData(f[h-1].edgeTypeStr),m=d.edgeStrToThickness(f[h-1].edgeTypeStr),n=d.edgeStrToPattern(f[h-1].edgeTypeStr);this.$=[{id:f[h-2].id,label:f[h-2].label,type:f[h-2].type,directions:f[h-2].directions},{id:f[h-2].id+"-"+f[h].id,start:f[h-2].id,end:f[h].id,label:f[h-1].label,type:"edge",thickness:m,pattern:n,directions:f[h].directions,arrowTypeEnd:k,arrowTypeStart:l},{id:f[h].id,label:f[h].label,type:d.typeStr2Type(f[h].typeStr),directions:f[h].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",f[h-1],f[h]),this.$={id:f[h-1].id,label:f[h-1].label,type:d.typeStr2Type(f[h-1].typeStr),directions:f[h-1].directions,widthInColumns:parseInt(f[h],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",f[h]),this.$={id:f[h].id,label:f[h].label,type:d.typeStr2Type(f[h].typeStr),directions:f[h].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",f[h]),this.$={type:"column-setting",columns:"auto"===f[h]?-1:parseInt(f[h])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",f[h-2],f[h-1]),d.generateId(),this.$={...f[h-2],type:"composite",children:f[h-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",f[h-2],f[h-1],f[h]);let o=d.generateId();this.$={id:o,type:"composite",label:"",children:f[h-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",f[h]),this.$={id:f[h]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",f[h-1],f[h]),this.$={id:f[h-1],label:f[h].label,typeStr:f[h].typeStr,directions:f[h].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",f[h]),this.$=[f[h]];break;case 32:d.getLogger().debug("Rule: dirList: ",f[h-1],f[h]),this.$=[f[h-1]].concat(f[h]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",f[h-2],f[h-1],f[h]),this.$={typeStr:f[h-2]+f[h],label:f[h-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",f[h-3],f[h-2]," #3:",f[h-1],f[h]),this.$={typeStr:f[h-3]+f[h],label:f[h-2],directions:f[h-1]};break;case 35:case 36:this.$={type:"classDef",id:f[h-1].trim(),css:f[h].trim()};break;case 37:this.$={type:"applyClass",id:f[h-1].trim(),styleClass:f[h].trim()};break;case 38:this.$={type:"applyStyles",id:f[h-1].trim(),stylesStr:f[h].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:b,11:3,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{8:[1,20]},a(k,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:b,21:c,28:d,29:e,31:f,39:g,43:h,46:i}),a(l,[2,16],{14:22,15:m,16:n}),a(l,[2,17]),a(l,[2,18]),a(l,[2,19]),a(l,[2,20]),a(l,[2,21]),a(l,[2,22]),a(o,[2,25],{27:[1,25]}),a(l,[2,26]),{19:26,26:12,31:f},{10:b,11:27,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},a(p,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},a(k,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},a(o,[2,24]),{10:b,11:37,13:4,14:22,15:m,16:n,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},a(p,[2,30]),{18:[1,43]},{18:[1,44]},a(o,[2,23]),{18:[1,45]},{30:[1,46]},a(l,[2,28]),a(l,[2,35]),a(l,[2,36]),a(l,[2,37]),a(l,[2,38]),{36:[1,47]},{33:48,34:q},{15:[1,50]},a(l,[2,27]),a(p,[2,33]),{38:[1,51]},{33:52,34:q,38:[2,31]},{31:[2,15]},a(p,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,j.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,j.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,j.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,j.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(i+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,h=n.yytext,i=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,k,i,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function s(){this.yy={}}return r.lexer={EOF:1,parseError:(0,j.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,j.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,j.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,j.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,j.K2)(function(){return this._more=!0,this},"more"),reject:(0,j.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,j.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,j.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,j.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,j.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,j.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,j.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,j.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,j.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,j.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,j.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,j.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,j.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,j.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,j.K2)(function(a,b,c,d){switch(c){case 0:return a.getLogger().debug("Found block-beta"),10;case 1:return a.getLogger().debug("Found id-block"),29;case 2:return a.getLogger().debug("Found block"),10;case 3:a.getLogger().debug(".",b.yytext);break;case 4:a.getLogger().debug("_",b.yytext);break;case 5:return 5;case 6:return b.yytext=-1,28;case 7:return b.yytext=b.yytext.replace(/columns\s+/,""),a.getLogger().debug("COLUMNS (LEX)",b.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:a.getLogger().debug("LEX: POPPING STR:",b.yytext),this.popState();break;case 13:return a.getLogger().debug("LEX: STR end:",b.yytext),"STR";case 14:return b.yytext=b.yytext.replace(/space\:/,""),a.getLogger().debug("SPACE NUM (LEX)",b.yytext),21;case 15:return b.yytext="1",a.getLogger().debug("COLUMNS (LEX)",b.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),a.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),a.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),a.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),a.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),a.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),a.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),a.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),a.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),a.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),a.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),a.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),a.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return a.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return a.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return a.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return a.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return a.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return a.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return a.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return a.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),a.getLogger().debug("LEX ARR START"),37;case 74:return a.getLogger().debug("Lex: NODE_ID",b.yytext),31;case 75:return a.getLogger().debug("Lex: EOF",b.yytext),8;case 78:return"NODE_DESCR";case 80:a.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:a.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return a.getLogger().debug("LEX: NODE_DESCR:",b.yytext),"NODE_DESCR";case 83:a.getLogger().debug("LEX POPPING"),this.popState();break;case 84:a.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (right): dir:",b.yytext),"DIR";case 86:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (left):",b.yytext),"DIR";case 87:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (x):",b.yytext),"DIR";case 88:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (y):",b.yytext),"DIR";case 89:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (up):",b.yytext),"DIR";case 90:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (down):",b.yytext),"DIR";case 91:return b.yytext="]>",a.getLogger().debug("Lex (ARROW_DIR end):",b.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return a.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 93:case 94:case 95:return a.getLogger().debug("Lex: LINK",b.yytext),15;case 96:case 97:case 98:return a.getLogger().debug("Lex: START_LINK",b.yytext),this.pushState("LLABEL"),16;case 100:return a.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),a.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 102:case 103:return this.popState(),a.getLogger().debug("Lex: LINK",b.yytext),15;case 104:return a.getLogger().debug("Lex: COLON",b.yytext),b.yytext=b.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}},(0,j.K2)(s,"Parser"),s.prototype=r,r.Parser=s,new s}();t.parser=t;var u=new Map,v=[],w=new Map,x="color",y="fill",z=(0,i.D7)(),A=new Map,B="",C=(0,j.K2)(a=>i.Y2.sanitizeText(a,z),"sanitizeText"),D=(0,j.K2)(function(a,b=""){let c=A.get(a);c||(c={id:a,styles:[],textStyles:[]},A.set(a,c)),null!=b&&b.split(",").forEach(a=>{let b=a.replace(/([^;]*);/,"$1").trim();if(RegExp(x).exec(a)){let a=b.replace(y,"bgFill").replace(x,y);c.textStyles.push(a)}c.styles.push(b)})},"addStyleClass"),E=(0,j.K2)(function(a,b=""){let c=u.get(a);null!=b&&(c.styles=b.split(","))},"addStyle2Node"),F=(0,j.K2)(function(a,b){a.split(",").forEach(function(a){let c=u.get(a);if(void 0===c){let b=a.trim();c={id:b,type:"na",children:[]},u.set(b,c)}c.classes||(c.classes=[]),c.classes.push(b)})},"setCssClass"),G=(0,j.K2)((a,b)=>{let c=a.flat(),d=[],e=c.find(a=>a?.type==="column-setting"),f=e?.columns??-1;for(let a of c){if("number"==typeof f&&f>0&&"column-setting"!==a.type&&"number"==typeof a.widthInColumns&&a.widthInColumns>f&&j.Rm.warn(`Block ${a.id} width ${a.widthInColumns} exceeds configured column width ${f}`),a.label&&(a.label=C(a.label)),"classDef"===a.type){D(a.id,a.css);continue}if("applyClass"===a.type){F(a.id,a?.styleClass??"");continue}if("applyStyles"===a.type){a?.stylesStr&&E(a.id,a?.stylesStr);continue}if("column-setting"===a.type)b.columns=a.columns??-1;else if("edge"===a.type){let b=(w.get(a.id)??0)+1;w.set(a.id,b),a.id=b+"-"+a.id,v.push(a)}else{a.label||("composite"===a.type?a.label="":a.label=a.id);let b=u.get(a.id);if(void 0===b?u.set(a.id,a):("na"!==a.type&&(b.type=a.type),a.label!==a.id&&(b.label=a.label)),a.children&&G(a.children,a),"space"===a.type){let b=a.width??1;for(let c=0;c<b;c++){let b=function(a){if((0,k.s)(a))return a;let b=(0,l.b)(a);if(!function(a){switch((0,l.b)(a)){case m.R_:case m.Uw:case m.cT:case m.iq:case m.$V:case m.vC:case m.ri:case m.ML:case m.XZ:case m.i1:case m._u:case m.pj:case m.kj:case m.GX:case m.Av:case m.NA:case m.OG:case m.VP:case m.Qb:case m.q:case m.x6:case m.ZR:return!0;default:return!1}}(a))return{};if(Array.isArray(a)){let b=Array.from(a);return a.length>0&&"string"==typeof a[0]&&Object.hasOwn(a,"index")&&(b.index=a.index,b.input=a.input),b}if((0,n.i)(a))return new a.constructor(a.buffer,a.byteOffset,a.length);if("[object ArrayBuffer]"===b)return new ArrayBuffer(a.byteLength);if("[object DataView]"===b){let b=a.buffer,c=a.byteOffset,d=a.byteLength,e=new ArrayBuffer(d),f=new Uint8Array(b,c,d);return new Uint8Array(e).set(f),new DataView(e)}if("[object Boolean]"===b||"[object Number]"===b||"[object String]"===b){let c=new a.constructor(a.valueOf());return"[object String]"===b?function(a,b){let c=b.valueOf().length;for(let d in b)Object.hasOwn(b,d)&&(Number.isNaN(Number(d))||Number(d)>=c)&&(a[d]=b[d])}(c,a):o(c,a),c}if("[object Date]"===b)return new Date(Number(a));if("[object RegExp]"===b){let b=new RegExp(a.source,a.flags);return b.lastIndex=a.lastIndex,b}if("[object Symbol]"===b)return Object(Symbol.prototype.valueOf.call(a));if("[object Map]"===b){let b=new Map;return a.forEach((a,c)=>{b.set(c,a)}),b}if("[object Set]"===b){let b=new Set;return a.forEach(a=>{b.add(a)}),b}if("[object Arguments]"===b){let b={};return o(b,a),b.length=a.length,b[Symbol.iterator]=a[Symbol.iterator],b}let c={};return function(a,b){let c=Object.getPrototypeOf(b);null!==c&&"function"==typeof b.constructor&&Object.setPrototypeOf(a,c)}(c,a),o(c,a),function(a,b){let c=Object.getOwnPropertySymbols(b);for(let d=0;d<c.length;d++){let e=c[d];Object.prototype.propertyIsEnumerable.call(b,e)&&(a[e]=b[e])}}(c,a),c}(a);b.id=b.id+"-"+c,u.set(b.id,b),d.push(b)}}else void 0===b&&d.push(a)}}b.children=d},"populateBlockDatabase"),H=[],I={id:"root",type:"composite",children:[],columns:-1},J=(0,j.K2)(()=>{j.Rm.debug("Clear called"),(0,i.IU)(),u=new Map([["root",I={id:"root",type:"composite",children:[],columns:-1}]]),H=[],A=new Map,v=[],w=new Map,B=""},"clear");function K(a){switch(j.Rm.debug("typeStr2Type",a),a){case"[]":return"square";case"()":return j.Rm.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function L(a){return(j.Rm.debug("typeStr2Type",a),"=="===a)?"thick":"normal"}function M(a){switch(a.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function N(a){switch(a.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function O(a){return a.includes("==")?"thick":"normal"}function P(a){return a.includes(".-")?"dotted":"solid"}(0,j.K2)(K,"typeStr2Type"),(0,j.K2)(L,"edgeTypeStr2Type"),(0,j.K2)(M,"edgeStrToEdgeData"),(0,j.K2)(N,"edgeStrToEdgeStartData"),(0,j.K2)(O,"edgeStrToThickness"),(0,j.K2)(P,"edgeStrToPattern");var Q=0,R=(0,j.K2)(()=>(Q++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Q),"generateId"),S=(0,j.K2)(a=>{I.children=a,G(a,I),H=I.children},"setHierarchy"),T=(0,j.K2)(a=>{let b=u.get(a);return b?b.columns?b.columns:b.children?b.children.length:-1:-1},"getColumns"),U=(0,j.K2)(()=>[...u.values()],"getBlocksFlat"),V=(0,j.K2)(()=>H||[],"getBlocks"),W=(0,j.K2)(()=>v,"getEdges"),X=(0,j.K2)(a=>u.get(a),"getBlock"),Y=(0,j.K2)(a=>{u.set(a.id,a)},"setBlock"),Z=(0,j.K2)(a=>{B=a},"setDiagramId"),$=(0,j.K2)(()=>B,"getDiagramId"),_=(0,j.K2)(()=>j.Rm,"getLogger"),aa=(0,j.K2)(function(){return A},"getClasses"),ab={getConfig:(0,j.K2)(()=>(0,i.zj)().block,"getConfig"),typeStr2Type:K,edgeTypeStr2Type:L,edgeStrToEdgeData:M,edgeStrToEdgeStartData:N,edgeStrToThickness:O,edgeStrToPattern:P,getLogger:_,getBlocksFlat:U,getBlocks:V,getEdges:W,setHierarchy:S,getBlock:X,setBlock:Y,getColumns:T,getClasses:aa,clear:J,generateId:R,setDiagramId:Z,getDiagramId:$},ac=(0,j.K2)((a,b)=>{let c=p.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return q.A(d,e,f,b)},"fade"),ad=(0,j.K2)(a=>`.label {
2
+ font-family: ${a.fontFamily};
3
+ color: ${a.nodeTextColor||a.textColor};
4
+ }
5
+ .cluster-label text {
6
+ fill: ${a.titleColor};
7
+ }
8
+ .cluster-label span,p {
9
+ color: ${a.titleColor};
10
+ }
11
+
12
+
13
+
14
+ .label text,span,p {
15
+ fill: ${a.nodeTextColor||a.textColor};
16
+ color: ${a.nodeTextColor||a.textColor};
17
+ }
18
+
19
+ .node rect,
20
+ .node circle,
21
+ .node ellipse,
22
+ .node polygon,
23
+ .node path {
24
+ fill: ${a.mainBkg};
25
+ stroke: ${a.nodeBorder};
26
+ stroke-width: 1px;
27
+ }
28
+ .flowchart-label text {
29
+ text-anchor: middle;
30
+ }
31
+ // .flowchart-label .text-outer-tspan {
32
+ // text-anchor: middle;
33
+ // }
34
+ // .flowchart-label .text-inner-tspan {
35
+ // text-anchor: start;
36
+ // }
37
+
38
+ .node .label {
39
+ text-align: center;
40
+ }
41
+ .node.clickable {
42
+ cursor: pointer;
43
+ }
44
+
45
+ .arrowheadPath {
46
+ fill: ${a.arrowheadColor};
47
+ }
48
+
49
+ .edgePath .path {
50
+ stroke: ${a.lineColor};
51
+ stroke-width: 2.0px;
52
+ }
53
+
54
+ .flowchart-link {
55
+ stroke: ${a.lineColor};
56
+ fill: none;
57
+ }
58
+
59
+ .edgeLabel {
60
+ background-color: ${a.edgeLabelBackground};
61
+ /*
62
+ * This is for backward compatibility with existing code that didn't
63
+ * add a \`<p>\` around edge labels.
64
+ *
65
+ * TODO: We should probably remove this in a future release.
66
+ */
67
+ p {
68
+ margin: 0;
69
+ padding: 0;
70
+ display: inline;
71
+ }
72
+ rect {
73
+ opacity: 0.5;
74
+ background-color: ${a.edgeLabelBackground};
75
+ fill: ${a.edgeLabelBackground};
76
+ }
77
+ text-align: center;
78
+ }
79
+
80
+ /* For html labels only */
81
+ .labelBkg {
82
+ background-color: ${a.edgeLabelBackground};
83
+ }
84
+
85
+ .node .cluster {
86
+ // fill: ${ac(a.mainBkg,.5)};
87
+ fill: ${ac(a.clusterBkg,.5)};
88
+ stroke: ${ac(a.clusterBorder,.2)};
89
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
90
+ stroke-width: 1px;
91
+ }
92
+
93
+ .cluster text {
94
+ fill: ${a.titleColor};
95
+ }
96
+
97
+ .cluster span,p {
98
+ color: ${a.titleColor};
99
+ }
100
+ /* .cluster div {
101
+ color: ${a.titleColor};
102
+ } */
103
+
104
+ div.mermaidTooltip {
105
+ position: absolute;
106
+ text-align: center;
107
+ max-width: 200px;
108
+ padding: 2px;
109
+ font-family: ${a.fontFamily};
110
+ font-size: 12px;
111
+ background: ${a.tertiaryColor};
112
+ border: 1px solid ${a.border2};
113
+ border-radius: 2px;
114
+ pointer-events: none;
115
+ z-index: 100;
116
+ }
117
+
118
+ .flowchartTitleText {
119
+ text-anchor: middle;
120
+ font-size: 18px;
121
+ fill: ${a.textColor};
122
+ }
123
+ ${(0,d.o)()}
124
+ `,"getStyles"),ae=(0,j.K2)((a,b,c,d)=>{b.forEach(b=>{am[b](a,c,d)})},"insertMarkers"),af=(0,j.K2)((a,b,c)=>{j.Rm.trace("Making markers for ",c),a.append("defs").append("marker").attr("id",c+"_"+b+"-extensionStart").attr("class","marker extension "+b).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),a.append("defs").append("marker").attr("id",c+"_"+b+"-extensionEnd").attr("class","marker extension "+b).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),ag=(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-compositionStart").attr("class","marker composition "+b).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",c+"_"+b+"-compositionEnd").attr("class","marker composition "+b).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),ah=(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-aggregationStart").attr("class","marker aggregation "+b).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",c+"_"+b+"-aggregationEnd").attr("class","marker aggregation "+b).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),ai=(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-dependencyStart").attr("class","marker dependency "+b).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",c+"_"+b+"-dependencyEnd").attr("class","marker dependency "+b).attr("refX",13).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")},"dependency"),aj=(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-lollipopStart").attr("class","marker lollipop "+b).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),a.append("defs").append("marker").attr("id",c+"_"+b+"-lollipopEnd").attr("class","marker lollipop "+b).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),ak=(0,j.K2)((a,b,c)=>{a.append("marker").attr("id",c+"_"+b+"-pointEnd").attr("class","marker "+b).attr("viewBox","0 0 10 10").attr("refX",6).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").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",c+"_"+b+"-pointStart").attr("class","marker "+b).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),al=(0,j.K2)((a,b,c)=>{a.append("marker").attr("id",c+"_"+b+"-circleEnd").attr("class","marker "+b).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",c+"_"+b+"-circleStart").attr("class","marker "+b).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),am={extension:af,composition:ag,aggregation:ah,dependency:ai,lollipop:aj,point:ak,circle:al,cross:(0,j.K2)((a,b,c)=>{a.append("marker").attr("id",c+"_"+b+"-crossEnd").attr("class","marker cross "+b).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),a.append("marker").attr("id",c+"_"+b+"-crossStart").attr("class","marker cross "+b).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb:(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb")},an=(0,i.D7)()?.block?.padding??8;function ao(a,b){if(0===a||!Number.isInteger(a))throw Error("Columns must be an integer !== 0.");if(b<0||!Number.isInteger(b))throw Error("Position must be a non-negative integer."+b);return a<0?{px:b,py:0}:1===a?{px:0,py:b}:{px:b%a,py:Math.floor(b/a)}}(0,j.K2)(ao,"calculateBlockPosition");var ap=(0,j.K2)(a=>{let b=0,c=0;for(let d of a.children){let{width:a,height:e,x:f,y:g}=d.size??{width:0,height:0,x:0,y:0};if(j.Rm.debug("getMaxChildSize abc95 child:",d.id,"width:",a,"height:",e,"x:",f,"y:",g,d.type),"space"===d.type)continue;let h=a/(d.widthInColumns??1);h>b&&(b=h),e>c&&(c=e)}return{width:b,height:c}},"getMaxChildSize");function aq(a,b,c=0,d=0){j.Rm.debug("setBlockSizes abc95 (start)",a.id,a?.size?.x,"block width =",a?.size,"siblingWidth",c),a?.size?.width||(a.size={width:c,height:d,x:0,y:0});let e=0,f=0;if(a.children?.length>0){for(let c of a.children)aq(c,b);let g=ap(a);for(let b of(e=g.width,f=g.height,j.Rm.debug("setBlockSizes abc95 maxWidth of",a.id,":s children is ",e,f),a.children))b.size&&(j.Rm.debug(`abc95 Setting size of children of ${a.id} id=${b.id} ${e} ${f} ${JSON.stringify(b.size)}`),b.size.width=e*(b.widthInColumns??1)+an*((b.widthInColumns??1)-1),b.size.height=f,b.size.x=0,b.size.y=0,j.Rm.debug(`abc95 updating size of ${a.id} children child:${b.id} maxWidth:${e} maxHeight:${f}`));for(let c of a.children)aq(c,b,e,f);let h=a.columns??-1,i=0;for(let b of a.children)i+=b.widthInColumns??1;let k=a.children.length;h>0&&h<i&&(k=h);let l=Math.ceil(i/k),m=k*(e+an)+an,n=l*(f+an)+an;if(m<c){j.Rm.debug(`Detected to small sibling: abc95 ${a.id} siblingWidth ${c} siblingHeight ${d} width ${m}`),m=c,n=d;let b=(c-k*an-an)/k,g=(d-l*an-an)/l;for(let c of(j.Rm.debug("Size indata abc88",a.id,"childWidth",b,"maxWidth",e),j.Rm.debug("Size indata abc88",a.id,"childHeight",g,"maxHeight",f),j.Rm.debug("Size indata abc88 xSize",k,"padding",an),a.children))c.size&&(c.size.width=b,c.size.height=g,c.size.x=0,c.size.y=0)}if(j.Rm.debug(`abc95 (finale calc) ${a.id} xSize ${k} ySize ${l} columns ${h}${a.children.length} width=${Math.max(m,a.size?.width||0)}`),m<(a?.size?.width||0)){m=a?.size?.width||0;let b=h>0?Math.min(a.children.length,h):a.children.length;if(b>0){let c=(m-b*an-an)/b;for(let b of(j.Rm.debug("abc95 (growing to fit) width",a.id,m,a.size?.width,c),a.children))b.size&&(b.size.width=c)}}a.size={width:m,height:n,x:0,y:0}}j.Rm.debug("setBlockSizes abc94 (done)",a.id,a?.size?.x,a?.size?.width,a?.size?.y,a?.size?.height)}function ar(a,b){j.Rm.debug(`abc85 layout blocks (=>layoutBlocks) ${a.id} x: ${a?.size?.x} y: ${a?.size?.y} width: ${a?.size?.width}`);let c=a.columns??-1;if(j.Rm.debug("layoutBlocks columns abc95",a.id,"=>",c,a),a.children&&a.children.length>0){let d=a?.children[0]?.size?.width??0,e=a.children.length*d+(a.children.length-1)*an;j.Rm.debug("widthOfChildren 88",e,"posX");let f=new Map;{let b=0;for(let d of a.children){if(!d.size)continue;let{py:a}=ao(c,b),e=f.get(a)??0;d.size.height>e&&f.set(a,d.size.height);let g=d?.widthInColumns??1;c>0&&(g=Math.min(g,c-b%c)),b+=g}}let g=new Map;{let a=0;for(let b of[...f.keys()].sort((a,b)=>a-b))g.set(b,a),a+=(f.get(b)??0)+an}let h=0;j.Rm.debug("abc91 block?.size?.x",a.id,a?.size?.x);let i=a?.size?.x?a?.size?.x+(-a?.size?.width/2||0):-an,k=0;for(let d of a.children){if(!d.size)continue;let{width:e,height:l}=d.size,{px:m,py:n}=ao(c,h);if(n!=k&&(k=n,i=a?.size?.x?a?.size?.x+(-a?.size?.width/2||0):-an,j.Rm.debug("New row in layout for block",a.id," and child ",d.id,k)),j.Rm.debug(`abc89 layout blocks (child) id: ${d.id} Pos: ${h} (px, py) ${m},${n} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${e}${an}`),a.size){let b=e/2;d.size.x=i+an+b,j.Rm.debug(`abc91 layout blocks (calc) px, pyid:${d.id} startingPos=X${i} new startingPosX${d.size.x} ${b} padding=${an} width=${e} halfWidth=${b} => x:${d.size.x} y:${d.size.y} ${d.widthInColumns} (width * (child?.w || 1)) / 2 ${e*(d?.widthInColumns??1)/2}`),i=d.size.x+b;let c=g.get(n)??0,h=f.get(n)??l;d.size.y=a.size.y-a.size.height/2+c+h/2+an,j.Rm.debug(`abc88 layout blocks (calc) px, pyid:${d.id}startingPosX${i}${an}${b}=>x:${d.size.x}y:${d.size.y}${d.widthInColumns}(width * (child?.w || 1)) / 2${e*(d?.widthInColumns??1)/2}`)}d.children&&ar(d,b);let o=d?.widthInColumns??1;c>0&&(o=Math.min(o,c-h%c)),h+=o,j.Rm.debug("abc88 columnsPos",d,h)}}j.Rm.debug(`layout blocks (<==layoutBlocks) ${a.id} x: ${a?.size?.x} y: ${a?.size?.y} width: ${a?.size?.width}`)}function as(a,{minX:b,minY:c,maxX:d,maxY:e}={minX:0,minY:0,maxX:0,maxY:0}){if(a.size&&"root"!==a.id){let{x:f,y:g,width:h,height:i}=a.size;f-h/2<b&&(b=f-h/2),g-i/2<c&&(c=g-i/2),f+h/2>d&&(d=f+h/2),g+i/2>e&&(e=g+i/2)}if(a.children)for(let f of a.children)({minX:b,minY:c,maxX:d,maxY:e}=as(f,{minX:b,minY:c,maxX:d,maxY:e}));return{minX:b,minY:c,maxX:d,maxY:e}}function at(a){let b=a.getBlock("root");if(!b)return;aq(b,a,0,0),ar(b,a),j.Rm.debug("getBlocks",JSON.stringify(b,null,2));let{minX:c,minY:d,maxX:e,maxY:f}=as(b);return{x:c,y:d,width:e-c,height:f-d}}(0,j.K2)(aq,"setBlockSizes"),(0,j.K2)(ar,"layoutBlocks"),(0,j.K2)(as,"findBounds"),(0,j.K2)(at,"layout");var au=(0,j.K2)(async(a,b,c,d=!1,e=!1)=>{let f=b||"";"object"==typeof f&&(f=f[0]);let h=(0,i.D7)(),j=(0,i.E)(h);return await (0,g.GZ)(a,f,{style:c,isTitle:d,useHtmlLabels:j,markdown:!1,isNode:e,width:1/0},h)},"createLabel"),av=(0,j.K2)((a,b,c,d,e)=>{b.arrowTypeStart&&ax(a,"start",b.arrowTypeStart,c,d,e),b.arrowTypeEnd&&ax(a,"end",b.arrowTypeEnd,c,d,e)},"addEdgeMarkers"),aw={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},ax=(0,j.K2)((a,b,c,d,e,f)=>{let g=aw[c];if(!g)return void j.Rm.warn(`Unknown arrow type: ${c}`);a.attr(`marker-${b}`,`url(${d}#${e}_${f}-${g}${"start"===b?"Start":"End"})`)},"addEdgeMarker"),ay={},az={},aA=(0,j.K2)(async(a,b)=>{let c,d=(0,i.D7)(),f=(0,i.E)(d),h=a.insert("g").attr("class","edgeLabel"),j=h.insert("g").attr("class","label"),k="markdown"===b.labelType,l=await (0,g.GZ)(a,b.label,{style:b.labelStyle,useHtmlLabels:f,addSvgBackground:k,isNode:!1,markdown:k,width:k?void 0:1/0},d);j.node().appendChild(l);let m=l.getBBox(),n=m;if(f){let a=l.children[0],b=(0,r.Ltv)(l);n=m=a.getBoundingClientRect(),b.attr("width",m.width),b.attr("height",m.height)}else{let a=(0,r.Ltv)(l).select("text").node();a&&"function"==typeof a.getBBox&&(n=a.getBBox())}if(j.attr("transform",(0,e.Wg)(n,f)),ay[b.id]=h,b.width=m.width,b.height=m.height,b.startLabelLeft){let d=a.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),h=await au(g,b.startLabelLeft,b.labelStyle);c=h;let i=h.getBBox();if(f){let a=h.children[0],b=(0,r.Ltv)(h);i=a.getBoundingClientRect(),b.attr("width",i.width),b.attr("height",i.height)}g.attr("transform",(0,e.Wg)(i,f)),az[b.id]||(az[b.id]={}),az[b.id].startLeft=d,aB(c,b.startLabelLeft)}if(b.startLabelRight){let d=a.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),h=await au(g,b.startLabelRight,b.labelStyle);c=h;let i=h.getBBox();if(f){let a=h.children[0],b=(0,r.Ltv)(h);i=a.getBoundingClientRect(),b.attr("width",i.width),b.attr("height",i.height)}g.attr("transform",(0,e.Wg)(i,f)),az[b.id]||(az[b.id]={}),az[b.id].startRight=d,aB(c,b.startLabelRight)}if(b.endLabelLeft){let d=a.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),h=await au(d,b.endLabelLeft,b.labelStyle);c=h;let i=h.getBBox();if(f){let a=h.children[0],b=(0,r.Ltv)(h);i=a.getBoundingClientRect(),b.attr("width",i.width),b.attr("height",i.height)}g.attr("transform",(0,e.Wg)(i,f)),az[b.id]||(az[b.id]={}),az[b.id].endLeft=d,aB(c,b.endLabelLeft)}if(b.endLabelRight){let d=a.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),h=await au(d,b.endLabelRight,b.labelStyle);c=h;let i=h.getBBox();if(f){let a=h.children[0],b=(0,r.Ltv)(h);i=a.getBoundingClientRect(),b.attr("width",i.width),b.attr("height",i.height)}g.attr("transform",(0,e.Wg)(i,f)),az[b.id]||(az[b.id]={}),az[b.id].endRight=d,aB(c,b.endLabelRight)}return l},"insertEdgeLabel");function aB(a,b){(0,i.E)((0,i.D7)())&&a&&(a.style.width=9*b.length+"px",a.style.height="12px")}(0,j.K2)(aB,"setTerminalWidth");var aC=(0,j.K2)((a,b)=>{j.Rm.debug("Moving label abc88 ",a.id,a.label,ay[a.id],b);let c=b.updatedPath?b.updatedPath:b.originalPath,d=(0,i.D7)(),{subGraphTitleTotalMargin:e}=(0,f.O)(d);if(a.label){let d=ay[a.id],f=a.x,g=a.y;if(c){let d=h._K.calcLabelPosition(c);j.Rm.debug("Moving label "+a.label+" from (",f,",",g,") to (",d.x,",",d.y,") abc88"),b.updatedPath&&(f=d.x,g=d.y)}d.attr("transform",`translate(${f}, ${g+e/2})`)}if(a.startLabelLeft){let b=az[a.id].startLeft,d=a.x,e=a.y;if(c){let b=h._K.calcTerminalLabelPosition(10*!!a.arrowTypeStart,"start_left",c);d=b.x,e=b.y}b.attr("transform",`translate(${d}, ${e})`)}if(a.startLabelRight){let b=az[a.id].startRight,d=a.x,e=a.y;if(c){let b=h._K.calcTerminalLabelPosition(10*!!a.arrowTypeStart,"start_right",c);d=b.x,e=b.y}b.attr("transform",`translate(${d}, ${e})`)}if(a.endLabelLeft){let b=az[a.id].endLeft,d=a.x,e=a.y;if(c){let b=h._K.calcTerminalLabelPosition(10*!!a.arrowTypeEnd,"end_left",c);d=b.x,e=b.y}b.attr("transform",`translate(${d}, ${e})`)}if(a.endLabelRight){let b=az[a.id].endRight,d=a.x,e=a.y;if(c){let b=h._K.calcTerminalLabelPosition(10*!!a.arrowTypeEnd,"end_right",c);d=b.x,e=b.y}b.attr("transform",`translate(${d}, ${e})`)}},"positionEdgeLabel"),aD=(0,j.K2)((a,b)=>{let c=a.x,d=a.y,e=Math.abs(b.x-c),f=Math.abs(b.y-d),g=a.width/2,h=a.height/2;return!!(e>=g)||!!(f>=h)},"outsideNode"),aE=(0,j.K2)((a,b,c)=>{j.Rm.debug(`intersection calc abc89:
125
+ outsidePoint: ${JSON.stringify(b)}
126
+ insidePoint : ${JSON.stringify(c)}
127
+ node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);let d=a.x,e=a.y,f=Math.abs(d-c.x),g=a.width/2,h=c.x<b.x?g-f:g+f,i=a.height/2,k=Math.abs(b.y-c.y),l=Math.abs(b.x-c.x);if(Math.abs(e-b.y)*g>Math.abs(d-b.x)*i){let a=c.y<b.y?b.y-i-e:e-i-b.y;h=l*a/k;let d={x:c.x<b.x?c.x+h:c.x-l+h,y:c.y<b.y?c.y+k-a:c.y-k+a};return 0===h&&(d.x=b.x,d.y=b.y),0===l&&(d.x=b.x),0===k&&(d.y=b.y),j.Rm.debug(`abc89 topp/bott calc, Q ${k}, q ${a}, R ${l}, r ${h}`,d),d}{let a=k*(h=c.x<b.x?b.x-g-d:d-g-b.x)/l,e=c.x<b.x?c.x+l-h:c.x-l+h,f=c.y<b.y?c.y+a:c.y-a;return j.Rm.debug(`sides calc abc89, Q ${k}, q ${a}, R ${l}, r ${h}`,{_x:e,_y:f}),0===h&&(e=b.x,f=b.y),0===l&&(e=b.x),0===k&&(f=b.y),{x:e,y:f}}},"intersection"),aF=(0,j.K2)((a,b)=>{j.Rm.debug("abc88 cutPathAtIntersect",a,b);let c=[],d=a[0],e=!1;return a.forEach(a=>{if(aD(b,a)||e)d=a,e||c.push(a);else{let f=aE(b,d,a),g=!1;c.forEach(a=>{g=g||a.x===f.x&&a.y===f.y}),c.some(a=>a.x===f.x&&a.y===f.y)||c.push(f),e=!0}}),c},"cutPathAtIntersect"),aG=(0,j.K2)(function(a,b,c,d,f,g,h){let k,l=c.points;j.Rm.debug("abc88 InsertEdge: edge=",c,"e=",b);let m=!1,n=g.node(b.v);var o=g.node(b.w);o?.intersect&&n?.intersect&&((l=l.slice(1,c.points.length-1)).unshift(n.intersect(l[0])),l.push(o.intersect(l[l.length-1]))),c.toCluster&&(j.Rm.debug("to cluster abc88",d[c.toCluster]),l=aF(c.points,d[c.toCluster].node),m=!0),c.fromCluster&&(j.Rm.debug("from cluster abc88",d[c.fromCluster]),l=aF(l.reverse(),d[c.fromCluster].node).reverse(),m=!0);let p=l.filter(a=>!Number.isNaN(a.y)),q=r.qrM;c.curve&&("graph"===f||"flowchart"===f)&&(q=c.curve);let{x:s,y:t}=(0,e.RI)(c),u=(0,r.n8j)().x(s).y(t).curve(q);switch(c.thickness){case"normal":k="edge-thickness-normal";break;case"thick":case"invisible":k="edge-thickness-thick";break;default:k=""}switch(c.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed"}let v=a.append("path").attr("d",u(p)).attr("id",c.id).attr("class"," "+k+(c.classes?" "+c.classes:"")).attr("style",c.style),w="";((0,i.D7)().flowchart.arrowMarkerAbsolute||(0,i.D7)().state.arrowMarkerAbsolute)&&(w=(0,i.ID)(!0)),av(v,c,w,h,f);let x={};return m&&(x.updatedPath=l),x.originalPath=c.points,x},"insertEdge"),aH=(0,j.K2)(a=>{let b=new Set;for(let c of a)switch(c){case"x":b.add("right"),b.add("left");break;case"y":b.add("up"),b.add("down");break;default:b.add(c)}return b},"expandAndDeduplicateDirections"),aI=(0,j.K2)((a,b,c,d)=>{let e=aH(a),f=b.height+2*c.padding,g=f/2,h=d??b.width+2*g+c.padding,i=c.padding/2;return e.has("right")&&e.has("left")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:g,y:0},{x:h/2,y:2*i},{x:h-g,y:0},{x:h,y:0},{x:h,y:-f/3},{x:h+2*i,y:-f/2},{x:h,y:-2*f/3},{x:h,y:-f},{x:h-g,y:-f},{x:h/2,y:-f-2*i},{x:g,y:-f},{x:0,y:-f},{x:0,y:-2*f/3},{x:-2*i,y:-f/2},{x:0,y:-f/3}]:e.has("right")&&e.has("left")&&e.has("up")?[{x:g,y:0},{x:h-g,y:0},{x:h,y:-f/2},{x:h-g,y:-f},{x:g,y:-f},{x:0,y:-f/2}]:e.has("right")&&e.has("left")&&e.has("down")?[{x:0,y:0},{x:g,y:-f},{x:h-g,y:-f},{x:h,y:0}]:e.has("right")&&e.has("up")&&e.has("down")?[{x:0,y:0},{x:h,y:-g},{x:h,y:-f+g},{x:0,y:-f}]:e.has("left")&&e.has("up")&&e.has("down")?[{x:h,y:0},{x:0,y:-g},{x:0,y:-f+g},{x:h,y:-f}]:e.has("right")&&e.has("left")?[{x:g,y:0},{x:g,y:-i},{x:h-g,y:-i},{x:h-g,y:0},{x:h,y:-f/2},{x:h-g,y:-f},{x:h-g,y:-f+i},{x:g,y:-f+i},{x:g,y:-f},{x:0,y:-f/2}]:e.has("up")&&e.has("down")?[{x:h/2,y:0},{x:0,y:-i},{x:g,y:-i},{x:g,y:-f+i},{x:0,y:-f+i},{x:h/2,y:-f},{x:h,y:-f+i},{x:h-g,y:-f+i},{x:h-g,y:-i},{x:h,y:-i}]:e.has("right")&&e.has("up")?[{x:0,y:0},{x:h,y:-g},{x:0,y:-f}]:e.has("right")&&e.has("down")?[{x:0,y:0},{x:h,y:0},{x:0,y:-f}]:e.has("left")&&e.has("up")?[{x:h,y:0},{x:0,y:-g},{x:h,y:-f}]:e.has("left")&&e.has("down")?[{x:h,y:0},{x:0,y:0},{x:h,y:-f}]:e.has("right")?[{x:g,y:-i},{x:g,y:-i},{x:h-g,y:-i},{x:h-g,y:0},{x:h,y:-f/2},{x:h-g,y:-f},{x:h-g,y:-f+i},{x:g,y:-f+i},{x:g,y:-f+i}]:e.has("left")?[{x:g,y:0},{x:g,y:-i},{x:h-g,y:-i},{x:h-g,y:-f+i},{x:g,y:-f+i},{x:g,y:-f},{x:0,y:-f/2}]:e.has("up")?[{x:g,y:-i},{x:g,y:-f+i},{x:0,y:-f+i},{x:h/2,y:-f},{x:h,y:-f+i},{x:h-g,y:-f+i},{x:h-g,y:-i}]:e.has("down")?[{x:h/2,y:0},{x:0,y:-i},{x:g,y:-i},{x:g,y:-f+i},{x:h-g,y:-f+i},{x:h-g,y:-i},{x:h,y:-i}]:[{x:0,y:0}]},"getArrowPoints");function aJ(a,b,c,d){var e=a.x,f=a.y,g=e-d.x,h=f-d.y,i=Math.sqrt(b*b*h*h+c*c*g*g),j=Math.abs(b*c*g/i);d.x<e&&(j=-j);var k=Math.abs(b*c*h/i);return d.y<f&&(k=-k),{x:e+j,y:f+k}}function aK(a,b,c){return aJ(a,b,b,c)}function aL(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q;if(e=b.y-a.y,g=a.x-b.x,i=b.x*a.y-a.x*b.y,m=e*c.x+g*c.y+i,n=e*d.x+g*d.y+i,!(0!==m&&0!==n&&aM(m,n))){if((f=d.y-c.y,h=c.x-d.x,j=d.x*c.y-c.x*d.y,k=f*a.x+h*a.y+j,l=f*b.x+h*b.y+j,!(0!==k&&0!==l&&aM(k,l)))&&0!=(o=e*h-f*g))return p=Math.abs(o/2),{x:(q=g*j-h*i)<0?(q-p)/o:(q+p)/o,y:(q=f*i-e*j)<0?(q-p)/o:(q+p)/o}}}function aM(a,b){return a*b>0}function aN(a,b,c){var d=a.x,e=a.y,f=[],g=1/0,h=1/0;"function"==typeof b.forEach?b.forEach(function(a){g=Math.min(g,a.x),h=Math.min(h,a.y)}):(g=Math.min(g,b.x),h=Math.min(h,b.y));for(var i=d-a.width/2-g,j=e-a.height/2-h,k=0;k<b.length;k++){var l=b[k],m=b[k<b.length-1?k+1:0],n=aL(a,c,{x:i+l.x,y:j+l.y},{x:i+m.x,y:j+m.y});n&&f.push(n)}return f.length?(f.length>1&&f.sort(function(a,b){var d=a.x-c.x,e=a.y-c.y,f=Math.sqrt(d*d+e*e),g=b.x-c.x,h=b.y-c.y,i=Math.sqrt(g*g+h*h);return f<i?-1:+(f!==i)}),f[0]):a}(0,j.K2)(function(a,b){return a.intersect(b)},"intersectNode"),(0,j.K2)(aJ,"intersectEllipse"),(0,j.K2)(aK,"intersectCircle"),(0,j.K2)(aL,"intersectLine"),(0,j.K2)(aM,"sameSign"),(0,j.K2)(aN,"intersectPolygon");var aO={circle:aK,polygon:aN,rect:(0,j.K2)((a,b)=>{var c,d,e=a.x,f=a.y,g=b.x-e,h=b.y-f,i=a.width/2,j=a.height/2;return Math.abs(h)*i>Math.abs(g)*j?(h<0&&(j=-j),c=0===h?0:j*g/h,d=j):(g<0&&(i=-i),c=i,d=0===g?0:i*h/g),{x:e+c,y:f+d}},"intersectRect")},aP=(0,j.K2)(async(a,b,c,d)=>{let e,j,k=(0,i.D7)(),l=b.useHtmlLabels||(0,i.E)(k),m=a.insert("g").attr("class",c||"node default").attr("id",b.domId||b.id),n=m.insert("g").attr("class","label").attr("style",b.labelStyle);e=void 0===b.labelText?"":"string"==typeof b.labelText?b.labelText:b.labelText[0];let o=(j="markdown"===b.labelType?(0,g.GZ)(n,(0,i.jZ)((0,h.Sm)(e),k),{useHtmlLabels:l,width:b.width||k.flowchart.wrappingWidth,classes:"markdown-node-label"},k):await au(n,(0,i.jZ)((0,h.Sm)(e),k),b.labelStyle,!1,d)).getBBox(),p=b.padding/2;if((0,i.E)(k)){let a=j.children[0],b=(0,r.Ltv)(j);await (0,f.X)(a,e),o=a.getBoundingClientRect(),b.attr("width",o.width),b.attr("height",o.height)}return l?n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):n.attr("transform","translate(0, "+-o.height/2+")"),b.centerLabel&&n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:m,bbox:o,halfPadding:p,label:n}},"labelHelper"),aQ=(0,j.K2)((a,b)=>{let c=b.node().getBBox();a.width=c.width,a.height=c.height},"updateNodeBounds");function aR(a,b,c,d){return a.insert("polygon",":first-child").attr("points",d.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-b/2+","+c/2+")")}(0,j.K2)(aR,"insertPolygonShape");var aS=(0,j.K2)(async(a,b)=>{b.useHtmlLabels||(0,i.E)((0,i.D7)())||(b.centerLabel=!0);let{shapeSvg:c,bbox:d,halfPadding:e}=await aP(a,b,"node "+b.classes,!0);j.Rm.info("Classes = ",b.classes);let f=c.insert("rect",":first-child");return f.attr("rx",b.rx).attr("ry",b.ry).attr("x",-d.width/2-e).attr("y",-d.height/2-e).attr("width",d.width+b.padding).attr("height",d.height+b.padding),aQ(b,f),b.intersect=function(a){return aO.rect(b,a)},c},"note"),aT=(0,j.K2)(a=>a?" "+a:"","formatClass"),aU=(0,j.K2)((a,b)=>`${b||"node default"}${aT(a.classes)} ${aT(a.class)}`,"getClassesFromNode"),aV=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=d.width+b.padding+(d.height+b.padding),f=[{x:e/2,y:0},{x:e,y:-e/2},{x:e/2,y:-e},{x:0,y:-e/2}];j.Rm.info("Question main (Circle)");let g=aR(c,e,e,f);return g.attr("style",b.style),aQ(b,g),b.intersect=function(a){return j.Rm.warn("Intersect called"),aO.polygon(b,f,a)},c},"question"),aW=(0,j.K2)((a,b)=>{let c=a.insert("g").attr("class","node default").attr("id",b.domId||b.id);return c.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),b.width=28,b.height=28,b.intersect=function(a){return aO.circle(b,14,a)},c},"choice"),aX=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=b.positioned?b.height:d.height+b.padding,f=e/4,g=b.positioned?b.width:d.width+2*f+b.padding,h=[{x:f,y:0},{x:g-f,y:0},{x:g,y:-e/2},{x:g-f,y:-e},{x:f,y:-e},{x:0,y:-e/2}],i=aR(c,g,e,h);return i.attr("style",b.style),aQ(b,i),b.intersect=function(a){return aO.polygon(b,h,a)},c},"hexagon"),aY=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,void 0,!0),e=d.height+2*b.padding,f=e/2,g=d.width+2*f+b.padding,h=b.positioned&&(b.widthInColumns??1)>1&&b.width>g?b.width:g,i=aI(b.directions,d,b,h),j=aR(c,h,e,i);return j.attr("style",b.style),aQ(b,j),b.intersect=function(a){return aO.polygon(b,i,a)},c},"block_arrow"),aZ=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:-f/2,y:0},{x:e,y:0},{x:e,y:-f},{x:-f/2,y:-f},{x:0,y:-f/2}];return aR(c,e,f,g).attr("style",b.style),b.width=e+f,b.height=f,b.intersect=function(a){return aO.polygon(b,g,a)},c},"rect_left_inv_arrow"),a$=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:-2*f/6,y:0},{x:e-f/6,y:0},{x:e+2*f/6,y:-f},{x:f/6,y:-f}],h=aR(c,e,f,g);return h.attr("style",b.style),aQ(b,h),b.intersect=function(a){return aO.polygon(b,g,a)},c},"lean_right"),a_=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:2*f/6,y:0},{x:e+f/6,y:0},{x:e-2*f/6,y:-f},{x:-f/6,y:-f}],h=aR(c,e,f,g);return h.attr("style",b.style),aQ(b,h),b.intersect=function(a){return aO.polygon(b,g,a)},c},"lean_left"),a0=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:-2*f/6,y:0},{x:e+2*f/6,y:0},{x:e-f/6,y:-f},{x:f/6,y:-f}],h=aR(c,e,f,g);return h.attr("style",b.style),aQ(b,h),b.intersect=function(a){return aO.polygon(b,g,a)},c},"trapezoid"),a1=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:f/6,y:0},{x:e-f/6,y:0},{x:e+2*f/6,y:-f},{x:-2*f/6,y:-f}],h=aR(c,e,f,g);return h.attr("style",b.style),aQ(b,h),b.intersect=function(a){return aO.polygon(b,g,a)},c},"inv_trapezoid"),a2=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:0,y:0},{x:e+f/2,y:0},{x:e,y:-f/2},{x:e+f/2,y:-f},{x:0,y:-f}],h=aR(c,e,f,g);return h.attr("style",b.style),aQ(b,h),b.intersect=function(a){return aO.polygon(b,g,a)},c},"rect_right_inv_arrow"),a3=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=d.width+b.padding,f=e/2,g=f/(2.5+e/50),h=d.height+g+b.padding,i="M 0,"+g+" a "+f+","+g+" 0,0,0 "+e+" 0 a "+f+","+g+" 0,0,0 "+-e+" 0 l 0,"+h+" a "+f+","+g+" 0,0,0 "+e+" 0 l 0,"+-h,j=c.attr("label-offset-y",g).insert("path",":first-child").attr("style",b.style).attr("d",i).attr("transform","translate("+-e/2+","+-(h/2+g)+")");return aQ(b,j),b.intersect=function(a){let c=aO.rect(b,a),d=c.x-b.x;if(0!=f&&(Math.abs(d)<b.width/2||Math.abs(d)==b.width/2&&Math.abs(c.y-b.y)>b.height/2-g)){let e=g*g*(1-d*d/(f*f));0!=e&&(e=Math.sqrt(e)),e=g-e,a.y-b.y>0&&(e=-e),c.y+=e}return c},c},"cylinder"),a4=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d,halfPadding:e}=await aP(a,b,"node "+b.classes+" "+b.class,!0),f=c.insert("rect",":first-child"),g=b.positioned?b.width:d.width+b.padding,h=b.positioned?b.height:d.height+b.padding,i=b.positioned?-g/2:-d.width/2-e,k=b.positioned?-h/2:-d.height/2-e;if(f.attr("class","basic label-container").attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("x",i).attr("y",k).attr("width",g).attr("height",h),b.props){let a=new Set(Object.keys(b.props));b.props.borders&&(a7(f,b.props.borders,g,h),a.delete("borders")),a.forEach(a=>{j.Rm.warn(`Unknown node property ${a}`)})}return aQ(b,f),b.intersect=function(a){return aO.rect(b,a)},c},"rect"),a5=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d,halfPadding:e}=await aP(a,b,"node "+b.classes,!0),f=c.insert("rect",":first-child"),g=b.positioned?b.width:d.width+b.padding,h=b.positioned?b.height:d.height+b.padding,i=b.positioned?-g/2:-d.width/2-e,k=b.positioned?-h/2:-d.height/2-e;if(f.attr("class","basic cluster composite label-container").attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("x",i).attr("y",k).attr("width",g).attr("height",h),b.props){let a=new Set(Object.keys(b.props));b.props.borders&&(a7(f,b.props.borders,g,h),a.delete("borders")),a.forEach(a=>{j.Rm.warn(`Unknown node property ${a}`)})}return aQ(b,f),b.intersect=function(a){return aO.rect(b,a)},c},"composite"),a6=(0,j.K2)(async(a,b)=>{let{shapeSvg:c}=await aP(a,b,"label",!0);j.Rm.trace("Classes = ",b.class);let d=c.insert("rect",":first-child");if(d.attr("width",0).attr("height",0),c.attr("class","label edgeLabel"),b.props){let a=new Set(Object.keys(b.props));b.props.borders&&(a7(d,b.props.borders,0,0),a.delete("borders")),a.forEach(a=>{j.Rm.warn(`Unknown node property ${a}`)})}return aQ(b,d),b.intersect=function(a){return aO.rect(b,a)},c},"labelRect");function a7(a,b,c,d){let e=[],f=(0,j.K2)(a=>{e.push(a,0)},"addBorder"),g=(0,j.K2)(a=>{e.push(0,a)},"skipBorder");b.includes("t")?(j.Rm.debug("add top border"),f(c)):g(c),b.includes("r")?(j.Rm.debug("add right border"),f(d)):g(d),b.includes("b")?(j.Rm.debug("add bottom border"),f(c)):g(c),b.includes("l")?(j.Rm.debug("add left border"),f(d)):g(d),a.attr("stroke-dasharray",e.join(" "))}(0,j.K2)(a7,"applyNodePropertyBorders");var a8=(0,j.K2)(async(a,b)=>{let c;c=b.classes?"node "+b.classes:"node default";let d=a.insert("g").attr("class",c).attr("id",b.domId||b.id),e=d.insert("rect",":first-child"),f=d.insert("line"),g=d.insert("g").attr("class","label"),h=b.labelText.flat?b.labelText.flat():b.labelText,k="";k="object"==typeof h?h[0]:h,j.Rm.info("Label text abc79",k,h,"object"==typeof h);let l=await au(g,k,b.labelStyle,!0,!0),m={width:0,height:0};if((0,i.E)((0,i.D7)())){let a=l.children[0],b=(0,r.Ltv)(l);m=a.getBoundingClientRect(),b.attr("width",m.width),b.attr("height",m.height)}j.Rm.info("Text 2",h);let n=h.slice(1,h.length),o=l.getBBox(),p=await au(g,n.join?n.join("<br/>"):n,b.labelStyle,!0,!0);if((0,i.E)((0,i.D7)())){let a=p.children[0],b=(0,r.Ltv)(p);m=a.getBoundingClientRect(),b.attr("width",m.width),b.attr("height",m.height)}let q=b.padding/2;return(0,r.Ltv)(p).attr("transform","translate( "+(m.width>o.width?0:(o.width-m.width)/2)+", "+(o.height+q+5)+")"),(0,r.Ltv)(l).attr("transform","translate( "+(m.width<o.width?0:-(o.width-m.width)/2)+", 0)"),m=g.node().getBBox(),g.attr("transform","translate("+-m.width/2+", "+(-m.height/2-q+3)+")"),e.attr("class","outer title-state").attr("x",-m.width/2-q).attr("y",-m.height/2-q).attr("width",m.width+b.padding).attr("height",m.height+b.padding),f.attr("class","divider").attr("x1",-m.width/2-q).attr("x2",m.width/2+q).attr("y1",-m.height/2-q+o.height+q).attr("y2",-m.height/2-q+o.height+q),aQ(b,e),b.intersect=function(a){return aO.rect(b,a)},d},"rectWithTitle"),a9=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=d.height+b.padding,f=d.width+e/4+b.padding,g=c.insert("rect",":first-child").attr("style",b.style).attr("rx",e/2).attr("ry",e/2).attr("x",-f/2).attr("y",-e/2).attr("width",f).attr("height",e);return aQ(b,g),b.intersect=function(a){return aO.rect(b,a)},c},"stadium"),ba=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d,halfPadding:e}=await aP(a,b,aU(b,void 0),!0),f=c.insert("circle",":first-child");return f.attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("r",d.width/2+e).attr("width",d.width+b.padding).attr("height",d.height+b.padding),j.Rm.info("Circle main"),aQ(b,f),b.intersect=function(a){return j.Rm.info("Circle intersect",b,d.width/2+e,a),aO.circle(b,d.width/2+e,a)},c},"circle"),bb=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d,halfPadding:e}=await aP(a,b,aU(b,void 0),!0),f=c.insert("g",":first-child"),g=f.insert("circle"),h=f.insert("circle");return f.attr("class",b.class),g.attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("r",d.width/2+e+5).attr("width",d.width+b.padding+10).attr("height",d.height+b.padding+10),h.attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("r",d.width/2+e).attr("width",d.width+b.padding).attr("height",d.height+b.padding),j.Rm.info("DoubleCircle main"),aQ(b,g),b.intersect=function(a){return j.Rm.info("DoubleCircle intersect",b,d.width/2+e+5,a),aO.circle(b,d.width/2+e+5,a)},c},"doublecircle"),bc=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aP(a,b,aU(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:0,y:0},{x:e,y:0},{x:e,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:e+8,y:0},{x:e+8,y:-f},{x:-8,y:-f},{x:-8,y:0}],h=aR(c,e,f,g);return h.attr("style",b.style),aQ(b,h),b.intersect=function(a){return aO.polygon(b,g,a)},c},"subroutine"),bd=(0,j.K2)((a,b)=>{let c=a.insert("g").attr("class","node default").attr("id",b.domId||b.id),d=c.insert("circle",":first-child");return d.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),aQ(b,d),b.intersect=function(a){return aO.circle(b,7,a)},c},"start"),be=(0,j.K2)((a,b,c)=>{let d=a.insert("g").attr("class","node default").attr("id",b.domId||b.id),e=70,f=10;return"LR"===c&&(e=10,f=70),aQ(b,d.append("rect").attr("x",-1*e/2).attr("y",-1*f/2).attr("width",e).attr("height",f).attr("class","fork-join")),b.height=b.height+b.padding/2,b.width=b.width+b.padding/2,b.intersect=function(a){return aO.rect(b,a)},d},"forkJoin"),bf={rhombus:aV,composite:a5,question:aV,rect:a4,labelRect:a6,rectWithTitle:a8,choice:aW,circle:ba,doublecircle:bb,stadium:a9,hexagon:aX,block_arrow:aY,rect_left_inv_arrow:aZ,lean_right:a$,lean_left:a_,trapezoid:a0,inv_trapezoid:a1,rect_right_inv_arrow:a2,cylinder:a3,start:bd,end:(0,j.K2)((a,b)=>{let c=a.insert("g").attr("class","node default").attr("id",b.domId||b.id),d=c.insert("circle",":first-child"),e=c.insert("circle",":first-child");return e.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),d.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),aQ(b,e),b.intersect=function(a){return aO.circle(b,7,a)},c},"end"),note:aS,subroutine:bc,fork:be,join:be,class_box:(0,j.K2)(async(a,b)=>{let c,d=b.padding/2;c=b.classes?"node "+b.classes:"node default";let e=a.insert("g").attr("class",c).attr("id",b.domId||b.id),f=e.insert("rect",":first-child"),g=e.insert("line"),h=e.insert("line"),j=0,k=4,l=e.insert("g").attr("class","label"),m=0,n=b.classData.annotations?.[0],o=b.classData.annotations[0]?"\xab"+b.classData.annotations[0]+"\xbb":"",p=await au(l,o,b.labelStyle,!0,!0),q=p.getBBox();if((0,i.E)((0,i.D7)())){let a=p.children[0],b=(0,r.Ltv)(p);q=a.getBoundingClientRect(),b.attr("width",q.width),b.attr("height",q.height)}b.classData.annotations[0]&&(k+=q.height+4,j+=q.width);let s=b.classData.label;void 0!==b.classData.type&&""!==b.classData.type&&((0,i.E)((0,i.D7)())?s+="&lt;"+b.classData.type+"&gt;":s+="<"+b.classData.type+">");let t=await au(l,s,b.labelStyle,!0,!0);(0,r.Ltv)(t).attr("class","classTitle");let u=t.getBBox();if((0,i.E)((0,i.D7)())){let a=t.children[0],b=(0,r.Ltv)(t);u=a.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}k+=u.height+4,u.width>j&&(j=u.width);let v=[];b.classData.members.forEach(async a=>{let c=a.getDisplayDetails(),d=c.displayText;(0,i.E)((0,i.D7)())&&(d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let e=await au(l,d,c.cssStyle?c.cssStyle:b.labelStyle,!0,!0),f=e.getBBox();if((0,i.E)((0,i.D7)())){let a=e.children[0],b=(0,r.Ltv)(e);f=a.getBoundingClientRect(),b.attr("width",f.width),b.attr("height",f.height)}f.width>j&&(j=f.width),k+=f.height+4,v.push(e)}),k+=8;let w=[];if(b.classData.methods.forEach(async a=>{let c=a.getDisplayDetails(),d=c.displayText;(0,i.E)((0,i.D7)())&&(d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let e=await au(l,d,c.cssStyle?c.cssStyle:b.labelStyle,!0,!0),f=e.getBBox();if((0,i.E)((0,i.D7)())){let a=e.children[0],b=(0,r.Ltv)(e);f=a.getBoundingClientRect(),b.attr("width",f.width),b.attr("height",f.height)}f.width>j&&(j=f.width),k+=f.height+4,w.push(e)}),k+=8,n){let a=(j-q.width)/2;(0,r.Ltv)(p).attr("transform","translate( "+(-1*j/2+a)+", "+-1*k/2+")"),m=q.height+4}let x=(j-u.width)/2;return(0,r.Ltv)(t).attr("transform","translate( "+(-1*j/2+x)+", "+(-1*k/2+m)+")"),m+=u.height+4,g.attr("class","divider").attr("x1",-j/2-d).attr("x2",j/2+d).attr("y1",-k/2-d+8+m).attr("y2",-k/2-d+8+m),m+=8,v.forEach(a=>{(0,r.Ltv)(a).attr("transform","translate( "+-j/2+", "+(-1*k/2+m+4)+")");let b=a?.getBBox();m+=(b?.height??0)+4}),m+=8,h.attr("class","divider").attr("x1",-j/2-d).attr("x2",j/2+d).attr("y1",-k/2-d+8+m).attr("y2",-k/2-d+8+m),m+=8,w.forEach(a=>{(0,r.Ltv)(a).attr("transform","translate( "+-j/2+", "+(-1*k/2+m)+")");let b=a?.getBBox();m+=(b?.height??0)+4}),f.attr("style",b.style).attr("class","outer title-state").attr("x",-j/2-d).attr("y",-(k/2)-d).attr("width",j+b.padding).attr("height",k+b.padding),aQ(b,f),b.intersect=function(a){return aO.rect(b,a)},e},"class_box")},bg={},bh=(0,j.K2)(async(a,b,c)=>{let d,e;if(b.link){let f;"sandbox"===(0,i.D7)().securityLevel?f="_top":b.linkTarget&&(f=b.linkTarget||"_blank"),d=a.insert("svg:a").attr("xlink:href",b.link).attr("target",f),e=await bf[b.shape](d,b,c)}else d=e=await bf[b.shape](a,b,c);return b.tooltip&&e.attr("title",b.tooltip),b.class&&e.attr("class","node default "+b.class),bg[b.id]=d,b.haveCallback&&bg[b.id].attr("class",bg[b.id].attr("class")+" clickable"),d},"insertNode"),bi=(0,j.K2)(a=>{let b=bg[a.id];j.Rm.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");let c=a.diff||0;return a.clusterNode?b.attr("transform","translate("+(a.x+c-a.width/2)+", "+(a.y-a.height/2-8)+")"):b.attr("transform","translate("+a.x+", "+a.y+")"),c},"positionNode");function bj(a,b,c=!1){let d,e="default";(a?.classes?.length||0)>0&&(e=(a?.classes??[]).join(" ")),e+=" flowchart-label";let f=0,g="";switch(a.type){case"round":f=5,g="rect";break;case"composite":f=0,g="composite",d=0;break;case"square":case"group":default:g="rect";break;case"diamond":g="question";break;case"hexagon":g="hexagon";break;case"block_arrow":g="block_arrow";break;case"odd":case"rect_left_inv_arrow":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder";break;case"doublecircle":g="doublecircle"}let j=(0,h.sM)(a?.styles??[]),k=a.label,l=a.size??{width:0,height:0,x:0,y:0},m=b.getDiagramId();return{labelStyle:j.labelStyle,shape:g,labelText:k,rx:f,ry:f,class:e,style:j.style,id:a.id,domId:m?`${m}-${a.id}`:a.id,directions:a.directions,width:l.width,height:l.height,x:l.x,y:l.y,positioned:c,intersect:void 0,type:a.type,padding:d??(0,i.zj)()?.block?.padding??0,widthInColumns:a.widthInColumns??1}}async function bk(a,b,c){let d=bj(b,c,!1);if("group"===d.type)return;let e=(0,i.zj)(),f=await bh(a,d,{config:e}),g=f.node().getBBox(),h=c.getBlock(d.id);h.size={width:g.width,height:g.height,x:0,y:0,node:f},c.setBlock(h),f.remove()}async function bl(a,b,c){let d=bj(b,c,!0);if("space"!==c.getBlock(d.id).type){let c=(0,i.zj)();await bh(a,d,{config:c}),b.intersect=d?.intersect,bi(d)}}async function bm(a,b,c,d){for(let e of b)await d(a,e,c),e.children&&await bm(a,e.children,c,d)}async function bn(a,b,c){await bm(a,b,c,bk)}async function bo(a,b,c){await bm(a,b,c,bl)}async function bp(a,b,c,d,e){let f=new s.T({multigraph:!0,compound:!0});for(let a of(f.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8}),c))a.size&&f.setNode(a.id,{width:a.size.width,height:a.size.height,intersect:a.intersect});for(let c of b)if(c.start&&c.end){let b=d.getBlock(c.start),g=d.getBlock(c.end);if(b?.size&&g?.size){let d=b.size,h=g.size,i=[{x:d.x,y:d.y},{x:d.x+(h.x-d.x)/2,y:d.y+(h.y-d.y)/2},{x:h.x,y:h.y}],j=e?`${e}-${c.id}`:c.id,k="thick"===c.thickness?"edge-thickness-thick":"edge-thickness-normal",l="dotted"===c.pattern?"edge-pattern-dotted":"edge-pattern-solid",m=`${k} ${l} flowchart-link LS-a1 LE-b1`;aG(a,{v:c.start,w:c.end,name:j},{...c,id:j,arrowTypeEnd:c.arrowTypeEnd,arrowTypeStart:c.arrowTypeStart,points:i,classes:m},void 0,"block",f,e),c.label&&(await aA(a,{...c,label:c.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:c.arrowTypeEnd,arrowTypeStart:c.arrowTypeStart,points:i,classes:m}),aC({...c,x:i[1].x,y:i[1].y},{originalPath:i}))}}}(0,j.K2)(bj,"getNodeFromBlock"),(0,j.K2)(bk,"calculateBlockSize"),(0,j.K2)(bl,"insertBlockPositioned"),(0,j.K2)(bm,"performOperations"),(0,j.K2)(bn,"calculateBlockSizes"),(0,j.K2)(bo,"insertBlocks"),(0,j.K2)(bp,"insertEdges");var bq=(0,j.K2)(function(a,b){return b.db.getClasses()},"getClasses"),br={parser:t,db:ab,renderer:{draw:(0,j.K2)(async function(a,b,c,d){let e,{securityLevel:f,block:g}=(0,i.zj)(),h=d.db;h.setDiagramId(b),"sandbox"===f&&(e=(0,r.Ltv)("#i"+b));let k="sandbox"===f?(0,r.Ltv)(e.nodes()[0].contentDocument.body):(0,r.Ltv)("body"),l="sandbox"===f?k.select(`[id="${b}"]`):(0,r.Ltv)(`[id="${b}"]`);ae(l,["point","circle","cross"],d.type,b);let m=h.getBlocks(),n=h.getBlocksFlat(),o=h.getEdges(),p=l.insert("g").attr("class","block");await bn(p,m,h);let q=at(h);if(await bo(p,m,h),await bp(p,o,n,h,b),q){let a=Math.max(1,Math.round(.125*(q.width/q.height))),b=q.height+a+10,c=q.width+10,{useMaxWidth:d}=g;(0,i.a$)(l,b,c,!!d),j.Rm.debug("Here Bounds",q,q),l.attr("viewBox",`${q.x-5} ${q.y-5} ${q.width+10} ${q.height+10}`)}},"draw"),getClasses:bq},styles:ad}},44995:(a,b,c)=>{c.d(b,{o:()=>d});var d=(0,c(77703).K2)(()=>`
128
+ /* Font Awesome icon styling - consolidated */
129
+ .label-icon {
130
+ display: inline-block;
131
+ height: 1em;
132
+ overflow: visible;
133
+ vertical-align: -0.125em;
134
+ }
135
+
136
+ .node .label-icon path {
137
+ fill: currentColor;
138
+ stroke: revert;
139
+ stroke-width: revert;
140
+ }
141
+ `,"getIconStyles")},85669:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(69794),e=c(4372);let f=(a,b)=>d.A.lang.round(e.A.parse(a)[b])}};
@@ -0,0 +1,226 @@
1
+ "use strict";exports.id=7520,exports.ids=[7520],exports.modules={17520:(a,b,c)=>{c.d(b,{Zk:()=>k,q7:()=>M,tM:()=>aa,u4:()=>_});var d=c(35836),e=c(21460),f=c(16919),g=c(38371),h=c(10340),i=c(57440),j=function(){var a=(0,i.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,2],c=[1,3],d=[1,4],e=[2,4],f=[1,9],g=[1,11],h=[1,16],j=[1,17],k=[1,18],l=[1,19],m=[1,33],n=[1,20],o=[1,21],p=[1,22],q=[1,23],r=[1,24],s=[1,26],t=[1,27],u=[1,28],v=[1,29],w=[1,30],x=[1,31],y=[1,32],z=[1,35],A=[1,36],B=[1,37],C=[1,38],D=[1,34],E=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],F=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],G=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],H={trace:(0,i.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,i.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 3:return d.setRootDoc(f[h]),f[h];case 4:this.$=[];break;case 5:"nl"!=f[h]&&(f[h-1].push(f[h]),this.$=f[h-1]);break;case 6:case 7:case 12:this.$=f[h];break;case 8:this.$="nl";break;case 13:let i=f[h-1];i.description=d.trimColon(f[h]),this.$=i;break;case 14:this.$={stmt:"relation",state1:f[h-2],state2:f[h]};break;case 15:let j=d.trimColon(f[h]);this.$={stmt:"relation",state1:f[h-3],state2:f[h-1],description:j};break;case 19:this.$={stmt:"state",id:f[h-3],type:"default",description:"",doc:f[h-1]};break;case 20:var k=f[h],l=f[h-2].trim();if(f[h].match(":")){var m=f[h].split(":");k=m[0],l=[l,m[1]]}this.$={stmt:"state",id:k,type:"default",description:l};break;case 21:this.$={stmt:"state",id:f[h-3],type:"default",description:f[h-5],doc:f[h-1]};break;case 22:this.$={stmt:"state",id:f[h],type:"fork"};break;case 23:this.$={stmt:"state",id:f[h],type:"join"};break;case 24:this.$={stmt:"state",id:f[h],type:"choice"};break;case 25:this.$={stmt:"state",id:d.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:f[h-1].trim(),note:{position:f[h-2].trim(),text:f[h].trim()}};break;case 29:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 30:case 31:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:f[h-3],url:f[h-2],tooltip:f[h-1]};break;case 33:this.$={stmt:"click",id:f[h-3],url:f[h-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:f[h-1].trim(),classes:f[h].trim()};break;case 36:this.$={stmt:"style",id:f[h-1].trim(),styleClass:f[h].trim()};break;case 37:this.$={stmt:"applyClass",id:f[h-1].trim(),styleClass:f[h].trim()};break;case 38:d.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:d.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:d.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:d.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:f[h].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:f[h-2].trim(),classes:[f[h].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:b,5:c,6:d},{1:[3]},{3:5,4:b,5:c,6:d},{3:6,4:b,5:c,6:d},a([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],e,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:f,5:g,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:j,19:k,22:l,24:m,25:n,26:o,27:p,28:q,29:r,32:25,33:s,35:t,37:u,38:v,41:w,45:x,48:y,51:z,52:A,53:B,54:C,57:D},a(E,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:h,17:j,19:k,22:l,24:m,25:n,26:o,27:p,28:q,29:r,32:25,33:s,35:t,37:u,38:v,41:w,45:x,48:y,51:z,52:A,53:B,54:C,57:D},a(E,[2,7]),a(E,[2,8]),a(E,[2,9]),a(E,[2,10]),a(E,[2,11]),a(E,[2,12],{14:[1,40],15:[1,41]}),a(E,[2,16]),{18:[1,42]},a(E,[2,18],{20:[1,43]}),{23:[1,44]},a(E,[2,22]),a(E,[2,23]),a(E,[2,24]),a(E,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},a(E,[2,28]),{34:[1,49]},{36:[1,50]},a(E,[2,31]),{13:51,24:m,57:D},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},a(F,[2,44],{58:[1,56]}),a(F,[2,45],{58:[1,57]}),a(E,[2,38]),a(E,[2,39]),a(E,[2,40]),a(E,[2,41]),a(E,[2,6]),a(E,[2,13]),{13:58,24:m,57:D},a(E,[2,17]),a(G,e,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},a(E,[2,29]),a(E,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},a(E,[2,14],{14:[1,71]}),{4:f,5:g,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:j,19:k,21:[1,72],22:l,24:m,25:n,26:o,27:p,28:q,29:r,32:25,33:s,35:t,37:u,38:v,41:w,45:x,48:y,51:z,52:A,53:B,54:C,57:D},a(E,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},a(E,[2,34]),a(E,[2,35]),a(E,[2,36]),a(E,[2,37]),a(F,[2,46]),a(F,[2,47]),a(E,[2,15]),a(E,[2,19]),a(G,e,{7:78}),a(E,[2,26]),a(E,[2,27]),{5:[1,79]},{5:[1,80]},{4:f,5:g,8:8,9:10,10:12,11:13,12:14,13:15,16:h,17:j,19:k,21:[1,81],22:l,24:m,25:n,26:o,27:p,28:q,29:r,32:25,33:s,35:t,37:u,38:v,41:w,45:x,48:y,51:z,52:A,53:B,54:C,57:D},a(E,[2,32]),a(E,[2,33]),a(E,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,i.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,i.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",j=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,i.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,i.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,h=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,k,j,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function I(){this.yy={}}return H.lexer={EOF:1,parseError:(0,i.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,i.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,i.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,i.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,i.K2)(function(){return this._more=!0,this},"more"),reject:(0,i.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,i.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,i.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,i.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,i.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,i.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,i.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,i.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,i.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,i.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,i.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,i.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,i.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)(function(a,b,c,d){function e(){let c=b.yytext.indexOf("%%");if(0===c)return!1;if(c>0){let d=b.yytext.slice(0,c),e=b.yytext.slice(c);e&&a.lexer.unput(e),b.yytext=d}return!0}switch((0,i.K2)(e,"processId"),c){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 77:return 5;case 9:case 10:case 11:case 12:case 56:case 62:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 53:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),b.yytext=b.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),b.yytext=b.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),b.yytext=b.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 64:if(!e())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:return 19;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 63:return"NOTE_TEXT";case 65:if(!e())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 66:return this.popState(),b.yytext=b.yytext.substr(2).trim(),31;case 67:return this.popState(),b.yytext=b.yytext.slice(0,-8).trim(),31;case 68:case 69:return 6;case 70:return 16;case 71:return 57;case 72:if(!e())return;return 24;case 73:return b.yytext=b.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}},(0,i.K2)(I,"Parser"),I.prototype=H,H.Parser=I,new I}();j.parser=j;var k=j,l="TB",m="state",n="root",o="relation",p="default",q="divider",r="fill:none",s="fill: #333",t="markdown",u="normal",v="rect",w="rectWithTitle",x="divider",y="roundedWithTitle",z="statediagram",A=`${z}-state`,B="transition",C=`${B} note-edge`,D=`${z}-note`,E=`${z}-cluster`,F=`${z}-cluster-alt`,G="parent",H="note",I="----",J=`${I}${H}`,K=`${I}${G}`,L=(0,i.K2)((a,b=l)=>{if(!a.doc)return b;let c=b;for(let b of a.doc)"dir"===b.stmt&&(c=b.value);return c},"getDir"),M={getClasses:(0,i.K2)(function(a,b){return b.db.getClasses()},"getClasses"),draw:(0,i.K2)(async function(a,b,c,j){i.Rm.info("REF0:"),i.Rm.info("Drawing state diagram (v2)",b);let{securityLevel:k,state:l,layout:m}=(0,h.D7)();j.db.extract(j.db.getRootDocV2());let n=j.db.getData(),o=(0,d.A)(b,k);n.type=j.type,n.layoutAlgorithm=m,n.nodeSpacing=l?.nodeSpacing||50,n.rankSpacing=l?.rankSpacing||50,"neo"===(0,h.D7)().look?n.markers=["barbNeo"]:n.markers=["barb"],n.diagramId=b,await (0,f.XX)(n,o);try{("function"==typeof j.db.getLinks?j.db.getLinks():new Map).forEach((a,b)=>{let c,d="string"==typeof b?b:"string"==typeof b?.id?b.id:"";if(!d)return void i.Rm.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(b));let e=o.node()?.querySelectorAll("g");if(e?.forEach(a=>{a.textContent?.trim()===d&&(c=a)}),!c)return void i.Rm.warn("⚠️ Could not find node matching text:",d);let f=c.parentNode;if(!f)return void i.Rm.warn("⚠️ Node has no parent, cannot wrap:",d);let g=document.createElementNS("http://www.w3.org/2000/svg","a"),h=a.url.replace(/^"+|"+$/g,"");if(g.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h),g.setAttribute("target","_blank"),a.tooltip){let b=a.tooltip.replace(/^"+|"+$/g,"");g.setAttribute("title",b)}f.replaceChild(g,c),g.appendChild(c),i.Rm.info("\uD83D\uDD17 Wrapped node in <a> tag for:",d,a.url)})}catch(a){i.Rm.error("❌ Error injecting clickable links:",a)}g._K.insertTitle(o,"statediagramTitleText",l?.titleTopMargin??25,j.db.getDiagramTitle()),(0,e.P)(o,8,z,l?.useMaxWidth??!0)},"draw"),getDir:L},N=new Map,O=0;function P(a="",b=0,c="",d=I){let e=null!==c&&c.length>0?`${d}${c}`:"";return`state-${a}${e}-${b}`}(0,i.K2)(P,"stateDomId");var Q=(0,i.K2)((a,b,c,d,e,f,g,j)=>{i.Rm.trace("items",b),b.forEach(b=>{switch(b.stmt){case m:case p:V(a,b,c,d,e,f,g,j);break;case o:{V(a,b.state1,c,d,e,f,g,j),V(a,b.state2,c,d,e,f,g,j);let i="neo"===g,k={id:"edge"+O,start:b.state1.id,end:b.state2.id,arrowhead:"normal",arrowTypeEnd:i?"arrow_barb_neo":"arrow_barb",style:r,labelStyle:"",label:h.Y2.sanitizeText(b.description??"",(0,h.D7)()),arrowheadStyle:s,labelpos:"c",labelType:t,thickness:u,classes:B,look:g};e.push(k),O++}}})},"setupDoc"),R=(0,i.K2)((a,b=l)=>{let c=b;if(a.doc)for(let b of a.doc)"dir"===b.stmt&&(c=b.value);return c},"getDir");function S(a,b,c){if(!b.id||"</join></fork>"===b.id||"</choice>"===b.id)return;b.cssClasses&&(Array.isArray(b.cssCompiledStyles)||(b.cssCompiledStyles=[]),b.cssClasses.split(" ").forEach(a=>{let d=c.get(a);d&&(b.cssCompiledStyles=[...b.cssCompiledStyles??[],...d.styles])}));let d=a.find(a=>a.id===b.id);d?Object.assign(d,b):a.push(b)}function T(a){return a?.classes?.join(" ")??""}function U(a){return a?.styles??[]}(0,i.K2)(S,"insertOrUpdateNode"),(0,i.K2)(T,"getClassesFromDbInfo"),(0,i.K2)(U,"getStylesFromDbInfo");var V=(0,i.K2)((a,b,c,d,e,f,g,j)=>{let k=b.id,l=c.get(k),m=T(l),n=U(l),o=(0,h.D7)();if(i.Rm.info("dataFetcher parsedItem",b,l,n),"root"!==k){let c=v;!0===b.start?c="stateStart":!1===b.start&&(c="stateEnd"),b.type!==p&&(c=b.type),N.get(k)||N.set(k,{id:k,shape:c,description:h.Y2.sanitizeText(k,o),cssClasses:`${m} ${A}`,cssStyles:n});let l=N.get(k);b.description&&(Array.isArray(l.description)?(l.shape=w,l.description.push(b.description)):l.description?.length&&l.description.length>0?(l.shape=w,l.description===k?l.description=[b.description]:l.description=[l.description,b.description]):(l.shape=v,l.description=b.description),l.description=h.Y2.sanitizeTextOrArray(l.description,o)),l.description?.length===1&&l.shape===w&&("group"===l.type?l.shape=y:l.shape=v),!l.type&&b.doc&&(i.Rm.info("Setting cluster for XCX",k,R(b)),l.type="group",l.isGroup=!0,l.dir=R(b),l.shape=b.type===q?x:y,l.cssClasses=`${l.cssClasses} ${E} ${f?F:""}`);let z={labelStyle:"",shape:l.shape,label:l.description,cssClasses:l.cssClasses,cssCompiledStyles:[],cssStyles:l.cssStyles,id:k,dir:l.dir,domId:P(k,O),type:l.type,isGroup:"group"===l.type,padding:8,rx:10,ry:10,look:g,labelType:"markdown"};if(z.shape===x&&(z.label=""),a&&"root"!==a.id&&(i.Rm.trace("Setting node ",k," to be child of its parent ",a.id),z.parentId=a.id),z.centerLabel=!0,b.note){let a={labelStyle:"",shape:"note",label:b.note.text,labelType:"markdown",cssClasses:D,cssStyles:[],cssCompiledStyles:[],id:k+J+"-"+O,domId:P(k,O,H),type:l.type,isGroup:"group"===l.type,padding:o.flowchart?.padding,look:g,position:b.note.position},c=k+K,f={labelStyle:"",shape:"noteGroup",label:b.note.text,cssClasses:l.cssClasses,cssStyles:[],id:k+K,domId:P(k,O,G),type:"group",isGroup:!0,padding:16,look:g,position:b.note.position};O++,f.id=c,a.parentId=c,S(d,f,j),S(d,a,j),S(d,z,j);let h=k,i=a.id;"left of"===b.note.position&&(h=a.id,i=k),e.push({id:h+"-"+i,start:h,end:i,arrowhead:"none",arrowTypeEnd:"",style:r,labelStyle:"",classes:C,arrowheadStyle:s,labelpos:"c",labelType:t,thickness:u,look:g})}else S(d,z,j)}b.doc&&(i.Rm.trace("Adding nodes children "),Q(b,b.doc,c,d,e,!f,g,j))},"dataFetcher"),W=(0,i.K2)(()=>{N.clear(),O=0},"reset"),X={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},Y=(0,i.K2)(()=>new Map,"newClassesList"),Z=(0,i.K2)(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),$=(0,i.K2)(a=>JSON.parse(JSON.stringify(a)),"clone"),_=class{constructor(a){this.version=a,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Y(),this.documents={root:Z()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=h.iN,this.setAccTitle=h.SV,this.getAccDescription=h.m7,this.setAccDescription=h.EI,this.setDiagramTitle=h.ke,this.getDiagramTitle=h.ab,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{(0,i.K2)(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(a){for(let b of(this.clear(!0),Array.isArray(a)?a:a.doc))switch(b.stmt){case m:this.addState(b.id.trim(),b.type,b.doc,b.description,b.note);break;case o:this.addRelation(b.state1,b.state2,b.description);break;case"classDef":this.addStyleClass(b.id.trim(),b.classes);break;case"style":this.handleStyleDef(b);break;case"applyClass":this.setCssClass(b.id.trim(),b.styleClass);break;case"click":this.addLink(b.id,b.url,b.tooltip)}let b=this.getStates(),c=(0,h.D7)();for(let a of(W(),V(void 0,this.getRootDocV2(),b,this.nodes,this.edges,!0,c.look,this.classes),this.nodes))if(Array.isArray(a.label)){if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(a){let b=a.id.trim().split(","),c=a.styleClass.split(",");for(let a of b){let b=this.getState(a);if(!b){let c=a.trim();this.addState(c),b=this.getState(c)}b&&(b.styles=c.map(a=>a.replace(/;/g,"")?.trim()))}}setRootDoc(a){i.Rm.info("Setting root doc",a),this.rootDoc=a,1===this.version?this.extract(a):this.extract(this.getRootDocV2())}docTranslator(a,b,c){if(b.stmt===o){this.docTranslator(a,b.state1,!0),this.docTranslator(a,b.state2,!1);return}if(b.stmt===m&&(b.id===X.START_NODE?(b.id=a.id+(c?"_start":"_end"),b.start=c):b.id=b.id.trim()),b.stmt!==n&&b.stmt!==m||!b.doc)return;let d=[],e=[];for(let a of b.doc)if(a.type===q){let b=$(a);b.doc=$(e),d.push(b),e=[]}else e.push(a);if(d.length>0&&e.length>0){let a={stmt:m,id:(0,g.$C)(),type:"divider",doc:$(e)};d.push($(a)),b.doc=d}b.doc.forEach(a=>this.docTranslator(b,a,!0))}getRootDocV2(){return this.docTranslator({id:n,stmt:n},{id:n,stmt:n,doc:this.rootDoc},!0),{id:n,doc:this.rootDoc}}addState(a,b=p,c,d,e,f,g,j){let k=a?.trim();if(this.currentDocument.states.has(k)){let a=this.currentDocument.states.get(k);if(!a)throw Error(`State not found: ${k}`);a.doc||(a.doc=c),a.type||(a.type=b)}else i.Rm.info("Adding state ",k,d),this.currentDocument.states.set(k,{stmt:m,id:k,descriptions:[],type:b,doc:c,note:e,classes:[],styles:[],textStyles:[]});if(d&&(i.Rm.info("Setting state description",k,d),(Array.isArray(d)?d:[d]).forEach(a=>this.addDescription(k,a.trim()))),e){let a=this.currentDocument.states.get(k);if(!a)throw Error(`State not found: ${k}`);a.note=e,a.note.text=h.Y2.sanitizeText(a.note.text,(0,h.D7)())}f&&(i.Rm.info("Setting state classes",k,f),(Array.isArray(f)?f:[f]).forEach(a=>this.setCssClass(k,a.trim()))),g&&(i.Rm.info("Setting state styles",k,g),(Array.isArray(g)?g:[g]).forEach(a=>this.setStyle(k,a.trim()))),j&&(i.Rm.info("Setting state styles",k,g),(Array.isArray(j)?j:[j]).forEach(a=>this.setTextStyle(k,a.trim())))}clear(a){this.nodes=[],this.edges=[],this.documents={root:Z()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Y(),a||(this.links=new Map,(0,h.IU)())}getState(a){return this.currentDocument.states.get(a)}getStates(){return this.currentDocument.states}logDocuments(){i.Rm.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(a,b,c){this.links.set(a,{url:b,tooltip:c}),i.Rm.warn("Adding link",a,b,c)}getLinks(){return this.links}startIdIfNeeded(a=""){return a===X.START_NODE?(this.startEndCount++,`${X.START_TYPE}${this.startEndCount}`):a}startTypeIfNeeded(a="",b=p){return a===X.START_NODE?X.START_TYPE:b}endIdIfNeeded(a=""){return a===X.END_NODE?(this.startEndCount++,`${X.END_TYPE}${this.startEndCount}`):a}endTypeIfNeeded(a="",b=p){return a===X.END_NODE?X.END_TYPE:b}addRelationObjs(a,b,c=""){let d=this.startIdIfNeeded(a.id.trim()),e=this.startTypeIfNeeded(a.id.trim(),a.type),f=this.startIdIfNeeded(b.id.trim()),g=this.startTypeIfNeeded(b.id.trim(),b.type);this.addState(d,e,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles),this.addState(f,g,b.doc,b.description,b.note,b.classes,b.styles,b.textStyles),this.currentDocument.relations.push({id1:d,id2:f,relationTitle:h.Y2.sanitizeText(c,(0,h.D7)())})}addRelation(a,b,c){if("object"==typeof a&&"object"==typeof b)this.addRelationObjs(a,b,c);else if("string"==typeof a&&"string"==typeof b){let d=this.startIdIfNeeded(a.trim()),e=this.startTypeIfNeeded(a),f=this.endIdIfNeeded(b.trim()),g=this.endTypeIfNeeded(b);this.addState(d,e),this.addState(f,g),this.currentDocument.relations.push({id1:d,id2:f,relationTitle:c?h.Y2.sanitizeText(c,(0,h.D7)()):void 0})}}addDescription(a,b){let c=this.currentDocument.states.get(a),d=b.startsWith(":")?b.replace(":","").trim():b;c?.descriptions?.push(h.Y2.sanitizeText(d,(0,h.D7)()))}cleanupLabel(a){return a.startsWith(":")?a.slice(2).trim():a.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(a,b=""){this.classes.has(a)||this.classes.set(a,{id:a,styles:[],textStyles:[]});let c=this.classes.get(a);b&&c&&b.split(X.STYLECLASS_SEP).forEach(a=>{let b=a.replace(/([^;]*);/,"$1").trim();if(RegExp(X.COLOR_KEYWORD).exec(a)){let a=b.replace(X.FILL_KEYWORD,X.BG_FILL).replace(X.COLOR_KEYWORD,X.FILL_KEYWORD);c.textStyles.push(a)}c.styles.push(b)})}getClasses(){return this.classes}setCssClass(a,b){a.split(",").forEach(a=>{let c=this.getState(a);if(!c){let b=a.trim();this.addState(b),c=this.getState(b)}c?.classes?.push(b)})}setStyle(a,b){this.getState(a)?.styles?.push(b)}setTextStyle(a,b){this.getState(a)?.textStyles?.push(b)}getDirectionStatement(){return this.rootDoc.find(a=>"dir"===a.stmt)}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(a){let b=this.getDirectionStatement();b?b.value=a:this.rootDoc.unshift({stmt:"dir",value:a})}trimColon(a){return a.startsWith(":")?a.slice(1).trim():a.trim()}getData(){let a=(0,h.D7)();return{nodes:this.nodes,edges:this.edges,other:{},config:a,direction:L(this.getRootDocV2())}}getConfig(){return(0,h.D7)().state}},aa=(0,i.K2)(a=>`
2
+ defs [id$="-barbEnd"] {
3
+ fill: ${a.transitionColor};
4
+ stroke: ${a.transitionColor};
5
+ }
6
+ g.stateGroup text {
7
+ fill: ${a.nodeBorder};
8
+ stroke: none;
9
+ font-size: 10px;
10
+ }
11
+ g.stateGroup text {
12
+ fill: ${a.textColor};
13
+ stroke: none;
14
+ font-size: 10px;
15
+
16
+ }
17
+ g.stateGroup .state-title {
18
+ font-weight: bolder;
19
+ fill: ${a.stateLabelColor};
20
+ }
21
+
22
+ g.stateGroup rect {
23
+ fill: ${a.mainBkg};
24
+ stroke: ${a.nodeBorder};
25
+ }
26
+
27
+ g.stateGroup line {
28
+ stroke: ${a.lineColor};
29
+ stroke-width: ${a.strokeWidth||1};
30
+ }
31
+
32
+ .transition {
33
+ stroke: ${a.transitionColor};
34
+ stroke-width: ${a.strokeWidth||1};
35
+ fill: none;
36
+ }
37
+
38
+ .stateGroup .composit {
39
+ fill: ${a.background};
40
+ border-bottom: 1px
41
+ }
42
+
43
+ .stateGroup .alt-composit {
44
+ fill: #e0e0e0;
45
+ border-bottom: 1px
46
+ }
47
+
48
+ .state-note {
49
+ stroke: ${a.noteBorderColor};
50
+ fill: ${a.noteBkgColor};
51
+
52
+ text {
53
+ fill: ${a.noteTextColor};
54
+ stroke: none;
55
+ font-size: 10px;
56
+ }
57
+ }
58
+
59
+ .stateLabel .box {
60
+ stroke: none;
61
+ stroke-width: 0;
62
+ fill: ${a.mainBkg};
63
+ opacity: 0.5;
64
+ }
65
+
66
+ .edgeLabel .label rect {
67
+ fill: ${a.labelBackgroundColor};
68
+ opacity: 0.5;
69
+ }
70
+ .edgeLabel {
71
+ background-color: ${a.edgeLabelBackground};
72
+ p {
73
+ background-color: ${a.edgeLabelBackground};
74
+ }
75
+ rect {
76
+ opacity: 0.5;
77
+ background-color: ${a.edgeLabelBackground};
78
+ fill: ${a.edgeLabelBackground};
79
+ }
80
+ text-align: center;
81
+ }
82
+ .edgeLabel .label text {
83
+ fill: ${a.transitionLabelColor||a.tertiaryTextColor};
84
+ }
85
+ .label div .edgeLabel {
86
+ color: ${a.transitionLabelColor||a.tertiaryTextColor};
87
+ }
88
+
89
+ .stateLabel text {
90
+ fill: ${a.stateLabelColor};
91
+ font-size: 10px;
92
+ font-weight: bold;
93
+ }
94
+
95
+ .node circle.state-start {
96
+ fill: ${a.specialStateColor};
97
+ stroke: ${a.specialStateColor};
98
+ }
99
+
100
+ .node .fork-join {
101
+ fill: ${a.specialStateColor};
102
+ stroke: ${a.specialStateColor};
103
+ }
104
+
105
+ .node circle.state-end {
106
+ fill: ${a.innerEndBackground};
107
+ stroke: ${a.background};
108
+ stroke-width: 1.5
109
+ }
110
+ .end-state-inner {
111
+ fill: ${a.compositeBackground||a.background};
112
+ // stroke: ${a.background};
113
+ stroke-width: 1.5
114
+ }
115
+
116
+ .node rect {
117
+ fill: ${a.stateBkg||a.mainBkg};
118
+ stroke: ${a.stateBorder||a.nodeBorder};
119
+ stroke-width: ${a.strokeWidth||1}px;
120
+ }
121
+ .node polygon {
122
+ fill: ${a.mainBkg};
123
+ stroke: ${a.stateBorder||a.nodeBorder};;
124
+ stroke-width: ${a.strokeWidth||1}px;
125
+ }
126
+ [id$="-barbEnd"] {
127
+ fill: ${a.lineColor};
128
+ }
129
+
130
+ .statediagram-cluster rect {
131
+ fill: ${a.compositeTitleBackground};
132
+ stroke: ${a.stateBorder||a.nodeBorder};
133
+ stroke-width: ${a.strokeWidth||1}px;
134
+ }
135
+
136
+ .cluster-label, .nodeLabel {
137
+ color: ${a.stateLabelColor};
138
+ // line-height: 1;
139
+ }
140
+
141
+ .statediagram-cluster rect.outer {
142
+ rx: 5px;
143
+ ry: 5px;
144
+ }
145
+ .statediagram-state .divider {
146
+ stroke: ${a.stateBorder||a.nodeBorder};
147
+ }
148
+
149
+ .statediagram-state .title-state {
150
+ rx: 5px;
151
+ ry: 5px;
152
+ }
153
+ .statediagram-cluster.statediagram-cluster .inner {
154
+ fill: ${a.compositeBackground||a.background};
155
+ }
156
+ .statediagram-cluster.statediagram-cluster-alt .inner {
157
+ fill: ${a.altBackground?a.altBackground:"#efefef"};
158
+ }
159
+
160
+ .statediagram-cluster .inner {
161
+ rx:0;
162
+ ry:0;
163
+ }
164
+
165
+ .statediagram-state rect.basic {
166
+ rx: 5px;
167
+ ry: 5px;
168
+ }
169
+ .statediagram-state rect.divider {
170
+ stroke-dasharray: 10,10;
171
+ fill: ${a.altBackground?a.altBackground:"#efefef"};
172
+ }
173
+
174
+ .note-edge {
175
+ stroke-dasharray: 5;
176
+ }
177
+
178
+ .statediagram-note rect {
179
+ fill: ${a.noteBkgColor};
180
+ stroke: ${a.noteBorderColor};
181
+ stroke-width: 1px;
182
+ rx: 0;
183
+ ry: 0;
184
+ }
185
+ .statediagram-note rect {
186
+ fill: ${a.noteBkgColor};
187
+ stroke: ${a.noteBorderColor};
188
+ stroke-width: 1px;
189
+ rx: 0;
190
+ ry: 0;
191
+ }
192
+
193
+ .statediagram-note text {
194
+ fill: ${a.noteTextColor};
195
+ }
196
+
197
+ .statediagram-note .nodeLabel {
198
+ color: ${a.noteTextColor};
199
+ }
200
+ .statediagram .edgeLabel {
201
+ color: red; // ${a.noteTextColor};
202
+ }
203
+
204
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
205
+ fill: ${a.lineColor};
206
+ stroke: ${a.lineColor};
207
+ stroke-width: ${a.strokeWidth||1};
208
+ }
209
+
210
+ .statediagramTitleText {
211
+ text-anchor: middle;
212
+ font-size: 18px;
213
+ fill: ${a.textColor};
214
+ }
215
+
216
+ [data-look="neo"].statediagram-cluster rect {
217
+ fill: ${a.mainBkg};
218
+ stroke: ${a.useGradient?"url("+a.svgId+"-gradient)":a.stateBorder||a.nodeBorder};
219
+ stroke-width: ${a.strokeWidth??1};
220
+ }
221
+ [data-look="neo"].statediagram-cluster rect.outer {
222
+ rx: ${a.radius}px;
223
+ ry: ${a.radius}px;
224
+ filter: ${a.dropShadow?a.dropShadow.replace("url(#drop-shadow)",`url(${a.svgId}-drop-shadow)`):"none"}
225
+ }
226
+ `,"getStyles")},21460:(a,b,c)=>{c.d(b,{P:()=>f});var d=c(10340),e=c(57440),f=(0,e.K2)((a,b,c,f)=>{a.attr("class",c);let{width:i,height:j,x:k,y:l}=g(a,b);(0,d.a$)(a,j,i,f);let m=h(k,l,i,j,b);a.attr("viewBox",m),e.Rm.debug(`viewBox configured: ${m} with padding: ${b}`)},"setupViewPortForSVG"),g=(0,e.K2)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),h=(0,e.K2)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox")},35836:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(57440),e=c(31314),f=(0,d.K2)((a,b)=>{let c;return"sandbox"===b&&(c=(0,e.Ltv)("#i"+a)),("sandbox"===b?(0,e.Ltv)(c.nodes()[0].contentDocument.body):(0,e.Ltv)("body")).select(`[id="${a}"]`)},"getDiagramElement")}};