@turmind/halo 2.1.1 → 2.1.2

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 (148) hide show
  1. package/admin-out/404.html +1 -1
  2. package/admin-out/_next/static/{0cRHmPZfENhrU7Hb0w3n_ → 1yjkA6O2OJ9CQ1XyyoazM}/_buildManifest.js +1 -1
  3. package/admin-out/_next/static/chunks/0.700b96fc96b80936.js +1 -0
  4. package/admin-out/_next/static/chunks/1160.e199e2decb964814.js +1 -0
  5. package/admin-out/_next/static/chunks/1208.0d86b06cbdf8a97e.js +38 -0
  6. package/admin-out/_next/static/chunks/1299.9ae1e73c8ca9cc34.js +23 -0
  7. package/admin-out/_next/static/chunks/1336.3eb7654fcfae2a58.js +1 -0
  8. package/admin-out/_next/static/chunks/1494.56493f36b01d2bda.js +1 -0
  9. package/admin-out/_next/static/chunks/1522.7d80e505c25fc865.js +1 -0
  10. package/admin-out/_next/static/chunks/1650.78e7ab21cb8bbb48.js +62 -0
  11. package/admin-out/_next/static/chunks/1690.20f8661b1877aa3d.js +1 -0
  12. package/admin-out/_next/static/chunks/1807.764b0338b13846a5.js +1 -0
  13. package/admin-out/_next/static/chunks/1989-669da2a252898797.js +1 -0
  14. package/admin-out/_next/static/chunks/199.fca450ee70f089fb.js +1 -0
  15. package/admin-out/_next/static/chunks/1b86ba38-4193816aebc732b9.js +1 -0
  16. package/admin-out/_next/static/chunks/{1d2d5650-d8d130c85727fdbb.js → 1d2d5650-c677408087984c7a.js} +1 -1
  17. package/admin-out/_next/static/chunks/2202.59a95bacad0d8c25.js +1 -0
  18. package/admin-out/_next/static/chunks/2204.93c869dacb19e384.js +1 -0
  19. package/admin-out/_next/static/chunks/2329.2f32de914b104261.js +148 -0
  20. package/admin-out/_next/static/chunks/2449.53d632fa8e412643.js +1 -0
  21. package/admin-out/_next/static/chunks/2477.79f2f92780311a37.js +94 -0
  22. package/admin-out/_next/static/chunks/2555.279979b7abe9d67f.js +104 -0
  23. package/admin-out/_next/static/chunks/2612.427656205dd7d7cc.js +1 -0
  24. package/admin-out/_next/static/chunks/2938.1555d68665415ace.js +1 -0
  25. package/admin-out/_next/static/chunks/295.0ef9b18be46f06e5.js +1 -0
  26. package/admin-out/_next/static/chunks/2979.d5a2293e776ec5de.js +1 -0
  27. package/admin-out/_next/static/chunks/3023.8f2b6311aae80029.js +36 -0
  28. package/admin-out/_next/static/chunks/3047.a49ae982be1f9fd4.js +226 -0
  29. package/admin-out/_next/static/chunks/304eda7d.2c6ab1276b03c10a.js +1 -0
  30. package/admin-out/_next/static/chunks/3483.cb8f5ba28c565e7f.js +1 -0
  31. package/admin-out/_next/static/chunks/391.71124432b84c926d.js +24 -0
  32. package/admin-out/_next/static/chunks/3986.a6181916d2c44515.js +1 -0
  33. package/admin-out/_next/static/chunks/4120.c271dfe3e1bc082e.js +1 -0
  34. package/admin-out/_next/static/chunks/4267.030877aaeac1bd71.js +1 -0
  35. package/admin-out/_next/static/chunks/4362.9d2ee4f9b6facc49.js +1 -0
  36. package/admin-out/_next/static/chunks/43ad6dab.4911ea318c123311.js +62 -0
  37. package/admin-out/_next/static/chunks/4480-6ceca99203a95c0e.js +1 -0
  38. package/admin-out/_next/static/chunks/4613.0985db499409cf22.js +1 -0
  39. package/admin-out/_next/static/chunks/4794.ba746110cfcbf536.js +1 -0
  40. package/admin-out/_next/static/chunks/4808.1cbe5b52fa01fc3d.js +1 -0
  41. package/admin-out/_next/static/chunks/4ec056c8.fe288ac8bd38a73b.js +160 -0
  42. package/admin-out/_next/static/chunks/5056.a87b1e056ba592b1.js +32 -0
  43. package/admin-out/_next/static/chunks/5058.8514aa6d6a947cce.js +1 -0
  44. package/admin-out/_next/static/chunks/545.e760052f10d36a9b.js +1 -0
  45. package/admin-out/_next/static/chunks/{510.e6c6faeb60ef3c33.js → 5510.f3889206b5768b33.js} +1 -1
  46. package/admin-out/_next/static/chunks/5593.d4c5f6a0862b4c6c.js +34 -0
  47. package/admin-out/_next/static/chunks/5700.4189184227fcf178.js +1 -0
  48. package/admin-out/_next/static/chunks/5741.dd7360163a2374cf.js +8 -0
  49. package/admin-out/_next/static/chunks/5850.b58c01f1e835d335.js +1 -0
  50. package/admin-out/_next/static/chunks/6066.1571d105977d528c.js +86 -0
  51. package/admin-out/_next/static/chunks/61527465.ae14a459dbfc381c.js +1 -0
  52. package/admin-out/_next/static/chunks/6203.672c38fcc2748c83.js +1 -0
  53. package/admin-out/_next/static/chunks/6390.4de9361c493b8d29.js +27 -0
  54. package/admin-out/_next/static/chunks/63c91ae9.ed896f9d6d01dfd4.js +1 -0
  55. package/admin-out/_next/static/chunks/6476.c7ec7d60350855c8.js +1 -0
  56. package/admin-out/_next/static/chunks/6574.30661d21e54bb004.js +1 -0
  57. package/admin-out/_next/static/chunks/6694.91c424de10ee2a24.js +79 -0
  58. package/admin-out/_next/static/chunks/6927.7f60d259473bb56a.js +193 -0
  59. package/admin-out/_next/static/chunks/7073.9d5f9dd7a77827b7.js +1 -0
  60. package/admin-out/_next/static/chunks/7250.a005173b9af23f14.js +1 -0
  61. package/admin-out/_next/static/chunks/7267.09e9b83beadc4847.js +1 -0
  62. package/admin-out/_next/static/chunks/72d2e465.c6751b76f1fa1cb3.js +1 -0
  63. package/admin-out/_next/static/chunks/7423.ce958b2d6a455a2f.js +1 -0
  64. package/admin-out/_next/static/chunks/7443.ee6684ba397e49da.js +41 -0
  65. package/admin-out/_next/static/chunks/7482.7f6f11637c008b77.js +1 -0
  66. package/admin-out/_next/static/chunks/7498.621ff3bc139607ad.js +1 -0
  67. package/admin-out/_next/static/chunks/7573.7f7f2a6fe7891e68.js +1 -0
  68. package/admin-out/_next/static/chunks/7613.fe24922a6a839656.js +1 -0
  69. package/admin-out/_next/static/chunks/7796.052a2a69f9bc0471.js +287 -0
  70. package/admin-out/_next/static/chunks/8148.156aea8f2a9ce398.js +115 -0
  71. package/admin-out/_next/static/chunks/8300.6c86a2236d42618f.js +64 -0
  72. package/admin-out/_next/static/chunks/8555.2e8d51736bfefd63.js +1 -0
  73. package/admin-out/_next/static/chunks/8558.baa0cf80a6964d20.js +286 -0
  74. package/admin-out/_next/static/chunks/8608.dba2a172fa47a740.js +77 -0
  75. package/admin-out/_next/static/chunks/8680.ed502a4a22357230.js +92 -0
  76. package/admin-out/_next/static/chunks/8698.28ca7821a30dba63.js +1 -0
  77. package/admin-out/_next/static/chunks/8712.e587efd8a6256aa9.js +1 -0
  78. package/admin-out/_next/static/chunks/8771.53592f31c08edafa.js +309 -0
  79. package/admin-out/_next/static/chunks/8878.330238d3d9f33faf.js +1 -0
  80. package/admin-out/_next/static/chunks/8892.9df3095f6c52e734.js +1 -0
  81. package/admin-out/_next/static/chunks/9104.6d57df418831714a.js +74 -0
  82. package/admin-out/_next/static/chunks/9121.574e833259fe9085.js +1 -0
  83. package/admin-out/_next/static/chunks/9142.0aac6a6c8e06bcaa.js +149 -0
  84. package/admin-out/_next/static/chunks/9180.3c809798364a0c62.js +1 -0
  85. package/admin-out/_next/static/chunks/92.788f49cdb265a668.js +217 -0
  86. package/admin-out/_next/static/chunks/9590.3e1a4754a7e66e84.js +93 -0
  87. package/admin-out/_next/static/chunks/9599.b2fd519c8a2951c9.js +1 -0
  88. package/admin-out/_next/static/chunks/9698-0157e7ac70c3f9fc.js +1 -0
  89. package/admin-out/_next/static/chunks/9837.92abff094b289f98.js +1 -0
  90. package/admin-out/_next/static/chunks/9839.73433bbeec6e1a51.js +1 -0
  91. package/admin-out/_next/static/chunks/9868.dcc9fd5f0041ffa8.js +1 -0
  92. package/admin-out/_next/static/chunks/9937.cff3c28655b07c61.js +24 -0
  93. package/admin-out/_next/static/chunks/a89fe872.304b3efb308b10a1.js +122 -0
  94. package/admin-out/_next/static/chunks/app/_not-found/page-e21cd35ca818a886.js +1 -0
  95. package/admin-out/_next/static/chunks/app/layout-0ed29966e0abc26b.js +1 -0
  96. package/admin-out/_next/static/chunks/app/page-30279944f9000c87.js +1 -0
  97. package/admin-out/_next/static/chunks/bf5d185f.735c9f3d05199f97.js +1 -0
  98. package/admin-out/_next/static/chunks/db534642.8e8a9023cd90863d.js +1 -0
  99. package/admin-out/_next/static/chunks/fcb912be.a7d93c5f2dd72e30.js +66 -0
  100. package/admin-out/_next/static/chunks/framework-98918e2142cd6d06.js +1 -0
  101. package/admin-out/_next/static/chunks/main-93c216652d4113b1.js +1 -0
  102. package/admin-out/_next/static/chunks/main-app-5e981adb363c52e5.js +1 -0
  103. package/admin-out/_next/static/chunks/pages/{_app-a3b7e86f97343e7a.js → _app-6fab9bb03f9f4fdf.js} +1 -1
  104. package/admin-out/_next/static/chunks/pages/_error-ada6d7affab6ebcc.js +1 -0
  105. package/admin-out/_next/static/chunks/webpack-7f8156dbbdb54868.js +1 -0
  106. package/admin-out/_next/static/css/46c83727621f8763.css +1 -0
  107. package/admin-out/index.html +1 -1
  108. package/admin-out/index.txt +5 -5
  109. package/bundled-docs/design/architecture.md +1 -1
  110. package/bundled-docs/design/storage.md +2 -2
  111. package/bundled-docs/guide/chat.md +1 -0
  112. package/bundled-docs/guide/workspace.md +1 -1
  113. package/bundled-docs/requirements/chat.md +1 -0
  114. package/bundled-docs/requirements/editor.md +1 -1
  115. package/bundled-docs/requirements/explorer.md +2 -0
  116. package/bundled-docs/requirements/source-control.md +2 -0
  117. package/dist/index.js +8 -8
  118. package/package.json +1 -1
  119. package/templates/models/aws-bedrock-claude-invoke.yaml +3 -3
  120. package/admin-out/_next/static/chunks/160.c52d3d6cf7bc8286.js +0 -1
  121. package/admin-out/_next/static/chunks/1b86ba38-c29611e086b2ce25.js +0 -1
  122. package/admin-out/_next/static/chunks/250.9094fea2325b09a3.js +0 -1
  123. package/admin-out/_next/static/chunks/304eda7d.f525962766560ba5.js +0 -1
  124. package/admin-out/_next/static/chunks/336.3171154ecc29c80a.js +0 -1
  125. package/admin-out/_next/static/chunks/362.a0c58d3bf9b1300b.js +0 -1
  126. package/admin-out/_next/static/chunks/398-9a8be186767b4504.js +0 -1
  127. package/admin-out/_next/static/chunks/449.c4b881b9ebdc556e.js +0 -1
  128. package/admin-out/_next/static/chunks/522.9e25c63e3082cb1c.js +0 -1
  129. package/admin-out/_next/static/chunks/58.d26b1c4f14404226.js +0 -1
  130. package/admin-out/_next/static/chunks/613.fb09e55e0a61d3fe.js +0 -1
  131. package/admin-out/_next/static/chunks/690.6a83d18b488a3e2e.js +0 -1
  132. package/admin-out/_next/static/chunks/698-19872069fed27164.js +0 -1
  133. package/admin-out/_next/static/chunks/73.05abce37d312e880.js +0 -1
  134. package/admin-out/_next/static/chunks/839.a2729fd33013d763.js +0 -1
  135. package/admin-out/_next/static/chunks/868.bbb91afd48c9eb58.js +0 -1
  136. package/admin-out/_next/static/chunks/892.a35118e09d8d8efd.js +0 -1
  137. package/admin-out/_next/static/chunks/989-71c38d29c6672b27.js +0 -1
  138. package/admin-out/_next/static/chunks/app/_not-found/page-4271518f2746cf73.js +0 -1
  139. package/admin-out/_next/static/chunks/app/layout-ea161287d934ba96.js +0 -1
  140. package/admin-out/_next/static/chunks/app/page-67334fcd2175c7ad.js +0 -1
  141. package/admin-out/_next/static/chunks/db534642.657a5bd93dc1e8c7.js +0 -1
  142. package/admin-out/_next/static/chunks/framework-c48c994d2190a38e.js +0 -1
  143. package/admin-out/_next/static/chunks/main-app-340a5b58ed229c4d.js +0 -1
  144. package/admin-out/_next/static/chunks/main-f1f665fbc24e1033.js +0 -1
  145. package/admin-out/_next/static/chunks/pages/_error-751fca0c729a7e01.js +0 -1
  146. package/admin-out/_next/static/chunks/webpack-662d2cae1104f635.js +0 -1
  147. package/admin-out/_next/static/css/3467b854242306b8.css +0 -1
  148. /package/admin-out/_next/static/{0cRHmPZfENhrU7Hb0w3n_ → 1yjkA6O2OJ9CQ1XyyoazM}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6476],{76476:(e,s,c)=>{c.d(s,{createCynefinServices:()=>a.t});var a=c(54216);c(42172)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6574],{66574:(e,t,r)=>{r.r(t),r.d(t,{applyDagreLayoutResult:()=>rQ,getEdgesToRender:()=>rz,measureDagreLayout:()=>r2,prepareLayoutForDagre:()=>r1,render:()=>r5,runDagreLayoutCore:()=>r3});var n,o=r(79180),a=r(53652),i=r(77351),u=r(94712),d=r(73823);r(39020),r(7322),r(52361),r(55490),r(27058);var c=r(92826),s=r(58442),f=r(88252),l=r(28586),g=r(72508),h=0;let p=function(e){var t=++h;return(0,g.A)(e)+t};var v=r(20940),y=r(38482);let b=function(e){return(null==e?0:e.length)?(0,y.A)(e,1):[]};var A=r(80996),w=r(58009),m=r(44319),x=r(10970);let E=function(e,t){var r=-1,n=(0,x.A)(e)?Array(e.length):[];return(0,m.A)(e,function(e,o,a){n[++r]=t(e,o,a)}),n};var j=r(16853);let L=function(e,t){return((0,j.A)(e)?A.A:E)(e,(0,w.A)(t,3))};var k=Math.ceil,O=Math.max;let R=function(e,t,r,n){for(var o=-1,a=O(k((t-e)/(r||1)),0),i=Array(a);a--;)i[n?a:++o]=e,e+=r;return i};var N=r(66954),P=r(40243),_=r(28623);let C=function(e,t,r){if(!(0,_.A)(r))return!1;var n=typeof t;return("number"==n?!!((0,x.A)(r)&&(0,P.A)(t,r.length)):"string"==n&&t in r)&&(0,N.A)(r[t],e)};var S=/\s/;let M=function(e){for(var t=e.length;t--&&S.test(e.charAt(t)););return t};var X=/^\s+/,D=r(87696),T=0/0,I=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,K=/^0o[0-7]+$/i,G=parseInt;let F=function(e){if("number"==typeof e)return e;if((0,D.A)(e))return T;if((0,_.A)(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,_.A)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,M(t)+1).replace(X,""):t;var n=B.test(e);return n||K.test(e)?G(e.slice(2),n?2:8):I.test(e)?T:+e};var U=1/0;let q=function(e){return e?(e=F(e))===U||e===-U?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0},J=function(e,t,r){return r&&"number"!=typeof r&&C(e,t,r)&&(t=r=void 0),e=q(e),void 0===t?(t=e,e=0):t=q(t),r=void 0===r?e<t?1:-1:q(r),R(e,t,r,void 0)};var z=r(34267);class V{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return Y(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&Y(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,r=t._prev;r!==t;)e.push(JSON.stringify(r,$)),r=r._prev;return"["+e.join(", ")+"]"}}function Y(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function $(e,t){if("_next"!==e&&"_prev"!==e)return t}var H=v.A(1);function W(e,t,r,n,o){var a=o?[]:void 0;return l.A(e.inEdges(n.v),function(n){var i=e.edge(n),u=e.node(n.v);o&&a.push({v:n.v,w:n.w}),u.out-=i,Q(t,r,u)}),l.A(e.outEdges(n.v),function(n){var o=e.edge(n),a=n.w,i=e.node(a);i.in-=o,Q(t,r,i)}),e.removeNode(n.v),a}function Q(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var Z=r(81014),ee=r(92447);let et=function(e,t,r){"__proto__"==t&&ee.A?(0,ee.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},er=function(e,t,r){(void 0===r||(0,N.A)(e[t],r))&&(void 0!==r||t in e)||et(e,t,r)};var en=r(27523),eo=r(25081),ea="object"==typeof exports&&exports&&!exports.nodeType&&exports,ei=ea&&"object"==typeof module&&module&&!module.nodeType&&module,eu=ei&&ei.exports===ea?eo.A.Buffer:void 0,ed=eu?eu.allocUnsafe:void 0;let ec=function(e,t){if(t)return e.slice();var r=e.length,n=ed?ed(r):new e.constructor(r);return e.copy(n),n};var es=r(49696);let ef=function(e){var t=new e.constructor(e.byteLength);return new es.A(t).set(new es.A(e)),t},el=function(e,t){var r=t?ef(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},eg=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var eh=Object.create,ep=function(){function e(){}return function(t){if(!(0,_.A)(t))return{};if(eh)return eh(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),ev=(0,r(91365).A)(Object.getPrototypeOf,Object),ey=r(95733);let eb=function(e){return"function"!=typeof e.constructor||(0,ey.A)(e)?{}:ep(ev(e))};var eA=r(96584),ew=r(72745),em=r(62649),ex=r(96260),eE=r(6633),ej=r(35288),eL=Object.prototype,ek=Function.prototype.toString,eO=eL.hasOwnProperty,eR=ek.call(Object);let eN=function(e){if(!(0,ej.A)(e)||"[object Object]"!=(0,eE.A)(e))return!1;var t=ev(e);if(null===t)return!0;var r=eO.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ek.call(r)==eR};var eP=r(63865);let e_=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var eC=Object.prototype.hasOwnProperty;let eS=function(e,t,r){var n=e[t];eC.call(e,t)&&(0,N.A)(n,r)&&(void 0!==r||t in e)||et(e,t,r)},eM=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var u=t[a],d=n?n(r[u],e[u],u,r,e):void 0;void 0===d&&(d=e[u]),o?et(r,u,d):eS(r,u,d)}return r};var eX=r(68984);let eD=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var eT=Object.prototype.hasOwnProperty;let eI=function(e){if(!(0,_.A)(e))return eD(e);var t=(0,ey.A)(e),r=[];for(var n in e)"constructor"==n&&(t||!eT.call(e,n))||r.push(n);return r},eB=function(e){return(0,x.A)(e)?(0,eX.A)(e,!0):eI(e)},eK=function(e,t,r,n,o,a,i){var u=e_(e,r),d=e_(t,r),c=i.get(d);if(c)return void er(e,r,c);var s=a?a(u,d,r+"",e,t,i):void 0,f=void 0===s;if(f){var l=(0,j.A)(d),g=!l&&(0,em.A)(d),h=!l&&!g&&(0,eP.A)(d);(s=d,l||g||h)?(0,j.A)(u)?s=u:(0,ew.A)(u)?s=eg(u):g?(f=!1,s=ec(d,!0)):h?(f=!1,s=el(d,!0)):s=[]:eN(d)||(0,eA.A)(d)?(s=u,(0,eA.A)(u))?s=eM(u,eB(u)):(!(0,_.A)(u)||(0,ex.A)(u))&&(s=eb(d)):f=!1}f&&(i.set(d,s),o(s,d,n,a,i),i.delete(d)),er(e,r,s)},eG=function e(t,r,n,o,a){t!==r&&(0,en.A)(r,function(i,u){if(a||(a=new Z.A),(0,_.A)(i))eK(t,r,u,n,e,o,a);else{var d=o?o(e_(t,u),i,u+"",t,r,a):void 0;void 0===d&&(d=i),er(t,u,d)}},eB)};var eF=r(77006),eU=function(e){return(0,eF.A)(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&C(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var u=r[n];u&&e(t,u,n,a)}return t})}(function(e,t,r){eG(e,t,r)}),eq=r(35320),eJ=r(15586),ez=r(92843);let eV=function(e,t,r,n){if(!(0,_.A)(e))return e;t=(0,eJ.A)(t,e);for(var o=-1,a=t.length,i=a-1,u=e;null!=u&&++o<a;){var d=(0,ez.A)(t[o]),c=r;if("__proto__"===d||"constructor"===d||"prototype"===d)break;if(o!=i){var s=u[d];void 0===(c=n?n(s,d,u):void 0)&&(c=(0,_.A)(s)?s:(0,P.A)(t[o+1])?[]:{})}eS(u,d,c),u=u[d]}return e},eY=function(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],u=(0,eq.A)(e,i);r(u,i)&&eV(a,(0,eJ.A)(i,e),u)}return a};var e$=r(72430),eH=r(41319),eW=r(87663),eQ=function(e){return(0,eW.A)((0,eH.A)(e,void 0,b),e+"")}(function(e,t){return null==e?{}:eY(e,t,function(t,r){return(0,e$.A)(e,r)})}),eZ=Object.prototype,e0=eZ.hasOwnProperty,e1=(0,eF.A)(function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&C(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=eB(a),u=-1,d=i.length;++u<d;){var c=i[u],s=e[c];(void 0===s||(0,N.A)(s,eZ[c])&&!e0.call(e,c))&&(e[c]=a[c])}return e});let e2=function(e,t,r){for(var n=-1,o=e.length;++n<o;){var a=e[n],i=t(a);if(null!=i&&(void 0===u?i==i&&!(0,D.A)(i):r(i,u)))var u=i,d=a}return d},e3=function(e,t){return e>t};var e8=r(63198);let e6=function(e){return e&&e.length?e2(e,e8.A,e3):void 0},e5=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var e4=r(5809);let e7=function(e,t){var r={};return t=(0,w.A)(t,3),(0,e4.A)(e,function(e,n,o){et(r,n,t(e,n,o))}),r};var e9=r(80076);let te=function(e,t){return e<t},tt=function(e){return e&&e.length?e2(e,e8.A,te):void 0};var tr=Object.prototype.hasOwnProperty;let tn=function(e,t){return null!=e&&tr.call(e,t)};var to=r(93512);let ta=function(e,t){return null!=e&&(0,to.A)(e,t,tn)};function ti(e,t,r,n){var o;do o=p(n);while(e.hasNode(o));return r.dummy=t,e.setNode(o,r),o}function tu(e){var t=new z.T({multigraph:e.isMultigraph()}).setGraph(e.graph());return l.A(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),l.A(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function td(e,t){var r,n,o=e.x,a=e.y,i=t.x-o,u=t.y-a,d=e.width/2,c=e.height/2;if(!i&&!u)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(u)*d>Math.abs(i)*c?(u<0&&(c=-c),r=c*i/u,n=c):(i<0&&(d=-d),r=d,n=d*u/i),{x:o+r,y:a+n}}function tc(e){var t=L(J(tf(e)+1),function(){return[]});return l.A(e.nodes(),function(r){var n=e.node(r),o=n.rank;e9.A(o)||(t[o][n.order]=r)}),t}function ts(e,t,r,n){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),ti(e,"border",o,t)}function tf(e){return e6(L(e.nodes(),function(t){var r=e.node(t).rank;if(!e9.A(r))return r}))}function tl(e,t){return t()}function tg(e,t,r,n,o,a){var i=o[t][a-1],u=ti(e,"border",{width:0,height:0,rank:a,borderType:t},r);o[t][a]=u,e.setParent(u,n),i&&e.setEdge(i,u,{weight:1})}function th(e){l.A(e.nodes(),function(t){tp(e.node(t))}),l.A(e.edges(),function(t){tp(e.edge(t))})}function tp(e){var t=e.width;e.width=e.height,e.height=t}function tv(e){e.y=-e.y}function ty(e){var t=e.x;e.x=e.y,e.y=t}let tb=function(e,t){return e&&e.length?e2(e,(0,w.A)(t,2),te):void 0};function tA(e){var t={};l.A(e.sources(),function r(n){var o=e.node(n);if(Object.prototype.hasOwnProperty.call(t,n))return o.rank;t[n]=!0;var a=tt(L(e.outEdges(n),function(t){return r(t.w)-e.edge(t).minlen}));return(a===1/0||null==a)&&(a=0),o.rank=a})}function tw(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function tm(e){var t,r,n,o,a=new z.T({directed:!1}),i=e.nodes()[0],u=e.nodeCount();for(a.setNode(i,{});t=a,r=e,l.A(t.nodes(),function e(n){l.A(r.nodeEdges(n),function(o){var a=o.v,i=n===a?o.w:a;t.hasNode(i)||tw(r,o)||(t.setNode(i,{}),t.setEdge(n,i,{}),e(i))})}),t.nodeCount()<u;)n=function(e,t){return tb(t.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return tw(t,r)})}(a,e),o=a.hasNode(n.v)?tw(e,n):-tw(e,n),function(e,t,r){l.A(e.nodes(),function(e){t.node(e).rank+=r})}(a,e,o);return a}var tx=r(72304),tE=r(29697);let tj=function(e){var t=q(e),r=t%1;return t==t?r?t-r:t:0};var tL=Math.max,tk=(n=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var o=null==r?0:tj(r);return o<0&&(o=tL(n+o,0)),(0,tE.A)(e,(0,w.A)(t,3),o)},function(e,t,r){var o=Object(e);if(!(0,x.A)(e)){var a=(0,w.A)(t,3);e=(0,tx.A)(e),t=function(e){return a(o[e],e,o)}}var i=n(e,t,r);return i>-1?o[a?e[i]:i]:void 0}),tO=r(34854);v.A(1),v.A(1);var tR=r(30707),tN=r(58176),tP=(0,r(50773).A)("length"),t_=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),tC="\ud800-\udfff",tS="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",tM="\ud83c[\udffb-\udfff]",tX="[^"+tC+"]",tD="(?:\ud83c[\udde6-\uddff]){2}",tT="[\ud800-\udbff][\udc00-\udfff]",tI="(?:"+tS+"|"+tM+")?",tB="[\\ufe0e\\ufe0f]?",tK="(?:\\u200d(?:"+[tX,tD,tT].join("|")+")"+tB+tI+")*",tG=RegExp(tM+"(?="+tM+")|"+("(?:"+[tX+tS+"?",tS,tD,tT,"["+tC+"]"].join("|"))+")"+(tB+tI+tK),"g");function tF(){}function tU(e,t,r){j.A(t)||(t=[t]);var n=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],a={};return l.A(t,function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);!function e(t,r,n,o,a,i){!Object.prototype.hasOwnProperty.call(o,r)&&(o[r]=!0,n||i.push(r),l.A(a(r),function(r){e(t,r,n,o,a,i)}),n&&i.push(r))}(e,t,"post"===r,a,n,o)}),o}function tq(e){t=e,r=new z.T().setGraph(t.graph()),l.A(t.nodes(),function(e){r.setNode(e,t.node(e))}),l.A(t.edges(),function(e){var n=r.edge(e.v,e.w)||{weight:0,minlen:1},o=t.edge(e);r.setEdge(e.v,e.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})}),tA(e=r);var t,r,n,o,a=tm(e);for(tV(a),tJ(a,e);n=tY(a);)o=t$(a,e,n),tH(a,e,n,o)}function tJ(e,t){var r=tU(e,e.nodes(),"post");r=r.slice(0,r.length-1),l.A(r,function(r){var n,o,a,i;n=e,o=t,a=r,i=n.node(a).parent,n.edge(a,i).cutvalue=tz(n,o,a)})}function tz(e,t,r){var n=e.node(r).parent,o=!0,a=t.edge(r,n),i=0;return a||(o=!1,a=t.edge(n,r)),i=a.weight,l.A(t.nodeEdges(r),function(a){var u=a.v===r,d=u?a.w:a.v;if(d!==n){var c,s,f,l=u===o,g=t.edge(a).weight;if(i+=l?g:-g,c=e,s=r,f=d,c.hasEdge(s,f)){var h=e.edge(r,d).cutvalue;i+=l?-h:h}}}),i}function tV(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,r,n,o,a){var i=n,u=t.node(o);return r[o]=!0,l.A(t.neighbors(o),function(a){Object.prototype.hasOwnProperty.call(r,a)||(n=e(t,r,n,a,o))}),u.low=i,u.lim=n++,a?u.parent=a:delete u.parent,n}(e,{},1,t)}function tY(e){return tk(e.edges(),function(t){return e.edge(t).cutvalue<0})}function t$(e,t,r){var n=r.v,o=r.w;t.hasEdge(n,o)||(n=r.w,o=r.v);var a=e.node(n),i=e.node(o),u=a,d=!1;return a.lim>i.lim&&(u=i,d=!0),tb(tO.A(t.edges(),function(t){return d===tW(e,e.node(t.v),u)&&d!==tW(e,e.node(t.w),u)}),function(e){return tw(t,e)})}function tH(e,t,r,n){var o,a,i,u,d=r.v,c=r.w;e.removeEdge(d,c),e.setEdge(n.v,n.w,{}),tV(e),tJ(e,t),o=e,a=t,i=tk(o.nodes(),function(e){return!a.node(e).parent}),u=(u=tU(o,i,"pre")).slice(1),l.A(u,function(e){var t=o.node(e).parent,r=a.edge(e,t),n=!1;r||(r=a.edge(t,e),n=!0),a.node(e).rank=a.node(t).rank+(n?r.minlen:-r.minlen)})}function tW(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}tF.prototype=Error(),r(5734),tq.initLowLimValues=tV,tq.initCutValues=tJ,tq.calcCutValue=tz,tq.leaveEdge=tY,tq.enterEdge=t$,tq.exchangeEdges=tH;var tQ=r(58356),tZ=r(24088),t0=r(16399),t1=r(37948),t2=r(49206),t3=r(18821),t8=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,t2.A)(t,(0,t1.A)(e)),e=ev(e);return t}:t3.A,t6=r(82554),t5=r(13959);let t4=function(e){return(0,t5.A)(e,eB,t8)};var t7=Object.prototype.hasOwnProperty;let t9=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&t7.call(e,"index")&&(r.index=e.index,r.input=e.input),r},re=function(e,t){var r=t?ef(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var rt=/\w*$/;let rr=function(e){var t=new e.constructor(e.source,rt.exec(e));return t.lastIndex=e.lastIndex,t};var rn=r(24565),ro=rn.A?rn.A.prototype:void 0,ra=ro?ro.valueOf:void 0;let ri=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return ef(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return re(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return el(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return rr(e);case"[object Symbol]":return ra?Object(ra.call(e)):{}}};var ru=r(70335),rd=r(74993),rc=rd.A&&rd.A.isMap,rs=rc?(0,ru.A)(rc):function(e){return(0,ej.A)(e)&&"[object Map]"==(0,tN.A)(e)},rf=rd.A&&rd.A.isSet,rl=rf?(0,ru.A)(rf):function(e){return(0,ej.A)(e)&&"[object Set]"==(0,tN.A)(e)},rg="[object Arguments]",rh="[object Function]",rp="[object Object]",rv={};rv[rg]=rv["[object Array]"]=rv["[object ArrayBuffer]"]=rv["[object DataView]"]=rv["[object Boolean]"]=rv["[object Date]"]=rv["[object Float32Array]"]=rv["[object Float64Array]"]=rv["[object Int8Array]"]=rv["[object Int16Array]"]=rv["[object Int32Array]"]=rv["[object Map]"]=rv["[object Number]"]=rv[rp]=rv["[object RegExp]"]=rv["[object Set]"]=rv["[object String]"]=rv["[object Symbol]"]=rv["[object Uint8Array]"]=rv["[object Uint8ClampedArray]"]=rv["[object Uint16Array]"]=rv["[object Uint32Array]"]=!0,rv["[object Error]"]=rv[rh]=rv["[object WeakMap]"]=!1;let ry=function e(t,r,n,o,a,i){var u,d=1&r,c=2&r,s=4&r;if(n&&(u=a?n(t,o,a,i):n(t)),void 0!==u)return u;if(!(0,_.A)(t))return t;var f=(0,j.A)(t);if(f){if(u=t9(t),!d)return eg(t,u)}else{var l,g,h,p,v=(0,tN.A)(t),y=v==rh||"[object GeneratorFunction]"==v;if((0,em.A)(t))return ec(t,d);if(v==rp||v==rg||y&&!a){if(u=c||y?{}:eb(t),!d)return c?(g=(l=u)&&eM(t,eB(t),l),eM(t,t8(t),g)):(p=(h=u)&&eM(t,(0,tx.A)(t),h),eM(t,(0,t1.A)(t),p))}else{if(!rv[v])return a?t:{};u=ri(t,v,d)}}i||(i=new Z.A);var b=i.get(t);if(b)return b;i.set(t,u),rl(t)?t.forEach(function(o){u.add(e(o,r,n,o,t,i))}):rs(t)&&t.forEach(function(o,a){u.set(a,e(o,r,n,a,t,i))});var A=s?c?t4:t6.A:c?eB:tx.A,w=f?void 0:A(t);return(0,t0.A)(w||t,function(o,a){w&&(o=t[a=o]),eS(u,a,e(o,r,n,a,t,i))}),u},rb=function(e,t,r){for(var n=-1,o=e.length,a=t.length,i={};++n<o;){var u=n<a?t[n]:void 0;r(i,e[n],u)}return i},rA=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},rw=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=(0,D.A)(e),i=void 0!==t,u=null===t,d=t==t,c=(0,D.A)(t);if(!u&&!c&&!a&&e>t||a&&i&&d&&!u&&!c||n&&i&&d||!r&&d||!o)return 1;if(!n&&!a&&!c&&e<t||c&&r&&o&&!n&&!a||u&&r&&o||!i&&o||!d)return -1}return 0},rm=function(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,u=r.length;++n<i;){var d=rw(o[n],a[n]);if(d){if(n>=u)return d;return d*("desc"==r[n]?-1:1)}}return e.index-t.index},rx=function(e,t,r){t=t.length?(0,A.A)(t,function(e){return(0,j.A)(e)?function(t){return(0,eq.A)(t,1===e.length?e[0]:e)}:e}):[e8.A];var n=-1;return t=(0,A.A)(t,(0,ru.A)(w.A)),rA(E(e,function(e,r,o){return{criteria:(0,A.A)(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return rm(e,t,r)})};var rE=(0,eF.A)(function(e,t){if(null==e)return[];var r=t.length;return r>1&&C(e,t[0],t[1])?t=[]:r>2&&C(t[0],t[1],t[2])&&(t=[t[0]]),rx(e,(0,y.A)(t,1),[])});function rj(e,t,r){for(var n;t.length&&(n=e5(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function rL(e,t,r){return L(t,function(t){var n,o;return n=function(e){for(var t;e.hasNode(t=p("_root")););return t}(e),o=new z.T({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(t){return e.node(t)}),l.A(e.nodes(),function(a){var i=e.node(a),u=e.parent(a);(i.rank===t||i.minRank<=t&&t<=i.maxRank)&&(o.setNode(a),o.setParent(a,u||n),l.A(e[r](a),function(t){var r=t.v===a?t.w:t.v,n=o.edge(r,a),i=e9.A(n)?0:n.weight;o.setEdge(r,a,{weight:e.edge(t).weight+i})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&o.setNode(a,{borderLeft:i.borderLeft[t],borderRight:i.borderRight[t]}))}),o})}function rk(e,t){l.A(t,function(t){l.A(t,function(t,r){e.node(t).order=r})})}var rO=r(23702);function rR(e,t,r){if(t>r){var n=t;t=r,r=n}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0}),Object.defineProperty(e[t],r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}var rN=["nodesep","edgesep","ranksep","marginx","marginy"],rP={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},r_=["acyclicer","ranker","rankdir","align"],rC=["width","height"],rS={width:0,height:0},rM=["minlen","weight","width","height","labeloffset"],rX={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},rD=["labelpos"];function rT(e,t){return e7(eQ(e,t),Number)}function rI(e){var t={};return l.A(e,function(e,r){t[r.toLowerCase()]=e}),t}var rB=(0,f.K)((e,t,r)=>Math.max(t,Math.min(r,e)),"clamp"),rK=(0,f.K)((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),rG=(0,f.K)(e=>"flowchart"===e||"flowchart-v2"===e||"stateDiagram"===e||"er"===e||"classDiagram"===e,"shouldMergeSelfLoopSegments"),rF=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],rU=(0,f.K)((e,t,r,n,o)=>{let a=[],i=new Set;if(r.forEach(({start:e,end:t})=>{e!==n&&i.add(e),t!==n&&i.add(t)}),i.forEach(t=>{let r=e.node(t);"number"==typeof r?.x&&"number"==typeof r?.y&&a.push(r)}),0===a.length&&r.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{"number"==typeof e?.x&&"number"==typeof e?.y&&a.push(e)})}),0===a.length)return rK(o);let u=a.reduce((e,t)=>({x:e.x+t.x/a.length,y:e.y+t.y/a.length}),{x:0,y:0}),d=u.x-t.x,c=u.y-t.y;return Math.abs(d)>Math.abs(c)?d>0?"right":"left":Math.abs(c)>0?c>0?"bottom":"top":rK(o)},"getSelfLoopSide"),rq=(0,f.K)((e,t="top",r=0,n=0)=>{let o=e.x,a=e.y-r,i=e.width/2,u=e.height/2,d=Math.max(36,Math.min(100,.8*e.width)),c=rB(Math.max(n,.35*e.width),36,d),s=rB(.45*Math.min(e.width,e.height),24,48);switch(t){case"bottom":{let e=a+u;return[{x:o-c/2,y:e},{x:o-c/2,y:e+s},{x:o+c/2,y:e+s},{x:o+c/2,y:e}]}case"right":{let e=o+i;return[{x:e,y:a-c/2},{x:e+s,y:a-c/2},{x:e+s,y:a+c/2},{x:e,y:a+c/2}]}case"left":{let e=o-i;return[{x:e,y:a-c/2},{x:e-s,y:a-c/2},{x:e-s,y:a+c/2},{x:e,y:a+c/2}]}default:{let e=a-u;return[{x:o-c/2,y:e},{x:o-c/2,y:e-s},{x:o+c/2,y:e-s},{x:o+c/2,y:e}]}}},"getSelfLoopPoints"),rJ=(0,f.K)((e,t,r="top",n=0,o={})=>{let a=e.x,i=e.y-n,u=o.width??0,d=o.height??0;switch(r){case"bottom":return{x:a,y:Math.max(...t.map(e=>e.y))+d/2+4};case"right":return{x:Math.max(...t.map(e=>e.x))+u/2+4,y:i};case"left":return{x:Math.min(...t.map(e=>e.x))-u/2-4,y:i};default:return{x:a,y:Math.min(...t.map(e=>e.y))-d/2-4}}},"getSelfLoopLabelPosition"),rz=(0,f.K)((e,t=0,{mergeSelfLoops:r=!0}={})=>{let n=new Map,o=[],a=e.graph()?.rankdir;return e.edges().forEach(t=>{let a=e.edge(t);if(r&&a.selfLoop){let e=a.selfLoop.id;n.has(e)||n.set(e,[]),n.get(e).push({edge:a,start:t.v,end:t.w})}else o.push({edge:a,start:t.v,end:t.w})}),n.forEach(r=>{if(3!==r.length)return void r.forEach(e=>o.push(e));r.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);let[n,i,u]=r,d=n.edge.originalEdge??i.edge.originalEdge??u.edge.originalEdge??i.edge,c=e.node(d.start);if(!c)return void r.forEach(e=>o.push(e));let s={width:i.edge.width,height:i.edge.height},f=rU(e,c,r,d.start,a),l=rq(c,f,t,s.width??0),g=rJ(c,l,f,t,s),h={...i.edge,...d,id:d.id,points:l,start:d.start,end:d.end,x:g.x,y:g.y,width:s.width,height:s.height,labelStyle:i.edge.labelStyle,fromCluster:n.edge.fromCluster??i.edge.fromCluster??u.edge.fromCluster,toCluster:n.edge.toCluster??i.edge.toCluster??u.edge.toCluster};delete h.selfLoop,delete h.originalEdge,o.push({edge:h,start:h.start,end:h.end})}),o},"getEdgesToRender"),rV=(0,f.K)(async({element:e,graph:t,diagramType:r,id:n,parentCluster:a,siteConfig:c})=>{let l=t.graph().rankdir;s.R.trace("Dir in recursive render - dir:",l);let{clusters:g,edgePaths:h,edgeLabels:p,nodes:v,rootGroups:y}=(0,o.B)(e,{edgePathsClass:"edgePaths"});t.nodes()?s.R.info("Recursive render XXX",t.nodes()):s.R.info("No nodes found for",t),t.edges().length>0&&s.R.info("Recursive edges",t.edge(t.edges()[0]));let b=rG(r);await Promise.all(t.nodes().map(async function(e){let i=t.node(e);if(void 0!==a){let r=JSON.parse(JSON.stringify(a.clusterData));s.R.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",r.height,"\nParent cluster",a.height),t.setNode(a.id,r),t.parent(e)||(s.R.trace("Setting parent",e,a.id),t.setParent(e,a.id,r))}if(s.R.info("(Insert) Node XXX"+e+": "+JSON.stringify(t.node(e))),i?.clusterNode){s.R.info("Cluster identified XBX",e,i.width,t.node(e));let{ranksep:o,nodesep:a}=t.graph();i.graph.setGraph({...i.graph.graph(),ranksep:o+25,nodesep:a});let f=await r0({element:v,graph:i.graph,diagramType:r,id:n,parentCluster:t.node(e),siteConfig:c}),l=f.elem;(0,d.lC)(i,l),i.diff=f.diff||0,s.R.info("New compound node after recursive render XAX",e,"width",i.width,"height",i.height),(0,u.U7)(l,i)}else t.children(e).length>0?(s.R.trace("Cluster - the non recursive path XBX",e,i.id,i,i.width,"Graph:",t),s.R.trace((0,o.dc)(i.id,t)),o.ju.set(i.id,{id:(0,o.dc)(i.id,t),node:i})):(s.R.trace("Node - the non recursive path XAX",e,v,t.node(e),l),await (0,o.sv)(v,t.node(e),{config:c,dir:l}))}));let A=(0,f.K)(async()=>{let e=t.edges().map(async function(e){let r=t.edge(e.v,e.w,e.name);if(s.R.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),s.R.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),s.R.info("Fix",o.ju,"ids:",e.v,e.w,"Translating: ",o.ju.get(e.v),o.ju.get(e.w)),b&&r.selfLoop){if(1!==r.selfLoop.order)return;let e={...r.originalEdge,...r,id:r.selfLoop.id,startLabelLeft:r.originalEdge?.startLabelLeft??r.startLabelLeft,startLabelRight:r.originalEdge?.startLabelRight??r.startLabelRight,endLabelLeft:r.originalEdge?.endLabelLeft??r.endLabelLeft,endLabelRight:r.originalEdge?.endLabelRight??r.endLabelRight};await (0,i.jP)(p,e),r.width=e.width,r.height=e.height,r.labelStyle=e.labelStyle;return}await (0,i.jP)(p,r)});await Promise.all(e)},"processEdges");await A();let{subGraphTitleTotalMargin:w}=(0,u.Oi)(c);return{elem:y,graph:t,groups:{clusters:g,edgePaths:h,edgeLabels:p,nodes:v,rootGroups:y},diagramType:r,id:n,mergeSelfLoops:b,subGraphTitleTotalMargin:w}},"measureDagreGraph"),rY=(0,f.K)(e=>{s.R.info("############################################# XXX"),s.R.info("### Layout ### XXX"),s.R.info("############################################# XXX"),!function(e,t){tl("layout",()=>{var t=tl(" buildLayoutGraph",()=>{var t,r,n;return t=e,r=new z.T({multigraph:!0,compound:!0}),n=rI(t.graph()),r.setGraph(eU({},rP,rT(n,rN),eQ(n,r_))),l.A(t.nodes(),function(e){var n=rI(t.node(e));r.setNode(e,e1(rT(n,rC),rS)),r.setParent(e,t.parent(e))}),l.A(t.edges(),function(e){var n=rI(t.edge(e));r.setEdge(e,eU({},rX,rT(n,rM),eQ(n,rD)))}),r});tl(" runLayout",()=>{var e,r;return e=t,void((r=tl)(" makeSpaceForEdgeLabels",()=>{var t,r;return r=(t=e).graph(),void(r.ranksep/=2,l.A(t.edges(),function(e){var n=t.edge(e);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===r.rankdir||"BT"===r.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}),r(" removeSelfEdges",()=>{var t;return t=e,void l.A(t.edges(),function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),r(" acyclic",()=>{var t,r,n,o,a,i;return t="greedy"===e.graph().acyclicer?function(e,t){if(1>=e.nodeCount())return[];var r,n,o,a,i,u,d,c=(r=e,n=t||H,o=new z.T,a=0,i=0,l.A(r.nodes(),function(e){o.setNode(e,{v:e,in:0,out:0})}),l.A(r.edges(),function(e){var t=o.edge(e.v,e.w)||0,r=n(e);o.setEdge(e.v,e.w,t+r),i=Math.max(i,o.node(e.v).out+=r),a=Math.max(a,o.node(e.w).in+=r)}),u=J(i+a+3).map(function(){return new V}),d=a+1,l.A(o.nodes(),function(e){Q(u,d,o.node(e))}),{graph:o,buckets:u,zeroIdx:d});return b(L(function(e,t,r){for(var n,o=[],a=t[t.length-1],i=t[0];e.nodeCount();){for(;n=i.dequeue();)W(e,t,r,n);for(;n=a.dequeue();)W(e,t,r,n);if(e.nodeCount()){for(var u=t.length-2;u>0;--u)if(n=t[u].dequeue()){o=o.concat(W(e,t,r,n,!0));break}}}return o}(c.graph,c.buckets,c.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}(e,(r=e,function(e){return r.edge(e).weight})):(n=e,o=[],a={},i={},l.A(n.nodes(),function e(t){Object.prototype.hasOwnProperty.call(i,t)||(i[t]=!0,a[t]=!0,l.A(n.outEdges(t),function(t){Object.prototype.hasOwnProperty.call(a,t.w)?o.push(t):e(t.w)}),delete a[t])}),o),void l.A(t,function(t){var r=e.edge(t);e.removeEdge(t),r.forwardName=t.name,r.reversed=!0,e.setEdge(t.w,t.v,r,p("rev"))})}),r(" nestingGraph.run",()=>{var t,r,n,o,a,i,u,d;return t=ti(e,"root",{},"_root"),i=e,u={},l.A(i.children(),function(e){!function e(t,r){var n=i.children(t);n&&n.length&&l.A(n,function(t){e(t,r+1)}),u[t]=r}(e,1)}),r=u,o=2*(n=e6(tQ.A(r))-1)+1,e.graph().nestingRoot=t,l.A(e.edges(),function(t){e.edge(t).minlen*=o}),a=(d=e,tZ.A(d.edges(),function(e,t){return e+d.edge(t).weight},0)+1),void(l.A(e.children(),function(i){!function e(t,r,n,o,a,i,u){var d=t.children(u);if(!d.length){u!==r&&t.setEdge(r,u,{weight:0,minlen:n});return}var c=ts(t,"_bt"),s=ts(t,"_bb"),f=t.node(u);t.setParent(c,u),f.borderTop=c,t.setParent(s,u),f.borderBottom=s,l.A(d,function(d){e(t,r,n,o,a,i,d);var f=t.node(d),l=f.borderTop?f.borderTop:d,g=f.borderBottom?f.borderBottom:d,h=f.borderTop?o:2*o,p=l!==g?1:a-i[u]+1;t.setEdge(c,l,{weight:h,minlen:p,nestingEdge:!0}),t.setEdge(g,s,{weight:h,minlen:p,nestingEdge:!0})}),t.parent(u)||t.setEdge(r,c,{weight:0,minlen:a+i[u]})}(e,t,o,a,n,r,i)}),e.graph().nodeRankFactor=o)}),r(" rank",()=>(function(e){switch(e.graph().ranker){case"network-simplex":default:tq(e);break;case"tight-tree":var t;tA(t=e),tm(t);break;case"longest-path":tA(e)}})(tu(e))),r(" injectEdgeLabelProxies",()=>{var t;return t=e,void l.A(t.edges(),function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),o={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e:e};ti(t,"edge-proxy",o,"_ep")}})}),r(" removeEmptyRanks",()=>{var t,r,n,o;return t=tt(L(e.nodes(),function(t){return e.node(t).rank})),r=[],l.A(e.nodes(),function(n){var o=e.node(n).rank-t;r[o]||(r[o]=[]),r[o].push(n)}),n=0,o=e.graph().nodeRankFactor,void l.A(r,function(t,r){e9.A(t)&&r%o!=0?--n:n&&l.A(t,function(t){e.node(t).rank+=n})})}),r(" nestingGraph.cleanup",()=>{var t;return t=e.graph(),void(e.removeNode(t.nestingRoot),delete t.nestingRoot,l.A(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}),r(" normalizeRanks",()=>{var t;return t=tt(L(e.nodes(),function(t){return e.node(t).rank})),void l.A(e.nodes(),function(r){var n=e.node(r);ta(n,"rank")&&(n.rank-=t)})}),r(" assignRankMinMax",()=>{var t,r;return t=e,r=0,void(l.A(t.nodes(),function(e){var n=t.node(e);n.borderTop&&(n.minRank=t.node(n.borderTop).rank,n.maxRank=t.node(n.borderBottom).rank,r=e6(r,n.maxRank))}),t.graph().maxRank=r)}),r(" removeEdgeLabelProxies",()=>{var t;return t=e,void l.A(t.nodes(),function(e){var r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}),r(" normalize.run",()=>{e.graph().dummyChains=[],l.A(e.edges(),function(t){!function(e,t){var r,n,o=t.v,a=e.node(o).rank,i=t.w,u=e.node(i).rank,d=t.name,c=e.edge(t),s=c.labelRank;if(u!==a+1){e.removeEdge(t);var f=void 0;for(n=0,++a;a<u;++n,++a)c.points=[],r=ti(e,"edge",f={width:0,height:0,edgeLabel:c,edgeObj:t,rank:a},"_d"),a===s&&(f.width=c.width,f.height=c.height,f.dummy="edge-label",f.labelpos=c.labelpos),e.setEdge(o,r,{weight:c.weight},d),0===n&&e.graph().dummyChains.push(r),o=r;e.setEdge(o,i,{weight:c.weight},d)}}(e,t)})}),r(" parentDummyChains",()=>{var t,r,n,o;return r=e,n={},o=0,l.A(r.children(),function e(t){var a=o;l.A(r.children(t),e),n[t]={low:a,lim:o++}}),t=n,void l.A(e.graph().dummyChains,function(r){for(var n=e.node(r),o=n.edgeObj,a=function(e,t,r,n){var o,a,i=[],u=[],d=Math.min(t[r].low,t[n].low),c=Math.max(t[r].lim,t[n].lim);o=r;do i.push(o=e.parent(o));while(o&&(t[o].low>d||c>t[o].lim));for(a=o,o=n;(o=e.parent(o))!==a;)u.push(o);return{path:i.concat(u.reverse()),lca:a}}(e,t,o.v,o.w),i=a.path,u=a.lca,d=0,c=i[0],s=!0;r!==o.w;){if(n=e.node(r),s){for(;(c=i[d])!==u&&e.node(c).maxRank<n.rank;)d++;c===u&&(s=!1)}if(!s){for(;d<i.length-1&&e.node(c=i[d+1]).minRank<=n.rank;)d++;c=i[d]}e.setParent(r,c),r=e.successors(r)[0]}})}),r(" addBorderSegments",()=>{l.A(e.children(),function t(r){var n=e.children(r),o=e.node(r);if(n.length&&l.A(n,t),Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,i=o.maxRank+1;a<i;++a)tg(e,"borderLeft","_bl",r,o,a),tg(e,"borderRight","_br",r,o,a)}})}),r(" order",()=>(function(e){var t=tf(e),r=rL(e,J(1,t+1),"inEdges"),n=rL(e,J(t-1,-1,-1),"outEdges"),o=(a={},u=e6(L(i=tO.A(e.nodes(),function(t){return!e.children(t).length}),function(t){return e.node(t).rank})),d=L(J(u+1),function(){return[]}),c=rE(i,function(t){return e.node(t).rank}),l.A(c,function t(r){ta(a,r)||(a[r]=!0,d[e.node(r).rank].push(r),l.A(e.successors(r),t))}),d);rk(e,o);for(var a,i,u,d,c,s,f=1/0,g=0,h=0;h<4;++g,++h){(function(e,t){var r=new z.T;l.A(e,function(e){var n,o,a,i=e.graph().root,u=function e(t,r,n,o){var a,i,u,d,c,s,f,g,h,p,v,y=t.children(r),A=t.node(r),w=A?A.borderLeft:void 0,m=A?A.borderRight:void 0,x={};w&&(y=tO.A(y,function(e){return e!==w&&e!==m}));var E=L(y,function(e){var r=t.inEdges(e);if(!r.length)return{v:e};var n=tZ.A(r,function(e,r){var n=t.edge(r),o=t.node(r.v);return{sum:e.sum+n.weight*o.order,weight:e.weight+n.weight}},{sum:0,weight:0});return{v:e,barycenter:n.sum/n.weight,weight:n.weight}});l.A(E,function(r){if(t.children(r.v).length){var a,i,u=e(t,r.v,n,o);x[r.v]=u,Object.prototype.hasOwnProperty.call(u,"barycenter")&&(a=r,i=u,e9.A(a.barycenter)?(a.barycenter=i.barycenter,a.weight=i.weight):(a.barycenter=(a.barycenter*a.weight+i.barycenter*i.weight)/(a.weight+i.weight),a.weight+=i.weight))}});var j=(a={},l.A(E,function(e,t){var r=a[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};e9.A(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),l.A(n.edges(),function(e){var t=a[e.v],r=a[e.w];e9.A(t)||e9.A(r)||(r.indegree++,t.out.push(a[e.w]))}),function(e){for(var t=[];e.length;){var r=e.pop();t.push(r),l.A(r.in.reverse(),function(e){return function(t){!t.merged&&(e9.A(t.barycenter)||e9.A(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(r)),l.A(r.out,function(t){return function(r){r.in.push(t),0==--r.indegree&&e.push(r)}}(r))}return L(tO.A(t,function(e){return!e.merged}),function(e){return eQ(e,["vs","i","barycenter","weight"])})}(tO.A(a,function(e){return!e.indegree})));!function(e,t){l.A(e,function(e){e.vs=b(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}(j,x);var k=(c=(i=function(e){return Object.prototype.hasOwnProperty.call(e,"barycenter")},u={lhs:[],rhs:[]},l.A(j,function(e){i(e)?u.lhs.push(e):u.rhs.push(e)}),d=u).lhs,s=rE(d.rhs,function(e){return-e.i}),f=[],g=0,h=0,p=0,c.sort(function(e){return function(t,r){return t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}}(!!o)),p=rj(f,s,p),l.A(c,function(e){p+=e.vs.length,f.push(e.vs),g+=e.barycenter*e.weight,h+=e.weight,p=rj(f,s,p)}),v={vs:b(f)},h&&(v.barycenter=g/h,v.weight=h),v);if(w&&(k.vs=b([w,k.vs,m]),t.predecessors(w).length)){var O=t.node(t.predecessors(w)[0]),R=t.node(t.predecessors(m)[0]);Object.prototype.hasOwnProperty.call(k,"barycenter")||(k.barycenter=0,k.weight=0),k.barycenter=(k.barycenter*k.weight+O.order+R.order)/(k.weight+2),k.weight+=2}return k}(e,i,r,t);l.A(u.vs,function(t,r){e.node(t).order=r}),n=u.vs,a={},l.A(n,function(t){for(var n,i,u=e.parent(t);u;){if((n=e.parent(u))?(i=a[n],a[n]=u):(i=o,o=u),i&&i!==u)return void r.setEdge(i,u);u=n}})})})(g%2?r:n,g%4>=2),o=tc(e);var p=function(e,t){for(var r=0,n=1;n<t.length;++n)r+=function(e,t,r){for(var n=rb(r||[],L(r,function(e,t){return t})||[],eS),o=b(L(t,function(t){return rE(L(e.outEdges(t),function(t){return{pos:n[t.w],weight:e.edge(t).weight}}),"pos")})),a=1;a<r.length;)a<<=1;var i=2*a-1;a-=1;var u=L(Array(i),function(){return 0}),d=0;return l.A(o.forEach(function(e){var t=e.pos+a;u[t]+=e.weight;for(var r=0;t>0;)t%2&&(r+=u[t+1]),t=t-1>>1,u[t]+=e.weight;d+=e.weight*r})),d}(e,t[n-1],t[n]);return r}(e,o);p<f&&(h=0,s=ry(o,5),f=p)}rk(e,s)})(e)),r(" insertSelfEdges",()=>{var t,r;return r=tc(t=e),void l.A(r,function(e){var r=0;l.A(e,function(e,n){var o=t.node(e);o.order=n+r,l.A(o.selfEdges,function(e){ti(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:n+ ++r,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),r(" adjustCoordinateSystem",()=>{var t;("lr"===(t=e.graph().rankdir.toLowerCase())||"rl"===t)&&th(e)}),r(" position",()=>{var t,r,n,o,a,i,u,d,c,s,f,g,h,p,v,y,b;v=tc(p=t=tu(t=e)),y=p.graph().ranksep,b=0,l.A(v,function(e){var t=e6(L(e,function(e){return p.node(e).height}));l.A(e,function(e){p.node(e).y=b+t/2}),b+=t+y}),o=tc(r=t),i=eU((a={},tZ.A(o,function(e,t){var n=0,o=0,i=e.length,u=e5(t);return l.A(t,function(e,d){var c=function(e,t){if(e.node(t).dummy)return tk(e.predecessors(t),function(t){return e.node(t).dummy})}(r,e),s=c?r.node(c).order:i;(c||e===u)&&(l.A(t.slice(o,d+1),function(e){l.A(r.predecessors(e),function(t){var o=r.node(t),i=o.order;(i<n||s<i)&&!(o.dummy&&r.node(e).dummy)&&rR(a,t,e)})}),o=d+1,n=s)}),t}),a),function(e,t){var r={};function n(t,n,o,a,i){var u;l.A(J(n,o),function(n){u=t[n],e.node(u).dummy&&l.A(e.predecessors(u),function(t){var n=e.node(t);n.dummy&&(n.order<a||n.order>i)&&rR(r,t,u)})})}return tZ.A(t,function(t,r){var o,a=-1,i=0;return l.A(r,function(u,d){if("border"===e.node(u).dummy){var c=e.predecessors(u);c.length&&(o=e.node(c[0]).order,n(r,i,d,a,o),i=d,a=o)}n(r,i,r.length,o,t.length)}),r}),r}(r,o)),u={},l.A(["u","d"],function(e){n="u"===e?o:tQ.A(o).reverse(),l.A(["l","r"],function(t){"r"===t&&(n=L(n,function(e){return tQ.A(e).reverse()}));var o,a,d,c,s=("u"===e?r.predecessors:r.successors).bind(r),f=(o=n,a={},d={},c={},l.A(o,function(e){l.A(e,function(e,t){a[e]=e,d[e]=e,c[e]=t})}),l.A(o,function(e){var t=-1;l.A(e,function(e){var r=s(e);if(r.length)for(var n=((r=rE(r,function(e){return c[e]})).length-1)/2,o=Math.floor(n),u=Math.ceil(n);o<=u;++o){var f=r[o];d[e]===e&&t<c[f]&&!function(e,t,r){if(t>r){var n=t;t=r,r=n}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],r)}(i,e,f)&&(d[f]=e,d[e]=a[e]=a[f],t=c[f])}})}),{root:a,align:d}),g=function(e,t,r,n,o){var a,i,u,d,c,s,f,g,h,p,v={},y=(a=e,i=t,u=r,d=o,g=new z.T,p=(c=(h=a.graph()).nodesep,s=h.edgesep,f=d,function(e,t,r){var n,o,a=e.node(t),i=e.node(r);if(n=0+a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":o=-a.width/2;break;case"r":o=a.width/2}if(o&&(n+=f?o:-o),o=0,n+=(a.dummy?s:c)/2,n+=(i.dummy?s:c)/2,n+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":o=i.width/2;break;case"r":o=-i.width/2}return o&&(n+=f?o:-o),o=0,n}),l.A(i,function(e){var t;l.A(e,function(e){var r=u[e];if(g.setNode(r),t){var n=u[t],o=g.edge(n,r);g.setEdge(n,r,Math.max(p(a,e,t),o||0))}t=e})}),g),b=o?"borderLeft":"borderRight";function A(e,t){for(var r=y.nodes(),n=r.pop(),o={};n;)o[n]?e(n):(o[n]=!0,r.push(n),r=r.concat(t(n))),n=r.pop()}return A(function(e){v[e]=y.inEdges(e).reduce(function(e,t){return Math.max(e,v[t.v]+y.edge(t))},0)},y.predecessors.bind(y)),A(function(t){var r=y.outEdges(t).reduce(function(e,t){return Math.min(e,v[t.w]-y.edge(t))},1/0),n=e.node(t);r!==1/0&&n.borderType!==b&&(v[t]=Math.max(v[t],r))},y.successors.bind(y)),l.A(n,function(e){v[e]=v[r[e]]}),v}(r,n,f.root,f.align,"r"===t);"r"===t&&(g=e7(g,function(e){return-e})),u[e+t]=g})}),d=tb(tQ.A(u),function(e){var t,n=-1/0,o=1/0;return t=function(e,t){var a,i,u=(a=r,i=t,a.node(i).width/2);n=Math.max(e+u,n),o=Math.min(e-u,o)},null==e||(0,en.A)(e,(0,rO.A)(t),eB),n-o}),s=tt(c=tQ.A(d)),f=e6(c),l.A(["u","d"],function(e){l.A(["l","r"],function(t){var r,n=e+t,o=u[n];if(o!==d){var a=tQ.A(o);(r="l"===t?s-tt(a):f-e6(a))&&(u[n]=e7(o,function(e){return e+r}))}})}),g=r.graph().align,h=e7(u.ul,function(e,t){if(g)return u[g.toLowerCase()][t];var r=rE(L(u,t));return(r[1]+r[2])/2}),h&&(0,e4.A)(h,(0,rO.A)(function(e,r){t.node(r).x=e}))}),r(" positionSelfEdges",()=>{var t;return t=e,void l.A(t.nodes(),function(e){var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),o=n.x+n.width/2,a=n.y,i=r.x-o,u=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:o+2*i/3,y:a-u},{x:o+5*i/6,y:a-u},{x:o+i,y:a},{x:o+5*i/6,y:a+u},{x:o+2*i/3,y:a+u}],r.label.x=r.x,r.label.y=r.y}})}),r(" removeBorderNodes",()=>{var t;return t=e,void(l.A(t.nodes(),function(e){if(t.children(e).length){var r=t.node(e),n=t.node(r.borderTop),o=t.node(r.borderBottom),a=t.node(e5(r.borderLeft)),i=t.node(e5(r.borderRight));r.width=Math.abs(i.x-a.x),r.height=Math.abs(o.y-n.y),r.x=a.x+r.width/2,r.y=n.y+r.height/2}}),l.A(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}),r(" normalize.undo",()=>{l.A(e.graph().dummyChains,function(t){var r,n=e.node(t),o=n.edgeLabel;for(e.setEdge(n.edgeObj,o);n.dummy;)r=e.successors(t)[0],e.removeNode(t),o.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height),t=r,n=e.node(t)})}),r(" fixupEdgeLabelCoords",()=>{var t;return t=e,void l.A(t.edges(),function(e){var r=t.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch(("l"===r.labelpos||"r"===r.labelpos)&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}),r(" undoCoordinateSystem",()=>{var t,r,n;("bt"===(t=e.graph().rankdir.toLowerCase())||"rl"===t)&&(r=e,l.A(r.nodes(),function(e){tv(r.node(e))}),l.A(r.edges(),function(e){var t=r.edge(e);l.A(t.points,tv),Object.prototype.hasOwnProperty.call(t,"y")&&tv(t)})),("lr"===t||"rl"===t)&&(n=e,l.A(n.nodes(),function(e){ty(n.node(e))}),l.A(n.edges(),function(e){var t=n.edge(e);l.A(t.points,ty),Object.prototype.hasOwnProperty.call(t,"x")&&ty(t)}),th(e))}),r(" translateGraph",()=>(function(e){var t=1/0,r=0,n=1/0,o=0,a=e.graph(),i=a.marginx||0,u=a.marginy||0;function d(e){var a=e.x,i=e.y,u=e.width,d=e.height;t=Math.min(t,a-u/2),r=Math.max(r,a+u/2),n=Math.min(n,i-d/2),o=Math.max(o,i+d/2)}l.A(e.nodes(),function(t){d(e.node(t))}),l.A(e.edges(),function(t){var r=e.edge(t);Object.prototype.hasOwnProperty.call(r,"x")&&d(r)}),t-=i,n-=u,l.A(e.nodes(),function(r){var o=e.node(r);o.x-=t,o.y-=n}),l.A(e.edges(),function(r){var o=e.edge(r);l.A(o.points,function(e){e.x-=t,e.y-=n}),Object.prototype.hasOwnProperty.call(o,"x")&&(o.x-=t),Object.prototype.hasOwnProperty.call(o,"y")&&(o.y-=n)}),a.width=r-t+i,a.height=o-n+u})(e)),r(" assignNodeIntersects",()=>{var t;return t=e,void l.A(t.edges(),function(e){var r,n,o=t.edge(e),a=t.node(e.v),i=t.node(e.w);o.points?(r=o.points[0],n=o.points[o.points.length-1]):(o.points=[],r=i,n=a),o.points.unshift(td(a,r)),o.points.push(td(i,n))})}),r(" reversePoints",()=>{var t;return t=e,void l.A(t.edges(),function(e){var r=t.edge(e);r.reversed&&r.points.reverse()})}),r(" acyclic.undo",()=>{l.A(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}))}),tl(" updateInputGraph",()=>{var r,n;return r=e,n=t,void(l.A(r.nodes(),function(e){var t=r.node(e),o=n.node(e);t&&(t.x=o.x,t.y=o.y,n.children(e).length&&(t.width=o.width,t.height=o.height))}),l.A(r.edges(),function(e){var t=r.edge(e),o=n.edge(e);t.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(t.x=o.x,t.y=o.y)}),r.graph().width=n.graph().width,r.graph().height=n.graph().height)})})}(e)},"runDagreGraphLayout"),r$=(0,f.K)((e,t,r)=>{let n=e.node(t);if(!n)return;let o={...n};return n?.clusterNode?o.y=(n.y??0)+r:e.children(t).length>0?o.height=(n.height??0)+r:o.y=(n.y??0)+r/2,o},"normalizeDagreNode"),rH=(0,f.K)((e,t)=>{rF.forEach(r=>{void 0!==t[r]&&(e[r]=t[r])})},"applyDagreNodeLayout"),rW=(0,f.K)((e,t,r,n)=>({...e,start:e.start??t,end:e.end??r,points:(e.points??[]).map(e=>({...e,y:"number"==typeof e.y?e.y+n:e.y}))}),"normalizeDagreEdge"),rQ=(0,f.K)((e,t)=>{let{graph:r,mergeSelfLoops:n,subGraphTitleTotalMargin:a=0}=t,i=new Map(e.nodes.map(e=>[e.id,e]));(0,o.sc)(r).forEach(e=>{let t=r$(r,e,a);if(!t)return;rH(r.node(e),t);let n=i.get(e);n&&rH(n,t)});let u=a/2;return e.edges=rz(r,u,{mergeSelfLoops:n}).map(({edge:e,start:t,end:r})=>rW(e,t,r,u)),e},"applyDagreLayoutResult"),rZ=(0,f.K)(async({elem:e,graph:t,groups:{clusters:r,edgePaths:n},diagramType:d,id:c,mergeSelfLoops:f,subGraphTitleTotalMargin:l})=>{let g=0;await Promise.all((0,o.sc)(t).map(async function(e){let n=t.node(e);if(s.R.info("Position XBX => "+e+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=l,s.R.info("A tainted cluster node XBX1",e,n.id,n.width,n.height,n.x,n.y,t.parent(e)),o.ju.get(n.id).node=n,(0,u.U_)(n);else if(t.children(e).length>0){s.R.info("A pure cluster node XBX1",e,n.id,n.x,n.y,n.width,n.height,t.parent(e)),n.height+=l,t.node(n.parentId);let i=n?.padding/2||0,u=n?.labelBBox?.height||0;s.R.debug("OffsetY",u-i||0,"labelHeight",u,"halfPadding",i),await (0,a.U)(r,n),o.ju.get(n.id).node=n}else{let e=t.node(n.parentId);n.y+=l/2,s.R.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",e,e?.offsetY,n),(0,u.U_)(n)}}));let h=l/2;return rz(t,h,{mergeSelfLoops:f}).forEach(function({edge:e,start:r,end:a}){s.R.info("Edge "+r+" -> "+a+": "+JSON.stringify(e),e),e.points.forEach(e=>e.y+=h);let u=t.node(r),f=t.node(a),l=(0,i.Jo)(n,e,o.ju,d,u,f,c);(0,i.T_)(e,l)}),t.nodes().forEach(function(e){let r=t.node(e);s.R.info(e,r.type,r.diff),r.isGroup&&(g=r.diff)}),s.R.warn("Returning from recursive render XAX",e,g),{elem:e,diff:g}},"paintDagreLayoutCore"),r0=(0,f.K)(async e=>{let t=await rV(e);return rY(t.graph),await rZ(t)},"renderDagreSubgraph"),r1=(0,f.K)(e=>{let t=new z.T({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(e=>{t.setNode(e.id,{...e}),e.parentId&&t.setParent(e.id,e.parentId)}),s.R.debug("Edges:",e.edges),e.edges.forEach(e=>{if(e.start===e.end){let r=e.start,n=r+"---"+r+"---1",o=r+"---"+r+"---2",a=t.node(r);t.setNode(n,{domId:n,id:n,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),t.setParent(n,a.parentId),t.setNode(o,{domId:o,id:o,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),t.setParent(o,a.parentId);let i=structuredClone(e),u=structuredClone(e),d=structuredClone(e),c=structuredClone(e);u.originalEdge=i,u.selfLoop={id:i.id,order:0},d.originalEdge=i,d.selfLoop={id:i.id,order:1},c.originalEdge=i,c.selfLoop={id:i.id,order:2},u.label="",u.arrowTypeEnd="none",u.endLabelLeft="",u.endLabelRight="",u.startLabelLeft="",u.id=r+"-cyclic-special-1",d.startLabelRight="",d.startLabelLeft="",d.endLabelLeft="",d.endLabelRight="",d.arrowTypeStart="none",d.arrowTypeEnd="none",d.id=r+"-cyclic-special-mid",c.label="",c.startLabelRight="",c.startLabelLeft="",c.arrowTypeStart="none",a.isGroup&&(u.fromCluster=r,c.toCluster=r),c.id=r+"-cyclic-special-2",c.arrowTypeStart="none",t.setEdge(r,n,u,r+"-cyclic-special-0"),t.setEdge(n,o,d,r+"-cyclic-special-1"),t.setEdge(o,r,c,r+"-cyclic-special-2")}else t.setEdge(e.start,e.end,{...e},e.id)}),(0,o.OS)(t),{graph:t}},"prepareLayoutForDagre"),r2=(0,f.K)(async(e,{element:t,preparedLayout:r})=>{let n=r??r1(e),o=(0,c.D7)(),a=await rV({element:t,graph:n.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:o});return n.measuredLayout=a,a},"measureDagreLayout"),r3=(0,f.K)((e,t)=>{let r=t.preparedLayout?.measuredLayout;if(!r)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return rY(r.graph),rQ(e,r),r},"runDagreLayoutCore"),r8=(0,f.K)((e,{measure:t})=>(0,o.sc)(t.graph).map(e=>t.graph.node(e)).filter(Boolean),"getDagrePaintNodes"),r6=(0,f.K)((e,t,{measure:r})=>e?r.graph.node(e):void 0,"getDagreEdgeNode"),r5=(0,o.xY)({prepareLayout:r1,measureLayout:r2,runLayoutCore:r3,paintOptions:{clusterDb:o.ju,getNodes:r8,getEdgeNode:r6,skipNode:(0,f.K)((e,{measure:t})=>!t.graph.hasNode(e.id),"skipNode"),isCluster:(0,f.K)((e,{measure:t})=>t.graph.hasNode(e.id)&&(t.graph.children(e.id)??[]).length>0,"isCluster")}})}}]);
@@ -0,0 +1,79 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6694],{6694:(e,t,s)=>{s.d(t,{diagram:()=>R});var i=s(62240),r=s(77996),n=s(40090);s(57380),s(53652),s(77351),s(94712),s(73823),s(39020),s(7322),s(52361);var a=s(55490),l=s(27058),o=s(92826),c=s(58442),h=s(88252),u=function(){var e=(0,h.K)(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,3],s=[1,4],i=[1,5],r=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],l=[2,7],o=[1,26],c=[1,27],u=[1,28],y=[1,29],m=[1,33],d=[1,34],E=[1,35],p=[1,36],R=[1,37],g=[1,38],_=[1,24],f=[1,31],S=[1,32],I=[1,30],b=[1,39],T=[1,40],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],N=[1,61],q=[89,90],C=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],A=[27,29],$=[1,70],L=[1,71],x=[1,72],v=[1,73],w=[1,74],D=[1,75],O=[1,76],M=[1,83],F=[1,80],K=[1,84],P=[1,85],V=[1,86],U=[1,87],Y=[1,88],B=[1,89],Q=[1,90],H=[1,91],W=[1,92],j=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],z=[63,64],G=[1,101],X=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],J=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Z=[1,110],ee=[1,106],et=[1,107],es=[1,108],ei=[1,109],er=[1,111],en=[1,116],ea=[1,117],el=[1,114],eo=[1,115],ec={trace:(0,h.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:(0,h.K)(function(e,t,s,i,r,n,a){var l=n.length-1;switch(r){case 4:this.$=n[l].trim(),i.setAccTitle(this.$);break;case 5:case 6:this.$=n[l].trim(),i.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:i.setDirection("TB");break;case 18:i.setDirection("BT");break;case 19:i.setDirection("RL");break;case 20:i.setDirection("LR");break;case 21:i.addRequirement(n[l-3],n[l-4]);break;case 22:i.addRequirement(n[l-5],n[l-6]),i.setClass([n[l-5]],n[l-3]);break;case 23:i.setNewReqId(n[l-2]);break;case 24:i.setNewReqText(n[l-2]);break;case 25:i.setNewReqRisk(n[l-2]);break;case 26:i.setNewReqVerifyMethod(n[l-2]);break;case 29:this.$=i.RequirementType.REQUIREMENT;break;case 30:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=i.RiskLevel.LOW_RISK;break;case 36:this.$=i.RiskLevel.MED_RISK;break;case 37:this.$=i.RiskLevel.HIGH_RISK;break;case 38:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=i.VerifyType.VERIFY_TEST;break;case 42:i.addElement(n[l-3]);break;case 43:i.addElement(n[l-5]),i.setClass([n[l-5]],n[l-3]);break;case 44:i.setNewElementType(n[l-2]);break;case 45:i.setNewElementDocRef(n[l-2]);break;case 48:i.addRelationship(n[l-2],n[l],n[l-4]);break;case 49:i.addRelationship(n[l-2],n[l-4],n[l]);break;case 50:this.$=i.Relationships.CONTAINS;break;case 51:this.$=i.Relationships.COPIES;break;case 52:this.$=i.Relationships.DERIVES;break;case 53:this.$=i.Relationships.SATISFIES;break;case 54:this.$=i.Relationships.VERIFIES;break;case 55:this.$=i.Relationships.REFINES;break;case 56:this.$=i.Relationships.TRACES;break;case 57:this.$=n[l-2],i.defineClass(n[l-1],n[l]);break;case 58:i.setClass(n[l-1],n[l]);break;case 59:i.setClass([n[l-2]],n[l]);break;case 60:case 62:case 65:this.$=[n[l]];break;case 61:case 63:this.$=n[l-2].concat([n[l]]);break;case 64:this.$=n[l-2],i.setCssStyle(n[l-1],n[l]);break;case 66:n[l-2].push(n[l]),this.$=n[l-2];break;case 68:this.$=n[l-1]+n[l]}},"anonymous"),table:[{3:1,4:2,6:t,9:s,11:i,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:s,11:i,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:t,9:s,11:i,13:r},{1:[2,2]},{4:17,5:a,7:13,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:a,7:42,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:43,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:44,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:45,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:46,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:47,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:48,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:49,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:50,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:c,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(k,[2,17]),e(k,[2,18]),e(k,[2,19]),e(k,[2,20]),{30:60,33:62,75:N,89:b,90:T},{30:63,33:62,75:N,89:b,90:T},{30:64,33:62,75:N,89:b,90:T},e(q,[2,29]),e(q,[2,30]),e(q,[2,31]),e(q,[2,32]),e(q,[2,33]),e(q,[2,34]),e(C,[2,81]),e(C,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(A,[2,79]),e(A,[2,80]),{27:[1,67],29:[1,68]},e(A,[2,85]),e(A,[2,86]),{62:69,65:$,66:L,67:x,68:v,69:w,70:D,71:O},{62:77,65:$,66:L,67:x,68:v,69:w,70:D,71:O},{30:78,33:62,75:N,89:b,90:T},{73:79,75:M,76:F,78:81,79:82,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W},e(j,[2,60]),e(j,[2,62]),{73:93,75:M,76:F,78:81,79:82,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W},{30:94,33:62,75:N,76:F,89:b,90:T},{5:[1,95]},{30:96,33:62,75:N,89:b,90:T},{5:[1,97]},{30:98,33:62,75:N,89:b,90:T},{63:[1,99]},e(z,[2,50]),e(z,[2,51]),e(z,[2,52]),e(z,[2,53]),e(z,[2,54]),e(z,[2,55]),e(z,[2,56]),{64:[1,100]},e(k,[2,59],{76:F}),e(k,[2,64],{76:G}),{33:103,75:[1,102],89:b,90:T},e(X,[2,65],{79:104,75:M,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W}),e(J,[2,67]),e(J,[2,69]),e(J,[2,70]),e(J,[2,71]),e(J,[2,72]),e(J,[2,73]),e(J,[2,74]),e(J,[2,75]),e(J,[2,76]),e(J,[2,77]),e(J,[2,78]),e(k,[2,57],{76:G}),e(k,[2,58],{76:F}),{5:Z,28:105,31:ee,34:et,36:es,38:ei,40:er},{27:[1,112],76:F},{5:en,40:ea,56:113,57:el,59:eo},{27:[1,118],76:F},{33:119,89:b,90:T},{33:120,89:b,90:T},{75:M,78:121,79:82,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W},e(j,[2,61]),e(j,[2,63]),e(J,[2,68]),e(k,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Z,28:126,31:ee,34:et,36:es,38:ei,40:er},e(k,[2,28]),{5:[1,127]},e(k,[2,42]),{32:[1,128]},{32:[1,129]},{5:en,40:ea,56:130,57:el,59:eo},e(k,[2,47]),{5:[1,131]},e(k,[2,48]),e(k,[2,49]),e(X,[2,66],{79:104,75:M,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W}),{33:132,89:b,90:T},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(k,[2,27]),{5:Z,28:145,31:ee,34:et,36:es,38:ei,40:er},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(k,[2,46]),{5:en,40:ea,56:152,57:el,59:eo},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(k,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(k,[2,43]),{5:Z,28:159,31:ee,34:et,36:es,38:ei,40:er},{5:Z,28:160,31:ee,34:et,36:es,38:ei,40:er},{5:Z,28:161,31:ee,34:et,36:es,38:ei,40:er},{5:Z,28:162,31:ee,34:et,36:es,38:ei,40:er},{5:en,40:ea,56:163,57:el,59:eo},{5:en,40:ea,56:164,57:el,59:eo},e(k,[2,23]),e(k,[2,24]),e(k,[2,25]),e(k,[2,26]),e(k,[2,44]),e(k,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:(0,h.K)(function(e,t){if(t.recoverable)this.trace(e);else{var s=Error(e);throw s.hash=t,s}},"parseError"),parse:(0,h.K)(function(e){var t=this,s=[0],i=[],r=[null],n=[],a=this.table,l="",o=0,c=0,u=0,y=n.slice.call(arguments,1),m=Object.create(this.lexer),d={};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(d[E]=this.yy[E]);m.setInput(e,d),d.lexer=m,d.parser=this,void 0===m.yylloc&&(m.yylloc={});var p=m.yylloc;n.push(p);var R=m.options&&m.options.ranges;function g(){var e;return"number"!=typeof(e=i.pop()||m.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,h.K)(function(e){s.length=s.length-2*e,r.length=r.length-e,n.length=n.length-e},"popStack"),(0,h.K)(g,"lex");for(var _,f,S,I,b,T,k,N,q,C={};;){if(S=s[s.length-1],this.defaultActions[S]?I=this.defaultActions[S]:(null==_&&(_=g()),I=a[S]&&a[S][_]),void 0===I||!I.length||!I[0]){var A="";for(T in q=[],a[S])this.terminals_[T]&&T>2&&q.push("'"+this.terminals_[T]+"'");A=m.showPosition?"Parse error on line "+(o+1)+":\n"+m.showPosition()+"\nExpecting "+q.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:m.match,token:this.terminals_[_]||_,line:m.yylineno,loc:p,expected:q})}if(I[0]instanceof Array&&I.length>1)throw Error("Parse Error: multiple actions possible at state: "+S+", token: "+_);switch(I[0]){case 1:s.push(_),r.push(m.yytext),n.push(m.yylloc),s.push(I[1]),_=null,f?(_=f,f=null):(c=m.yyleng,l=m.yytext,o=m.yylineno,p=m.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[I[1]][1],C.$=r[r.length-k],C._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},R&&(C._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),void 0!==(b=this.performAction.apply(C,[l,c,o,d,I[1],r,n].concat(y))))return b;k&&(s=s.slice(0,-1*k*2),r=r.slice(0,-1*k),n=n.slice(0,-1*k)),s.push(this.productions_[I[1]][0]),r.push(C.$),n.push(C._$),N=a[s[s.length-2]][s[s.length-1]],s.push(N);break;case 3:return!0}}return!0},"parse")};function eh(){this.yy={}}return ec.lexer={EOF:1,parseError:(0,h.K)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,h.K)(function(e,t){return this.yy=t||this.yy||{},this._input=e,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,h.K)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.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),e},"input"),unput:(0,h.K)(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=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),s.length-1&&(this.yylineno-=s.length-1);var r=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,h.K)(function(){return this._more=!0,this},"more"),reject:(0,h.K)(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,h.K)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,h.K)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,h.K)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,h.K)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,h.K)(function(e,t){var s,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var n in r)this[n]=r[n];return!1},"test_match"),next:(0,h.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,s,i,r=this._currentRules(),n=0;n<r.length;n++)if((s=this._input.match(this.rules[r[n]]))&&(!t||s[0].length>t[0].length)){if(t=s,i=n,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,r[n])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===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,h.K)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,h.K)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,h.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,h.K)(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,h.K)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,h.K)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,h.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,h.K)(function(e,t,s,i){switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:case 56:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return t.yytext=t.yytext.trim(),89;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}},(0,h.K)(eh,"Parser"),eh.prototype=ec,ec.Parser=eh,new eh}();u.parser=u;var y=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setAccDescription=o.EI,this.getAccDescription=o.m7,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getConfig=(0,h.K)(()=>(0,o.D7)().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,h.K)(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){void 0!==this.latestRequirement&&(this.latestRequirement.requirementId=e)}setNewReqText(e){void 0!==this.latestRequirement&&(this.latestRequirement.text=e)}setNewReqRisk(e){void 0!==this.latestRequirement&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){void 0!==this.latestRequirement&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),c.R.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){void 0!==this.latestElement&&(this.latestElement.type=e)}setNewElementDocRef(e){void 0!==this.latestElement&&(this.latestElement.docRef=e)}addRelationship(e,t,s){this.relations.push({type:e,src:t,dst:s})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,(0,o.IU)()}setCssStyle(e,t){for(let s of e){let e=this.requirements.get(s)??this.elements.get(s);if(!t||!e)return;for(let s of t)s.includes(",")?e.cssStyles.push(...s.split(",")):e.cssStyles.push(s)}}setClass(e,t){for(let s of e){let e=this.requirements.get(s)??this.elements.get(s);if(e)for(let s of t){e.classes.push(s);let t=this.classes.get(s)?.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(let s of e){let e=this.classes.get(s);void 0===e&&(e={id:s,styles:[],textStyles:[]},this.classes.set(s,e)),t&&t.forEach(function(t){if(/color/.exec(t)){let s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(s)&&e.cssStyles.push(...t.flatMap(e=>e.split(",")))}),this.elements.forEach(e=>{e.classes.includes(s)&&e.cssStyles.push(...t.flatMap(e=>e.split(",")))})}}getClasses(){return this.classes}getData(){let e=(0,o.D7)(),t=[],s=[];for(let s of this.requirements.values())s.id=s.name,s.cssStyles=s.cssStyles,s.cssClasses=s.classes.join(" "),s.shape="requirementBox",s.look=e.look,s.colorIndex=t.length,t.push(s);for(let s of this.elements.values())s.shape="requirementBox",s.look=e.look,s.id=s.name,s.cssStyles=s.cssStyles,s.cssClasses=s.classes.join(" "),s.colorIndex=t.length,t.push(s);let i=0;for(let t of this.relations){let r=t.type===this.Relationships.CONTAINS,n={id:`${t.src}-${t.dst}-${i++}`,start:this.requirements.get(t.src)?.name??this.elements.get(t.src)?.name,end:this.requirements.get(t.dst)?.name??this.elements.get(t.dst)?.name,label:`&lt;&lt;${t.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",r?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:r?"normal":"dashed",arrowTypeStart:r?"requirement_contains":"",arrowTypeEnd:r?"":"requirement_arrow",look:e.look,labelType:"markdown"};s.push(n)}return{nodes:t,edges:s,other:{},config:e,direction:this.getDirection()}}},m=(0,h.K)(()=>{let e=(0,o.zj)(),{theme:t,themeVariables:s}=e,{bkgColorArray:i,borderColorArray:r}=s;if(!(0,a.P1)(t,r))return"";let n=(0,a.rq)(e.look),l="",c=(0,a.Ic)(i);for(let e=0;e<(0,a.Hu)(r);e++){let t=r[e],s=c?`fill: ${i[e%i.length]};`:"";l+=`
2
+
3
+ [data-look="${n}"][data-color-id="color-${e}"].node path {
4
+ stroke: ${t};
5
+ ${s}
6
+ }
7
+
8
+ [data-look="${n}"][data-color-id="color-${e}"].node rect {
9
+ stroke: ${t};
10
+ ${s}
11
+ }
12
+ `}return l},"genColor"),d=(0,h.K)(e=>{let{look:t,themeVariables:s}=(0,o.zj)(),{requirementEdgeLabelBackground:i}=s;return`
13
+ ${m()}
14
+ marker {
15
+ fill: ${e.relationColor};
16
+ stroke: ${e.relationColor};
17
+ }
18
+
19
+ marker.cross {
20
+ stroke: ${e.lineColor};
21
+ }
22
+
23
+ svg {
24
+ font-family: ${e.fontFamily};
25
+ font-size: ${e.fontSize};
26
+ }
27
+
28
+ .reqBox {
29
+ fill: ${e.requirementBackground};
30
+ fill-opacity: 1.0;
31
+ stroke: ${e.requirementBorderColor};
32
+ stroke-width: ${e.requirementBorderSize};
33
+ }
34
+
35
+ .reqTitle, .reqLabel{
36
+ fill: ${e.requirementTextColor};
37
+ }
38
+ .reqLabelBox {
39
+ fill: ${e.relationLabelBackground};
40
+ fill-opacity: 1.0;
41
+ }
42
+
43
+ .req-title-line {
44
+ stroke: ${e.requirementBorderColor};
45
+ stroke-width: ${e.requirementBorderSize};
46
+ }
47
+ .relationshipLine {
48
+ stroke: ${e.relationColor};
49
+ stroke-width: ${"neo"===t?e.strokeWidth:"1px"};
50
+ }
51
+ .relationshipLabel {
52
+ fill: ${e.relationLabelColor};
53
+ }
54
+ .edgeLabel {
55
+ background-color: ${e.edgeLabelBackground};
56
+ }
57
+ .edgeLabel .label rect {
58
+ fill: ${e.edgeLabelBackground};
59
+ }
60
+ .edgeLabel .label text {
61
+ fill: ${e.relationLabelColor};
62
+ }
63
+ .divider {
64
+ stroke: ${e.nodeBorder};
65
+ stroke-width: 1;
66
+ }
67
+ .label {
68
+ font-family: ${e.fontFamily};
69
+ color: ${e.nodeTextColor||e.textColor};
70
+ }
71
+ .label text,span {
72
+ fill: ${e.nodeTextColor||e.textColor};
73
+ color: ${e.nodeTextColor||e.textColor};
74
+ }
75
+ .labelBkg {
76
+ background-color: ${i??e.edgeLabelBackground};
77
+ }
78
+
79
+ `},"getStyles"),E={};(0,h.V)(E,{draw:()=>p});var p=(0,h.K)(async function(e,t,s,a){c.R.info("REF0:"),c.R.info("Drawing requirement diagram (unified)",t);let{securityLevel:h,state:u,layout:y,look:m}=(0,o.D7)(),d=a.db.getData(),E=(0,i.A)(t,h);d.type=a.type,d.layoutAlgorithm=(0,n.q7)(y),d.nodeSpacing=u?.nodeSpacing??50,d.rankSpacing=u?.rankSpacing??50,d.markers="neo"===m?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],d.diagramId=t,await (0,n.XX)(d,E),l._K.insertTitle(E,"requirementDiagramTitleText",u?.titleTopMargin??25,a.db.getDiagramTitle()),(0,r.P)(E,8,"requirementDiagram",u?.useMaxWidth??!0)},"draw"),R={parser:u,get db(){return new y},renderer:E,styles:d}},62240:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(88252),r=s(93962),n=(0,i.K)((e,t)=>{let s;return"sandbox"===t&&(s=(0,r.Lt)("#i"+e)),("sandbox"===t?(0,r.Lt)(s.nodes()[0].contentDocument.body):(0,r.Lt)("body")).select(`[id="${e}"]`)},"getDiagramElement")},77996:(e,t,s)=>{s.d(t,{P:()=>a});var i=s(92826),r=s(58442),n=s(88252),a=(0,n.K)((e,t,s,n)=>{e.attr("class",s);let{width:a,height:c,x:h,y:u}=l(e,t);(0,i.a$)(e,c,a,n);let y=o(h,u,a,c,t);e.attr("viewBox",y),r.R.debug(`viewBox configured: ${y} with padding: ${t}`)},"setupViewPortForSVG"),l=(0,n.K)((e,t)=>{let s=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*t,height:s.height+2*t,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),o=(0,n.K)((e,t,s,i,r)=>`${e-r} ${t-r} ${s} ${i}`,"createViewBox")}}]);