@lexibase/rdx-ui 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/README.md +6 -0
  2. package/THIRD_PARTY_NOTICES.md +7 -0
  3. package/dist/mermaid/LICENSE +21 -0
  4. package/dist/mermaid/chunks/mermaid.esm.min/abnfDiagram-HYZUXDRY.mjs +1 -0
  5. package/dist/mermaid/chunks/mermaid.esm.min/architecture-WOLXFQ4H-GHTOFUQ5.mjs +1 -0
  6. package/dist/mermaid/chunks/mermaid.esm.min/architectureDiagram-FWCGMENZ.mjs +36 -0
  7. package/dist/mermaid/chunks/mermaid.esm.min/blockDiagram-4CSTLEIA.mjs +140 -0
  8. package/dist/mermaid/chunks/mermaid.esm.min/c4Diagram-XZWFQOWE.mjs +38 -0
  9. package/dist/mermaid/chunks/mermaid.esm.min/chunk-3KU6CYTB.mjs +1 -0
  10. package/dist/mermaid/chunks/mermaid.esm.min/chunk-4GHFHL4L.mjs +1 -0
  11. package/dist/mermaid/chunks/mermaid.esm.min/chunk-5EYK72AM.mjs +1 -0
  12. package/dist/mermaid/chunks/mermaid.esm.min/chunk-5OZTHVBM.mjs +1 -0
  13. package/dist/mermaid/chunks/mermaid.esm.min/chunk-674HQBI4.mjs +1 -0
  14. package/dist/mermaid/chunks/mermaid.esm.min/chunk-7P5HNUOW.mjs +213 -0
  15. package/dist/mermaid/chunks/mermaid.esm.min/chunk-A2CVJI47.mjs +1 -0
  16. package/dist/mermaid/chunks/mermaid.esm.min/chunk-ADJWZCCI.mjs +2 -0
  17. package/dist/mermaid/chunks/mermaid.esm.min/chunk-AJJEVQBW.mjs +1 -0
  18. package/dist/mermaid/chunks/mermaid.esm.min/chunk-BOZ75642.mjs +15 -0
  19. package/dist/mermaid/chunks/mermaid.esm.min/chunk-C5JO3OR4.mjs +1 -0
  20. package/dist/mermaid/chunks/mermaid.esm.min/chunk-CJ6WPRXO.mjs +2 -0
  21. package/dist/mermaid/chunks/mermaid.esm.min/chunk-D36F7FYG.mjs +14 -0
  22. package/dist/mermaid/chunks/mermaid.esm.min/chunk-DFAUXGQ3.mjs +1 -0
  23. package/dist/mermaid/chunks/mermaid.esm.min/chunk-DXAG4NAJ.mjs +1 -0
  24. package/dist/mermaid/chunks/mermaid.esm.min/chunk-EW3V7WDR.mjs +1 -0
  25. package/dist/mermaid/chunks/mermaid.esm.min/chunk-F6PIGZHG.mjs +1 -0
  26. package/dist/mermaid/chunks/mermaid.esm.min/chunk-FNR2RGIF.mjs +1 -0
  27. package/dist/mermaid/chunks/mermaid.esm.min/chunk-FWWDAFD2.mjs +134 -0
  28. package/dist/mermaid/chunks/mermaid.esm.min/chunk-GDOATIN3.mjs +32 -0
  29. package/dist/mermaid/chunks/mermaid.esm.min/chunk-GDTRMLOK.mjs +1 -0
  30. package/dist/mermaid/chunks/mermaid.esm.min/chunk-GHI2JMQX.mjs +2 -0
  31. package/dist/mermaid/chunks/mermaid.esm.min/chunk-H2SWLY5Y.mjs +3 -0
  32. package/dist/mermaid/chunks/mermaid.esm.min/chunk-IER4RZHT.mjs +1 -0
  33. package/dist/mermaid/chunks/mermaid.esm.min/chunk-IZVUBGS4.mjs +88 -0
  34. package/dist/mermaid/chunks/mermaid.esm.min/chunk-JOOTFCOX.mjs +1 -0
  35. package/dist/mermaid/chunks/mermaid.esm.min/chunk-KJ5T2YZX.mjs +62 -0
  36. package/dist/mermaid/chunks/mermaid.esm.min/chunk-KTS5TP6K.mjs +1 -0
  37. package/dist/mermaid/chunks/mermaid.esm.min/chunk-L2B47AAZ.mjs +1 -0
  38. package/dist/mermaid/chunks/mermaid.esm.min/chunk-LFUUSPDU.mjs +2 -0
  39. package/dist/mermaid/chunks/mermaid.esm.min/chunk-LGKD3V67.mjs +1 -0
  40. package/dist/mermaid/chunks/mermaid.esm.min/chunk-MFYRHTYG.mjs +1 -0
  41. package/dist/mermaid/chunks/mermaid.esm.min/chunk-MIE3LDYP.mjs +1 -0
  42. package/dist/mermaid/chunks/mermaid.esm.min/chunk-MMC4O45A.mjs +1 -0
  43. package/dist/mermaid/chunks/mermaid.esm.min/chunk-PKJCTQEK.mjs +339 -0
  44. package/dist/mermaid/chunks/mermaid.esm.min/chunk-QVIEFLGF.mjs +1 -0
  45. package/dist/mermaid/chunks/mermaid.esm.min/chunk-SDIBIOXT.mjs +1 -0
  46. package/dist/mermaid/chunks/mermaid.esm.min/chunk-TRWJJ4LR.mjs +1 -0
  47. package/dist/mermaid/chunks/mermaid.esm.min/chunk-USJJLVIZ.mjs +1 -0
  48. package/dist/mermaid/chunks/mermaid.esm.min/chunk-V3KJR4XU.mjs +1 -0
  49. package/dist/mermaid/chunks/mermaid.esm.min/chunk-WLHZKB66.mjs +136 -0
  50. package/dist/mermaid/chunks/mermaid.esm.min/chunk-XGFVAD2T.mjs +70 -0
  51. package/dist/mermaid/chunks/mermaid.esm.min/chunk-XOUW2DEQ.mjs +1 -0
  52. package/dist/mermaid/chunks/mermaid.esm.min/chunk-XS6APLAC.mjs +1 -0
  53. package/dist/mermaid/chunks/mermaid.esm.min/chunk-XUG7IRDC.mjs +10 -0
  54. package/dist/mermaid/chunks/mermaid.esm.min/chunk-YX6CVSZ3.mjs +1 -0
  55. package/dist/mermaid/chunks/mermaid.esm.min/chunk-ZZ52EIBP.mjs +1 -0
  56. package/dist/mermaid/chunks/mermaid.esm.min/classDiagram-v2-Y5FV6ONJ.mjs +217 -0
  57. package/dist/mermaid/chunks/mermaid.esm.min/cose-bilkent-MSIMRU2B.mjs +1 -0
  58. package/dist/mermaid/chunks/mermaid.esm.min/cynefin-EF2NZ3EQ-R54WXN27.mjs +1 -0
  59. package/dist/mermaid/chunks/mermaid.esm.min/cynefinDiagram-YJSODOYC.mjs +62 -0
  60. package/dist/mermaid/chunks/mermaid.esm.min/dagre-JKPHJXCU.mjs +4 -0
  61. package/dist/mermaid/chunks/mermaid.esm.min/diagram-2HKZALZE.mjs +3 -0
  62. package/dist/mermaid/chunks/mermaid.esm.min/diagram-HHHQHE5F.mjs +24 -0
  63. package/dist/mermaid/chunks/mermaid.esm.min/diagram-HPYKNB4U.mjs +200 -0
  64. package/dist/mermaid/chunks/mermaid.esm.min/diagram-MZWFMCCE.mjs +30 -0
  65. package/dist/mermaid/chunks/mermaid.esm.min/diagram-PVSZJELT.mjs +24 -0
  66. package/dist/mermaid/chunks/mermaid.esm.min/diagram-X6UQTMWD.mjs +41 -0
  67. package/dist/mermaid/chunks/mermaid.esm.min/ebnfDiagram-6GPSJLNQ.mjs +1 -0
  68. package/dist/mermaid/chunks/mermaid.esm.min/elk-7HBNN7NY.mjs +27 -0
  69. package/dist/mermaid/chunks/mermaid.esm.min/erDiagram-Y4LBXKHG.mjs +99 -0
  70. package/dist/mermaid/chunks/mermaid.esm.min/eventmodeling-K75KTNOO-5X7W3UBU.mjs +1 -0
  71. package/dist/mermaid/chunks/mermaid.esm.min/flowDiagram-KMDKLPNL.mjs +1 -0
  72. package/dist/mermaid/chunks/mermaid.esm.min/ganttDiagram-76A4JV4W.mjs +292 -0
  73. package/dist/mermaid/chunks/mermaid.esm.min/gitGraph-VSP46ZUC-FQK3UU6A.mjs +1 -0
  74. package/dist/mermaid/chunks/mermaid.esm.min/gitGraphDiagram-EVPX2XFH.mjs +106 -0
  75. package/dist/mermaid/chunks/mermaid.esm.min/info-OHQRW6UA-QF2V7E2T.mjs +1 -0
  76. package/dist/mermaid/chunks/mermaid.esm.min/infoDiagram-G4MRDF25.mjs +2 -0
  77. package/dist/mermaid/chunks/mermaid.esm.min/ishikawaDiagram-UBNKZSLF.mjs +70 -0
  78. package/dist/mermaid/chunks/mermaid.esm.min/journeyDiagram-5CPKFXFQ.mjs +139 -0
  79. package/dist/mermaid/chunks/mermaid.esm.min/kanban-definition-WEZKRRYB.mjs +89 -0
  80. package/dist/mermaid/chunks/mermaid.esm.min/katex-AYS4IGT2.mjs +257 -0
  81. package/dist/mermaid/chunks/mermaid.esm.min/mindmap-definition-O75EZIMS.mjs +98 -0
  82. package/dist/mermaid/chunks/mermaid.esm.min/packet-JDAUHWVQ-IBKN7U47.mjs +1 -0
  83. package/dist/mermaid/chunks/mermaid.esm.min/pegDiagram-LKIDSOEG.mjs +1 -0
  84. package/dist/mermaid/chunks/mermaid.esm.min/pie-XZMESJXO-Q2BLAFAQ.mjs +1 -0
  85. package/dist/mermaid/chunks/mermaid.esm.min/pieDiagram-7BIPEFMD.mjs +39 -0
  86. package/dist/mermaid/chunks/mermaid.esm.min/quadrantDiagram-IHCSLFLC.mjs +7 -0
  87. package/dist/mermaid/chunks/mermaid.esm.min/radar-ABXABTNO-DQ2FIE3D.mjs +1 -0
  88. package/dist/mermaid/chunks/mermaid.esm.min/railroad-I3PHUGI6-IFWMPZK5.mjs +1 -0
  89. package/dist/mermaid/chunks/mermaid.esm.min/railroad-abnf-LNEFI6M7-5TBVSGVF.mjs +1 -0
  90. package/dist/mermaid/chunks/mermaid.esm.min/railroad-ebnf-DWYD2UWJ-IQAPAQTS.mjs +1 -0
  91. package/dist/mermaid/chunks/mermaid.esm.min/railroad-peg-JR7BVNR7-7XRGHPYN.mjs +1 -0
  92. package/dist/mermaid/chunks/mermaid.esm.min/railroadDiagram-T6ZQNPER.mjs +1 -0
  93. package/dist/mermaid/chunks/mermaid.esm.min/requirementDiagram-NFODNGNY.mjs +84 -0
  94. package/dist/mermaid/chunks/mermaid.esm.min/sankeyDiagram-LAUYGPPA.mjs +40 -0
  95. package/dist/mermaid/chunks/mermaid.esm.min/sequenceDiagram-OV7DSCPC.mjs +169 -0
  96. package/dist/mermaid/chunks/mermaid.esm.min/sizeCapture-ERV5D3W5.mjs +1 -0
  97. package/dist/mermaid/chunks/mermaid.esm.min/stateDiagram-v2-PVXPCO6V.mjs +291 -0
  98. package/dist/mermaid/chunks/mermaid.esm.min/swimlanes-2OY6MWR5.mjs +1 -0
  99. package/dist/mermaid/chunks/mermaid.esm.min/swimlanesDiagram-OROSK42J.mjs +8 -0
  100. package/dist/mermaid/chunks/mermaid.esm.min/timeline-definition-W2ENXKF5.mjs +120 -0
  101. package/dist/mermaid/chunks/mermaid.esm.min/treeView-D4JQ5SDB-G2RRDZEV.mjs +1 -0
  102. package/dist/mermaid/chunks/mermaid.esm.min/treemap-SAJKECNS-GRWGXJWJ.mjs +1 -0
  103. package/dist/mermaid/chunks/mermaid.esm.min/usecaseDiagram-WGGL4CJY.mjs +370 -0
  104. package/dist/mermaid/chunks/mermaid.esm.min/vennDiagram-REWWOBY3.mjs +34 -0
  105. package/dist/mermaid/chunks/mermaid.esm.min/wardley-7MLQ67FV-4I27TEHZ.mjs +1 -0
  106. package/dist/mermaid/chunks/mermaid.esm.min/wardleyDiagram-3VXUCKTG.mjs +78 -0
  107. package/dist/mermaid/chunks/mermaid.esm.min/xychartDiagram-BH4T3JT5.mjs +7 -0
  108. package/dist/mermaid/mermaid.esm.min.d.mts +5 -0
  109. package/dist/mermaid/mermaid.esm.min.mjs +14 -0
  110. package/package.json +8 -3
  111. package/src/components/brand-logo.tsx +28 -0
  112. package/src/components/button-group.tsx +87 -0
  113. package/src/components/card.tsx +102 -0
  114. package/src/components/copy-page.tsx +124 -0
  115. package/src/components/docs-sidebar.tsx +16 -2
  116. package/src/components/docs-toc.tsx +6 -2
  117. package/src/components/edit-page-link.tsx +22 -0
  118. package/src/components/heading-permalink.tsx +74 -0
  119. package/src/components/mdx-components.tsx +47 -18
  120. package/src/components/steps.tsx +141 -0
  121. package/src/lib/i18n.ts +24 -0
  122. package/src/lib/mermaid.ts +3 -2
  123. package/src/styles/globals.css +12 -0
@@ -0,0 +1,213 @@
1
+ import{a as p1}from"./chunk-BOZ75642.mjs";import{a as l1}from"./chunk-SDIBIOXT.mjs";import{a as d1}from"./chunk-DXAG4NAJ.mjs";import{a as u1,b as o1}from"./chunk-GDOATIN3.mjs";import{b as c1,c as h1}from"./chunk-IER4RZHT.mjs";import{h as t1}from"./chunk-3KU6CYTB.mjs";import{h as a1}from"./chunk-KJ5T2YZX.mjs";import{b as s1,c as i1,d as r1,f as n1}from"./chunk-MIE3LDYP.mjs";import{q as Pe,t as Qe}from"./chunk-GHI2JMQX.mjs";import{$ as te,H as Kt,T as Ht,U as Yt,V as qt,W as Xt,X as Qt,Y as Jt,Z as Zt,aa as $t,b as Wt,ba as e1,c as jt,z as zt}from"./chunk-FWWDAFD2.mjs";import{b as $,h as Xe}from"./chunk-L2B47AAZ.mjs";import{a as k}from"./chunk-QVIEFLGF.mjs";var E1="flowchart-",Je=class{constructor(){this.vertexCounter=0;this.config=te();this.diagramId="";this.vertices=new Map;this.edges=[];this.classes=new Map;this.subGraphs=[];this.subGraphLookup=new Map;this.tooltips=new Map;this.subCount=0;this.firstGraphFlag=!0;this.secCount=-1;this.posCrossRef=[];this.funs=[];this.setAccTitle=Yt;this.setAccDescription=Xt;this.setDiagramTitle=Jt;this.getAccTitle=qt;this.getAccDescription=Qt;this.getDiagramTitle=Zt;this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{k(this,"FlowDB")}sanitizeText(i){return Kt.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(let r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,n,a,l,b,u={},y){if(!i||i.trim().length===0)return;let h;if(y!==void 0){let m;y.includes(`
2
+ `)?m=y+`
3
+ `:m=`{
4
+ `+y+`
5
+ }`,h=o1(m,{schema:u1})}let T=this.subGraphLookup.get(i);if(T&&h){T.metadata={...T.metadata,...h};return}let _=this.edges.find(m=>m.id===i);if(_){let m=h;m?.animate!==void 0&&(_.animate=m.animate),m?.animation!==void 0&&(_.animation=m.animation),m?.curve!==void 0&&(_.interpolate=m.curve);return}let N,f=this.vertices.get(i);if(f===void 0&&(r===void 0&&n===void 0&&a!==void 0&&a!==null&&$.warn(`Style applied to unknown node "${i}". This may indicate a typo. The node will be created automatically.`),f={id:i,labelType:"text",domId:E1+i+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(i,f)),this.vertexCounter++,r!==void 0?(this.config=te(),N=this.sanitizeText(r.text.trim()),f.labelType=r.type,N.startsWith('"')&&N.endsWith('"')&&(N=N.substring(1,N.length-1)),f.text=N):f.text===void 0&&(f.text=i),n!==void 0&&(f.type=n),a?.forEach(m=>{f.styles.push(m)}),l?.forEach(m=>{f.classes.push(m)}),b!==void 0&&(f.dir=b),f.props===void 0?f.props=u:u!==void 0&&Object.assign(f.props,u),h!==void 0){if(h.shape){if(h.shape!==h.shape.toLowerCase()||h.shape.includes("_"))throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);if(!a1(h.shape))throw new Error(`No such shape: ${h.shape}.`);f.type=h?.shape}h?.label&&(f.text=h?.label,f.labelType=this.sanitizeNodeLabelType(h?.labelType)),h?.icon&&(f.icon=h?.icon,!h.label?.trim()&&f.text===i&&(f.text="")),h?.form&&(f.form=h?.form),h?.pos&&(f.pos=h?.pos),h?.img&&(f.img=h?.img,!h.label?.trim()&&f.text===i&&(f.text="")),h?.constraint&&(f.constraint=h.constraint),h.w&&(f.assetWidth=Number(h.w)),h.h&&(f.assetHeight=Number(h.h))}}addSingleLink(i,r,n,a){let u={start:i,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};$.info("abc78 Got edge...",u);let y=n.text;if(y!==void 0&&(u.text=this.sanitizeText(y.text.trim()),u.text.startsWith('"')&&u.text.endsWith('"')&&(u.text=u.text.substring(1,u.text.length-1)),u.labelType=this.sanitizeNodeLabelType(y.type)),n!==void 0&&(u.type=n.type,u.stroke=n.stroke,u.length=n.length>10?10:n.length),a&&!this.edges.some(h=>h.id===a))u.id=a,u.isUserDefinedId=!0;else{let h=this.edges.filter(T=>T.start===u.start&&T.end===u.end);h.length===0?u.id=Qe(u.start,u.end,{counter:0,prefix:"L"}):u.id=Qe(u.start,u.end,{counter:h.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))$.info("Pushing edge..."),this.edges.push(u);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
6
+
7
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
8
+ You cannot set this config via configuration inside the diagram as it is a secure config.
9
+ You have to call mermaid.initialize.`)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,r,n){let a=this.isLinkData(n)?n.id.replace("@",""):void 0;$.info("addLink",i,r,a);for(let l of i)for(let b of r){let u=l===i[i.length-1],y=b===r[0];u&&y?this.addSingleLink(l,b,n,a):this.addSingleLink(l,b,n,void 0)}}updateLinkInterpolate(i,r){i.forEach(n=>{n==="default"?this.edges.defaultInterpolate=r:this.edges[n].interpolate=r})}updateLink(i,r){i.forEach(n=>{if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?this.edges.defaultStyle=r:(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[n]?.style?.push("fill:none"))})}addClass(i,r){let n=r.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(a=>{let l=this.classes.get(a);l===void 0&&(l={id:a,styles:[],textStyles:[]},this.classes.set(a,l)),n?.forEach(b=>{if(/color/.exec(b)){let u=b.replace("fill","bgFill");l.textStyles.push(u)}l.styles.push(b)})})}setDirection(i){this.direction=i.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,r){for(let n of i.split(",")){let a=this.vertices.get(n);a&&a.classes.push(r);let l=this.edges.find(u=>u.id===n);l&&l.classes.push(r);let b=this.subGraphLookup.get(n);b&&b.classes.push(r)}}setTooltip(i,r){if(r!==void 0){r=this.sanitizeText(r);for(let n of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}}setClickFun(i,r,n){if(te().securityLevel!=="loose"||r===void 0)return;let a=[];if(typeof n=="string"){a=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let b=0;b<a.length;b++){let u=a[b].trim();u.startsWith('"')&&u.endsWith('"')&&(u=u.substr(1,u.length-2)),a[b]=u}}a.length===0&&a.push(i);let l=this.vertices.get(i);l&&(l.haveCallback=!0,this.funs.push(()=>{let b=this.lookUpDomId(i),u=document.querySelector(`[id="${b}"]`);u!==null&&u.addEventListener("click",()=>{Pe.runFunc(r,...a)},!1)}))}setLink(i,r,n){i.split(",").forEach(a=>{let l=this.vertices.get(a);l!==void 0&&(l.link=Pe.formatUrl(r,this.config),l.linkTarget=n)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,r,n){i.split(",").forEach(a=>{this.setClickFun(a,r,n)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(r=>{r(i)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(i){let r=t1();Xe(i).select("svg").selectAll("g.node").on("mouseover",l=>{let b=Xe(l.currentTarget),u=b.attr("title");if(u===null)return;let y=l.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(b.attr("title")).style("left",window.scrollX+y.left+(y.right-y.left)/2+"px").style("top",window.scrollY+y.bottom+"px"),r.html(zt.sanitize(u)),b.classed("hover",!0)}).on("mouseout",l=>{r.transition().duration(500).style("opacity",0),Xe(l.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=te(),Ht()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,r,n){let a=i.text.trim(),l=n.text;i===n&&/\s/.exec(n.text)&&(a=void 0);let u=k(f=>{let m={boolean:{},number:{},string:{}},x=[],fe;return{nodeList:f.filter(function(c){let p=typeof c;return c.stmt&&c.stmt==="dir"?(fe=c.value,!1):c.trim()===""?!1:p in m?m[p].hasOwnProperty(c)?!1:m[p][c]=!0:x.includes(c)?!1:x.push(c)}),dir:fe}},"uniq")(r.flat()),y=u.nodeList,h=u.dir,T=te().flowchart??{};if(h=h??(T.inheritDir?this.getDirection()??te().direction??void 0:void 0),this.version==="gen-1")for(let f=0;f<y.length;f++)y[f]=this.lookUpDomId(y[f]);a=a??"subGraph"+this.subCount,l=l||"",l=this.sanitizeText(l),this.subCount=this.subCount+1;let _={id:a,nodes:y,title:l.trim(),classes:[],dir:h,labelType:this.sanitizeNodeLabelType(n?.type)};$.info("Adding",_.id,_.nodes,_.dir),_.nodes=this.makeUniq(_,this.subGraphs).nodes.filter(f=>f!==a);let N=this.subGraphs.find(f=>f.id===a);return N?N.nodes.push(..._.nodes):this.subGraphs.push(_),this.subGraphLookup.set(a,N??_),a}getPosForId(i){for(let[r,n]of this.subGraphs.entries())if(n.id===i)return r;return-1}indexNodes2(i,r){let n=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===i)return{result:!0,count:0};let a=0,l=1;for(;a<n.length;){let b=this.getPosForId(n[a]);if(b>=0){let u=this.indexNodes2(i,b);if(u.result)return{result:!0,count:l+u.count};l=l+u.count}a=a+1}return{result:!1,count:l}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(i){let r=i.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let a="normal";return r.includes("=")&&(a="thick"),r.includes(".")&&(a="dotted"),{type:n,stroke:a}}countChar(i,r){let n=r.length,a=0;for(let l=0;l<n;++l)r[l]===i&&++a;return a}destructEndLink(i){let r=i.trim(),n=r.slice(0,-1),a="arrow_open";switch(r.slice(-1)){case"x":a="arrow_cross",r.startsWith("x")&&(a="double_"+a,n=n.slice(1));break;case">":a="arrow_point",r.startsWith("<")&&(a="double_"+a,n=n.slice(1));break;case"o":a="arrow_circle",r.startsWith("o")&&(a="double_"+a,n=n.slice(1));break}let l="normal",b=n.length-1;n.startsWith("=")&&(l="thick"),n.startsWith("~")&&(l="invisible");let u=this.countChar(".",n);return u&&(l="dotted",b=u),{type:a,stroke:l,length:b}}destructLink(i,r){let n=this.destructEndLink(i),a;if(r){if(a=this.destructStartLink(r),a.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=n.type;else{if(a.type!==n.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=n.length,a}return n}exists(i,r){for(let n of i)if(n.nodes.includes(r))return!0;return!1}makeUniq(i,r){let n=[];return i.nodes.forEach((a,l)=>{this.exists(r,a)||n.push(i.nodes[l])}),{nodes:n}}getTypeFromVertex(i){if(i.img)return"imageSquare";if(i.icon)return i.form==="circle"?"iconCircle":i.form==="square"?"iconSquare":i.form==="rounded"?"iconRounded":"icon";switch(i.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return i.type}}findNode(i,r){return i.find(n=>n.id===r)}destructEdgeType(i){let r="none",n="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":n=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=i.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(i,r,n,a,l,b){let u=n.get(i.id),y=a.get(i.id)??!1,h=this.findNode(r,i.id);if(h)h.cssStyles=i.styles,h.cssCompiledStyles=this.getCompiledStyles(i.classes),h.cssClasses=i.classes.join(" ");else{let T={id:i.id,label:i.text,labelType:i.labelType,labelStyle:"",parentId:u,padding:l.flowchart?.padding||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:b,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),icon:i.icon,pos:i.pos,img:i.img,assetWidth:i.assetWidth,assetHeight:i.assetHeight,constraint:i.constraint};y?r.push({...T,isGroup:!0,shape:"rect"}):r.push({...T,isGroup:!1,shape:this.getTypeFromVertex(i),minWidth:l.flowchart?.minNodeWidth})}}getCompiledStyles(i){let r=[];for(let n of i){let a=this.classes.get(n);a?.styles&&(r=[...r,...a.styles??[]].map(l=>l.trim())),a?.textStyles&&(r=[...r,...a.textStyles??[]].map(l=>l.trim()))}return r}getData(){let i=te(),r=[],n=[],a=this.getSubGraphs(),l=new Map,b=new Map,u=new Map;for(let c of a)for(let p of c.nodes)this.subGraphLookup.has(p)&&u.set(p,c.id);let y=new Map,h=new Map;for(let c of a){let p=u.get(c.id);p!==void 0&&h.set(p,[...h.get(p)??[],c.id])}let T=0,_=k(c=>{y.set(c,T++);for(let p of h.get(c)??[])_(p)},"walk");for(let c of a)u.has(c.id)||_(c.id);let N=k(c=>this.subGraphLookup.get(c)?.metadata?.view==="collapsed","isCollapsed"),f=k(c=>{let p,Y=new Set,F=c;for(;F!==void 0&&!Y.has(F);)Y.add(F),N(F)&&(p=F),F=u.get(F);return p},"outermostCollapsed"),m=new Set,x=new Map;for(let c of a){let p=f(c.id);if(p!==void 0){c.id!==p&&(m.add(c.id),x.set(c.id,p));for(let Y of c.nodes)Y!==p&&(m.add(Y),x.set(Y,p))}}for(let c=a.length-1;c>=0;c--){let p=a[c];if(!m.has(p.id)){p.nodes.length>0&&b.set(p.id,!0);for(let Y of p.nodes)l.set(Y,p.id)}}for(let c=a.length-1;c>=0;c--){let p=a[c];m.has(p.id)||(p.metadata?.view==="collapsed"?r.push({id:p.id,label:p.title,labelStyle:"",labelType:p.labelType,parentId:l.get(p.id),padding:8,cssCompiledStyles:this.getCompiledStyles(p.classes),cssClasses:p.classes.join(" "),shape:"collapsedGroup",dir:p.dir,isGroup:!1,look:i.look,colorIndex:y.get(p.id)}):r.push({id:p.id,label:p.title,labelStyle:"",labelType:p.labelType,parentId:l.get(p.id),padding:8,cssCompiledStyles:this.getCompiledStyles(p.classes),cssClasses:p.classes.join(" "),shape:"rect",dir:p.dir,isGroup:!0,look:i.look,colorIndex:y.get(p.id),metadata:p.metadata}))}this.getVertices().forEach(c=>{m.has(c.id)||this.addNodeFromVertex(c,r,l,b,i,i.look||"classic")});let ge=this.getEdges();return ge.forEach((c,p)=>{let{arrowTypeStart:Y,arrowTypeEnd:F}=this.destructEdgeType(c.type),v=[...ge.defaultStyle??[]],I=x.get(c.start)??c.start,R=x.get(c.end)??c.end;if(I===R&&(x.has(c.start)||x.has(c.end)))return;c.style&&v.push(...c.style);let G={id:Qe(I,R,{counter:p,prefix:"L"},c.id),isUserDefinedId:c.isUserDefinedId,start:I,end:R,type:c.type??"normal",label:c.text,labelType:c.labelType,labelpos:"c",thickness:c.stroke,minlen:c.length,classes:c?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:c?.stroke==="invisible"||c?.type==="arrow_open"?"none":Y,arrowTypeEnd:c?.stroke==="invisible"||c?.type==="arrow_open"?"none":F,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(c.classes),labelStyle:v,style:v,pattern:c.stroke,look:i.look,animate:c.animate,animation:c.animation,curve:c.interpolate||this.edges.defaultInterpolate||i.flowchart?.curve};n.push(G)}),{nodes:r,edges:n,other:{},config:i}}defaultConfig(){return e1.flowchart}};var S1=k(function(s,i){return i.db.getClasses()},"getClasses"),T1=k(async function(s,i,r,n){$.info("REF0:"),$.info("Drawing state diagram (v2)",i);let{securityLevel:a,flowchart:l,layout:b}=te();n.db.setDiagramId(i),$.debug("Before getData: ");let u=n.db.getData();$.debug("Data: ",u);let y=l1(i,a),h=n.db.getDirection();u.type=n.type,u.layoutAlgorithm=h1(b),u.direction=h,u.nodeSpacing=l?.nodeSpacing||50,u.rankSpacing=l?.rankSpacing||50,u.markers=["point","circle","cross"],u.diagramId=i,$.debug("REF1:",u),await c1(u,y);let T=u.config.flowchart?.diagramPadding??8;Pe.insertTitle(y,"flowchartTitleText",l?.titleTopMargin||0,n.db.getDiagramTitle()),d1(y,T,"flowchart",l?.useMaxWidth||!1)},"draw"),f1={getClasses:S1,draw:T1};var at=(function(){var s=k(function(me,d,g,A){for(g=g||{},A=me.length;A--;g[me[A]]=d);return g},"o"),i=[1,4],r=[1,3],n=[1,5],a=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],l=[2,2],b=[1,13],u=[1,14],y=[1,15],h=[1,16],T=[1,23],_=[1,25],N=[1,26],f=[1,27],m=[1,50],x=[1,49],fe=[1,29],ge=[1,30],c=[1,31],p=[1,32],Y=[1,33],F=[1,45],v=[1,47],I=[1,43],R=[1,48],G=[1,44],P=[1,51],O=[1,46],U=[1,52],W=[1,53],Oe=[1,34],Ue=[1,35],We=[1,36],je=[1,37],ze=[1,38],be=[1,58],B=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],se=[1,62],ie=[1,61],re=[1,63],Ee=[8,9,11,75,77,78],ot=[1,79],Se=[1,92],Te=[1,97],xe=[1,96],Fe=[1,93],Be=[1,89],_e=[1,95],we=[1,91],Le=[1,98],Ve=[1,94],ve=[1,99],Ie=[1,90],Ae=[8,9,10,11,40,75,77,78],z=[8,9,10,11,40,46,75,77,78],X=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],lt=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],Re=[44,60,89,102,105,106,109,111,114,115,116],ct=[1,122],ht=[1,123],Ke=[1,125],He=[1,124],dt=[44,60,62,74,89,102,105,106,109,111,114,115,116],pt=[1,134],ft=[1,148],gt=[1,149],bt=[1,150],kt=[1,151],mt=[1,136],At=[1,138],yt=[1,142],Ct=[1,143],Dt=[1,144],Et=[1,145],St=[1,146],Tt=[1,147],xt=[1,152],Ft=[1,153],Bt=[1,132],_t=[1,133],wt=[1,140],Lt=[1,135],Vt=[1,139],vt=[1,137],Ze=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],It=[1,155],Rt=[1,157],V=[8,9,11],Q=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],C=[1,177],K=[1,173],H=[1,174],D=[1,178],E=[1,175],S=[1,176],Ne=[77,116,119],w=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Nt=[10,106],ke=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ne=[1,248],ae=[1,246],ue=[1,250],oe=[1,244],le=[1,245],ce=[1,247],he=[1,249],de=[1,251],Ge=[1,269],Gt=[8,9,11,106],ee=[8,9,10,11,60,84,105,106,109,110,111,112],$e={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:k(function(d,g,A,o,L,e,ye){var t=e.length-1;switch(L){case 2:this.$=[];break;case 3:(!Array.isArray(e[t])||e[t].length>0)&&e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 183:this.$=e[t];break;case 11:o.setDirection("TB"),this.$="TB";break;case 12:o.setDirection(e[t-1]),this.$=e[t-1];break;case 27:this.$=e[t-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=o.addSubGraph(e[t-6],e[t-1],e[t-4]);break;case 34:this.$=o.addSubGraph(e[t-3],e[t-1],e[t-3]);break;case 35:this.$=o.addSubGraph(void 0,e[t-1],void 0);break;case 37:this.$=e[t].trim(),o.setAccTitle(this.$);break;case 38:case 39:this.$=e[t].trim(),o.setAccDescription(this.$);break;case 43:this.$=e[t-1]+e[t];break;case 44:this.$=e[t];break;case 45:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 46:o.addLink(e[t-2].stmt,e[t],e[t-1]),this.$={stmt:e[t],nodes:e[t].concat(e[t-2].nodes)};break;case 47:o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 48:this.$={stmt:e[t-1],nodes:e[t-1]};break;case 49:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),this.$={stmt:e[t-1],nodes:e[t-1],shapeData:e[t]};break;case 50:this.$={stmt:e[t],nodes:e[t]};break;case 51:this.$=[e[t]];break;case 52:o.addVertex(e[t-5][e[t-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t-4]),this.$=e[t-5].concat(e[t]);break;case 53:this.$=e[t-4].concat(e[t]);break;case 54:this.$=e[t];break;case 55:this.$=e[t-2],o.setClass(e[t-2],e[t]);break;case 56:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"square");break;case 57:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"doublecircle");break;case 58:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"circle");break;case 59:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"ellipse");break;case 60:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"stadium");break;case 61:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"subroutine");break;case 62:this.$=e[t-7],o.addVertex(e[t-7],e[t-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[t-5],e[t-3]]]));break;case 63:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"cylinder");break;case 64:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"round");break;case 65:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"diamond");break;case 66:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"hexagon");break;case 67:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"odd");break;case 68:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"trapezoid");break;case 69:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"inv_trapezoid");break;case 70:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_right");break;case 71:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_left");break;case 72:this.$=e[t],o.addVertex(e[t]);break;case 73:e[t-1].text=e[t],this.$=e[t-1];break;case 74:case 75:e[t-2].text=e[t-1],this.$=e[t-2];break;case 76:this.$=e[t];break;case 77:var M=o.destructLink(e[t],e[t-2]);this.$={type:M.type,stroke:M.stroke,length:M.length,text:e[t-1]};break;case 78:var M=o.destructLink(e[t],e[t-2]);this.$={type:M.type,stroke:M.stroke,length:M.length,text:e[t-1],id:e[t-3]};break;case 79:this.$={text:e[t],type:"text"};break;case 80:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 81:this.$={text:e[t],type:"string"};break;case 82:this.$={text:e[t],type:"markdown"};break;case 83:var M=o.destructLink(e[t]);this.$={type:M.type,stroke:M.stroke,length:M.length};break;case 84:var M=o.destructLink(e[t]);this.$={type:M.type,stroke:M.stroke,length:M.length,id:e[t-1]};break;case 85:this.$=e[t-1];break;case 86:this.$={text:e[t],type:"text"};break;case 87:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 88:this.$={text:e[t],type:"string"};break;case 89:case 104:this.$={text:e[t],type:"markdown"};break;case 101:this.$={text:e[t],type:"text"};break;case 102:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 103:this.$={text:e[t],type:"text"};break;case 105:this.$=e[t-4],o.addClass(e[t-2],e[t]);break;case 106:this.$=e[t-4],o.setClass(e[t-2],e[t]);break;case 107:case 115:this.$=e[t-1],o.setClickEvent(e[t-1],e[t]);break;case 108:case 116:this.$=e[t-3],o.setClickEvent(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 109:this.$=e[t-2],o.setClickEvent(e[t-2],e[t-1],e[t]);break;case 110:this.$=e[t-4],o.setClickEvent(e[t-4],e[t-3],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 111:this.$=e[t-2],o.setLink(e[t-2],e[t]);break;case 112:this.$=e[t-4],o.setLink(e[t-4],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 113:this.$=e[t-4],o.setLink(e[t-4],e[t-2],e[t]);break;case 114:this.$=e[t-6],o.setLink(e[t-6],e[t-4],e[t]),o.setTooltip(e[t-6],e[t-2]);break;case 117:this.$=e[t-1],o.setLink(e[t-1],e[t]);break;case 118:this.$=e[t-3],o.setLink(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 119:this.$=e[t-3],o.setLink(e[t-3],e[t-2],e[t]);break;case 120:this.$=e[t-5],o.setLink(e[t-5],e[t-4],e[t]),o.setTooltip(e[t-5],e[t-2]);break;case 121:this.$=e[t-4],o.addVertex(e[t-2],void 0,void 0,e[t]);break;case 122:this.$=e[t-4],o.updateLink([e[t-2]],e[t]);break;case 123:this.$=e[t-4],o.updateLink(e[t-2],e[t]);break;case 124:this.$=e[t-8],o.updateLinkInterpolate([e[t-6]],e[t-2]),o.updateLink([e[t-6]],e[t]);break;case 125:this.$=e[t-8],o.updateLinkInterpolate(e[t-6],e[t-2]),o.updateLink(e[t-6],e[t]);break;case 126:this.$=e[t-6],o.updateLinkInterpolate([e[t-4]],e[t]);break;case 127:this.$=e[t-6],o.updateLinkInterpolate(e[t-4],e[t]);break;case 128:case 130:this.$=[e[t]];break;case 129:case 131:e[t-2].push(e[t]),this.$=e[t-2];break;case 133:this.$=e[t-1]+e[t];break;case 181:this.$=e[t];break;case 182:this.$=e[t-1]+""+e[t];break;case 184:this.$=e[t-1]+""+e[t];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:n},{1:[3]},s(a,l,{5:6}),{4:7,9:i,10:r,12:n},{4:8,9:i,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:b,9:u,10:y,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:T,33:24,34:_,36:N,38:f,42:28,43:39,44:m,45:40,47:41,60:x,84:fe,85:ge,86:c,87:p,88:Y,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W,121:Oe,122:Ue,123:We,124:je,125:ze},s(a,[2,9]),s(a,[2,10]),s(a,[2,11]),{8:[1,55],9:[1,56],10:be,15:54,18:57},s(B,[2,3]),s(B,[2,4]),s(B,[2,5]),s(B,[2,6]),s(B,[2,7]),s(B,[2,8]),{8:se,9:ie,11:re,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:se,9:ie,11:re,21:68},{8:se,9:ie,11:re,21:69},{8:se,9:ie,11:re,21:70},{8:se,9:ie,11:re,21:71},{8:se,9:ie,11:re,21:72},{8:se,9:ie,10:[1,73],11:re,21:74},s(B,[2,36]),{35:[1,75]},{37:[1,76]},s(B,[2,39]),s(Ee,[2,50],{18:77,39:78,10:be,40:ot}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Se,44:Te,60:xe,80:[1,87],89:Fe,95:[1,84],97:[1,85],101:86,105:Be,106:_e,109:we,111:Le,114:Ve,115:ve,116:Ie,120:88},s(B,[2,185]),s(B,[2,186]),s(B,[2,187]),s(B,[2,188]),s(B,[2,189]),s(Ae,[2,51]),s(Ae,[2,54],{46:[1,100]}),s(z,[2,72],{113:113,29:[1,101],44:m,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:x,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:F,102:v,105:I,106:R,109:G,111:P,114:O,115:U,116:W}),s(X,[2,181]),s(X,[2,142]),s(X,[2,143]),s(X,[2,144]),s(X,[2,145]),s(X,[2,146]),s(X,[2,147]),s(X,[2,148]),s(X,[2,149]),s(X,[2,150]),s(X,[2,151]),s(X,[2,152]),s(a,[2,12]),s(a,[2,18]),s(a,[2,19]),{9:[1,114]},s(lt,[2,26],{18:115,10:be}),s(B,[2,27]),{42:116,43:39,44:m,45:40,47:41,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W},s(B,[2,40]),s(B,[2,41]),s(B,[2,42]),s(Re,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ct,81:ht,116:Ke,119:He},{75:[1,126],77:[1,127]},s(dt,[2,83]),s(B,[2,28]),s(B,[2,29]),s(B,[2,30]),s(B,[2,31]),s(B,[2,32]),{10:pt,12:ft,14:gt,27:bt,28:128,32:kt,44:mt,60:At,75:yt,80:[1,130],81:[1,131],83:141,84:Ct,85:Dt,86:Et,87:St,88:Tt,89:xt,90:Ft,91:129,105:Bt,109:_t,111:wt,114:Lt,115:Vt,116:vt},s(Ze,l,{5:154}),s(B,[2,37]),s(B,[2,38]),s(Ee,[2,48],{44:It}),s(Ee,[2,49],{18:156,10:be,40:Rt}),s(Ae,[2,44]),{44:m,47:158,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W},{102:[1,159],103:160,105:[1,161]},{44:m,47:162,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W},{44:m,47:163,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W},s(V,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},s(V,[2,115],{120:168,10:[1,167],14:Se,44:Te,60:xe,89:Fe,105:Be,106:_e,109:we,111:Le,114:Ve,115:ve,116:Ie}),s(V,[2,117],{10:[1,169]}),s(Q,[2,183]),s(Q,[2,170]),s(Q,[2,171]),s(Q,[2,172]),s(Q,[2,173]),s(Q,[2,174]),s(Q,[2,175]),s(Q,[2,176]),s(Q,[2,177]),s(Q,[2,178]),s(Q,[2,179]),s(Q,[2,180]),{44:m,47:170,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W},{30:171,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{30:179,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{30:181,50:[1,180],67:C,80:K,81:H,82:172,116:D,117:E,118:S},{30:182,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{30:183,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{30:184,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{109:[1,185]},{30:186,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{30:187,65:[1,188],67:C,80:K,81:H,82:172,116:D,117:E,118:S},{30:189,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{30:190,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{30:191,67:C,80:K,81:H,82:172,116:D,117:E,118:S},s(X,[2,182]),s(a,[2,20]),s(lt,[2,25]),s(Ee,[2,46],{39:192,18:193,10:be,40:ot}),s(Re,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{77:[1,197],79:198,116:Ke,119:He},s(Ne,[2,79]),s(Ne,[2,81]),s(Ne,[2,82]),s(Ne,[2,168]),s(Ne,[2,169]),{76:199,79:121,80:ct,81:ht,116:Ke,119:He},s(dt,[2,84]),{8:se,9:ie,10:pt,11:re,12:ft,14:gt,21:201,27:bt,29:[1,200],32:kt,44:mt,60:At,75:yt,83:141,84:Ct,85:Dt,86:Et,87:St,88:Tt,89:xt,90:Ft,91:202,105:Bt,109:_t,111:wt,114:Lt,115:Vt,116:vt},s(w,[2,101]),s(w,[2,103]),s(w,[2,104]),s(w,[2,157]),s(w,[2,158]),s(w,[2,159]),s(w,[2,160]),s(w,[2,161]),s(w,[2,162]),s(w,[2,163]),s(w,[2,164]),s(w,[2,165]),s(w,[2,166]),s(w,[2,167]),s(w,[2,90]),s(w,[2,91]),s(w,[2,92]),s(w,[2,93]),s(w,[2,94]),s(w,[2,95]),s(w,[2,96]),s(w,[2,97]),s(w,[2,98]),s(w,[2,99]),s(w,[2,100]),{6:11,7:12,8:b,9:u,10:y,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:T,32:[1,203],33:24,34:_,36:N,38:f,42:28,43:39,44:m,45:40,47:41,60:x,84:fe,85:ge,86:c,87:p,88:Y,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W,121:Oe,122:Ue,123:We,124:je,125:ze},{10:be,18:204},{44:[1,205]},s(Ae,[2,43]),{10:[1,206],44:m,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:113,114:O,115:U,116:W},{10:[1,207]},{10:[1,208],106:[1,209]},s(Nt,[2,128]),{10:[1,210],44:m,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:113,114:O,115:U,116:W},{10:[1,211],44:m,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:113,114:O,115:U,116:W},{80:[1,212]},s(V,[2,109],{10:[1,213]}),s(V,[2,111],{10:[1,214]}),{80:[1,215]},s(Q,[2,184]),{80:[1,216],98:[1,217]},s(Ae,[2,55],{113:113,44:m,60:x,89:F,102:v,105:I,106:R,109:G,111:P,114:O,115:U,116:W}),{31:[1,218],67:C,82:219,116:D,117:E,118:S},s(ke,[2,86]),s(ke,[2,88]),s(ke,[2,89]),s(ke,[2,153]),s(ke,[2,154]),s(ke,[2,155]),s(ke,[2,156]),{49:[1,220],67:C,82:219,116:D,117:E,118:S},{30:221,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{51:[1,222],67:C,82:219,116:D,117:E,118:S},{53:[1,223],67:C,82:219,116:D,117:E,118:S},{55:[1,224],67:C,82:219,116:D,117:E,118:S},{57:[1,225],67:C,82:219,116:D,117:E,118:S},{60:[1,226]},{64:[1,227],67:C,82:219,116:D,117:E,118:S},{66:[1,228],67:C,82:219,116:D,117:E,118:S},{30:229,67:C,80:K,81:H,82:172,116:D,117:E,118:S},{31:[1,230],67:C,82:219,116:D,117:E,118:S},{67:C,69:[1,231],71:[1,232],82:219,116:D,117:E,118:S},{67:C,69:[1,234],71:[1,233],82:219,116:D,117:E,118:S},s(Ee,[2,45],{18:156,10:be,40:Rt}),s(Ee,[2,47],{44:It}),s(Re,[2,75]),s(Re,[2,74]),{62:[1,235],67:C,82:219,116:D,117:E,118:S},s(Re,[2,77]),s(Ne,[2,80]),{77:[1,236],79:198,116:Ke,119:He},{30:237,67:C,80:K,81:H,82:172,116:D,117:E,118:S},s(Ze,l,{5:238}),s(w,[2,102]),s(B,[2,35]),{43:239,44:m,45:40,47:41,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W},{10:be,18:240},{10:ne,60:ae,84:ue,92:241,105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{10:ne,60:ae,84:ue,92:252,104:[1,253],105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{10:ne,60:ae,84:ue,92:254,104:[1,255],105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{105:[1,256]},{10:ne,60:ae,84:ue,92:257,105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{44:m,47:258,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W},s(V,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},s(V,[2,116]),s(V,[2,118],{10:[1,262]}),s(V,[2,119]),s(z,[2,56]),s(ke,[2,87]),s(z,[2,57]),{51:[1,263],67:C,82:219,116:D,117:E,118:S},s(z,[2,64]),s(z,[2,59]),s(z,[2,60]),s(z,[2,61]),{109:[1,264]},s(z,[2,63]),s(z,[2,65]),{66:[1,265],67:C,82:219,116:D,117:E,118:S},s(z,[2,67]),s(z,[2,68]),s(z,[2,70]),s(z,[2,69]),s(z,[2,71]),s([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),s(Re,[2,78]),{31:[1,266],67:C,82:219,116:D,117:E,118:S},{6:11,7:12,8:b,9:u,10:y,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:T,32:[1,267],33:24,34:_,36:N,38:f,42:28,43:39,44:m,45:40,47:41,60:x,84:fe,85:ge,86:c,87:p,88:Y,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W,121:Oe,122:Ue,123:We,124:je,125:ze},s(Ae,[2,53]),{43:268,44:m,45:40,47:41,60:x,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W},s(V,[2,121],{106:Ge}),s(Gt,[2,130],{108:270,10:ne,60:ae,84:ue,105:oe,109:le,110:ce,111:he,112:de}),s(ee,[2,132]),s(ee,[2,134]),s(ee,[2,135]),s(ee,[2,136]),s(ee,[2,137]),s(ee,[2,138]),s(ee,[2,139]),s(ee,[2,140]),s(ee,[2,141]),s(V,[2,122],{106:Ge}),{10:[1,271]},s(V,[2,123],{106:Ge}),{10:[1,272]},s(Nt,[2,129]),s(V,[2,105],{106:Ge}),s(V,[2,106],{113:113,44:m,60:x,89:F,102:v,105:I,106:R,109:G,111:P,114:O,115:U,116:W}),s(V,[2,110]),s(V,[2,112],{10:[1,273]}),s(V,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:se,9:ie,11:re,21:278},s(B,[2,34]),s(Ae,[2,52]),{10:ne,60:ae,84:ue,105:oe,107:279,108:243,109:le,110:ce,111:he,112:de},s(ee,[2,133]),{14:Se,44:Te,60:xe,89:Fe,101:280,105:Be,106:_e,109:we,111:Le,114:Ve,115:ve,116:Ie,120:88},{14:Se,44:Te,60:xe,89:Fe,101:281,105:Be,106:_e,109:we,111:Le,114:Ve,115:ve,116:Ie,120:88},{98:[1,282]},s(V,[2,120]),s(z,[2,58]),{30:283,67:C,80:K,81:H,82:172,116:D,117:E,118:S},s(z,[2,66]),s(Ze,l,{5:284}),s(Gt,[2,131],{108:270,10:ne,60:ae,84:ue,105:oe,109:le,110:ce,111:he,112:de}),s(V,[2,126],{120:168,10:[1,285],14:Se,44:Te,60:xe,89:Fe,105:Be,106:_e,109:we,111:Le,114:Ve,115:ve,116:Ie}),s(V,[2,127],{120:168,10:[1,286],14:Se,44:Te,60:xe,89:Fe,105:Be,106:_e,109:we,111:Le,114:Ve,115:ve,116:Ie}),s(V,[2,114]),{31:[1,287],67:C,82:219,116:D,117:E,118:S},{6:11,7:12,8:b,9:u,10:y,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:T,32:[1,288],33:24,34:_,36:N,38:f,42:28,43:39,44:m,45:40,47:41,60:x,84:fe,85:ge,86:c,87:p,88:Y,89:F,102:v,105:I,106:R,109:G,111:P,113:42,114:O,115:U,116:W,121:Oe,122:Ue,123:We,124:je,125:ze},{10:ne,60:ae,84:ue,92:289,105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},{10:ne,60:ae,84:ue,92:290,105:oe,107:242,108:243,109:le,110:ce,111:he,112:de},s(z,[2,62]),s(B,[2,33]),s(V,[2,124],{106:Ge}),s(V,[2,125],{106:Ge})],defaultActions:{},parseError:k(function(d,g){if(g.recoverable)this.trace(d);else{var A=new Error(d);throw A.hash=g,A}},"parseError"),parse:k(function(d){var g=this,A=[0],o=[],L=[null],e=[],ye=this.table,t="",M=0,Mt=0,Pt=0,A1=2,Ot=1,y1=e.slice.call(arguments,1),j=Object.create(this.lexer),Ce={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(Ce.yy[tt]=this.yy[tt]);j.setInput(d,Ce.yy),Ce.yy.lexer=j,Ce.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var st=j.yylloc;e.push(st);var C1=j.options&&j.options.ranges;typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function w1(J){A.length=A.length-2*J,L.length=L.length-J,e.length=e.length-J}k(w1,"popStack");function D1(){var J;return J=o.pop()||j.lex()||Ot,typeof J!="number"&&(J instanceof Array&&(o=J,J=o.pop()),J=g.symbols_[J]||J),J}k(D1,"lex");for(var q,it,De,Z,L1,rt,Me={},Ye,pe,Ut,qe;;){if(De=A[A.length-1],this.defaultActions[De]?Z=this.defaultActions[De]:((q===null||typeof q>"u")&&(q=D1()),Z=ye[De]&&ye[De][q]),typeof Z>"u"||!Z.length||!Z[0]){var nt="";qe=[];for(Ye in ye[De])this.terminals_[Ye]&&Ye>A1&&qe.push("'"+this.terminals_[Ye]+"'");j.showPosition?nt="Parse error on line "+(M+1)+`:
10
+ `+j.showPosition()+`
11
+ Expecting `+qe.join(", ")+", got '"+(this.terminals_[q]||q)+"'":nt="Parse error on line "+(M+1)+": Unexpected "+(q==Ot?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(nt,{text:j.match,token:this.terminals_[q]||q,line:j.yylineno,loc:st,expected:qe})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+De+", token: "+q);switch(Z[0]){case 1:A.push(q),L.push(j.yytext),e.push(j.yylloc),A.push(Z[1]),q=null,it?(q=it,it=null):(Mt=j.yyleng,t=j.yytext,M=j.yylineno,st=j.yylloc,Pt>0&&Pt--);break;case 2:if(pe=this.productions_[Z[1]][1],Me.$=L[L.length-pe],Me._$={first_line:e[e.length-(pe||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(pe||1)].first_column,last_column:e[e.length-1].last_column},C1&&(Me._$.range=[e[e.length-(pe||1)].range[0],e[e.length-1].range[1]]),rt=this.performAction.apply(Me,[t,Mt,M,Ce.yy,Z[1],L,e].concat(y1)),typeof rt<"u")return rt;pe&&(A=A.slice(0,-1*pe*2),L=L.slice(0,-1*pe),e=e.slice(0,-1*pe)),A.push(this.productions_[Z[1]][0]),L.push(Me.$),e.push(Me._$),Ut=ye[A[A.length-2]][A[A.length-1]],A.push(Ut);break;case 3:return!0}}return!0},"parse")},m1=(function(){var me={EOF:1,parseError:k(function(g,A){if(this.yy.parser)this.yy.parser.parseError(g,A);else throw new Error(g)},"parseError"),setInput:k(function(d,g){return this.yy=g||this.yy||{},this._input=d,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:k(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var g=d.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:k(function(d){var g=d.length,A=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var o=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),A.length-1&&(this.yylineno-=A.length-1);var L=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:A?(A.length===o.length?this.yylloc.first_column:0)+o[o.length-A.length].length-A[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[L[0],L[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(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).
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(d){this.unput(this.match.slice(d))},"less"),pastInput:k(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var d=this.pastInput(),g=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
13
+ `+g+"^"},"showPosition"),test_match:k(function(d,g){var A,o,L;if(this.options.backtrack_lexer&&(L={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&&(L.yylloc.range=this.yylloc.range.slice(0))),o=d[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,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(d[0].length),this.matched+=d[0],A=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),A)return A;if(this._backtrack){for(var e in L)this[e]=L[e];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,g,A,o;this._more||(this.yytext="",this.match="");for(var L=this._currentRules(),e=0;e<L.length;e++)if(A=this._input.match(this.rules[L[e]]),A&&(!g||A[0].length>g[0].length)){if(g=A,o=e,this.options.backtrack_lexer){if(d=this.test_match(A,L[e]),d!==!1)return d;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(d=this.test_match(g,L[o]),d!==!1?d:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var g=this.next();return g||this.lex()},"lex"),begin:k(function(g){this.conditionStack.push(g)},"begin"),popState:k(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:k(function(g){this.begin(g)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:k(function(g,A,o,L){var e=L;switch(o){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),A.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let ye=/\n\s*/g;return A.yytext=A.yytext.replace(ye,"<br/>"),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return g.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return g.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return g.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return g.lex.firstGraph()&&this.begin("dir"),12;break;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return me})();$e.lexer=m1;function et(){this.yy={}}return k(et,"Parser"),et.prototype=$e,$e.Parser=et,new et})();at.parser=at;var ut=at;var g1=Object.assign({},ut);g1.parse=s=>{let i=s.replace(/}\s*\n/g,`}
15
+ `);return ut.parse(i)};var b1=g1;var x1=k(s=>{let{theme:i,bkgColorArray:r,borderColorArray:n}=s;if(!i1(i,n))return"";let a=r1(s.look),l=s1(r),b="";for(let u=0;u<n1(s.THEME_COLOR_LIMIT,n);u++){let y=n[u%n.length],h=l?`fill: ${r[u%r.length]};`:"",T=`[data-look="${a}"][data-color-id="color-${u}"]`,_=k(f=>`${T}.node ${f}, ${T}.rough-node ${f}`,"collapsedRule"),N=k(f=>`${T}.swimlane.cluster .swimlane-title${f}, ${T}.swimlane.cluster .swimlane-body${f}`,"laneRule");b+=`
16
+
17
+ ${T}.cluster:not(.swimlane) rect {
18
+ stroke: ${y};
19
+ ${h}
20
+ }
21
+
22
+ ${T}.cluster:not(.swimlane) path {
23
+ stroke: ${y};
24
+ ${h}
25
+ }
26
+
27
+ /* Lane, classic and neo. */
28
+ ${T}.swimlane.cluster rect.swimlane-title,
29
+ ${T}.swimlane.cluster rect.swimlane-body {
30
+ stroke: ${y};
31
+ ${h}
32
+ }
33
+
34
+ /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
35
+ ${N(" path:nth-of-type(2)")} {
36
+ stroke: ${y};
37
+ }
38
+ ${l?`
39
+ /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
40
+ ${N(" path:first-of-type")} {
41
+ stroke: ${r[u%r.length]};
42
+ }
43
+ `:""}
44
+ ${_(".collapsed-group")},
45
+ ${_(".collapsed-group path")} {
46
+ stroke: ${y};
47
+ ${h}
48
+ }
49
+
50
+ /* The ellipsis dots and the separator take clusterBorder further down, so without
51
+ these the container is palette-coloured while its own markers are not. */
52
+ ${_(".collapsed-indicator")} {
53
+ fill: ${y};
54
+ }
55
+
56
+ ${_(".collapsed-separator")} {
57
+ stroke: ${y};
58
+ }
59
+ `}return b},"genColor"),F1=k((s,i)=>{let r=jt,n=r(s,"r"),a=r(s,"g"),l=r(s,"b");return Wt(n,a,l,i)},"fade"),B1=k(s=>`${x1(s)}
60
+ .label {
61
+ font-family: ${s.fontFamily};
62
+ color: ${s.nodeTextColor||s.textColor};
63
+ }
64
+ .cluster-label text {
65
+ fill: ${s.titleColor};
66
+ }
67
+ .cluster-label span {
68
+ color: ${s.titleColor};
69
+ }
70
+ .cluster-label span p {
71
+ background-color: transparent;
72
+ }
73
+
74
+ .label text,span {
75
+ fill: ${s.nodeTextColor||s.textColor};
76
+ color: ${s.nodeTextColor||s.textColor};
77
+ }
78
+
79
+ .node rect,
80
+ .node circle,
81
+ .node ellipse,
82
+ .node polygon,
83
+ .node path {
84
+ fill: ${s.mainBkg};
85
+ stroke: ${s.nodeBorder};
86
+ stroke-width: ${s.strokeWidth??1}px;
87
+ }
88
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
89
+ text-anchor: middle;
90
+ }
91
+
92
+ .node .katex path {
93
+ fill: #000;
94
+ stroke: #000;
95
+ stroke-width: 1px;
96
+ }
97
+
98
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
99
+ text-align: center;
100
+ }
101
+ .node.clickable {
102
+ cursor: pointer;
103
+ }
104
+
105
+
106
+ .root .anchor path {
107
+ fill: ${s.lineColor} !important;
108
+ stroke-width: 0;
109
+ stroke: ${s.lineColor};
110
+ }
111
+
112
+ .arrowheadPath {
113
+ fill: ${s.arrowheadColor};
114
+ }
115
+
116
+ .edgePaths .path {
117
+ stroke: ${s.lineColor};
118
+ stroke-width: ${s.strokeWidth??2}px;
119
+ }
120
+
121
+ .flowchart-link {
122
+ stroke: ${s.lineColor};
123
+ fill: none;
124
+ }
125
+
126
+ .edgeLabel {
127
+ background-color: ${s.edgeLabelBackground};
128
+ p {
129
+ background-color: ${s.edgeLabelBackground};
130
+ }
131
+ rect {
132
+ opacity: 0.5;
133
+ background-color: ${s.edgeLabelBackground};
134
+ fill: ${s.edgeLabelBackground};
135
+ }
136
+ text-align: center;
137
+ }
138
+
139
+ /* For html labels only */
140
+ .labelBkg {
141
+ background-color: ${F1(s.edgeLabelBackground,.5)};
142
+ // background-color:
143
+ }
144
+
145
+ .cluster rect {
146
+ fill: ${s.clusterBkg};
147
+ stroke: ${s.clusterBorder};
148
+ stroke-width: 1px;
149
+ }
150
+
151
+ .cluster text {
152
+ fill: ${s.titleColor};
153
+ }
154
+
155
+ .cluster span {
156
+ color: ${s.titleColor};
157
+ }
158
+ /* .cluster div {
159
+ color: ${s.titleColor};
160
+ } */
161
+
162
+ /* Collapsed subgraph node (@{ view: collapsed }) */
163
+ .node .collapsed-indicator {
164
+ fill: ${s.clusterBorder};
165
+ stroke: none;
166
+ opacity: 0.6;
167
+ }
168
+
169
+ .node .collapsed-separator {
170
+ stroke: ${s.clusterBorder};
171
+ stroke-width: 0.75px;
172
+ }
173
+
174
+ div.mermaidTooltip {
175
+ position: absolute;
176
+ text-align: center;
177
+ max-width: 200px;
178
+ padding: 2px;
179
+ font-family: ${s.fontFamily};
180
+ font-size: 12px;
181
+ background: ${s.tertiaryColor};
182
+ border: 1px solid ${s.border2};
183
+ border-radius: 2px;
184
+ pointer-events: none;
185
+ z-index: 100;
186
+ }
187
+
188
+ .flowchartTitleText {
189
+ text-anchor: middle;
190
+ font-size: 18px;
191
+ fill: ${s.textColor};
192
+ }
193
+
194
+ rect.text {
195
+ fill: none;
196
+ stroke-width: 0;
197
+ }
198
+
199
+ .icon-shape, .image-shape {
200
+ background-color: ${s.edgeLabelBackground};
201
+ p {
202
+ background-color: ${s.edgeLabelBackground};
203
+ padding: 2px;
204
+ }
205
+ .label rect {
206
+ opacity: 0.5;
207
+ background-color: ${s.edgeLabelBackground};
208
+ fill: ${s.edgeLabelBackground};
209
+ }
210
+ text-align: center;
211
+ }
212
+ ${p1()}
213
+ `,"getStyles"),k1=B1;var _1=k(({styles:s=k1}={})=>({parser:b1,get db(){return new Je},renderer:f1,styles:s,init:k(i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,$t({flowchart:{arrowMarkerAbsolute:i.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),ds=_1();export{k1 as a,_1 as b,ds as c};
@@ -0,0 +1 @@
1
+ import{a as e,b as a,c as i,d as n,e as u,g as d,l as s,x as l,y as c}from"./chunk-WLHZKB66.mjs";import{a as o}from"./chunk-QVIEFLGF.mjs";var m=class extends c{static{o(this,"InfoTokenBuilder")}static{e(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},v={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function I(f=u){let r=n(i(f),d),t=n(a({shared:r}),s,v);return r.ServiceRegistry.register(t),{shared:r,Info:t}}o(I,"createInfoServices");e(I,"createInfoServices");export{v as a,I as b};
@@ -0,0 +1,2 @@
1
+ import{a as o,b as c,c as l,d as s,e as u,g as f,q as E,w as m,y as v}from"./chunk-WLHZKB66.mjs";import{a as i}from"./chunk-QVIEFLGF.mjs";var h=class extends v{static{i(this,"RailroadEbnfTokenBuilder")}static{o(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},b=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 d=e[t];switch(d){case"n":r+=`
2
+ `;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=d}continue}r+=n}return r},"decodeEscapedString"),C=class extends m{static{i(this,"RailroadEbnfValueConverter")}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 b(n)}return t}runCustomConverter(a,e,r){if(a.name==="EBNF_STRING")return b(e);if(a.name==="EBNF_SPECIAL_SEQUENCE")return e.slice(1,-1).trim()}},R={parser:{TokenBuilder:o(()=>new h,"TokenBuilder"),ValueConverter:o(()=>new C,"ValueConverter")}};function S(a=u){let e=s(l(a),f),r=s(c({shared:e}),E,R);return e.ServiceRegistry.register(r),{shared:e,RailroadEbnf:r}}i(S,"createRailroadEbnfServices");o(S,"createRailroadEbnfServices");export{R as a,S as b};
@@ -0,0 +1 @@
1
+ import{a as e,b as o,c as n,d as a,e as u,g as d,k as G,x as l,y as s}from"./chunk-WLHZKB66.mjs";import{a as t}from"./chunk-QVIEFLGF.mjs";var p=class extends s{static{t(this,"GitGraphTokenBuilder")}static{e(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},h={parser:{TokenBuilder:e(()=>new p,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function m(c=u){let r=a(n(c),d),i=a(o({shared:r}),G,h);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}t(m,"createGitGraphServices");e(m,"createGitGraphServices");export{h as a,m as b};
@@ -0,0 +1,15 @@
1
+ import{a as e}from"./chunk-QVIEFLGF.mjs";var o=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{o as a};
@@ -0,0 +1 @@
1
+ import{a as r,b as l,c,d,e as v,g as u,j as E,x as m,y as S}from"./chunk-WLHZKB66.mjs";import{a as i}from"./chunk-QVIEFLGF.mjs";var k=class extends S{static{i(this,"EventModelingTokenBuilder")}static{r(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},y=new Set(["cmd","command"]),h=new Set(["evt","event"]),s=new Set(["rmo","readmodel"]),M=new Set(["pcr","processor"]),T=new Set(["ui"]);function g(e){let t=e.validation.EventModelingValidator,o=e.validation.ValidationRegistry;if(o){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};o.register(n,t)}}i(g,"registerValidationChecks");r(g,"registerValidationChecks");var C=class{static{i(this,"EventModelingValidator")}static{r(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(y.has(e.modelEntityType)?this.validateSources(e,new Set([...T,...M]),"command","ui or processor",t):h.has(e.modelEntityType)?this.validateSources(e,y,"event","command",t):s.has(e.modelEntityType)?this.validateSources(e,h,"read model","event",t):M.has(e.modelEntityType)?this.validateSources(e,s,"processor","read model",t):T.has(e.modelEntityType)&&this.validateSources(e,s,"ui","read model",t))}validateSources(e,t,o,n,p){for(let V of e.sourceFrames){let a=V.ref;a!==void 0&&!t.has(a.modelEntityType)&&p("error",`A ${o} can only receive input from a ${n}, not from '${a.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},w={parser:{TokenBuilder:r(()=>new k,"TokenBuilder"),ValueConverter:r(()=>new m,"ValueConverter")},validation:{EventModelingValidator:r(()=>new C,"EventModelingValidator")}};function F(e=v){let t=d(c(e),u),o=d(l({shared:t}),E,w);return t.ServiceRegistry.register(o),g(o),{shared:t,EventModel:o}}i(F,"createEventModelingServices");r(F,"createEventModelingServices");export{w as a,F as b};
@@ -0,0 +1,2 @@
1
+ import{a as o,b as c,c as l,d as s,e as u,g as v,r as m,w as h,y as R}from"./chunk-WLHZKB66.mjs";import{a as i}from"./chunk-QVIEFLGF.mjs";var C=class extends R{static{i(this,"RailroadTokenBuilder")}static{o(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},f=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 d=e[t];switch(d){case"n":r+=`
2
+ `;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=d}continue}r+=n}return r},"decodeEscapedString"),p=class extends h{static{i(this,"RailroadValueConverter")}static{o(this,"RailroadValueConverter")}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 f(n)}return t}runCustomConverter(a,e,r){if(a.name==="RR_STRING")return f(e)}},S={parser:{TokenBuilder:o(()=>new C,"TokenBuilder"),ValueConverter:o(()=>new p,"ValueConverter")}};function k(a=u){let e=s(l(a),v),r=s(c({shared:e}),m,S);return e.ServiceRegistry.register(r),{shared:e,Railroad:r}}i(k,"createRailroadServices");o(k,"createRailroadServices");export{S as a,k as b};
@@ -0,0 +1,14 @@
1
+ import{a as o}from"./chunk-QVIEFLGF.mjs";var $a=typeof global=="object"&&global&&global.Object===Object&&global,$r=$a;var Va=typeof self=="object"&&self&&self.Object===Object&&self,Ya=$r||Va||Function("return this")(),b=Ya;var Za=b.Symbol,v=Za;var Ut=Object.prototype,Ja=Ut.hasOwnProperty,Xa=Ut.toString,Nr=v?v.toStringTag:void 0;function Qa(r){var t=Ja.call(r,Nr),e=r[Nr];try{r[Nr]=void 0;var a=!0}catch{}var f=Xa.call(r);return a&&(t?r[Nr]=e:delete r[Nr]),f}o(Qa,"getRawTag");var Kt=Qa;var ka=Object.prototype,rf=ka.toString;function tf(r){return rf.call(r)}o(tf,"objectToString");var Wt=tf;var ef="[object Null]",of="[object Undefined]",Ht=v?v.toStringTag:void 0;function af(r){return r==null?r===void 0?of:ef:Ht&&Ht in Object(r)?Kt(r):Wt(r)}o(af,"baseGetTag");var C=af;function ff(r){return r!=null&&typeof r=="object"}o(ff,"isObjectLike");var _=ff;var nf="[object Symbol]";function sf(r){return typeof r=="symbol"||_(r)&&C(r)==nf}o(sf,"isSymbol");var M=sf;function pf(r,t){for(var e=-1,a=r==null?0:r.length,f=Array(a);++e<a;)f[e]=t(r[e],e,r);return f}o(pf,"arrayMap");var G=pf;var uf=Array.isArray,l=uf;var mf=1/0,zt=v?v.prototype:void 0,qt=zt?zt.toString:void 0;function $t(r){if(typeof r=="string")return r;if(l(r))return G(r,$t)+"";if(M(r))return qt?qt.call(r):"";var t=r+"";return t=="0"&&1/r==-mf?"-0":t}o($t,"baseToString");var Vt=$t;var lf=/\s/;function df(r){for(var t=r.length;t--&&lf.test(r.charAt(t)););return t}o(df,"trimmedEndIndex");var Yt=df;var cf=/^\s+/;function xf(r){return r&&r.slice(0,Yt(r)+1).replace(cf,"")}o(xf,"baseTrim");var Zt=xf;function hf(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}o(hf,"isObject");var g=hf;var Jt=NaN,gf=/^[-+]0x[0-9a-f]+$/i,bf=/^0b[01]+$/i,yf=/^0o[0-7]+$/i,_f=parseInt;function vf(r){if(typeof r=="number")return r;if(M(r))return Jt;if(g(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=g(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Zt(r);var e=bf.test(r);return e||yf.test(r)?_f(r.slice(2),e?2:8):gf.test(r)?Jt:+r}o(vf,"toNumber");var Xt=vf;var Qt=1/0,Of=17976931348623157e292;function Af(r){if(!r)return r===0?r:0;if(r=Xt(r),r===Qt||r===-Qt){var t=r<0?-1:1;return t*Of}return r===r?r:0}o(Af,"toFinite");var xr=Af;function Tf(r){var t=xr(r),e=t%1;return t===t?e?t-e:t:0}o(Tf,"toInteger");var kt=Tf;function wf(r){return r}o(wf,"identity");var E=wf;var Sf="[object AsyncFunction]",Pf="[object Function]",Cf="[object GeneratorFunction]",If="[object Proxy]";function Ef(r){if(!g(r))return!1;var t=C(r);return t==Pf||t==Cf||t==Sf||t==If}o(Ef,"isFunction");var U=Ef;var jf=b["__core-js_shared__"],Vr=jf;var re=(function(){var r=/[^.]+$/.exec(Vr&&Vr.keys&&Vr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Lf(r){return!!re&&re in r}o(Lf,"isMasked");var te=Lf;var Mf=Function.prototype,Ff=Mf.toString;function Rf(r){if(r!=null){try{return Ff.call(r)}catch{}try{return r+""}catch{}}return""}o(Rf,"toSource");var z=Rf;var Nf=/[\\^$.*+?()[\]{}|]/g,Df=/^\[object .+?Constructor\]$/,Bf=Function.prototype,Gf=Object.prototype,Uf=Bf.toString,Kf=Gf.hasOwnProperty,Wf=RegExp("^"+Uf.call(Kf).replace(Nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hf(r){if(!g(r)||te(r))return!1;var t=U(r)?Wf:Df;return t.test(z(r))}o(Hf,"baseIsNative");var ee=Hf;function zf(r,t){return r?.[t]}o(zf,"getValue");var oe=zf;function qf(r,t){var e=oe(r,t);return ee(e)?e:void 0}o(qf,"getNative");var j=qf;var $f=j(b,"WeakMap"),Yr=$f;var ae=Object.create,Vf=(function(){function r(){}return o(r,"object"),function(t){if(!g(t))return{};if(ae)return ae(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})(),fe=Vf;function Yf(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}o(Yf,"apply");var ne=Yf;function Zf(){}o(Zf,"noop");var ie=Zf;function Jf(r,t){var e=-1,a=r.length;for(t||(t=Array(a));++e<a;)t[e]=r[e];return t}o(Jf,"copyArray");var Zr=Jf;var Xf=800,Qf=16,kf=Date.now;function rn(r){var t=0,e=0;return function(){var a=kf(),f=Qf-(a-e);if(e=a,f>0){if(++t>=Xf)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}o(rn,"shortOut");var se=rn;function tn(r){return function(){return r}}o(tn,"constant");var Y=tn;var en=(function(){try{var r=j(Object,"defineProperty");return r({},"",{}),r}catch{}})(),hr=en;var on=hr?function(r,t){return hr(r,"toString",{configurable:!0,enumerable:!1,value:Y(t),writable:!0})}:E,pe=on;var an=se(pe),Jr=an;function fn(r,t){for(var e=-1,a=r==null?0:r.length;++e<a&&t(r[e],e,r)!==!1;);return r}o(fn,"arrayEach");var Xr=fn;function nn(r,t,e,a){for(var f=r.length,n=e+(a?1:-1);a?n--:++n<f;)if(t(r[n],n,r))return n;return-1}o(nn,"baseFindIndex");var Qr=nn;function sn(r){return r!==r}o(sn,"baseIsNaN");var ue=sn;function pn(r,t,e){for(var a=e-1,f=r.length;++a<f;)if(r[a]===t)return a;return-1}o(pn,"strictIndexOf");var me=pn;function un(r,t,e){return t===t?me(r,t,e):Qr(r,ue,e)}o(un,"baseIndexOf");var le=un;function mn(r,t){var e=r==null?0:r.length;return!!e&&le(r,t,0)>-1}o(mn,"arrayIncludes");var de=mn;var ln=9007199254740991,dn=/^(?:0|[1-9]\d*)$/;function cn(r,t){var e=typeof r;return t=t??ln,!!t&&(e=="number"||e!="symbol"&&dn.test(r))&&r>-1&&r%1==0&&r<t}o(cn,"isIndex");var Z=cn;function xn(r,t,e){t=="__proto__"&&hr?hr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}o(xn,"baseAssignValue");var J=xn;function hn(r,t){return r===t||r!==r&&t!==t}o(hn,"eq");var R=hn;var gn=Object.prototype,bn=gn.hasOwnProperty;function yn(r,t,e){var a=r[t];(!(bn.call(r,t)&&R(a,e))||e===void 0&&!(t in r))&&J(r,t,e)}o(yn,"assignValue");var X=yn;function _n(r,t,e,a){var f=!e;e||(e={});for(var n=-1,i=t.length;++n<i;){var s=t[n],p=a?a(e[s],r[s],s,e,r):void 0;p===void 0&&(p=r[s]),f?J(e,s,p):X(e,s,p)}return e}o(_n,"copyObject");var K=_n;var ce=Math.max;function vn(r,t,e){return t=ce(t===void 0?r.length-1:t,0),function(){for(var a=arguments,f=-1,n=ce(a.length-t,0),i=Array(n);++f<n;)i[f]=a[t+f];f=-1;for(var s=Array(t+1);++f<t;)s[f]=a[f];return s[t]=e(i),ne(r,this,s)}}o(vn,"overRest");var kr=vn;function On(r,t){return Jr(kr(r,t,E),r+"")}o(On,"baseRest");var Q=On;var An=9007199254740991;function Tn(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=An}o(Tn,"isLength");var gr=Tn;function wn(r){return r!=null&&gr(r.length)&&!U(r)}o(wn,"isArrayLike");var O=wn;function Sn(r,t,e){if(!g(e))return!1;var a=typeof t;return(a=="number"?O(e)&&Z(t,e.length):a=="string"&&t in e)?R(e[t],r):!1}o(Sn,"isIterateeCall");var q=Sn;function Pn(r){return Q(function(t,e){var a=-1,f=e.length,n=f>1?e[f-1]:void 0,i=f>2?e[2]:void 0;for(n=r.length>3&&typeof n=="function"?(f--,n):void 0,i&&q(e[0],e[1],i)&&(n=f<3?void 0:n,f=1),t=Object(t);++a<f;){var s=e[a];s&&r(t,s,a,n)}return t})}o(Pn,"createAssigner");var xe=Pn;var Cn=Object.prototype;function In(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Cn;return r===e}o(In,"isPrototype");var k=In;function En(r,t){for(var e=-1,a=Array(r);++e<r;)a[e]=t(e);return a}o(En,"baseTimes");var he=En;var jn="[object Arguments]";function Ln(r){return _(r)&&C(r)==jn}o(Ln,"baseIsArguments");var Ct=Ln;var ge=Object.prototype,Mn=ge.hasOwnProperty,Fn=ge.propertyIsEnumerable,Rn=Ct((function(){return arguments})())?Ct:function(r){return _(r)&&Mn.call(r,"callee")&&!Fn.call(r,"callee")},N=Rn;function Nn(){return!1}o(Nn,"stubFalse");var be=Nn;var ve=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ye=ve&&typeof module=="object"&&module&&!module.nodeType&&module,Dn=ye&&ye.exports===ve,_e=Dn?b.Buffer:void 0,Bn=_e?_e.isBuffer:void 0,Gn=Bn||be,D=Gn;var Un="[object Arguments]",Kn="[object Array]",Wn="[object Boolean]",Hn="[object Date]",zn="[object Error]",qn="[object Function]",$n="[object Map]",Vn="[object Number]",Yn="[object Object]",Zn="[object RegExp]",Jn="[object Set]",Xn="[object String]",Qn="[object WeakMap]",kn="[object ArrayBuffer]",ri="[object DataView]",ti="[object Float32Array]",ei="[object Float64Array]",oi="[object Int8Array]",ai="[object Int16Array]",fi="[object Int32Array]",ni="[object Uint8Array]",ii="[object Uint8ClampedArray]",si="[object Uint16Array]",pi="[object Uint32Array]",h={};h[ti]=h[ei]=h[oi]=h[ai]=h[fi]=h[ni]=h[ii]=h[si]=h[pi]=!0;h[Un]=h[Kn]=h[kn]=h[Wn]=h[ri]=h[Hn]=h[zn]=h[qn]=h[$n]=h[Vn]=h[Yn]=h[Zn]=h[Jn]=h[Xn]=h[Qn]=!1;function ui(r){return _(r)&&gr(r.length)&&!!h[C(r)]}o(ui,"baseIsTypedArray");var Oe=ui;function mi(r){return function(t){return r(t)}}o(mi,"baseUnary");var rr=mi;var Ae=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dr=Ae&&typeof module=="object"&&module&&!module.nodeType&&module,li=Dr&&Dr.exports===Ae,It=li&&$r.process,di=(function(){try{var r=Dr&&Dr.require&&Dr.require("util").types;return r||It&&It.binding&&It.binding("util")}catch{}})(),$=di;var Te=$&&$.isTypedArray,ci=Te?rr(Te):Oe,tr=ci;var xi=Object.prototype,hi=xi.hasOwnProperty;function gi(r,t){var e=l(r),a=!e&&N(r),f=!e&&!a&&D(r),n=!e&&!a&&!f&&tr(r),i=e||a||f||n,s=i?he(r.length,String):[],p=s.length;for(var u in r)(t||hi.call(r,u))&&!(i&&(u=="length"||f&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Z(u,p)))&&s.push(u);return s}o(gi,"arrayLikeKeys");var rt=gi;function bi(r,t){return function(e){return r(t(e))}}o(bi,"overArg");var tt=bi;var yi=tt(Object.keys,Object),we=yi;var _i=Object.prototype,vi=_i.hasOwnProperty;function Oi(r){if(!k(r))return we(r);var t=[];for(var e in Object(r))vi.call(r,e)&&e!="constructor"&&t.push(e);return t}o(Oi,"baseKeys");var br=Oi;function Ai(r){return O(r)?rt(r):br(r)}o(Ai,"keys");var y=Ai;function Ti(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}o(Ti,"nativeKeysIn");var Se=Ti;var wi=Object.prototype,Si=wi.hasOwnProperty;function Pi(r){if(!g(r))return Se(r);var t=k(r),e=[];for(var a in r)a=="constructor"&&(t||!Si.call(r,a))||e.push(a);return e}o(Pi,"baseKeysIn");var Pe=Pi;function Ci(r){return O(r)?rt(r,!0):Pe(r)}o(Ci,"keysIn");var L=Ci;var Ii=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ei=/^\w*$/;function ji(r,t){if(l(r))return!1;var e=typeof r;return e=="number"||e=="symbol"||e=="boolean"||r==null||M(r)?!0:Ei.test(r)||!Ii.test(r)||t!=null&&r in Object(t)}o(ji,"isKey");var yr=ji;var Li=j(Object,"create"),V=Li;function Mi(){this.__data__=V?V(null):{},this.size=0}o(Mi,"hashClear");var Ce=Mi;function Fi(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}o(Fi,"hashDelete");var Ie=Fi;var Ri="__lodash_hash_undefined__",Ni=Object.prototype,Di=Ni.hasOwnProperty;function Bi(r){var t=this.__data__;if(V){var e=t[r];return e===Ri?void 0:e}return Di.call(t,r)?t[r]:void 0}o(Bi,"hashGet");var Ee=Bi;var Gi=Object.prototype,Ui=Gi.hasOwnProperty;function Ki(r){var t=this.__data__;return V?t[r]!==void 0:Ui.call(t,r)}o(Ki,"hashHas");var je=Ki;var Wi="__lodash_hash_undefined__";function Hi(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=V&&t===void 0?Wi:t,this}o(Hi,"hashSet");var Le=Hi;function _r(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var a=r[t];this.set(a[0],a[1])}}o(_r,"Hash");_r.prototype.clear=Ce;_r.prototype.delete=Ie;_r.prototype.get=Ee;_r.prototype.has=je;_r.prototype.set=Le;var Et=_r;function zi(){this.__data__=[],this.size=0}o(zi,"listCacheClear");var Me=zi;function qi(r,t){for(var e=r.length;e--;)if(R(r[e][0],t))return e;return-1}o(qi,"assocIndexOf");var er=qi;var $i=Array.prototype,Vi=$i.splice;function Yi(r){var t=this.__data__,e=er(t,r);if(e<0)return!1;var a=t.length-1;return e==a?t.pop():Vi.call(t,e,1),--this.size,!0}o(Yi,"listCacheDelete");var Fe=Yi;function Zi(r){var t=this.__data__,e=er(t,r);return e<0?void 0:t[e][1]}o(Zi,"listCacheGet");var Re=Zi;function Ji(r){return er(this.__data__,r)>-1}o(Ji,"listCacheHas");var Ne=Ji;function Xi(r,t){var e=this.__data__,a=er(e,r);return a<0?(++this.size,e.push([r,t])):e[a][1]=t,this}o(Xi,"listCacheSet");var De=Xi;function vr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var a=r[t];this.set(a[0],a[1])}}o(vr,"ListCache");vr.prototype.clear=Me;vr.prototype.delete=Fe;vr.prototype.get=Re;vr.prototype.has=Ne;vr.prototype.set=De;var or=vr;var Qi=j(b,"Map"),ar=Qi;function ki(){this.size=0,this.__data__={hash:new Et,map:new(ar||or),string:new Et}}o(ki,"mapCacheClear");var Be=ki;function rs(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}o(rs,"isKeyable");var Ge=rs;function ts(r,t){var e=r.__data__;return Ge(t)?e[typeof t=="string"?"string":"hash"]:e.map}o(ts,"getMapData");var fr=ts;function es(r){var t=fr(this,r).delete(r);return this.size-=t?1:0,t}o(es,"mapCacheDelete");var Ue=es;function os(r){return fr(this,r).get(r)}o(os,"mapCacheGet");var Ke=os;function as(r){return fr(this,r).has(r)}o(as,"mapCacheHas");var We=as;function fs(r,t){var e=fr(this,r),a=e.size;return e.set(r,t),this.size+=e.size==a?0:1,this}o(fs,"mapCacheSet");var He=fs;function Or(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var a=r[t];this.set(a[0],a[1])}}o(Or,"MapCache");Or.prototype.clear=Be;Or.prototype.delete=Ue;Or.prototype.get=Ke;Or.prototype.has=We;Or.prototype.set=He;var lr=Or;var ns="Expected a function";function jt(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(ns);var e=o(function(){var a=arguments,f=t?t.apply(this,a):a[0],n=e.cache;if(n.has(f))return n.get(f);var i=r.apply(this,a);return e.cache=n.set(f,i)||n,i},"memoized");return e.cache=new(jt.Cache||lr),e}o(jt,"memoize");jt.Cache=lr;var ze=jt;var is=500;function ss(r){var t=ze(r,function(a){return e.size===is&&e.clear(),a}),e=t.cache;return t}o(ss,"memoizeCapped");var qe=ss;var ps=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,us=/\\(\\)?/g,ms=qe(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(ps,function(e,a,f,n){t.push(f?n.replace(us,"$1"):a||e)}),t}),$e=ms;function ls(r){return r==null?"":Vt(r)}o(ls,"toString");var et=ls;function ds(r,t){return l(r)?r:yr(r,t)?[r]:$e(et(r))}o(ds,"castPath");var nr=ds;var cs=1/0;function xs(r){if(typeof r=="string"||M(r))return r;var t=r+"";return t=="0"&&1/r==-cs?"-0":t}o(xs,"toKey");var W=xs;function hs(r,t){t=nr(t,r);for(var e=0,a=t.length;r!=null&&e<a;)r=r[W(t[e++])];return e&&e==a?r:void 0}o(hs,"baseGet");var ir=hs;function gs(r,t,e){var a=r==null?void 0:ir(r,t);return a===void 0?e:a}o(gs,"get");var Ve=gs;function bs(r,t){for(var e=-1,a=t.length,f=r.length;++e<a;)r[f+e]=t[e];return r}o(bs,"arrayPush");var Ar=bs;var Ye=v?v.isConcatSpreadable:void 0;function ys(r){return l(r)||N(r)||!!(Ye&&r&&r[Ye])}o(ys,"isFlattenable");var Ze=ys;function Je(r,t,e,a,f){var n=-1,i=r.length;for(e||(e=Ze),f||(f=[]);++n<i;){var s=r[n];t>0&&e(s)?t>1?Je(s,t-1,e,a,f):Ar(f,s):a||(f[f.length]=s)}return f}o(Je,"baseFlatten");var Tr=Je;function _s(r){var t=r==null?0:r.length;return t?Tr(r,1):[]}o(_s,"flatten");var Lt=_s;function vs(r){return Jr(kr(r,void 0,Lt),r+"")}o(vs,"flatRest");var Xe=vs;var Os=tt(Object.getPrototypeOf,Object),wr=Os;var As="[object Object]",Ts=Function.prototype,ws=Object.prototype,Qe=Ts.toString,Ss=ws.hasOwnProperty,Ps=Qe.call(Object);function Cs(r){if(!_(r)||C(r)!=As)return!1;var t=wr(r);if(t===null)return!0;var e=Ss.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Qe.call(e)==Ps}o(Cs,"isPlainObject");var ke=Cs;var Is="\\ud800-\\udfff",Es="\\u0300-\\u036f",js="\\ufe20-\\ufe2f",Ls="\\u20d0-\\u20ff",Ms=Es+js+Ls,Fs="\\ufe0e\\ufe0f",Rs="\\u200d",Ns=RegExp("["+Rs+Is+Ms+Fs+"]");function Ds(r){return Ns.test(r)}o(Ds,"hasUnicode");var ro=Ds;function Bs(r,t,e,a){var f=-1,n=r==null?0:r.length;for(a&&n&&(e=r[++f]);++f<n;)e=t(e,r[f],f,r);return e}o(Bs,"arrayReduce");var to=Bs;function Gs(){this.__data__=new or,this.size=0}o(Gs,"stackClear");var eo=Gs;function Us(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}o(Us,"stackDelete");var oo=Us;function Ks(r){return this.__data__.get(r)}o(Ks,"stackGet");var ao=Ks;function Ws(r){return this.__data__.has(r)}o(Ws,"stackHas");var fo=Ws;var Hs=200;function zs(r,t){var e=this.__data__;if(e instanceof or){var a=e.__data__;if(!ar||a.length<Hs-1)return a.push([r,t]),this.size=++e.size,this;e=this.__data__=new lr(a)}return e.set(r,t),this.size=e.size,this}o(zs,"stackSet");var no=zs;function Sr(r){var t=this.__data__=new or(r);this.size=t.size}o(Sr,"Stack");Sr.prototype.clear=eo;Sr.prototype.delete=oo;Sr.prototype.get=ao;Sr.prototype.has=fo;Sr.prototype.set=no;var H=Sr;function qs(r,t){return r&&K(t,y(t),r)}o(qs,"baseAssign");var io=qs;function $s(r,t){return r&&K(t,L(t),r)}o($s,"baseAssignIn");var so=$s;var lo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,po=lo&&typeof module=="object"&&module&&!module.nodeType&&module,Vs=po&&po.exports===lo,uo=Vs?b.Buffer:void 0,mo=uo?uo.allocUnsafe:void 0;function Ys(r,t){if(t)return r.slice();var e=r.length,a=mo?mo(e):new r.constructor(e);return r.copy(a),a}o(Ys,"cloneBuffer");var ot=Ys;function Zs(r,t){for(var e=-1,a=r==null?0:r.length,f=0,n=[];++e<a;){var i=r[e];t(i,e,r)&&(n[f++]=i)}return n}o(Zs,"arrayFilter");var at=Zs;function Js(){return[]}o(Js,"stubArray");var ft=Js;var Xs=Object.prototype,Qs=Xs.propertyIsEnumerable,co=Object.getOwnPropertySymbols,ks=co?function(r){return r==null?[]:(r=Object(r),at(co(r),function(t){return Qs.call(r,t)}))}:ft,Pr=ks;function rp(r,t){return K(r,Pr(r),t)}o(rp,"copySymbols");var xo=rp;var tp=Object.getOwnPropertySymbols,ep=tp?function(r){for(var t=[];r;)Ar(t,Pr(r)),r=wr(r);return t}:ft,nt=ep;function op(r,t){return K(r,nt(r),t)}o(op,"copySymbolsIn");var ho=op;function ap(r,t,e){var a=t(r);return l(r)?a:Ar(a,e(r))}o(ap,"baseGetAllKeys");var it=ap;function fp(r){return it(r,y,Pr)}o(fp,"getAllKeys");var Br=fp;function np(r){return it(r,L,nt)}o(np,"getAllKeysIn");var go=np;var ip=j(b,"DataView"),st=ip;var sp=j(b,"Promise"),pt=sp;var pp=j(b,"Set"),sr=pp;var bo="[object Map]",up="[object Object]",yo="[object Promise]",_o="[object Set]",vo="[object WeakMap]",Oo="[object DataView]",mp=z(st),lp=z(ar),dp=z(pt),cp=z(sr),xp=z(Yr),dr=C;(st&&dr(new st(new ArrayBuffer(1)))!=Oo||ar&&dr(new ar)!=bo||pt&&dr(pt.resolve())!=yo||sr&&dr(new sr)!=_o||Yr&&dr(new Yr)!=vo)&&(dr=o(function(r){var t=C(r),e=t==up?r.constructor:void 0,a=e?z(e):"";if(a)switch(a){case mp:return Oo;case lp:return bo;case dp:return yo;case cp:return _o;case xp:return vo}return t},"getTag"));var F=dr;var hp=Object.prototype,gp=hp.hasOwnProperty;function bp(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&gp.call(r,"index")&&(e.index=r.index,e.input=r.input),e}o(bp,"initCloneArray");var Ao=bp;var yp=b.Uint8Array,Cr=yp;function _p(r){var t=new r.constructor(r.byteLength);return new Cr(t).set(new Cr(r)),t}o(_p,"cloneArrayBuffer");var Ir=_p;function vp(r,t){var e=t?Ir(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}o(vp,"cloneDataView");var To=vp;var Op=/\w*$/;function Ap(r){var t=new r.constructor(r.source,Op.exec(r));return t.lastIndex=r.lastIndex,t}o(Ap,"cloneRegExp");var wo=Ap;var So=v?v.prototype:void 0,Po=So?So.valueOf:void 0;function Tp(r){return Po?Object(Po.call(r)):{}}o(Tp,"cloneSymbol");var Co=Tp;function wp(r,t){var e=t?Ir(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}o(wp,"cloneTypedArray");var ut=wp;var Sp="[object Boolean]",Pp="[object Date]",Cp="[object Map]",Ip="[object Number]",Ep="[object RegExp]",jp="[object Set]",Lp="[object String]",Mp="[object Symbol]",Fp="[object ArrayBuffer]",Rp="[object DataView]",Np="[object Float32Array]",Dp="[object Float64Array]",Bp="[object Int8Array]",Gp="[object Int16Array]",Up="[object Int32Array]",Kp="[object Uint8Array]",Wp="[object Uint8ClampedArray]",Hp="[object Uint16Array]",zp="[object Uint32Array]";function qp(r,t,e){var a=r.constructor;switch(t){case Fp:return Ir(r);case Sp:case Pp:return new a(+r);case Rp:return To(r,e);case Np:case Dp:case Bp:case Gp:case Up:case Kp:case Wp:case Hp:case zp:return ut(r,e);case Cp:return new a;case Ip:case Lp:return new a(r);case Ep:return wo(r);case jp:return new a;case Mp:return Co(r)}}o(qp,"initCloneByTag");var Io=qp;function $p(r){return typeof r.constructor=="function"&&!k(r)?fe(wr(r)):{}}o($p,"initCloneObject");var mt=$p;var Vp="[object Map]";function Yp(r){return _(r)&&F(r)==Vp}o(Yp,"baseIsMap");var Eo=Yp;var jo=$&&$.isMap,Zp=jo?rr(jo):Eo,Lo=Zp;var Jp="[object Set]";function Xp(r){return _(r)&&F(r)==Jp}o(Xp,"baseIsSet");var Mo=Xp;var Fo=$&&$.isSet,Qp=Fo?rr(Fo):Mo,Ro=Qp;var kp=1,ru=2,tu=4,No="[object Arguments]",eu="[object Array]",ou="[object Boolean]",au="[object Date]",fu="[object Error]",Do="[object Function]",nu="[object GeneratorFunction]",iu="[object Map]",su="[object Number]",Bo="[object Object]",pu="[object RegExp]",uu="[object Set]",mu="[object String]",lu="[object Symbol]",du="[object WeakMap]",cu="[object ArrayBuffer]",xu="[object DataView]",hu="[object Float32Array]",gu="[object Float64Array]",bu="[object Int8Array]",yu="[object Int16Array]",_u="[object Int32Array]",vu="[object Uint8Array]",Ou="[object Uint8ClampedArray]",Au="[object Uint16Array]",Tu="[object Uint32Array]",x={};x[No]=x[eu]=x[cu]=x[xu]=x[ou]=x[au]=x[hu]=x[gu]=x[bu]=x[yu]=x[_u]=x[iu]=x[su]=x[Bo]=x[pu]=x[uu]=x[mu]=x[lu]=x[vu]=x[Ou]=x[Au]=x[Tu]=!0;x[fu]=x[Do]=x[du]=!1;function lt(r,t,e,a,f,n){var i,s=t&kp,p=t&ru,u=t&tu;if(e&&(i=f?e(r,a,f,n):e(r)),i!==void 0)return i;if(!g(r))return r;var m=l(r);if(m){if(i=Ao(r),!s)return Zr(r,i)}else{var d=F(r),c=d==Do||d==nu;if(D(r))return ot(r,s);if(d==Bo||d==No||c&&!f){if(i=p||c?{}:mt(r),!s)return p?ho(r,so(i,r)):xo(r,io(i,r))}else{if(!x[d])return f?r:{};i=Io(r,d,s)}}n||(n=new H);var w=n.get(r);if(w)return w;n.set(r,i),Ro(r)?r.forEach(function(T){i.add(lt(T,t,e,T,r,n))}):Lo(r)&&r.forEach(function(T,P){i.set(P,lt(T,t,e,P,r,n))});var A=u?p?go:Br:p?L:y,I=m?void 0:A(r);return Xr(I||r,function(T,P){I&&(P=T,T=r[P]),X(i,P,lt(T,t,e,P,r,n))}),i}o(lt,"baseClone");var Go=lt;var wu=1,Su=4;function Pu(r){return Go(r,wu|Su)}o(Pu,"cloneDeep");var Cu=Pu;var Iu="__lodash_hash_undefined__";function Eu(r){return this.__data__.set(r,Iu),this}o(Eu,"setCacheAdd");var Uo=Eu;function ju(r){return this.__data__.has(r)}o(ju,"setCacheHas");var Ko=ju;function dt(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new lr;++t<e;)this.add(r[t])}o(dt,"SetCache");dt.prototype.add=dt.prototype.push=Uo;dt.prototype.has=Ko;var ct=dt;function Lu(r,t){for(var e=-1,a=r==null?0:r.length;++e<a;)if(t(r[e],e,r))return!0;return!1}o(Lu,"arraySome");var Wo=Lu;function Mu(r,t){return r.has(t)}o(Mu,"cacheHas");var xt=Mu;var Fu=1,Ru=2;function Nu(r,t,e,a,f,n){var i=e&Fu,s=r.length,p=t.length;if(s!=p&&!(i&&p>s))return!1;var u=n.get(r),m=n.get(t);if(u&&m)return u==t&&m==r;var d=-1,c=!0,w=e&Ru?new ct:void 0;for(n.set(r,t),n.set(t,r);++d<s;){var A=r[d],I=t[d];if(a)var T=i?a(I,A,d,t,r,n):a(A,I,d,r,t,n);if(T!==void 0){if(T)continue;c=!1;break}if(w){if(!Wo(t,function(P,mr){if(!xt(w,mr)&&(A===P||f(A,P,e,a,n)))return w.push(mr)})){c=!1;break}}else if(!(A===I||f(A,I,e,a,n))){c=!1;break}}return n.delete(r),n.delete(t),c}o(Nu,"equalArrays");var ht=Nu;function Du(r){var t=-1,e=Array(r.size);return r.forEach(function(a,f){e[++t]=[f,a]}),e}o(Du,"mapToArray");var Ho=Du;function Bu(r){var t=-1,e=Array(r.size);return r.forEach(function(a){e[++t]=a}),e}o(Bu,"setToArray");var Er=Bu;var Gu=1,Uu=2,Ku="[object Boolean]",Wu="[object Date]",Hu="[object Error]",zu="[object Map]",qu="[object Number]",$u="[object RegExp]",Vu="[object Set]",Yu="[object String]",Zu="[object Symbol]",Ju="[object ArrayBuffer]",Xu="[object DataView]",zo=v?v.prototype:void 0,Mt=zo?zo.valueOf:void 0;function Qu(r,t,e,a,f,n,i){switch(e){case Xu:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Ju:return!(r.byteLength!=t.byteLength||!n(new Cr(r),new Cr(t)));case Ku:case Wu:case qu:return R(+r,+t);case Hu:return r.name==t.name&&r.message==t.message;case $u:case Yu:return r==t+"";case zu:var s=Ho;case Vu:var p=a&Gu;if(s||(s=Er),r.size!=t.size&&!p)return!1;var u=i.get(r);if(u)return u==t;a|=Uu,i.set(r,t);var m=ht(s(r),s(t),a,f,n,i);return i.delete(r),m;case Zu:if(Mt)return Mt.call(r)==Mt.call(t)}return!1}o(Qu,"equalByTag");var qo=Qu;var ku=1,rm=Object.prototype,tm=rm.hasOwnProperty;function em(r,t,e,a,f,n){var i=e&ku,s=Br(r),p=s.length,u=Br(t),m=u.length;if(p!=m&&!i)return!1;for(var d=p;d--;){var c=s[d];if(!(i?c in t:tm.call(t,c)))return!1}var w=n.get(r),A=n.get(t);if(w&&A)return w==t&&A==r;var I=!0;n.set(r,t),n.set(t,r);for(var T=i;++d<p;){c=s[d];var P=r[c],mr=t[c];if(a)var Gt=i?a(mr,P,c,t,r,n):a(P,mr,c,r,t,n);if(!(Gt===void 0?P===mr||f(P,mr,e,a,n):Gt)){I=!1;break}T||(T=c=="constructor")}if(I&&!T){var zr=r.constructor,qr=t.constructor;zr!=qr&&"constructor"in r&&"constructor"in t&&!(typeof zr=="function"&&zr instanceof zr&&typeof qr=="function"&&qr instanceof qr)&&(I=!1)}return n.delete(r),n.delete(t),I}o(em,"equalObjects");var $o=em;var om=1,Vo="[object Arguments]",Yo="[object Array]",gt="[object Object]",am=Object.prototype,Zo=am.hasOwnProperty;function fm(r,t,e,a,f,n){var i=l(r),s=l(t),p=i?Yo:F(r),u=s?Yo:F(t);p=p==Vo?gt:p,u=u==Vo?gt:u;var m=p==gt,d=u==gt,c=p==u;if(c&&D(r)){if(!D(t))return!1;i=!0,m=!1}if(c&&!m)return n||(n=new H),i||tr(r)?ht(r,t,e,a,f,n):qo(r,t,p,e,a,f,n);if(!(e&om)){var w=m&&Zo.call(r,"__wrapped__"),A=d&&Zo.call(t,"__wrapped__");if(w||A){var I=w?r.value():r,T=A?t.value():t;return n||(n=new H),f(I,T,e,a,n)}}return c?(n||(n=new H),$o(r,t,e,a,f,n)):!1}o(fm,"baseIsEqualDeep");var Jo=fm;function Xo(r,t,e,a,f){return r===t?!0:r==null||t==null||!_(r)&&!_(t)?r!==r&&t!==t:Jo(r,t,e,a,Xo,f)}o(Xo,"baseIsEqual");var bt=Xo;var nm=1,im=2;function sm(r,t,e,a){var f=e.length,n=f,i=!a;if(r==null)return!n;for(r=Object(r);f--;){var s=e[f];if(i&&s[2]?s[1]!==r[s[0]]:!(s[0]in r))return!1}for(;++f<n;){s=e[f];var p=s[0],u=r[p],m=s[1];if(i&&s[2]){if(u===void 0&&!(p in r))return!1}else{var d=new H;if(a)var c=a(u,m,p,r,t,d);if(!(c===void 0?bt(m,u,nm|im,a,d):c))return!1}}return!0}o(sm,"baseIsMatch");var Qo=sm;function pm(r){return r===r&&!g(r)}o(pm,"isStrictComparable");var yt=pm;function um(r){for(var t=y(r),e=t.length;e--;){var a=t[e],f=r[a];t[e]=[a,f,yt(f)]}return t}o(um,"getMatchData");var ko=um;function mm(r,t){return function(e){return e==null?!1:e[r]===t&&(t!==void 0||r in Object(e))}}o(mm,"matchesStrictComparable");var _t=mm;function lm(r){var t=ko(r);return t.length==1&&t[0][2]?_t(t[0][0],t[0][1]):function(e){return e===r||Qo(e,r,t)}}o(lm,"baseMatches");var ra=lm;function dm(r,t){return r!=null&&t in Object(r)}o(dm,"baseHasIn");var ta=dm;function cm(r,t,e){t=nr(t,r);for(var a=-1,f=t.length,n=!1;++a<f;){var i=W(t[a]);if(!(n=r!=null&&e(r,i)))break;r=r[i]}return n||++a!=f?n:(f=r==null?0:r.length,!!f&&gr(f)&&Z(i,f)&&(l(r)||N(r)))}o(cm,"hasPath");var vt=cm;function xm(r,t){return r!=null&&vt(r,t,ta)}o(xm,"hasIn");var Ot=xm;var hm=1,gm=2;function bm(r,t){return yr(r)&&yt(t)?_t(W(r),t):function(e){var a=Ve(e,r);return a===void 0&&a===t?Ot(e,r):bt(t,a,hm|gm)}}o(bm,"baseMatchesProperty");var ea=bm;function ym(r){return function(t){return t?.[r]}}o(ym,"baseProperty");var At=ym;function _m(r){return function(t){return ir(t,r)}}o(_m,"basePropertyDeep");var oa=_m;function vm(r){return yr(r)?At(W(r)):oa(r)}o(vm,"property");var aa=vm;function Om(r){return typeof r=="function"?r:r==null?E:typeof r=="object"?l(r)?ea(r[0],r[1]):ra(r):aa(r)}o(Om,"baseIteratee");var S=Om;function Am(r){return function(t,e,a){for(var f=-1,n=Object(t),i=a(t),s=i.length;s--;){var p=i[r?s:++f];if(e(n[p],p,n)===!1)break}return t}}o(Am,"createBaseFor");var fa=Am;var Tm=fa(),jr=Tm;function wm(r,t){return r&&jr(r,t,y)}o(wm,"baseForOwn");var Lr=wm;function Sm(r,t){return function(e,a){if(e==null)return e;if(!O(e))return r(e,a);for(var f=e.length,n=t?f:-1,i=Object(e);(t?n--:++n<f)&&a(i[n],n,i)!==!1;);return e}}o(Sm,"createBaseEach");var na=Sm;var Pm=na(Lr),pr=Pm;var Cm=o(function(){return b.Date.now()},"now"),Im=Cm;var ia=Object.prototype,Em=ia.hasOwnProperty,jm=Q(function(r,t){r=Object(r);var e=-1,a=t.length,f=a>2?t[2]:void 0;for(f&&q(t[0],t[1],f)&&(a=1);++e<a;)for(var n=t[e],i=L(n),s=-1,p=i.length;++s<p;){var u=i[s],m=r[u];(m===void 0||R(m,ia[u])&&!Em.call(r,u))&&(r[u]=n[u])}return r}),Lm=jm;function Mm(r,t,e){(e!==void 0&&!R(r[t],e)||e===void 0&&!(t in r))&&J(r,t,e)}o(Mm,"assignMergeValue");var Gr=Mm;function Fm(r){return _(r)&&O(r)}o(Fm,"isArrayLikeObject");var Tt=Fm;function Rm(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}o(Rm,"safeGet");var Ur=Rm;function Nm(r){return K(r,L(r))}o(Nm,"toPlainObject");var sa=Nm;function Dm(r,t,e,a,f,n,i){var s=Ur(r,e),p=Ur(t,e),u=i.get(p);if(u){Gr(r,e,u);return}var m=n?n(s,p,e+"",r,t,i):void 0,d=m===void 0;if(d){var c=l(p),w=!c&&D(p),A=!c&&!w&&tr(p);m=p,c||w||A?l(s)?m=s:Tt(s)?m=Zr(s):w?(d=!1,m=ot(p,!0)):A?(d=!1,m=ut(p,!0)):m=[]:ke(p)||N(p)?(m=s,N(s)?m=sa(s):(!g(s)||U(s))&&(m=mt(p))):d=!1}d&&(i.set(p,m),f(m,p,a,n,i),i.delete(p)),Gr(r,e,m)}o(Dm,"baseMergeDeep");var pa=Dm;function ua(r,t,e,a,f){r!==t&&jr(t,function(n,i){if(f||(f=new H),g(n))pa(r,t,i,e,ua,a,f);else{var s=a?a(Ur(r,i),n,i+"",r,t,f):void 0;s===void 0&&(s=n),Gr(r,i,s)}},L)}o(ua,"baseMerge");var ma=ua;function Bm(r,t,e){for(var a=-1,f=r==null?0:r.length;++a<f;)if(e(t,r[a]))return!0;return!1}o(Bm,"arrayIncludesWith");var la=Bm;function Gm(r){var t=r==null?0:r.length;return t?r[t-1]:void 0}o(Gm,"last");var Um=Gm;function Km(r){return typeof r=="function"?r:E}o(Km,"castFunction");var Mr=Km;function Wm(r,t){var e=l(r)?Xr:pr;return e(r,Mr(t))}o(Wm,"forEach");var B=Wm;function Hm(r,t){var e=[];return pr(r,function(a,f,n){t(a,f,n)&&e.push(a)}),e}o(Hm,"baseFilter");var da=Hm;function zm(r,t){var e=l(r)?at:da;return e(r,S(t,3))}o(zm,"filter");var Fr=zm;function qm(r){return function(t,e,a){var f=Object(t);if(!O(t)){var n=S(e,3);t=y(t),e=o(function(s){return n(f[s],s,f)},"predicate")}var i=r(t,e,a);return i>-1?f[n?t[i]:i]:void 0}}o(qm,"createFind");var ca=qm;var $m=Math.max;function Vm(r,t,e){var a=r==null?0:r.length;if(!a)return-1;var f=e==null?0:kt(e);return f<0&&(f=$m(a+f,0)),Qr(r,S(t,3),f)}o(Vm,"findIndex");var xa=Vm;var Ym=ca(xa),Zm=Ym;function Jm(r,t){var e=-1,a=O(r)?Array(r.length):[];return pr(r,function(f,n,i){a[++e]=t(f,n,i)}),a}o(Jm,"baseMap");var wt=Jm;function Xm(r,t){var e=l(r)?G:wt;return e(r,S(t,3))}o(Xm,"map");var Qm=Xm;function km(r,t){return r==null?r:jr(r,Mr(t),L)}o(km,"forIn");var rl=km;function tl(r,t){return r&&Lr(r,Mr(t))}o(tl,"forOwn");var el=tl;function ol(r,t){return r>t}o(ol,"baseGt");var ha=ol;var al=Object.prototype,fl=al.hasOwnProperty;function nl(r,t){return r!=null&&fl.call(r,t)}o(nl,"baseHas");var ga=nl;function il(r,t){return r!=null&&vt(r,t,ga)}o(il,"has");var sl=il;var pl="[object String]";function ul(r){return typeof r=="string"||!l(r)&&_(r)&&C(r)==pl}o(ul,"isString");var ba=ul;function ml(r,t){return G(t,function(e){return r[e]})}o(ml,"baseValues");var ya=ml;function ll(r){return r==null?[]:ya(r,y(r))}o(ll,"values");var Kr=ll;var dl="[object Map]",cl="[object Set]",xl=Object.prototype,hl=xl.hasOwnProperty;function gl(r){if(r==null)return!0;if(O(r)&&(l(r)||typeof r=="string"||typeof r.splice=="function"||D(r)||tr(r)||N(r)))return!r.length;var t=F(r);if(t==dl||t==cl)return!r.size;if(k(r))return!br(r).length;for(var e in r)if(hl.call(r,e))return!1;return!0}o(gl,"isEmpty");var St=gl;function bl(r){return r===void 0}o(bl,"isUndefined");var ur=bl;function yl(r,t){return r<t}o(yl,"baseLt");var Pt=yl;function _l(r,t){var e={};return t=S(t,3),Lr(r,function(a,f,n){J(e,f,t(a,f,n))}),e}o(_l,"mapValues");var vl=_l;function Ol(r,t,e){for(var a=-1,f=r.length;++a<f;){var n=r[a],i=t(n);if(i!=null&&(s===void 0?i===i&&!M(i):e(i,s)))var s=i,p=n}return p}o(Ol,"baseExtremum");var Rr=Ol;function Al(r){return r&&r.length?Rr(r,E,ha):void 0}o(Al,"max");var Tl=Al;var wl=xe(function(r,t,e){ma(r,t,e)}),Sl=wl;function Pl(r){return r&&r.length?Rr(r,E,Pt):void 0}o(Pl,"min");var Cl=Pl;function Il(r,t){return r&&r.length?Rr(r,S(t,2),Pt):void 0}o(Il,"minBy");var El=Il;function jl(r,t,e,a){if(!g(r))return r;t=nr(t,r);for(var f=-1,n=t.length,i=n-1,s=r;s!=null&&++f<n;){var p=W(t[f]),u=e;if(p==="__proto__"||p==="constructor"||p==="prototype")return r;if(f!=i){var m=s[p];u=a?a(m,p,s):void 0,u===void 0&&(u=g(m)?m:Z(t[f+1])?[]:{})}X(s,p,u),s=s[p]}return r}o(jl,"baseSet");var _a=jl;function Ll(r,t,e){for(var a=-1,f=t.length,n={};++a<f;){var i=t[a],s=ir(r,i);e(s,i)&&_a(n,nr(i,r),s)}return n}o(Ll,"basePickBy");var va=Ll;function Ml(r,t){var e=r.length;for(r.sort(t);e--;)r[e]=r[e].value;return r}o(Ml,"baseSortBy");var Oa=Ml;function Fl(r,t){if(r!==t){var e=r!==void 0,a=r===null,f=r===r,n=M(r),i=t!==void 0,s=t===null,p=t===t,u=M(t);if(!s&&!u&&!n&&r>t||n&&i&&p&&!s&&!u||a&&i&&p||!e&&p||!f)return 1;if(!a&&!n&&!u&&r<t||u&&e&&f&&!a&&!n||s&&e&&f||!i&&f||!p)return-1}return 0}o(Fl,"compareAscending");var Aa=Fl;function Rl(r,t,e){for(var a=-1,f=r.criteria,n=t.criteria,i=f.length,s=e.length;++a<i;){var p=Aa(f[a],n[a]);if(p){if(a>=s)return p;var u=e[a];return p*(u=="desc"?-1:1)}}return r.index-t.index}o(Rl,"compareMultiple");var Ta=Rl;function Nl(r,t,e){t.length?t=G(t,function(n){return l(n)?function(i){return ir(i,n.length===1?n[0]:n)}:n}):t=[E];var a=-1;t=G(t,rr(S));var f=wt(r,function(n,i,s){var p=G(t,function(u){return u(n)});return{criteria:p,index:++a,value:n}});return Oa(f,function(n,i){return Ta(n,i,e)})}o(Nl,"baseOrderBy");var wa=Nl;var Dl=At("length"),Sa=Dl;var Ca="\\ud800-\\udfff",Bl="\\u0300-\\u036f",Gl="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",Kl=Bl+Gl+Ul,Wl="\\ufe0e\\ufe0f",Hl="["+Ca+"]",Ft="["+Kl+"]",Rt="\\ud83c[\\udffb-\\udfff]",zl="(?:"+Ft+"|"+Rt+")",Ia="[^"+Ca+"]",Ea="(?:\\ud83c[\\udde6-\\uddff]){2}",ja="[\\ud800-\\udbff][\\udc00-\\udfff]",ql="\\u200d",La=zl+"?",Ma="["+Wl+"]?",$l="(?:"+ql+"(?:"+[Ia,Ea,ja].join("|")+")"+Ma+La+")*",Vl=Ma+La+$l,Yl="(?:"+[Ia+Ft+"?",Ft,Ea,ja,Hl].join("|")+")",Pa=RegExp(Rt+"(?="+Rt+")|"+Yl+Vl,"g");function Zl(r){for(var t=Pa.lastIndex=0;Pa.test(r);)++t;return t}o(Zl,"unicodeSize");var Fa=Zl;function Jl(r){return ro(r)?Fa(r):Sa(r)}o(Jl,"stringSize");var Ra=Jl;function Xl(r,t){return va(r,t,function(e,a){return Ot(r,a)})}o(Xl,"basePick");var Na=Xl;var Ql=Xe(function(r,t){return r==null?{}:Na(r,t)}),kl=Ql;var rd=Math.ceil,td=Math.max;function ed(r,t,e,a){for(var f=-1,n=td(rd((t-r)/(e||1)),0),i=Array(n);n--;)i[a?n:++f]=r,r+=e;return i}o(ed,"baseRange");var Da=ed;function od(r){return function(t,e,a){return a&&typeof a!="number"&&q(t,e,a)&&(e=a=void 0),t=xr(t),e===void 0?(e=t,t=0):e=xr(e),a=a===void 0?t<e?1:-1:xr(a),Da(t,e,a,r)}}o(od,"createRange");var Ba=od;var ad=Ba(),fd=ad;function nd(r,t,e,a,f){return f(r,function(n,i,s){e=a?(a=!1,n):t(e,n,i,s)}),e}o(nd,"baseReduce");var Ga=nd;function id(r,t,e){var a=l(r)?to:Ga,f=arguments.length<3;return a(r,S(t,4),e,f,pr)}o(id,"reduce");var Nt=id;var sd="[object Map]",pd="[object Set]";function ud(r){if(r==null)return 0;if(O(r))return ba(r)?Ra(r):r.length;var t=F(r);return t==sd||t==pd?r.size:br(r).length}o(ud,"size");var md=ud;var ld=Q(function(r,t){if(r==null)return[];var e=t.length;return e>1&&q(r,t[0],t[1])?t=[]:e>2&&q(t[0],t[1],t[2])&&(t=[t[0]]),wa(r,Tr(t,1),[])}),dd=ld;var cd=1/0,xd=sr&&1/Er(new sr([,-0]))[1]==cd?function(r){return new sr(r)}:ie,Ua=xd;var hd=200;function gd(r,t,e){var a=-1,f=de,n=r.length,i=!0,s=[],p=s;if(e)i=!1,f=la;else if(n>=hd){var u=t?null:Ua(r);if(u)return Er(u);i=!1,f=xt,p=new ct}else p=t?[]:s;r:for(;++a<n;){var m=r[a],d=t?t(m):m;if(m=e||m!==0?m:0,i&&d===d){for(var c=p.length;c--;)if(p[c]===d)continue r;t&&p.push(d),s.push(m)}else f(p,d,e)||(p!==s&&p.push(d),s.push(m))}return s}o(gd,"baseUniq");var Ka=gd;var bd=Q(function(r){return Ka(Tr(r,1,Tt,!0))}),Dt=bd;var yd=0;function _d(r){var t=++yd;return et(r)+t}o(_d,"uniqueId");var vd=_d;function Od(r,t,e){for(var a=-1,f=r.length,n=t.length,i={};++a<f;){var s=a<n?t[a]:void 0;e(i,r[a],s)}return i}o(Od,"baseZipObject");var Wa=Od;function Ad(r,t){return Wa(r||[],t||[],X)}o(Ad,"zipObject");var Td=Ad;var Sd="\0",cr="\0",Ha="",Hr=class{static{o(this,"Graph")}constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Y(void 0),this._defaultEdgeLabelFn=Y(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[cr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return U(t)||(t=Y(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return y(this._nodes)}sources(){var t=this;return Fr(this.nodes(),function(e){return St(t._in[e])})}sinks(){var t=this;return Fr(this.nodes(),function(e){return St(t._out[e])})}setNodes(t,e){var a=arguments,f=this;return B(t,function(n){a.length>1?f.setNode(n,e):f.setNode(n)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=cr,this._children[t]={},this._children[cr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=o(a=>this.removeEdge(this._edgeObjs[a]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],B(this.children(t),a=>{this.setParent(a)}),delete this._children[t]),B(y(this._in[t]),e),delete this._in[t],delete this._preds[t],B(y(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ur(e))e=cr;else{e+="";for(var a=e;!ur(a);a=this.parent(a))if(a===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==cr)return e}}children(t){if(ur(t)&&(t=cr),this._isCompound){var e=this._children[t];if(e)return y(e)}else{if(t===cr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return y(e)}successors(t){var e=this._sucs[t];if(e)return y(e)}neighbors(t){var e=this.predecessors(t);if(e)return Dt(e,this.successors(t))}isLeaf(t){var e;return this.isDirected()?e=this.successors(t):e=this.neighbors(t),e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var a=this;B(this._nodes,function(i,s){t(s)&&e.setNode(s,i)}),B(this._edgeObjs,function(i){e.hasNode(i.v)&&e.hasNode(i.w)&&e.setEdge(i,a.edge(i))});var f={};function n(i){var s=a.parent(i);return s===void 0||e.hasNode(s)?(f[i]=s,s):s in f?f[s]:n(s)}return o(n,"findParent"),this._isCompound&&B(e.nodes(),function(i){e.setParent(i,n(i))}),e}setDefaultEdgeLabel(t){return U(t)||(t=Y(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Kr(this._edgeObjs)}setPath(t,e){var a=this,f=arguments;return Nt(t,function(n,i){return f.length>1?a.setEdge(n,i,e):a.setEdge(n,i),i}),this}setEdge(){var t,e,a,f,n=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(t=i.v,e=i.w,a=i.name,arguments.length===2&&(f=arguments[1],n=!0)):(t=i,e=arguments[1],a=arguments[3],arguments.length>2&&(f=arguments[2],n=!0)),t=""+t,e=""+e,ur(a)||(a=""+a);var s=Wr(this._isDirected,t,e,a);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return n&&(this._edgeLabels[s]=f),this;if(!ur(a)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=n?f:this._defaultEdgeLabelFn(t,e,a);var p=Pd(this._isDirected,t,e,a);return t=p.v,e=p.w,Object.freeze(p),this._edgeObjs[s]=p,za(this._preds[e],t),za(this._sucs[t],e),this._in[e][s]=p,this._out[t][s]=p,this._edgeCount++,this}edge(t,e,a){var f=arguments.length===1?Bt(this._isDirected,arguments[0]):Wr(this._isDirected,t,e,a);return this._edgeLabels[f]}hasEdge(t,e,a){var f=arguments.length===1?Bt(this._isDirected,arguments[0]):Wr(this._isDirected,t,e,a);return Object.prototype.hasOwnProperty.call(this._edgeLabels,f)}removeEdge(t,e,a){var f=arguments.length===1?Bt(this._isDirected,arguments[0]):Wr(this._isDirected,t,e,a),n=this._edgeObjs[f];return n&&(t=n.v,e=n.w,delete this._edgeLabels[f],delete this._edgeObjs[f],qa(this._preds[e],t),qa(this._sucs[t],e),delete this._in[e][f],delete this._out[t][f],this._edgeCount--),this}inEdges(t,e){var a=this._in[t];if(a){var f=Kr(a);return e?Fr(f,function(n){return n.v===e}):f}}outEdges(t,e){var a=this._out[t];if(a){var f=Kr(a);return e?Fr(f,function(n){return n.w===e}):f}}nodeEdges(t,e){var a=this.inEdges(t,e);if(a)return a.concat(this.outEdges(t,e))}};Hr.prototype._nodeCount=0;Hr.prototype._edgeCount=0;function za(r,t){r[t]?r[t]++:r[t]=1}o(za,"incrementOrInitEntry");function qa(r,t){--r[t]||delete r[t]}o(qa,"decrementOrRemoveEntry");function Wr(r,t,e,a){var f=""+t,n=""+e;if(!r&&f>n){var i=f;f=n,n=i}return f+Ha+n+Ha+(ur(a)?Sd:a)}o(Wr,"edgeArgsToId");function Pd(r,t,e,a){var f=""+t,n=""+e;if(!r&&f>n){var i=f;f=n,n=i}var s={v:f,w:n};return a&&(s.name=a),s}o(Pd,"edgeArgsToObj");function Bt(r,t){return Wr(r,t.v,t.w,t.name)}o(Bt,"edgeObjToId");export{l as a,Y as b,Lt as c,Cu as d,Im as e,Lm as f,Um as g,B as h,Fr as i,Zm as j,Qm as k,rl as l,el as m,sl as n,Kr as o,ur as p,vl as q,Tl as r,Sl as s,Cl as t,El as u,kl as v,fd as w,Nt as x,md as y,dd as z,vd as A,Td as B,Hr as C};
2
+ /*! Bundled license information:
3
+
4
+ lodash-es/lodash.js:
5
+ (**
6
+ * @license
7
+ * Lodash (Custom Build) <https://lodash.com/>
8
+ * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
9
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
10
+ * Released under MIT license <https://lodash.com/license>
11
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
12
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
13
+ *)
14
+ */
@@ -0,0 +1 @@
1
+ import{a as o,b as s,c as l,d as i,e as d,g as m,t as c,w as p,y as T}from"./chunk-WLHZKB66.mjs";import{a as n}from"./chunk-QVIEFLGF.mjs";var u=class extends T{static{n(this,"TreemapTokenBuilder")}static{o(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},v=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,g=class extends p{static{n(this,"TreemapValueConverter")}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=v.exec(e);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}}};function f(r){let e=r.validation.TreemapValidator,t=r.validation.ValidationRegistry;if(t){let a={Treemap:e.checkSingleRoot.bind(e)};t.register(a,e)}}n(f,"registerValidationChecks");o(f,"registerValidationChecks");var h=class{static{n(this,"TreemapValidator")}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"}))}},C={parser:{TokenBuilder:o(()=>new u,"TokenBuilder"),ValueConverter:o(()=>new g,"ValueConverter")},validation:{TreemapValidator:o(()=>new h,"TreemapValidator")}};function V(r=d){let e=i(l(r),m),t=i(s({shared:e}),c,C);return e.ServiceRegistry.register(t),f(t),{shared:e,Treemap:t}}n(V,"createTreemapServices");o(V,"createTreemapServices");export{C as a,V as b};
@@ -0,0 +1 @@
1
+ import{P as c}from"./chunk-FWWDAFD2.mjs";import{b as h}from"./chunk-L2B47AAZ.mjs";import{a as i}from"./chunk-QVIEFLGF.mjs";var y=i((t,e,o,n)=>{t.attr("class",o);let{width:r,height:m,x:s,y:b}=w(t,e);c(t,m,r,n);let u=x(s,b,r,m,e);t.attr("viewBox",u),h.debug(`viewBox configured: ${u} with padding: ${e}`)},"setupViewPortForSVG"),w=i((t,e)=>{let o=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:o.width+e*2,height:o.height+e*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),x=i((t,e,o,n,r)=>`${t-r} ${e-r} ${o} ${n}`,"createViewBox");export{y as a};
@@ -0,0 +1 @@
1
+ import{a as t,b as d,c as l,d as s,e as u,g as c,p as f,w as m,y as v}from"./chunk-WLHZKB66.mjs";import{a as i}from"./chunk-QVIEFLGF.mjs";var b=class extends v{static{i(this,"RailroadAbnfTokenBuilder")}static{t(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},A=class extends m{static{i(this,"RailroadAbnfValueConverter")}static{t(this,"RailroadAbnfValueConverter")}runConverter(r,e,a){let o=super.runConverter(r,e,a);if(r.name==="TITLE"&&typeof o=="string"){let n=o.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return n.slice(1,-1)}return o}runCustomConverter(r,e,a){if(r.name==="ABNF_STRING")return e.slice(1,-1)}},C={parser:{TokenBuilder:t(()=>new b,"TokenBuilder"),ValueConverter:t(()=>new A,"ValueConverter")}};function R(r=u){let e=s(l(r),c),a=s(d({shared:e}),f,C);return e.ServiceRegistry.register(a),{shared:e,RailroadAbnf:a}}i(R,"createRailroadAbnfServices");t(R,"createRailroadAbnfServices");export{C as a,R as b};
@@ -0,0 +1 @@
1
+ import{a as g}from"./chunk-QVIEFLGF.mjs";function tt(a,t,s){if(a&&a.length){let[e,n]=t,o=Math.PI/180*s,r=Math.cos(o),h=Math.sin(o);for(let i of a){let[l,c]=i;i[0]=(l-e)*r-(c-n)*h+e,i[1]=(l-e)*h+(c-n)*r+n}}}g(tt,"t");function Wt(a,t){return a[0]===t[0]&&a[1]===t[1]}g(Wt,"e");function Et(a,t,s,e=1){let n=s,o=Math.max(t,.1),r=a[0]&&a[0][0]&&typeof a[0][0]=="number"?[a]:a,h=[0,0];if(n)for(let l of r)tt(l,h,n);let i=(function(l,c,d){let p=[];for(let k of l){let w=[...k];Wt(w[0],w[w.length-1])||w.push([w[0][0],w[0][1]]),w.length>2&&p.push(w)}let u=[];c=Math.max(c,.1);let f=[];for(let k of p)for(let w=0;w<k.length-1;w++){let v=k[w],P=k[w+1];if(v[1]!==P[1]){let x=Math.min(v[1],P[1]);f.push({ymin:x,ymax:Math.max(v[1],P[1]),x:x===v[1]?v[0]:P[0],islope:(P[0]-v[0])/(P[1]-v[1])})}}if(f.sort(((k,w)=>k.ymin<w.ymin?-1:k.ymin>w.ymin?1:k.x<w.x?-1:k.x>w.x?1:k.ymax===w.ymax?0:(k.ymax-w.ymax)/Math.abs(k.ymax-w.ymax))),!f.length)return u;let M=[],b=f[0].ymin,y=0;for(;M.length||f.length;){if(f.length){let k=-1;for(let w=0;w<f.length&&!(f[w].ymin>b);w++)k=w;f.splice(0,k+1).forEach((w=>{M.push({s:b,edge:w})}))}if(M=M.filter((k=>!(k.edge.ymax<=b))),M.sort(((k,w)=>k.edge.x===w.edge.x?0:(k.edge.x-w.edge.x)/Math.abs(k.edge.x-w.edge.x))),(d!==1||y%c==0)&&M.length>1)for(let k=0;k<M.length;k+=2){let w=k+1;if(w>=M.length)break;let v=M[k].edge,P=M[w].edge;u.push([[Math.round(v.x),b],[Math.round(P.x),b]])}b+=d,M.forEach((k=>{k.edge.x=k.edge.x+d*k.edge.islope})),y++}return u})(r,o,e);if(n){for(let l of r)tt(l,h,-n);(function(l,c,d){let p=[];l.forEach((u=>p.push(...u))),tt(p,c,d)})(i,h,-n)}return i}g(Et,"s");function V(a,t){var s;let e=t.hachureAngle+90,n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let o=1;return t.roughness>=1&&(((s=t.randomizer)===null||s===void 0?void 0:s.next())||Math.random())>.7&&(o=n),Et(a,n,e,o||1)}g(V,"n");var F=class{static{g(this,"o")}constructor(t){this.helper=t}fillPolygons(t,s){return this._fillPolygons(t,s)}_fillPolygons(t,s){let e=V(t,s);return{type:"fillSketch",ops:this.renderLines(e,s)}}renderLines(t,s){let e=[];for(let n of t)e.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],s));return e}};function Y(a){let t=a[0],s=a[1];return Math.sqrt(Math.pow(t[0]-s[0],2)+Math.pow(t[1]-s[1],2))}g(Y,"a");var ot=class extends F{static{g(this,"h")}fillPolygons(t,s){let e=s.hachureGap;e<0&&(e=4*s.strokeWidth),e=Math.max(e,.1);let n=V(t,Object.assign({},s,{hachureGap:e})),o=Math.PI/180*s.hachureAngle,r=[],h=.5*e*Math.cos(o),i=.5*e*Math.sin(o);for(let[l,c]of n)Y([l,c])&&r.push([[l[0]-h,l[1]+i],[...c]],[[l[0]+h,l[1]-i],[...c]]);return{type:"fillSketch",ops:this.renderLines(r,s)}}},ht=class extends F{static{g(this,"r")}fillPolygons(t,s){let e=this._fillPolygons(t,s),n=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),o=this._fillPolygons(t,n);return e.ops=e.ops.concat(o.ops),e}},rt=class{static{g(this,"i")}constructor(t){this.helper=t}fillPolygons(t,s){let e=V(t,s=Object.assign({},s,{hachureAngle:0}));return this.dotsOnLines(e,s)}dotsOnLines(t,s){let e=[],n=s.hachureGap;n<0&&(n=4*s.strokeWidth),n=Math.max(n,.1);let o=s.fillWeight;o<0&&(o=s.strokeWidth/2);let r=n/4;for(let h of t){let i=Y(h),l=i/n,c=Math.ceil(l)-1,d=i-c*n,p=(h[0][0]+h[1][0])/2-n/4,u=Math.min(h[0][1],h[1][1]);for(let f=0;f<c;f++){let M=u+d+f*n,b=p-r+2*Math.random()*r,y=M-r+2*Math.random()*r,k=this.helper.ellipse(b,y,o,o,s);e.push(...k.ops)}}return{type:"fillSketch",ops:e}}},it=class{static{g(this,"c")}constructor(t){this.helper=t}fillPolygons(t,s){let e=V(t,s);return{type:"fillSketch",ops:this.dashedLine(e,s)}}dashedLine(t,s){let e=s.dashOffset<0?s.hachureGap<0?4*s.strokeWidth:s.hachureGap:s.dashOffset,n=s.dashGap<0?s.hachureGap<0?4*s.strokeWidth:s.hachureGap:s.dashGap,o=[];return t.forEach((r=>{let h=Y(r),i=Math.floor(h/(e+n)),l=(h+n-i*(e+n))/2,c=r[0],d=r[1];c[0]>d[0]&&(c=r[1],d=r[0]);let p=Math.atan((d[1]-c[1])/(d[0]-c[0]));for(let u=0;u<i;u++){let f=u*(e+n),M=f+e,b=[c[0]+f*Math.cos(p)+l*Math.cos(p),c[1]+f*Math.sin(p)+l*Math.sin(p)],y=[c[0]+M*Math.cos(p)+l*Math.cos(p),c[1]+M*Math.sin(p)+l*Math.sin(p)];o.push(...this.helper.doubleLineOps(b[0],b[1],y[0],y[1],s))}})),o}},ct=class{static{g(this,"l")}constructor(t){this.helper=t}fillPolygons(t,s){let e=s.hachureGap<0?4*s.strokeWidth:s.hachureGap,n=s.zigzagOffset<0?e:s.zigzagOffset,o=V(t,s=Object.assign({},s,{hachureGap:e+n}));return{type:"fillSketch",ops:this.zigzagLines(o,n,s)}}zigzagLines(t,s,e){let n=[];return t.forEach((o=>{let r=Y(o),h=Math.round(r/(2*s)),i=o[0],l=o[1];i[0]>l[0]&&(i=o[1],l=o[0]);let c=Math.atan((l[1]-i[1])/(l[0]-i[0]));for(let d=0;d<h;d++){let p=2*d*s,u=2*(d+1)*s,f=Math.sqrt(2*Math.pow(s,2)),M=[i[0]+p*Math.cos(c),i[1]+p*Math.sin(c)],b=[i[0]+u*Math.cos(c),i[1]+u*Math.sin(c)],y=[M[0]+f*Math.cos(c+Math.PI/4),M[1]+f*Math.sin(c+Math.PI/4)];n.push(...this.helper.doubleLineOps(M[0],M[1],y[0],y[1],e),...this.helper.doubleLineOps(y[0],y[1],b[0],b[1],e))}})),n}},O={},lt=class{static{g(this,"p")}constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},Gt=0,et=1,yt=2,Q={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function st(a,t){return a.type===t}g(st,"k");function Mt(a){let t=[],s=(function(r){let h=new Array;for(;r!=="";)if(r.match(/^([ \t\r\n,]+)/))r=r.substr(RegExp.$1.length);else if(r.match(/^([aAcChHlLmMqQsStTvVzZ])/))h[h.length]={type:Gt,text:RegExp.$1},r=r.substr(RegExp.$1.length);else{if(!r.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];h[h.length]={type:et,text:`${parseFloat(RegExp.$1)}`},r=r.substr(RegExp.$1.length)}return h[h.length]={type:yt,text:""},h})(a),e="BOD",n=0,o=s[n];for(;!st(o,yt);){let r=0,h=[];if(e==="BOD"){if(o.text!=="M"&&o.text!=="m")return Mt("M0,0"+a);n++,r=Q[o.text],e=o.text}else st(o,et)?r=Q[e]:(n++,r=Q[o.text],e=o.text);if(!(n+r<s.length))throw new Error("Path data ended short");for(let i=n;i<n+r;i++){let l=s[i];if(!st(l,et))throw new Error("Param not a number: "+e+","+l.text);h[h.length]=+l.text}if(typeof Q[e]!="number")throw new Error("Bad segment: "+e);{let i={key:e,data:h};t.push(i),n+=r,o=s[n],e==="M"&&(e="L"),e==="m"&&(e="l")}}return t}g(Mt,"b");function Lt(a){let t=0,s=0,e=0,n=0,o=[];for(let{key:r,data:h}of a)switch(r){case"M":o.push({key:"M",data:[...h]}),[t,s]=h,[e,n]=h;break;case"m":t+=h[0],s+=h[1],o.push({key:"M",data:[t,s]}),e=t,n=s;break;case"L":o.push({key:"L",data:[...h]}),[t,s]=h;break;case"l":t+=h[0],s+=h[1],o.push({key:"L",data:[t,s]});break;case"C":o.push({key:"C",data:[...h]}),t=h[4],s=h[5];break;case"c":{let i=h.map(((l,c)=>c%2?l+s:l+t));o.push({key:"C",data:i}),t=i[4],s=i[5];break}case"Q":o.push({key:"Q",data:[...h]}),t=h[2],s=h[3];break;case"q":{let i=h.map(((l,c)=>c%2?l+s:l+t));o.push({key:"Q",data:i}),t=i[2],s=i[3];break}case"A":o.push({key:"A",data:[...h]}),t=h[5],s=h[6];break;case"a":t+=h[5],s+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],t,s]});break;case"H":o.push({key:"H",data:[...h]}),t=h[0];break;case"h":t+=h[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...h]}),s=h[0];break;case"v":s+=h[0],o.push({key:"V",data:[s]});break;case"S":o.push({key:"S",data:[...h]}),t=h[2],s=h[3];break;case"s":{let i=h.map(((l,c)=>c%2?l+s:l+t));o.push({key:"S",data:i}),t=i[2],s=i[3];break}case"T":o.push({key:"T",data:[...h]}),t=h[0],s=h[1];break;case"t":t+=h[0],s+=h[1],o.push({key:"T",data:[t,s]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=e,s=n}return o}g(Lt,"y");function Tt(a){let t=[],s="",e=0,n=0,o=0,r=0,h=0,i=0;for(let{key:l,data:c}of a){switch(l){case"M":t.push({key:"M",data:[...c]}),[e,n]=c,[o,r]=c;break;case"C":t.push({key:"C",data:[...c]}),e=c[4],n=c[5],h=c[2],i=c[3];break;case"L":t.push({key:"L",data:[...c]}),[e,n]=c;break;case"H":e=c[0],t.push({key:"L",data:[e,n]});break;case"V":n=c[0],t.push({key:"L",data:[e,n]});break;case"S":{let d=0,p=0;s==="C"||s==="S"?(d=e+(e-h),p=n+(n-i)):(d=e,p=n),t.push({key:"C",data:[d,p,...c]}),h=c[0],i=c[1],e=c[2],n=c[3];break}case"T":{let[d,p]=c,u=0,f=0;s==="Q"||s==="T"?(u=e+(e-h),f=n+(n-i)):(u=e,f=n);let M=e+2*(u-e)/3,b=n+2*(f-n)/3,y=d+2*(u-d)/3,k=p+2*(f-p)/3;t.push({key:"C",data:[M,b,y,k,d,p]}),h=u,i=f,e=d,n=p;break}case"Q":{let[d,p,u,f]=c,M=e+2*(d-e)/3,b=n+2*(p-n)/3,y=u+2*(d-u)/3,k=f+2*(p-f)/3;t.push({key:"C",data:[M,b,y,k,u,f]}),h=d,i=p,e=u,n=f;break}case"A":{let d=Math.abs(c[0]),p=Math.abs(c[1]),u=c[2],f=c[3],M=c[4],b=c[5],y=c[6];d===0||p===0?(t.push({key:"C",data:[e,n,b,y,b,y]}),e=b,n=y):(e!==b||n!==y)&&(Dt(e,n,b,y,d,p,u,f,M).forEach((function(k){t.push({key:"C",data:k})})),e=b,n=y);break}case"Z":t.push({key:"Z",data:[]}),e=o,n=r}s=l}return t}g(Tt,"m");function j(a,t,s){return[a*Math.cos(s)-t*Math.sin(s),a*Math.sin(s)+t*Math.cos(s)]}g(j,"w");function Dt(a,t,s,e,n,o,r,h,i,l){let c=(d=r,Math.PI*d/180);var d;let p=[],u=0,f=0,M=0,b=0;if(l)[u,f,M,b]=l;else{[a,t]=j(a,t,-c),[s,e]=j(s,e,-c);let D=(a-s)/2,S=(t-e)/2,I=D*D/(n*n)+S*S/(o*o);I>1&&(I=Math.sqrt(I),n*=I,o*=I);let E=n*n,G=o*o,Ct=E*G-E*S*S-G*D*D,zt=E*S*S+G*D*D,bt=(h===i?-1:1)*Math.sqrt(Math.abs(Ct/zt));M=bt*n*S/o+(a+s)/2,b=bt*-o*D/n+(t+e)/2,u=Math.asin(parseFloat(((t-b)/o).toFixed(9))),f=Math.asin(parseFloat(((e-b)/o).toFixed(9))),a<M&&(u=Math.PI-u),s<M&&(f=Math.PI-f),u<0&&(u=2*Math.PI+u),f<0&&(f=2*Math.PI+f),i&&u>f&&(u-=2*Math.PI),!i&&f>u&&(f-=2*Math.PI)}let y=f-u;if(Math.abs(y)>120*Math.PI/180){let D=f,S=s,I=e;f=i&&f>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,p=Dt(s=M+n*Math.cos(f),e=b+o*Math.sin(f),S,I,n,o,r,0,i,[f,D,M,b])}y=f-u;let k=Math.cos(u),w=Math.sin(u),v=Math.cos(f),P=Math.sin(f),x=Math.tan(y/4),T=4/3*n*x,_=4/3*o*x,Z=[a,t],A=[a+T*w,t-_*k],z=[s+T*P,e-_*v],kt=[s,e];if(A[0]=2*Z[0]-A[0],A[1]=2*Z[1]-A[1],l)return[A,z,kt].concat(p);{p=[A,z,kt].concat(p);let D=[];for(let S=0;S<p.length;S+=3){let I=j(p[S][0],p[S][1],c),E=j(p[S+1][0],p[S+1][1],c),G=j(p[S+2][0],p[S+2][1],c);D.push([I[0],I[1],E[0],E[1],G[0],G[1]])}return D}}g(Dt,"x");var $t={randOffset:g(function(a,t){return m(a,t)},"randOffset"),randOffsetWithRange:g(function(a,t,s){return K(a,t,s)},"randOffsetWithRange"),ellipse:g(function(a,t,s,e,n){let o=_t(s,e,n);return ut(a,t,n,o).opset},"ellipse"),doubleLineOps:g(function(a,t,s,e,n){return C(a,t,s,e,n,!0)},"doubleLineOps")};function At(a,t,s,e,n){return{type:"path",ops:C(a,t,s,e,n)}}g(At,"v");function B(a,t,s){let e=(a||[]).length;if(e>2){let n=[];for(let o=0;o<e-1;o++)n.push(...C(a[o][0],a[o][1],a[o+1][0],a[o+1][1],s));return t&&n.push(...C(a[e-1][0],a[e-1][1],a[0][0],a[0][1],s)),{type:"path",ops:n}}return e===2?At(a[0][0],a[0][1],a[1][0],a[1][1],s):{type:"path",ops:[]}}g(B,"S");function Rt(a,t,s,e,n){return(function(o,r){return B(o,!0,r)})([[a,t],[a+s,t],[a+s,t+e],[a,t+e]],n)}g(Rt,"O");function mt(a,t){if(a.length){let s=typeof a[0][0]=="number"?[a]:a,e=H(s[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:H(s[0],1.5*(1+.22*t.roughness),Pt(t));for(let o=1;o<s.length;o++){let r=s[o];if(r.length){let h=H(r,1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:H(r,1.5*(1+.22*t.roughness),Pt(t));for(let l of h)l.op!=="move"&&e.push(l);for(let l of i)l.op!=="move"&&n.push(l)}}return{type:"path",ops:e.concat(n)}}return{type:"path",ops:[]}}g(mt,"L");function _t(a,t,s){let e=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(a/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(s.curveStepCount,s.curveStepCount/Math.sqrt(200)*e)),o=2*Math.PI/n,r=Math.abs(a/2),h=Math.abs(t/2),i=1-s.curveFitting;return r+=m(r*i,s),h+=m(h*i,s),{increment:o,rx:r,ry:h}}g(_t,"T");function ut(a,t,s,e){let[n,o]=vt(e.increment,a,t,e.rx,e.ry,1,e.increment*K(.1,K(.4,1,s),s),s),r=U(n,null,s);if(!s.disableMultiStroke&&s.roughness!==0){let[h]=vt(e.increment,a,t,e.rx,e.ry,1.5,0,s),i=U(h,null,s);r=r.concat(i)}return{estimatedPoints:o,opset:{type:"path",ops:r}}}g(ut,"D");function wt(a,t,s,e,n,o,r,h,i){let l=a,c=t,d=Math.abs(s/2),p=Math.abs(e/2);d+=m(.01*d,i),p+=m(.01*p,i);let u=n,f=o;for(;u<0;)u+=2*Math.PI,f+=2*Math.PI;f-u>2*Math.PI&&(u=0,f=2*Math.PI);let M=2*Math.PI/i.curveStepCount,b=Math.min(M/2,(f-u)/2),y=St(b,l,c,d,p,u,f,1,i);if(!i.disableMultiStroke){let k=St(b,l,c,d,p,u,f,1.5,i);y.push(...k)}return r&&(h?y.push(...C(l,c,l+d*Math.cos(u),c+p*Math.sin(u),i),...C(l,c,l+d*Math.cos(f),c+p*Math.sin(f),i)):y.push({op:"lineTo",data:[l,c]},{op:"lineTo",data:[l+d*Math.cos(u),c+p*Math.sin(u)]})),{type:"path",ops:y}}g(wt,"A");function xt(a,t){let s=Tt(Lt(Mt(a))),e=[],n=[0,0],o=[0,0];for(let{key:r,data:h}of s)switch(r){case"M":o=[h[0],h[1]],n=[h[0],h[1]];break;case"L":e.push(...C(o[0],o[1],h[0],h[1],t)),o=[h[0],h[1]];break;case"C":{let[i,l,c,d,p,u]=h;e.push(...jt(i,l,c,d,p,u,o,t)),o=[p,u];break}case"Z":e.push(...C(o[0],o[1],n[0],n[1],t)),o=[n[0],n[1]]}return{type:"path",ops:e}}g(xt,"_");function nt(a,t){let s=[];for(let e of a)if(e.length){let n=t.maxRandomnessOffset||0,o=e.length;if(o>2){s.push({op:"move",data:[e[0][0]+m(n,t),e[0][1]+m(n,t)]});for(let r=1;r<o;r++)s.push({op:"lineTo",data:[e[r][0]+m(n,t),e[r][1]+m(n,t)]})}}return{type:"fillPath",ops:s}}g(nt,"I");function $(a,t){return(function(s,e){let n=s.fillStyle||"hachure";if(!O[n])switch(n){case"zigzag":O[n]||(O[n]=new ot(e));break;case"cross-hatch":O[n]||(O[n]=new ht(e));break;case"dots":O[n]||(O[n]=new rt(e));break;case"dashed":O[n]||(O[n]=new it(e));break;case"zigzag-line":O[n]||(O[n]=new ct(e));break;default:n="hachure",O[n]||(O[n]=new F(e))}return O[n]})(t,$t).fillPolygons(a,t)}g($,"C");function Pt(a){let t=Object.assign({},a);return t.randomizer=void 0,a.seed&&(t.seed=a.seed+1),t}g(Pt,"z");function It(a){return a.randomizer||(a.randomizer=new lt(a.seed||0)),a.randomizer.next()}g(It,"W");function K(a,t,s,e=1){return s.roughness*e*(It(s)*(t-a)+a)}g(K,"E");function m(a,t,s=1){return K(-a,a,t,s)}g(m,"G");function C(a,t,s,e,n,o=!1){let r=o?n.disableMultiStrokeFill:n.disableMultiStroke,h=pt(a,t,s,e,n,!0,!1);if(r)return h;let i=pt(a,t,s,e,n,!0,!0);return h.concat(i)}g(C,"$");function pt(a,t,s,e,n,o,r){let h=Math.pow(a-s,2)+Math.pow(t-e,2),i=Math.sqrt(h),l=1;l=i<200?1:i>500?.4:-.0016668*i+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>h&&(c=i/10);let d=c/2,p=.2+.2*It(n),u=n.bowing*n.maxRandomnessOffset*(e-t)/200,f=n.bowing*n.maxRandomnessOffset*(a-s)/200;u=m(u,n,l),f=m(f,n,l);let M=[],b=g(()=>m(d,n,l),"M"),y=g(()=>m(c,n,l),"k"),k=n.preserveVertices;return o&&(r?M.push({op:"move",data:[a+(k?0:b()),t+(k?0:b())]}):M.push({op:"move",data:[a+(k?0:m(c,n,l)),t+(k?0:m(c,n,l))]})),r?M.push({op:"bcurveTo",data:[u+a+(s-a)*p+b(),f+t+(e-t)*p+b(),u+a+2*(s-a)*p+b(),f+t+2*(e-t)*p+b(),s+(k?0:b()),e+(k?0:b())]}):M.push({op:"bcurveTo",data:[u+a+(s-a)*p+y(),f+t+(e-t)*p+y(),u+a+2*(s-a)*p+y(),f+t+2*(e-t)*p+y(),s+(k?0:y()),e+(k?0:y())]}),M}g(pt,"R");function H(a,t,s){if(!a.length)return[];let e=[];e.push([a[0][0]+m(t,s),a[0][1]+m(t,s)]),e.push([a[0][0]+m(t,s),a[0][1]+m(t,s)]);for(let n=1;n<a.length;n++)e.push([a[n][0]+m(t,s),a[n][1]+m(t,s)]),n===a.length-1&&e.push([a[n][0]+m(t,s),a[n][1]+m(t,s)]);return U(e,null,s)}g(H,"j");function U(a,t,s){let e=a.length,n=[];if(e>3){let o=[],r=1-s.curveTightness;n.push({op:"move",data:[a[1][0],a[1][1]]});for(let h=1;h+2<e;h++){let i=a[h];o[0]=[i[0],i[1]],o[1]=[i[0]+(r*a[h+1][0]-r*a[h-1][0])/6,i[1]+(r*a[h+1][1]-r*a[h-1][1])/6],o[2]=[a[h+1][0]+(r*a[h][0]-r*a[h+2][0])/6,a[h+1][1]+(r*a[h][1]-r*a[h+2][1])/6],o[3]=[a[h+1][0],a[h+1][1]],n.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(t&&t.length===2){let h=s.maxRandomnessOffset;n.push({op:"lineTo",data:[t[0]+m(h,s),t[1]+m(h,s)]})}}else e===3?(n.push({op:"move",data:[a[1][0],a[1][1]]}),n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[2][0],a[2][1]]})):e===2&&n.push(...pt(a[0][0],a[0][1],a[1][0],a[1][1],s,!0,!0));return n}g(U,"q");function vt(a,t,s,e,n,o,r,h){let i=[],l=[];if(h.roughness===0){a/=4,l.push([t+e*Math.cos(-a),s+n*Math.sin(-a)]);for(let c=0;c<=2*Math.PI;c+=a){let d=[t+e*Math.cos(c),s+n*Math.sin(c)];i.push(d),l.push(d)}l.push([t+e*Math.cos(0),s+n*Math.sin(0)]),l.push([t+e*Math.cos(a),s+n*Math.sin(a)])}else{let c=m(.5,h)-Math.PI/2;l.push([m(o,h)+t+.9*e*Math.cos(c-a),m(o,h)+s+.9*n*Math.sin(c-a)]);let d=2*Math.PI+c-.01;for(let p=c;p<d;p+=a){let u=[m(o,h)+t+e*Math.cos(p),m(o,h)+s+n*Math.sin(p)];i.push(u),l.push(u)}l.push([m(o,h)+t+e*Math.cos(c+2*Math.PI+.5*r),m(o,h)+s+n*Math.sin(c+2*Math.PI+.5*r)]),l.push([m(o,h)+t+.98*e*Math.cos(c+r),m(o,h)+s+.98*n*Math.sin(c+r)]),l.push([m(o,h)+t+.9*e*Math.cos(c+.5*r),m(o,h)+s+.9*n*Math.sin(c+.5*r)])}return[l,i]}g(vt,"F");function St(a,t,s,e,n,o,r,h,i){let l=o+m(.1,i),c=[];c.push([m(h,i)+t+.9*e*Math.cos(l-a),m(h,i)+s+.9*n*Math.sin(l-a)]);for(let d=l;d<=r;d+=a)c.push([m(h,i)+t+e*Math.cos(d),m(h,i)+s+n*Math.sin(d)]);return c.push([t+e*Math.cos(r),s+n*Math.sin(r)]),c.push([t+e*Math.cos(r),s+n*Math.sin(r)]),U(c,null,i)}g(St,"V");function jt(a,t,s,e,n,o,r,h){let i=[],l=[h.maxRandomnessOffset||1,(h.maxRandomnessOffset||1)+.3],c=[0,0],d=h.disableMultiStroke?1:2,p=h.preserveVertices;for(let u=0;u<d;u++)u===0?i.push({op:"move",data:[r[0],r[1]]}):i.push({op:"move",data:[r[0]+(p?0:m(l[0],h)),r[1]+(p?0:m(l[0],h))]}),c=p?[n,o]:[n+m(l[u],h),o+m(l[u],h)],i.push({op:"bcurveTo",data:[a+m(l[u],h),t+m(l[u],h),s+m(l[u],h),e+m(l[u],h),c[0],c[1]]});return i}g(jt,"Z");function q(a){return[...a]}g(q,"Q");function Ot(a,t=0){let s=a.length;if(s<3)throw new Error("A curve must have at least three points.");let e=[];if(s===3)e.push(q(a[0]),q(a[1]),q(a[2]),q(a[2]));else{let n=[];n.push(a[0],a[0]);for(let h=1;h<a.length;h++)n.push(a[h]),h===a.length-1&&n.push(a[h]);let o=[],r=1-t;e.push(q(n[0]));for(let h=1;h+2<n.length;h++){let i=n[h];o[0]=[i[0],i[1]],o[1]=[i[0]+(r*n[h+1][0]-r*n[h-1][0])/6,i[1]+(r*n[h+1][1]-r*n[h-1][1])/6],o[2]=[n[h+1][0]+(r*n[h][0]-r*n[h+2][0])/6,n[h+1][1]+(r*n[h][1]-r*n[h+2][1])/6],o[3]=[n[h+1][0],n[h+1][1]],e.push(o[1],o[2],o[3])}}return e}g(Ot,"H");function J(a,t){return Math.pow(a[0]-t[0],2)+Math.pow(a[1]-t[1],2)}g(J,"N");function qt(a,t,s){let e=J(t,s);if(e===0)return J(a,t);let n=((a[0]-t[0])*(s[0]-t[0])+(a[1]-t[1])*(s[1]-t[1]))/e;return n=Math.max(0,Math.min(1,n)),J(a,W(t,s,n))}g(qt,"B");function W(a,t,s){return[a[0]+(t[0]-a[0])*s,a[1]+(t[1]-a[1])*s]}g(W,"J");function ft(a,t,s,e){let n=e||[];if((function(h,i){let l=h[i+0],c=h[i+1],d=h[i+2],p=h[i+3],u=3*c[0]-2*l[0]-p[0];u*=u;let f=3*c[1]-2*l[1]-p[1];f*=f;let M=3*d[0]-2*p[0]-l[0];M*=M;let b=3*d[1]-2*p[1]-l[1];return b*=b,u<M&&(u=M),f<b&&(f=b),u+f})(a,t)<s){let h=a[t+0];n.length?(o=n[n.length-1],r=h,Math.sqrt(J(o,r))>1&&n.push(h)):n.push(h),n.push(a[t+3])}else{let i=a[t+0],l=a[t+1],c=a[t+2],d=a[t+3],p=W(i,l,.5),u=W(l,c,.5),f=W(c,d,.5),M=W(p,u,.5),b=W(u,f,.5),y=W(M,b,.5);ft([i,p,M,y],0,s,n),ft([y,b,f,d],0,s,n)}var o,r;return n}g(ft,"K");function Ft(a,t){return X(a,0,a.length,t)}g(Ft,"U");function X(a,t,s,e,n){let o=n||[],r=a[t],h=a[s-1],i=0,l=1;for(let c=t+1;c<s-1;++c){let d=qt(a[c],r,h);d>i&&(i=d,l=c)}return Math.sqrt(i)>e?(X(a,t,l+1,e,o),X(a,l,s,e,o)):(o.length||o.push(r),o.push(h)),o}g(X,"X");function at(a,t=.15,s){let e=[],n=(a.length-1)/3;for(let o=0;o<n;o++)ft(a,3*o,t,e);return s&&s>0?X(e,0,e.length,s):e}g(at,"Y");var L="none",R=class{static{g(this,"et")}constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,s,e){return{shape:t,sets:s||[],options:e||this.defaultOptions}}line(t,s,e,n,o){let r=this._o(o);return this._d("line",[At(t,s,e,n,r)],r)}rectangle(t,s,e,n,o){let r=this._o(o),h=[],i=Rt(t,s,e,n,r);if(r.fill){let l=[[t,s],[t+e,s],[t+e,s+n],[t,s+n]];r.fillStyle==="solid"?h.push(nt([l],r)):h.push($([l],r))}return r.stroke!==L&&h.push(i),this._d("rectangle",h,r)}ellipse(t,s,e,n,o){let r=this._o(o),h=[],i=_t(e,n,r),l=ut(t,s,r,i);if(r.fill)if(r.fillStyle==="solid"){let c=ut(t,s,r,i).opset;c.type="fillPath",h.push(c)}else h.push($([l.estimatedPoints],r));return r.stroke!==L&&h.push(l.opset),this._d("ellipse",h,r)}circle(t,s,e,n){let o=this.ellipse(t,s,e,e,n);return o.shape="circle",o}linearPath(t,s){let e=this._o(s);return this._d("linearPath",[B(t,!1,e)],e)}arc(t,s,e,n,o,r,h=!1,i){let l=this._o(i),c=[],d=wt(t,s,e,n,o,r,h,!0,l);if(h&&l.fill)if(l.fillStyle==="solid"){let p=Object.assign({},l);p.disableMultiStroke=!0;let u=wt(t,s,e,n,o,r,!0,!1,p);u.type="fillPath",c.push(u)}else c.push((function(p,u,f,M,b,y,k){let w=p,v=u,P=Math.abs(f/2),x=Math.abs(M/2);P+=m(.01*P,k),x+=m(.01*x,k);let T=b,_=y;for(;T<0;)T+=2*Math.PI,_+=2*Math.PI;_-T>2*Math.PI&&(T=0,_=2*Math.PI);let Z=(_-T)/k.curveStepCount,A=[];for(let z=T;z<=_;z+=Z)A.push([w+P*Math.cos(z),v+x*Math.sin(z)]);return A.push([w+P*Math.cos(_),v+x*Math.sin(_)]),A.push([w,v]),$([A],k)})(t,s,e,n,o,r,l));return l.stroke!==L&&c.push(d),this._d("arc",c,l)}curve(t,s){let e=this._o(s),n=[],o=mt(t,e);if(e.fill&&e.fill!==L)if(e.fillStyle==="solid"){let r=mt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(r.ops)})}else{let r=[],h=t;if(h.length){let i=typeof h[0][0]=="number"?[h]:h;for(let l of i)l.length<3?r.push(...l):l.length===3?r.push(...at(Ot([l[0],l[0],l[1],l[2]]),10,(1+e.roughness)/2)):r.push(...at(Ot(l),10,(1+e.roughness)/2))}r.length&&n.push($([r],e))}return e.stroke!==L&&n.push(o),this._d("curve",n,e)}polygon(t,s){let e=this._o(s),n=[],o=B(t,!0,e);return e.fill&&(e.fillStyle==="solid"?n.push(nt([t],e)):n.push($([t],e))),e.stroke!==L&&n.push(o),this._d("polygon",n,e)}path(t,s){let e=this._o(s),n=[];if(!t)return this._d("path",n,e);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=e.fill&&e.fill!=="transparent"&&e.fill!==L,r=e.stroke!==L,h=!!(e.simplification&&e.simplification<1),i=(function(c,d,p){let u=Tt(Lt(Mt(c))),f=[],M=[],b=[0,0],y=[],k=g(()=>{y.length>=4&&M.push(...at(y,d)),y=[]},"i"),w=g(()=>{k(),M.length&&(f.push(M),M=[])},"c");for(let{key:P,data:x}of u)switch(P){case"M":w(),b=[x[0],x[1]],M.push(b);break;case"L":k(),M.push([x[0],x[1]]);break;case"C":if(!y.length){let T=M.length?M[M.length-1]:b;y.push([T[0],T[1]])}y.push([x[0],x[1]]),y.push([x[2],x[3]]),y.push([x[4],x[5]]);break;case"Z":k(),M.push([b[0],b[1]])}if(w(),!p)return f;let v=[];for(let P of f){let x=Ft(P,p);x.length&&v.push(x)}return v})(t,1,h?4-4*(e.simplification||1):(1+e.roughness)/2),l=xt(t,e);if(o)if(e.fillStyle==="solid")if(i.length===1){let c=xt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else n.push(nt(i,e));else n.push($(i,e));return r&&(h?i.forEach((c=>{n.push(B(c,!1,e))})):n.push(l)),this._d("path",n,e)}opsToPath(t,s){let e="";for(let n of t.ops){let o=typeof s=="number"&&s>=0?n.data.map((r=>+r.toFixed(s))):n.data;switch(n.op){case"move":e+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":e+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":e+=`L${o[0]} ${o[1]} `}}return e.trim()}toPaths(t){let s=t.sets||[],e=t.options||this.defaultOptions,n=[];for(let o of s){let r=null;switch(o.type){case"path":r={d:this.opsToPath(o),stroke:e.stroke,strokeWidth:e.strokeWidth,fill:L};break;case"fillPath":r={d:this.opsToPath(o),stroke:L,strokeWidth:0,fill:e.fill||L};break;case"fillSketch":r=this.fillSketch(o,e)}r&&n.push(r)}return n}fillSketch(t,s){let e=s.fillWeight;return e<0&&(e=s.strokeWidth/2),{d:this.opsToPath(t),stroke:s.fill||L,strokeWidth:e,fill:L}}_mergedShape(t){return t.filter(((s,e)=>e===0||s.op!=="move"))}},dt=class{static{g(this,"st")}constructor(t,s){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new R(s)}draw(t){let s=t.sets||[],e=t.options||this.getDefaultOptions(),n=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(let r of s)switch(r.type){case"path":n.save(),n.strokeStyle=e.stroke==="none"?"transparent":e.stroke,n.lineWidth=e.strokeWidth,e.strokeLineDash&&n.setLineDash(e.strokeLineDash),e.strokeLineDashOffset&&(n.lineDashOffset=e.strokeLineDashOffset),this._drawToContext(n,r,o),n.restore();break;case"fillPath":{n.save(),n.fillStyle=e.fill||"";let h=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,r,o,h),n.restore();break}case"fillSketch":this.fillSketch(n,r,e)}}fillSketch(t,s,e){let n=e.fillWeight;n<0&&(n=e.strokeWidth/2),t.save(),e.fillLineDash&&t.setLineDash(e.fillLineDash),e.fillLineDashOffset&&(t.lineDashOffset=e.fillLineDashOffset),t.strokeStyle=e.fill||"",t.lineWidth=n,this._drawToContext(t,s,e.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,s,e,n="nonzero"){t.beginPath();for(let o of s.ops){let r=typeof e=="number"&&e>=0?o.data.map((h=>+h.toFixed(e))):o.data;switch(o.op){case"move":t.moveTo(r[0],r[1]);break;case"bcurveTo":t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case"lineTo":t.lineTo(r[0],r[1])}}s.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,s,e,n,o){let r=this.gen.line(t,s,e,n,o);return this.draw(r),r}rectangle(t,s,e,n,o){let r=this.gen.rectangle(t,s,e,n,o);return this.draw(r),r}ellipse(t,s,e,n,o){let r=this.gen.ellipse(t,s,e,n,o);return this.draw(r),r}circle(t,s,e,n){let o=this.gen.circle(t,s,e,n);return this.draw(o),o}linearPath(t,s){let e=this.gen.linearPath(t,s);return this.draw(e),e}polygon(t,s){let e=this.gen.polygon(t,s);return this.draw(e),e}arc(t,s,e,n,o,r,h=!1,i){let l=this.gen.arc(t,s,e,n,o,r,h,i);return this.draw(l),l}curve(t,s){let e=this.gen.curve(t,s);return this.draw(e),e}path(t,s){let e=this.gen.path(t,s);return this.draw(e),e}},N="http://www.w3.org/2000/svg",gt=class{static{g(this,"ot")}constructor(t,s){this.svg=t,this.gen=new R(s)}draw(t){let s=t.sets||[],e=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,o=n.createElementNS(N,"g"),r=t.options.fixedDecimalPlaceDigits;for(let h of s){let i=null;switch(h.type){case"path":i=n.createElementNS(N,"path"),i.setAttribute("d",this.opsToPath(h,r)),i.setAttribute("stroke",e.stroke),i.setAttribute("stroke-width",e.strokeWidth+""),i.setAttribute("fill","none"),e.strokeLineDash&&i.setAttribute("stroke-dasharray",e.strokeLineDash.join(" ").trim()),e.strokeLineDashOffset&&i.setAttribute("stroke-dashoffset",`${e.strokeLineDashOffset}`);break;case"fillPath":i=n.createElementNS(N,"path"),i.setAttribute("d",this.opsToPath(h,r)),i.setAttribute("stroke","none"),i.setAttribute("stroke-width","0"),i.setAttribute("fill",e.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||i.setAttribute("fill-rule","evenodd");break;case"fillSketch":i=this.fillSketch(n,h,e)}i&&o.appendChild(i)}return o}fillSketch(t,s,e){let n=e.fillWeight;n<0&&(n=e.strokeWidth/2);let o=t.createElementNS(N,"path");return o.setAttribute("d",this.opsToPath(s,e.fixedDecimalPlaceDigits)),o.setAttribute("stroke",e.fill||""),o.setAttribute("stroke-width",n+""),o.setAttribute("fill","none"),e.fillLineDash&&o.setAttribute("stroke-dasharray",e.fillLineDash.join(" ").trim()),e.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${e.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,s){return this.gen.opsToPath(t,s)}line(t,s,e,n,o){let r=this.gen.line(t,s,e,n,o);return this.draw(r)}rectangle(t,s,e,n,o){let r=this.gen.rectangle(t,s,e,n,o);return this.draw(r)}ellipse(t,s,e,n,o){let r=this.gen.ellipse(t,s,e,n,o);return this.draw(r)}circle(t,s,e,n){let o=this.gen.circle(t,s,e,n);return this.draw(o)}linearPath(t,s){let e=this.gen.linearPath(t,s);return this.draw(e)}polygon(t,s){let e=this.gen.polygon(t,s);return this.draw(e)}arc(t,s,e,n,o,r,h=!1,i){let l=this.gen.arc(t,s,e,n,o,r,h,i);return this.draw(l)}curve(t,s){let e=this.gen.curve(t,s);return this.draw(e)}path(t,s){let e=this.gen.path(t,s);return this.draw(e)}},Vt={canvas:g((a,t)=>new dt(a,t),"canvas"),svg:g((a,t)=>new gt(a,t),"svg"),generator:g(a=>new R(a),"generator"),newSeed:g(()=>R.newSeed(),"newSeed")};export{Vt as a};