@dooc-dev/dooc 0.0.5 → 0.0.7

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 (174) hide show
  1. package/dist/cli.js +162 -67
  2. package/dist/code-worker.global.js +152 -0
  3. package/dist/code.global.js +101 -101
  4. package/dist/compiler/bundle-urls.js +2 -0
  5. package/dist/compiler/check.js +2 -0
  6. package/dist/compiler/compile.js +13 -3
  7. package/dist/compiler/dxf.d.ts +1 -0
  8. package/dist/compiler/dxf.js +81 -0
  9. package/dist/compiler/export.js +22 -15
  10. package/dist/compiler/figures.js +39 -10
  11. package/dist/compiler/files.js +2 -0
  12. package/dist/compiler/ignored-files.d.ts +2 -0
  13. package/dist/compiler/ignored-files.js +30 -0
  14. package/dist/compiler/ops.js +1 -1
  15. package/dist/compiler/subformat-schema.d.ts +14 -0
  16. package/dist/compiler/subformat-schema.js +92 -0
  17. package/dist/compiler/subformats.d.ts +5 -7
  18. package/dist/compiler/subformats.js +115 -75
  19. package/dist/core/code-file.js +7 -5
  20. package/dist/core/code-grammars.d.ts +5 -0
  21. package/dist/core/code-grammars.js +34 -0
  22. package/dist/core/content-metadata.d.ts +2 -1
  23. package/dist/core/content-metadata.js +7 -2
  24. package/dist/core/content-types.d.ts +1 -1
  25. package/dist/core/escape-html.d.ts +1 -0
  26. package/dist/core/escape-html.js +1 -0
  27. package/dist/core/figure-frame.js +1 -1
  28. package/dist/core/file-embed.js +7 -3
  29. package/dist/core/html.d.ts +4 -1
  30. package/dist/core/html.js +8 -7
  31. package/dist/core/language.js +5 -2
  32. package/dist/core/markdown.js +3 -1
  33. package/dist/core/previewers.d.ts +8 -0
  34. package/dist/core/previewers.js +2 -0
  35. package/dist/core/schema-fields.d.ts +13 -0
  36. package/dist/core/schema-fields.js +175 -0
  37. package/dist/core/schema-graph-mount.js +26 -3
  38. package/dist/core/schema-refs.d.ts +8 -0
  39. package/dist/core/schema-refs.js +82 -0
  40. package/dist/core/toc-ui.js +1 -1
  41. package/dist/edit.global.js +266 -285
  42. package/dist/flow.global.js +1031 -1057
  43. package/dist/graph/abnfDiagram-S7VZAUFO-GAGCW2J5.js +1 -0
  44. package/dist/graph/architecture-WOLXFQ4H-AWAC3VBS.js +1 -0
  45. package/dist/graph/architectureDiagram-YGSQEFNW-WQ7QKSUJ.js +36 -0
  46. package/dist/graph/blockDiagram-APKKGZFW-H7ZNJMOM.js +140 -0
  47. package/dist/graph/bpmnIcons-APHXDYXF-EAVPNTFE.js +1 -0
  48. package/dist/graph/c4Diagram-KJ2TOQU5-3IYS34YL.js +38 -0
  49. package/dist/graph/chunk-3CJU2RDX.js +1 -0
  50. package/dist/graph/chunk-3LU66YMI.js +1 -0
  51. package/dist/graph/chunk-3Y2PDVDE.js +1 -0
  52. package/dist/graph/chunk-4KILFWYV.js +339 -0
  53. package/dist/graph/chunk-4QDE4SUK.js +1 -0
  54. package/dist/graph/chunk-5N2X2DXU.js +1 -0
  55. package/dist/graph/chunk-5OO6DATX.js +1 -0
  56. package/dist/graph/chunk-67BPVAXC.js +1 -0
  57. package/dist/graph/chunk-6CDZONCA.js +1 -0
  58. package/dist/graph/chunk-7ASYMKN2.js +1 -0
  59. package/dist/graph/chunk-7JQUFVT4.js +10 -0
  60. package/dist/graph/chunk-7LSMJ4VU.js +72 -0
  61. package/dist/graph/chunk-7UKJADAE.js +213 -0
  62. package/dist/graph/chunk-AARGNXTW.js +32 -0
  63. package/dist/graph/chunk-ARAJTKOH.js +2 -0
  64. package/dist/graph/chunk-BOXAA5AP.js +62 -0
  65. package/dist/graph/chunk-BTMPKSGF.js +1 -0
  66. package/dist/graph/chunk-BVXT562I.js +1 -0
  67. package/dist/graph/chunk-DIDARDST.js +1 -0
  68. package/dist/graph/chunk-EWYECPNJ.js +1 -0
  69. package/dist/graph/chunk-FD7ZFC7R.js +3 -0
  70. package/dist/graph/chunk-GF4TOPUK.js +1 -0
  71. package/dist/graph/chunk-GWYODWCE.js +1 -0
  72. package/dist/graph/chunk-HKRJKXEE.js +1 -0
  73. package/dist/graph/chunk-I5LEUF24.js +1 -0
  74. package/dist/graph/chunk-ICJPOOXG.js +1 -0
  75. package/dist/graph/chunk-IVZHB6RS.js +135 -0
  76. package/dist/graph/chunk-JSHWCPFJ.js +1 -0
  77. package/dist/graph/chunk-JZGXHT3J.js +1 -0
  78. package/dist/graph/chunk-K4I76XBX.js +14 -0
  79. package/dist/graph/chunk-LSRL537V.js +88 -0
  80. package/dist/graph/chunk-LT6LXKCR.js +136 -0
  81. package/dist/graph/chunk-MPR575IN.js +1 -0
  82. package/dist/graph/chunk-N44XPVUD.js +15 -0
  83. package/dist/graph/chunk-NDAMZVXQ.js +1 -0
  84. package/dist/graph/chunk-O656ZI37.js +1 -0
  85. package/dist/graph/chunk-PDH25ALM.js +2 -0
  86. package/dist/graph/chunk-QLS7NIYR.js +2 -0
  87. package/dist/graph/chunk-QQIGL7OP.js +1 -0
  88. package/dist/graph/chunk-QYAXYFNI.js +1 -0
  89. package/dist/graph/chunk-QYTM6GY3.js +1 -0
  90. package/dist/graph/chunk-RJFVWYCA.js +1 -0
  91. package/dist/graph/chunk-SCEY3ZPT.js +1 -0
  92. package/dist/graph/chunk-SQE76S5B.js +1 -0
  93. package/dist/graph/chunk-WQHTQAFY.js +1 -0
  94. package/dist/graph/chunk-XQS73SBQ.js +1 -0
  95. package/dist/graph/chunk-Z4FIZ7CR.js +1 -0
  96. package/dist/graph/chunk-ZSZXN4BT.js +2 -0
  97. package/dist/graph/classDiagram-v2-L25IHNXF-HNTCDTNK.js +217 -0
  98. package/dist/graph/cose-bilkent-JH36ORCC-2GVA7XKO.js +1 -0
  99. package/dist/graph/cynefin-EF2NZ3EQ-TCI65RAQ.js +1 -0
  100. package/dist/graph/cynefinDiagram-L36ESFBY-OKQ5BLVF.js +62 -0
  101. package/dist/graph/dagre-SPEB5RXH-KZEBD52K.js +4 -0
  102. package/dist/graph/diagram-3B7GL73J-ESCBJM3O.js +200 -0
  103. package/dist/graph/diagram-DNEMPZML-ZIBUSQZI.js +24 -0
  104. package/dist/graph/diagram-L3MUGCDN-IGK62IPN.js +41 -0
  105. package/dist/graph/diagram-LA4NIPWU-2KZCOFJ5.js +24 -0
  106. package/dist/graph/diagram-MHCOC4E2-EYAAB236.js +3 -0
  107. package/dist/graph/diagram-XPFHEONP-OZ5ARGMG.js +30 -0
  108. package/dist/graph/ebnfDiagram-UZSYDL2S-M3XJHARD.js +1 -0
  109. package/dist/graph/erDiagram-EYBAPDEH-Y7KUBH7A.js +99 -0
  110. package/dist/graph/eventmodeling-K75KTNOO-ROLYRDEP.js +1 -0
  111. package/dist/graph/flowDiagram-MALGAFMO-AAUEIPCR.js +1 -0
  112. package/dist/graph/ganttDiagram-23REXITY-JSBTFSSJ.js +292 -0
  113. package/dist/graph/gitGraph-VSP46ZUC-ZCBCDVNF.js +1 -0
  114. package/dist/graph/gitGraphDiagram-STJD7YCW-3ZA5FT3G.js +106 -0
  115. package/dist/graph/info-OHQRW6UA-JKJGOQNY.js +1 -0
  116. package/dist/graph/infoDiagram-KBXO4MBG-6LFMPP2O.js +2 -0
  117. package/dist/graph/ishikawaDiagram-M35NCXHK-YLEU44DY.js +70 -0
  118. package/dist/graph/journeyDiagram-OPLOXDXO-ZHJV66ZT.js +139 -0
  119. package/dist/graph/kanban-definition-BZKZHSQY-SDU25WUM.js +89 -0
  120. package/dist/graph/katex-WSLZOTY7.js +257 -0
  121. package/dist/graph/mindmap-definition-I2QAS2VK-XQNBCYHN.js +98 -0
  122. package/dist/graph/packet-JDAUHWVQ-Y3H77ERD.js +1 -0
  123. package/dist/graph/pegDiagram-FD4XPPHP-YO4VWH6V.js +1 -0
  124. package/dist/graph/pie-XZMESJXO-PRER4XL5.js +1 -0
  125. package/dist/graph/pieDiagram-J4AKIIQI-TJ5WOOSV.js +39 -0
  126. package/dist/graph/quadrantDiagram-XTYBLID2-G6MSSZLW.js +7 -0
  127. package/dist/graph/radar-ABXABTNO-M6MV34GM.js +1 -0
  128. package/dist/graph/railroad-I3PHUGI6-YIWPGN6Q.js +1 -0
  129. package/dist/graph/railroad-abnf-LNEFI6M7-7JHLZ2R7.js +1 -0
  130. package/dist/graph/railroad-ebnf-DWYD2UWJ-V55BXEWY.js +1 -0
  131. package/dist/graph/railroad-peg-JR7BVNR7-XCGKDRMK.js +1 -0
  132. package/dist/graph/railroadDiagram-MRQ6NCDL-RACSFXC4.js +1 -0
  133. package/dist/graph/requirementDiagram-Y7LWUY3S-4LQIQWHQ.js +84 -0
  134. package/dist/graph/sankeyDiagram-WGJFYUXA-K3RXG5FB.js +40 -0
  135. package/dist/graph/schema-graph-global.js +639 -0
  136. package/dist/graph/sequenceDiagram-5NDRBG5M-Y6RBHRS3.js +169 -0
  137. package/dist/graph/sizeCapture-INFHLROL-TJW3VUGH.js +1 -0
  138. package/dist/graph/stateDiagram-v2-FJ4FJNEA-4M5WZORG.js +291 -0
  139. package/dist/graph/swimlanes-UMQ2AFYF-O4W6U4RO.js +1 -0
  140. package/dist/graph/swimlanesDiagram-OMPLPG4O-HZAKM45N.js +8 -0
  141. package/dist/graph/timeline-definition-SEUHKTQE-IHISQ4Q7.js +120 -0
  142. package/dist/graph/treeView-D4JQ5SDB-EVGY4VYS.js +1 -0
  143. package/dist/graph/treemap-SAJKECNS-LN3SMFRX.js +1 -0
  144. package/dist/graph/usecaseDiagram-AFA6YXN4-B645A3J6.js +370 -0
  145. package/dist/graph/vennDiagram-NNMJR3RB-K3HWMON6.js +34 -0
  146. package/dist/graph/wardley-7MLQ67FV-RRWOELC6.js +1 -0
  147. package/dist/graph/wardleyDiagram-S7YFUSEH-DMMWKJEK.js +78 -0
  148. package/dist/graph/xychartDiagram-GGNKY7IX-K6MUQVXR.js +7 -0
  149. package/dist/mcp.js +5 -4
  150. package/dist/plugins.global.js +71 -104
  151. package/dist/subformats.global.js +6 -112
  152. package/dist/ui.global.js +75 -108
  153. package/dist/viewer/build.d.ts +2 -0
  154. package/dist/viewer/build.js +22 -8
  155. package/dist/viewer/code-file.js +7 -2
  156. package/dist/viewer/figure-preview.d.ts +4 -0
  157. package/dist/viewer/figure-preview.js +54 -0
  158. package/dist/viewer/hmr.js +4 -3
  159. package/dist/viewer/lazy-preview.d.ts +2 -0
  160. package/dist/viewer/lazy-preview.js +43 -0
  161. package/dist/viewer/locales/eng.json +26 -3
  162. package/dist/viewer/locales/jpn.json +26 -3
  163. package/dist/viewer/locales/zho.json +26 -3
  164. package/dist/viewer/plugin-blocks.js +1 -1
  165. package/dist/viewer/plugins.js +1 -1
  166. package/dist/viewer/resource-library.d.ts +1 -1
  167. package/dist/viewer/resource-library.js +5 -4
  168. package/dist/viewer/serve.d.ts +2 -1
  169. package/dist/viewer/serve.js +148 -41
  170. package/dist/viewer/textfile.d.ts +2 -0
  171. package/dist/viewer/textfile.js +20 -5
  172. package/package.json +14 -4
  173. package/dist/viewer/lazy-graph.d.ts +0 -2
  174. package/dist/viewer/lazy-graph.js +0 -30
@@ -0,0 +1 @@
1
+ import{a as e,b as t,c as a,d as o,e as i,g as u,l as d,x as s,y as l}from"./chunk-LT6LXKCR.js";var f=class extends l{static{e(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},m={parser:{TokenBuilder:e(()=>new f,"TokenBuilder"),ValueConverter:e(()=>new s,"ValueConverter")}};function v(c=i){let r=o(a(c),u),n=o(t({shared:r}),d,m);return r.ServiceRegistry.register(n),{shared:r,Info:n}}e(v,"createInfoServices");export{m as a,v as b};
@@ -0,0 +1,15 @@
1
+ import{a as e}from"./chunk-RJFVWYCA.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{g as o}from"./chunk-BOXAA5AP.js";import{u as f}from"./chunk-QLS7NIYR.js";import{b as h}from"./chunk-QQIGL7OP.js";import{a as s}from"./chunk-RJFVWYCA.js";var T=s(({flowchart:a})=>{let t=a?.subGraphTitleMargin?.top??0,i=a?.subGraphTitleMargin?.bottom??0,r=t+i;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:r}},"getSubGraphTitleMargins"),l=new Map;async function g(a,t,i){let r,e;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let p=t.shape?o[t.shape]:void 0;if(!p)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let c;i.config.securityLevel==="sandbox"?c="_top":t.linkTarget&&(c=t.linkTarget||"_blank"),r=a.insert("svg:a").attr("xlink:href",t.link).attr("target",c??null),e=await p(r,t,i)}else e=await p(a,t,i),r=e;return r.attr("data-look",f(t.look)),t.tooltip&&e.attr("title",t.tooltip),l.set(t.id,r),t.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}s(g,"insertNode");var k=s((a,t)=>{l.set(t.id,a)},"setNodeElem"),v=s(()=>{l.clear()},"clear"),w=s(a=>{let t=l.get(a.id);h.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");let i=8,r=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+r-a.width/2)+", "+(a.y-a.height/2-i)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),r},"positionNode");export{T as a,g as b,k as c,v as d,w as e};
@@ -0,0 +1 @@
1
+ import{a as r,b as s,c as l,d as a,e as c,g as v,j as u,x as E,y as m}from"./chunk-LT6LXKCR.js";var V=class extends m{static{r(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},S=new Set(["cmd","command"]),y=new Set(["evt","event"]),d=new Set(["rmo","readmodel"]),h=new Set(["pcr","processor"]),M=new Set(["ui"]);function T(e){let t=e.validation.EventModelingValidator,o=e.validation.ValidationRegistry;if(o){let i={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};o.register(i,t)}}r(T,"registerValidationChecks");var k=class{static{r(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(S.has(e.modelEntityType)?this.validateSources(e,new Set([...M,...h]),"command","ui or processor",t):y.has(e.modelEntityType)?this.validateSources(e,S,"event","command",t):d.has(e.modelEntityType)?this.validateSources(e,y,"read model","event",t):h.has(e.modelEntityType)?this.validateSources(e,d,"processor","read model",t):M.has(e.modelEntityType)&&this.validateSources(e,d,"ui","read model",t))}validateSources(e,t,o,i,g){for(let p of e.sourceFrames){let n=p.ref;n!==void 0&&!t.has(n.modelEntityType)&&g("error",`A ${o} can only receive input from a ${i}, not from '${n.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},C={parser:{TokenBuilder:r(()=>new V,"TokenBuilder"),ValueConverter:r(()=>new E,"ValueConverter")},validation:{EventModelingValidator:r(()=>new k,"EventModelingValidator")}};function w(e=c){let t=a(l(e),v),o=a(s({shared:t}),u,C);return t.ServiceRegistry.register(o),T(o),{shared:t,EventModel:o}}r(w,"createEventModelingServices");export{C as a,w as b};
@@ -0,0 +1,2 @@
1
+ import{a as o,b as d,c,d as i,e as l,g as u,s as v,w as g,y as m}from"./chunk-LT6LXKCR.js";var f=class extends m{static{o(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},h=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"),p=class extends g{static{o(this,"RailroadPegValueConverter")}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 h(n)}return t}runCustomConverter(a,e,r){if(a.name==="PEG_STRING")return h(e)}},C={parser:{TokenBuilder:o(()=>new f,"TokenBuilder"),ValueConverter:o(()=>new p,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),v,C);return e.ServiceRegistry.register(r),{shared:e,RailroadPeg:r}}o(R,"createRailroadPegServices");export{C as a,R as b};
@@ -0,0 +1,2 @@
1
+ import{a as ct,c as xr,f as Ar,g as wr,h as Or,i as Br,j as Sr,k as Ir,l as Mr,m as Pr,n as Er,o as Wr,p as Lr,q as Dr,r as jr,s as Tr,t as $r,u as Rr,v as Fr,w as Nr,x as vr}from"./chunk-ICJPOOXG.js";import{O as $,h as I,l as dr,o as nr,s as hr}from"./chunk-IVZHB6RS.js";import{b as w,d as br}from"./chunk-QQIGL7OP.js";import{a}from"./chunk-RJFVWYCA.js";import{b as pt}from"./chunk-SQE76S5B.js";function d(r){return r==null||typeof r!="object"&&typeof r!="function"}function h(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}var R="[object RegExp]",M="[object String]",P="[object Number]",E="[object Boolean]",W="[object Arguments]",F="[object Symbol]",N="[object Date]",v="[object Map]",_="[object Set]",U="[object Array]";var k="[object ArrayBuffer]",V="[object Object]";var z="[object DataView]",H="[object Uint8Array]",q="[object Uint8ClampedArray]",K="[object Uint16Array]",X="[object Uint32Array]";var Y="[object Int8Array]",G="[object Int16Array]",J="[object Int32Array]";var Z="[object Float32Array]",Q="[object Float64Array]";function _r(r){return Array.isArray(r)}var ut=Object.prototype.hasOwnProperty;function b(r,t){return ut.call(r,t)}function C(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function y(r){return C(r)}function lt(r){if(d(r))return r;let t=h(r);if(!yt(r))return{};if(_r(r)){let e=Array.from(r);return r.length>0&&typeof r[0]=="string"&&b(r,"index")&&(e.index=r.index,e.input=r.input),e}if(y(r)){let e=r,n=e.constructor;return new n(e.buffer,e.byteOffset,e.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(r.byteLength);if(t==="[object DataView]"){let e=r,n=e.buffer,m=e.byteOffset,i=e.byteLength,f=new ArrayBuffer(i),s=new Uint8Array(n,m,i);return new Uint8Array(f).set(s),new DataView(f)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){let e=r.constructor,n=new e(r.valueOf());return t==="[object String]"?dt(n,r):mr(n,r),n}if(t==="[object Date]")return new Date(Number(r));if(t==="[object RegExp]"){let e=r,n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,n}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(r));if(t==="[object Map]"){let e=r,n=new Map;return e.forEach((m,i)=>{n.set(i,m)}),n}if(t==="[object Set]"){let e=r,n=new Set;return e.forEach(m=>{n.add(m)}),n}if(t==="[object Arguments]"){let e=r,n={};return mr(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}let o={};return ht(o,r),mr(o,r),gt(o,r),o}function yt(r){switch(h(r)){case W:case U:case k:case z:case E:case N:case Z:case Q:case Y:case G:case J:case v:case P:case V:case R:case _:case M:case F:case H:case q:case K:case X:return!0;default:return!1}}function mr(r,t){for(let o in t)b(t,o)&&(r[o]=t[o])}function gt(r,t){let o=Object.getOwnPropertySymbols(t);for(let e=0;e<o.length;e++){let n=o[e];Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}}function dt(r,t){let o=t.valueOf().length;for(let e in t)b(t,e)&&(Number.isNaN(Number(e))||Number(e)>=o)&&(r[e]=t[e])}function ht(r,t){let o=Object.getPrototypeOf(t);o!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(r,o)}function rr(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){var t;let e=r[Symbol.toStringTag];return e==null||!(!((t=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))===null||t===void 0)&&t.writable)?!1:r.toString()===`[object ${e}]`}let o=r;for(;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(r)===o}function Ur(r){return Number.isSafeInteger(r)&&r>=0}function tr(r){return r!=null&&typeof r!="function"&&Ur(r.length)}function kr(r){return r==="__proto__"}var fr=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function O(r){return typeof fr.Buffer<"u"&&fr.Buffer.isBuffer(r)}function Vr(r){return O(r)}function er(r){return Object.getOwnPropertySymbols(r).filter(t=>Object.prototype.propertyIsEnumerable.call(r,t))}function zr(r,t){return S(r,void 0,r,new Map,t)}function S(r,t,o,e,n){if(n!=null){let i=n(r,t,o,e);if(i!==void 0)return i}if(d(r))return r;if(e.has(r))return e.get(r);if(Array.isArray(r)){let i=new Array(r.length);e.set(r,i);for(let f=0;f<r.length;f++)i[f]=S(r[f],f,o,e,n);return b(r,"index")&&(i.index=r.index),b(r,"input")&&(i.input=r.input),i}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let i=new RegExp(r.source,r.flags);return i.lastIndex=r.lastIndex,i}if(r instanceof Map){let i=new Map;return e.set(r,i),r.forEach((f,s)=>{i.set(s,S(f,s,o,e,n))}),i}if(r instanceof Set){let i=new Set;return e.set(r,i),r.forEach(f=>{i.add(S(f,void 0,o,e,n))}),i}if(Vr(r))return r.subarray();if(y(r)){let i=new(Object.getPrototypeOf(r)).constructor(r.length);e.set(r,i);for(let f=0;f<r.length;f++)i[f]=S(r[f],f,o,e,n);return i}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let i=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return e.set(r,i),B(i,r,o,e,n),i}if(typeof File<"u"&&r instanceof File){let i=new File([r],r.name,{type:r.type});return e.set(r,i),B(i,r,o,e,n),i}if(typeof Blob<"u"&&r instanceof Blob){let i=new Blob([r],{type:r.type});return e.set(r,i),B(i,r,o,e,n),i}let m=h(r);if(m==="[object Error]")return r===o?{}:r;switch(m){case P:case M:case E:{let i=new r.constructor(r.valueOf());return e.set(r,i),B(i,r,o,e,n),i}case W:{let i={};return e.set(r,i),B(i,r,o,e,n),i.length=r.length,i[Symbol.iterator]=r[Symbol.iterator],i}}if(typeof r=="object"&&bt(m)){let i=m==="[object Object]"&&typeof r.constructor!="function"?{}:Object.create(Object.getPrototypeOf(r));return e.set(r,i),B(i,r,o,e,n),i}return r}function B(r,t,o,e,n){let m=[...Object.keys(t),...er(t)];for(let i=0;i<m.length;i++){let f=m[i],s=Object.getOwnPropertyDescriptor(r,f);(s==null||s.writable)&&(r[f]=S(t[f],f,o,e,n))}}function bt(r){switch(r){case W:case U:case k:case z:case E:case N:case Z:case Q:case Y:case G:case J:case v:case P:case V:case R:case _:case M:case F:case H:case q:case K:case X:return!0;default:return!1}}function sr(r){return zr(r)}function L(r){return r!==null&&typeof r=="object"&&h(r)==="[object Arguments]"}function D(r){return typeof r=="object"&&r!==null}function Hr(r){return D(r)&&tr(r)}function qr(r){let t=r?.constructor;return r===(typeof t=="function"?t.prototype:Object.prototype)}function x(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let o=function(...e){let n=t?t.apply(this,e):e[0],m=o.cache;if(m.has(n))return m.get(n);let i=r.apply(this,e);return o.cache=m.set(n,i)||m,i};return o.cache=new(x.Cache||Map),o}x.Cache=Map;function Kr(r){if(d(r))return r;if(Array.isArray(r)||C(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let t=Object.getPrototypeOf(r);if(t==null)return Object.assign(Object.create(t),r);let o=t.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new o(r);if(r instanceof RegExp){let e=new o(r);return e.lastIndex=r.lastIndex,e}if(r instanceof DataView)return new o(r.buffer.slice(0));if(r instanceof Error){let e;return typeof AggregateError<"u"&&r instanceof AggregateError?e=new o(r.errors,r.message,{cause:r.cause}):e=new o(r.message,{cause:r.cause}),e.stack=r.stack,Object.assign(e,r),e}if(typeof File<"u"&&r instanceof File)return new o([r],r.name,{type:r.type,lastModified:r.lastModified});if(typeof r=="object"){let e=Object.create(t);return Object.assign(e,r)}return r}function Xr(r,...t){let o=t.slice(0,-1),e=t[t.length-1],n=r;for(let m=0;m<o.length;m++){let i=o[m];n=or(n,i,e,new Map)}return n}function or(r,t,o,e){if(d(r)&&(r=Object(r)),t==null||typeof t!="object")return r;if(e.has(t))return Kr(e.get(t));if(e.set(t,r),Array.isArray(t)){t=t.slice();for(let m=0;m<t.length;m++)m in t||(t[m]=void 0)}let n=[...Object.keys(t),...er(t)];for(let m=0;m<n.length;m++){let i=n[m];if(kr(i))continue;let f=t[i],s=r[i];if(L(f)&&(f=Object.assign({},f)),L(s)&&(s=Object.assign({},s)),O(f)&&(f=sr(f)),Array.isArray(f))if(Array.isArray(s)){let u=[],c=Reflect.ownKeys(s);for(let g=0;g<c.length;g++){let l=c[g];u[l]=s[l]}s=u}else if(Hr(s)){let u=[];for(let c=0;c<s.length;c++)u[c]=s[c];s=u}else s=[];let p=o(s,f,i,r,t,e);p!==void 0?r[i]=p:Array.isArray(f)||D(s)&&D(f)&&(rr(s)||rr(f)||y(s)||y(f))?r[i]=or(s,f,o,e):s==null&&rr(f)?r[i]=or({},f,o,e):s==null&&y(f)?r[i]=sr(f):(s===void 0||f!==void 0)&&(r[i]=f)}return r}function Yr(){}function ar(r,...t){return Xr(r,...t,Yr)}function xt(r){if(r==null)return!0;if(tr(r))return typeof r.splice!="function"&&typeof r!="string"&&!O(r)&&!y(r)&&!L(r)?!1:r.length===0;if(typeof r=="object"||typeof r=="function"){if(r instanceof Map||r instanceof Set)return r.size===0;let t=Object.keys(r);return qr(r)?t.filter(o=>o!=="constructor").length===0:t.length===0}return!0}var Zr=pt(ct(),1);var At="\u200B",wt={curveBasis:Or,curveBasisClosed:Br,curveBasisOpen:Sr,curveBumpX:Ar,curveBumpY:wr,curveBundle:Ir,curveCardinalClosed:Pr,curveCardinalOpen:Er,curveCardinal:Mr,curveCatmullRomClosed:Lr,curveCatmullRomOpen:Dr,curveCatmullRom:Wr,curveLinear:xr,curveLinearClosed:jr,curveMonotoneX:Tr,curveMonotoneY:$r,curveNatural:Rr,curveStep:Fr,curveStepAfter:vr,curveStepBefore:Nr},Ot=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Bt=a(function(r,t){let o=Qr(r,/(?:init\b)|(?:initialize\b)/),e={};if(Array.isArray(o)){let i=o.map(f=>f.args);hr(i),e=nr(e,[...i])}else e=o.args;if(!e)return;let n=dr(r,t),m="config";return e[m]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),e[n]=e[m],delete e[m]),e},"detectInit"),Qr=a(function(r,t=null){try{let o=new RegExp(`[%]{2}(?![{]${Ot.source})(?=[}][%]{2}).*
2
+ `,"ig");r=r.trim().replace(o,"").replace(/'/gm,'"'),w.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${r}`);let e,n=[];for(;(e=I.exec(r))!==null;)if(e.index===I.lastIndex&&I.lastIndex++,e&&!t||t&&e[1]?.match(t)||t&&e[2]?.match(t)){let m=e[1]?e[1]:e[2],i=e[3]?e[3].trim():e[4]?JSON.parse(e[4].trim()):null;n.push({type:m,args:i})}return n.length===0?{type:r,args:null}:n.length===1?n[0]:n}catch(o){return w.error(`ERROR: ${o.message} - Unable to parse directive type: '${t}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),po=a(function(r){return r.replace(I,"")},"removeDirectives"),St=a(function(r,t){for(let[o,e]of t.entries())if(e.match(r))return o;return-1},"isSubstringInArray");function Cr(r,t){if(!r)return t;let o=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return wt[o]??t}a(Cr,"interpolateToCurve");function rt(r,t){let o=r.trim();if(o)return t.securityLevel!=="loose"?(0,Zr.sanitizeUrl)(o):o}a(rt,"formatUrl");var It=a((r,...t)=>{let o=r.split("."),e=o.length-1,n=o[e],m=window;for(let i=0;i<e;i++)if(m=m[o[i]],!m){w.error(`Function name: ${r} not found in window`);return}m[n](...t)},"runFunc");function pr(r,t){return!r||!t?0:Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}a(pr,"distance");function tt(r){let t,o=0;r.forEach(n=>{o+=pr(n,t),t=n});let e=o/2;return cr(r,e)}a(tt,"traverseEdge");function et(r){return r.length===1?r[0]:tt(r)}a(et,"calcLabelPosition");var Gr=a((r,t=2)=>{let o=Math.pow(10,t);return Math.round(r*o)/o},"roundNumber"),cr=a((r,t)=>{let o,e=t;for(let n of r){if(o){let m=pr(n,o);if(m===0)return o;if(m<e)e-=m;else{let i=e/m;if(i<=0)return o;if(i>=1)return{x:n.x,y:n.y};if(i>0&&i<1)return{x:Gr((1-i)*o.x+i*n.x,5),y:Gr((1-i)*o.y+i*n.y,5)}}}o=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Mt=a((r,t,o)=>{w.info(`our points ${JSON.stringify(t)}`),t[0]!==o&&(t=t.reverse());let n=cr(t,25),m=r?10:5,i=Math.atan2(t[0].y-n.y,t[0].x-n.x),f={x:0,y:0};return f.x=Math.sin(i)*m+(t[0].x+n.x)/2,f.y=-Math.cos(i)*m+(t[0].y+n.y)/2,f},"calcCardinalityPosition");function ot(r,t,o){let e=structuredClone(o);w.info("our points",e),t!=="start_left"&&t!=="start_right"&&e.reverse();let n=25+r,m=cr(e,n),i=10+r*.5,f=Math.atan2(e[0].y-m.y,e[0].x-m.x),s={x:0,y:0};return t==="start_left"?(s.x=Math.sin(f+Math.PI)*i+(e[0].x+m.x)/2,s.y=-Math.cos(f+Math.PI)*i+(e[0].y+m.y)/2):t==="end_right"?(s.x=Math.sin(f-Math.PI)*i+(e[0].x+m.x)/2,s.y=-Math.cos(f-Math.PI)*i+(e[0].y+m.y)/2):(s.x=Math.sin(f)*i+(e[0].x+m.x)/2,s.y=-Math.cos(f)*i+(e[0].y+m.y)/2),s}a(ot,"calcTerminalLabelPosition");function it(r){let t="",o="";for(let e of r)e!==void 0&&(e.startsWith("color:")||e.startsWith("text-align:")?o=o+e+";":t=t+e+";");return{style:t,labelStyle:o}}a(it,"getStylesFromArray");var Jr=0,Pt=a(()=>(Jr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Jr),"generateId");function nt(r){let t="",o="0123456789abcdef",e=o.length;for(let n=0;n<r;n++)t+=o.charAt(Math.floor(Math.random()*e));return t}a(nt,"makeRandomHex");var Et=a(r=>nt(r.length),"random"),Wt=a(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Lt=a(function(r,t){let o=t.text.replace($.lineBreakRegex," "),[,e]=lr(t.fontSize),n=r.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",e),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);let m=n.append("tspan");return m.attr("x",t.x+t.textMargin*2),m.attr("fill",t.fill),m.text(o),n},"drawSimpleText"),Dt=x((r,t,o)=>{if(!r||(o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},o),$.hasBreaks(r)))return r;let e=r.split(" ").filter(Boolean),n=[],m="";return e.forEach((i,f)=>{let s=j(`${i} `,o),p=j(m,o);if(s>t){let{hyphenatedStrings:g,remainingWord:l}=jt(i,t,"-",o);n.push(m,...g),m=l}else p+s>=t?(n.push(m),m=i):m=[m,i].filter(Boolean).join(" ");f+1===e.length&&n.push(m)}),n.filter(i=>i!=="").join(o.joinWith)},(r,t,o)=>`${r}${t}${o.fontSize}${o.fontWeight}${o.fontFamily}${o.joinWith}`),jt=x((r,t,o="-",e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},e);let n=[...r],m=[],i="";return n.forEach((f,s)=>{let p=`${i}${f}`;if(j(p,e)>=t){let c=s+1,g=n.length===c,l=`${p}${o}`;m.push(g?p:l),i=""}else i=p}),{hyphenatedStrings:m,remainingWord:i}},(r,t,o="-",e)=>`${r}${t}${o}${e.fontSize}${e.fontWeight}${e.fontFamily}`);function mt(r,t){return ur(r,t).height}a(mt,"calculateTextHeight");function j(r,t){return ur(r,t).width}a(j,"calculateTextWidth");var ur=x((r,t)=>{let{fontSize:o=12,fontFamily:e="Arial",fontWeight:n=400}=t;if(!r)return{width:0,height:0};let[,m]=lr(o),i=["sans-serif",e],f=r.split($.lineBreakRegex),s=[],p=br("body");if(!p.remove)return{width:0,height:0,lineHeight:0};let u=p.append("svg");for(let g of i){let l=0,A={width:0,height:0,lineHeight:0};for(let at of f){let yr=Wt();yr.text=at||At;let gr=Lt(u,yr).style("font-size",m).style("font-weight",n).style("font-family",g),T=(gr._groups||gr)[0][0].getBBox();if(T.width===0&&T.height===0)throw new Error("svg element not in render tree");A.width=Math.round(Math.max(A.width,T.width)),l=Math.round(T.height),A.height+=l,A.lineHeight=Math.round(Math.max(A.lineHeight,l))}s.push(A)}u.remove();let c=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[c]},(r,t)=>`${r}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Tt=class{constructor(r=!1,t){this.count=0,this.count=t?t.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{a(this,"InitIDGenerator")}},ir,$t=a(function(r){return ir=ir||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ir.innerHTML=r,unescape(ir.textContent)},"entityDecode");function Rt(r){return"str"in r}a(Rt,"isDetailedError");function Ft(r){return r instanceof Error?r.message:String(r)}a(Ft,"getErrorMessage");var Nt=a((r,t,o,e)=>{if(!e)return;let n=r.node()?.getBBox();n&&r.append("text").text(e).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-o).attr("class",t)},"insertTitle"),lr=a(r=>{if(typeof r=="number")return[r,r+"px"];let t=parseInt(r??"",10);return Number.isNaN(t)?[void 0,void 0]:r===String(t)?[t,r+"px"]:[t,r]},"parseFontSize");function ft(r,t){return ar({},r,t)}a(ft,"cleanAndMerge");var co={assignWithDepth:nr,wrapLabel:Dt,calculateTextHeight:mt,calculateTextWidth:j,calculateTextDimensions:ur,cleanAndMerge:ft,detectInit:Bt,detectDirective:Qr,isSubstringInArray:St,interpolateToCurve:Cr,calcLabelPosition:et,calcCardinalityPosition:Mt,calcTerminalLabelPosition:ot,formatUrl:rt,getStylesFromArray:it,generateId:Pt,random:Et,runFunc:It,entityDecode:$t,insertTitle:Nt,isLabelCoordinateInPath:st,parseFontSize:lr,InitIDGenerator:Tt},uo=a(function(r){let t=r;return t=t.replace(/style.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(o){return o.substring(0,o.length-1)}),t=t.replace(/#\w+;/g,function(o){let e=o.substring(1,o.length-1);return/^\+?\d+$/.test(e)?"\uFB02\xB0\xB0"+e+"\xB6\xDF":"\uFB02\xB0"+e+"\xB6\xDF"}),t},"encodeEntities"),lo=a(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),yo=a((r,t,{counter:o=0,prefix:e,suffix:n},m)=>m||`${e?`${e}_`:""}${r}_${t}_${o}${n?`_${n}`:""}`,"getEdgeId");function vt(r){return r??null}a(vt,"handleUndefinedAttr");function st(r,t){let o=Math.round(r.x),e=Math.round(r.y),n=t.replace(/(\d+\.\d+)/g,m=>Math.round(parseFloat(m)).toString());return n.includes(o.toString())||n.includes(e.toString())}a(st,"isLabelCoordinateInPath");export{lt as a,xt as b,At as c,po as d,Cr as e,it as f,Pt as g,Et as h,Dt as i,mt as j,j as k,ur as l,Rt as m,Ft as n,lr as o,ft as p,co as q,uo as r,lo as s,yo as t,vt as u};
@@ -0,0 +1 @@
1
+ import{a as Y}from"./chunk-RJFVWYCA.js";import{a as wt,b as $t}from"./chunk-SQE76S5B.js";var st=wt((j,tt)=>{(function(t,n){typeof j=="object"&&typeof tt<"u"?tt.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=n()})(j,(function(){"use strict";var t=1e3,n=6e4,r=36e5,i="millisecond",e="second",s="minute",l="hour",c="day",f="week",d="month",g="quarter",$="year",b="date",D="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,J={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var a=["th","st","nd","rd"],o=_%100;return"["+_+(a[(o-20)%10]||a[o]||a[0])+"]"}},P=function(_,a,o){var h=String(_);return!h||h.length>=a?_:""+Array(a+1-h.length).join(o)+_},k={s:P,z:function(_){var a=-_.utcOffset(),o=Math.abs(a),h=Math.floor(o/60),u=o%60;return(a<=0?"+":"-")+P(h,2,"0")+":"+P(u,2,"0")},m:function _(a,o){if(a.date()<o.date())return-_(o,a);var h=12*(o.year()-a.year())+(o.month()-a.month()),u=a.clone().add(h,d),p=o-u<0,y=a.clone().add(h+(p?-1:1),d);return+(-(h+(o-u)/(p?u-y:y-u))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:d,y:$,w:f,d:c,D:b,h:l,m:s,s:e,ms:i,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},T="en",R={};R[T]=J;var U="$isDayjsObject",Q=function(_){return _ instanceof Z||!(!_||!_[U])},X=function _(a,o,h){var u;if(!a)return T;if(typeof a=="string"){var p=a.toLowerCase();R[p]&&(u=p),o&&(R[p]=o,u=p);var y=a.split("-");if(!u&&y.length>1)return _(y[0])}else{var v=a.name;R[v]=a,u=v}return!h&&u&&(T=u),u||!h&&T},S=function(_,a){if(Q(_))return _.clone();var o=typeof a=="object"?a:{};return o.date=_,o.args=arguments,new Z(o)},m=k;m.l=X,m.i=Q,m.w=function(_,a){return S(_,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var Z=(function(){function _(o){this.$L=X(o.locale,null,!0),this.parse(o),this.$x=this.$x||o.x||{},this[U]=!0}var a=_.prototype;return a.parse=function(o){this.$d=(function(h){var u=h.date,p=h.utc;if(u===null)return new Date(NaN);if(m.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var y=u.match(L);if(y){var v=y[2]-1||0,w=(y[7]||"0").substring(0,3);return p?new Date(Date.UTC(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,w)):new Date(y[1],v,y[3]||1,y[4]||0,y[5]||0,y[6]||0,w)}}return new Date(u)})(o),this.init()},a.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds()},a.$utils=function(){return m},a.isValid=function(){return this.$d.toString()!==D},a.isSame=function(o,h){var u=S(o);return this.startOf(h)<=u&&u<=this.endOf(h)},a.isAfter=function(o,h){return S(o)<this.startOf(h)},a.isBefore=function(o,h){return this.endOf(h)<S(o)},a.$g=function(o,h,u){return m.u(o)?this[h]:this.set(u,o)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(o,h){var u=this,p=!!m.u(h)||h,y=m.p(o),v=function(V,x){var B=m.w(u.$u?Date.UTC(u.$y,x,V):new Date(u.$y,x,V),u);return p?B:B.endOf(c)},w=function(V,x){return m.w(u.toDate()[V].apply(u.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(x)),u)},A=this.$W,M=this.$M,E=this.$D,I="set"+(this.$u?"UTC":"");switch(y){case $:return p?v(1,0):v(31,11);case d:return p?v(1,M):v(0,M+1);case f:var H=this.$locale().weekStart||0,W=(A<H?A+7:A)-H;return v(p?E-W:E+(6-W),M);case c:case b:return w(I+"Hours",0);case l:return w(I+"Minutes",1);case s:return w(I+"Seconds",2);case e:return w(I+"Milliseconds",3);default:return this.clone()}},a.endOf=function(o){return this.startOf(o,!1)},a.$set=function(o,h){var u,p=m.p(o),y="set"+(this.$u?"UTC":""),v=(u={},u[c]=y+"Date",u[b]=y+"Date",u[d]=y+"Month",u[$]=y+"FullYear",u[l]=y+"Hours",u[s]=y+"Minutes",u[e]=y+"Seconds",u[i]=y+"Milliseconds",u)[p],w=p===c?this.$D+(h-this.$W):h;if(p===d||p===$){var A=this.clone().set(b,1);A.$d[v](w),A.init(),this.$d=A.set(b,Math.min(this.$D,A.daysInMonth())).$d}else v&&this.$d[v](w);return this.init(),this},a.set=function(o,h){return this.clone().$set(o,h)},a.get=function(o){return this[m.p(o)]()},a.add=function(o,h){var u,p=this;o=Number(o);var y=m.p(h),v=function(M){var E=S(p);return m.w(E.date(E.date()+Math.round(M*o)),p)};if(y===d)return this.set(d,this.$M+o);if(y===$)return this.set($,this.$y+o);if(y===c)return v(1);if(y===f)return v(7);var w=(u={},u[s]=n,u[l]=r,u[e]=t,u)[y]||1,A=this.$d.getTime()+o*w;return m.w(A,this)},a.subtract=function(o,h){return this.add(-1*o,h)},a.format=function(o){var h=this,u=this.$locale();if(!this.isValid())return u.invalidDate||D;var p=o||"YYYY-MM-DDTHH:mm:ssZ",y=m.z(this),v=this.$H,w=this.$m,A=this.$M,M=u.weekdays,E=u.months,I=u.meridiem,H=function(x,B,q,G){return x&&(x[B]||x(h,p))||q[B].slice(0,G)},W=function(x){return m.s(v%12||12,x,"0")},V=I||function(x,B,q){var G=x<12?"AM":"PM";return q?G.toLowerCase():G};return p.replace(z,(function(x,B){return B||(function(q){switch(q){case"YY":return String(h.$y).slice(-2);case"YYYY":return m.s(h.$y,4,"0");case"M":return A+1;case"MM":return m.s(A+1,2,"0");case"MMM":return H(u.monthsShort,A,E,3);case"MMMM":return H(E,A);case"D":return h.$D;case"DD":return m.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return H(u.weekdaysMin,h.$W,M,2);case"ddd":return H(u.weekdaysShort,h.$W,M,3);case"dddd":return M[h.$W];case"H":return String(v);case"HH":return m.s(v,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return V(v,w,!0);case"A":return V(v,w,!1);case"m":return String(w);case"mm":return m.s(w,2,"0");case"s":return String(h.$s);case"ss":return m.s(h.$s,2,"0");case"SSS":return m.s(h.$ms,3,"0");case"Z":return y}return null})(x)||y.replace(":","")}))},a.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},a.diff=function(o,h,u){var p,y=this,v=m.p(h),w=S(o),A=(w.utcOffset()-this.utcOffset())*n,M=this-w,E=function(){return m.m(y,w)};switch(v){case $:p=E()/12;break;case d:p=E();break;case g:p=E()/3;break;case f:p=(M-A)/6048e5;break;case c:p=(M-A)/864e5;break;case l:p=M/r;break;case s:p=M/n;break;case e:p=M/t;break;default:p=M}return u?p:m.a(p)},a.daysInMonth=function(){return this.endOf(d).$D},a.$locale=function(){return R[this.$L]},a.locale=function(o,h){if(!o)return this.$L;var u=this.clone(),p=X(o,h,!0);return p&&(u.$L=p),u},a.clone=function(){return m.w(this.$d,this)},a.toDate=function(){return new Date(this.valueOf())},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toISOString=function(){return this.$d.toISOString()},a.toString=function(){return this.$d.toUTCString()},_})(),it=Z.prototype;return S.prototype=it,[["$ms",i],["$s",e],["$m",s],["$H",l],["$W",c],["$M",d],["$y",$],["$D",b]].forEach((function(_){it[_[1]]=function(a){return this.$g(a,_[0],_[1])}})),S.extend=function(_,a){return _.$i||(_(a,Z,S),_.$i=!0),S},S.locale=X,S.isDayjs=Q,S.unix=function(_){return S(1e3*_)},S.en=R[T],S.Ls=R,S.p={},S}))});var ot=$t(st(),1),F={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},N={trace:Y((...t)=>{},"trace"),debug:Y((...t)=>{},"debug"),info:Y((...t)=>{},"info"),warn:Y((...t)=>{},"warn"),error:Y((...t)=>{},"error"),fatal:Y((...t)=>{},"fatal")},ce=Y(function(t="fatal"){let n=F.fatal;typeof t=="string"?t.toLowerCase()in F&&(n=F[t]):typeof t=="number"&&(n=t),N.trace=()=>{},N.debug=()=>{},N.info=()=>{},N.warn=()=>{},N.error=()=>{},N.fatal=()=>{},n<=F.fatal&&(N.fatal=console.error?console.error.bind(console,O("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",O("FATAL"))),n<=F.error&&(N.error=console.error?console.error.bind(console,O("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",O("ERROR"))),n<=F.warn&&(N.warn=console.warn?console.warn.bind(console,O("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",O("WARN"))),n<=F.info&&(N.info=console.info?console.info.bind(console,O("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",O("INFO"))),n<=F.debug&&(N.debug=console.debug?console.debug.bind(console,O("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",O("DEBUG"))),n<=F.trace&&(N.trace=console.debug?console.debug.bind(console,O("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",O("TRACE")))},"setLogLevel"),O=Y(t=>`%c${(0,ot.default)().format("ss.SSS")} : ${t} : `,"format");var nt="http://www.w3.org/1999/xhtml",ut={svg:"http://www.w3.org/2000/svg",xhtml:nt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ct(t){var n=t+="",r=n.indexOf(":");return r>=0&&(n=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),ut.hasOwnProperty(n)?{space:ut[n],local:t}:t}function St(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===nt&&n.documentElement.namespaceURI===nt?n.createElement(t):n.createElementNS(r,t)}}function At(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function at(t){var n=ct(t);return(n.local?At:St)(n)}function bt(){}function lt(t){return t==null?bt:function(){return this.querySelector(t)}}function Mt(t){typeof t!="function"&&(t=lt(t));for(var n=this._groups,r=n.length,i=new Array(r),e=0;e<r;++e)for(var s=n[e],l=s.length,c=i[e]=new Array(l),f,d,g=0;g<l;++g)(f=s[g])&&(d=t.call(f,f.__data__,g,s))&&("__data__"in f&&(d.__data__=f.__data__),c[g]=d);return new C(i,this._parents)}function Dt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function xt(){return[]}function Ct(t){return t==null?xt:function(){return this.querySelectorAll(t)}}function Lt(t){return function(){return Dt(t.apply(this,arguments))}}function Et(t){typeof t=="function"?t=Lt(t):t=Ct(t);for(var n=this._groups,r=n.length,i=[],e=[],s=0;s<r;++s)for(var l=n[s],c=l.length,f,d=0;d<c;++d)(f=l[d])&&(i.push(t.call(f,f.__data__,d,l)),e.push(f));return new C(i,e)}function Nt(t){return function(){return this.matches(t)}}function ft(t){return function(n){return n.matches(t)}}var Ot=Array.prototype.find;function Tt(t){return function(){return Ot.call(this.children,t)}}function Rt(){return this.firstElementChild}function Yt(t){return this.select(t==null?Rt:Tt(typeof t=="function"?t:ft(t)))}var Ft=Array.prototype.filter;function Bt(){return Array.from(this.children)}function kt(t){return function(){return Ft.call(this.children,t)}}function Ht(t){return this.selectAll(t==null?Bt:kt(typeof t=="function"?t:ft(t)))}function Vt(t){typeof t!="function"&&(t=Nt(t));for(var n=this._groups,r=n.length,i=new Array(r),e=0;e<r;++e)for(var s=n[e],l=s.length,c=i[e]=[],f,d=0;d<l;++d)(f=s[d])&&t.call(f,f.__data__,d,s)&&c.push(f);return new C(i,this._parents)}function ht(t){return new Array(t.length)}function It(){return new C(this._enter||this._groups.map(ht),this._parents)}function K(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}K.prototype={constructor:K,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Pt(t){return function(){return t}}function Ut(t,n,r,i,e,s){for(var l=0,c,f=n.length,d=s.length;l<d;++l)(c=n[l])?(c.__data__=s[l],i[l]=c):r[l]=new K(t,s[l]);for(;l<f;++l)(c=n[l])&&(e[l]=c)}function Wt(t,n,r,i,e,s,l){var c,f,d=new Map,g=n.length,$=s.length,b=new Array(g),D;for(c=0;c<g;++c)(f=n[c])&&(b[c]=D=l.call(f,f.__data__,c,n)+"",d.has(D)?e[c]=f:d.set(D,f));for(c=0;c<$;++c)D=l.call(t,s[c],c,s)+"",(f=d.get(D))?(i[c]=f,f.__data__=s[c],d.delete(D)):r[c]=new K(t,s[c]);for(c=0;c<g;++c)(f=n[c])&&d.get(b[c])===f&&(e[c]=f)}function qt(t){return t.__data__}function zt(t,n){if(!arguments.length)return Array.from(this,qt);var r=n?Wt:Ut,i=this._parents,e=this._groups;typeof t!="function"&&(t=Pt(t));for(var s=e.length,l=new Array(s),c=new Array(s),f=new Array(s),d=0;d<s;++d){var g=i[d],$=e[d],b=$.length,D=Jt(t.call(g,g&&g.__data__,d,i)),L=D.length,z=c[d]=new Array(L),J=l[d]=new Array(L),P=f[d]=new Array(b);r(g,$,z,J,P,D,n);for(var k=0,T=0,R,U;k<L;++k)if(R=z[k]){for(k>=T&&(T=k+1);!(U=J[T])&&++T<L;);R._next=U||null}}return l=new C(l,i),l._enter=c,l._exit=f,l}function Jt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Xt(){return new C(this._exit||this._groups.map(ht),this._parents)}function Zt(t,n,r){var i=this.enter(),e=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),n!=null&&(e=n(e),e&&(e=e.selection())),r==null?s.remove():r(s),i&&e?i.merge(e).order():e}function Gt(t){for(var n=t.selection?t.selection():t,r=this._groups,i=n._groups,e=r.length,s=i.length,l=Math.min(e,s),c=new Array(e),f=0;f<l;++f)for(var d=r[f],g=i[f],$=d.length,b=c[f]=new Array($),D,L=0;L<$;++L)(D=d[L]||g[L])&&(b[L]=D);for(;f<e;++f)c[f]=r[f];return new C(c,this._parents)}function Kt(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var i=t[n],e=i.length-1,s=i[e],l;--e>=0;)(l=i[e])&&(s&&l.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(l,s),s=l);return this}function Qt(t){t||(t=jt);function n($,b){return $&&b?t($.__data__,b.__data__):!$-!b}for(var r=this._groups,i=r.length,e=new Array(i),s=0;s<i;++s){for(var l=r[s],c=l.length,f=e[s]=new Array(c),d,g=0;g<c;++g)(d=l[g])&&(f[g]=d);f.sort(n)}return new C(e,this._parents).order()}function jt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function tn(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function nn(){return Array.from(this)}function en(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],e=0,s=i.length;e<s;++e){var l=i[e];if(l)return l}return null}function rn(){let t=0;for(let n of this)++t;return t}function sn(){return!this.node()}function on(t){for(var n=this._groups,r=0,i=n.length;r<i;++r)for(var e=n[r],s=0,l=e.length,c;s<l;++s)(c=e[s])&&t.call(c,c.__data__,s,e);return this}function un(t){return function(){this.removeAttribute(t)}}function cn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function an(t,n){return function(){this.setAttribute(t,n)}}function ln(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function fn(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function hn(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function dn(t,n){var r=ct(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((n==null?r.local?cn:un:typeof n=="function"?r.local?hn:fn:r.local?ln:an)(r,n))}function dt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function _n(t){return function(){this.style.removeProperty(t)}}function pn(t,n,r){return function(){this.style.setProperty(t,n,r)}}function yn(t,n,r){return function(){var i=n.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function gn(t,n,r){return arguments.length>1?this.each((n==null?_n:typeof n=="function"?yn:pn)(t,n,r??"")):mn(this.node(),t)}function mn(t,n){return t.style.getPropertyValue(n)||dt(t).getComputedStyle(t,null).getPropertyValue(n)}function vn(t){return function(){delete this[t]}}function wn(t,n){return function(){this[t]=n}}function $n(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Sn(t,n){return arguments.length>1?this.each((n==null?vn:typeof n=="function"?$n:wn)(t,n)):this.node()[t]}function _t(t){return t.trim().split(/^|\s+/)}function rt(t){return t.classList||new pt(t)}function pt(t){this._node=t,this._names=_t(t.getAttribute("class")||"")}pt.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function yt(t,n){for(var r=rt(t),i=-1,e=n.length;++i<e;)r.add(n[i])}function gt(t,n){for(var r=rt(t),i=-1,e=n.length;++i<e;)r.remove(n[i])}function An(t){return function(){yt(this,t)}}function bn(t){return function(){gt(this,t)}}function Mn(t,n){return function(){(n.apply(this,arguments)?yt:gt)(this,t)}}function Dn(t,n){var r=_t(t+"");if(arguments.length<2){for(var i=rt(this.node()),e=-1,s=r.length;++e<s;)if(!i.contains(r[e]))return!1;return!0}return this.each((typeof n=="function"?Mn:n?An:bn)(r,n))}function xn(){this.textContent=""}function Cn(t){return function(){this.textContent=t}}function Ln(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function En(t){return arguments.length?this.each(t==null?xn:(typeof t=="function"?Ln:Cn)(t)):this.node().textContent}function Nn(){this.innerHTML=""}function On(t){return function(){this.innerHTML=t}}function Tn(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Rn(t){return arguments.length?this.each(t==null?Nn:(typeof t=="function"?Tn:On)(t)):this.node().innerHTML}function Yn(){this.nextSibling&&this.parentNode.appendChild(this)}function Fn(){return this.each(Yn)}function Bn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kn(){return this.each(Bn)}function Hn(t){var n=typeof t=="function"?t:at(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function Vn(){return null}function In(t,n){var r=typeof t=="function"?t:at(t),i=n==null?Vn:typeof n=="function"?n:lt(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Pn(){var t=this.parentNode;t&&t.removeChild(this)}function Un(){return this.each(Pn)}function Wn(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function qn(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function zn(t){return this.select(t?qn:Wn)}function Jn(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Xn(t){return function(n){t.call(this,n,this.__data__)}}function Zn(t){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");return i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),{type:n,name:r}})}function Gn(t){return function(){var n=this.__on;if(n){for(var r=0,i=-1,e=n.length,s;r<e;++r)s=n[r],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):n[++i]=s;++i?n.length=i:delete this.__on}}}function Kn(t,n,r){return function(){var i=this.__on,e,s=Xn(n);if(i){for(var l=0,c=i.length;l<c;++l)if((e=i[l]).type===t.type&&e.name===t.name){this.removeEventListener(e.type,e.listener,e.options),this.addEventListener(e.type,e.listener=s,e.options=r),e.value=n;return}}this.addEventListener(t.type,s,r),e={type:t.type,name:t.name,value:n,listener:s,options:r},i?i.push(e):this.__on=[e]}}function Qn(t,n,r){var i=Zn(t+""),e,s=i.length,l;if(arguments.length<2){var c=this.node().__on;if(c){for(var f=0,d=c.length,g;f<d;++f)for(e=0,g=c[f];e<s;++e)if((l=i[e]).type===g.type&&l.name===g.name)return g.value}return}for(c=n?Kn:Gn,e=0;e<s;++e)this.each(c(i[e],n,r));return this}function mt(t,n,r){var i=dt(t),e=i.CustomEvent;typeof e=="function"?e=new e(n,r):(e=i.document.createEvent("Event"),r?(e.initEvent(n,r.bubbles,r.cancelable),e.detail=r.detail):e.initEvent(n,!1,!1)),t.dispatchEvent(e)}function jn(t,n){return function(){return mt(this,t,n)}}function te(t,n){return function(){return mt(this,t,n.apply(this,arguments))}}function ne(t,n){return this.each((typeof n=="function"?te:jn)(t,n))}function*ee(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],e=0,s=i.length,l;e<s;++e)(l=i[e])&&(yield l)}var vt=[null];function C(t,n){this._groups=t,this._parents=n}function re(){return new C([[document.documentElement]],vt)}function ie(){return this}C.prototype=re.prototype={constructor:C,select:Mt,selectAll:Et,selectChild:Yt,selectChildren:Ht,filter:Vt,data:zt,enter:It,exit:Xt,join:Zt,merge:Gt,selection:ie,order:Kt,sort:Qt,call:tn,nodes:nn,node:en,size:rn,empty:sn,each:on,attr:dn,style:gn,property:Sn,classed:Dn,text:En,html:Rn,raise:Fn,lower:kn,append:Hn,insert:In,remove:Un,clone:zn,datum:Jn,on:Qn,dispatch:ne,[Symbol.iterator]:ee};function le(t){return typeof t=="string"?new C([[document.querySelector(t)]],[document.documentElement]):new C([[t]],vt)}var se=0;function oe(){return new et}function et(){this._="@"+(++se).toString(36)}et.prototype=oe.prototype={constructor:et,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};export{st as a,N as b,ce as c,le as d};
@@ -0,0 +1 @@
1
+ import{a as t,b as s,c as m,d as a,e as o,g as d,u as c,w as u,y as T}from"./chunk-LT6LXKCR.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=o){let e=a(m(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{a as o,b as i,c as s,d as n,e as l,g as d,t as m,w as c,y as p}from"./chunk-LT6LXKCR.js";var f=class extends p{static{o(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},u=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,v=class extends c{static{o(this,"TreemapValueConverter")}runCustomConverter(r,e,t){if(r.name==="NUMBER2")return parseFloat(e.replace(/,/g,""));if(r.name==="SEPARATOR")return e.substring(1,e.length-1);if(r.name==="STRING2")return e.substring(1,e.length-1);if(r.name==="INDENTATION")return e.length;if(r.name==="ClassDef"){if(typeof e!="string")return e;let a=u.exec(e);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}};function T(r){let e=r.validation.TreemapValidator,t=r.validation.ValidationRegistry;if(t){let a={Treemap:e.checkSingleRoot.bind(e)};t.register(a,e)}}o(T,"registerValidationChecks");var g=class{static{o(this,"TreemapValidator")}checkSingleRoot(r,e){let t;for(let a of r.TreemapRows)a.item&&(t===void 0&&a.indent===void 0?t=0:a.indent===void 0?e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):t!==void 0&&t>=parseInt(a.indent,10)&&e("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},h={parser:{TokenBuilder:o(()=>new f,"TokenBuilder"),ValueConverter:o(()=>new v,"ValueConverter")},validation:{TreemapValidator:o(()=>new g,"TreemapValidator")}};function C(r=l){let e=n(s(r),d),t=n(i({shared:e}),m,h);return e.ServiceRegistry.register(t),T(t),{shared:e,Treemap:t}}o(C,"createTreemapServices");export{h as a,C as b};
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty,o=(r,e)=>a(r,"name",{value:e,configurable:!0}),_=(r,e)=>{for(var t in e)a(r,t,{get:e[t],enumerable:!0})};export{o as a,_ 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-LT6LXKCR.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 @@
1
+ var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>{try{return a||b((a={exports:{}}).exports,a),a.exports}catch(c){throw a=0,c}};var l=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&f(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b};var n=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?f(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-RJFVWYCA.js";var w=a((t,p)=>{let{theme:i,themeVariables:s}=p,{useGradient:c,gradientStart:l,gradientStop:f}=s??{},o=t.attr("id"),h=i?.includes("dark")?"#FFFFFF":"#000000",r=a((g,e,n)=>t.append("defs").append("filter").attr("id",g).attr("height",e).attr("width",e).append("feDropShadow").attr("dx",n).attr("dy",n).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",h),"dropShadow");if(r(`${o}-drop-shadow`,"130%","4"),r(`${o}-drop-shadow-small`,"150%","2"),!c)return;let d=t.append("linearGradient").attr("id",`${o}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",f).attr("stop-opacity",1)},"insertLookDefs");export{w as a};
@@ -0,0 +1 @@
1
+ import{a as r,b as o,c as l,d,e as n,g as s,v as u,w as c}from"./chunk-LT6LXKCR.js";var i=class extends c{static{r(this,"WardleyValueConverter")}runCustomConverter(t,e,a){if(t.name.toUpperCase()==="LINK_LABEL")return e.substring(1).trim()}},m={parser:{ValueConverter:r(()=>new i,"ValueConverter")}};function v(t=n){let e=d(l(t),s),a=d(o({shared:e}),u,m);return e.ServiceRegistry.register(a),{shared:e,Wardley:a}}r(v,"createWardleyServices");export{m as a,v as b};
@@ -0,0 +1 @@
1
+ import{a as e,b as o,c as n,d as i,e as s,g as u,n as d,w as c,y as l}from"./chunk-LT6LXKCR.js";var m=class extends l{static{e(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},v=class extends c{static{e(this,"PieValueConverter")}runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},C={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new v,"ValueConverter")}};function P(t=s){let r=i(n(t),u),a=i(o({shared:r}),d,C);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}e(P,"createPieServices");export{C as a,P as b};
@@ -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-LT6LXKCR.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,217 @@
1
+ import{a as dt}from"./chunk-N44XPVUD.js";import{a as pt}from"./chunk-JZGXHT3J.js";import{a as At}from"./chunk-6CDZONCA.js";import{b as ot,c as ct}from"./chunk-GWYODWCE.js";import"./chunk-WQHTQAFY.js";import"./chunk-EWYECPNJ.js";import"./chunk-7JQUFVT4.js";import"./chunk-NDAMZVXQ.js";import{h as ht}from"./chunk-7ASYMKN2.js";import"./chunk-BOXAA5AP.js";import"./chunk-4QDE4SUK.js";import"./chunk-DIDARDST.js";import"./chunk-7LSMJ4VU.js";import"./chunk-5N2X2DXU.js";import{b as rt,c as nt,d as lt,f as ut}from"./chunk-3CJU2RDX.js";import{q as be,t as at}from"./chunk-QLS7NIYR.js";import"./chunk-ICJPOOXG.js";import{$ as F,I as qe,K as P,O as v,U as Je,V as Ze,W as $e,X as et,Y as tt,Z as st,_ as it,g as He}from"./chunk-IVZHB6RS.js";import{b as Ae,d as $}from"./chunk-QQIGL7OP.js";import{a as b}from"./chunk-RJFVWYCA.js";import"./chunk-SQE76S5B.js";var Me=(function(){var t=b(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],o=[1,26],h=[1,42],u=[1,24],f=[1,25],k=[1,32],_=[1,33],U=[1,34],g=[1,45],ke=[1,35],me=[1,36],ge=[1,37],Ce=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],C=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],ee=[1,58],te=[1,59],se=[1,60],ie=[1,61],ae=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Ve=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],re=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ne=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],le=[1,103],Y=[1,121],K=[1,117],W=[1,113],Q=[1,119],j=[1,114],X=[1,115],H=[1,116],q=[1,118],J=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],ue=[12,39],Ne=[1,8,9,39,41,44,46],oe=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:b(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:b(function(c,d,p,l,m,e,Z){var s=e.length-1;switch(m){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:o,48:h,51:u,52:f,54:k,56:_,57:U,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:g,86:C,100:E,102:T},{16:39,17:40,19:70,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:71,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:72,60:g,86:C,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:g,86:C,100:E,102:T,103:y},{13:Ve,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:g,86:C,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:g,86:C,100:E,102:T,103:y},{16:39,17:40,19:87,60:g,86:C,100:E,102:T,103:y},t(re,[2,133]),t(re,[2,134]),t(re,[2,135]),t(re,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:o,48:h,51:u,52:f,54:k,56:_,57:U,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:o,48:h,51:u,52:f,54:k,56:_,57:U,60:g,62:ke,63:me,64:ge,65:Ce,75:Ee,76:Te,78:ye,82:De,83:Fe,86:C,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:g,86:C,100:E,102:T,103:y},{53:92,66:56,67:57,68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(ne,[2,83],{66:94,68:ee,69:te,70:se,71:ie,72:ae}),t(z,[2,84]),t(z,[2,85]),t(z,[2,86]),t(z,[2,87]),t(z,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:k,56:_},{16:100,60:g,86:C,100:E,102:T},{41:[1,102],45:101,51:le},{16:104,60:g,86:C,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Y,50:K,59:110,60:W,82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},{60:[1,122]},{13:Ve,55:123},t(S,[2,72]),t(S,[2,138]),{22:Y,50:K,59:124,60:W,61:[1,125],82:Q,84:111,85:112,86:j,87:X,88:H,89:q,90:J},t(Ge,[2,74]),{16:39,17:40,19:126,60:g,86:C,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(ue,[2,9],{16:85,17:86,15:130,18:[1,129],60:g,86:C,100:E,102:T,103:y}),t(ue,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(oe,[2,67]),{16:39,17:40,19:133,60:g,86:C,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:g,86:C,100:E,102:T,103:y},t(ne,[2,82],{66:136,68:ee,69:te,70:se,71:ie,72:ae}),t(ne,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:k,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:le},{47:[1,145]},{16:39,17:40,19:146,60:g,86:C,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:Y,50:K,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:g,86:C,100:E,102:T,103:y},t(ue,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(oe,[2,69]),t(oe,[2,68]),{16:39,17:40,19:158,60:g,86:C,100:E,102:T,103:y},t(ne,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:k,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:k,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:k,56:_},{45:163,51:le},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:Y,50:K,60:W,82:Q,84:169,85:112,86:j,87:X,88:H,89:q,90:J},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(ue,[2,11]),t(oe,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:le},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:Y,50:K,60:W,82:Q,86:j,87:X,88:H,89:q,90:J}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:b(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:b(function(c){var d=this,p=[0],l=[],m=[null],e=[],Z=this.table,s="",he=0,Ke=0,We=0,gt=2,Qe=1,Ct=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(w.yy[xe]=this.yy[xe]);D.setInput(c,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var Et=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tt(N){p.length=p.length-2*N,m.length=m.length-N,e.length=e.length-N}b(Tt,"popStack");function je(){var N;return N=l.pop()||D.lex()||Qe,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}b(je,"lex");for(var B,Ie,M,L,vt,Oe,G={},de,I,Xe,pe;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=je()),L=Z[M]&&Z[M][B]),typeof L>"u"||!L.length||!L[0]){var we="";pe=[];for(de in Z[M])this.terminals_[de]&&de>gt&&pe.push("'"+this.terminals_[de]+"'");D.showPosition?we="Parse error on line "+(he+1)+`:
2
+ `+D.showPosition()+`
3
+ Expecting `+pe.join(", ")+", got '"+(this.terminals_[B]||B)+"'":we="Parse error on line "+(he+1)+": Unexpected "+(B==Qe?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(we,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:pe})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(L[0]){case 1:p.push(B),m.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ie?(B=Ie,Ie=null):(Ke=D.yyleng,s=D.yytext,he=D.yylineno,ve=D.yylloc,We>0&&We--);break;case 2:if(I=this.productions_[L[1]][1],G.$=m[m.length-I],G._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},Et&&(G._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Oe=this.performAction.apply(G,[s,Ke,he,w.yy,L[1],m,e].concat(Ct)),typeof Oe<"u")return Oe;I&&(p=p.slice(0,-1*I*2),m=m.slice(0,-1*I),e=e.slice(0,-1*I)),p.push(this.productions_[L[1]][0]),m.push(G.$),e.push(G._$),Xe=Z[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},mt=(function(){var O={EOF:1,parseError:b(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:b(function(c,d){return this.yy=d||this.yy||{},this._input=c,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:b(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:b(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=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),p.length-1&&(this.yylineno-=p.length-1);var m=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:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:b(function(){return this._more=!0,this},"more"),reject:b(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).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:b(function(c){this.unput(this.match.slice(c))},"less"),pastInput:b(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:b(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:b(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
5
+ `+d+"^"},"showPosition"),test_match:b(function(c,d){var p,l,m;if(this.options.backtrack_lexer&&(m={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&&(m.yylloc.range=this.yylloc.range.slice(0))),l=c[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],p=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),p)return p;if(this._backtrack){for(var e in m)this[e]=m[e];return!1}return!1},"test_match"),next:b(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,d,p,l;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),e=0;e<m.length;e++)if(p=this._input.match(this.rules[m[e]]),p&&(!d||p[0].length>d[0].length)){if(d=p,l=e,this.options.backtrack_lexer){if(c=this.test_match(p,m[e]),c!==!1)return c;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(c=this.test_match(d,m[l]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:b(function(){var d=this.next();return d||this.lex()},"lex"),begin:b(function(d){this.conditionStack.push(d)},"begin"),popState:b(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:b(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:b(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:b(function(d){this.begin(d)},"pushState"),stateStackSize:b(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:b(function(d,p,l,m){var e=m;switch(l){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return O})();Le.lexer=mt;function ce(){this.yy={}}return b(ce,"Parser"),ce.prototype=Le,Le.Parser=ce,new ce})();Me.parser=Me;var yt=Me,bt=["#","+","~","-",""],ft=class{static{b(this,"ClassMember")}constructor(t,i){this.memberType=i,this.visibility="",this.classifier="",this.text="";let a=qe(t,F());this.parseMember(a)}getDisplayDetails(){let t=this.visibility+P(this.id);this.memberType==="method"&&(t+=`(${P(this.parameters.trim())})`,this.returnType&&(t+=" : "+P(this.returnType))),t=t.trim();let i=this.parseClassifier();return{displayText:t,cssStyle:i}}parseMember(t){let i="";if(this.memberType==="method"){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(n){let o=n[1]?n[1].trim():"";if(bt.includes(o)&&(this.visibility=o),this.id=n[2],this.parameters=n[3]?n[3].trim():"",i=n[4]?n[4].trim():"",this.returnType=n[5]?n[5].trim():"",i===""){let h=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(h)&&(i=h,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let r=t.length,n=t.substring(0,1),o=t.substring(r-1);bt.includes(n)&&(this.visibility=n),/[$*]/.exec(o)&&(i=o),this.id=t.substring(this.visibility===""?0:1,i===""?r:r-1)}this.classifier=i,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let a=`${this.visibility?"\\"+this.visibility:""}${P(this.id)}${this.memberType==="method"?`(${P(this.parameters)})${this.returnType?" : "+P(this.returnType):""}`:""}`;this.text=a.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},fe="classId-",kt=0,V=b(t=>v.sanitizeText(t,F()),"sanitizeText"),Dt=class Pe{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=b(i=>{let a=ht();$(i).select("svg").selectAll("g").filter(function(){return $(this).attr("title")!==null}).on("mouseover",o=>{let h=$(o.currentTarget),u=h.attr("title");if(!u)return;let f=o.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(He.sanitize(u)).style("left",`${window.scrollX+f.left+f.width/2}px`).style("top",`${window.scrollY+f.bottom+4}px`),h.classed("hover",!0)}).on("mouseout",o=>{a.transition().duration(500).style("opacity",0),$(o.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=Ze,this.getAccTitle=$e,this.setAccDescription=et,this.getAccDescription=tt,this.setDiagramTitle=st,this.getDiagramTitle=it,this.getConfig=b(()=>F().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{b(this,"ClassDB")}splitClassNameAndType(i){let a=v.sanitizeText(i,F()),r="",n=a;if(a.indexOf("~")>0){let o=a.split("~");n=V(o[0]),r=V(o[1])}return{className:n,type:r}}setClassLabel(i,a){let r=v.sanitizeText(i,F());a&&(a=V(a));let{className:n}=this.splitClassNameAndType(r);this.classes.get(n).label=a,this.classes.get(n).text=`${a}${this.classes.get(n).type?`<${this.classes.get(n).type}>`:""}`}addClass(i){let a=v.sanitizeText(i,F()),{className:r,type:n}=this.splitClassNameAndType(a);if(this.classes.has(r))return;let o=v.sanitizeText(r,F());this.classes.set(o,{id:o,type:n,label:o,text:`${o}${n?`&lt;${n}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:fe+o+"-"+kt}),kt++}addInterface(i,a){let r={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(r)}setDiagramId(i){this.diagramId=i}lookUpDomId(i){let a=v.sanitizeText(i,F());if(this.classes.has(a)){let r=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${r}`:r}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",Je()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(i){let a=typeof i=="number"?`note${i}`:i;return this.notes.get(a)}getNotes(){return this.notes}addRelation(i){Ae.debug("Adding relation: "+JSON.stringify(i));let a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=v.sanitizeText(i.relationTitle1.trim(),F()),i.relationTitle2=v.sanitizeText(i.relationTitle2.trim(),F()),this.relations.push(i)}addAnnotation(i,a){let r=this.splitClassNameAndType(i).className;this.classes.get(r).annotations.push(a)}addMember(i,a){this.addClass(i);let r=this.splitClassNameAndType(i).className,n=this.classes.get(r);if(typeof a=="string"){let o=a.trim();o.startsWith("<<")&&o.endsWith(">>")?n.annotations.push(V(o.substring(2,o.length-2))):o.indexOf(")")>0?n.methods.push(new ft(o,"method")):o&&n.members.push(new ft(o,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(r=>this.addMember(i,r)))}addNote(i,a){let r=this.notes.size,n={id:`note${r}`,class:a,text:i,index:r};return this.notes.set(n.id,n),n.id}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),V(i.trim())}setCssClass(i,a){i.split(",").forEach(r=>{let n=r;/\d/.exec(r[0])&&(n=fe+n),n=this.splitClassNameAndType(n).className;let o=this.classes.get(n);o&&(o.cssClasses+=" "+a)})}defineClass(i,a){for(let r of i){let n=this.styleClasses.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},this.styleClasses.set(r,n)),a&&a.forEach(o=>{if(/color/.exec(o)){let h=o.replace("fill","bgFill");n.textStyles.push(h)}n.styles.push(o)}),this.classes.forEach(o=>{o.cssClasses.includes(r)&&o.styles.push(...a.flatMap(h=>h.split(",")))})}}setTooltip(i,a){i.split(",").forEach(r=>{if(a!==void 0){let n=this.splitClassNameAndType(r).className,o=this.classes.get(n);o&&(o.tooltip=V(a))}})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,r){let n=F();i.split(",").forEach(o=>{let h=o;/\d/.exec(o[0])&&(h=fe+h),h=this.splitClassNameAndType(h).className;let u=this.classes.get(h);u&&(u.link=be.formatUrl(a,n),n.securityLevel==="sandbox"?u.linkTarget="_top":typeof r=="string"?u.linkTarget=V(r):u.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,r){i.split(",").forEach(n=>{this.setClickFunc(n,a,r);let o=this.splitClassNameAndType(n).className,h=this.classes.get(o);h&&(h.haveCallback=!0)}),this.setCssClass(i,"clickable")}setClickFunc(i,a,r){let n=v.sanitizeText(i,F());if(F().securityLevel!=="loose"||a===void 0)return;let h=this.splitClassNameAndType(n).className;if(this.classes.has(h)){let u=[];if(typeof r=="string"){u=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<u.length;f++){let k=u[f].trim();k.startsWith('"')&&k.endsWith('"')&&(k=k.substr(1,k.length-2)),u[f]=k}}u.length===0&&u.push(h),this.functions.push(()=>{let f=this.lookUpDomId(h),k=document.querySelector(`[id="${f}"]`);k!==null&&k.addEventListener("click",()=>{be.runFunc(a,...u)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}escapeHtml(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(i){this.direction=i}static resolveQualifiedId(i,a){let r=a.at(-1);return r?`${r}.${i}`:i}static getAncestorIds(i){let a=i.split("."),r=new Array(a.length);r[0]=a[0];for(let n=1;n<a.length;n++)r[n]=`${r[n-1]}.${a[n]}`;return r}createNamespaceNode(i,a,r,n=!1){return{id:i,label:a,classes:new Map,notes:new Map,children:new Map,domId:fe+i+"-"+this.namespaceCounter++,parent:r,explicit:n}}linkParentChild(i,a){let r=this.namespaces.get(i),n=this.namespaces.get(a);!r||!n||(r.children.has(a)||r.children.set(a,n),n.parent??=i)}addNamespace(i,a){let r=Pe.resolveQualifiedId(i,this.namespaceStack);if(this.namespaceStack.push(r),this.namespaces.has(r)){let h=this.namespaces.get(r);return h.explicit=!0,a&&(h.label=a),r}let n=r.split("."),o=Pe.getAncestorIds(r);for(let h=0;h<o.length;h++){let u=o[h],f=h>0?o[h-1]:void 0,k=h===o.length-1,_=k&&a?a:n[h];this.namespaces.has(u)?k&&(this.namespaces.get(u).explicit=!0):this.namespaces.set(u,this.createNamespaceNode(u,_,f,k)),f&&this.linkParentChild(f,u)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a,r){if(this.namespaces.has(i)){for(let n of a){let{className:o}=this.splitClassNameAndType(n),h=this.getClass(o);h.parent=i,this.namespaces.get(i).classes.set(o,h)}for(let n of r){let o=this.getNote(n);o.parent=i,this.namespaces.get(i).notes.set(n,o)}}}setCssStyle(i,a){let r=this.classes.get(i);if(!(!a||!r))for(let n of a)n.includes(",")?r.styles.push(...n.split(",")):r.styles.push(n)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}resolveExplicitAncestor(i){let a=i;for(;a;){let r=this.namespaces.get(a);if(!r)return;if(r.explicit)return a;a=r.parent}}getData(){let i=[],a=[],r=F(),n=r.class?.hierarchicalNamespaces??!0;for(let u of this.namespaces.values()){if(!n&&!u.explicit)continue;let f={id:u.id,label:n?u.label:u.id,isGroup:!0,padding:r.class.padding??16,shape:"rect",cssStyles:[],look:r.look,parentId:n?u.parent:void 0};i.push(f)}let o=0;for(let u of this.classes.values()){let f=n?u.parent:this.resolveExplicitAncestor(u.parent),k={...u,type:void 0,isGroup:!1,parentId:f,look:r.look,colorIndex:o++};i.push(k)}for(let u of this.notes.values()){let f=n?u.parent:this.resolveExplicitAncestor(u.parent),k={id:u.id,label:u.text,isGroup:!1,shape:"note",padding:r.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${r.themeVariables.noteBkgColor}`,`stroke: ${r.themeVariables.noteBorderColor}`],look:r.look,parentId:f,labelType:"markdown"};i.push(k);let _=this.classes.get(u.class)?.id;if(_){let U={id:`edgeNote${u.index}`,start:u.id,end:_,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:r.look};a.push(U)}}for(let u of this.interfaces){let f={id:u.id,label:u.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:r.look};i.push(f)}let h=0;for(let u of this.relations){h++;let f={id:at(u.id1,u.id2,{prefix:"id",counter:h}),start:u.id1,end:u.id2,type:"normal",label:u.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(u.relation.type1),arrowTypeEnd:this.getArrowMarker(u.relation.type2),startLabelRight:u.relationTitle1==="none"?"":u.relationTitle1,endLabelLeft:u.relationTitle2==="none"?"":u.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:u.style||"",pattern:u.relation.lineType==1?"dashed":"solid",look:r.look,labelType:"markdown"};a.push(f)}return{nodes:i,edges:a,other:{},config:r,direction:this.getDirection()}}},Ft=b(t=>{let{theme:i,bkgColorArray:a,borderColorArray:r}=t;if(!nt(i,r))return"";let n=lt(t.look),o=rt(a),h="";for(let u=0;u<ut(t.THEME_COLOR_LIMIT,r);u++){let f=r[u%r.length];h+=`
7
+
8
+ [data-look="${n}"][data-color-id="color-${u}"].node .outer-path path {
9
+ stroke: ${f};
10
+ ${o?`fill: ${a[u%a.length]};`:""}
11
+ }
12
+
13
+ [data-look="${n}"][data-color-id="color-${u}"].node .divider path {
14
+ stroke: ${f};
15
+ }
16
+ `}return h},"genColor"),Bt=b(t=>`${Ft(t)}
17
+ g.classGroup text {
18
+ fill: ${t.nodeBorder||t.classText};
19
+ stroke: none;
20
+ font-family: ${t.fontFamily};
21
+ font-size: 10px;
22
+
23
+ .title {
24
+ font-weight: bolder;
25
+ }
26
+
27
+ }
28
+
29
+ .cluster-label text {
30
+ fill: ${t.titleColor};
31
+ }
32
+ .cluster-label span {
33
+ color: ${t.titleColor};
34
+ }
35
+ .cluster-label span p {
36
+ background-color: transparent;
37
+ }
38
+
39
+ .cluster rect {
40
+ fill: ${t.clusterBkg};
41
+ stroke: ${t.clusterBorder};
42
+ stroke-width: 1px;
43
+ }
44
+
45
+ .cluster text {
46
+ fill: ${t.titleColor};
47
+ }
48
+
49
+ .cluster span {
50
+ color: ${t.titleColor};
51
+ }
52
+
53
+ .nodeLabel, .edgeLabel {
54
+ color: ${t.classText};
55
+ }
56
+
57
+ .noteLabel .nodeLabel, .noteLabel .edgeLabel {
58
+ color: ${t.noteTextColor};
59
+ }
60
+ .edgeLabel .label rect {
61
+ fill: ${t.mainBkg};
62
+ }
63
+ .label text {
64
+ fill: ${t.classText};
65
+ }
66
+
67
+ .labelBkg {
68
+ background: ${t.mainBkg};
69
+ }
70
+ .edgeLabel .label span {
71
+ background: ${t.mainBkg};
72
+ }
73
+
74
+ .classTitle {
75
+ font-weight: bolder;
76
+ }
77
+ .node rect,
78
+ .node circle,
79
+ .node ellipse,
80
+ .node polygon,
81
+ .node path {
82
+ fill: ${t.mainBkg};
83
+ stroke: ${t.nodeBorder};
84
+ stroke-width: ${t.strokeWidth};
85
+ }
86
+
87
+
88
+ .divider {
89
+ stroke: ${t.nodeBorder};
90
+ stroke-width: 1;
91
+ }
92
+
93
+ g.clickable {
94
+ cursor: pointer;
95
+ }
96
+
97
+ g.classGroup rect {
98
+ fill: ${t.mainBkg};
99
+ stroke: ${t.nodeBorder};
100
+ }
101
+
102
+ g.classGroup line {
103
+ stroke: ${t.nodeBorder};
104
+ stroke-width: 1;
105
+ }
106
+
107
+ .classLabel .box {
108
+ stroke: none;
109
+ stroke-width: 0;
110
+ fill: ${t.mainBkg};
111
+ opacity: 0.5;
112
+ }
113
+
114
+ .classLabel .label {
115
+ fill: ${t.nodeBorder};
116
+ font-size: 10px;
117
+ }
118
+
119
+ .relation {
120
+ stroke: ${t.lineColor};
121
+ stroke-width: ${t.strokeWidth};
122
+ fill: none;
123
+ }
124
+
125
+ .dashed-line{
126
+ stroke-dasharray: 3;
127
+ }
128
+
129
+ .dotted-line{
130
+ stroke-dasharray: 1 2;
131
+ }
132
+
133
+ [id$="-compositionStart"], .composition {
134
+ fill: ${t.lineColor} !important;
135
+ stroke: ${t.lineColor} !important;
136
+ stroke-width: 1;
137
+ }
138
+
139
+ [id$="-compositionEnd"], .composition {
140
+ fill: ${t.lineColor} !important;
141
+ stroke: ${t.lineColor} !important;
142
+ stroke-width: 1;
143
+ }
144
+
145
+ [id$="-dependencyStart"], .dependency {
146
+ fill: ${t.lineColor} !important;
147
+ stroke: ${t.lineColor} !important;
148
+ stroke-width: 1;
149
+ }
150
+
151
+ [id$="-dependencyEnd"], .dependency {
152
+ fill: ${t.lineColor} !important;
153
+ stroke: ${t.lineColor} !important;
154
+ stroke-width: 1;
155
+ }
156
+
157
+ [id$="-extensionStart"], .extension {
158
+ fill: transparent !important;
159
+ stroke: ${t.lineColor} !important;
160
+ stroke-width: 1;
161
+ }
162
+
163
+ [id$="-extensionEnd"], .extension {
164
+ fill: transparent !important;
165
+ stroke: ${t.lineColor} !important;
166
+ stroke-width: 1;
167
+ }
168
+
169
+ [id$="-aggregationStart"], .aggregation {
170
+ fill: transparent !important;
171
+ stroke: ${t.lineColor} !important;
172
+ stroke-width: 1;
173
+ }
174
+
175
+ [id$="-aggregationEnd"], .aggregation {
176
+ fill: transparent !important;
177
+ stroke: ${t.lineColor} !important;
178
+ stroke-width: 1;
179
+ }
180
+
181
+ [id$="-lollipopStart"], .lollipop {
182
+ fill: ${t.mainBkg} !important;
183
+ stroke: ${t.lineColor} !important;
184
+ stroke-width: 1;
185
+ }
186
+
187
+ [id$="-lollipopEnd"], .lollipop {
188
+ fill: ${t.mainBkg} !important;
189
+ stroke: ${t.lineColor} !important;
190
+ stroke-width: 1;
191
+ }
192
+
193
+ .edgeTerminals {
194
+ font-size: 11px;
195
+ line-height: initial;
196
+ }
197
+
198
+ .classTitleText {
199
+ text-anchor: middle;
200
+ font-size: 18px;
201
+ fill: ${t.textColor};
202
+ }
203
+
204
+ .edgeLabel[data-look="neo"] {
205
+ background-color: ${t.edgeLabelBackground};
206
+ p {
207
+ background-color: ${t.edgeLabelBackground};
208
+ }
209
+ rect {
210
+ opacity: 0.5;
211
+ background-color: ${t.edgeLabelBackground};
212
+ fill: ${t.edgeLabelBackground};
213
+ }
214
+ text-align: center;
215
+ }
216
+ ${dt()}
217
+ `,"getStyles"),_t=Bt,St=b((t,i="TB")=>{if(!t.doc)return i;let a=i;for(let r of t.doc)r.stmt==="dir"&&(a=r.value);return a},"getDir"),Nt=b(function(t,i){return i.db.getClasses()},"getClasses"),Lt=b(async function(t,i,a,r){Ae.info("REF0:"),Ae.info("Drawing class diagram (v3)",i);let{securityLevel:n,state:o,layout:h}=F();r.db.setDiagramId(i);let u=r.db.getData(),f=pt(i,n);u.type=r.type,u.layoutAlgorithm=ct(h),u.nodeSpacing=o?.nodeSpacing||50,u.rankSpacing=o?.rankSpacing||50,u.markers=["aggregation","extension","composition","dependency","lollipop"],u.diagramId=i,await ot(u,f);let k=8;be.insertTitle(f,"classDiagramTitleText",o?.titleTopMargin??25,r.db.getDiagramTitle()),At(f,k,"classDiagram",o?.useMaxWidth??!0)},"draw"),xt={getClasses:Nt,draw:Lt,getDir:St},$t={parser:yt,get db(){return new Dt},renderer:xt,styles:_t,init:b(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{$t as diagram};