@1agents/dsh-a2a 0.0.0-stage → 0.1.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 (144) hide show
  1. package/README.md +57 -2
  2. package/cordis.patch.yml +10 -0
  3. package/dist/approvals.js +49 -0
  4. package/dist/cli.js +15 -0
  5. package/dist/executor.js +121 -0
  6. package/dist/index.js +18 -0
  7. package/dist/sdk-runtime.js +116 -0
  8. package/dist/server.js +46 -0
  9. package/dist/shared/a2a/workbench-ui.js +182 -0
  10. package/dist/workbench-ui/app.css +453 -0
  11. package/dist/workbench-ui/app.js +13 -0
  12. package/dist/workbench-ui/chunk-23JHGYT3.js +1 -0
  13. package/dist/workbench-ui/chunk-3H6STGPV.js +1 -0
  14. package/dist/workbench-ui/chunk-3SNBBMGH.js +1 -0
  15. package/dist/workbench-ui/chunk-3XJZ6DIE.js +1 -0
  16. package/dist/workbench-ui/chunk-44KDLLKJ.js +1 -0
  17. package/dist/workbench-ui/chunk-46H7FU5Y.js +7 -0
  18. package/dist/workbench-ui/chunk-4N44QPL7.js +1 -0
  19. package/dist/workbench-ui/chunk-4YN4BS7I.js +1 -0
  20. package/dist/workbench-ui/chunk-53EG4IVQ.js +96 -0
  21. package/dist/workbench-ui/chunk-5FIPUNR4.js +1 -0
  22. package/dist/workbench-ui/chunk-6DWWYA6G.js +2 -0
  23. package/dist/workbench-ui/chunk-6FU3T633.js +99 -0
  24. package/dist/workbench-ui/chunk-6XKIHRA4.js +1 -0
  25. package/dist/workbench-ui/chunk-7GIX43Y5.js +1 -0
  26. package/dist/workbench-ui/chunk-7Q4WBGX6.js +4 -0
  27. package/dist/workbench-ui/chunk-A3BQM7HR.js +1 -0
  28. package/dist/workbench-ui/chunk-AFCFDDOP.js +24 -0
  29. package/dist/workbench-ui/chunk-AG67EUYD.js +89 -0
  30. package/dist/workbench-ui/chunk-AGJHMMTN.js +1 -0
  31. package/dist/workbench-ui/chunk-AO6JUBV6.js +41 -0
  32. package/dist/workbench-ui/chunk-AUSLTP43.js +72 -0
  33. package/dist/workbench-ui/chunk-AVZL46TT.js +1 -0
  34. package/dist/workbench-ui/chunk-AZRIGIV2.js +168 -0
  35. package/dist/workbench-ui/chunk-B2LIVH37.js +1 -0
  36. package/dist/workbench-ui/chunk-B7YX5TR5.js +1 -0
  37. package/dist/workbench-ui/chunk-BCB4X4XX.js +1 -0
  38. package/dist/workbench-ui/chunk-BCRQUL2A.js +88 -0
  39. package/dist/workbench-ui/chunk-BI6UHHQP.js +1 -0
  40. package/dist/workbench-ui/chunk-BLSLQ4AQ.js +120 -0
  41. package/dist/workbench-ui/chunk-C3QSRS6E.js +1 -0
  42. package/dist/workbench-ui/chunk-CK7M2PJ3.js +62 -0
  43. package/dist/workbench-ui/chunk-CM6LZ7TU.js +1 -0
  44. package/dist/workbench-ui/chunk-CP63H27F.js +36 -0
  45. package/dist/workbench-ui/chunk-CPUMMIS2.js +70 -0
  46. package/dist/workbench-ui/chunk-CSEIBI5U.js +2 -0
  47. package/dist/workbench-ui/chunk-CUS65DKZ.js +161 -0
  48. package/dist/workbench-ui/chunk-CVQY7TNC.js +1 -0
  49. package/dist/workbench-ui/chunk-D6S3XBIX.js +106 -0
  50. package/dist/workbench-ui/chunk-E253Y562.js +1 -0
  51. package/dist/workbench-ui/chunk-EADDJUDC.js +1 -0
  52. package/dist/workbench-ui/chunk-EBGJ3YXG.js +206 -0
  53. package/dist/workbench-ui/chunk-EKPVZ3WY.js +8 -0
  54. package/dist/workbench-ui/chunk-EQDCEAFY.js +1 -0
  55. package/dist/workbench-ui/chunk-ES3SSDJY.js +40 -0
  56. package/dist/workbench-ui/chunk-ESFD2H7N.js +231 -0
  57. package/dist/workbench-ui/chunk-FVOHPMS6.js +1 -0
  58. package/dist/workbench-ui/chunk-FXMQAGVT.js +1 -0
  59. package/dist/workbench-ui/chunk-GGTADRXD.js +24 -0
  60. package/dist/workbench-ui/chunk-GHIVPGNQ.js +1 -0
  61. package/dist/workbench-ui/chunk-GLU2YQV2.js +1 -0
  62. package/dist/workbench-ui/chunk-GOCKBYSM.js +1 -0
  63. package/dist/workbench-ui/chunk-H2KMMTJB.js +1 -0
  64. package/dist/workbench-ui/chunk-HGVLDNPP.js +39 -0
  65. package/dist/workbench-ui/chunk-HSAVC5GY.js +1 -0
  66. package/dist/workbench-ui/chunk-HSEAD2JH.js +1 -0
  67. package/dist/workbench-ui/chunk-HSIHOBTY.js +1 -0
  68. package/dist/workbench-ui/chunk-IZXOKUGG.js +67 -0
  69. package/dist/workbench-ui/chunk-JFT2LC2T.js +1 -0
  70. package/dist/workbench-ui/chunk-JHL3ZDYK.js +3 -0
  71. package/dist/workbench-ui/chunk-JMORLCZG.js +257 -0
  72. package/dist/workbench-ui/chunk-JR4SIX7A.js +1 -0
  73. package/dist/workbench-ui/chunk-K23HAGEH.js +30 -0
  74. package/dist/workbench-ui/chunk-K43JDCBH.js +1 -0
  75. package/dist/workbench-ui/chunk-KINKFJY7.js +1 -0
  76. package/dist/workbench-ui/chunk-KKQSA4LI.js +2 -0
  77. package/dist/workbench-ui/chunk-KOUZX3UX.js +1 -0
  78. package/dist/workbench-ui/chunk-KR4DRHW2.js +78 -0
  79. package/dist/workbench-ui/chunk-KT4DJNOR.js +1 -0
  80. package/dist/workbench-ui/chunk-KTPNKRRZ.js +292 -0
  81. package/dist/workbench-ui/chunk-LFHIPGSU.js +7 -0
  82. package/dist/workbench-ui/chunk-LWDL4HZB.js +125 -0
  83. package/dist/workbench-ui/chunk-MVYC3CY4.js +1 -0
  84. package/dist/workbench-ui/chunk-NWUPALCY.js +129 -0
  85. package/dist/workbench-ui/chunk-NY7C662Z.js +1 -0
  86. package/dist/workbench-ui/chunk-O76WTHWP.js +1 -0
  87. package/dist/workbench-ui/chunk-OTF7YHRE.js +162 -0
  88. package/dist/workbench-ui/chunk-P6TKKRKP.js +1 -0
  89. package/dist/workbench-ui/chunk-PFHOOWV3.js +1 -0
  90. package/dist/workbench-ui/chunk-PUQLANIM.js +1 -0
  91. package/dist/workbench-ui/chunk-PZCGBYVO.js +1 -0
  92. package/dist/workbench-ui/chunk-QOHUZGP4.js +1 -0
  93. package/dist/workbench-ui/chunk-QSEG3OFF.js +1 -0
  94. package/dist/workbench-ui/chunk-QYPOXZIA.js +84 -0
  95. package/dist/workbench-ui/chunk-R6SOF3JC.js +1 -0
  96. package/dist/workbench-ui/chunk-RCLOYU5F.js +1 -0
  97. package/dist/workbench-ui/chunk-RSRUP64S.js +1 -0
  98. package/dist/workbench-ui/chunk-RVAIT6JW.js +1 -0
  99. package/dist/workbench-ui/chunk-S2CCN3II.js +1 -0
  100. package/dist/workbench-ui/chunk-S2Q52W46.js +1 -0
  101. package/dist/workbench-ui/chunk-S2W5THJ5.js +1 -0
  102. package/dist/workbench-ui/chunk-S6ZQZNOX.js +1 -0
  103. package/dist/workbench-ui/chunk-S74PLMMS.js +1 -0
  104. package/dist/workbench-ui/chunk-S7C4HKEY.js +1 -0
  105. package/dist/workbench-ui/chunk-SDTB3Q65.js +1 -0
  106. package/dist/workbench-ui/chunk-SLPRGYUV.js +32 -0
  107. package/dist/workbench-ui/chunk-SQE76S5B.js +1 -0
  108. package/dist/workbench-ui/chunk-SSDZPVPW.js +1 -0
  109. package/dist/workbench-ui/chunk-SVI7DGIE.js +1 -0
  110. package/dist/workbench-ui/chunk-T6QKLZ4H.js +62 -0
  111. package/dist/workbench-ui/chunk-TJNRPTFL.js +1 -0
  112. package/dist/workbench-ui/chunk-TP6U4EDH.js +2 -0
  113. package/dist/workbench-ui/chunk-TYAAT3GQ.js +1 -0
  114. package/dist/workbench-ui/chunk-U6OCY4ZH.js +1 -0
  115. package/dist/workbench-ui/chunk-UAN3NLRF.js +1 -0
  116. package/dist/workbench-ui/chunk-UMLU3FIX.js +1 -0
  117. package/dist/workbench-ui/chunk-URIY2OTM.js +1 -0
  118. package/dist/workbench-ui/chunk-V2NUKAA7.js +38 -0
  119. package/dist/workbench-ui/chunk-V4QLL4TE.js +139 -0
  120. package/dist/workbench-ui/chunk-VASHXUK4.js +2 -0
  121. package/dist/workbench-ui/chunk-VJLIWNIU.js +1 -0
  122. package/dist/workbench-ui/chunk-VQNQFBID.js +1 -0
  123. package/dist/workbench-ui/chunk-VSIWU7XA.js +3 -0
  124. package/dist/workbench-ui/chunk-VSJASPUZ.js +321 -0
  125. package/dist/workbench-ui/chunk-VXPNUNUX.js +3 -0
  126. package/dist/workbench-ui/chunk-WBKLDCV6.js +1 -0
  127. package/dist/workbench-ui/chunk-WOKJM3FY.js +1 -0
  128. package/dist/workbench-ui/chunk-X3U3NA3X.js +34 -0
  129. package/dist/workbench-ui/chunk-XBYU7M4J.js +1 -0
  130. package/dist/workbench-ui/chunk-XBZAO4ID.js +10 -0
  131. package/dist/workbench-ui/chunk-XLLPZ2WO.js +1 -0
  132. package/dist/workbench-ui/chunk-YFVL4NJL.js +1 -0
  133. package/dist/workbench-ui/chunk-YRFQENM4.js +1 -0
  134. package/dist/workbench-ui/chunk-YUADQVB2.js +1 -0
  135. package/dist/workbench-ui/chunk-Z3TCAKM5.js +1 -0
  136. package/dist/workbench-ui/chunk-Z6QR6FRE.js +10 -0
  137. package/dist/workbench-ui/chunk-ZJPSORPP.js +3 -0
  138. package/dist/workbench-ui/chunk-ZLGCSTR2.js +15 -0
  139. package/dist/workbench-ui/chunk-ZLR4SG5X.js +1 -0
  140. package/dist/workbench-ui/chunk-ZND3TTGF.js +1 -0
  141. package/dist/workbench-ui/chunk-ZOP3ZYH7.js +2 -0
  142. package/dist/workbench-ui/index.html +14 -0
  143. package/dist/workbench.js +53 -0
  144. package/package.json +25 -4
@@ -0,0 +1,3 @@
1
+ function Gn(n,r){this.v=n,this.k=r}function je(n,r){(r==null||r>n.length)&&(r=n.length);for(var s=0,c=Array(r);s<r;s++)c[s]=n[s];return c}function Wn(n){if(Array.isArray(n))return n}function Bn(n,r){var s=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var c,u,p,h,k=[],E=!0,U=!1;try{if(p=(s=s.call(n)).next,r===0){if(Object(s)!==s)return;E=!1}else for(;!(E=(c=p.call(s)).done)&&(k.push(c.value),k.length!==r);E=!0);}catch(R){U=!0,u=R}finally{try{if(!E&&s.return!=null&&(h=s.return(),Object(h)!==h))return}finally{if(U)throw u}}return k}}function Yn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jn(n,r){return Wn(n)||Bn(n,r)||Xn(n,r)||Yn()}function Xn(n,r){if(n){if(typeof n=="string")return je(n,r);var s={}.toString.call(n).slice(8,-1);return s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set"?Array.from(n):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?je(n,r):void 0}}function xt(n){var r,s;function c(p,h){try{var k=n[p](h),E=k.value,U=E instanceof Gn;Promise.resolve(U?E.v:E).then(function(R){if(U){var x=p==="return"&&E.k?p:"next";if(!E.k||R.done)return c(x,R);R=n[x](R).value}u(!!k.done,R)},function(R){c("throw",R)})}catch(R){u(2,R)}}function u(p,h){p===2?r.reject(h):r.resolve({value:h,done:p}),(r=r.next)?c(r.key,r.arg):s=null}this._invoke=function(p,h){return new Promise(function(k,E){var U={key:p,arg:h,resolve:k,reject:E,next:null};s?s=s.next=U:(r=s=U,c(p,h))})},typeof n.return!="function"&&(this.return=void 0)}xt.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},xt.prototype.next=function(n){return this._invoke("next",n)},xt.prototype.throw=function(n){return this._invoke("throw",n)},xt.prototype.return=function(n){return this._invoke("return",n)};var sn=Object.entries,Xe=Object.setPrototypeOf,$n=Object.isFrozen,Vn=Object.getPrototypeOf,qn=Object.getOwnPropertyDescriptor,b=Object.freeze,O=Object.seal,ut=Object.create,ln=typeof Reflect<"u"&&Reflect,ce=ln.apply,ue=ln.construct;b||(b=function(r){return r});O||(O=function(r){return r});ce||(ce=function(r,s){for(var c=arguments.length,u=new Array(c>2?c-2:0),p=2;p<c;p++)u[p-2]=arguments[p];return r.apply(s,u)});ue||(ue=function(r){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return new r(...c)});var Z=S(Array.prototype.forEach);Array.prototype.indexOf;var Kn=S(Array.prototype.lastIndexOf),$e=S(Array.prototype.pop),_t=S(Array.prototype.push);Array.prototype.slice;var Zn=S(Array.prototype.splice),ft=Array.isArray,At=S(String.prototype.toLowerCase),oe=S(String.prototype.toString),Ve=S(String.prototype.match),gt=S(String.prototype.replace),qe=S(String.prototype.indexOf),Jn=S(String.prototype.trim),Qn=S(Number.prototype.toString),to=S(Boolean.prototype.toString),Ke=typeof BigInt>"u"?null:S(BigInt.prototype.toString),Ze=typeof Symbol>"u"?null:S(Symbol.prototype.toString),I=S(Object.prototype.hasOwnProperty),Et=S(Object.prototype.toString),w=S(RegExp.prototype.test),Y=eo(TypeError);function S(n){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return ce(n,r,c)}}function eo(n){return function(){for(var r=arguments.length,s=new Array(r),c=0;c<r;c++)s[c]=arguments[c];return ue(n,s)}}function d(n,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:At;if(Xe&&Xe(n,null),!ft(r))return n;let c=r.length;for(;c--;){let u=r[c];if(typeof u=="string"){let p=s(u);p!==u&&($n(r)||(r[c]=p),u=p)}n[u]=!0}return n}function no(n){for(let r=0;r<n.length;r++)I(n,r)||(n[r]=null);return n}function C(n){let r=ut(null);for(let c of sn(n)){var s=jn(c,2);let u=s[0],p=s[1];I(n,u)&&(ft(p)?r[u]=no(p):p&&typeof p=="object"&&p.constructor===Object?r[u]=C(p):r[u]=p)}return r}function oo(n){switch(typeof n){case"string":return n;case"number":return Qn(n);case"boolean":return to(n);case"bigint":return Ke?Ke(n):"0";case"symbol":return Ze?Ze(n):"Symbol()";case"undefined":return Et(n);case"function":case"object":{if(n===null)return Et(n);let r=n,s=P(r,"toString");if(typeof s=="function"){let c=s(r);return typeof c=="string"?c:Et(c)}return Et(n)}default:return Et(n)}}function P(n,r){for(;n!==null;){let c=qn(n,r);if(c){if(c.get)return S(c.get);if(typeof c.value=="function")return S(c.value)}n=Vn(n)}function s(){return null}return s}function ro(n){try{return w(n,""),!0}catch{return!1}}var Je=b(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),re=b(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ie=b(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),io=b(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ae=b(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ao=b(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qe=b(["#text"]),tn=b(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),se=b(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),en=b(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),kt=b(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),so=O(/{{[\w\W]*|^[\w\W]*}}/g),lo=O(/<%[\w\W]*|^[\w\W]*%>/g),co=O(/\${[\w\W]*/g),uo=O(/^data-[\-\w.\u00B7-\uFFFF]+$/),fo=O(/^aria-[\-\w]+$/),nn=O(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),po=O(/^(?:\w+script|data):/i),mo=O(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ho=O(/^html$/i),To=O(/^[a-z][.\w]*(-[.\w]+)+$/i),on=O(/<[/\w!]/g),rn=O(/<[/\w]/g),_o=O(/<\/no(script|embed|frames)/i),go=O(/\/>/i),v={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},cn=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Eo=b(d({},cn)),Ao=(function(){let n={};return Z(cn,r=>{n[r]=O(new RegExp("</"+r+"(?=[\\t\\n\\f\\r />])","i"))}),b(n)})(),yo=function(){return typeof window>"u"?null:window},So=function(r,s){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let c=null,u="data-tt-policy-suffix";s&&s.hasAttribute(u)&&(c=s.getAttribute(u));let p="dompurify"+(c?"#"+c:"");try{return r.createPolicy(p,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},an=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},j=function(r,s,c,u){return I(r,s)&&ft(r[s])?d(u.base?C(u.base):{},r[s],u.transform):c},le=function(r,s,c){let u=I(r,s)?r[s]:void 0;return u&&typeof u=="object"?C(u):c()};function un(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yo(),r=i=>un(i);if(r.version="3.4.16",r.removed=[],!n||!n.document||n.document.nodeType!==v.document||!n.Element)return r.isSupported=!1,r;let s=n.document,c=s,u=c.currentScript;n.DocumentFragment;let p=n.HTMLTemplateElement,h=n.Node,k=n.Element,E=n.NodeFilter;n.NamedNodeMap===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let U=n.DOMParser,R=n.trustedTypes,x=k.prototype,fn=P(x,"cloneNode"),Ut=P(x,"remove"),fe=P(x,"removeAttributeNode"),pn=P(x,"nextSibling"),J=P(x,"childNodes"),Q=P(x,"parentNode"),pe=P(x,"shadowRoot"),Ft=P(x,"attributes"),X=h&&h.prototype?P(h.prototype,"nodeType"):null,tt=h&&h.prototype?P(h.prototype,"nodeName"):null,yt=h&&h.prototype?P(h.prototype,"ownerDocument"):null,pt=function(t){return X?X(t):t.nodeType},zt=function(t){return tt?tt(t):t.nodeName};if(typeof p=="function"){let i=s.createElement("template");i.content&&i.content.ownerDocument&&(s=i.content.ownerDocument)}let D,$="",Ht,me=!1,mt=0,de=function(){if(mt>0)throw Y('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},et=function(t){de(),mt++;try{return D.createHTML(t)}finally{mt--}},mn=function(t){de(),mt++;try{return D.createScriptURL(t)}finally{mt--}},dn=function(){return me||(Ht=So(R,u),me=!0),Ht},St=s,Gt=St.implementation,he=St.createNodeIterator,hn=St.createDocumentFragment,Tn=St.getElementsByTagName,_n=c.importNode,T=an();r.isSupported=typeof sn=="function"&&typeof Q=="function"&&Gt&&Gt.createHTMLDocument!==void 0;let gn=so,En=lo,An=co,yn=uo,Sn=fo,bn=po,Te=mo,On=To,_e=nn,_=null,Wt=d({},[...Je,...re,...ie,...ae,...Qe]),g=null,Bt=d({},[...tn,...se,...en,...kt]),F=Object.seal(ut(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),dt=null,ge=null,G=Object.seal(ut(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ee=!0,Yt=!0,Ae=!1,ye=!0,W=!1,V=!0,q=!1,jt=!1,bt=null,Ot=null,Xt=!1,nt=!1,Rt=!1,wt=!1,Se=!0,be=!1,Oe="user-content-",$t=!0,Vt=!1,ot={},rt=null,Re=d({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),we=null,Le=d({},["audio","video","img","source","image","track"]),De=null,Ie=d({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Lt="http://www.w3.org/1998/Math/MathML",Dt="http://www.w3.org/2000/svg",z="http://www.w3.org/1999/xhtml",it=z,qt=!1,Kt=null,Rn=d({},[Lt,Dt,z],oe),Ne=b(["mi","mo","mn","ms","mtext"]),Zt=d({},Ne),ve=b(["annotation-xml"]),Jt=d({},ve),wn=d({},["title","style","font","a","script"]),ht=null,Ln=["application/xhtml+xml","text/html"],Dn="text/html",y=null,at=null,In=s.createElement("form"),Ce=function(t){return t instanceof RegExp||t instanceof Function},Qt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(at&&at===t)return;(!t||typeof t!="object")&&(t={}),t=C(t),ht=Ln.indexOf(t.PARSER_MEDIA_TYPE)===-1?Dn:t.PARSER_MEDIA_TYPE,y=ht==="application/xhtml+xml"?oe:At,_=j(t,"ALLOWED_TAGS",Wt,{transform:y}),g=j(t,"ALLOWED_ATTR",Bt,{transform:y}),Kt=j(t,"ALLOWED_NAMESPACES",Rn,{transform:oe}),De=j(t,"ADD_URI_SAFE_ATTR",Ie,{transform:y,base:Ie}),we=j(t,"ADD_DATA_URI_TAGS",Le,{transform:y,base:Le}),rt=j(t,"FORBID_CONTENTS",Re,{transform:y}),dt=j(t,"FORBID_TAGS",C({}),{transform:y}),ge=j(t,"FORBID_ATTR",C({}),{transform:y}),ot=I(t,"USE_PROFILES")?t.USE_PROFILES&&typeof t.USE_PROFILES=="object"?C(t.USE_PROFILES):t.USE_PROFILES:!1,Ee=t.ALLOW_ARIA_ATTR!==!1,Yt=t.ALLOW_DATA_ATTR!==!1,Ae=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ye=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,W=t.SAFE_FOR_TEMPLATES||!1,V=t.SAFE_FOR_XML!==!1,q=t.WHOLE_DOCUMENT||!1,nt=t.RETURN_DOM||!1,Rt=t.RETURN_DOM_FRAGMENT||!1,wt=t.RETURN_TRUSTED_TYPE||!1,Xt=t.FORCE_BODY||!1,Se=t.SANITIZE_DOM!==!1,be=t.SANITIZE_NAMED_PROPS||!1,$t=t.KEEP_CONTENT!==!1,Vt=t.IN_PLACE||!1,_e=ro(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:nn,it=typeof t.NAMESPACE=="string"?t.NAMESPACE:z,Zt=le(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>d({},Ne)),Jt=le(t,"HTML_INTEGRATION_POINTS",()=>d({},ve));let e=le(t,"CUSTOM_ELEMENT_HANDLING",()=>ut(null));if(F=ut(null),I(e,"tagNameCheck")&&Ce(e.tagNameCheck)&&(F.tagNameCheck=e.tagNameCheck),I(e,"attributeNameCheck")&&Ce(e.attributeNameCheck)&&(F.attributeNameCheck=e.attributeNameCheck),I(e,"allowCustomizedBuiltInElements")&&typeof e.allowCustomizedBuiltInElements=="boolean"&&(F.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),O(F),W&&(Yt=!1),Rt&&(nt=!0),ot&&(_=d({},Qe),g=ut(null),ot.html===!0&&(d(_,Je),d(g,tn)),ot.svg===!0&&(d(_,re),d(g,se),d(g,kt)),ot.svgFilters===!0&&(d(_,ie),d(g,se),d(g,kt)),ot.mathMl===!0&&(d(_,ae),d(g,en),d(g,kt))),G.tagCheck=null,G.attributeCheck=null,I(t,"ADD_TAGS")&&(typeof t.ADD_TAGS=="function"?G.tagCheck=t.ADD_TAGS:ft(t.ADD_TAGS)&&(_===Wt&&(_=C(_)),d(_,t.ADD_TAGS,y))),I(t,"ADD_ATTR")&&(typeof t.ADD_ATTR=="function"?G.attributeCheck=t.ADD_ATTR:ft(t.ADD_ATTR)&&(g===Bt&&(g=C(g)),d(g,t.ADD_ATTR,y))),I(t,"ADD_FORBID_CONTENTS")&&ft(t.ADD_FORBID_CONTENTS)&&(rt===Re&&(rt=C(rt)),d(rt,t.ADD_FORBID_CONTENTS,y)),$t&&(_["#text"]=!0),q&&d(_,["html","head","body"]),_.table&&(d(_,["tbody"]),delete dt.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw Y('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Y('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let o=D;D=t.TRUSTED_TYPES_POLICY;try{$=et("")}catch(a){throw D=o,a}}else t.TRUSTED_TYPES_POLICY===null?(D=void 0,$=""):(D===void 0&&(D=dn()),D&&typeof $=="string"&&($=et("")));b&&b(t),at=t},Me=d({},[...re,...ie,...io]),Pe=d({},[...ae,...ao]),Nn=function(t,e,o){return e.namespaceURI===z?t==="svg":e.namespaceURI===Lt?t==="svg"&&(o==="annotation-xml"||Zt[o]):!!Me[t]},vn=function(t,e,o){return e.namespaceURI===z?t==="math":e.namespaceURI===Dt?t==="math"&&Jt[o]:!!Pe[t]},Cn=function(t,e,o){return e.namespaceURI===Dt&&!Jt[o]||e.namespaceURI===Lt&&!Zt[o]?!1:!Pe[t]&&(wn[t]||!Me[t])},Mn=function(t){let e=Q(t);(!e||!e.tagName)&&(e={namespaceURI:it,tagName:"template"});let o=At(t.tagName),a=At(e.tagName);return Kt[t.namespaceURI]?t.namespaceURI===Dt?Nn(o,e,a):t.namespaceURI===Lt?vn(o,e,a):t.namespaceURI===z?Cn(o,e,a):!!(ht==="application/xhtml+xml"&&Kt[t.namespaceURI]):!1},B=function(t){_t(r.removed,{element:t});try{Q(t).removeChild(t)}catch{if(Ut(t),!Q(t))throw Y("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},xe=function(t,e,o){try{fe(t,e)}catch{try{t.removeAttribute(o)}catch{}}},It=function(t){Nt(t);let e=J(t);if(e){let a=[];Z(e,l=>{_t(a,l)}),Z(a,l=>{try{Ut(l)}catch{}})}let o=Ft(t);if(o)for(let a=o.length-1;a>=0;--a){let l=o[a],f=l&&l.name;typeof f=="string"&&xe(t,l,f)}},K=function(t,e,o){if(!o)try{o=e.getAttributeNode(t)}catch{o=null}_t(r.removed,{attribute:o||null,from:e});try{o?fe(e,o):e.removeAttribute(t)}catch{try{e.removeAttribute(t)}catch{}}if(t==="is")if(nt||Rt)try{B(e)}catch{}else try{e.setAttribute(t,"")}catch{}},Pn=function(t){let e=Ft(t);if(e)for(let o=e.length-1;o>=0;--o){let a=e[o],l=a&&a.name;typeof l!="string"||g[y(l)]||xe(t,a,l)}},Nt=function(t){let e=[t];for(;e.length>0;){let o=e.pop();pt(o)===v.element&&Pn(o);let a=J(o);if(a)for(let l=a.length-1;l>=0;--l)e.push(a[l])}},ke=function(t,e){return V?t==="patchsrc"?!0:t==="for"&&e!=="label"&&e!=="output":!1},xn=function(t){if(!V)return;let e=[t];for(;e.length>0;){let o=e.pop(),a=pt(o);if(a===v.processingInstruction||a===v.comment&&w(rn,o.data)){try{Ut(o)}catch{}continue}if(a===v.element){let f=o,m=y(zt(o));try{f.hasAttribute&&f.hasAttribute("patchsrc")&&f.removeAttribute("patchsrc"),f.hasAttribute&&f.hasAttribute("for")&&ke("for",m)&&f.removeAttribute("for")}catch{}}let l=J(o);if(l)for(let f=l.length-1;f>=0;--f)e.push(l[f])}},Ue=function(t){let e=null,o=null;if(Xt)t="<remove></remove>"+t;else{let f=Ve(t,/^[\r\n\t ]+/);o=f&&f[0]}ht==="application/xhtml+xml"&&it===z&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let a=D?et(t):t;if(it===z)try{e=new U().parseFromString(a,ht)}catch{}if(!e||!e.documentElement){e=Gt.createDocument(it,"template",null);try{e.documentElement.innerHTML=qt?$:a}catch{}}let l=e.body||e.documentElement;return t&&o&&l.insertBefore(s.createTextNode(o),l.childNodes[0]||null),it===z?Tn.call(e,q?"html":"body")[0]:q?e.documentElement:l},Fe=function(t){let e=yt?yt(t):t.ownerDocument;return he.call(e||t,t,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},vt=function(t){return t=gt(t,gn," "),t=gt(t,En," "),t=gt(t,An," "),t},te=function(t){var e;t.normalize();let o=yt?yt(t):t.ownerDocument,a=he.call(o||t,t,E.SHOW_TEXT|E.SHOW_COMMENT|E.SHOW_CDATA_SECTION|E.SHOW_PROCESSING_INSTRUCTION,null),l=a.nextNode();for(;l;)l.data=vt(l.data),l=a.nextNode();let f=(e=t.querySelectorAll)===null||e===void 0?void 0:e.call(t,"template");f&&Z(f,m=>{st(m.content)&&te(m.content)})},Ct=function(t){let e=tt?tt(t):null;return typeof e!="string"||y(e)!=="form"?!1:typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||t.attributes!==Ft(t)||typeof t.removeAttribute!="function"||typeof t.removeAttributeNode!="function"||typeof t.getAttributeNode!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function"||t.nodeType!==X(t)||t.childNodes!==J(t)},st=function(t){if(!X||typeof t!="object"||t===null)return!1;try{return X(t)===v.documentFragment}catch{return!1}},Tt=function(t){if(!X||typeof t!="object"||t===null)return!1;try{return typeof X(t)=="number"}catch{return!1}};function H(i,t,e){i.length!==0&&Z(i,o=>{o.call(r,t,e,at)})}let kn=function(t,e){return!!(V&&t.hasChildNodes()&&!Tt(t.firstElementChild)&&w(on,t.textContent)&&w(on,t.innerHTML)||V&&t.namespaceURI===z&&Eo[e]&&(Tt(t.firstElementChild)||typeof t.textContent=="string"&&w(Ao[e],t.textContent))||t.nodeType===v.processingInstruction||V&&t.nodeType===v.comment&&w(rn,t.data))},Mt=function(t,e){if(t instanceof RegExp)return w(t,e);if(t instanceof Function){for(var o=arguments.length,a=new Array(o>2?o-2:0),l=2;l<o;l++)a[l-2]=arguments[l];return!!t(e,...a)}return!1},Un=function(t,e,o){if(!dt[e]&&We(e)&&Mt(F.tagNameCheck,e))return!1;if($t&&!rt[e]){let a=Q(t),l=J(t);if(l&&a){let f=l.length;for(let m=f-1;m>=0;--m){let A=t===o?fn(l[m],!0):l[m];a.insertBefore(A,pn(t))}}}return B(t),!0},ze=function(t,e,o,a){return t.length===0?e:e===o||e===a?C(e):e},lt=function(t,e){return t===e||Q(t)!==null?!1:(Vt&&Nt(t),!0)},He=function(t,e){if(H(T.beforeSanitizeElements,t,null),lt(t,e))return!0;if(Ct(t))return B(t),!0;let o=y(zt(t));if(_=ze(T.uponSanitizeElement,_,Wt,bt),H(T.uponSanitizeElement,t,{tagName:o,allowedTags:_}),lt(t,e))return!0;if(kn(t,o))return B(t),!0;if(dt[o]||!(G.tagCheck instanceof Function&&G.tagCheck(o))&&!_[o]){let a=Un(t,o,e);return a===!1&&(H(T.afterSanitizeElements,t,null),lt(t,e))?!0:a}if(pt(t)===v.element&&!Mn(t)||(o==="noscript"||o==="noembed"||o==="noframes")&&w(_o,t.innerHTML))return B(t),!0;if(W&&t.nodeType===v.text){let a=vt(t.textContent);t.textContent!==a&&(_t(r.removed,{element:t.cloneNode()}),t.textContent=a)}return H(T.afterSanitizeElements,t,null),lt(t,e)},Ge=function(t,e,o){if(ge[e]||ke(e,t)||Se&&(e==="id"||e==="name")&&(o in s||o in In))return!1;let a=g[e]||G.attributeCheck instanceof Function&&G.attributeCheck(e,t);return Yt&&w(yn,e)||Ee&&w(Sn,e)?!0:a?De[e]||w(_e,gt(o,Te,""))||(e==="src"||e==="xlink:href"||e==="href")&&t!=="script"&&qe(o,"data:")===0&&we[t]||Ae&&!w(bn,gt(o,Te,""))?!0:!o:We(t)&&Mt(F.tagNameCheck,t)&&Mt(F.attributeNameCheck,e,t)||e==="is"&&F.allowCustomizedBuiltInElements&&Mt(F.tagNameCheck,o)},Fn=d({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),We=function(t){return!Fn[At(t)]&&w(On,t)},zn=function(t,e,o,a){if(D&&typeof R=="object"&&typeof R.getAttributeType=="function"&&!o)switch(R.getAttributeType(t,e)){case"TrustedHTML":return et(a);case"TrustedScriptURL":return mn(a)}return a},Hn=function(t,e,o,a){try{return o?t.setAttributeNS(o,e,a):t.setAttribute(e,a),Ct(t)?(B(t),!1):!0}catch{return K(e,t),!1}},Be=function(t,e){if(H(T.beforeSanitizeAttributes,t,null),lt(t,e))return;let o=t.attributes;if(!o||Ct(t))return;g=ze(T.uponSanitizeAttribute,g,Bt,Ot);let a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:g,forceKeepAttr:void 0},l=o.length,f=y(t.nodeName);for(;l--;){let m=o[l],A=m.name,M=m.namespaceURI,N=m.value,ct=y(A),ne=N,L=A==="value"?ne:Jn(ne),Ye=!1;if(a.attrName=ct,a.attrValue=L,a.keepAttr=!0,a.forceKeepAttr=void 0,H(T.uponSanitizeAttribute,t,a),L=a.attrValue,be&&(ct==="id"||ct==="name")&&qe(L,Oe)!==0&&(K(A,t,m),L=Oe+L,Ye=!0),V&&w(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,L)){K(A,t,m);continue}if(ct==="attributename"&&Ve(L,"href")){K(A,t,m);continue}if(!a.forceKeepAttr){if(!a.keepAttr){K(A,t,m);continue}if(!ye&&w(go,L)){K(A,t,m);continue}if(W&&(L=vt(L)),!Ge(f,ct,L)){K(A,t,m);continue}L=zn(f,ct,M,L),L!==ne&&Hn(t,A,M,L)&&Ye&&$e(r.removed)}}H(T.afterSanitizeAttributes,t,null),lt(t,e)},Pt=function(t){let e=null,o=Fe(t);for(H(T.beforeSanitizeShadowDOM,t,null);e=o.nextNode();)if(H(T.uponSanitizeShadowNode,e,null),He(e,t),Be(e,t),st(e.content)&&Pt(e.content),pt(e)===v.element){let a=pe(e);st(a)&&(ee(a),Pt(a))}H(T.afterSanitizeShadowDOM,t,null)},ee=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let o=e.pop();if(o.shadow){Pt(o.shadow);continue}let a=o.node,l=pt(a)===v.element,f=J(a);if(f)for(let m=f.length-1;m>=0;--m)e.push({node:f[m],shadow:null});if(l){let m=tt?tt(a):null;if(typeof m=="string"&&y(m)==="template"){let A=a.content;st(A)&&e.push({node:A,shadow:null})}}if(l){let m=pe(a);st(m)&&e.push({node:null,shadow:m},{node:m,shadow:null})}}};return r.sanitize=function(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,o=null,a=null,l=null;if(qt=!i,qt&&(i="<!-->"),typeof i!="string"&&!Tt(i)&&(i=oo(i),typeof i!="string"))throw Y("dirty is not a string, aborting");if(!r.isSupported)return i;jt?(_=bt,g=Ot):Qt(t),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(_=C(_)),T.uponSanitizeAttribute.length>0&&(g=C(g)),r.removed=[];let f=Vt&&typeof i!="string"&&Tt(i);if(f){xn(i);let M=zt(i);if(typeof M=="string"){let N=y(M);if(!_[N]||dt[N])throw It(i),Y("root node is forbidden and cannot be sanitized in-place")}if(Ct(i))throw It(i),Y("root node is clobbered and cannot be sanitized in-place");try{ee(i)}catch(N){throw It(i),N}}else if(Tt(i))e=Ue("<!---->"),o=e.ownerDocument.importNode(i,!0),o.nodeType===v.element&&o.nodeName==="BODY"||o.nodeName==="HTML"?e=o:e.appendChild(o),ee(e);else{if(!nt&&!W&&!q&&i.indexOf("<")===-1)return D&&wt?et(i):i;if(e=Ue(i),!e)return nt?null:wt?$:""}e&&Xt&&B(e.firstChild);let m=f?i:e;try{let M=Fe(m);for(;a=M.nextNode();)He(a,m),Be(a,m),st(a.content)&&Pt(a.content)}catch(M){throw f&&(It(i),Z(r.removed,N=>{N.element&&Nt(N.element)})),M}if(f){let M=!1;if(Z(r.removed,N=>{N.element&&(N.element===i&&(M=!0),Nt(N.element))}),M)throw Y("a node selected for removal could not be safely returned; refusing to sanitize in place");return W&&te(i),i}if(nt){if(W&&te(e),Rt)for(l=hn.call(e.ownerDocument);e.firstChild;)l.appendChild(e.firstChild);else l=e;return(g.shadowroot||g.shadowrootmode)&&(l=_n.call(c,l,!0)),l}let A=q?e.outerHTML:e.innerHTML;return q&&_["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&w(ho,e.ownerDocument.doctype.name)&&(A="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
3
+ `+A),W&&(A=vt(A)),D&&wt?et(A):A},r.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qt(i),jt=!0,bt=_,Ot=g},r.clearConfig=function(){at=null,jt=!1,bt=null,Ot=null,D=Ht,$=""},r.isValidAttribute=function(i,t,e){at||Qt({});let o=y(i),a=y(t);return Ge(o,a,e)},r.addHook=function(i,t){typeof t=="function"&&I(T,i)&&_t(T[i],t)},r.removeHook=function(i,t){if(I(T,i)){if(t!==void 0){let e=Kn(T[i],t);return e===-1?void 0:Zn(T[i],e,1)[0]}return $e(T[i])}},r.removeHooks=function(i){I(T,i)&&(T[i]=[])},r.removeAllHooks=function(){T=an()},r}var bo=un();export{bo as a};
@@ -0,0 +1 @@
1
+ import{a as e,b as d,c as o,d as a,e as n,g as i,o as u,x as l,y as s}from"./chunk-CUS65DKZ.js";var m=class extends s{static{e(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},v={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function R(c=n){let r=a(o(c),i),t=a(d({shared:r}),u,v);return r.ServiceRegistry.register(t),{shared:r,Radar:t}}e(R,"createRadarServices");export{v as a,R as b};
@@ -0,0 +1 @@
1
+ import{a as t,b as s,c as u,d as i,e as n,g as o,h as l,w as d,y as h}from"./chunk-CUS65DKZ.js";var m=class extends h{static{t(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},A=class extends d{static{t(this,"ArchitectureValueConverter")}runCustomConverter(c,r,a){if(c.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(c.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(c.name==="ARCH_TITLE"){let e=r.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},C={parser:{TokenBuilder:t(()=>new m,"TokenBuilder"),ValueConverter:t(()=>new A,"ValueConverter")}};function v(c=n){let r=i(u(c),o),a=i(s({shared:r}),l,C);return r.ServiceRegistry.register(a),{shared:r,Architecture:a}}t(v,"createArchitectureServices");export{C as a,v as b};
@@ -0,0 +1,34 @@
1
+ import{a as Pt}from"./chunk-B7YX5TR5.js";import{a as Bt}from"./chunk-44KDLLKJ.js";import{o as Vt}from"./chunk-6DWWYA6G.js";import"./chunk-VJLIWNIU.js";import{N as Dt,S as Rt,T as Ct,U as Nt,V as Ot,W as Lt,X as Ft,Y as jt,c as Et,d as Tt,e as zt,f as lt,j as At,t as ct}from"./chunk-LWDL4HZB.js";import"./chunk-VXPNUNUX.js";import{h as it}from"./chunk-JR4SIX7A.js";import{a as w}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";function rt(t,n){let s=fe(t),e=s.filter(l=>ue(l,t)),i=0,r=0,o=[];if(e.length>1){let l=Wt(e);for(let u=0;u<e.length;++u){let a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){let a=e[u];r+=(f.x+a.x)*(a.y-f.y);let y={x:(a.x+f.x)/2,y:(a.y+f.y)/2},d=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){let p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),T=Math.atan2(f.x-p.x,f.y-p.y),_=T-M;_<0&&(_+=2*Math.PI);let S=T-_/2,g=U(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(d==null||d.width>g)&&(d={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}d!=null&&(o.push(d),i+=ht(d.circle.radius,d.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(U(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=r=0:(i=l.radius*l.radius*Math.PI,o.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-1e-10,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return r/=2,n&&(n.area=i+r,n.arcArea=i,n.polygonArea=r,n.arcs=o,n.innerPoints=e,n.intersectionPoints=s),i+r}function ue(t,n){return n.every(s=>U(t,s)<s.radius+1e-10)}function fe(t){let n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){let i=Gt(t[s],t[e]);for(let r of i)r.parentIndex=[s,e],n.push(r)}return n}function ht(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function U(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function mt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);let e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return ht(t,e)+ht(n,i)}function Gt(t,n){let s=U(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];let r=(e*e-i*i+s*s)/(2*s),o=Math.sqrt(e*e-r*r),l=t.x+r*(n.x-t.x)/s,f=t.y+r*(n.y-t.y)/s,u=-(n.y-t.y)*(o/s),a=-(n.x-t.x)*(o/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Wt(t){let n={x:0,y:0};for(let s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function he(t,n,s,e){e=e||{};let i=e.maxIterations||100,r=e.tolerance||1e-10,o=t(n),l=t(s),f=s-n;if(o*l>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;let a=n+f,y=t(a);if(y*o>=0&&(n=a),Math.abs(f)<r||y===0)return a}return n+f}function dt(t){let n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function qt(t,n){return dt(t).map(()=>dt(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function gt(t){return Math.sqrt($(t,t))}function xt(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function J(t,n,s,e,i){for(let r=0;r<t.length;++r)t[r]=n*s[r]+e*i[r]}function Kt(t,n,s){s=s||{};let e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,r=s.zeroDelta||.001,o=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5,d,b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){let c=n.slice();c[v]=c[v]?c[v]*i:r,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}let T=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(T),s.history){let x=p.map(h=>{let D=h.slice();return D.fx=h.fx,D.id=h.id,D});x.sort((h,D)=>h.id-D.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}d=0;for(let x=0;x<b;++x)d=Math.max(d,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<o&&d<l)break;for(let x=0;x<b;++x){_[x]=0;for(let h=0;h<b;++h)_[x]+=p[h][x];_[x]/=b}let c=p[b];if(J(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)J(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(J(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(J(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let h=1;h<p.length;++h)J(p[h],1-y,p[0],y,p[h]),p[h].fx=t(p[h])}}else M(S)}return p.sort(T),{fx:p[0].fx,x:p[0]}}function de(t,n,s,e,i,r,o){let l=s.fx,f=$(s.fxprime,n),u=l,a=l,y=f,d=0;i=i||1,r=r||1e-6,o=o||.1;function b(p,M,T){for(let _=0;_<16;++_)if(i=(p+M)/2,J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+r*i*f||u>=T)M=i;else{if(Math.abs(y)<=-o*f)return i;y*(M-p)>=0&&(M=p),p=i,T=u}return 0}for(let p=0;p<10;++p){if(J(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+r*i*f||p&&u>=a)return b(d,i,a);if(Math.abs(y)<=-o*f)return i;if(y>=0)return b(i,d,u);a=u,d=i,i*=2}return i}function ge(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()},r=n.slice(),o,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),o=e.fxprime.slice(),xt(o,e.fxprime,-1);for(let a=0;a<u;++a){if(f=de(t,o,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)xt(o,e.fxprime,-1);else{J(r,1,i.fxprime,-1,e.fxprime);let y=$(e.fxprime,e.fxprime),d=Math.max(0,$(r,i.fxprime)/y);J(o,d,o,-1,i.fxprime),l=e,e=i,i=l}if(gt(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function Ht(t,n={}){n.maxIterations=n.maxIterations||500;let s=n.initialLayout||me,e=n.lossFunction||tt,i=xe(t,n),r=s(i,n),o=Object.keys(r),l=[];for(let a of o)l.push(r[a].x),l.push(r[a].y);let u=Kt(a=>{let y={};for(let d=0;d<o.length;++d){let b=o[d];y[b]={x:a[2*d],y:a[2*d+1],radius:r[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<o.length;++a){let y=o[a];r[y].x=u[2*a],r[y].y=u[2*a+1]}return r}var Yt=1e-10;function yt(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Yt?Math.abs(t-n):he(e=>mt(t,n,e)-s,0,t+n)}function xe(t,n={}){let s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){let l=new Map;for(let f of e)for(let u=0;u<f.sets.length;u++){let a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){let d=String(f.sets[y]),b=`${a};${d}`,p=`${d};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(let f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}let r=[],o=new Set;for(let l of e)if(l.sets.length===1)r.push(l.sets[0]);else if(l.sets.length===2){let f=l.sets[0],u=l.sets[1];o.add(i(l.sets)),o.add(i([u,f]))}r.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<r.length;++l){let f=r[l];for(let u=l+1;u<r.length;++u){let a=r[u];o.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function ye(t,n,s){let e=qt(n.length,n.length),i=qt(n.length,n.length);return t.filter(r=>r.sets.length===2).forEach(r=>{let o=s[r.sets[0]],l=s[r.sets[1]],f=Math.sqrt(n[o].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=yt(f,u,r.size);e[o][l]=e[l][o]=a;let y=0;r.size+1e-10>=Math.min(n[o].size,n[l].size)?y=1:r.size<=1e-10&&(y=-1),i[o][l]=i[l][o]=y}),{distances:e,constraints:i}}function pe(t,n,s,e){for(let r=0;r<n.length;++r)n[r]=0;let i=0;for(let r=0;r<s.length;++r){let o=t[2*r],l=t[2*r+1];for(let f=r+1;f<s.length;++f){let u=t[2*f],a=t[2*f+1],y=s[r][f],d=e[r][f],b=(u-o)*(u-o)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;d>0&&p<=y||d<0&&p>=y||(i+=2*M*M,n[2*r]+=4*M*(o-u),n[2*r+1]+=4*M*(l-a),n[2*f]+=4*M*(u-o),n[2*f+1]+=4*M*(a-l))}}return i}function me(t,n={}){let s=ve(t,n),e=n.lossFunction||tt;if(t.length>=8){let i=be(t,n),r=e(i,t),o=e(s,t);r+1e-8<o&&(s=i)}return s}function be(t,n={}){let s=n.restarts||10,e=[],i={};for(let d of t)d.sets.length===1&&(i[d.sets[0]]=e.length,e.push(d));let{distances:r,constraints:o}=ye(t,e,i),l=gt(r.map(gt))/r.length;r=r.map(d=>d.map(b=>b/l));let f=(d,b)=>pe(d,b,r,o),u=null;for(let d=0;d<s;++d){let b=dt(r.length*2).map(Math.random),p=ge(f,b,n);(!u||p.fx<u.fx)&&(u=p)}let a=u.x,y={};for(let d=0;d<e.length;++d){let b=e[d];y[b.sets[0]]={x:a[2*d]*l,y:a[2*d+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(let d of n.history)xt(d.x,l);return y}function ve(t,n){let s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(let y of t)if(y.sets.length===1){let d=y.sets[0];e[d]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[d]=[]}t=t.filter(y=>y.sets.length===2);for(let y of t){let d=y.weight!=null?y.weight:1,b=y.sets[0],p=y.sets[1];y.size+Yt>=Math.min(e[b].size,e[p].size)&&(d=0),i[b].push({set:p,size:y.size,weight:d}),i[p].push({set:b,size:y.size,weight:d})}let r=[];Object.keys(i).forEach(y=>{let d=0;for(let b=0;b<i[y].length;++b)d+=i[y][b].size*i[y][b].weight;r.push({set:y,size:d})});function o(y,d){return d.size-y.size}r.sort(o);let l={};function f(y){return y.set in l}function u(y,d){e[d].x=y.x,e[d].y=y.y,l[d]=!0}u({x:0,y:0},r[0].set);for(let y=1;y<r.length;++y){let d=r[y].set,b=i[d].filter(f),p=e[d];if(b.sort(o),b.length===0)throw"ERROR: missing pairwise overlap information";let M=[];for(var a=0;a<b.length;++a){let S=e[b[a].set],g=yt(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){let v=e[b[m].set],c=yt(p.radius,v.radius,b[m].size),x=Gt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let T=1e50,_=M[0];for(let S of M){e[d].x=S.x,e[d].y=S.y;let g=s(e,t);g<T&&(T=g,_=S)}u(_,d)}return e}function tt(t,n){let s=0;for(let e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){let o=t[e.sets[0]],l=t[e.sets[1]];i=mt(o.radius,l.radius,U(o,l))}else i=rt(e.sets.map(o=>t[o]));let r=e.weight!=null?e.weight:1;s+=r*(i-e.size)*(i-e.size)}return s}function Xt(t,n){let s=0;for(let e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){let l=t[e.sets[0]],f=t[e.sets[1]];i=mt(l.radius,f.radius,U(l,f))}else i=rt(e.sets.map(l=>t[l]));let r=e.weight!=null?e.weight:1,o=Math.log((i+1)/(e.size+1));s+=r*o*o}return s}function ke(t,n,s){if(s==null?t.sort((i,r)=>r.radius-i.radius):t.sort(s),t.length>0){let i=t[0].x,r=t[0].y;for(let o of t)o.x-=i,o.y-=r}if(t.length===2&&U(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){let i=Math.atan2(t[1].x,t[1].y)-n,r=Math.cos(i),o=Math.sin(i);for(let l of t){let f=l.x,u=l.y;l.x=r*f-o*u,l.y=o*f+r*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){let r=t[1].y/(1e-10+t[1].x);for(let o of t){var e=(o.x+r*o.y)/(1+r*r);o.x=2*e-o.x,o.y=2*e*r-o.y}}}}function Ie(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,r){let o=n(i),l=n(r);o.parent=l}for(let i=0;i<t.length;++i)for(let r=i+1;r<t.length;++r){let o=t[i].radius+t[r].radius;U(t[i],t[r])+1e-10<o&&s(t[r],t[i])}let e=new Map;for(let i=0;i<t.length;++i){let r=n(t[i]).parent.setid;e.has(r)||e.set(r,[]),e.get(r).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function pt(t){let n=s=>{let e=t.reduce((r,o)=>Math.max(r,o[s]+o.radius),Number.NEGATIVE_INFINITY),i=t.reduce((r,o)=>Math.min(r,o[s]-o.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Zt(t,n,s){n==null&&(n=Math.PI/2);let e=$t(t).map(u=>Object.assign({},u)),i=Ie(e);for(let u of i){ke(u,n,s);let a=pt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let r=e.bounds,o=(r.xRange.max-r.xRange.min)/50;function l(u,a,y){if(!u)return;let d=u.bounds,b,p;if(a)b=r.xRange.max-d.xRange.min+o;else{b=r.xRange.max-d.xRange.max;let M=(d.xRange.max-d.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;M<0&&(b+=M)}if(y)p=r.yRange.max-d.yRange.min+o;else{p=r.yRange.max-d.yRange.max;let M=(d.yRange.max-d.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;M<0&&(p+=M)}for(let M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,r=pt(e);return Qt(e)}function Jt(t,n,s,e,i){let r=$t(t);n-=2*e,s-=2*e;let{xRange:o,yRange:l}=pt(r);if(o.max===o.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){let b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(o.max-o.min),u=s/(l.max-l.min);let a=Math.min(u,f),y=(n-(o.max-o.min)*a)/2,d=(s-(l.max-l.min)*a)/2;return Qt(r.map(b=>({radius:a*b.radius,x:e+y+(b.x-o.min)*a,y:e+d+(b.y-l.min)*a,setid:b.setid})))}function Qt(t){let n={};for(let s of t)n[s.setid]=s;return n}function $t(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function te(t={}){let n=!1,s=600,e=350,i=15,r=1e3,o=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,d=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,T={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in T)return T[x];var h=T[x]=_[S];return S+=1,S>=_.length&&(S=0),h},m=Ht,v=tt;function c(x){let h=x.datum(),D=new Set;h.forEach(k=>{k.size==0&&k.sets.length==1&&D.add(k.sets[0])}),h=h.filter(k=>!k.sets.some(P=>D.has(P)));let I={},R={};if(h.length>0){let k=m(h,{lossFunction:v,distinct:b});l&&(k=Zt(k,o,d)),I=Jt(k,s,e,i,f),R=ne(I,h,M)}let G={};h.forEach(k=>{k.label&&(G[k.sets]=k.label)});function V(k){if(k.sets in G)return G[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");let N=x.select("svg");n?N.attr("viewBox",`0 0 ${s} ${e}`):N.attr("width",s).attr("height",e);let A={},C=!1;N.selectAll(".venn-area path").each(function(k){let P=this.getAttribute("d");k.sets.length==1&&P&&!b&&(C=!0,A[k.sets[0]]=we(P))});function E(k){return P=>{let et=k.sets.map(Z=>{let Y=A[Z],q=I[Z];return Y||(Y={x:s/2,y:e/2,radius:1}),q||(q={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-P)+q.x*P,y:Y.y*(1-P)+q.y*P,radius:Y.radius*(1-P)+q.radius*P}});return Ut(et,p)}}let O=N.selectAll(".venn-area").data(h,k=>k.sets),B=O.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),L=B.append("path"),F=B.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(L.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),F.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function H(k){return typeof k.transition=="function"?k.transition("venn").duration(r):k}let j=x;C&&typeof j.transition=="function"?(j=H(x),j.selectAll("path").attrTween("d",E)):j.selectAll("path").attr("d",k=>Ut(k.sets.map(P=>I[P])),p);let z=j.selectAll("text").filter(k=>k.sets in R).text(k=>V(k)).attr("x",k=>Math.floor(R[k.sets].x)).attr("y",k=>Math.floor(R[k.sets].y));u&&(C?"on"in z?z.on("end",ut(I,V)):z.each("end",ut(I,V)):z.each(ut(I,V)));let X=H(O.exit()).remove();typeof O.transition=="function"&&X.selectAll("path").attrTween("d",E);let W=X.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(F.style("font-size","0px"),z.style("font-size",y),W.style("font-size","0px")),{circles:I,textCentres:R,nodes:O,enter:B,update:j,exit:X}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(r=x,c):r},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(o=x,c):o},c.orientationOrder=function(x){return arguments.length?(d=x,c):d},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Xt:x,c):v},c}function ut(t,n){return function(s){let e=this,i=t[s.sets[0]].radius||50,r=n(s)||"",o=r.split(/\s+/).reverse(),f=(r.length+o.length)/3,u=o.pop(),a=[u],y=0,d=1.1;e.textContent=null;let b=[];function p(g){let m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=o.pop(),!!u;){a.push(u);let g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}let T=.35-y*d/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${T+m*d}em`)})}}function ft(t,n,s){let e=n[0].radius-U(n[0],t);for(let i=1;i<n.length;++i){let r=n[i].radius-U(n[i],t);r<=e&&(e=r)}for(let i=0;i<s.length;++i){let r=U(s[i],t)-s[i].radius;r<=e&&(e=r)}return e}function ee(t,n,s){let e=[];for(let a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],r=ft(e[0],t,n);for(let a=1;a<e.length;++a){let y=ft(e[a],t,n);y>=r&&(i=e[a],r=y)}let o=Kt(a=>-1*ft({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:o[0],y:o[1]},f=!0;for(let a of t)if(U(l,a)>a.radius){f=!1;break}for(let a of n)if(U(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};let u={};return rt(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?ee(t,[]):Wt(u.arcs.map(a=>a.p1))}function Me(t){let n={},s=Object.keys(t);for(let e of s)n[e]=[];for(let e=0;e<s.length;e++){let i=s[e],r=t[i];for(let o=e+1;o<s.length;++o){let l=s[o],f=t[l],u=U(r,f);u+f.radius<=r.radius+1e-10?n[l].push(i):u+r.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function ne(t,n,s){let e={},i=Me(t);for(let r=0;r<n.length;++r){let o=n[r].sets,l={},f={};for(let d=0;d<o.length;++d){l[o[d]]=!0;let b=i[o[d]];for(let p=0;p<b.length;++p)f[b[p]]=!0}let u=[],a=[];for(let d in t)d in l?u.push(t[d]):d in f||a.push(t[d]);let y=ee(u,a,s);e[o]=y,y.disjoint&&n[r].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return e}function Se(t,n,s){let e=[];return e.push(`
2
+ M`,t,n),e.push(`
3
+ m`,-s,0),e.push(`
4
+ a`,s,s,0,1,0,s*2,0),e.push(`
5
+ a`,s,s,0,1,0,-s*2,0),e.join(" ")}function we(t){let n=t.split(" ");return{x:Number.parseFloat(n[1]),y:Number.parseFloat(n[2]),radius:-Number.parseFloat(n[4])}}function se(t){if(t.length===0)return[];let n={};return rt(t,n),n.arcs}function ie(t,n){if(t.length===0)return"M 0 0";let s=Math.pow(10,n||0),e=n!=null?r=>Math.round(r*s)/s:r=>r;if(t.length==1){let r=t[0].circle;return Se(e(r.x),e(r.y),e(r.radius))}let i=[`
6
+ M`,e(t[0].p2.x),e(t[0].p2.y)];for(let r of t){let o=e(r.circle.radius);i.push(`
7
+ A`,o,o,0,r.large?1:0,r.sweep?1:0,e(r.p1.x),e(r.p1.y))}return i.join(" ")}function Ut(t,n){return ie(se(t),n)}function re(t,n={}){let{lossFunction:s,layoutFunction:e=Ht,normalize:i=!0,orientation:r=Math.PI/2,orientationOrder:o,width:l=600,height:f=350,padding:u=15,scaleToFit:a=!1,symmetricalTextCentre:y=!1,distinct:d,round:b=2}=n,p=e(t,{lossFunction:s==="default"||!s?tt:s==="logRatio"?Xt:s,distinct:d});i&&(p=Zt(p,r,o));let M=Jt(p,l,f,u,a),T=ne(M,t,y),_=new Map(Object.keys(M).map(m=>[m,{set:m,x:M[m].x,y:M[m].y,radius:M[m].radius}])),S=t.map(m=>{let v=m.sets.map(h=>_.get(h)),c=se(v),x=ie(c,b);return{circles:v,arcs:c,path:x,area:m,has:new Set(m.sets)}});function g(m){let v="";for(let c of S)c.has.size>m.length&&m.every(x=>c.has.has(x))&&(v+=" "+c.path);return v}return S.map(({circles:m,arcs:v,path:c,area:x})=>({data:x,text:T[x.sets],circles:m,arcs:v,path:c,distinctPath:c+g(x.sets)}))}var bt=(function(){var t=w(function(S,g,m,v){for(m=m||{},v=S.length;v--;m[S[v]]=g);return m},"o"),n=[5,8],s=[7,8,11,12,17,19,22,24],e=[1,17],i=[1,18],r=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],o=[1,31],l=[1,39],f=[7,8,11,12,17,19,22,24,27],u=[1,57],a=[1,56],y=[1,58],d=[1,59],b=[1,60],p=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],M={trace:w(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:w(function(g,m,v,c,x,h,D){var I=h.length-1;switch(x){case 1:return h[I-1];case 2:case 3:case 4:this.$=[];break;case 5:h[I-1].push(h[I]),this.$=h[I-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=h[I];break;case 8:c.setDiagramTitle(h[I].substr(6)),this.$=h[I].substr(6);break;case 9:c.addSubsetData([h[I]],void 0,void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 10:c.addSubsetData([h[I-1]],h[I],void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 11:c.addSubsetData([h[I-2]],void 0,parseFloat(h[I])),c.setIndentMode&&c.setIndentMode(!0);break;case 12:c.addSubsetData([h[I-3]],h[I-2],parseFloat(h[I])),c.setIndentMode&&c.setIndentMode(!0);break;case 13:if(h[I].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(h[I]),c.addSubsetData(h[I],void 0,void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 14:if(h[I-1].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(h[I-1]),c.addSubsetData(h[I-1],h[I],void 0),c.setIndentMode&&c.setIndentMode(!0);break;case 15:if(h[I-2].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(h[I-2]),c.addSubsetData(h[I-2],void 0,parseFloat(h[I])),c.setIndentMode&&c.setIndentMode(!0);break;case 16:if(h[I-3].length<2)throw new Error("union requires multiple identifiers");c.validateUnionIdentifiers&&c.validateUnionIdentifiers(h[I-3]),c.addSubsetData(h[I-3],h[I-2],parseFloat(h[I])),c.setIndentMode&&c.setIndentMode(!0);break;case 17:case 18:case 19:c.addTextData(h[I-1],h[I],void 0);break;case 20:case 21:c.addTextData(h[I-2],h[I-1],h[I]);break;case 23:c.addStyleData(h[I-1],h[I]);break;case 24:case 25:case 26:var R=c.getCurrentSets();if(!R)throw new Error("text requires set");c.addTextData(R,h[I],void 0);break;case 27:case 28:var R=c.getCurrentSets();if(!R)throw new Error("text requires set");c.addTextData(R,h[I-1],h[I]);break;case 29:case 41:this.$=[h[I]];break;case 30:case 42:this.$=[...h[I-2],h[I]];break;case 31:this.$=[h[I-2],h[I]];break;case 33:this.$=h[I].join(" ");break;case 34:this.$=[h[I]];break;case 35:h[I-1].push(h[I]),this.$=h[I-1];break;case 43:case 44:this.$=h[I];break}},"anonymous"),table:[t(n,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(s,[2,4],{6:5}),t(n,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(s,[2,5]),t(s,[2,6]),t(s,[2,7]),t(s,[2,8]),{13:16,20:e,21:i},{13:20,18:19,20:e,21:i},{13:20,18:21,20:e,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:e,21:i},t(s,[2,9],{14:[1,27],15:[1,28]}),t(r,[2,43]),t(r,[2,44]),t(s,[2,13],{14:[1,29],15:[1,30],27:o}),t(r,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:o},t(s,[2,22]),t(s,[2,24],{14:[1,35]}),t(s,[2,25],{14:[1,36]}),t(s,[2,26]),{20:l,25:37,26:38,27:o},t(s,[2,10],{15:[1,40]}),{16:[1,41]},t(s,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:e,21:i},t(s,[2,17],{14:[1,45]}),t(s,[2,18],{14:[1,46]}),t(s,[2,19]),t(s,[2,27]),t(s,[2,28]),t(s,[2,23],{27:[1,47]}),t(f,[2,29]),{15:[1,48]},{16:[1,49]},t(s,[2,11]),{16:[1,50]},t(s,[2,15]),t(r,[2,42]),t(s,[2,20]),t(s,[2,21]),{20:l,26:51},{16:u,20:a,21:[1,53],28:52,29:54,30:55,31:y,32:d,33:b},t(s,[2,12]),t(s,[2,16]),t(f,[2,30]),t(f,[2,31]),t(f,[2,32]),t(f,[2,33],{30:61,16:u,20:a,31:y,32:d,33:b}),t(p,[2,34]),t(p,[2,36]),t(p,[2,37]),t(p,[2,38]),t(p,[2,39]),t(p,[2,40]),t(p,[2,35])],defaultActions:{6:[2,1]},parseError:w(function(g,m){if(m.recoverable)this.trace(g);else{var v=new Error(g);throw v.hash=m,v}},"parseError"),parse:w(function(g){var m=this,v=[0],c=[],x=[null],h=[],D=this.table,I="",R=0,G=0,V=0,N=2,A=1,C=h.slice.call(arguments,1),E=Object.create(this.lexer),O={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(O.yy[B]=this.yy[B]);E.setInput(g,O.yy),O.yy.lexer=E,O.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var L=E.yylloc;h.push(L);var F=E.options&&E.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function H(K){v.length=v.length-2*K,x.length=x.length-K,h.length=h.length-K}w(H,"popStack");function j(){var K;return K=c.pop()||E.lex()||A,typeof K!="number"&&(K instanceof Array&&(c=K,K=c.pop()),K=m.symbols_[K]||K),K}w(j,"lex");for(var z,X,W,k,P,et,Z={},Y,q,_t,st;;){if(W=v[v.length-1],this.defaultActions[W]?k=this.defaultActions[W]:((z===null||typeof z>"u")&&(z=j()),k=D[W]&&D[W][z]),typeof k>"u"||!k.length||!k[0]){var at="";st=[];for(Y in D[W])this.terminals_[Y]&&Y>N&&st.push("'"+this.terminals_[Y]+"'");E.showPosition?at="Parse error on line "+(R+1)+`:
8
+ `+E.showPosition()+`
9
+ Expecting `+st.join(", ")+", got '"+(this.terminals_[z]||z)+"'":at="Parse error on line "+(R+1)+": Unexpected "+(z==A?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(at,{text:E.match,token:this.terminals_[z]||z,line:E.yylineno,loc:L,expected:st})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+z);switch(k[0]){case 1:v.push(z),x.push(E.yytext),h.push(E.yylloc),v.push(k[1]),z=null,X?(z=X,X=null):(G=E.yyleng,I=E.yytext,R=E.yylineno,L=E.yylloc,V>0&&V--);break;case 2:if(q=this.productions_[k[1]][1],Z.$=x[x.length-q],Z._$={first_line:h[h.length-(q||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(q||1)].first_column,last_column:h[h.length-1].last_column},F&&(Z._$.range=[h[h.length-(q||1)].range[0],h[h.length-1].range[1]]),et=this.performAction.apply(Z,[I,G,R,O.yy,k[1],x,h].concat(C)),typeof et<"u")return et;q&&(v=v.slice(0,-1*q*2),x=x.slice(0,-1*q),h=h.slice(0,-1*q)),v.push(this.productions_[k[1]][0]),x.push(Z.$),h.push(Z._$),_t=D[v[v.length-2]][v[v.length-1]],v.push(_t);break;case 3:return!0}}return!0},"parse")},T=(function(){var S={EOF:1,parseError:w(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:w(function(g,m){return this.yy=m||this.yy||{},this._input=g,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:w(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var m=g.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:w(function(g){var m=g.length,v=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var c=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),v.length-1&&(this.yylineno-=v.length-1);var x=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:v?(v.length===c.length?this.yylloc.first_column:0)+c[c.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:w(function(){return this._more=!0,this},"more"),reject:w(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
10
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:w(function(g){this.unput(this.match.slice(g))},"less"),pastInput:w(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:w(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:w(function(){var g=this.pastInput(),m=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
11
+ `+m+"^"},"showPosition"),test_match:w(function(g,m){var v,c,x;if(this.options.backtrack_lexer&&(x={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&&(x.yylloc.range=this.yylloc.range.slice(0))),c=g[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,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(g[0].length),this.matched+=g[0],v=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var h in x)this[h]=x[h];return!1}return!1},"test_match"),next:w(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var g,m,v,c;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),h=0;h<x.length;h++)if(v=this._input.match(this.rules[x[h]]),v&&(!m||v[0].length>m[0].length)){if(m=v,c=h,this.options.backtrack_lexer){if(g=this.test_match(v,x[h]),g!==!1)return g;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(g=this.test_match(m,x[c]),g!==!1?g:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:w(function(){var m=this.next();return m||this.lex()},"lex"),begin:w(function(m){this.conditionStack.push(m)},"begin"),popState:w(function(){var m=this.conditionStack.length-1;return m>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:w(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:w(function(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:w(function(m){this.begin(m)},"pushState"),stateStackSize:w(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:w(function(m,v,c,x){var h=x;switch(c){case 0:break;case 1:break;case 2:break;case 3:if(m.getIndentMode&&m.getIndentMode())return m.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:m.setIndentMode&&m.setIndentMode(!1),this.begin("INITIAL"),this.unput(v.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(m.consumeIndentText)m.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return v.yytext=v.yytext.slice(2,-2),14;break;case 17:return v.yytext=v.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return S})();M.lexer=T;function _(){this.yy={}}return w(_,"Parser"),_.prototype=M,M.Parser=_,new _})();bt.parser=bt;var Ee=bt,vt=[],kt=[],It=[],Mt=new Set,St,wt=!1,Te=w((t,n,s)=>{let e=ot(t).sort(),i=s??10/Math.pow(t.length,2);St=e,e.length===1&&Mt.add(e[0]),vt.push({sets:e,size:i,label:n?nt(n):void 0})},"addSubsetData"),ze=w(()=>vt,"getSubsetData"),nt=w(t=>{let n=t.trim();return n.length>=2&&n.startsWith('"')&&n.endsWith('"')?n.slice(1,-1):n},"normalizeText"),Ae=w(t=>t&&nt(t),"normalizeStyleValue"),De=w((t,n,s)=>{let e=nt(n);kt.push({sets:ot(t).sort(),id:e,label:s?nt(s):void 0})},"addTextData"),Re=w((t,n)=>{let s=ot(t).sort(),e={};for(let[i,r]of n)e[i]=Ae(r)??r;It.push({targets:s,styles:e})},"addStyleData"),Ce=w(()=>It,"getStyleData"),ot=w(t=>t.map(n=>nt(n)),"normalizeIdentifierList"),Ne=w(t=>{let s=ot(t).filter(e=>!Mt.has(e));if(s.length>0)throw new Error(`unknown set identifier: ${s.join(", ")}`)},"validateUnionIdentifiers"),Oe=w(()=>kt,"getTextData"),Le=w(()=>St,"getCurrentSets"),Fe=w(()=>wt,"getIndentMode"),je=w(t=>{wt=t},"setIndentMode"),Pe=At.venn;function oe(){return Vt(Pe,ct().venn)}w(oe,"getConfig");var Ve=w(()=>{Rt(),vt.length=0,kt.length=0,It.length=0,Mt.clear(),St=void 0,wt=!1},"customClear"),Be={getConfig:oe,clear:Ve,setAccTitle:Ct,getAccTitle:Nt,setDiagramTitle:Ft,getDiagramTitle:jt,getAccDescription:Lt,setAccDescription:Ot,addSubsetData:Te,getSubsetData:ze,addTextData:De,addStyleData:Re,validateUnionIdentifiers:Ne,getTextData:Oe,getStyleData:Ce,getCurrentSets:Le,getIndentMode:Fe,setIndentMode:je},qe=w(t=>`
13
+ .venn-title {
14
+ font-size: 32px;
15
+ fill: ${t.vennTitleTextColor};
16
+ font-family: ${t.fontFamily};
17
+ }
18
+
19
+ .venn-circle text {
20
+ font-size: 48px;
21
+ font-family: ${t.fontFamily};
22
+ }
23
+
24
+ .venn-intersection text {
25
+ font-size: 48px;
26
+ fill: ${t.vennSetTextColor};
27
+ font-family: ${t.fontFamily};
28
+ }
29
+
30
+ .venn-text-node {
31
+ font-family: ${t.fontFamily};
32
+ color: ${t.vennSetTextColor};
33
+ }
34
+ `,"getStyles"),Ue=qe;function ae(t){let n=new Map;for(let s of t){let e=s.targets.join("|"),i=n.get(e);i?Object.assign(i,s.styles):n.set(e,{...s.styles})}return n}w(ae,"buildStyleByKey");var Ge=w((t,n,s,e)=>{let i=e.db,r=i.getConfig?.(),{themeVariables:o,look:l,handDrawnSeed:f}=ct(),u=l==="handDrawn",a=[o.venn1,o.venn2,o.venn3,o.venn4,o.venn5,o.venn6,o.venn7,o.venn8].filter(Boolean),y=i.getDiagramTitle?.(),d=i.getSubsetData(),b=i.getTextData(),p=ae(i.getStyleData()),M=ce(d),T=r?.width??800,_=r?.height??450,g=T/1600,m=y?48*g:0,v=o.primaryTextColor??o.textColor,c=Pt(n);c.attr("viewBox",`0 0 ${T} ${_}`),y&&c.append("text").text(y).attr("class","venn-title").attr("font-size",`${32*g}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*g).style("fill",o.vennTitleTextColor||o.titleColor);let x=it(document.createElement("div")),h=te().width(T).height(_-m);x.datum(M).call(h);let D=u?Bt.svg(x.select("svg").node()):void 0,I=re(M,{width:T,height:_-m,padding:r?.padding??15}),R=new Map;for(let A of I){let C=Q([...A.data.sets].sort());R.set(C,A)}b.length>0&&le(r,R,x,b,g,p);let G=Et(o.background||"#f4f4f4");x.selectAll(".venn-circle").each(function(A,C){let E=it(this),B=Q([...A.sets].sort()),L=p.get(B),F=L?.fill||a[C%a.length]||o.primaryColor;E.classed(`venn-set-${C%8}`,!0);let H=L?.["fill-opacity"]??.1,j=L?.stroke||F,z=L?.["stroke-width"]||`${5*g}`;if(u&&D){let W=R.get(B);if(W&&W.circles.length>0){let k=W.circles[0],P=D.circle(k.x,k.y,k.radius*2,{roughness:.7,seed:f,fill:lt(F,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+C*60,stroke:j,strokeWidth:parseFloat(String(z))});E.select("path").remove(),E.node()?.insertBefore(P,E.select("text").node())}}else E.select("path").style("fill",F).style("fill-opacity",H).style("stroke",j).style("stroke-width",z).style("stroke-opacity",.95);let X=L?.color||(G?Tt(F,30):zt(F,30));E.select("text").style("font-size",`${48*g}px`).style("fill",X)}),u&&D?x.selectAll(".venn-intersection").each(function(A){let C=it(this),O=Q([...A.sets].sort()),B=p.get(O),L=B?.fill;if(L){let F=C.select("path"),H=F.attr("d");if(H){let j=D.path(H,{roughness:.7,seed:f,fill:lt(L,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),z=F.node();z?.parentNode?.insertBefore(j,z),F.remove()}}else C.select("path").style("fill-opacity",0);C.select("text").style("font-size",`${48*g}px`).style("fill",B?.color??o.vennSetTextColor??v)}):(x.selectAll(".venn-intersection text").style("font-size",`${48*g}px`).style("fill",A=>{let E=Q([...A.sets].sort());return p.get(E)?.color??o.vennSetTextColor??v}),x.selectAll(".venn-intersection path").style("fill-opacity",A=>{let E=Q([...A.sets].sort());return p.get(E)?.fill?1:0}).style("fill",A=>{let E=Q([...A.sets].sort());return p.get(E)?.fill??"transparent"}));let V=c.append("g").attr("transform",`translate(0, ${m})`),N=x.select("svg").node();if(N&&"childNodes"in N)for(let A of[...N.childNodes])V.node()?.appendChild(A);Dt(c,_,T,r?.useMaxWidth??!0)},"draw");function Q(t){return t.join("|")}w(Q,"stableSetsKey");function le(t,n,s,e,i,r){let o=t?.useDebugLayout??!1,f=s.select("svg").append("g").attr("class","venn-text-nodes"),u=new Map;for(let a of e){let y=Q(a.sets),d=u.get(y);d?d.push(a):u.set(y,[a])}for(let[a,y]of u.entries()){let d=n.get(a);if(!d?.text)continue;let b=d.text.x,p=d.text.y,M=Math.min(...d.circles.map(N=>N.radius)),T=Math.min(...d.circles.map(N=>N.radius-Math.hypot(b-N.x,p-N.y))),_=Number.isFinite(T)?Math.max(0,T):0;_===0&&Number.isFinite(M)&&(_=M*.6);let S=f.append("g").attr("class","venn-text-area").attr("font-size",`${40*i}px`);o&&S.append("circle").attr("class","venn-text-debug-circle").attr("cx",b).attr("cy",p).attr("r",_).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);let g=Math.max(80*i,_*2*.95),m=Math.max(60*i,_*2*.95),x=(d.data.label&&d.data.label.length>0?Math.min(32*i,_*.25):0)+(y.length<=2?30*i:0),h=b-g/2,D=p-m/2+x,I=Math.max(1,Math.ceil(Math.sqrt(y.length))),R=Math.max(1,Math.ceil(y.length/I)),G=g/I,V=m/R;for(let[N,A]of y.entries()){let C=N%I,E=Math.floor(N/I),O=h+G*(C+.5),B=D+V*(E+.5);o&&S.append("rect").attr("class","venn-text-debug-cell").attr("x",h+G*C).attr("y",D+V*E).attr("width",G).attr("height",V).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*i).attr("stroke-dasharray",`${4*i} ${3*i}`);let L=G*.9,F=V*.9,H=S.append("foreignObject").attr("class","venn-text-node-fo").attr("width",L).attr("height",F).attr("x",O-L/2).attr("y",B-F/2).attr("overflow","visible"),j=r.get(A.id)?.color,z=H.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(A.label??A.id);j&&z.style("color",j)}}}w(le,"renderTextNodes");function ce(t){let n=new Set(t.map(i=>[...i.sets].sort().join("|"))),s=new Map(t.filter(i=>i.sets.length===1&&i.size!==void 0).map(i=>[i.sets[0],i.size])),e=[];for(let i of t){if(i.sets.length<3)continue;let r=[...i.sets].sort();for(let o=0;o<r.length-1;o++)for(let l=o+1;l<r.length;l++){let f=[r[o],r[l]],u=f.join("|");if(!n.has(u)){n.add(u);let a=s.get(f[0]),y=s.get(f[1]),d=a!==void 0&&y!==void 0?Math.min(a,y)/4:2.5;e.push({sets:f,size:d,label:""})}}}return e.length>0?[...t,...e]:t}w(ce,"ensurePairwiseSubsets");var We={draw:Ge},tn={parser:Ee,db:Be,renderer:We,styles:Ue};export{tn as diagram};
@@ -0,0 +1 @@
1
+ import{a as n,b as p,c as f}from"./chunk-BCRQUL2A.js";import{a as i}from"./chunk-KINKFJY7.js";import{b as l}from"./chunk-ZJPSORPP.js";import"./chunk-C3QSRS6E.js";import"./chunk-B7YX5TR5.js";import"./chunk-4YN4BS7I.js";import"./chunk-WBKLDCV6.js";import"./chunk-TP6U4EDH.js";import{b as m}from"./chunk-ZOP3ZYH7.js";import"./chunk-3XJZ6DIE.js";import"./chunk-KKQSA4LI.js";import"./chunk-FVOHPMS6.js";import"./chunk-HSIHOBTY.js";import"./chunk-3H6STGPV.js";import"./chunk-HSEAD2JH.js";import"./chunk-SVI7DGIE.js";import"./chunk-YUADQVB2.js";import"./chunk-WOKJM3FY.js";import"./chunk-S6ZQZNOX.js";import"./chunk-CUS65DKZ.js";import"./chunk-LWDL4HZB.js";import"./chunk-VXPNUNUX.js";import{b as o}from"./chunk-JR4SIX7A.js";import{a as t}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";var c=m().RailroadEbnf.parser.LangiumParser,s=t(e=>{let r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{let r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),u=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},u(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),y=t(e=>e.postfixes.reduce((r,a)=>b(r,a),u(e.base)),"transformTerm"),d=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{i(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(d(r)))},"populateDb"),P={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");let r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);let a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},$={parser:P,db:n,renderer:f,styles:p};export{$ as diagram};
@@ -0,0 +1,10 @@
1
+ import{a as Mt}from"./chunk-PZCGBYVO.js";import{e as I}from"./chunk-CK7M2PJ3.js";import{a as wt}from"./chunk-44KDLLKJ.js";import{c as yt,d as gt}from"./chunk-JFT2LC2T.js";import{b as nt,d as bt}from"./chunk-AUSLTP43.js";import{p as A,t as xt}from"./chunk-6DWWYA6G.js";import{Z as Y,t as X,x as at}from"./chunk-LWDL4HZB.js";import{$ as ut,G as J,H as ot,J as it,K as lt,L as et,P as ct,S as dt,W as pt,X as ht,Y as ft,Z as mt,_ as kt,b,h as W}from"./chunk-JR4SIX7A.js";import{a as p}from"./chunk-5FIPUNR4.js";var N=p((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let a=r.x??0,e=r.y??0;return"translate("+-(a+r.width/2)+", "+-(e+r.height/2)+")"},"computeLabelTransform"),v={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Lt={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Q(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=x(r),t=x(t);let[a,e]=[r.x,r.y],[o,s]=[t.x,t.y],n=o-a,i=s-e;return{angle:Math.atan(i/n),deltaX:n,deltaY:i}}p(Q,"calculateDeltaAndAngle");var x=p(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),Ht=p(r=>({x:p(function(t,a,e){let o=0,s=x(e[0]).x<x(e[e.length-1]).x?"left":"right";if(a===0&&Object.hasOwn(v,r.arrowTypeStart)){let{angle:c,deltaX:y}=Q(e[0],e[1]);o=v[r.arrowTypeStart]*Math.cos(c)*(y>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:c,deltaX:y}=Q(e[e.length-1],e[e.length-2]);o=v[r.arrowTypeEnd]*Math.cos(c)*(y>=0?1:-1)}let n=Math.abs(x(t).x-x(e[e.length-1]).x),i=Math.abs(x(t).y-x(e[e.length-1]).y),d=Math.abs(x(t).x-x(e[0]).x),m=Math.abs(x(t).y-x(e[0]).y),l=v[r.arrowTypeStart],f=v[r.arrowTypeEnd],h=1;if(n<f&&n>0&&i<f){let c=f+h-n;c*=s==="right"?-1:1,o-=c}if(d<l&&d>0&&m<l){let c=l+h-d;c*=s==="right"?-1:1,o+=c}return x(t).x+o},"x"),y:p(function(t,a,e){let o=0,s=x(e[0]).y<x(e[e.length-1]).y?"down":"up";if(a===0&&Object.hasOwn(v,r.arrowTypeStart)){let{angle:c,deltaY:y}=Q(e[0],e[1]);o=v[r.arrowTypeStart]*Math.abs(Math.sin(c))*(y>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:c,deltaY:y}=Q(e[e.length-1],e[e.length-2]);o=v[r.arrowTypeEnd]*Math.abs(Math.sin(c))*(y>=0?1:-1)}let n=Math.abs(x(t).y-x(e[e.length-1]).y),i=Math.abs(x(t).x-x(e[e.length-1]).x),d=Math.abs(x(t).y-x(e[0]).y),m=Math.abs(x(t).x-x(e[0]).x),l=v[r.arrowTypeStart],f=v[r.arrowTypeEnd],h=1;if(n<f&&n>0&&i<f){let c=f+h-n;c*=s==="up"?-1:1,o-=c}if(d<l&&d>0&&m<l){let c=l+h-d;c*=s==="up"?-1:1,o+=c}return x(t).y+o},"y")}),"getLineFunctionsWithOffset"),At=p((r,t,a,e,o,s=!1,n)=>{t.arrowTypeStart&&_t(r,"start",t.arrowTypeStart,a,e,o,s,n),t.arrowTypeEnd&&_t(r,"end",t.arrowTypeEnd,a,e,o,s,n)},"addEdgeMarkers"),Bt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Ct=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],_t=p((r,t,a,e,o,s,n=!1,i)=>{if(!a||a==="none")return;let d=Bt[a],m=d&&Ct.includes(d.type);if(!d){b.warn(`Unknown arrow type: ${a}`);return}let l=d.type,c=`${o}_${s}-${l}${t==="start"?"Start":"End"}${n&&m?"-margin":""}`;if(i&&i.trim()!==""){let y=i.replace(/[^\dA-Za-z]/g,"_"),g=`${c}_${y}`;if(!document.getElementById(g)){let k=document.getElementById(c);if(k){let M=k.cloneNode(!0);M.id=g,M.querySelectorAll("path, circle, line").forEach(B=>{B.setAttribute("stroke",i),d.fill&&B.setAttribute("fill",i)}),k.parentNode?.appendChild(M)}}r.attr(`marker-${t}`,`url(${e}#${g})`)}else r.attr(`marker-${t}`,`url(${e}#${c})`)},"addEdgeMarker"),zt=p(r=>typeof r=="string"?r:Y()?.flowchart?.curve,"resolveEdgeCurveType"),G=new Map,_=new Map,Sr=p(()=>{G.clear(),_.clear()},"clear"),vr=p(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),D=p(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),Or=p(async(r,t)=>{let a=Y(),e=at(a),{labelStyles:o}=gt(t);t.labelStyle=o;let s=r.insert("g").attr("class","edgeLabel"),n=s.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",m=await bt(r,t.label,{style:D(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);n.node().appendChild(m),b.info("abc82",t,t.labelType);let l,f;if(e){let c=m.children[0],y=W(m);l=await nt.measure(()=>c.getBoundingClientRect()),f=l,y.attr("width",l.width),y.attr("height",l.height)}else{let c=W(m).select("text").node();await nt.measure(()=>{l=m.getBBox(),c&&typeof c.getBBox=="function"?f=c.getBBox():f=l})}n.attr("transform",N(f,e)),G.set(t.id,s),t.width=l.width,t.height=l.height;let h;if(t.startLabelLeft){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(y,t.startLabelLeft,D(t.labelStyle)||"",!1,!1);h=g;let k=g.getBBox();if(e){let M=g.children[0],u=W(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",N(k,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startLeft=c,Z(h,t.startLabelLeft)}if(t.startLabelRight){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(y,t.startLabelRight,D(t.labelStyle)||"",!1,!1);h=g;let k=g.getBBox();if(e){let M=g.children[0],u=W(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",N(k,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startRight=c,Z(h,t.startLabelRight)}if(t.endLabelLeft){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(c,t.endLabelLeft,D(t.labelStyle)||"",!1,!1);h=g;let k=g.getBBox();if(e){let M=g.children[0],u=W(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",N(k,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endLeft=c,Z(h,t.endLabelLeft)}if(t.endLabelRight){let c=r.insert("g").attr("class","edgeTerminals"),y=c.insert("g").attr("class","inner"),g=await I(c,t.endLabelRight,D(t.labelStyle)||"",!1,!1);h=g;let k=g.getBBox();if(e){let M=g.children[0],u=W(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",N(k,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endRight=c,Z(h,t.endLabelRight)}return m},"insertEdgeLabel");function Z(r,t){at(Y())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}p(Z,"setTerminalWidth");var Er=p((r,t)=>{b.debug("Moving label abc88 ",r.id,r.label,G.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,e=Y(),{subGraphTitleTotalMargin:o}=Mt(e);if(r.label){let s=G.get(r.id),n=r.x,i=r.y;if(a){let d=A.calcLabelPosition(a);b.debug("Moving label "+r.label+" from (",n,",",i,") to (",d.x,",",d.y,") abc88"),t.updatedPath&&(n=d.x,i=d.y)}s.attr("transform",`translate(${n}, ${i+o/2})`)}if(r.startLabelLeft){let s=_.get(r.id).startLeft,n=r.x,i=r.y;if(a){let d=A.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.startLabelRight){let s=_.get(r.id).startRight,n=r.x,i=r.y;if(a){let d=A.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.endLabelLeft){let s=_.get(r.id).endLeft,n=r.x,i=r.y;if(a){let d=A.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.endLabelRight){let s=_.get(r.id).endRight,n=r.x,i=r.y;if(a){let d=A.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);n=d.x,i=d.y}s.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),Rt=p((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,o=Math.abs(e.x-a.x),s=Math.abs(e.y-a.y);return o<.001||s<.001?t:s>=o?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),qt=p((r,t)=>{let a=r.x,e=r.y,o=Math.abs(t.x-a),s=Math.abs(t.y-e),n=r.width/2,i=r.height/2;return o>=n||s>=i},"outsideNode"),Pt=p((r,t,a)=>{b.debug(`intersection calc abc89:
2
+ outsidePoint: ${JSON.stringify(t)}
3
+ insidePoint : ${JSON.stringify(a)}
4
+ node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let e=r.x,o=r.y,s=Math.abs(e-a.x),n=r.width/2,i=a.x<t.x?n-s:n+s,d=r.height/2,m=Math.abs(t.y-a.y),l=Math.abs(t.x-a.x);if(Math.abs(o-t.y)*n>Math.abs(e-t.x)*d){let f=a.y<t.y?t.y-d-o:o-d-t.y;i=l*f/m;let h={x:a.x<t.x?a.x+i:a.x-l+i,y:a.y<t.y?a.y+m-f:a.y-m+f};return i===0&&(h.x=t.x,h.y=t.y),l===0&&(h.x=t.x),m===0&&(h.y=t.y),b.debug(`abc89 top/bottom calc, Q ${m}, q ${f}, R ${l}, r ${i}`,h),h}else{a.x<t.x?i=t.x-n-e:i=e-n-t.x;let f=m*i/l,h=a.x<t.x?a.x+l-i:a.x-l+i,c=a.y<t.y?a.y+f:a.y-f;return b.debug(`sides calc abc89, Q ${m}, q ${f}, R ${l}, r ${i}`,{_x:h,_y:c}),i===0&&(h=t.x,c=t.y),l===0&&(h=t.x),m===0&&(c=t.y),{x:h,y:c}}},"intersection"),St=p((r,t)=>{b.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],o=!1;return r.forEach(s=>{if(b.info("abc88 checking point",s,t),!qt(t,s)&&!o){let n=Pt(t,e,s);b.debug("abc88 inside",s,e,n),b.debug("abc88 intersection",n,t);let i=!1;a.forEach(d=>{i=i||d.x===n.x&&d.y===n.y}),a.some(d=>d.x===n.x&&d.y===n.y)?b.warn("abc88 no intersect",n,a):a.push(n),o=!0}else b.warn("abc88 outside",s,e),e=s,o||a.push(s)}),b.debug("returning points",a),a},"cutPathAtIntersect");function Ot(r){let t=[],a=[];for(let e=1;e<r.length-1;e++){let o=r[e-1],s=r[e],n=r[e+1];(o.x===s.x&&s.y===n.y&&Math.abs(s.x-n.x)>5&&Math.abs(s.y-o.y)>5||o.y===s.y&&s.x===n.x&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-n.y)>5)&&(t.push(s),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}p(Ot,"extractCornerPoints");var vt=p(function(r,t,a){let e=t.x-r.x,o=t.y-r.y,s=Math.sqrt(e*e+o*o),n=a/s;return{x:t.x-n*e,y:t.y-n*o}},"findAdjacentPoint"),It=p(function(r){let{cornerPointPositions:t}=Ot(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){let o=r[e-1],s=r[e+1],n=r[e],i=vt(o,n,5),d=vt(s,n,5),m=d.x-i.x,l=d.y-i.y;a.push(i);let f=Math.sqrt(2)*2,h={x:n.x,y:n.y};if(Math.abs(s.x-o.x)>10&&Math.abs(s.y-o.y)>=10){b.debug("Corner point fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));let c=5;n.x===i.x?h={x:m<0?i.x-c+f:i.x+c-f,y:l<0?i.y-f:i.y+f}:h={x:m<0?i.x-f:i.x+f,y:l<0?i.y-c+f:i.y+c-f}}else b.debug("Corner point skipping fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));a.push(h,d)}else a.push(r[e]);return a},"fixCorners"),Nt=p((r,t,a)=>{let e=r-t-a,o=2,s=2,n=o+s,i=Math.floor(e/n),d=Number.isFinite(i)?Math.max(0,i):0,m=Array(d).fill(`${o} ${s}`).join(" ");return`0 ${t} ${m} ${a}`},"generateDashArray"),Ur=p(function(r,t,a,e,o,s,n,i=!1){if(!n)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:d,layout:m}=Y(),l=t.points,f=!1,h=o;var c=s;let y=[];for(let w in t.cssCompiledStyles)yt(w)||y.push(t.cssCompiledStyles[w]);if(m==="swimlane"){if(c.intersect&&h.intersect&&Array.isArray(l)&&l.length>=2)if(l.length===2)l=[h.intersect(l[0]),c.intersect(l[1])];else{let w=l.slice(1,-1),$=w[0],O=w[w.length-1],E=.5,z=Math.abs(l[l.length-1].x-O.x)<E&&Math.abs(l[l.length-1].y-O.y)<E,T=h.intersect($),H=z?O:c.intersect(O),R=Math.abs(H.x-O.x)<E&&Math.abs(H.y-O.y)<E,Wt=Math.abs(T.x-$.x)<E&&Math.abs(T.y-$.y)<E?[]:[T],Tt=R?[]:[H];l=[...Wt,...w,...Tt]}l=Rt(t,l)}else c.intersect&&h.intersect&&!i&&(l=l.slice(1,t.points.length-1),l.unshift(h.intersect(l[0])),l.push(c.intersect(l[l.length-1])));let g=btoa(JSON.stringify(l));t.toCluster&&(b.info("to cluster abc88",a.get(t.toCluster)),l=St(t.points,a.get(t.toCluster).node),f=!0),t.fromCluster&&(b.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(l,null,2)),l=St(l.reverse(),a.get(t.fromCluster).node).reverse(),f=!0);let k=l.filter(w=>!Number.isNaN(w.y)),M=zt(t.curve);M!=="rounded"&&(k=It(k));let u=J;switch(M){case"linear":u=J;break;case"basis":u=et;break;case"cardinal":u=ct;break;case"bumpX":u=it;break;case"bumpY":u=lt;break;case"catmullRom":u=dt;break;case"monotoneX":u=pt;break;case"monotoneY":u=ht;break;case"natural":u=ft;break;case"step":u=mt;break;case"stepAfter":u=ut;break;case"stepBefore":u=kt;break;case"rounded":u=J;break;default:u=et}let{x:B,y:K}=Ht(t),P=ot().x(B).y(K).curve(u),S;switch(t.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(t.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let L,j=M==="rounded"?Et(Ut(k,t),5):P(k),U=Array.isArray(t.style)?t.style:[t.style],V=U.find(w=>w?.startsWith("stroke:")),C="";t.animate&&(C="edge-animation-fast"),t.animation&&(C="edge-animation-"+t.animation);let tt=!1;if(t.look==="handDrawn"){let w=wt.svg(r);Object.assign([],k);let $=w.path(j,{roughness:.3,seed:d});S+=" transition",L=W($).select("path").attr("id",`${n}-${t.id}`).attr("class"," "+S+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",U?U.reduce((E,z)=>E+";"+z,""):"");let O=L.attr("d");L.attr("d",O),r.node().appendChild(L.node())}else{let w=y.join(";"),$=U?U.reduce((R,q)=>R+q+";",""):"",O=(w?w+";"+$+";":$)+";"+(U?U.reduce((R,q)=>R+";"+q,""):"");L=r.append("path").attr("d",j).attr("id",`${n}-${t.id}`).attr("class"," "+S+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",O),V=O.match(/stroke:([^;]+)/)?.[1],tt=t.animate===!0||!!t.animation||w.includes("animation");let E=L.node(),z=typeof E.getTotalLength=="function"?E.getTotalLength():0,T=Lt[t.arrowTypeStart]||0,H=Lt[t.arrowTypeEnd]||0;if(t.look==="neo"&&!tt){let q=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Nt(z,T,H):`0 ${T} ${z-T-H} ${H}`}; stroke-dashoffset: 0;`;L.attr("style",q+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",t.id),L.attr("data-points",g),L.attr("data-look",xt(t.look)),t.showPoints&&k.forEach(w=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",w.x).attr("cy",w.y)});let F="";(Y().flowchart.arrowMarkerAbsolute||Y().state.arrowMarkerAbsolute)&&(F=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,F=F.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),b.info("arrowTypeStart",t.arrowTypeStart),b.info("arrowTypeEnd",t.arrowTypeEnd);let $t=!tt&&t?.look==="neo";At(L,t,F,n,e,$t,V);let Xt=Math.floor(l.length/2),Yt=l[Xt];A.isLabelCoordinateInPath(Yt,L.attr("d"))||(f=!0);let rt={};return f&&(rt.updatedPath=l),rt.originalPath=t.points,rt},"insertEdge");function Et(r,t){if(r.length<2)return"";let a="",e=r.length,o=1e-5;for(let s=0;s<e;s++){let n=r[s],i=r[s-1],d=r[s+1];if(s===0)a+=`M${n.x},${n.y}`;else if(s===e-1)a+=`L${n.x},${n.y}`;else{let m=n.x-i.x,l=n.y-i.y,f=d.x-n.x,h=d.y-n.y,c=Math.hypot(m,l),y=Math.hypot(f,h);if(c<o||y<o){a+=`L${n.x},${n.y}`;continue}let g=m/c,k=l/c,M=f/y,u=h/y,B=g*M+k*u,K=Math.max(-1,Math.min(1,B)),P=Math.acos(K);if(P<o||Math.abs(Math.PI-P)<o){a+=`L${n.x},${n.y}`;continue}let S=Math.min(t/Math.sin(P/2),c/2,y/2),L=n.x-g*S,j=n.y-k*S,U=n.x+M*S,V=n.y+u*S;a+=`L${L},${j}`,a+=`Q${n.x},${n.y} ${U},${V}`}}return a}p(Et,"generateRoundedPath");function st(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}p(st,"calculateDeltaAndAngle");function Ut(r,t){let a=r.map(o=>({...o}));if(r.length>=2&&v[t.arrowTypeStart]){let o=v[t.arrowTypeStart],s=r[0],n=r[1],{angle:i}=st(s,n),d=o*Math.cos(i),m=o*Math.sin(i);a[0].x=s.x+d,a[0].y=s.y+m}let e=r.length;if(e>=2&&v[t.arrowTypeEnd]){let o=v[t.arrowTypeEnd],s=r[e-1],n=r[e-2],{angle:i}=st(n,s),d=o*Math.cos(i),m=o*Math.sin(i);a[e-1].x=s.x-d,a[e-1].y=s.y-m}return a}p(Ut,"applyMarkerOffsetsToPoints");var Dt=p((r,t,a,e)=>{t.forEach(o=>{mr[o](r,a,e)})},"insertMarkers"),Qt=p((r,t,a)=>{b.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),Zt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),jt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Vt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Ft=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Jt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),Gt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).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"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).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"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Kt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).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"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).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"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),tr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),rr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{transitionColor:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-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 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),ar=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),er=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),nr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),sr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),or=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),ir=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s,mainBkg:n}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",n??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);let d=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",n??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),d.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),lr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),cr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s,mainBkg:n}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",n??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);let d=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",n??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),d.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),dr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
5
+ L20,10
6
+ M20,10
7
+ L0,20`)},"requirement_arrow"),pr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
8
+ L20,10
9
+ M20,10
10
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),hr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),fr=p((r,t,a)=>{let e=X(),{themeVariables:o}=e,{strokeWidth:s}=o,n=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),n.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),mr={extension:Qt,composition:Zt,aggregation:jt,dependency:Vt,lollipop:Ft,point:Jt,circle:Gt,cross:Kt,barb:tr,barbNeo:rr,only_one:ar,zero_or_one:er,one_or_more:nr,zero_or_more:sr,only_one_neo:or,zero_or_one_neo:ir,one_or_more_neo:lr,zero_or_more_neo:cr,requirement_arrow:dr,requirement_contains:hr,requirement_arrow_neo:pr,requirement_contains_neo:fr},$r=Dt;export{v as a,G as b,_ as c,Sr as d,vr as e,Or as f,Er as g,Ur as h,$r as i};
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk-MVYC3CY4.js";import{f as h,g as u,h as y,i as w}from"./chunk-XBZAO4ID.js";import{b as f}from"./chunk-PZCGBYVO.js";import{a as g}from"./chunk-CK7M2PJ3.js";import{e as m}from"./chunk-6DWWYA6G.js";import{M as p,t as l}from"./chunk-LWDL4HZB.js";import{b as i}from"./chunk-JR4SIX7A.js";import{a as o}from"./chunk-5FIPUNR4.js";var I={common:p,getConfig:l,insertCluster:c,insertEdge:y,insertEdgeLabel:h,insertMarkers:w,insertNode:f,interpolateToCurve:m,labelHelper:g,log:i,positionEdgeLabel:u},a={},L=o(t=>{for(let r of t)a[r.name]=r},"registerLayoutLoaders"),E=o(()=>{L([{name:"dagre",loader:o(async()=>await import("./chunk-7Q4WBGX6.js"),"loader")},{name:"swimlane",loader:o(async()=>await import("./chunk-GHIVPGNQ.js"),"loader")},{name:"cose-bilkent",loader:o(async()=>await import("./chunk-EQDCEAFY.js"),"loader")}])},"registerDefaultLayoutLoaders");E();var G=o(async(t,r)=>{if(!(t.layoutAlgorithm in a))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let A=e.domId||e.id;e.domId=`${t.diagramId}-${A}`}let n=a[t.layoutAlgorithm],F=await n.loader(),{theme:d,themeVariables:$}=t.config,{useGradient:D,gradientStart:v,gradientStop:x}=$,s=r.attr("id");if(r.append("defs").append("filter").attr("id",`${s}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${d?.includes("dark")?"#FFFFFF":"#000000"}`),r.append("defs").append("filter").attr("id",`${s}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${d?.includes("dark")?"#FFFFFF":"#000000"}`),D){let e=r.append("linearGradient").attr("id",r.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",v).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}return F.render(t,r,I,{algorithm:n.algorithm})},"render"),H=o((t="",{fallback:r="dagre"}={})=>{if(t in a)return t;if(r in a)return i.warn(`Layout algorithm ${t} is not registered. Using ${r} as fallback.`),r;throw new Error(`Both layout algorithms ${t} and ${r} are not registered.`)},"getRegisteredLayoutAlgorithm");export{L as a,G as b,H as c};
@@ -0,0 +1 @@
1
+ import"./chunk-SQE76S5B.js";function l(n){let e=n.regex,a=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),g=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},t={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},r=n.inherit(t,{begin:/\(/,end:/\)/}),o=n.inherit(n.APOS_STRING_MODE,{className:"string"}),c=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),i={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:g,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[t,c,o,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[t,r,c,o]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[i],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[i],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(a,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:i}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}export{l as default};
@@ -0,0 +1 @@
1
+ import"./chunk-SQE76S5B.js";function r(e){let n={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:n,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\b0[bB](_?[01])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,illegal:/["']/}]}]}}export{r as default};
@@ -0,0 +1 @@
1
+ import{a as t,b as s,c as o,d as a,e as m,g as d,u as c,w as u,y as T}from"./chunk-CUS65DKZ.js";var l=class extends u{static{t(this,"TreeViewValueConverter")}runCustomConverter(r,e,n){if(r.name==="INDENTATION")return e?.length||0;if(r.name==="QUOTED_NAME")return e.substring(1,e.length-1);if(r.name==="BARE_NAME")return e.replace(/[\t ]+$/,"");if(r.name==="CLASS_ANNOTATION")return e.trim().substring(3).trim();if(r.name==="ICON_ANNOTATION"){let i=e.trim();return i.substring(5,i.length-1)}if(r.name==="DESC_ANNOTATION")return e.trim().substring(2).trim()}},N=class extends T{static{t(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},V={parser:{TokenBuilder:t(()=>new N,"TokenBuilder"),ValueConverter:t(()=>new l,"ValueConverter")}};function v(r=m){let e=a(o(r),d),n=a(s({shared:e}),c,V);return e.ServiceRegistry.register(n),{shared:e,TreeView:n}}t(v,"createTreeViewServices");export{V as a,v as b};
@@ -0,0 +1 @@
1
+ import"./chunk-SQE76S5B.js";var p="[A-Za-z$_][0-9A-Za-z$_]*",G=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],K=["true","false","null","undefined","NaN","Infinity"],v=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],L=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],w=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],H=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],J=[].concat(w,v,L);function X(e){let t=e.regex,B=(a,{after:r})=>{let l="</"+a[0].slice(1);return a.input.indexOf(l,r)!==-1},n=p,A={begin:"<>",end:"</>"},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(a,r)=>{let l=a[0].length+a.index,d=a.input[l];if(d==="<"||d===","){r.ignoreMatch();return}d===">"&&(B(a,{after:l})||r.ignoreMatch());let u,M=a.input.substring(l);if(u=M.match(/^\s*=/)){r.ignoreMatch();return}if((u=M.match(/^\s+extends\s+/))&&u.index===0){r.ignoreMatch();return}}},s={$pattern:p,keyword:G,literal:K,built_in:J,"variable.language":H},_="[0-9](_?[0-9])*",E=`\\.(${_})`,N="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${N})((${E})|\\.)?|(${E}))[eE][+-]?(${_})\\b`},{begin:`\\b(${N})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},m={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},T={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"css"}},f={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},R={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]},g={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,T,f,R,{match:/\$\d+/},S];c.contains=y.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(y)});let I=[].concat(g,c.contains),b=I.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(I)}]),i={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},x={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...v,...L]}},U={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},D={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[i],illegal:/%/},k={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(a){return t.concat("(?!",a.join("|"),")")}let $={match:t.concat(/\b/,P([...w,"super","import","await"].map(a=>`${a}\\s*\\(`)),n,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Z={begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},i]},C="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",z={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(C)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[i]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:O},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),U,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,T,f,R,g,{match:/\$\d+/},S,O,{scope:"attr",match:n+t.lookahead(":"),relevance:0},z,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{className:"function",begin:C,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:A.begin,end:A.end},{match:h},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},D,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[i,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[i]},$,k,x,F,{match:/\$[(.]/}]}}export{X as default};
@@ -0,0 +1,10 @@
1
+ import{a as Hr}from"./chunk-B7YX5TR5.js";import{g as Tt,h as At,i as _t,j as Rt}from"./chunk-SSDZPVPW.js";import"./chunk-EADDJUDC.js";import{a as Kr,b as Qr}from"./chunk-SLPRGYUV.js";import{a as Zr}from"./chunk-XLLPZ2WO.js";import"./chunk-MVYC3CY4.js";import"./chunk-XBZAO4ID.js";import"./chunk-PZCGBYVO.js";import"./chunk-CK7M2PJ3.js";import"./chunk-44KDLLKJ.js";import"./chunk-JFT2LC2T.js";import{a as Xr}from"./chunk-AUSLTP43.js";import{b as Br}from"./chunk-GLU2YQV2.js";import{b as br,d as Yr,m as xr,o as jr,p as V,q as qr,r as Wr}from"./chunk-6DWWYA6G.js";import"./chunk-VJLIWNIU.js";import{A as Nr,B as J,C as yr,D as rr,E as Vr,N as Ur,P as wr,Q as Gr,ca as W,da as er,g as Lr,i as Z,l as Mr,m as vr,n as Cr,o as kr,p as Ir,q as Fr,r as hr,s as Or,t as N,u as $r,v as q,x as zr,y as Pr}from"./chunk-LWDL4HZB.js";import{a as Rr}from"./chunk-VXPNUNUX.js";import{b as f,c as gr,h as C}from"./chunk-JR4SIX7A.js";import{a as t}from"./chunk-5FIPUNR4.js";import"./chunk-SQE76S5B.js";var U="comm",tr="rule",ar="decl";var Jr="@media",re="@import";var ee="@supports";var te="@namespace",X="@keyframes";var ir="@layer",ae="@scope";var ie=Math.abs,$=String.fromCharCode;function or(r){return r.trim()}function K(r,e,a){return r.replace(e,a)}function k(r,e){return r.charCodeAt(e)|0}function I(r,e,a){return r.slice(e,a)}function x(r){return r.length}function nr(r){return r.length}function G(r,e){return e.push(r),r}var sr=1,H=1,oe=0,E=0,h=0,Y="";function dr(r,e,a,i,o,n,d,s){return{value:r,root:e,parent:a,type:i,props:o,children:n,line:sr,column:H,length:d,return:"",siblings:s}}function ne(){return h}function se(){return h=E>0?k(Y,--E):0,H--,h===10&&(H=1,sr--),h}function D(){return h=E<oe?k(Y,E++):0,H++,h===10&&(H=1,sr++),h}function F(){return k(Y,E)}function Q(){return E}function cr(r,e){return I(Y,r,e)}function B(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function de(r){return sr=H=1,oe=x(Y=r),E=0,[]}function ce(r){return Y="",r}function lr(r){return or(cr(E-1,Sr(r===91?r+2:r===40?r+1:r)))}function le(r){for(;(h=F())&&h<33;)D();return B(r)>2||B(h)>3?"":" "}function ue(r,e){for(;--e&&D()&&!(h<48||h>102||h>57&&h<65||h>70&&h<97););return cr(r,Q()+(e<6&&F()==32&&D()==32))}function Sr(r){for(;D();)switch(h){case r:return E;case 34:case 39:r!==34&&r!==39&&Sr(h);break;case 40:r===41&&Sr(r);break;case 92:D();break}return E}function me(r,e){for(;D()&&r+h!==57;)if(r+h===84&&F()===47)break;return"/*"+cr(e,E-1)+"*"+$(r===47?r:D())}function pe(r){for(;!B(F());)D();return cr(r,E)}function ve(r){return ce(ur("",null,null,null,[""],r=de(r),0,[0],r))}function ur(r,e,a,i,o,n,d,s,c){for(var m=0,g=0,u=d,w=0,T=0,A=0,p=1,M=1,_=1,b=0,v=0,R="",P=o,L=n,S=i,l=R;M;)switch(A=v,v=D()){case 40:A!=108&&k(l,u-1)==58?(b++,l+="("):l+=lr(v);break;case 41:b--,l+=")";break;case 34:case 39:case 91:l+=lr(v);break;case 9:case 10:case 13:case 32:if(b>0){l+=$(v);break}l+=le(A);break;case 92:l+=ue(Q()-1,7);continue;case 47:switch(F()){case 42:case 47:G(Mt(me(D(),Q()),e,a,c),c),(B(A||1)==5||B(F()||1)==5)&&x(l)&&I(l,-1,void 0)!==" "&&(l+=" ");break;default:l+="/"}break;case 123*p:s[m++]=x(l)*_;case 125*p:case 59:case 0:if(b>0&&v){l+=$(v);break}switch(v){case 0:case 125:M=0;case 59+g:_==-1&&(l=K(l,/\f/g,"")),T>0&&(x(l)-u||p===0)&&G(T>32?ge(l+";",i,a,u-1,c):ge(K(l," ","")+";",i,a,u-2,c),c);break;case 59:l+=";";default:if(G(S=fe(l,e,a,m,g,o,s,R,P=[],L=[],u,n),n),v===123)if(g===0)ur(l,e,S,S,P,n,u,s,L);else{switch(w){case 99:if(k(l,3)===110)break;case 108:if(k(l,2)===97)break;default:g=0;case 100:case 109:case 115:}g?ur(r,S,S,i&&G(fe(r,S,S,0,0,o,s,R,o,P=[],u,L),L),o,L,u,s,i?P:L):ur(l,S,S,S,[""],L,0,s,L)}}m=g=T=0,p=_=1,R=l="",u=d;break;case 58:u=1+x(l),T=A;default:if(p<1){if(v==123)--p;else if(v==125&&p++==0&&se()==125)continue}switch(l+=$(v),v*p){case 38:_=g>0?1:(l+="\f",-1);break;case 44:if(b>0)break;s[m++]=(x(l)-1)*_,_=1;break;case 64:F()===45&&(l+=lr(D())),w=F(),g=u=x(R=l+=pe(Q())),v++;break;case 45:A===45&&x(l)==2&&(p=0)}}return n}function fe(r,e,a,i,o,n,d,s,c,m,g,u){for(var w=o-1,T=o===0?n:[""],A=nr(T),p=0,M=0,_=0;p<i;++p)for(var b=0,v=I(r,w+1,w=ie(M=d[p])),R=r;b<A;++b)(R=or(M>0?T[b]+" "+v:K(v,/&\f/g,T[b])))&&(c[_++]=R);return dr(r,e,a,o===0?tr:s,c,m,g,u)}function Mt(r,e,a,i){return dr(r,e,a,U,$(ne()),I(r,2,-2),0,i)}function ge(r,e,a,i,o){return dr(r,e,a,ar,I(r,0,i),I(r,i+1,-1),i,o)}function mr(r,e){for(var a="",i=0;i<r.length;i++)a+=e(r[i],i,r,e)||"";return a}function he(r,e,a,i){switch(r.type){case ir:if(r.children.length)break;case re:case te:case ar:return r.return=r.return||r.value;case U:return"";case X:return r.return=r.value+"{"+mr(r.children,i)+"}";case tr:if(!x(r.value=r.props.join(",")))return""}return x(a=mr(r.children,i))?r.return=r.value+"{"+a+"}":""}function ye(r){var e=nr(r);return function(a,i,o,n){for(var d="",s=0;s<e;s++)d+=r[s](a,i,o,n)||"";return d}}var Ee="c4",Ct=t(r=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(r),"detector"),kt=t(async()=>{let{diagram:r}=await import("./chunk-V2NUKAA7.js");return{id:Ee,diagram:r}},"loader"),It={id:Ee,detector:Ct,loader:kt},Ft=It,De="flowchart",Ot=t((r,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(r),"detector"),$t=t(async()=>{let{diagram:r}=await import("./chunk-VQNQFBID.js");return{id:De,diagram:r}},"loader"),zt={id:De,detector:Ot,loader:$t},Pt=zt,Te="flowchart-v2",Nt=t((r,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^\s*graph/.test(r)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(r)),"detector"),Vt=t(async()=>{let{diagram:r}=await import("./chunk-VQNQFBID.js");return{id:Te,diagram:r}},"loader"),Ut={id:Te,detector:Nt,loader:Vt},Gt=Ut,Ae="swimlane",Ht=t(r=>/^\s*swimlane-beta\b/.test(r),"detector"),Bt=t(async()=>{let{diagram:r}=await import("./chunk-EKPVZ3WY.js");return{id:Ae,diagram:r}},"loader"),Yt={id:Ae,detector:Ht,loader:Bt},jt=Yt,_e="er",qt=t(r=>/^\s*erDiagram/.test(r),"detector"),Wt=t(async()=>{let{diagram:r}=await import("./chunk-6FU3T633.js");return{id:_e,diagram:r}},"loader"),Xt={id:_e,detector:qt,loader:Wt},Kt=Xt,Re="gitGraph",Qt=t(r=>/^\s*gitGraph/.test(r),"detector"),Zt=t(async()=>{let{diagram:r}=await import("./chunk-D6S3XBIX.js");return{id:Re,diagram:r}},"loader"),Jt={id:Re,detector:Qt,loader:Zt},ra=Jt,Le="gantt",ea=t(r=>/^\s*gantt/.test(r),"detector"),ta=t(async()=>{let{diagram:r}=await import("./chunk-KTPNKRRZ.js");return{id:Le,diagram:r}},"loader"),aa={id:Le,detector:ea,loader:ta},ia=aa,Me="info",oa=t(r=>/^\s*info/.test(r),"detector"),na=t(async()=>{let{diagram:r}=await import("./chunk-VASHXUK4.js");return{id:Me,diagram:r}},"loader"),sa={id:Me,detector:oa,loader:na},Ce="pie",da=t(r=>/^\s*pie/.test(r),"detector"),ca=t(async()=>{let{diagram:r}=await import("./chunk-HGVLDNPP.js");return{id:Ce,diagram:r}},"loader"),la={id:Ce,detector:da,loader:ca},ke="quadrantChart",ua=t(r=>/^\s*quadrantChart/.test(r),"detector"),ma=t(async()=>{let{diagram:r}=await import("./chunk-46H7FU5Y.js");return{id:ke,diagram:r}},"loader"),pa={id:ke,detector:ua,loader:ma},fa=pa,Ie="xychart",ga=t(r=>/^\s*xychart(-beta)?/.test(r),"detector"),va=t(async()=>{let{diagram:r}=await import("./chunk-LFHIPGSU.js");return{id:Ie,diagram:r}},"loader"),ha={id:Ie,detector:ga,loader:va},ya=ha,Fe="requirement",wa=t(r=>/^\s*requirement(Diagram)?/.test(r),"detector"),ba=t(async()=>{let{diagram:r}=await import("./chunk-QYPOXZIA.js");return{id:Fe,diagram:r}},"loader"),xa={id:Fe,detector:wa,loader:ba},Sa=xa,Oe="sequence",Ea=t(r=>/^\s*sequenceDiagram/.test(r),"detector"),Da=t(async()=>{let{diagram:r}=await import("./chunk-OTF7YHRE.js");return{id:Oe,diagram:r}},"loader"),Ta={id:Oe,detector:Ea,loader:Da},Aa=Ta,$e="class",_a=t((r,e)=>e?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(r),"detector"),Ra=t(async()=>{let{diagram:r}=await import("./chunk-TJNRPTFL.js");return{id:$e,diagram:r}},"loader"),La={id:$e,detector:_a,loader:Ra},Ma=La,ze="classDiagram",Ca=t((r,e)=>/^\s*classDiagram/.test(r)&&e?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(r),"detector"),ka=t(async()=>{let{diagram:r}=await import("./chunk-UMLU3FIX.js");return{id:ze,diagram:r}},"loader"),Ia={id:ze,detector:Ca,loader:ka},Fa=Ia,Pe="state",Oa=t((r,e)=>e?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(r),"detector"),$a=t(async()=>{let{diagram:r}=await import("./chunk-6XKIHRA4.js");return{id:Pe,diagram:r}},"loader"),za={id:Pe,detector:Oa,loader:$a},Pa=za,Ne="stateDiagram",Na=t((r,e)=>!!(/^\s*stateDiagram-v2/.test(r)||/^\s*stateDiagram/.test(r)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),Va=t(async()=>{let{diagram:r}=await import("./chunk-A3BQM7HR.js");return{id:Ne,diagram:r}},"loader"),Ua={id:Ne,detector:Na,loader:Va},Ga=Ua,Ve="journey",Ha=t(r=>/^\s*journey/.test(r),"detector"),Ba=t(async()=>{let{diagram:r}=await import("./chunk-V4QLL4TE.js");return{id:Ve,diagram:r}},"loader"),Ya={id:Ve,detector:Ha,loader:Ba},ja=Ya,qa=t((r,e,a)=>{f.debug(`rendering svg for syntax error
2
+ `);let i=Hr(e),o=i.append("g");i.attr("viewBox","0 0 2412 512"),Ur(i,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${a}`)},"draw"),Ue={draw:qa},Wa=Ue,Xa={db:{},renderer:Ue,parser:{parse:t(()=>{},"parse")}},Ka=Xa,Ge="flowchart-elk",Qa=t((r,e={})=>/^\s*flowchart-elk/.test(r)||/^\s*(flowchart|graph)/.test(r)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),Za=t(async()=>{let{diagram:r}=await import("./chunk-VQNQFBID.js");return{id:Ge,diagram:r}},"loader"),Ja={id:Ge,detector:Qa,loader:Za},ri=Ja,He="timeline",ei=t(r=>/^\s*timeline/.test(r),"detector"),ti=t(async()=>{let{diagram:r}=await import("./chunk-BLSLQ4AQ.js");return{id:He,diagram:r}},"loader"),ai={id:He,detector:ei,loader:ti},ii=ai,Be="mindmap",oi=t(r=>/^\s*mindmap/.test(r),"detector"),ni=t(async()=>{let{diagram:r}=await import("./chunk-53EG4IVQ.js");return{id:Be,diagram:r}},"loader"),si={id:Be,detector:oi,loader:ni},di=si,Ye="kanban",ci=t(r=>/^\s*kanban/.test(r),"detector"),li=t(async()=>{let{diagram:r}=await import("./chunk-AG67EUYD.js");return{id:Ye,diagram:r}},"loader"),ui={id:Ye,detector:ci,loader:li},mi=ui,je="sankey",pi=t(r=>/^\s*sankey(-beta)?/.test(r),"detector"),fi=t(async()=>{let{diagram:r}=await import("./chunk-ES3SSDJY.js");return{id:je,diagram:r}},"loader"),gi={id:je,detector:pi,loader:fi},vi=gi,qe="packet",hi=t(r=>/^\s*packet(-beta)?/.test(r),"detector"),yi=t(async()=>{let{diagram:r}=await import("./chunk-GGTADRXD.js");return{id:qe,diagram:r}},"loader"),wi={id:qe,detector:hi,loader:yi},We="radar",bi=t(r=>/^\s*radar-beta/.test(r),"detector"),xi=t(async()=>{let{diagram:r}=await import("./chunk-AO6JUBV6.js");return{id:We,diagram:r}},"loader"),Si={id:We,detector:bi,loader:xi},Xe="block",Ei=t(r=>/^\s*block(-beta)?/.test(r),"detector"),Di=t(async()=>{let{diagram:r}=await import("./chunk-NWUPALCY.js");return{id:Xe,diagram:r}},"loader"),Ti={id:Xe,detector:Ei,loader:Di},Ai=Ti,Ke="treeView",_i=t(r=>/^\s*treeView-beta/.test(r),"detector"),Ri=t(async()=>{let{diagram:r}=await import("./chunk-K23HAGEH.js");return{id:Ke,diagram:r}},"loader"),Li={id:Ke,detector:_i,loader:Ri},Mi=Li,Qe="architecture",Ci=t(r=>/^\s*architecture/.test(r),"detector"),ki=t(async()=>{let{diagram:r}=await import("./chunk-CP63H27F.js");return{id:Qe,diagram:r}},"loader"),Ii={id:Qe,detector:Ci,loader:ki},Fi=Ii,Ze="eventmodeling",Oi=t(r=>/^\s*eventmodeling/.test(r),"detector"),$i=t(async()=>{let{diagram:r}=await import("./chunk-JHL3ZDYK.js");return{id:Ze,diagram:r}},"loader"),zi={id:Ze,detector:Oi,loader:$i},Pi=zi,Je="ishikawa",Ni=t(r=>/^\s*ishikawa(-beta)?\b/i.test(r),"detector"),Vi=t(async()=>{let{diagram:r}=await import("./chunk-CPUMMIS2.js");return{id:Je,diagram:r}},"loader"),Ui={id:Je,detector:Ni,loader:Vi},rt="venn",Gi=t(r=>/^\s*venn-beta/.test(r),"detector"),Hi=t(async()=>{let{diagram:r}=await import("./chunk-X3U3NA3X.js");return{id:rt,diagram:r}},"loader"),Bi={id:rt,detector:Gi,loader:Hi},Yi=Bi,et="treemap",ji=t(r=>/^\s*treemap/.test(r),"detector"),qi=t(async()=>{let{diagram:r}=await import("./chunk-AFCFDDOP.js");return{id:et,diagram:r}},"loader"),Wi={id:et,detector:ji,loader:qi},tt="wardley",Xi=t(r=>/^\s*wardley-beta/i.test(r),"detector"),Ki=t(async()=>{let{diagram:r}=await import("./chunk-KR4DRHW2.js");return{id:tt,diagram:r}},"loader"),Qi={id:tt,detector:Xi,loader:Ki},Zi=Qi,at="cynefin",Ji=t(r=>/^\s*cynefin-beta(?:[\s:]|$)/.test(r),"detector"),ro=t(async()=>{let{diagram:r}=await import("./chunk-T6QKLZ4H.js");return{id:at,diagram:r}},"loader"),eo={id:at,detector:Ji,loader:ro},it="railroad",to=t(r=>/^\s*railroad-beta/i.test(r),"detector"),ao=t(async()=>{let{diagram:r}=await import("./chunk-S2W5THJ5.js");return{id:it,diagram:r}},"loader"),io={id:it,detector:to,loader:ao},ot="railroadEbnf",oo=t(r=>/^\s*railroad-ebnf-beta/i.test(r),"detector"),no=t(async()=>{let{diagram:r}=await import("./chunk-XBYU7M4J.js");return{id:ot,diagram:r}},"loader"),so={id:ot,detector:oo,loader:no},nt="railroadAbnf",co=t(r=>/^\s*railroad-abnf-beta/i.test(r),"detector"),lo=t(async()=>{let{diagram:r}=await import("./chunk-FXMQAGVT.js");return{id:nt,diagram:r}},"loader"),uo={id:nt,detector:co,loader:lo},st="railroadPeg",mo=t(r=>/^\s*railroad-peg-beta/i.test(r),"detector"),po=t(async()=>{let{diagram:r}=await import("./chunk-RCLOYU5F.js");return{id:st,diagram:r}},"loader"),fo={id:st,detector:mo,loader:po},we=!1,fr=t(()=>{we||(we=!0,W("error",Ka,r=>r.toLowerCase().trim()==="error"),W("---",{db:{clear:t(()=>{},"clear")},styles:{},renderer:{draw:t(()=>{},"draw")},parser:{parse:t(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:t(()=>null,"init")},r=>r.toLowerCase().trimStart().startsWith("---")),rr(ri,di,Fi),rr(Ft,mi,Fa,Ma,Kt,ia,sa,la,Sa,Aa,jt,Gt,Pt,ii,ra,Ga,Pa,ja,fa,vi,wi,ya,Ai,Pi,Mi,Si,Ui,Wi,io,so,uo,fo,Yi,Zi,eo))},"addDiagrams"),go=t(async()=>{f.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(J).map(async([a,{detector:i,loader:o}])=>{if(o)try{er(a)}catch{try{let{diagram:n,id:d}=await o();W(d,n,i)}catch(n){throw f.error(`Failed to load external diagram with key ${a}. Removing from detectors.`),delete J[a],n}}}))).filter(a=>a.status==="rejected");if(e.length>0){f.error(`Failed to load ${e.length} external diagrams`);for(let a of e)f.error(a);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),vo="graphics-document document";function dt(r,e){r.attr("role",vo),e!==""&&r.attr("aria-roledescription",e)}t(dt,"setA11yDiagramInfo");function ct(r,e,a,i){if(r.insert!==void 0){if(a){let o=`chart-desc-${i}`;r.attr("aria-describedby",o),r.insert("desc",":first-child").attr("id",o).text(a)}if(e){let o=`chart-title-${i}`;r.attr("aria-labelledby",o),r.insert("title",":first-child").attr("id",o).text(e)}}}t(ct,"addSVGa11yTitleDescription");var Dr=class lt{constructor(e,a,i,o,n){this.type=e,this.text=a,this.db=i,this.parser=o,this.renderer=n}static{t(this,"Diagram")}static async fromText(e,a={}){let i=N(),o=yr(e,i);e=qr(e)+`
3
+ `;try{er(o)}catch{let m=Vr(o);if(!m)throw new Nr(`Diagram ${o} not found.`);let{id:g,diagram:u}=await m();W(g,u)}let{db:n,parser:d,renderer:s,init:c}=er(o);return d.parser&&(d.parser.yy=n),n.clear?.(),c?.(i),a.title&&n.setDiagramTitle?.(a.title),await d.parse(e),new lt(o,e,n,d,s)}async render(e,a){await this.renderer.draw(this.text,e,a,this)}getParser(){return this.parser}getType(){return this.type}},be=[],ho=t(()=>{be.forEach(r=>{r()}),be=[]},"attachFunctions"),yo=t(r=>r.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function ut(r){let e=r.match(Pr);if(!e)return{text:r,metadata:{}};let a=e[1],i=a?e[2].split(`
4
+ `).map(d=>d.startsWith(a)?d.slice(a.length):d).join(`
5
+ `):e[2],o=Qr(i,{schema:Kr})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};let n={};return o.displayMode&&(n.displayMode=o.displayMode.toString()),o.title&&(n.title=o.title.toString()),o.config&&(n.config=o.config),{text:r.slice(e[0].length),metadata:n}}t(ut,"extractFrontMatter");var wo=t(r=>r.replace(/\r\n?/g,`
6
+ `).replace(/<(\w+)([^>]*)>/g,(e,a,i)=>"<"+a+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),bo=t(r=>{let{text:e,metadata:a}=ut(r),{displayMode:i,title:o,config:n={}}=a;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:o,config:n,text:e}},"processFrontmatter"),xo=t(r=>{let e=V.detectInit(r)??{},a=V.detectDirective(r,"wrap");return Array.isArray(a)?e.wrap=a.some(({type:i})=>i==="wrap"):a?.type==="wrap"&&(e.wrap=!0),{text:Yr(r),directive:e}},"processDirectives");function Ar(r){let e=wo(r),a=bo(e),i=xo(a.text),o=jr(a.config,i.directive);return r=yo(i.text),{code:r,title:a.title,config:o}}t(Ar,"preprocessDiagram");function mt(r){let e=new TextEncoder().encode(r),a=Array.from(e,i=>String.fromCodePoint(i)).join("");return btoa(a)}t(mt,"toBase64");var So=5e4,Eo="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Do="sandbox",To="loose",Ao="http://www.w3.org/2000/svg",_o="http://www.w3.org/1999/xlink",Ro="http://www.w3.org/1999/xhtml",Lo="100%",Mo="100%",Co="border:0;margin:0;",ko="margin:0",Io="allow-top-navigation-by-user-activation allow-popups",Fo='The "iframe" tag is not supported by your browser.',Oo=["foreignobject"],$o=["dominant-baseline"];function _r(r){let e=Ar(r);return q(),$r(e.config??{}),e}t(_r,"processAndSetConfigs");async function pt(r,e){fr();try{let{code:a,config:i}=_r(r);return{diagramType:(await gt(a)).type,config:i}}catch(a){if(e?.suppressErrors)return!1;throw a}}t(pt,"parse");var xe=t((r,e,a=[])=>{let i=Mr(`{ ${a.join(" !important; ")} !important; }`);return`.${r} ${e} ${i}`},"cssImportantStyles"),zo=t((r,e=new Map)=>{let a=new CSSStyleSheet;if(r.fontFamily!==void 0&&a.insertRule(`:root { --mermaid-font-family: ${r.fontFamily}}`,a.cssRules.length),r.altFontFamily!==void 0&&a.insertRule(`:root { --mermaid-alt-font-family: ${r.altFontFamily}}`,a.cssRules.length),e instanceof Map){let s=zr(r)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(c=>{br(c.styles)||s.forEach(m=>{a.insertRule(xe(c.id,m,c.styles),a.cssRules.length)}),br(c.textStyles)||a.insertRule(xe(c.id,"tspan",(c?.textStyles||[]).map(m=>m.replace("color","fill"))),a.cssRules.length)})}let i="";if(r.themeCSS!==void 0)if(typeof a.replaceSync=="function"){let o=new CSSStyleSheet;o.replaceSync(r.themeCSS),i=wr(o)+`
7
+ `}else i+=`${r.themeCSS}
8
+ `;return i+wr(a)},"createCssStyles"),Po=t((r,e)=>mr(ve(`${r}{${e}}`),ye([t(function(i,o,n,d){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===X)return;i.props=i.props.map(s=>s===r&&Array.isArray(i.children)&&i.children.every(m=>m.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(m.props))||(s.startsWith(`${r} `)||s.startsWith(`${r}>`))&&!s.startsWith(`${r} ||`)?s:`${r} ${s}`)}else i.type.startsWith("@")&&([...[Jr,ee,ir,ae,"@container","@starting-style"],X].includes(i.type)||(f.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=U))},"addNamespace"),he])),"compileCSS"),No=t((r,e,a,i)=>{let o=zo(r,a),n=Gr(e,o,{...r.themeVariables,theme:r.theme,look:r.look},i);return Po(i,n)},"createUserStyles"),Vo=t((r="",e,a)=>{let i=r;return!a&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Wr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),Uo=t((r="",e)=>{let a=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":Mo,i=mt(`<body style="${ko}">${r}</body>`);return`<iframe style="width:${Lo};height:${a};${Co}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${Io}">
9
+ ${Fo}
10
+ </iframe>`},"putIntoIFrame"),Se=t((r,e,a,i,o)=>{let n=r.append("div");n.attr("id",a),i&&n.attr("style",i);let d=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Ao);return o&&d.attr("xmlns:xlink",o),d.append("g"),r},"appendDivSvgG");function Tr(r,e){return r.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}t(Tr,"sandboxedIframe");var Go=t((r,e,a,i)=>{r.getElementById(e)?.remove(),r.getElementById(a)?.remove(),r.getElementById(i)?.remove()},"removeExistingElements"),Ho=t(async function(r,e,a){fr();let i=_r(e);e=i.code;let o=N();f.debug(o),e.length>(o?.maxTextSize??So)&&(e=Eo);let n=`#${r}`,d="i"+r,s="#"+d,c="d"+r,m="#"+c,g=t(()=>{let j=C(w?s:m).node();j&&"remove"in j&&j.remove()},"removeTempElements"),u=C(document.body),w=o.securityLevel===Do,T=o.securityLevel===To,A=o.fontFamily;if(a!==void 0){if(a&&(a.innerHTML=""),w){let y=Tr(C(a),d);u=C(y.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=C(a);Se(u,r,c,`font-family: ${A}`,_o)}else{if(Go(document,r,c,d),w){let y=Tr(C(document.body),d);u=C(y.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=C("body");Se(u,r,c)}let p,M;try{p=await Dr.fromText(e,{title:i.title})}catch(y){if(o.suppressErrorRendering)throw g(),y;p=await Dr.fromText("error"),M=y}let _=u.select(m).node(),b=p.type,v=_.firstChild,R=v.firstChild,P=p.renderer.getClasses?.(e,p),L=No(o,b,P,n),S=document.createElement("style");S.innerHTML=L,v.insertBefore(S,R);try{await p.renderer.draw(e,r,"11.17.2",p)}catch(y){throw o.suppressErrorRendering?g():Wa.draw(e,r,"11.17.2"),y}let l=u.select(`${m} svg`),St=p.db.getAccTitle?.(),Et=p.db.getAccDescription?.();vt(b,l,St,Et);let Dt=t(()=>{u.select(`[id="${r}"]`).selectAll("foreignobject > *").attr("xmlns",Ro);let y=u.select(m).node().innerHTML;if(f.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),y=Vo(y,w,Cr(o.arrowMarkerAbsolute)),w){let j=u.select(m+" svg").node();y=Uo(y,j)}else T||(y=Rr.sanitize(y,{ADD_TAGS:Oo,ADD_ATTR:$o,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return ho(),y},"serializeSvg")();if(M)throw M;return g(),{diagramType:b,svg:Dt,bindFunctions:p.db.bindFunctions}},"render");function ft(r={}){let e=Lr({},r);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),Ir(e),e?.theme&&e.theme in Z?e.themeVariables=Z[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Z.default.getThemeVariables(e.themeVariables));let a=typeof e=="object"?kr(e):hr();gr(a.logLevel),fr()}t(ft,"initialize");var gt=t((r,e={})=>{let{code:a}=Ar(r);return Dr.fromText(a,e)},"getDiagramFromText");function vt(r,e,a,i){dt(e,r),ct(e,a,i,e.attr("id"))}t(vt,"addA11yInfo");var z=Object.freeze({render:Ho,parse:pt,getDiagramFromText:gt,initialize:ft,getConfig:N,setConfig:Or,getSiteConfig:hr,updateSiteConfig:Fr,reset:t(()=>{q()},"reset"),globalReset:t(()=>{q(vr)},"globalReset"),defaultConfig:vr});gr(N().logLevel);q(N());var Bo=t((r,e,a)=>{f.warn(r),xr(r)?(a&&a(r.str,r.hash),e.push({...r,message:r.str,error:r})):(a&&a(r),r instanceof Error&&e.push({str:r.message,message:r.message,hash:r.name,error:r}))},"handleError"),ht=t(async function(r={querySelector:".mermaid"}){try{await Yo(r)}catch(e){if(xr(e)&&f.error(e.str),O.parseError&&O.parseError(e),!r.suppressErrors)throw f.error("Use the suppressErrors option to suppress these errors"),e}},"run"),Yo=t(async function({postRenderCallback:r,querySelector:e,nodes:a}={querySelector:".mermaid"}){let i=z.getConfig();f.debug(`${r?"":"No "}Callback function found`);let o;if(a)o=a;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");f.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(f.debug("Start On Load: "+i?.startOnLoad),z.updateSiteConfig({startOnLoad:i?.startOnLoad}));let n=new V.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),d,s=[];for(let c of Array.from(o)){if(f.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");let m=`mermaid-${n.next()}`;d=c.innerHTML,d=Xr(V.entityDecode(d)).trim().replace(/<br\s*\/?>/gi,"<br/>");let g=V.detectInit(d);g&&f.debug("Detected early reinit: ",g);try{let{svg:u,bindFunctions:w}=await xt(m,d,c);c.innerHTML=u,r&&await r(m),w&&w(c)}catch(u){Bo(u,s,O.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),yt=t(function(r){z.initialize(r)},"initialize"),jo=t(async function(r,e,a){f.warn("mermaid.init is deprecated. Please use run instead."),r&&yt(r);let i={postRenderCallback:a,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await ht(i)},"init"),qo=t(async(r,{lazyLoad:e=!0}={})=>{fr(),rr(...r),e===!1&&await go()},"registerExternalDiagrams"),wt=t(function(){if(O.startOnLoad){let{startOnLoad:r}=z.getConfig();r&&O.run().catch(e=>f.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",wt,!1);var Wo=t(function(r){O.parseError=r},"setParseErrorHandler"),pr=[],Er=!1,bt=t(async()=>{if(!Er){for(Er=!0;pr.length>0;){let r=pr.shift();if(r)try{await r()}catch(e){f.error("Error executing queue",e)}}Er=!1}},"executeQueue"),Xo=t(async(r,e)=>new Promise((a,i)=>{let o=t(()=>new Promise((n,d)=>{z.parse(r,e).then(s=>{n(s),a(s)},s=>{f.error("Error parsing",s),O.parseError?.(s),d(s),i(s)})}),"performCall");pr.push(o),bt().catch(i)}),"parse"),xt=t((r,e,a)=>new Promise((i,o)=>{let n=t(()=>new Promise((d,s)=>{z.render(r,e,a).then(c=>{d(c),i(c)},c=>{f.error("Error parsing",c),O.parseError?.(c),s(c),o(c)})}),"performCall");pr.push(n),bt().catch(o)}),"render"),Ko=t(()=>Object.keys(J).map(r=>({id:r})),"getRegisteredDiagramsMetadata"),O={startOnLoad:!0,mermaidAPI:z,parse:Xo,render:xt,init:jo,run:ht,registerExternalDiagrams:qo,registerLayoutLoaders:Zr,initialize:yt,parseError:void 0,contentLoaded:wt,setParseErrorHandler:Wo,detectType:yr,registerIconPacks:Br,getRegisteredDiagramsMetadata:Ko},On=O;export{At as clearLayoutRenderState,Tt as createCommonLayoutRenderer,On as default,_t as defaultMeasureLayout,Rt as paintLayoutData};
@@ -0,0 +1,3 @@
1
+ import{a}from"./chunk-CUS65DKZ.js";var i={},c={info:a(async()=>{let{createInfoServices:e}=await import("./chunk-BCB4X4XX.js"),r=e().Info.parser.LangiumParser;i.info=r},"info"),packet:a(async()=>{let{createPacketServices:e}=await import("./chunk-UAN3NLRF.js"),r=e().Packet.parser.LangiumParser;i.packet=r},"packet"),pie:a(async()=>{let{createPieServices:e}=await import("./chunk-3SNBBMGH.js"),r=e().Pie.parser.LangiumParser;i.pie=r},"pie"),treeView:a(async()=>{let{createTreeViewServices:e}=await import("./chunk-23JHGYT3.js"),r=e().TreeView.parser.LangiumParser;i.treeView=r},"treeView"),architecture:a(async()=>{let{createArchitectureServices:e}=await import("./chunk-S2CCN3II.js"),r=e().Architecture.parser.LangiumParser;i.architecture=r},"architecture"),gitGraph:a(async()=>{let{createGitGraphServices:e}=await import("./chunk-URIY2OTM.js"),r=e().GitGraph.parser.LangiumParser;i.gitGraph=r},"gitGraph"),eventmodeling:a(async()=>{let{createEventModelingServices:e}=await import("./chunk-CM6LZ7TU.js"),r=e().EventModel.parser.LangiumParser;i.eventmodeling=r},"eventmodeling"),radar:a(async()=>{let{createRadarServices:e}=await import("./chunk-R6SOF3JC.js"),r=e().Radar.parser.LangiumParser;i.radar=r},"radar"),railroad:a(async()=>{let{createRailroadServices:e}=await import("./chunk-AVZL46TT.js"),r=e().Railroad.parser.LangiumParser;i.railroad=r},"railroad"),railroadEbnf:a(async()=>{let{createRailroadEbnfServices:e}=await import("./chunk-ZND3TTGF.js"),r=e().RailroadEbnf.parser.LangiumParser;i.railroadEbnf=r},"railroadEbnf"),railroadAbnf:a(async()=>{let{createRailroadAbnfServices:e}=await import("./chunk-QSEG3OFF.js"),r=e().RailroadAbnf.parser.LangiumParser;i.railroadAbnf=r},"railroadAbnf"),railroadPeg:a(async()=>{let{createRailroadPegServices:e}=await import("./chunk-ZLR4SG5X.js"),r=e().RailroadPeg.parser.LangiumParser;i.railroadPeg=r},"railroadPeg"),treemap:a(async()=>{let{createTreemapServices:e}=await import("./chunk-RSRUP64S.js"),r=e().Treemap.parser.LangiumParser;i.treemap=r},"treemap"),wardley:a(async()=>{let{createWardleyServices:e}=await import("./chunk-GOCKBYSM.js"),r=e().Wardley.parser.LangiumParser;i.wardley=r},"wardley"),cynefin:a(async()=>{let{createCynefinServices:e}=await import("./chunk-AGJHMMTN.js"),r=e().Cynefin.parser.LangiumParser;i.cynefin=r},"cynefin")};async function d(e,r){let n=c[e];if(!n)throw new Error(`Unknown diagram type: ${e}`);i[e]||await n();let t=i[e].parse(r);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new l(t);return t.value}a(d,"parse");var l=class extends Error{constructor(e){let r=e.lexerErrors.map(o=>{let t=o.line!==void 0&&!isNaN(o.line)?o.line:"?",s=o.column!==void 0&&!isNaN(o.column)?o.column:"?";return`Lexer error on line ${t}, column ${s}: ${o.message}`}).join(`
2
+ `),n=e.parserErrors.map(o=>{let t=o.token.startLine!==void 0&&!isNaN(o.token.startLine)?o.token.startLine:"?",s=o.token.startColumn!==void 0&&!isNaN(o.token.startColumn)?o.token.startColumn:"?";return`Parse error on line ${t}, column ${s}: ${o.message}`}).join(`
3
+ `);super(`Parsing failed: ${r} ${n}`),this.result=e}static{a(this,"MermaidParseError")}};export{d as a,l as b};
@@ -0,0 +1,15 @@
1
+ import{a as e}from"./chunk-5FIPUNR4.js";var l=e(()=>`
2
+ /* Font Awesome icon styling - consolidated */
3
+ .label-icon {
4
+ display: inline-block;
5
+ height: 1em;
6
+ overflow: visible;
7
+ vertical-align: -0.125em;
8
+ }
9
+
10
+ .node .label-icon path {
11
+ fill: currentColor;
12
+ stroke: revert;
13
+ stroke-width: revert;
14
+ }
15
+ `,"getIconStyles");export{l as a};
@@ -0,0 +1 @@
1
+ import{a as e,b as r}from"./chunk-KKQSA4LI.js";import"./chunk-CUS65DKZ.js";import"./chunk-SQE76S5B.js";export{e as RailroadPegModule,r as createRailroadPegServices};
@@ -0,0 +1 @@
1
+ import{a as r,b as o}from"./chunk-ZOP3ZYH7.js";import"./chunk-CUS65DKZ.js";import"./chunk-SQE76S5B.js";export{r as RailroadEbnfModule,o as createRailroadEbnfServices};
@@ -0,0 +1,2 @@
1
+ import{a as o,b as d,c,d as i,e as l,g as u,q as f,w as E,y as m}from"./chunk-CUS65DKZ.js";var b=class extends m{static{o(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},v=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="\\"&&t+1<e.length){t++;let s=e[t];switch(s){case"n":r+=`
2
+ `;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=s}continue}r+=n}return r},"decodeEscapedString"),h=class extends E{static{o(this,"RailroadEbnfValueConverter")}runConverter(a,e,r){let t=super.runConverter(a,e,r);if(a.name==="TITLE"&&typeof t=="string"){let n=t.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return v(n)}return t}runCustomConverter(a,e,r){if(a.name==="EBNF_STRING")return v(e);if(a.name==="EBNF_SPECIAL_SEQUENCE")return e.slice(1,-1).trim()}},C={parser:{TokenBuilder:o(()=>new b,"TokenBuilder"),ValueConverter:o(()=>new h,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),f,C);return e.ServiceRegistry.register(r),{shared:e,RailroadEbnf:r}}o(R,"createRailroadEbnfServices");export{C as a,R as b};
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta name="referrer" content="no-referrer" />
7
+ <title>任务工作台</title>
8
+ <link rel="stylesheet" href="/workbench/ui/app.css" />
9
+ </head>
10
+ <body>
11
+ <div id="app"></div>
12
+ <script type="module" src="/workbench/ui/app.js"></script>
13
+ </body>
14
+ </html>