jekyll-obsidian-site 0.2.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 (191) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +133 -0
  4. data/website/_config.yml +21 -0
  5. data/website/_includes/website/archive-timeline.html +8 -0
  6. data/website/_includes/website/blog-ledger.html +19 -0
  7. data/website/_includes/website/blog-navigation.html +7 -0
  8. data/website/_includes/website/comments.html +22 -0
  9. data/website/_includes/website/contact-icon.html +14 -0
  10. data/website/_includes/website/context-tags.html +7 -0
  11. data/website/_includes/website/context.html +3 -0
  12. data/website/_includes/website/dialogs.html +71 -0
  13. data/website/_includes/website/docs-navigation.html +7 -0
  14. data/website/_includes/website/docs-tree.html +8 -0
  15. data/website/_includes/website/footer.html +14 -0
  16. data/website/_includes/website/github-icon.html +3 -0
  17. data/website/_includes/website/head.html +41 -0
  18. data/website/_includes/website/header.html +35 -0
  19. data/website/_includes/website/language-switcher.html +16 -0
  20. data/website/_includes/website/local-graph.html +25 -0
  21. data/website/_includes/website/note-header.html +35 -0
  22. data/website/_includes/website/outline.html +9 -0
  23. data/website/_includes/website/page-actions.html +34 -0
  24. data/website/_includes/website/portfolio-grid.html +36 -0
  25. data/website/_includes/website/portfolio-topics.html +4 -0
  26. data/website/_includes/website/post-cards.html +16 -0
  27. data/website/_includes/website/related-articles.html +7 -0
  28. data/website/_includes/website/relations.html +16 -0
  29. data/website/_includes/website/source-actions.html +28 -0
  30. data/website/_includes/website/system-page.html +31 -0
  31. data/website/_includes/website/tab-collection.html +28 -0
  32. data/website/_includes/website/tag-filter.html +12 -0
  33. data/website/_layouts/website-docs.html +20 -0
  34. data/website/_layouts/website-minimal.html +93 -0
  35. data/website/_layouts/website-redirect.html +17 -0
  36. data/website/assets/chunks/abnfDiagram-N423BO3Z-TSORAEI2.js +1 -0
  37. data/website/assets/chunks/architecture-TIHT7OUA-OUC5PEC7.js +1 -0
  38. data/website/assets/chunks/architectureDiagram-T3A2C74G-6P5MB2DJ.js +36 -0
  39. data/website/assets/chunks/blockDiagram-VBNYF7ZC-ZWINYROZ.js +132 -0
  40. data/website/assets/chunks/c4Diagram-5PPSVZJV-R5RMEAOT.js +10 -0
  41. data/website/assets/chunks/chunk-22DRK7VS.js +1 -0
  42. data/website/assets/chunks/chunk-25REBZ7M.js +2 -0
  43. data/website/assets/chunks/chunk-2RQCUDTG.js +1 -0
  44. data/website/assets/chunks/chunk-34FHPXU4.js +1 -0
  45. data/website/assets/chunks/chunk-57XXJOQN.js +10 -0
  46. data/website/assets/chunks/chunk-6DCNDVBX.js +2 -0
  47. data/website/assets/chunks/chunk-6DHFEWGX.js +1 -0
  48. data/website/assets/chunks/chunk-6VQ47JJS.js +2 -0
  49. data/website/assets/chunks/chunk-7CSIRG7W.js +127 -0
  50. data/website/assets/chunks/chunk-A43YELH5.js +1 -0
  51. data/website/assets/chunks/chunk-AIX6IH4O.js +1 -0
  52. data/website/assets/chunks/chunk-B3K7RH5O.js +88 -0
  53. data/website/assets/chunks/chunk-CBGUD2NP.js +1 -0
  54. data/website/assets/chunks/chunk-D3WOCELE.js +1 -0
  55. data/website/assets/chunks/chunk-D6FURU6X.js +1 -0
  56. data/website/assets/chunks/chunk-DGEGT77F.js +1 -0
  57. data/website/assets/chunks/chunk-DN52R6U7.js +1 -0
  58. data/website/assets/chunks/chunk-E3T3IFAC.js +1 -0
  59. data/website/assets/chunks/chunk-EIBFAW37.js +1 -0
  60. data/website/assets/chunks/chunk-ERWOH47R.js +1 -0
  61. data/website/assets/chunks/chunk-ETOVTYWF.js +1 -0
  62. data/website/assets/chunks/chunk-GHD3PFWA.js +231 -0
  63. data/website/assets/chunks/chunk-GMBKQ7NZ.js +1 -0
  64. data/website/assets/chunks/chunk-GQM25EPP.js +156 -0
  65. data/website/assets/chunks/chunk-GSOU4UTT.js +1 -0
  66. data/website/assets/chunks/chunk-HEMELP7J.js +1 -0
  67. data/website/assets/chunks/chunk-HZ5I5NJO.js +1 -0
  68. data/website/assets/chunks/chunk-IP56FOSI.js +70 -0
  69. data/website/assets/chunks/chunk-L7BMR7WL.js +1 -0
  70. data/website/assets/chunks/chunk-LGUG3SQB.js +1 -0
  71. data/website/assets/chunks/chunk-LOMHZYS2.js +1 -0
  72. data/website/assets/chunks/chunk-MII4VZEB.js +3 -0
  73. data/website/assets/chunks/chunk-MYMJLHQL.js +62 -0
  74. data/website/assets/chunks/chunk-NBH7YOBD.js +15 -0
  75. data/website/assets/chunks/chunk-NCOVM3YF.js +1 -0
  76. data/website/assets/chunks/chunk-OAGTSILX.js +1 -0
  77. data/website/assets/chunks/chunk-OCX5OCIU.js +321 -0
  78. data/website/assets/chunks/chunk-OE3NOVIH.js +1 -0
  79. data/website/assets/chunks/chunk-PLP5XUTJ.js +1 -0
  80. data/website/assets/chunks/chunk-PNOERP6G.js +1 -0
  81. data/website/assets/chunks/chunk-QBPQ7DPE.js +1 -0
  82. data/website/assets/chunks/chunk-RWFFDL53.js +1 -0
  83. data/website/assets/chunks/chunk-SEGIW3MP.js +1 -0
  84. data/website/assets/chunks/chunk-SZDMZNUS.js +1 -0
  85. data/website/assets/chunks/chunk-T2QBAPVT.js +1 -0
  86. data/website/assets/chunks/chunk-UE533OZ7.js +1 -0
  87. data/website/assets/chunks/chunk-UTWOJE2A.js +1 -0
  88. data/website/assets/chunks/chunk-VOCDYA3H.js +1 -0
  89. data/website/assets/chunks/chunk-VYZZPKGK.js +161 -0
  90. data/website/assets/chunks/chunk-WWLZIRS6.js +1 -0
  91. data/website/assets/chunks/chunk-XNXYDBKX.js +32 -0
  92. data/website/assets/chunks/chunk-XQUIO562.js +1 -0
  93. data/website/assets/chunks/chunk-Y2XVFW7T.js +2 -0
  94. data/website/assets/chunks/chunk-YORIST7Z.js +1 -0
  95. data/website/assets/chunks/chunk-Z2WBQPVY.js +206 -0
  96. data/website/assets/chunks/classDiagram-JCYQIIEL-OFDVDDIM.js +1 -0
  97. data/website/assets/chunks/classDiagram-v2-OCEON4UE-E36B6BGQ.js +1 -0
  98. data/website/assets/chunks/cose-bilkent-JH36ORCC-CBAW64AB.js +1 -0
  99. data/website/assets/chunks/cynefin-VYW2F7L2-CBO6DLNV.js +1 -0
  100. data/website/assets/chunks/cynefinDiagram-MW4NZA55-DFINLOUY.js +62 -0
  101. data/website/assets/chunks/dagre-VZM6K2ZE-BZFBSZAH.js +4 -0
  102. data/website/assets/chunks/diagram-7IWD3JNH-XQHTVOU2.js +30 -0
  103. data/website/assets/chunks/diagram-B4RE2ZJO-FTSXBZJR.js +3 -0
  104. data/website/assets/chunks/diagram-LBJQPF4R-ZSZW4OLH.js +24 -0
  105. data/website/assets/chunks/diagram-Q27KOJAE-2IV5TVCJ.js +24 -0
  106. data/website/assets/chunks/diagram-UB23O5K3-D6PDUTFL.js +41 -0
  107. data/website/assets/chunks/ebnfDiagram-BXEA7PRR-C6MAER3M.js +1 -0
  108. data/website/assets/chunks/erDiagram-JOGREHBK-EDAD2H5M.js +85 -0
  109. data/website/assets/chunks/eventmodeling-45OFAUF4-4K577DMF.js +1 -0
  110. data/website/assets/chunks/flowDiagram-UKHOOZJN-545F4YX3.js +1 -0
  111. data/website/assets/chunks/ganttDiagram-PKOTCBZU-7A7EKMY3.js +292 -0
  112. data/website/assets/chunks/gitGraph-TEB2WS4Q-3WUB7WYQ.js +1 -0
  113. data/website/assets/chunks/gitGraphDiagram-DS77QQ5N-A5UWV5FF.js +106 -0
  114. data/website/assets/chunks/info-DKCQHKI2-EOOHI7XS.js +1 -0
  115. data/website/assets/chunks/infoDiagram-6WML65LV-CWIOOWJP.js +2 -0
  116. data/website/assets/chunks/ishikawaDiagram-WSZJBQD7-CEASQVDL.js +70 -0
  117. data/website/assets/chunks/journeyDiagram-NVQOT4AX-LYG3S2AW.js +139 -0
  118. data/website/assets/chunks/kanban-definition-27J2QSJJ-HCC6KAYI.js +89 -0
  119. data/website/assets/chunks/katex-F4MQ6FB3.js +257 -0
  120. data/website/assets/chunks/mindmap-definition-FAOFIHXS-JMGSM3RE.js +96 -0
  121. data/website/assets/chunks/packet-7NZHBO7P-W3SJA3MY.js +1 -0
  122. data/website/assets/chunks/pegDiagram-VL7TDLO6-4JO3Y3Z3.js +1 -0
  123. data/website/assets/chunks/pie-RZYD4A2V-YOIQBTY7.js +1 -0
  124. data/website/assets/chunks/pieDiagram-7S7Q4E2Y-VFQ7SE46.js +39 -0
  125. data/website/assets/chunks/quadrantDiagram-CIZ2JOQS-JISDI2S6.js +7 -0
  126. data/website/assets/chunks/radar-I7S5WNFK-NMKP5AZO.js +1 -0
  127. data/website/assets/chunks/railroad-3IZDKUUU-7MOIV7CI.js +1 -0
  128. data/website/assets/chunks/railroad-abnf-AHOZXSZD-HXNH5SLO.js +1 -0
  129. data/website/assets/chunks/railroad-ebnf-EBAXGLYW-OWDJEWMK.js +1 -0
  130. data/website/assets/chunks/railroad-peg-LSFZ7HO6-ASSINGP5.js +1 -0
  131. data/website/assets/chunks/railroadDiagram-AXF67PYL-AFV5VP5F.js +1 -0
  132. data/website/assets/chunks/requirementDiagram-LRYGKXZP-RNRPEHHN.js +84 -0
  133. data/website/assets/chunks/sankeyDiagram-W5VNT64P-O54R2L3E.js +40 -0
  134. data/website/assets/chunks/sequenceDiagram-SI44F4Z6-42WISKJ7.js +162 -0
  135. data/website/assets/chunks/sizeCapture-X5ZJPWSS-LRN2Q37T.js +1 -0
  136. data/website/assets/chunks/stateDiagram-OKZ733FA-BWIBJXIR.js +1 -0
  137. data/website/assets/chunks/stateDiagram-v2-UEYNNEHI-L73LHL3L.js +1 -0
  138. data/website/assets/chunks/swimlanes-SLNWSIFB-ECOAE7LQ.js +1 -0
  139. data/website/assets/chunks/swimlanesDiagram-ULZ7WXOC-3CKKKFZZ.js +8 -0
  140. data/website/assets/chunks/timeline-definition-Z64GVDOM-HR2OL5G7.js +120 -0
  141. data/website/assets/chunks/treeView-QDETBFTQ-C6D5WFJA.js +1 -0
  142. data/website/assets/chunks/treemap-6X3UGDF4-JFCDMSCA.js +1 -0
  143. data/website/assets/chunks/vennDiagram-T6HMQDX7-62WAAPTF.js +34 -0
  144. data/website/assets/chunks/wardley-OPB4EBWU-RQIOII7I.js +1 -0
  145. data/website/assets/chunks/wardleyDiagram-T6FBY63Y-KUXO3NHV.js +78 -0
  146. data/website/assets/chunks/xychartDiagram-ELKLHX3M-I54W4HJ7.js +7 -0
  147. data/website/assets/color-scheme-bootstrap-4H4ZR4BW.js +1 -0
  148. data/website/assets/docs-3WBBQT6K.css +1 -0
  149. data/website/assets/docs-W3D5DWQF.js +1 -0
  150. data/website/assets/docs-navigation-75ALFYBA.js +1 -0
  151. data/website/assets/graph-QWL54LWD.js +1 -0
  152. data/website/assets/manifest.json +314 -0
  153. data/website/assets/math-7JTH4OWZ.js +21 -0
  154. data/website/assets/mermaid-RXC6URG4.js +10 -0
  155. data/website/assets/minimal-3NPTDWQX.js +1 -0
  156. data/website/assets/minimal-E2VATXXS.css +1 -0
  157. data/website/assets/previews-FMHOX7UX.js +1 -0
  158. data/website/assets/search-BH73JZDU.js +1 -0
  159. data/website/assets/search-worker-SM4IM4J7.js +1 -0
  160. data/website/exe/jekyll-obsidian +5 -0
  161. data/website/lib/jekyll_obsidian/adapter.rb +733 -0
  162. data/website/lib/jekyll_obsidian/built_in_themes.rb +855 -0
  163. data/website/lib/jekyll_obsidian/cli.rb +84 -0
  164. data/website/lib/jekyll_obsidian/content_policy.rb +194 -0
  165. data/website/lib/jekyll_obsidian/destination_registry.rb +39 -0
  166. data/website/lib/jekyll_obsidian/directory_indexes.rb +30 -0
  167. data/website/lib/jekyll_obsidian/external_media.rb +371 -0
  168. data/website/lib/jekyll_obsidian/front_matter.rb +453 -0
  169. data/website/lib/jekyll_obsidian/github_markdown.rb +664 -0
  170. data/website/lib/jekyll_obsidian/html_publication.rb +206 -0
  171. data/website/lib/jekyll_obsidian/initializer.rb +68 -0
  172. data/website/lib/jekyll_obsidian/localized_compiler.rb +1044 -0
  173. data/website/lib/jekyll_obsidian/media_policy.rb +41 -0
  174. data/website/lib/jekyll_obsidian/ofm_scanner.rb +493 -0
  175. data/website/lib/jekyll_obsidian/output_text.rb +13 -0
  176. data/website/lib/jekyll_obsidian/preview.rb +93 -0
  177. data/website/lib/jekyll_obsidian/published_markdown.rb +32 -0
  178. data/website/lib/jekyll_obsidian/raw_html_manifest.rb +66 -0
  179. data/website/lib/jekyll_obsidian/runtime.rb +197 -0
  180. data/website/lib/jekyll_obsidian/site_compilation.rb +147 -0
  181. data/website/lib/jekyll_obsidian/site_navigation.rb +517 -0
  182. data/website/lib/jekyll_obsidian/url_builder.rb +163 -0
  183. data/website/lib/jekyll_obsidian/value_objects.rb +198 -0
  184. data/website/lib/jekyll_obsidian/vault_compiler.rb +2771 -0
  185. data/website/lib/jekyll_obsidian/version.rb +6 -0
  186. data/website/lib/jekyll_obsidian/workspace_layout.rb +104 -0
  187. data/website/lib/jekyll_obsidian.rb +22 -0
  188. data/website/scripts/audit-site.rb +120 -0
  189. data/website/scripts/templates/pages.yml +55 -0
  190. data/website/scripts/verify-site-urls.rb +585 -0
  191. metadata +319 -0
@@ -0,0 +1 @@
1
+ import{a as t,b as s,c as u,d as i,e as n,g as o,h as l,w as d,y as h}from"./chunk-VYZZPKGK.js";var m=class extends h{static{t(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},A=class extends d{static{t(this,"ArchitectureValueConverter")}runCustomConverter(c,r,a){if(c.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(c.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(c.name==="ARCH_TITLE"){let e=r.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},C={parser:{TokenBuilder:t(()=>new m,"TokenBuilder"),ValueConverter:t(()=>new A,"ValueConverter")}};function v(c=n){let r=i(u(c),o),a=i(s({shared:r}),l,C);return r.ServiceRegistry.register(a),{shared:r,Architecture:a}}t(v,"createArchitectureServices");export{C as a,v as b};
@@ -0,0 +1 @@
1
+ import{a as e,b as i,c as a,d as n,e as o,g as u,i as d,x as l,y as s}from"./chunk-VYZZPKGK.js";var C=class extends s{static{e(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},f={parser:{TokenBuilder:e(()=>new C,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function m(c=o){let r=n(a(c),u),t=n(i({shared:r}),d,f);return r.ServiceRegistry.register(t),{shared:r,Cynefin:t}}e(m,"createCynefinServices");export{f as a,m as b};
@@ -0,0 +1,88 @@
1
+ import{a as P}from"./chunk-VOCDYA3H.js";import{H as W,O as _,T as B,_ as Y,i as E,u as z}from"./chunk-7CSIRG7W.js";import{b as T}from"./chunk-ERWOH47R.js";import{a as h}from"./chunk-EIBFAW37.js";var b="",N="",A="",M=[],R=new Map,k=h(e=>W(e,Y()),"sanitizeText"),F=h(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=h(()=>{b="",N="",A="",M.length=0,R.clear(),B(),T.debug("[Railroad] Database cleared")},"clear"),I=h(e=>{b=k(e),T.debug("[Railroad] Title set:",e)},"setTitle"),X=h(()=>b,"getTitle"),j=h(e=>{let i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};T.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&T.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),M.push(i),R.set(i.name,i)},"addRule"),K=h(()=>M,"getRules"),J=h(e=>R.get(e),"getRule"),Q=h(e=>{N=k(e).replace(/^\s+/g,""),T.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=h(()=>N,"getAccTitle"),V=h(e=>{A=k(e).replace(/\n\s+/g,`
2
+ `),T.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=h(()=>A,"getAccDescription"),te=I,re=X,ie={clear:U,setTitle:I,getTitle:X,addRule:j,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},g={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ne=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ae=/^[\w "',.-]+$/,oe=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),H=h(e=>e?Object.keys(e).every(i=>i==="railroad"||oe.has(i)):!1,"isRailroadStyleOptions"),le=h(e=>e?"railroad"in e&&e.railroad?e.railroad:H(e)?e:{}:{},"extractRailroadOverrides"),se=h(e=>{if(!e||H(e))return{};let{railroad:i,svgId:a,theme:r,look:t,...n}=e;return n},"extractThemeOverrides"),m=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ne.test(a)?a:i},"sanitizeColorValue"),q=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ae.test(a)?a:i},"sanitizeFontFamilyValue"),S=h((e,i)=>{let a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),de=h(e=>{let i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ce=h(e=>{let i=q(e.fontFamily,g.fontFamily),a=de(e.fontSize)??g.fontSize;return{...g,fontFamily:i,fontSize:a,terminalFill:m(e.secondBkg??e.secondaryColor,g.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,g.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,g.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,g.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,g.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,g.nonTerminalTextColor),lineColor:m(e.lineColor,g.lineColor),markerFill:m(e.lineColor,g.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,g.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,g.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,g.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,g.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,g.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,g.ruleNameColor)}},"buildThemeDefaults"),O=h(e=>{let i=z(),a={...E(),...i.themeVariables??{},...se(e)},r=ce(a),t={...i.railroad??{},...le(e)};return{compactMode:t.compactMode??r.compactMode,padding:S(t.padding,r.padding),verticalSeparation:S(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,r.horizontalSeparation),arcRadius:S(t.arcRadius,r.arcRadius),fontSize:S(t.fontSize,r.fontSize),fontFamily:q(t.fontFamily,r.fontFamily),terminalFill:m(t.terminalFill,r.terminalFill),terminalStroke:m(t.terminalStroke,r.terminalStroke),terminalTextColor:m(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:m(t.lineColor,r.lineColor),strokeWidth:S(t.strokeWidth,r.strokeWidth),markerFill:m(t.markerFill,r.markerFill),commentFill:m(t.commentFill,r.commentFill),commentStroke:m(t.commentStroke,r.commentStroke),commentTextColor:m(t.commentTextColor,r.commentTextColor),specialFill:m(t.specialFill,r.specialFill),specialStroke:m(t.specialStroke,r.specialStroke),ruleNameColor:m(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:S(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),Te=h(e=>{let{fontFamily:i,fontSize:a,terminalFill:r,terminalStroke:t,terminalTextColor:n,nonTerminalFill:p,nonTerminalStroke:s,nonTerminalTextColor:o,lineColor:u,strokeWidth:c,markerFill:d,commentFill:w,commentStroke:l,commentTextColor:f,specialFill:y,specialStroke:v,ruleNameColor:C}=O(e);return`
3
+ .railroad-diagram {
4
+ font-family: ${i};
5
+ font-size: ${a}px;
6
+ }
7
+
8
+ .railroad-terminal rect {
9
+ fill: ${r};
10
+ stroke: ${t};
11
+ stroke-width: ${c}px;
12
+ }
13
+
14
+ .railroad-terminal text {
15
+ fill: ${n};
16
+ font-family: ${i};
17
+ font-size: ${a}px;
18
+ text-anchor: middle;
19
+ dominant-baseline: middle;
20
+ }
21
+
22
+ .railroad-nonterminal rect {
23
+ fill: ${p};
24
+ stroke: ${s};
25
+ stroke-width: ${c}px;
26
+ }
27
+
28
+ .railroad-nonterminal text {
29
+ fill: ${o};
30
+ font-family: ${i};
31
+ font-size: ${a}px;
32
+ text-anchor: middle;
33
+ dominant-baseline: middle;
34
+ }
35
+
36
+ .railroad-line {
37
+ stroke: ${u};
38
+ stroke-width: ${c}px;
39
+ fill: none;
40
+ }
41
+
42
+ .railroad-start circle,
43
+ .railroad-end circle {
44
+ fill: ${d};
45
+ }
46
+
47
+ .railroad-comment ellipse {
48
+ fill: ${w};
49
+ stroke: ${l};
50
+ stroke-width: ${c}px;
51
+ }
52
+
53
+ .railroad-comment text {
54
+ fill: ${f};
55
+ font-style: italic;
56
+ font-family: ${i};
57
+ font-size: ${a}px;
58
+ text-anchor: middle;
59
+ dominant-baseline: middle;
60
+ }
61
+
62
+ .railroad-special rect {
63
+ fill: ${y};
64
+ stroke: ${v};
65
+ stroke-width: ${c}px;
66
+ stroke-dasharray: 5,3;
67
+ }
68
+
69
+ .railroad-special text {
70
+ fill: ${o};
71
+ font-family: ${i};
72
+ font-size: ${a}px;
73
+ text-anchor: middle;
74
+ dominant-baseline: middle;
75
+ }
76
+
77
+ .railroad-rule-name {
78
+ font-weight: bold;
79
+ fill: ${C};
80
+ font-family: ${i};
81
+ font-size: ${a}px;
82
+ }
83
+
84
+ .railroad-group {
85
+ /* Grouping container, no specific styles */
86
+ }
87
+ `},"getStyles"),x=class{constructor(){this.d=""}static{h(this,"PathBuilder")}moveTo(e,i){return this.d+=`M ${e} ${i} `,this}lineTo(e,i){return this.d+=`L ${e} ${i} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,i,a,r,t,n,p){return this.d+=`A ${e} ${i} ${a} ${r?1:0} ${t?1:0} ${n} ${p} `,this}build(){return this.d.trim()}},me=class{constructor(e,i=O()){this.textCache=new Map,this.svg=e,this.config=i}static{h(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let i=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),a=i.node().getBBox(),r={width:a.width,height:a.height};return i.remove(),this.textCache.set(e,r),r}renderTerminal(e,i){let a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t).attr("rx",10).attr("ry",10),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderNonTerminal(e,i){let a=this.measureText(i),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text(i),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderSequence(e,i){let a=i.map(o=>this.renderExpression(e,o)),r=0,t=0,n=0;for(let o of a)r+=o.dimensions.width,t=Math.max(t,o.dimensions.up),n=Math.max(n,o.dimensions.down);r+=(a.length-1)*this.config.horizontalSeparation;let p=e.append("g").attr("class","railroad-sequence"),s=0;for(let o=0;o<a.length;o++){let u=a[o],c=t-u.dimensions.up;if(p.node().appendChild(u.element).setAttribute("transform",`translate(${s}, ${c})`),o<a.length-1){let w=s+u.dimensions.width,l=w+this.config.horizontalSeparation,f=t;p.append("path").attr("class","railroad-line").attr("d",new x().moveTo(w,f).lineTo(l,f).build())}s+=u.dimensions.width+this.config.horizontalSeparation}return{element:p.node(),dimensions:{width:r,height:t+n,up:t,down:n}}}renderChoice(e,i){let a=i.map(d=>this.renderExpression(e,d)),r=0,t=0;for(let d of a)r=Math.max(r,d.dimensions.width),t+=d.dimensions.height;t+=(a.length-1)*this.config.verticalSeparation;let n=this.config.arcRadius,p=n*4,s=r+p,o=e.append("g").attr("class","railroad-choice"),u=0,c=t/2;for(let d of a){let w=u,l=w+d.dimensions.up,f=n*2+(r-d.dimensions.width)/2;o.node().appendChild(d.element).setAttribute("transform",`translate(${f}, ${w})`);let v=new x,C=l>c;l===c?v.moveTo(0,c).lineTo(f,l):v.moveTo(0,c).arcTo(n,n,0,!1,C,n,c+(C?n:-n)).lineTo(n,l-(C?n:-n)).arcTo(n,n,0,!1,!C,n*2,l).lineTo(f,l),o.append("path").attr("class","railroad-line").attr("d",v.build());let $=new x,D=f+d.dimensions.width,G=s-n*2;l===c?$.moveTo(D,l).lineTo(s,c):$.moveTo(D,l).lineTo(G,l).arcTo(n,n,0,!1,!C,s-n,l+(C?-n:n)).lineTo(s-n,c+(C?n:-n)).arcTo(n,n,0,!1,C,s,c),o.append("path").attr("class","railroad-line").attr("d",$.build()),u+=d.dimensions.height+this.config.verticalSeparation}return{element:o.node(),dimensions:{width:s,height:t,up:c,down:t-c}}}renderOptional(e,i){let a=this.renderExpression(e,i),r=this.config.arcRadius,t=r*2,n=a.dimensions.width+r*4,p=a.dimensions.height+t,s=e.append("g").attr("class","railroad-optional"),o=r*2,u=t;s.node().appendChild(a.element).setAttribute("transform",`translate(${o}, ${u})`);let d=u+a.dimensions.up,w=new x().moveTo(0,d).lineTo(r*2,d);s.append("path").attr("class","railroad-line").attr("d",w.build());let l=new x().moveTo(o+a.dimensions.width,d).lineTo(n,d);s.append("path").attr("class","railroad-line").attr("d",l.build());let f=new x().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(n-r*2,0).arcTo(r,r,0,!1,!0,n-r,r).lineTo(n-r,d-r).arcTo(r,r,0,!1,!1,n,d);return s.append("path").attr("class","railroad-line").attr("d",f.build()),{element:s.node(),dimensions:{width:n,height:p,up:d,down:p-d}}}renderRepetition(e,i,a){let r=this.renderExpression(e,i),t=this.config.arcRadius,n=t*2,p=r.dimensions.width+t*4,s=a===0,o=r.dimensions.height+n+(s?n:0),u=e.append("g").attr("class","railroad-repetition"),c=t*2,d=s?n:0;u.node().appendChild(r.element).setAttribute("transform",`translate(${c}, ${d})`);let l=d+r.dimensions.up;u.append("path").attr("class","railroad-line").attr("d",new x().moveTo(0,l).lineTo(t*2,l).build()),u.append("path").attr("class","railroad-line").attr("d",new x().moveTo(c+r.dimensions.width,l).lineTo(p,l).build());let f=d+r.dimensions.height+t,y=new x().moveTo(c+r.dimensions.width,l).arcTo(t,t,0,!1,!0,c+r.dimensions.width+t,l+t).lineTo(c+r.dimensions.width+t,f).arcTo(t,t,0,!1,!0,c+r.dimensions.width,f+t).lineTo(t*2,f+t).arcTo(t,t,0,!1,!0,t,f).lineTo(t,l+t).arcTo(t,t,0,!1,!0,t*2,l);if(u.append("path").attr("class","railroad-line").attr("d",y.build()),s){let v=new x().moveTo(0,l).arcTo(t,t,0,!1,!1,t,l-t).lineTo(t,t).arcTo(t,t,0,!1,!0,t*2,0).lineTo(p-t*2,0).arcTo(t,t,0,!1,!0,p-t,t).lineTo(p-t,l-t).arcTo(t,t,0,!1,!1,p,l);u.append("path").attr("class","railroad-line").attr("d",v.build())}return{element:u.node(),dimensions:{width:p,height:o,up:l,down:o-l}}}renderSpecial(e,i){let a=this.measureText("? "+i+" ?"),r=a.width+this.config.padding*2,t=a.height+this.config.padding*2,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",r).attr("height",t),n.append("text").attr("x",r/2).attr("y",t/2).text("? "+i+" ?"),{element:n.node(),dimensions:{width:r,height:t,up:t/2,down:t/2}}}renderExpression(e,i){switch(i.type){case"terminal":return this.renderTerminal(e,i.value);case"nonterminal":return this.renderNonTerminal(e,i.name);case"sequence":return this.renderSequence(e,i.elements);case"choice":return this.renderChoice(e,i.alternatives);case"optional":return this.renderOptional(e,i.element);case"repetition":return this.renderRepetition(e,i.element,i.min);case"special":return this.renderSpecial(e,i.text);default:throw new Error(`Unknown node type: ${i.type}`)}}renderRule(e,i){let a=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${i})`),r=e.name+" =",t=this.measureText(r).width+20,n=t+20,p=a.append("g"),s=this.renderExpression(p,e.definition),o=Math.max(20,s.dimensions.up),u=o-s.dimensions.up;return p.attr("transform",`translate(${n}, ${u})`),a.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",o).text(r),a.append("g").attr("class","railroad-start").append("circle").attr("cx",t).attr("cy",o).attr("r",this.config.markerRadius),a.append("g").attr("class","railroad-end").append("circle").attr("cx",n+s.dimensions.width+10).attr("cy",o).attr("r",this.config.markerRadius),a.append("path").attr("class","railroad-line").attr("d",new x().moveTo(t+this.config.markerRadius,o).lineTo(n,o).build()),a.append("path").attr("class","railroad-line").attr("d",new x().moveTo(n+s.dimensions.width,o).lineTo(n+s.dimensions.width+10-this.config.markerRadius,o).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:n+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let i=this.config.padding,a=0;for(let r of e){let t=this.renderRule(r,i);i+=t.height+this.config.verticalSeparation,a=Math.max(a,t.width)}return{width:a+this.config.padding*2,height:i+this.config.padding}}},L=h((e,i,a)=>{_(e,i.height,i.width,a),e.attr("viewBox",`0 0 ${i.width} ${i.height}`)},"configureRailroadSvgSize"),he=h((e,i,a)=>{T.debug(`[Railroad] Rendering diagram
88
+ `+e);try{let r=P(i);r.attr("class","railroad-diagram");let n=z().railroad?.useMaxWidth??!0,p=ie.getRules();if(T.debug(`[Railroad] Rendering ${p.length} rules`),p.length===0){T.warn("[Railroad] No rules to render"),L(r,{height:100,width:200},n);return}let o=new me(r,O()).renderDiagram(p);L(r,o,n),T.debug("[Railroad] Render complete")}catch(r){throw T.error("[Railroad] Render error:",r),r}},"draw"),xe={draw:he};export{ie as a,Te as b,xe as c};
@@ -0,0 +1 @@
1
+ import{H as M,u as G}from"./chunk-7CSIRG7W.js";import{b as d}from"./chunk-ERWOH47R.js";import{a as h}from"./chunk-EIBFAW37.js";var B=Object.freeze({left:0,top:0,width:16,height:16}),u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),T=Object.freeze({...B,...u}),P=Object.freeze({...T,body:"",hidden:!1});var K=Object.freeze({width:null,height:null}),$=Object.freeze({...K,...u});var v=(t,o,n,r="")=>{let e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;r=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){let c=e.pop(),l=e.pop(),m={provider:e.length>0?e[0]:r,prefix:l,name:c};return o&&!w(m)?null:m}let s=e[0],i=s.split("-");if(i.length>1){let c={provider:r,prefix:i.shift(),name:i.join("-")};return o&&!w(c)?null:c}if(n&&r===""){let c={provider:r,prefix:"",name:s};return o&&!w(c,n)?null:c}return null},w=(t,o)=>t?!!((o&&t.prefix===""||t.prefix)&&t.name):!1;function z(t,o){let n={};!t.hFlip!=!o.hFlip&&(n.hFlip=!0),!t.vFlip!=!o.vFlip&&(n.vFlip=!0);let r=((t.rotate||0)+(o.rotate||0))%4;return r&&(n.rotate=r),n}function E(t,o){let n=z(t,o);for(let r in P)r in u?r in t&&!(r in n)&&(n[r]=u[r]):r in o?n[r]=o[r]:r in t&&(n[r]=t[r]);return n}function A(t,o){let n=t.icons,r=t.aliases||Object.create(null),e=Object.create(null);function s(i){if(n[i])return e[i]=[];if(!(i in e)){e[i]=null;let c=r[i]&&r[i].parent,l=c&&s(c);l&&(e[i]=[c].concat(l))}return e[i]}return(o||Object.keys(n).concat(Object.keys(r))).forEach(s),e}function U(t,o,n){let r=t.icons,e=t.aliases||Object.create(null),s={};function i(c){s=E(r[c]||e[c],s)}return i(o),n.forEach(i),E(t,s)}function b(t,o){if(t.icons[o])return U(t,o,[]);let n=A(t,[o])[o];return n?U(t,o,n):null}var W=/(-?[0-9.]*[0-9]+[0-9.]*)/g,_=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function j(t,o,n){if(o===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*o*n)/n;if(typeof t!="string")return t;let r=t.split(W);if(r===null||!r.length)return t;let e=[],s=r.shift(),i=_.test(s);for(;;){if(i){let c=parseFloat(s);isNaN(c)?e.push(s):e.push(Math.ceil(c*o*n)/n)}else e.push(s);if(s=r.shift(),s===void 0)return e.join("");i=!i}}function Q(t,o="defs"){let n="",r=t.indexOf("<"+o);for(;r>=0;){let e=t.indexOf(">",r),s=t.indexOf("</"+o);if(e===-1||s===-1)break;let i=t.indexOf(">",s);if(i===-1)break;n+=t.slice(e+1,s).trim(),t=t.slice(0,r).trim()+t.slice(i+1)}return{defs:n,content:t}}function J(t,o){return t?"<defs>"+t+"</defs>"+o:o}function q(t,o,n){let r=Q(t);return J(r.defs,o+r.content+n)}var X=t=>t==="unset"||t==="undefined"||t==="none";function D(t,o){let n={...T,...t},r={...$,...o},e={left:n.left,top:n.top,width:n.width,height:n.height},s=n.body;[n,r].forEach(g=>{let a=[],N=g.hFlip,k=g.vFlip,p=g.rotate;N?k?p+=2:(a.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),a.push("scale(-1 1)"),e.top=e.left=0):k&&(a.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),a.push("scale(1 -1)"),e.top=e.left=0);let f;switch(p<0&&(p-=Math.floor(p/4)*4),p=p%4,p){case 1:f=e.height/2+e.top,a.unshift("rotate(90 "+f.toString()+" "+f.toString()+")");break;case 2:a.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:f=e.width/2+e.left,a.unshift("rotate(-90 "+f.toString()+" "+f.toString()+")");break}p%2===1&&(e.left!==e.top&&(f=e.left,e.left=e.top,e.top=f),e.width!==e.height&&(f=e.width,e.width=e.height,e.height=f)),a.length&&(s=q(s,'<g transform="'+a.join(" ")+'">',"</g>"))});let i=r.width,c=r.height,l=e.width,m=e.height,I,S;i===null?(S=c===null?"1em":c==="auto"?m:c,I=j(S,l/m)):(I=i==="auto"?l:i,S=c===null?j(I,m/l):c==="auto"?m:c);let x={},O=(g,a)=>{X(a)||(x[g]=a.toString())};O("width",I),O("height",S);let V=[e.left,e.top,l,m];return x.viewBox=V.join(" "),{attributes:x,viewBox:V,body:s}}var Y=/\sid="(\S+)"/g,R=new Map;function Z(t){t=t.replace(/[0-9]+$/,"")||"a";let o=R.get(t)||0;return R.set(t,o+1),o?`${t}${o}`:t}function F(t){let o=[],n;for(;n=Y.exec(t);)o.push(n[1]);if(!o.length)return t;let r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(e=>{let s=Z(e),i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+s+r+"$3")}),t=t.replace(new RegExp(r,"g"),""),t}function C(t,o){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let r in o)n+=" "+r+'="'+o[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}var tt={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},y=new Map,L=new Map,Mt=h(t=>{for(let o of t){if(!o.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(d.debug("Registering icon pack:",o.name),"loader"in o)L.set(o.name,o.loader);else if("icons"in o)y.set(o.name,o.icons);else throw d.error("Invalid icon loader:",o),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),H=h(async(t,o)=>{let n=v(t,!0,o!==void 0);if(!n)throw new Error(`Invalid icon name: ${t}`);let r=n.prefix||o;if(!r)throw new Error(`Icon name must contain a prefix: ${t}`);let e=y.get(r);if(!e){let i=L.get(r);if(!i)throw new Error(`Icon set not found: ${n.prefix}`);try{e={...await i(),prefix:r},y.set(r,e)}catch(c){throw d.error(c),new Error(`Failed to load icon set: ${n.prefix}`)}}let s=b(e,n.name);if(!s)throw new Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),Pt=h(async t=>{try{return await H(t),!0}catch{return!1}},"isIconAvailable"),$t=h(async(t,o,n)=>{let r;try{r=await H(t,o?.fallbackPrefix)}catch(i){d.error(i),r=tt}let e=D(r,o),s=C(F(e.body),{...e.attributes,...n});return M(s,G())},"getIconSVG");export{tt as a,Mt as b,Pt as c,$t as d};
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-EIBFAW37.js";import{e as o}from"./chunk-LGUG3SQB.js";var g=m((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{g as a};
@@ -0,0 +1 @@
1
+ var n="website:";function a(e){let r=document.querySelector(`meta[name="${n}${e}"]`)?.content.trim();return r||null}function i(e){let t=a(e);if(!t)throw new Error(`Missing meta[name="website:${e}"] URL`);return t}export{a,i as b};
@@ -0,0 +1 @@
1
+ function r(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function t(n){return Array.isArray(n)&&n.every(o=>typeof o=="string")}function s(n){return r(n)?typeof n.id=="string"&&typeof n.title=="string"&&typeof n.url=="string"&&t(n.aliases)&&t(n.tags)&&(typeof n.description=="string"||n.description===null)&&typeof n.preview=="string"&&(typeof n.updated=="string"||n.updated===null)&&(n.content_type==="post"||n.content_type==="doc"||n.content_type==="page")&&(typeof n.published_at=="string"||n.published_at===null):!1}function i(n){return r(n)?typeof n.id=="string"&&typeof n.title=="string"&&typeof n.url=="string"&&t(n.aliases)&&t(n.tags)&&typeof n.text=="string":!1}function a(n){return r(n)?typeof n.id=="string"&&typeof n.title=="string"&&typeof n.url=="string"&&(n.degree===void 0||typeof n.degree=="number"&&Number.isSafeInteger(n.degree)&&n.degree>=0)&&(n.tags===void 0||t(n.tags)):!1}function p(n){return r(n)?typeof n.source=="string"&&typeof n.target=="string"&&(n.kind==="link"||n.kind==="embed")&&typeof n.count=="number"&&Number.isSafeInteger(n.count)&&n.count>0:!1}function y(n){if(!r(n)||n.schema_version!==1||!Array.isArray(n.notes)||!n.notes.every(s))throw new TypeError("catalog.v1.json does not match schema version 1");return n}function d(n){if(!r(n)||n.schema_version!==1||!Array.isArray(n.documents)||!n.documents.every(i))throw new TypeError("search.v1.json does not match schema version 1");return n}function c(n){if(!r(n)||n.schema_version!==1||!Array.isArray(n.nodes)||!n.nodes.every(a)||!Array.isArray(n.edges)||!n.edges.every(p))throw new TypeError("graph.v1.json does not match schema version 1");return n}async function f(n,o){let e=await fetch(n,{credentials:"same-origin",headers:{Accept:"application/json"},...o?{signal:o}:{}});if(!e.ok)throw new Error(`Unable to load ${n}: ${e.status}`);return e.json()}export{y as a,d as b,c,f as d};
@@ -0,0 +1 @@
1
+ import{a as e,b as o,c as n,d as i,e as s,g as u,n as d,w as l,y as c}from"./chunk-VYZZPKGK.js";var m=class extends c{static{e(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},v=class extends l{static{e(this,"PieValueConverter")}runCustomConverter(t,r,a){if(t.name==="PIE_SECTION_LABEL")return r.replace(/"/g,"").trim()}},C={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new v,"ValueConverter")}};function P(t=s){let r=i(n(t),u),a=i(o({shared:r}),d,C);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}e(P,"createPieServices");export{C as a,P as b};
@@ -0,0 +1 @@
1
+ var qa=typeof global=="object"&&global&&global.Object===Object&&global,qr=qa;var $a=typeof self=="object"&&self&&self.Object===Object&&self,Ya=qr||$a||Function("return this")(),g=Ya;var Va=g.Symbol,_=Va;var Ut=Object.prototype,Za=Ut.hasOwnProperty,Ja=Ut.toString,Rr=_?_.toStringTag:void 0;function Xa(r){var t=Za.call(r,Rr),e=r[Rr];try{r[Rr]=void 0;var o=!0}catch{}var a=Ja.call(r);return o&&(t?r[Rr]=e:delete r[Rr]),a}var Kt=Xa;var Qa=Object.prototype,ka=Qa.toString;function rf(r){return ka.call(r)}var Wt=rf;var tf="[object Null]",ef="[object Undefined]",Ht=_?_.toStringTag:void 0;function of(r){return r==null?r===void 0?ef:tf:Ht&&Ht in Object(r)?Kt(r):Wt(r)}var P=of;function af(r){return r!=null&&typeof r=="object"}var y=af;var ff="[object Symbol]";function nf(r){return typeof r=="symbol"||y(r)&&P(r)==ff}var L=nf;function sf(r,t){for(var e=-1,o=r==null?0:r.length,a=Array(o);++e<o;)a[e]=t(r[e],e,r);return a}var D=sf;var pf=Array.isArray,m=pf;var uf=1/0,zt=_?_.prototype:void 0,qt=zt?zt.toString:void 0;function $t(r){if(typeof r=="string")return r;if(m(r))return D(r,$t)+"";if(L(r))return qt?qt.call(r):"";var t=r+"";return t=="0"&&1/r==-uf?"-0":t}var Yt=$t;var mf=/\s/;function lf(r){for(var t=r.length;t--&&mf.test(r.charAt(t)););return t}var Vt=lf;var df=/^\s+/;function cf(r){return r&&r.slice(0,Vt(r)+1).replace(df,"")}var Zt=cf;function xf(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var h=xf;var Jt=NaN,hf=/^[-+]0x[0-9a-f]+$/i,gf=/^0b[01]+$/i,bf=/^0o[0-7]+$/i,yf=parseInt;function _f(r){if(typeof r=="number")return r;if(L(r))return Jt;if(h(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=h(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Zt(r);var e=gf.test(r);return e||bf.test(r)?yf(r.slice(2),e?2:8):hf.test(r)?Jt:+r}var Xt=_f;var Qt=1/0,vf=17976931348623157e292;function Of(r){if(!r)return r===0?r:0;if(r=Xt(r),r===Qt||r===-Qt){var t=r<0?-1:1;return t*vf}return r===r?r:0}var cr=Of;function Af(r){var t=cr(r),e=t%1;return t===t?e?t-e:t:0}var kt=Af;function Tf(r){return r}var I=Tf;var wf="[object AsyncFunction]",Sf="[object Function]",Pf="[object GeneratorFunction]",Cf="[object Proxy]";function If(r){if(!h(r))return!1;var t=P(r);return t==Sf||t==Pf||t==wf||t==Cf}var G=If;var Ef=g["__core-js_shared__"],$r=Ef;var re=(function(){var r=/[^.]+$/.exec($r&&$r.keys&&$r.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function jf(r){return!!re&&re in r}var te=jf;var Lf=Function.prototype,Mf=Lf.toString;function Ff(r){if(r!=null){try{return Mf.call(r)}catch{}try{return r+""}catch{}}return""}var H=Ff;var Rf=/[\\^$.*+?()[\]{}|]/g,Nf=/^\[object .+?Constructor\]$/,Bf=Function.prototype,Df=Object.prototype,Gf=Bf.toString,Uf=Df.hasOwnProperty,Kf=RegExp("^"+Gf.call(Uf).replace(Rf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wf(r){if(!h(r)||te(r))return!1;var t=G(r)?Kf:Nf;return t.test(H(r))}var ee=Wf;function Hf(r,t){return r?.[t]}var oe=Hf;function zf(r,t){var e=oe(r,t);return ee(e)?e:void 0}var E=zf;var qf=E(g,"WeakMap"),Yr=qf;var ae=Object.create,$f=(function(){function r(){}return function(t){if(!h(t))return{};if(ae)return ae(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})(),fe=$f;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)}var ne=Yf;function Vf(){}var ie=Vf;function Zf(r,t){var e=-1,o=r.length;for(t||(t=Array(o));++e<o;)t[e]=r[e];return t}var Vr=Zf;var Jf=800,Xf=16,Qf=Date.now;function kf(r){var t=0,e=0;return function(){var o=Qf(),a=Xf-(o-e);if(e=o,a>0){if(++t>=Jf)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var se=kf;function rn(r){return function(){return r}}var Y=rn;var tn=(function(){try{var r=E(Object,"defineProperty");return r({},"",{}),r}catch{}})(),xr=tn;var en=xr?function(r,t){return xr(r,"toString",{configurable:!0,enumerable:!1,value:Y(t),writable:!0})}:I,pe=en;var on=se(pe),Zr=on;function an(r,t){for(var e=-1,o=r==null?0:r.length;++e<o&&t(r[e],e,r)!==!1;);return r}var Jr=an;function fn(r,t,e,o){for(var a=r.length,f=e+(o?1:-1);o?f--:++f<a;)if(t(r[f],f,r))return f;return-1}var Xr=fn;function nn(r){return r!==r}var ue=nn;function sn(r,t,e){for(var o=e-1,a=r.length;++o<a;)if(r[o]===t)return o;return-1}var me=sn;function pn(r,t,e){return t===t?me(r,t,e):Xr(r,ue,e)}var le=pn;function un(r,t){var e=r==null?0:r.length;return!!e&&le(r,t,0)>-1}var de=un;var mn=9007199254740991,ln=/^(?:0|[1-9]\d*)$/;function dn(r,t){var e=typeof r;return t=t??mn,!!t&&(e=="number"||e!="symbol"&&ln.test(r))&&r>-1&&r%1==0&&r<t}var V=dn;function cn(r,t,e){t=="__proto__"&&xr?xr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}var Z=cn;function xn(r,t){return r===t||r!==r&&t!==t}var F=xn;var hn=Object.prototype,gn=hn.hasOwnProperty;function bn(r,t,e){var o=r[t];(!(gn.call(r,t)&&F(o,e))||e===void 0&&!(t in r))&&Z(r,t,e)}var J=bn;function yn(r,t,e,o){var a=!e;e||(e={});for(var f=-1,n=t.length;++f<n;){var i=t[f],s=o?o(e[i],r[i],i,e,r):void 0;s===void 0&&(s=r[i]),a?Z(e,i,s):J(e,i,s)}return e}var U=yn;var ce=Math.max;function _n(r,t,e){return t=ce(t===void 0?r.length-1:t,0),function(){for(var o=arguments,a=-1,f=ce(o.length-t,0),n=Array(f);++a<f;)n[a]=o[t+a];a=-1;for(var i=Array(t+1);++a<t;)i[a]=o[a];return i[t]=e(n),ne(r,this,i)}}var Qr=_n;function vn(r,t){return Zr(Qr(r,t,I),r+"")}var X=vn;var On=9007199254740991;function An(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=On}var hr=An;function Tn(r){return r!=null&&hr(r.length)&&!G(r)}var v=Tn;function wn(r,t,e){if(!h(e))return!1;var o=typeof t;return(o=="number"?v(e)&&V(t,e.length):o=="string"&&t in e)?F(e[t],r):!1}var z=wn;function Sn(r){return X(function(t,e){var o=-1,a=e.length,f=a>1?e[a-1]:void 0,n=a>2?e[2]:void 0;for(f=r.length>3&&typeof f=="function"?(a--,f):void 0,n&&z(e[0],e[1],n)&&(f=a<3?void 0:f,a=1),t=Object(t);++o<a;){var i=e[o];i&&r(t,i,o,f)}return t})}var xe=Sn;var Pn=Object.prototype;function Cn(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Pn;return r===e}var Q=Cn;function In(r,t){for(var e=-1,o=Array(r);++e<r;)o[e]=t(e);return o}var he=In;var En="[object Arguments]";function jn(r){return y(r)&&P(r)==En}var Ct=jn;var ge=Object.prototype,Ln=ge.hasOwnProperty,Mn=ge.propertyIsEnumerable,Fn=Ct((function(){return arguments})())?Ct:function(r){return y(r)&&Ln.call(r,"callee")&&!Mn.call(r,"callee")},R=Fn;function Rn(){return!1}var be=Rn;var ve=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ye=ve&&typeof module=="object"&&module&&!module.nodeType&&module,Nn=ye&&ye.exports===ve,_e=Nn?g.Buffer:void 0,Bn=_e?_e.isBuffer:void 0,Dn=Bn||be,N=Dn;var Gn="[object Arguments]",Un="[object Array]",Kn="[object Boolean]",Wn="[object Date]",Hn="[object Error]",zn="[object Function]",qn="[object Map]",$n="[object Number]",Yn="[object Object]",Vn="[object RegExp]",Zn="[object Set]",Jn="[object String]",Xn="[object WeakMap]",Qn="[object ArrayBuffer]",kn="[object DataView]",ri="[object Float32Array]",ti="[object Float64Array]",ei="[object Int8Array]",oi="[object Int16Array]",ai="[object Int32Array]",fi="[object Uint8Array]",ni="[object Uint8ClampedArray]",ii="[object Uint16Array]",si="[object Uint32Array]",x={};x[ri]=x[ti]=x[ei]=x[oi]=x[ai]=x[fi]=x[ni]=x[ii]=x[si]=!0;x[Gn]=x[Un]=x[Qn]=x[Kn]=x[kn]=x[Wn]=x[Hn]=x[zn]=x[qn]=x[$n]=x[Yn]=x[Vn]=x[Zn]=x[Jn]=x[Xn]=!1;function pi(r){return y(r)&&hr(r.length)&&!!x[P(r)]}var Oe=pi;function ui(r){return function(t){return r(t)}}var k=ui;var Ae=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nr=Ae&&typeof module=="object"&&module&&!module.nodeType&&module,mi=Nr&&Nr.exports===Ae,It=mi&&qr.process,li=(function(){try{var r=Nr&&Nr.require&&Nr.require("util").types;return r||It&&It.binding&&It.binding("util")}catch{}})(),q=li;var Te=q&&q.isTypedArray,di=Te?k(Te):Oe,rr=di;var ci=Object.prototype,xi=ci.hasOwnProperty;function hi(r,t){var e=m(r),o=!e&&R(r),a=!e&&!o&&N(r),f=!e&&!o&&!a&&rr(r),n=e||o||a||f,i=n?he(r.length,String):[],s=i.length;for(var p in r)(t||xi.call(r,p))&&!(n&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||V(p,s)))&&i.push(p);return i}var kr=hi;function gi(r,t){return function(e){return r(t(e))}}var rt=gi;var bi=rt(Object.keys,Object),we=bi;var yi=Object.prototype,_i=yi.hasOwnProperty;function vi(r){if(!Q(r))return we(r);var t=[];for(var e in Object(r))_i.call(r,e)&&e!="constructor"&&t.push(e);return t}var gr=vi;function Oi(r){return v(r)?kr(r):gr(r)}var b=Oi;function Ai(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var Se=Ai;var Ti=Object.prototype,wi=Ti.hasOwnProperty;function Si(r){if(!h(r))return Se(r);var t=Q(r),e=[];for(var o in r)o=="constructor"&&(t||!wi.call(r,o))||e.push(o);return e}var Pe=Si;function Pi(r){return v(r)?kr(r,!0):Pe(r)}var j=Pi;var Ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ii=/^\w*$/;function Ei(r,t){if(m(r))return!1;var e=typeof r;return e=="number"||e=="symbol"||e=="boolean"||r==null||L(r)?!0:Ii.test(r)||!Ci.test(r)||t!=null&&r in Object(t)}var br=Ei;var ji=E(Object,"create"),$=ji;function Li(){this.__data__=$?$(null):{},this.size=0}var Ce=Li;function Mi(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var Ie=Mi;var Fi="__lodash_hash_undefined__",Ri=Object.prototype,Ni=Ri.hasOwnProperty;function Bi(r){var t=this.__data__;if($){var e=t[r];return e===Fi?void 0:e}return Ni.call(t,r)?t[r]:void 0}var Ee=Bi;var Di=Object.prototype,Gi=Di.hasOwnProperty;function Ui(r){var t=this.__data__;return $?t[r]!==void 0:Gi.call(t,r)}var je=Ui;var Ki="__lodash_hash_undefined__";function Wi(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=$&&t===void 0?Ki:t,this}var Le=Wi;function yr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}yr.prototype.clear=Ce;yr.prototype.delete=Ie;yr.prototype.get=Ee;yr.prototype.has=je;yr.prototype.set=Le;var Et=yr;function Hi(){this.__data__=[],this.size=0}var Me=Hi;function zi(r,t){for(var e=r.length;e--;)if(F(r[e][0],t))return e;return-1}var tr=zi;var qi=Array.prototype,$i=qi.splice;function Yi(r){var t=this.__data__,e=tr(t,r);if(e<0)return!1;var o=t.length-1;return e==o?t.pop():$i.call(t,e,1),--this.size,!0}var Fe=Yi;function Vi(r){var t=this.__data__,e=tr(t,r);return e<0?void 0:t[e][1]}var Re=Vi;function Zi(r){return tr(this.__data__,r)>-1}var Ne=Zi;function Ji(r,t){var e=this.__data__,o=tr(e,r);return o<0?(++this.size,e.push([r,t])):e[o][1]=t,this}var Be=Ji;function _r(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}_r.prototype.clear=Me;_r.prototype.delete=Fe;_r.prototype.get=Re;_r.prototype.has=Ne;_r.prototype.set=Be;var er=_r;var Xi=E(g,"Map"),or=Xi;function Qi(){this.size=0,this.__data__={hash:new Et,map:new(or||er),string:new Et}}var De=Qi;function ki(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var Ge=ki;function rs(r,t){var e=r.__data__;return Ge(t)?e[typeof t=="string"?"string":"hash"]:e.map}var ar=rs;function ts(r){var t=ar(this,r).delete(r);return this.size-=t?1:0,t}var Ue=ts;function es(r){return ar(this,r).get(r)}var Ke=es;function os(r){return ar(this,r).has(r)}var We=os;function as(r,t){var e=ar(this,r),o=e.size;return e.set(r,t),this.size+=e.size==o?0:1,this}var He=as;function vr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}vr.prototype.clear=De;vr.prototype.delete=Ue;vr.prototype.get=Ke;vr.prototype.has=We;vr.prototype.set=He;var mr=vr;var fs="Expected a function";function jt(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(fs);var e=function(){var o=arguments,a=t?t.apply(this,o):o[0],f=e.cache;if(f.has(a))return f.get(a);var n=r.apply(this,o);return e.cache=f.set(a,n)||f,n};return e.cache=new(jt.Cache||mr),e}jt.Cache=mr;var ze=jt;var ns=500;function is(r){var t=ze(r,function(o){return e.size===ns&&e.clear(),o}),e=t.cache;return t}var qe=is;var ss=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ps=/\\(\\)?/g,us=qe(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(ss,function(e,o,a,f){t.push(a?f.replace(ps,"$1"):o||e)}),t}),$e=us;function ms(r){return r==null?"":Yt(r)}var tt=ms;function ls(r,t){return m(r)?r:br(r,t)?[r]:$e(tt(r))}var fr=ls;var ds=1/0;function cs(r){if(typeof r=="string"||L(r))return r;var t=r+"";return t=="0"&&1/r==-ds?"-0":t}var K=cs;function xs(r,t){t=fr(t,r);for(var e=0,o=t.length;r!=null&&e<o;)r=r[K(t[e++])];return e&&e==o?r:void 0}var nr=xs;function hs(r,t,e){var o=r==null?void 0:nr(r,t);return o===void 0?e:o}var Ye=hs;function gs(r,t){for(var e=-1,o=t.length,a=r.length;++e<o;)r[a+e]=t[e];return r}var Or=gs;var Ve=_?_.isConcatSpreadable:void 0;function bs(r){return m(r)||R(r)||!!(Ve&&r&&r[Ve])}var Ze=bs;function Je(r,t,e,o,a){var f=-1,n=r.length;for(e||(e=Ze),a||(a=[]);++f<n;){var i=r[f];t>0&&e(i)?t>1?Je(i,t-1,e,o,a):Or(a,i):o||(a[a.length]=i)}return a}var Ar=Je;function ys(r){var t=r==null?0:r.length;return t?Ar(r,1):[]}var Lt=ys;function _s(r){return Zr(Qr(r,void 0,Lt),r+"")}var Xe=_s;var vs=rt(Object.getPrototypeOf,Object),Tr=vs;var Os="[object Object]",As=Function.prototype,Ts=Object.prototype,Qe=As.toString,ws=Ts.hasOwnProperty,Ss=Qe.call(Object);function Ps(r){if(!y(r)||P(r)!=Os)return!1;var t=Tr(r);if(t===null)return!0;var e=ws.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Qe.call(e)==Ss}var ke=Ps;var Cs="\\ud800-\\udfff",Is="\\u0300-\\u036f",Es="\\ufe20-\\ufe2f",js="\\u20d0-\\u20ff",Ls=Is+Es+js,Ms="\\ufe0e\\ufe0f",Fs="\\u200d",Rs=RegExp("["+Fs+Cs+Ls+Ms+"]");function Ns(r){return Rs.test(r)}var ro=Ns;function Bs(r,t,e,o){var a=-1,f=r==null?0:r.length;for(o&&f&&(e=r[++a]);++a<f;)e=t(e,r[a],a,r);return e}var to=Bs;function Ds(){this.__data__=new er,this.size=0}var eo=Ds;function Gs(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var oo=Gs;function Us(r){return this.__data__.get(r)}var ao=Us;function Ks(r){return this.__data__.has(r)}var fo=Ks;var Ws=200;function Hs(r,t){var e=this.__data__;if(e instanceof er){var o=e.__data__;if(!or||o.length<Ws-1)return o.push([r,t]),this.size=++e.size,this;e=this.__data__=new mr(o)}return e.set(r,t),this.size=e.size,this}var no=Hs;function wr(r){var t=this.__data__=new er(r);this.size=t.size}wr.prototype.clear=eo;wr.prototype.delete=oo;wr.prototype.get=ao;wr.prototype.has=fo;wr.prototype.set=no;var W=wr;function zs(r,t){return r&&U(t,b(t),r)}var io=zs;function qs(r,t){return r&&U(t,j(t),r)}var so=qs;var lo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,po=lo&&typeof module=="object"&&module&&!module.nodeType&&module,$s=po&&po.exports===lo,uo=$s?g.Buffer:void 0,mo=uo?uo.allocUnsafe:void 0;function Ys(r,t){if(t)return r.slice();var e=r.length,o=mo?mo(e):new r.constructor(e);return r.copy(o),o}var et=Ys;function Vs(r,t){for(var e=-1,o=r==null?0:r.length,a=0,f=[];++e<o;){var n=r[e];t(n,e,r)&&(f[a++]=n)}return f}var ot=Vs;function Zs(){return[]}var at=Zs;var Js=Object.prototype,Xs=Js.propertyIsEnumerable,co=Object.getOwnPropertySymbols,Qs=co?function(r){return r==null?[]:(r=Object(r),ot(co(r),function(t){return Xs.call(r,t)}))}:at,Sr=Qs;function ks(r,t){return U(r,Sr(r),t)}var xo=ks;var rp=Object.getOwnPropertySymbols,tp=rp?function(r){for(var t=[];r;)Or(t,Sr(r)),r=Tr(r);return t}:at,ft=tp;function ep(r,t){return U(r,ft(r),t)}var ho=ep;function op(r,t,e){var o=t(r);return m(r)?o:Or(o,e(r))}var nt=op;function ap(r){return nt(r,b,Sr)}var Br=ap;function fp(r){return nt(r,j,ft)}var go=fp;var np=E(g,"DataView"),it=np;var ip=E(g,"Promise"),st=ip;var sp=E(g,"Set"),ir=sp;var bo="[object Map]",pp="[object Object]",yo="[object Promise]",_o="[object Set]",vo="[object WeakMap]",Oo="[object DataView]",up=H(it),mp=H(or),lp=H(st),dp=H(ir),cp=H(Yr),lr=P;(it&&lr(new it(new ArrayBuffer(1)))!=Oo||or&&lr(new or)!=bo||st&&lr(st.resolve())!=yo||ir&&lr(new ir)!=_o||Yr&&lr(new Yr)!=vo)&&(lr=function(r){var t=P(r),e=t==pp?r.constructor:void 0,o=e?H(e):"";if(o)switch(o){case up:return Oo;case mp:return bo;case lp:return yo;case dp:return _o;case cp:return vo}return t});var M=lr;var xp=Object.prototype,hp=xp.hasOwnProperty;function gp(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&hp.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var Ao=gp;var bp=g.Uint8Array,Pr=bp;function yp(r){var t=new r.constructor(r.byteLength);return new Pr(t).set(new Pr(r)),t}var Cr=yp;function _p(r,t){var e=t?Cr(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}var To=_p;var vp=/\w*$/;function Op(r){var t=new r.constructor(r.source,vp.exec(r));return t.lastIndex=r.lastIndex,t}var wo=Op;var So=_?_.prototype:void 0,Po=So?So.valueOf:void 0;function Ap(r){return Po?Object(Po.call(r)):{}}var Co=Ap;function Tp(r,t){var e=t?Cr(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var pt=Tp;var wp="[object Boolean]",Sp="[object Date]",Pp="[object Map]",Cp="[object Number]",Ip="[object RegExp]",Ep="[object Set]",jp="[object String]",Lp="[object Symbol]",Mp="[object ArrayBuffer]",Fp="[object DataView]",Rp="[object Float32Array]",Np="[object Float64Array]",Bp="[object Int8Array]",Dp="[object Int16Array]",Gp="[object Int32Array]",Up="[object Uint8Array]",Kp="[object Uint8ClampedArray]",Wp="[object Uint16Array]",Hp="[object Uint32Array]";function zp(r,t,e){var o=r.constructor;switch(t){case Mp:return Cr(r);case wp:case Sp:return new o(+r);case Fp:return To(r,e);case Rp:case Np:case Bp:case Dp:case Gp:case Up:case Kp:case Wp:case Hp:return pt(r,e);case Pp:return new o;case Cp:case jp:return new o(r);case Ip:return wo(r);case Ep:return new o;case Lp:return Co(r)}}var Io=zp;function qp(r){return typeof r.constructor=="function"&&!Q(r)?fe(Tr(r)):{}}var ut=qp;var $p="[object Map]";function Yp(r){return y(r)&&M(r)==$p}var Eo=Yp;var jo=q&&q.isMap,Vp=jo?k(jo):Eo,Lo=Vp;var Zp="[object Set]";function Jp(r){return y(r)&&M(r)==Zp}var Mo=Jp;var Fo=q&&q.isSet,Xp=Fo?k(Fo):Mo,Ro=Xp;var Qp=1,kp=2,ru=4,No="[object Arguments]",tu="[object Array]",eu="[object Boolean]",ou="[object Date]",au="[object Error]",Bo="[object Function]",fu="[object GeneratorFunction]",nu="[object Map]",iu="[object Number]",Do="[object Object]",su="[object RegExp]",pu="[object Set]",uu="[object String]",mu="[object Symbol]",lu="[object WeakMap]",du="[object ArrayBuffer]",cu="[object DataView]",xu="[object Float32Array]",hu="[object Float64Array]",gu="[object Int8Array]",bu="[object Int16Array]",yu="[object Int32Array]",_u="[object Uint8Array]",vu="[object Uint8ClampedArray]",Ou="[object Uint16Array]",Au="[object Uint32Array]",c={};c[No]=c[tu]=c[du]=c[cu]=c[eu]=c[ou]=c[xu]=c[hu]=c[gu]=c[bu]=c[yu]=c[nu]=c[iu]=c[Do]=c[su]=c[pu]=c[uu]=c[mu]=c[_u]=c[vu]=c[Ou]=c[Au]=!0;c[au]=c[Bo]=c[lu]=!1;function mt(r,t,e,o,a,f){var n,i=t&Qp,s=t&kp,p=t&ru;if(e&&(n=a?e(r,o,a,f):e(r)),n!==void 0)return n;if(!h(r))return r;var u=m(r);if(u){if(n=Ao(r),!i)return Vr(r,n)}else{var l=M(r),d=l==Bo||l==fu;if(N(r))return et(r,i);if(l==Do||l==No||d&&!a){if(n=s||d?{}:ut(r),!i)return s?ho(r,so(n,r)):xo(r,io(n,r))}else{if(!c[l])return a?r:{};n=Io(r,l,i)}}f||(f=new W);var T=f.get(r);if(T)return T;f.set(r,n),Ro(r)?r.forEach(function(A){n.add(mt(A,t,e,A,r,f))}):Lo(r)&&r.forEach(function(A,S){n.set(S,mt(A,t,e,S,r,f))});var O=p?s?go:Br:s?j:b,C=u?void 0:O(r);return Jr(C||r,function(A,S){C&&(S=A,A=r[S]),J(n,S,mt(A,t,e,S,r,f))}),n}var lt=mt;var Tu=4;function wu(r){return lt(r,Tu)}var Su=wu;var Pu=1,Cu=4;function Iu(r){return lt(r,Pu|Cu)}var Eu=Iu;var ju="__lodash_hash_undefined__";function Lu(r){return this.__data__.set(r,ju),this}var Go=Lu;function Mu(r){return this.__data__.has(r)}var Uo=Mu;function dt(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new mr;++t<e;)this.add(r[t])}dt.prototype.add=dt.prototype.push=Go;dt.prototype.has=Uo;var ct=dt;function Fu(r,t){for(var e=-1,o=r==null?0:r.length;++e<o;)if(t(r[e],e,r))return!0;return!1}var Ko=Fu;function Ru(r,t){return r.has(t)}var xt=Ru;var Nu=1,Bu=2;function Du(r,t,e,o,a,f){var n=e&Nu,i=r.length,s=t.length;if(i!=s&&!(n&&s>i))return!1;var p=f.get(r),u=f.get(t);if(p&&u)return p==t&&u==r;var l=-1,d=!0,T=e&Bu?new ct:void 0;for(f.set(r,t),f.set(t,r);++l<i;){var O=r[l],C=t[l];if(o)var A=n?o(C,O,l,t,r,f):o(O,C,l,r,t,f);if(A!==void 0){if(A)continue;d=!1;break}if(T){if(!Ko(t,function(S,ur){if(!xt(T,ur)&&(O===S||a(O,S,e,o,f)))return T.push(ur)})){d=!1;break}}else if(!(O===C||a(O,C,e,o,f))){d=!1;break}}return f.delete(r),f.delete(t),d}var ht=Du;function Gu(r){var t=-1,e=Array(r.size);return r.forEach(function(o,a){e[++t]=[a,o]}),e}var Wo=Gu;function Uu(r){var t=-1,e=Array(r.size);return r.forEach(function(o){e[++t]=o}),e}var Ir=Uu;var Ku=1,Wu=2,Hu="[object Boolean]",zu="[object Date]",qu="[object Error]",$u="[object Map]",Yu="[object Number]",Vu="[object RegExp]",Zu="[object Set]",Ju="[object String]",Xu="[object Symbol]",Qu="[object ArrayBuffer]",ku="[object DataView]",Ho=_?_.prototype:void 0,Mt=Ho?Ho.valueOf:void 0;function rm(r,t,e,o,a,f,n){switch(e){case ku:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Qu:return!(r.byteLength!=t.byteLength||!f(new Pr(r),new Pr(t)));case Hu:case zu:case Yu:return F(+r,+t);case qu:return r.name==t.name&&r.message==t.message;case Vu:case Ju:return r==t+"";case $u:var i=Wo;case Zu:var s=o&Ku;if(i||(i=Ir),r.size!=t.size&&!s)return!1;var p=n.get(r);if(p)return p==t;o|=Wu,n.set(r,t);var u=ht(i(r),i(t),o,a,f,n);return n.delete(r),u;case Xu:if(Mt)return Mt.call(r)==Mt.call(t)}return!1}var zo=rm;var tm=1,em=Object.prototype,om=em.hasOwnProperty;function am(r,t,e,o,a,f){var n=e&tm,i=Br(r),s=i.length,p=Br(t),u=p.length;if(s!=u&&!n)return!1;for(var l=s;l--;){var d=i[l];if(!(n?d in t:om.call(t,d)))return!1}var T=f.get(r),O=f.get(t);if(T&&O)return T==t&&O==r;var C=!0;f.set(r,t),f.set(t,r);for(var A=n;++l<s;){d=i[l];var S=r[d],ur=t[d];if(o)var Gt=n?o(ur,S,d,t,r,f):o(S,ur,d,r,t,f);if(!(Gt===void 0?S===ur||a(S,ur,e,o,f):Gt)){C=!1;break}A||(A=d=="constructor")}if(C&&!A){var Hr=r.constructor,zr=t.constructor;Hr!=zr&&"constructor"in r&&"constructor"in t&&!(typeof Hr=="function"&&Hr instanceof Hr&&typeof zr=="function"&&zr instanceof zr)&&(C=!1)}return f.delete(r),f.delete(t),C}var qo=am;var fm=1,$o="[object Arguments]",Yo="[object Array]",gt="[object Object]",nm=Object.prototype,Vo=nm.hasOwnProperty;function im(r,t,e,o,a,f){var n=m(r),i=m(t),s=n?Yo:M(r),p=i?Yo:M(t);s=s==$o?gt:s,p=p==$o?gt:p;var u=s==gt,l=p==gt,d=s==p;if(d&&N(r)){if(!N(t))return!1;n=!0,u=!1}if(d&&!u)return f||(f=new W),n||rr(r)?ht(r,t,e,o,a,f):zo(r,t,s,e,o,a,f);if(!(e&fm)){var T=u&&Vo.call(r,"__wrapped__"),O=l&&Vo.call(t,"__wrapped__");if(T||O){var C=T?r.value():r,A=O?t.value():t;return f||(f=new W),a(C,A,e,o,f)}}return d?(f||(f=new W),qo(r,t,e,o,a,f)):!1}var Zo=im;function Jo(r,t,e,o,a){return r===t?!0:r==null||t==null||!y(r)&&!y(t)?r!==r&&t!==t:Zo(r,t,e,o,Jo,a)}var bt=Jo;var sm=1,pm=2;function um(r,t,e,o){var a=e.length,f=a,n=!o;if(r==null)return!f;for(r=Object(r);a--;){var i=e[a];if(n&&i[2]?i[1]!==r[i[0]]:!(i[0]in r))return!1}for(;++a<f;){i=e[a];var s=i[0],p=r[s],u=i[1];if(n&&i[2]){if(p===void 0&&!(s in r))return!1}else{var l=new W;if(o)var d=o(p,u,s,r,t,l);if(!(d===void 0?bt(u,p,sm|pm,o,l):d))return!1}}return!0}var Xo=um;function mm(r){return r===r&&!h(r)}var yt=mm;function lm(r){for(var t=b(r),e=t.length;e--;){var o=t[e],a=r[o];t[e]=[o,a,yt(a)]}return t}var Qo=lm;function dm(r,t){return function(e){return e==null?!1:e[r]===t&&(t!==void 0||r in Object(e))}}var _t=dm;function cm(r){var t=Qo(r);return t.length==1&&t[0][2]?_t(t[0][0],t[0][1]):function(e){return e===r||Xo(e,r,t)}}var ko=cm;function xm(r,t){return r!=null&&t in Object(r)}var ra=xm;function hm(r,t,e){t=fr(t,r);for(var o=-1,a=t.length,f=!1;++o<a;){var n=K(t[o]);if(!(f=r!=null&&e(r,n)))break;r=r[n]}return f||++o!=a?f:(a=r==null?0:r.length,!!a&&hr(a)&&V(n,a)&&(m(r)||R(r)))}var vt=hm;function gm(r,t){return r!=null&&vt(r,t,ra)}var Ot=gm;var bm=1,ym=2;function _m(r,t){return br(r)&&yt(t)?_t(K(r),t):function(e){var o=Ye(e,r);return o===void 0&&o===t?Ot(e,r):bt(t,o,bm|ym)}}var ta=_m;function vm(r){return function(t){return t?.[r]}}var At=vm;function Om(r){return function(t){return nr(t,r)}}var ea=Om;function Am(r){return br(r)?At(K(r)):ea(r)}var oa=Am;function Tm(r){return typeof r=="function"?r:r==null?I:typeof r=="object"?m(r)?ta(r[0],r[1]):ko(r):oa(r)}var w=Tm;function wm(r){return function(t,e,o){for(var a=-1,f=Object(t),n=o(t),i=n.length;i--;){var s=n[r?i:++a];if(e(f[s],s,f)===!1)break}return t}}var aa=wm;var Sm=aa(),Er=Sm;function Pm(r,t){return r&&Er(r,t,b)}var jr=Pm;function Cm(r,t){return function(e,o){if(e==null)return e;if(!v(e))return r(e,o);for(var a=e.length,f=t?a:-1,n=Object(e);(t?f--:++f<a)&&o(n[f],f,n)!==!1;);return e}}var fa=Cm;var Im=fa(jr),sr=Im;var Em=function(){return g.Date.now()},jm=Em;var na=Object.prototype,Lm=na.hasOwnProperty,Mm=X(function(r,t){r=Object(r);var e=-1,o=t.length,a=o>2?t[2]:void 0;for(a&&z(t[0],t[1],a)&&(o=1);++e<o;)for(var f=t[e],n=j(f),i=-1,s=n.length;++i<s;){var p=n[i],u=r[p];(u===void 0||F(u,na[p])&&!Lm.call(r,p))&&(r[p]=f[p])}return r}),Fm=Mm;function Rm(r,t,e){(e!==void 0&&!F(r[t],e)||e===void 0&&!(t in r))&&Z(r,t,e)}var Dr=Rm;function Nm(r){return y(r)&&v(r)}var Tt=Nm;function Bm(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var Gr=Bm;function Dm(r){return U(r,j(r))}var ia=Dm;function Gm(r,t,e,o,a,f,n){var i=Gr(r,e),s=Gr(t,e),p=n.get(s);if(p){Dr(r,e,p);return}var u=f?f(i,s,e+"",r,t,n):void 0,l=u===void 0;if(l){var d=m(s),T=!d&&N(s),O=!d&&!T&&rr(s);u=s,d||T||O?m(i)?u=i:Tt(i)?u=Vr(i):T?(l=!1,u=et(s,!0)):O?(l=!1,u=pt(s,!0)):u=[]:ke(s)||R(s)?(u=i,R(i)?u=ia(i):(!h(i)||G(i))&&(u=ut(s))):l=!1}l&&(n.set(s,u),a(u,s,o,f,n),n.delete(s)),Dr(r,e,u)}var sa=Gm;function pa(r,t,e,o,a){r!==t&&Er(t,function(f,n){if(a||(a=new W),h(f))sa(r,t,n,e,pa,o,a);else{var i=o?o(Gr(r,n),f,n+"",r,t,a):void 0;i===void 0&&(i=f),Dr(r,n,i)}},j)}var ua=pa;function Um(r,t,e){for(var o=-1,a=r==null?0:r.length;++o<a;)if(e(t,r[o]))return!0;return!1}var ma=Um;function Km(r){var t=r==null?0:r.length;return t?r[t-1]:void 0}var Wm=Km;function Hm(r){return typeof r=="function"?r:I}var Lr=Hm;function zm(r,t){var e=m(r)?Jr:sr;return e(r,Lr(t))}var B=zm;function qm(r,t){var e=[];return sr(r,function(o,a,f){t(o,a,f)&&e.push(o)}),e}var la=qm;function $m(r,t){var e=m(r)?ot:la;return e(r,w(t,3))}var Mr=$m;function Ym(r){return function(t,e,o){var a=Object(t);if(!v(t)){var f=w(e,3);t=b(t),e=function(i){return f(a[i],i,a)}}var n=r(t,e,o);return n>-1?a[f?t[n]:n]:void 0}}var da=Ym;var Vm=Math.max;function Zm(r,t,e){var o=r==null?0:r.length;if(!o)return-1;var a=e==null?0:kt(e);return a<0&&(a=Vm(o+a,0)),Xr(r,w(t,3),a)}var ca=Zm;var Jm=da(ca),Xm=Jm;function Qm(r,t){var e=-1,o=v(r)?Array(r.length):[];return sr(r,function(a,f,n){o[++e]=t(a,f,n)}),o}var wt=Qm;function km(r,t){var e=m(r)?D:wt;return e(r,w(t,3))}var rl=km;function tl(r,t){return r==null?r:Er(r,Lr(t),j)}var el=tl;function ol(r,t){return r&&jr(r,Lr(t))}var al=ol;function fl(r,t){return r>t}var xa=fl;var nl=Object.prototype,il=nl.hasOwnProperty;function sl(r,t){return r!=null&&il.call(r,t)}var ha=sl;function pl(r,t){return r!=null&&vt(r,t,ha)}var ul=pl;var ml="[object String]";function ll(r){return typeof r=="string"||!m(r)&&y(r)&&P(r)==ml}var ga=ll;function dl(r,t){return D(t,function(e){return r[e]})}var ba=dl;function cl(r){return r==null?[]:ba(r,b(r))}var Ur=cl;var xl="[object Map]",hl="[object Set]",gl=Object.prototype,bl=gl.hasOwnProperty;function yl(r){if(r==null)return!0;if(v(r)&&(m(r)||typeof r=="string"||typeof r.splice=="function"||N(r)||rr(r)||R(r)))return!r.length;var t=M(r);if(t==xl||t==hl)return!r.size;if(Q(r))return!gr(r).length;for(var e in r)if(bl.call(r,e))return!1;return!0}var St=yl;function _l(r){return r===void 0}var pr=_l;function vl(r,t){return r<t}var Pt=vl;function Ol(r,t){var e={};return t=w(t,3),jr(r,function(o,a,f){Z(e,a,t(o,a,f))}),e}var Al=Ol;function Tl(r,t,e){for(var o=-1,a=r.length;++o<a;){var f=r[o],n=t(f);if(n!=null&&(i===void 0?n===n&&!L(n):e(n,i)))var i=n,s=f}return s}var Fr=Tl;function wl(r){return r&&r.length?Fr(r,I,xa):void 0}var Sl=wl;var Pl=xe(function(r,t,e){ua(r,t,e)}),Cl=Pl;function Il(r){return r&&r.length?Fr(r,I,Pt):void 0}var El=Il;function jl(r,t){return r&&r.length?Fr(r,w(t,2),Pt):void 0}var Ll=jl;function Ml(r,t,e,o){if(!h(r))return r;t=fr(t,r);for(var a=-1,f=t.length,n=f-1,i=r;i!=null&&++a<f;){var s=K(t[a]),p=e;if(s==="__proto__"||s==="constructor"||s==="prototype")return r;if(a!=n){var u=i[s];p=o?o(u,s,i):void 0,p===void 0&&(p=h(u)?u:V(t[a+1])?[]:{})}J(i,s,p),i=i[s]}return r}var ya=Ml;function Fl(r,t,e){for(var o=-1,a=t.length,f={};++o<a;){var n=t[o],i=nr(r,n);e(i,n)&&ya(f,fr(n,r),i)}return f}var _a=Fl;function Rl(r,t){var e=r.length;for(r.sort(t);e--;)r[e]=r[e].value;return r}var va=Rl;function Nl(r,t){if(r!==t){var e=r!==void 0,o=r===null,a=r===r,f=L(r),n=t!==void 0,i=t===null,s=t===t,p=L(t);if(!i&&!p&&!f&&r>t||f&&n&&s&&!i&&!p||o&&n&&s||!e&&s||!a)return 1;if(!o&&!f&&!p&&r<t||p&&e&&a&&!o&&!f||i&&e&&a||!n&&a||!s)return-1}return 0}var Oa=Nl;function Bl(r,t,e){for(var o=-1,a=r.criteria,f=t.criteria,n=a.length,i=e.length;++o<n;){var s=Oa(a[o],f[o]);if(s){if(o>=i)return s;var p=e[o];return s*(p=="desc"?-1:1)}}return r.index-t.index}var Aa=Bl;function Dl(r,t,e){t.length?t=D(t,function(f){return m(f)?function(n){return nr(n,f.length===1?f[0]:f)}:f}):t=[I];var o=-1;t=D(t,k(w));var a=wt(r,function(f,n,i){var s=D(t,function(p){return p(f)});return{criteria:s,index:++o,value:f}});return va(a,function(f,n){return Aa(f,n,e)})}var Ta=Dl;var Gl=At("length"),wa=Gl;var Pa="\\ud800-\\udfff",Ul="\\u0300-\\u036f",Kl="\\ufe20-\\ufe2f",Wl="\\u20d0-\\u20ff",Hl=Ul+Kl+Wl,zl="\\ufe0e\\ufe0f",ql="["+Pa+"]",Ft="["+Hl+"]",Rt="\\ud83c[\\udffb-\\udfff]",$l="(?:"+Ft+"|"+Rt+")",Ca="[^"+Pa+"]",Ia="(?:\\ud83c[\\udde6-\\uddff]){2}",Ea="[\\ud800-\\udbff][\\udc00-\\udfff]",Yl="\\u200d",ja=$l+"?",La="["+zl+"]?",Vl="(?:"+Yl+"(?:"+[Ca,Ia,Ea].join("|")+")"+La+ja+")*",Zl=La+ja+Vl,Jl="(?:"+[Ca+Ft+"?",Ft,Ia,Ea,ql].join("|")+")",Sa=RegExp(Rt+"(?="+Rt+")|"+Jl+Zl,"g");function Xl(r){for(var t=Sa.lastIndex=0;Sa.test(r);)++t;return t}var Ma=Xl;function Ql(r){return ro(r)?Ma(r):wa(r)}var Fa=Ql;function kl(r,t){return _a(r,t,function(e,o){return Ot(r,o)})}var Ra=kl;var rd=Xe(function(r,t){return r==null?{}:Ra(r,t)}),td=rd;var ed=Math.ceil,od=Math.max;function ad(r,t,e,o){for(var a=-1,f=od(ed((t-r)/(e||1)),0),n=Array(f);f--;)n[o?f:++a]=r,r+=e;return n}var Na=ad;function fd(r){return function(t,e,o){return o&&typeof o!="number"&&z(t,e,o)&&(e=o=void 0),t=cr(t),e===void 0?(e=t,t=0):e=cr(e),o=o===void 0?t<e?1:-1:cr(o),Na(t,e,o,r)}}var Ba=fd;var nd=Ba(),id=nd;function sd(r,t,e,o,a){return a(r,function(f,n,i){e=o?(o=!1,f):t(e,f,n,i)}),e}var Da=sd;function pd(r,t,e){var o=m(r)?to:Da,a=arguments.length<3;return o(r,w(t,4),e,a,sr)}var Nt=pd;var ud="[object Map]",md="[object Set]";function ld(r){if(r==null)return 0;if(v(r))return ga(r)?Fa(r):r.length;var t=M(r);return t==ud||t==md?r.size:gr(r).length}var dd=ld;var cd=X(function(r,t){if(r==null)return[];var e=t.length;return e>1&&z(r,t[0],t[1])?t=[]:e>2&&z(t[0],t[1],t[2])&&(t=[t[0]]),Ta(r,Ar(t,1),[])}),xd=cd;var hd=1/0,gd=ir&&1/Ir(new ir([,-0]))[1]==hd?function(r){return new ir(r)}:ie,Ga=gd;var bd=200;function yd(r,t,e){var o=-1,a=de,f=r.length,n=!0,i=[],s=i;if(e)n=!1,a=ma;else if(f>=bd){var p=t?null:Ga(r);if(p)return Ir(p);n=!1,a=xt,s=new ct}else s=t?[]:i;r:for(;++o<f;){var u=r[o],l=t?t(u):u;if(u=e||u!==0?u:0,n&&l===l){for(var d=s.length;d--;)if(s[d]===l)continue r;t&&s.push(l),i.push(u)}else a(s,l,e)||(s!==i&&s.push(l),i.push(u))}return i}var Ua=yd;var _d=X(function(r){return Ua(Ar(r,1,Tt,!0))}),Bt=_d;var vd=0;function Od(r){var t=++vd;return tt(r)+t}var Ad=Od;function Td(r,t,e){for(var o=-1,a=r.length,f=t.length,n={};++o<a;){var i=o<f?t[o]:void 0;e(n,r[o],i)}return n}var Ka=Td;function wd(r,t){return Ka(r||[],t||[],J)}var Sd=wd;var Cd="\0",dr="\0",Wa="",Wr=class{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[dr]={}),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 G(t)||(t=Y(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return b(this._nodes)}sources(){var t=this;return Mr(this.nodes(),function(e){return St(t._in[e])})}sinks(){var t=this;return Mr(this.nodes(),function(e){return St(t._out[e])})}setNodes(t,e){var o=arguments,a=this;return B(t,function(f){o.length>1?a.setNode(f,e):a.setNode(f)}),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]=dr,this._children[t]={},this._children[dr][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=>this.removeEdge(this._edgeObjs[o]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],B(this.children(t),o=>{this.setParent(o)}),delete this._children[t]),B(b(this._in[t]),e),delete this._in[t],delete this._preds[t],B(b(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(pr(e))e=dr;else{e+="";for(var o=e;!pr(o);o=this.parent(o))if(o===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!==dr)return e}}children(t){if(pr(t)&&(t=dr),this._isCompound){var e=this._children[t];if(e)return b(e)}else{if(t===dr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return b(e)}successors(t){var e=this._sucs[t];if(e)return b(e)}neighbors(t){var e=this.predecessors(t);if(e)return Bt(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 o=this;B(this._nodes,function(n,i){t(i)&&e.setNode(i,n)}),B(this._edgeObjs,function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,o.edge(n))});var a={};function f(n){var i=o.parent(n);return i===void 0||e.hasNode(i)?(a[n]=i,i):i in a?a[i]:f(i)}return this._isCompound&&B(e.nodes(),function(n){e.setParent(n,f(n))}),e}setDefaultEdgeLabel(t){return G(t)||(t=Y(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ur(this._edgeObjs)}setPath(t,e){var o=this,a=arguments;return Nt(t,function(f,n){return a.length>1?o.setEdge(f,n,e):o.setEdge(f,n),n}),this}setEdge(){var t,e,o,a,f=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(t=n.v,e=n.w,o=n.name,arguments.length===2&&(a=arguments[1],f=!0)):(t=n,e=arguments[1],o=arguments[3],arguments.length>2&&(a=arguments[2],f=!0)),t=""+t,e=""+e,pr(o)||(o=""+o);var i=Kr(this._isDirected,t,e,o);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i))return f&&(this._edgeLabels[i]=a),this;if(!pr(o)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=f?a:this._defaultEdgeLabelFn(t,e,o);var s=Id(this._isDirected,t,e,o);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[i]=s,Ha(this._preds[e],t),Ha(this._sucs[t],e),this._in[e][i]=s,this._out[t][i]=s,this._edgeCount++,this}edge(t,e,o){var a=arguments.length===1?Dt(this._isDirected,arguments[0]):Kr(this._isDirected,t,e,o);return this._edgeLabels[a]}hasEdge(t,e,o){var a=arguments.length===1?Dt(this._isDirected,arguments[0]):Kr(this._isDirected,t,e,o);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(t,e,o){var a=arguments.length===1?Dt(this._isDirected,arguments[0]):Kr(this._isDirected,t,e,o),f=this._edgeObjs[a];return f&&(t=f.v,e=f.w,delete this._edgeLabels[a],delete this._edgeObjs[a],za(this._preds[e],t),za(this._sucs[t],e),delete this._in[e][a],delete this._out[t][a],this._edgeCount--),this}inEdges(t,e){var o=this._in[t];if(o){var a=Ur(o);return e?Mr(a,function(f){return f.v===e}):a}}outEdges(t,e){var o=this._out[t];if(o){var a=Ur(o);return e?Mr(a,function(f){return f.w===e}):a}}nodeEdges(t,e){var o=this.inEdges(t,e);if(o)return o.concat(this.outEdges(t,e))}};Wr.prototype._nodeCount=0;Wr.prototype._edgeCount=0;function Ha(r,t){r[t]?r[t]++:r[t]=1}function za(r,t){--r[t]||delete r[t]}function Kr(r,t,e,o){var a=""+t,f=""+e;if(!r&&a>f){var n=a;a=f,f=n}return a+Wa+f+Wa+(pr(o)?Cd:o)}function Id(r,t,e,o){var a=""+t,f=""+e;if(!r&&a>f){var n=a;a=f,f=n}var i={v:a,w:f};return o&&(i.name=o),i}function Dt(r,t){return Kr(r,t.v,t.w,t.name)}export{m as a,Y as b,Lt as c,Su as d,Eu as e,jm as f,Fm as g,Wm as h,B as i,Mr as j,Xm as k,rl as l,el as m,al as n,ul as o,Ur as p,pr as q,Al as r,Sl as s,Cl as t,El as u,Ll as v,td as w,id as x,Nt as y,dd as z,xd as A,Ad as B,Sd as C,Wr as D};
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty,o=(r,e)=>a(r,"name",{value:e,configurable:!0}),_=(r,e)=>{for(var t in e)a(r,t,{get:e[t],enumerable:!0})};export{o as a,_ as b};
@@ -0,0 +1 @@
1
+ import{a as v}from"./chunk-EIBFAW37.js";import{a as nt,b as rt}from"./chunk-6DHFEWGX.js";var P=nt((U,J)=>{(function(f,h){typeof U=="object"&&typeof J<"u"?J.exports=h():typeof define=="function"&&define.amd?define(h):(f=typeof globalThis<"u"?globalThis:f||self).dayjs=h()})(U,(function(){"use strict";var f=1e3,h=6e4,V=36e5,j="millisecond",Y="second",T="minute",x="hour",p="day",R="week",b="month",Z="quarter",w="year",A="date",z="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,tt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var n=["th","st","nd","rd"],t=i%100;return"["+i+(n[(t-20)%10]||n[t]||n[0])+"]"}},F=function(i,n,t){var r=String(i);return!r||r.length>=n?i:""+Array(n+1-r.length).join(t)+i},et={s:F,z:function(i){var n=-i.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function i(n,t){if(n.date()<t.date())return-i(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,b),s=t-e<0,o=n.clone().add(r+(s?-1:1),b);return+(-(r+(t-e)/(s?e-o:o-e))||0)},a:function(i){return i<0?Math.ceil(i)||0:Math.floor(i)},p:function(i){return{M:b,y:w,w:R,d:p,D:A,h:x,m:T,s:Y,ms:j,Q:Z}[i]||String(i||"").toLowerCase().replace(/s$/,"")},u:function(i){return i===void 0}},H="en",O={};O[H]=tt;var G="$isDayjsObject",I=function(i){return i instanceof E||!(!i||!i[G])},B=function i(n,t,r){var e;if(!n)return H;if(typeof n=="string"){var s=n.toLowerCase();O[s]&&(e=s),t&&(O[s]=t,e=s);var o=n.split("-");if(!e&&o.length>1)return i(o[0])}else{var u=n.name;O[u]=n,e=u}return!r&&e&&(H=e),e||!r&&H},l=function(i,n){if(I(i))return i.clone();var t=typeof n=="object"?n:{};return t.date=i,t.args=arguments,new E(t)},a=et;a.l=B,a.i=I,a.w=function(i,n){return l(i,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var E=(function(){function i(t){this.$L=B(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[G]=!0}var n=i.prototype;return n.parse=function(t){this.$d=(function(r){var e=r.date,s=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var o=e.match(K);if(o){var u=o[2]-1||0,c=(o[7]||"0").substring(0,3);return s?new Date(Date.UTC(o[1],u,o[3]||1,o[4]||0,o[5]||0,o[6]||0,c)):new Date(o[1],u,o[3]||1,o[4]||0,o[5]||0,o[6]||0,c)}}return new Date(e)})(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==z},n.isSame=function(t,r){var e=l(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return l(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<l(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,s=!!a.u(r)||r,o=a.p(t),u=function(L,g){var S=a.w(e.$u?Date.UTC(e.$y,g,L):new Date(e.$y,g,L),e);return s?S:S.endOf(p)},c=function(L,g){return a.w(e.toDate()[L].apply(e.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(g)),e)},d=this.$W,$=this.$M,m=this.$D,k="set"+(this.$u?"UTC":"");switch(o){case w:return s?u(1,0):u(31,11);case b:return s?u(1,$):u(0,$+1);case R:var _=this.$locale().weekStart||0,C=(d<_?d+7:d)-_;return u(s?m-C:m+(6-C),$);case p:case A:return c(k+"Hours",0);case x:return c(k+"Minutes",1);case T:return c(k+"Seconds",2);case Y:return c(k+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,s=a.p(t),o="set"+(this.$u?"UTC":""),u=(e={},e[p]=o+"Date",e[A]=o+"Date",e[b]=o+"Month",e[w]=o+"FullYear",e[x]=o+"Hours",e[T]=o+"Minutes",e[Y]=o+"Seconds",e[j]=o+"Milliseconds",e)[s],c=s===p?this.$D+(r-this.$W):r;if(s===b||s===w){var d=this.clone().set(A,1);d.$d[u](c),d.init(),this.$d=d.set(A,Math.min(this.$D,d.daysInMonth())).$d}else u&&this.$d[u](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,s=this;t=Number(t);var o=a.p(r),u=function($){var m=l(s);return a.w(m.date(m.date()+Math.round($*t)),s)};if(o===b)return this.set(b,this.$M+t);if(o===w)return this.set(w,this.$y+t);if(o===p)return u(1);if(o===R)return u(7);var c=(e={},e[T]=h,e[x]=V,e[Y]=f,e)[o]||1,d=this.$d.getTime()+t*c;return a.w(d,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||z;var s=t||"YYYY-MM-DDTHH:mm:ssZ",o=a.z(this),u=this.$H,c=this.$m,d=this.$M,$=e.weekdays,m=e.months,k=e.meridiem,_=function(g,S,W,N){return g&&(g[S]||g(r,s))||W[S].slice(0,N)},C=function(g){return a.s(u%12||12,g,"0")},L=k||function(g,S,W){var N=g<12?"AM":"PM";return W?N.toLowerCase():N};return s.replace(X,(function(g,S){return S||(function(W){switch(W){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return d+1;case"MM":return a.s(d+1,2,"0");case"MMM":return _(e.monthsShort,d,m,3);case"MMMM":return _(m,d);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return _(e.weekdaysMin,r.$W,$,2);case"ddd":return _(e.weekdaysShort,r.$W,$,3);case"dddd":return $[r.$W];case"H":return String(u);case"HH":return a.s(u,2,"0");case"h":return C(1);case"hh":return C(2);case"a":return L(u,c,!0);case"A":return L(u,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return o}return null})(g)||o.replace(":","")}))},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var s,o=this,u=a.p(r),c=l(t),d=(c.utcOffset()-this.utcOffset())*h,$=this-c,m=function(){return a.m(o,c)};switch(u){case w:s=m()/12;break;case b:s=m();break;case Z:s=m()/3;break;case R:s=($-d)/6048e5;break;case p:s=($-d)/864e5;break;case x:s=$/V;break;case T:s=$/h;break;case Y:s=$/f;break;default:s=$}return e?s:a.a(s)},n.daysInMonth=function(){return this.endOf(b).$D},n.$locale=function(){return O[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),s=B(t,r,!0);return s&&(e.$L=s),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},i})(),q=E.prototype;return l.prototype=q,[["$ms",j],["$s",Y],["$m",T],["$H",x],["$W",p],["$M",b],["$y",w],["$D",A]].forEach((function(i){q[i[1]]=function(n){return this.$g(n,i[0],i[1])}})),l.extend=function(i,n){return i.$i||(i(n,E,l),i.$i=!0),l},l.locale=B,l.isDayjs=I,l.unix=function(i){return l(1e3*i)},l.en=O[H],l.Ls=O,l.p={},l}))});var Q=rt(P(),1),D={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},y={trace:v((...f)=>{},"trace"),debug:v((...f)=>{},"debug"),info:v((...f)=>{},"info"),warn:v((...f)=>{},"warn"),error:v((...f)=>{},"error"),fatal:v((...f)=>{},"fatal")},st=v(function(f="fatal"){let h=D.fatal;typeof f=="string"?f.toLowerCase()in D&&(h=D[f]):typeof f=="number"&&(h=f),y.trace=()=>{},y.debug=()=>{},y.info=()=>{},y.warn=()=>{},y.error=()=>{},y.fatal=()=>{},h<=D.fatal&&(y.fatal=console.error?console.error.bind(console,M("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",M("FATAL"))),h<=D.error&&(y.error=console.error?console.error.bind(console,M("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",M("ERROR"))),h<=D.warn&&(y.warn=console.warn?console.warn.bind(console,M("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",M("WARN"))),h<=D.info&&(y.info=console.info?console.info.bind(console,M("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",M("INFO"))),h<=D.debug&&(y.debug=console.debug?console.debug.bind(console,M("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",M("DEBUG"))),h<=D.trace&&(y.trace=console.debug?console.debug.bind(console,M("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",M("TRACE")))},"setLogLevel"),M=v(f=>`%c${(0,Q.default)().format("ss.SSS")} : ${f} : `,"format");export{P as a,y as b,st as c};
@@ -0,0 +1 @@
1
+ import{a as r,b as s,c as l,d as a,e as c,g as v,j as u,x as E,y as m}from"./chunk-VYZZPKGK.js";var V=class extends m{static{r(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},S=new Set(["cmd","command"]),y=new Set(["evt","event"]),d=new Set(["rmo","readmodel"]),h=new Set(["pcr","processor"]),M=new Set(["ui"]);function T(e){let t=e.validation.EventModelingValidator,o=e.validation.ValidationRegistry;if(o){let i={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};o.register(i,t)}}r(T,"registerValidationChecks");var k=class{static{r(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(S.has(e.modelEntityType)?this.validateSources(e,new Set([...M,...h]),"command","ui or processor",t):y.has(e.modelEntityType)?this.validateSources(e,S,"event","command",t):d.has(e.modelEntityType)?this.validateSources(e,y,"read model","event",t):h.has(e.modelEntityType)?this.validateSources(e,d,"processor","read model",t):M.has(e.modelEntityType)&&this.validateSources(e,d,"ui","read model",t))}validateSources(e,t,o,i,g){for(let p of e.sourceFrames){let n=p.ref;n!==void 0&&!t.has(n.modelEntityType)&&g("error",`A ${o} can only receive input from a ${i}, not from '${n.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},C={parser:{TokenBuilder:r(()=>new V,"TokenBuilder"),ValueConverter:r(()=>new E,"ValueConverter")},validation:{EventModelingValidator:r(()=>new k,"EventModelingValidator")}};function w(e=c){let t=a(l(e),v),o=a(s({shared:t}),u,C);return t.ServiceRegistry.register(o),T(o),{shared:t,EventModel:o}}r(w,"createEventModelingServices");export{C as a,w as b};
@@ -0,0 +1,231 @@
1
+ import{a as Wt}from"./chunk-D3WOCELE.js";import{a as jt}from"./chunk-2RQCUDTG.js";import{b as Mt}from"./chunk-34FHPXU4.js";import{h as Ut}from"./chunk-PLP5XUTJ.js";import{g as Gt,p as Vt}from"./chunk-6DCNDVBX.js";import{N as M,T as Nt,U as Rt,V as $t,W as Ft,X as Pt,Y as Bt,Z as Yt,_ as $,g as Ot}from"./chunk-7CSIRG7W.js";import{b as E}from"./chunk-ERWOH47R.js";import{a as f}from"./chunk-EIBFAW37.js";import{e as pt}from"./chunk-LGUG3SQB.js";var Ct=(function(){var t=f(function(V,a,d,r){for(d=d||{},r=V.length;r--;d[V[r]]=a);return d},"o"),e=[1,2],l=[1,3],s=[1,4],c=[2,4],h=[1,9],p=[1,11],y=[1,16],o=[1,17],T=[1,18],m=[1,19],N=[1,33],x=[1,20],_=[1,21],u=[1,22],L=[1,23],I=[1,24],C=[1,26],F=[1,27],A=[1,28],P=[1,29],w=[1,30],H=[1,31],it=[1,32],rt=[1,35],at=[1,36],nt=[1,37],ot=[1,38],z=[1,34],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Lt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],Tt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(a,d,r,g,b,i,K){var n=i.length-1;switch(b){case 3:return g.setRootDoc(i[n]),i[n];break;case 4:this.$=[];break;case 5:i[n]!="nl"&&(i[n-1].push(i[n]),this.$=i[n-1]);break;case 6:case 7:this.$=i[n];break;case 8:this.$="nl";break;case 12:this.$=i[n];break;case 13:let ht=i[n-1];ht.description=g.trimColon(i[n]),this.$=ht;break;case 14:this.$={stmt:"relation",state1:i[n-2],state2:i[n]};break;case 15:let ut=g.trimColon(i[n]);this.$={stmt:"relation",state1:i[n-3],state2:i[n-1],description:ut};break;case 19:this.$={stmt:"state",id:i[n-3],type:"default",description:"",doc:i[n-1]};break;case 20:var B=i[n],Y=i[n-2].trim();if(i[n].match(":")){var Q=i[n].split(":");B=Q[0],Y=[Y,Q[1]]}this.$={stmt:"state",id:B,type:"default",description:Y};break;case 21:this.$={stmt:"state",id:i[n-3],type:"default",description:i[n-5],doc:i[n-1]};break;case 22:this.$={stmt:"state",id:i[n],type:"fork"};break;case 23:this.$={stmt:"state",id:i[n],type:"join"};break;case 24:this.$={stmt:"state",id:i[n],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[n-1].trim(),note:{position:i[n-2].trim(),text:i[n].trim()}};break;case 29:this.$=i[n].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[n].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[n-3],url:i[n-2],tooltip:i[n-1]};break;case 33:this.$={stmt:"click",id:i[n-3],url:i[n-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[n-1].trim(),classes:i[n].trim()};break;case 36:this.$={stmt:"style",id:i[n-1].trim(),styleClass:i[n].trim()};break;case 37:this.$={stmt:"applyClass",id:i[n-1].trim(),styleClass:i[n].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[n].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[n-2].trim(),classes:[i[n].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[n-2].trim(),classes:[i[n].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:l,6:s},{1:[3]},{3:5,4:e,5:l,6:s},{3:6,4:e,5:l,6:s},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],c,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:o,19:T,22:m,24:N,25:x,26:_,27:u,28:L,29:I,32:25,33:C,35:F,37:A,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:y,17:o,19:T,22:m,24:N,25:x,26:_,27:u,28:L,29:I,32:25,33:C,35:F,37:A,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,40],15:[1,41]}),t(S,[2,16]),{18:[1,42]},t(S,[2,18],{20:[1,43]}),{23:[1,44]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(S,[2,28]),{34:[1,49]},{36:[1,50]},t(S,[2,31]),{13:51,24:N,57:z},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(S,[2,38]),t(S,[2,39]),t(S,[2,40]),t(S,[2,41]),t(S,[2,6]),t(S,[2,13]),{13:58,24:N,57:z},t(S,[2,17]),t(Lt,c,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(S,[2,29]),t(S,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(S,[2,14],{14:[1,71]}),{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:o,19:T,21:[1,72],22:m,24:N,25:x,26:_,27:u,28:L,29:I,32:25,33:C,35:F,37:A,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(S,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(S,[2,15]),t(S,[2,19]),t(Lt,c,{7:78}),t(S,[2,26]),t(S,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:y,17:o,19:T,21:[1,81],22:m,24:N,25:x,26:_,27:u,28:L,29:I,32:25,33:C,35:F,37:A,38:P,41:w,45:H,48:it,51:rt,52:at,53:nt,54:ot,57:z},t(S,[2,32]),t(S,[2,33]),t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(a,d){if(d.recoverable)this.trace(a);else{var r=new Error(a);throw r.hash=d,r}},"parseError"),parse:f(function(a){var d=this,r=[0],g=[],b=[null],i=[],K=this.table,n="",B=0,Y=0,Q=0,ht=2,ut=1,fe=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&(W.yy[bt]=this.yy[bt]);k.setInput(a,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Et=k.yylloc;i.push(Et);var pe=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(O){r.length=r.length-2*O,b.length=b.length-O,i.length=i.length-O}f(Se,"popStack");function It(){var O;return O=g.pop()||k.lex()||ut,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=d.symbols_[O]||O),O}f(It,"lex");for(var D,mt,j,R,Ve,kt,X={},dt,G,wt,ft;;){if(j=r[r.length-1],this.defaultActions[j]?R=this.defaultActions[j]:((D===null||typeof D>"u")&&(D=It()),R=K[j]&&K[j][D]),typeof R>"u"||!R.length||!R[0]){var _t="";ft=[];for(dt in K[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");k.showPosition?_t="Parse error on line "+(B+1)+`:
2
+ `+k.showPosition()+`
3
+ Expecting `+ft.join(", ")+", got '"+(this.terminals_[D]||D)+"'":_t="Parse error on line "+(B+1)+": Unexpected "+(D==ut?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(_t,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:Et,expected:ft})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+D);switch(R[0]){case 1:r.push(D),b.push(k.yytext),i.push(k.yylloc),r.push(R[1]),D=null,mt?(D=mt,mt=null):(Y=k.yyleng,n=k.yytext,B=k.yylineno,Et=k.yylloc,Q>0&&Q--);break;case 2:if(G=this.productions_[R[1]][1],X.$=b[b.length-G],X._$={first_line:i[i.length-(G||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(G||1)].first_column,last_column:i[i.length-1].last_column},pe&&(X._$.range=[i[i.length-(G||1)].range[0],i[i.length-1].range[1]]),kt=this.performAction.apply(X,[n,Y,B,W.yy,R[1],b,i].concat(fe)),typeof kt<"u")return kt;G&&(r=r.slice(0,-1*G*2),b=b.slice(0,-1*G),i=i.slice(0,-1*G)),r.push(this.productions_[R[1]][0]),b.push(X.$),i.push(X._$),wt=K[r[r.length-2]][r[r.length-1]],r.push(wt);break;case 3:return!0}}return!0},"parse")},de=(function(){var V={EOF:1,parseError:f(function(d,r){if(this.yy.parser)this.yy.parser.parseError(d,r);else throw new Error(d)},"parseError"),setInput:f(function(a,d){return this.yy=d||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:f(function(a){var d=a.length,r=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=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),r.length-1&&(this.yylineno-=r.length-1);var b=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:r?(r.length===g.length?this.yylloc.first_column:0)+g[g.length-r.length].length-r[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(a){this.unput(this.match.slice(a))},"less"),pastInput:f(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
5
+ `+d+"^"},"showPosition"),test_match:f(function(a,d){var r,g,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),g=a[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],r=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var i in b)this[i]=b[i];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,d,r,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),i=0;i<b.length;i++)if(r=this._input.match(this.rules[b[i]]),r&&(!d||r[0].length>d[0].length)){if(d=r,g=i,this.options.backtrack_lexer){if(a=this.test_match(r,b[i]),a!==!1)return a;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(a=this.test_match(d,b[g]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f(function(){var d=this.next();return d||this.lex()},"lex"),begin:f(function(d){this.conditionStack.push(d)},"begin"),popState:f(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(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:f(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:f(function(d){this.begin(d)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f(function(d,r,g,b){function i(){let n=r.yytext.indexOf("%%");if(n===0)return!1;if(n>0){let B=r.yytext.slice(0,n),Y=r.yytext.slice(n);Y&&d.lexer.unput(Y),r.yytext=B}return!0}f(i,"processId");var K=b;switch(g){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!i())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw new Error('Error: State name must be a single word. Found: "'+r.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;break;case 56:return this.popState(),21;break;case 57:break;case 58:return this.begin("NOTE"),29;break;case 59:return this.popState(),this.pushState("NOTE_ID"),59;break;case 60:return this.popState(),this.pushState("NOTE_ID"),60;break;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 63:break;case 64:return"NOTE_TEXT";case 65:if(!i())return;return this.popState(),"ID";break;case 66:if(!i())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 67:return this.popState(),r.yytext=r.yytext.substr(2).trim(),31;break;case 68:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),31;break;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return i()?24:void 0;case 74:return r.yytext=r.yytext.trim(),14;break;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return V})();Tt.lexer=de;function ct(){this.yy={}}return f(ct,"Parser"),ct.prototype=Tt,Tt.Parser=ct,new ct})();Ct.parser=Ct;var Je=Ct,ye="TB",Zt="TB",Ht="dir",q="state",J="root",At="relation",ge="classDef",Te="style",be="applyClass",et="default",te="divider",ee="fill:none",se="fill: #333",ie="c",re="markdown",ae="normal",Dt="rect",vt="rectWithTitle",Ee="stateStart",me="stateEnd",zt="divider",Kt="roundedWithTitle",ke="note",_e="noteGroup",st="statediagram",De="state",ve=`${st}-${De}`,ne="transition",Ce="note",Ae="note-edge",xe=`${ne} ${Ae}`,Le=`${st}-${Ce}`,Ie="cluster",we=`${st}-${Ie}`,Oe="cluster-alt",Ne=`${st}-${Oe}`,oe="parent",le="note",Re="state",xt="----",$e=`${xt}${le}`,Xt=`${xt}${oe}`,ce=f((t,e=Zt)=>{if(!t.doc)return e;let l=e;for(let s of t.doc)s.stmt==="dir"&&(l=s.value);return l},"getDir"),Fe=f(function(t,e){return e.db.getClasses()},"getClasses"),Pe=f(async function(t,e,l,s){E.info("REF0:"),E.info("Drawing state diagram (v2)",e);let{securityLevel:c,state:h,layout:p}=$();s.db.extract(s.db.getRootDocV2());let y=s.db.getData(),o=Wt(e,c);y.type=s.type,y.layoutAlgorithm=p,y.nodeSpacing=h?.nodeSpacing||50,y.rankSpacing=h?.rankSpacing||50,$().look==="neo"?y.markers=["barbNeo"]:y.markers=["barb"],y.diagramId=e,await Mt(y,o);let m=8;try{(typeof s.db.getLinks=="function"?s.db.getLinks():new Map).forEach((x,_)=>{let u=typeof _=="string"?_:typeof _?.id=="string"?_.id:"",L=y.nodes.find(w=>w.id===u);if(!u){E.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(_));return}let I=o.node()?.querySelectorAll("g.node, g.rough-node"),C;if(I?.forEach(w=>{let H=w.textContent?.trim();(w.id===L?.domId||H===u)&&(C=w)}),!C){E.warn("\u26A0\uFE0F Could not find node matching text:",u);return}let F=C.parentNode;if(!F){E.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",u);return}let A=document.createElementNS("http://www.w3.org/2000/svg","a"),P=x.url.replace(/^"+|"+$/g,"");if(A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",P),A.setAttribute("target","_blank"),x.tooltip){let w=x.tooltip.replace(/^"+|"+$/g,"");A.setAttribute("title",w),C.setAttribute("title",w)}F.replaceChild(A,C),A.appendChild(C),E.info("\u{1F517} Wrapped node in <a> tag for:",u,x.url)})}catch(N){E.error("\u274C Error injecting clickable links:",N)}Vt.insertTitle(o,"statediagramTitleText",h?.titleTopMargin??25,s.db.getDiagramTitle()),jt(o,m,st,h?.useMaxWidth??!0)},"draw"),qe={getClasses:Fe,draw:Pe,getDir:ce},yt=new Map,U=0;function gt(t="",e=0,l="",s=xt){let c=l!==null&&l.length>0?`${s}${l}`:"";return`${Re}-${t}${c}-${e}`}f(gt,"stateDomId");var Be=f((t,e,l,s,c,h,p,y)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case q:tt(t,o,l,s,c,h,p,y);break;case et:tt(t,o,l,s,c,h,p,y);break;case At:{tt(t,o.state1,l,s,c,h,p,y),tt(t,o.state2,l,s,c,h,p,y);let T=p==="neo",m={id:"edge"+U,start:o.state1.id,end:o.state2.id,arrowhead:"normal",arrowTypeEnd:T?"arrow_barb_neo":"arrow_barb",style:ee,labelStyle:"",label:M.sanitizeText(o.description??"",$()),arrowheadStyle:se,labelpos:ie,labelType:re,thickness:ae,classes:ne,look:p};c.push(m),U++}break}})},"setupDoc"),Jt=f((t,e=Zt)=>{let l=e;if(t.doc)for(let s of t.doc)s.stmt==="dir"&&(l=s.value);return l},"getDir");function Z(t,e,l){if(!e.id||e.id==="</join></fork>"||e.id==="</choice>")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(c=>{let h=l.get(c);h&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...h.styles])}));let s=t.find(c=>c.id===e.id);s?Object.assign(s,e):t.push(e)}f(Z,"insertOrUpdateNode");function he(t){return t?.classes?.join(" ")??""}f(he,"getClassesFromDbInfo");function ue(t){return t?.styles??[]}f(ue,"getStylesFromDbInfo");var tt=f((t,e,l,s,c,h,p,y)=>{let o=e.id,T=l.get(o),m=he(T),N=ue(T),x=$();if(E.info("dataFetcher parsedItem",e,T,N),o!=="root"){let _=Dt;e.start===!0?_=Ee:e.start===!1&&(_=me),e.type!==et&&(_=e.type),yt.get(o)||yt.set(o,{id:o,shape:_,description:M.sanitizeText(o,x),cssClasses:`${m} ${ve}`,cssStyles:N});let u=yt.get(o);e.description&&(Array.isArray(u.description)?(u.shape=vt,u.description.push(e.description)):u.description?.length&&u.description.length>0?(u.shape=vt,u.description===o?u.description=[e.description]:u.description=[u.description,e.description]):(u.shape=Dt,u.description=e.description),u.description=M.sanitizeTextOrArray(u.description,x)),u.description?.length===1&&u.shape===vt&&(u.type==="group"?u.shape=Kt:u.shape=Dt),!u.type&&e.doc&&(E.info("Setting cluster for XCX",o,Jt(e)),u.type="group",u.isGroup=!0,u.dir=Jt(e),u.explicitDir=e.doc.some(I=>I.stmt==="dir"),u.shape=e.type===te?zt:Kt,u.cssClasses=`${u.cssClasses} ${we} ${h?Ne:""}`);let L={labelStyle:"",shape:u.shape,label:u.description,cssClasses:u.cssClasses,cssCompiledStyles:[],cssStyles:u.cssStyles,id:o,dir:u.dir,domId:gt(o,U),type:u.type,isGroup:u.type==="group",padding:8,rx:10,ry:10,look:p,labelType:"markdown"};if(L.shape===zt&&(L.label=""),t&&t.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",t.id),L.parentId=t.id),L.centerLabel=!0,e.note){let I={labelStyle:"",shape:ke,label:e.note.text,labelType:"markdown",cssClasses:Le,cssStyles:[],cssCompiledStyles:[],id:o+$e+"-"+U,domId:gt(o,U,le),type:u.type,isGroup:u.type==="group",padding:x.flowchart?.padding,look:p,position:e.note.position},C=o+Xt,F={labelStyle:"",shape:_e,label:e.note.text,cssClasses:u.cssClasses,cssStyles:[],id:o+Xt,domId:gt(o,U,oe),type:"group",isGroup:!0,padding:16,look:p,position:e.note.position};U++,F.id=C,I.parentId=C,Z(s,F,y),Z(s,I,y),Z(s,L,y);let A=o,P=I.id;e.note.position==="left of"&&(A=I.id,P=o),c.push({id:A+"-"+P,start:A,end:P,arrowhead:"none",arrowTypeEnd:"",style:ee,labelStyle:"",classes:xe,arrowheadStyle:se,labelpos:ie,labelType:re,thickness:ae,look:p})}else Z(s,L,y)}e.doc&&(E.trace("Adding nodes children "),Be(e,e.doc,l,s,c,!h,p,y))},"dataFetcher"),Ye=f(()=>{yt.clear(),U=0},"reset"),v={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},qt=f(()=>new Map,"newClassesList"),Qt=f(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),St=f(t=>JSON.parse(JSON.stringify(t)),"clone"),ts=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=qt(),this.documents={root:Qt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=$t,this.setAccTitle=Rt,this.getAccDescription=Pt,this.setAccDescription=Ft,this.setDiagramTitle=Bt,this.getDiagramTitle=Yt,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{f(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(let s of Array.isArray(t)?t:t.doc)switch(s.stmt){case q:this.addState(s.id.trim(),s.type,s.doc,s.description,s.note);break;case At:this.addRelation(s.state1,s.state2,s.description);break;case ge:this.addStyleClass(s.id.trim(),s.classes);break;case Te:this.handleStyleDef(s);break;case be:this.setCssClass(s.id.trim(),s.styleClass);break;case"click":this.addLink(s.id,s.url,s.tooltip);break}let e=this.getStates(),l=$();Ye(),tt(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,l.look,this.classes);for(let s of this.nodes)if(Array.isArray(s.label)){if(s.description=s.label.slice(1),s.isGroup&&s.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${s.id}]`);s.label=s.label[0]}}handleStyleDef(t){let e=t.id.trim().split(","),l=t.styleClass.split(",");for(let s of e){let c=this.getState(s);if(!c){let h=s.trim();this.addState(h),c=this.getState(h)}c&&(c.styles=l.map(h=>h.replace(/;/g,"")?.trim()))}}setRootDoc(t){E.info("Setting root doc",t),this.rootDoc=t,this.version===1?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,l){if(e.stmt===At){this.docTranslator(t,e.state1,!0),this.docTranslator(t,e.state2,!1);return}if(e.stmt===q&&(e.id===v.START_NODE?(e.id=t.id+(l?"_start":"_end"),e.start=l):e.id=e.id.trim()),e.stmt!==J&&e.stmt!==q||!e.doc)return;let s=[],c=[];for(let h of e.doc)if(h.type===te){let p=St(h);p.doc=St(c),s.push(p),c=[]}else c.push(h);if(s.length>0&&c.length>0){let h={stmt:q,id:Gt(),type:"divider",doc:St(c)};s.push(St(h)),e.doc=s}e.doc.forEach(h=>this.docTranslator(e,h,!0))}getRootDocV2(){return this.docTranslator({id:J,stmt:J},{id:J,stmt:J,doc:this.rootDoc},!0),{id:J,doc:this.rootDoc}}addState(t,e=et,l=void 0,s=void 0,c=void 0,h=void 0,p=void 0,y=void 0){let o=t?.trim();if(!this.currentDocument.states.has(o))E.info("Adding state ",o,s),this.currentDocument.states.set(o,{stmt:q,id:o,descriptions:[],type:e,doc:l,note:c,classes:[],styles:[],textStyles:[]});else{let T=this.currentDocument.states.get(o);if(!T)throw new Error(`State not found: ${o}`);T.doc||(T.doc=l),T.type||(T.type=e)}if(s&&(E.info("Setting state description",o,s),(Array.isArray(s)?s:[s]).forEach(m=>this.addDescription(o,m.trim()))),c){let T=this.currentDocument.states.get(o);if(!T)throw new Error(`State not found: ${o}`);T.note=c,T.note.text=M.sanitizeText(T.note.text,$())}h&&(E.info("Setting state classes",o,h),(Array.isArray(h)?h:[h]).forEach(m=>this.setCssClass(o,m.trim()))),p&&(E.info("Setting state styles",o,p),(Array.isArray(p)?p:[p]).forEach(m=>this.setStyle(o,m.trim()))),y&&(E.info("Setting state styles",o,p),(Array.isArray(y)?y:[y]).forEach(m=>this.setTextStyle(o,m.trim())))}clear(t){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:Qt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=qt(),t||(this.links=new Map,Nt())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){E.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,l){this.links.set(t,{url:e,tooltip:l}),E.warn("Adding link",t,e,l)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===v.START_NODE?(this.startEndCount++,`${v.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=et){return t===v.START_NODE?v.START_TYPE:e}endIdIfNeeded(t=""){return t===v.END_NODE?(this.startEndCount++,`${v.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=et){return t===v.END_NODE?v.END_TYPE:e}addRelationObjs(t,e,l=""){let s=this.startIdIfNeeded(t.id.trim()),c=this.startTypeIfNeeded(t.id.trim(),t.type),h=this.startIdIfNeeded(e.id.trim()),p=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(s,c,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(h,p,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:s,id2:h,relationTitle:M.sanitizeText(l,$())})}addRelation(t,e,l){if(typeof t=="object"&&typeof e=="object")this.addRelationObjs(t,e,l);else if(typeof t=="string"&&typeof e=="string"){let s=this.startIdIfNeeded(t.trim()),c=this.startTypeIfNeeded(t),h=this.endIdIfNeeded(e.trim()),p=this.endTypeIfNeeded(e);this.addState(s,c),this.addState(h,p),this.currentDocument.relations.push({id1:s,id2:h,relationTitle:l?M.sanitizeText(l,$()):void 0})}}addDescription(t,e){let l=this.currentDocument.states.get(t),s=e.startsWith(":")?e.replace(":","").trim():e;l?.descriptions?.push(M.sanitizeText(s,$()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});let l=this.classes.get(t);e&&l&&e.split(v.STYLECLASS_SEP).forEach(s=>{let c=s.replace(/([^;]*);/,"$1").trim();if(RegExp(v.COLOR_KEYWORD).exec(s)){let p=c.replace(v.FILL_KEYWORD,v.BG_FILL).replace(v.COLOR_KEYWORD,v.FILL_KEYWORD);l.textStyles.push(p)}l.styles.push(c)})}getClasses(){return this.classes}setupToolTips(t){let e=Ut();pt(t).select("svg").selectAll("g.node, g.rough-node").on("mouseover",c=>{let h=pt(c.currentTarget),p=h.attr("title");if(p===null)return;let y=c.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.style("left",window.scrollX+y.left+(y.right-y.left)/2+"px").style("top",window.scrollY+y.bottom+"px"),e.html(Ot.sanitize(p)),h.classed("hover",!0)}).on("mouseout",c=>{e.transition().duration(500).style("opacity",0),pt(c.currentTarget).classed("hover",!1)})}setCssClass(t,e){t.split(",").forEach(l=>{let s=this.getState(l);if(!s){let c=l.trim();this.addState(c),s=this.getState(c)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirectionStatement(){return this.rootDoc.find(t=>t.stmt===Ht)}getDirection(){return this.getDirectionStatement()?.value??ye}setDirection(t){let e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:Ht,value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){let t=$();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:ce(this.getRootDocV2())}}getConfig(){return $().state}},Ge=f(t=>`
7
+ defs [id$="-barbEnd"] {
8
+ fill: ${t.transitionColor};
9
+ stroke: ${t.transitionColor};
10
+ }
11
+ g.stateGroup text {
12
+ fill: ${t.nodeBorder};
13
+ stroke: none;
14
+ font-size: 10px;
15
+ }
16
+ g.stateGroup text {
17
+ fill: ${t.textColor};
18
+ stroke: none;
19
+ font-size: 10px;
20
+
21
+ }
22
+ g.stateGroup .state-title {
23
+ font-weight: bolder;
24
+ fill: ${t.stateLabelColor};
25
+ }
26
+
27
+ g.stateGroup rect {
28
+ fill: ${t.mainBkg};
29
+ stroke: ${t.nodeBorder};
30
+ }
31
+
32
+ g.stateGroup line {
33
+ stroke: ${t.lineColor};
34
+ stroke-width: ${t.strokeWidth||1};
35
+ }
36
+
37
+ .transition {
38
+ stroke: ${t.transitionColor};
39
+ stroke-width: ${t.strokeWidth||1};
40
+ fill: none;
41
+ }
42
+
43
+ .stateGroup .composit {
44
+ fill: ${t.background};
45
+ border-bottom: 1px
46
+ }
47
+
48
+ .stateGroup .alt-composit {
49
+ fill: #e0e0e0;
50
+ border-bottom: 1px
51
+ }
52
+
53
+ .state-note {
54
+ stroke: ${t.noteBorderColor};
55
+ fill: ${t.noteBkgColor};
56
+
57
+ text {
58
+ fill: ${t.noteTextColor};
59
+ stroke: none;
60
+ font-size: 10px;
61
+ }
62
+ }
63
+
64
+ .stateLabel .box {
65
+ stroke: none;
66
+ stroke-width: 0;
67
+ fill: ${t.mainBkg};
68
+ opacity: 0.5;
69
+ }
70
+
71
+ .edgeLabel .label rect {
72
+ fill: ${t.labelBackgroundColor};
73
+ opacity: 0.5;
74
+ }
75
+ .edgeLabel {
76
+ background-color: ${t.edgeLabelBackground};
77
+ p {
78
+ background-color: ${t.edgeLabelBackground};
79
+ }
80
+ rect {
81
+ opacity: 0.5;
82
+ background-color: ${t.edgeLabelBackground};
83
+ fill: ${t.edgeLabelBackground};
84
+ }
85
+ text-align: center;
86
+ }
87
+ .edgeLabel .label text {
88
+ fill: ${t.transitionLabelColor||t.tertiaryTextColor};
89
+ }
90
+ .label div .edgeLabel {
91
+ color: ${t.transitionLabelColor||t.tertiaryTextColor};
92
+ }
93
+
94
+ .stateLabel text {
95
+ fill: ${t.stateLabelColor};
96
+ font-size: 10px;
97
+ font-weight: bold;
98
+ }
99
+
100
+ .node circle.state-start {
101
+ fill: ${t.specialStateColor};
102
+ stroke: ${t.specialStateColor};
103
+ }
104
+
105
+ .node .fork-join {
106
+ fill: ${t.specialStateColor};
107
+ stroke: ${t.specialStateColor};
108
+ }
109
+
110
+ .node circle.state-end {
111
+ fill: ${t.innerEndBackground};
112
+ stroke: ${t.background};
113
+ stroke-width: 1.5
114
+ }
115
+ .end-state-inner {
116
+ fill: ${t.compositeBackground||t.background};
117
+ // stroke: ${t.background};
118
+ stroke-width: 1.5
119
+ }
120
+
121
+ .node rect {
122
+ fill: ${t.stateBkg||t.mainBkg};
123
+ stroke: ${t.stateBorder||t.nodeBorder};
124
+ stroke-width: ${t.strokeWidth||1}px;
125
+ }
126
+ .node polygon {
127
+ fill: ${t.mainBkg};
128
+ stroke: ${t.stateBorder||t.nodeBorder};;
129
+ stroke-width: ${t.strokeWidth||1}px;
130
+ }
131
+ [id$="-barbEnd"] {
132
+ fill: ${t.lineColor};
133
+ }
134
+
135
+ .statediagram-cluster rect {
136
+ fill: ${t.compositeTitleBackground};
137
+ stroke: ${t.stateBorder||t.nodeBorder};
138
+ stroke-width: ${t.strokeWidth||1}px;
139
+ }
140
+
141
+ .cluster-label, .nodeLabel {
142
+ color: ${t.stateLabelColor};
143
+ // line-height: 1;
144
+ }
145
+
146
+ .statediagram-cluster rect.outer {
147
+ rx: 5px;
148
+ ry: 5px;
149
+ }
150
+ .statediagram-state .divider {
151
+ stroke: ${t.stateBorder||t.nodeBorder};
152
+ }
153
+
154
+ .statediagram-state .title-state {
155
+ rx: 5px;
156
+ ry: 5px;
157
+ }
158
+ .statediagram-cluster.statediagram-cluster .inner {
159
+ fill: ${t.compositeBackground||t.background};
160
+ }
161
+ .statediagram-cluster.statediagram-cluster-alt .inner {
162
+ fill: ${t.altBackground?t.altBackground:"#efefef"};
163
+ }
164
+
165
+ .statediagram-cluster .inner {
166
+ rx:0;
167
+ ry:0;
168
+ }
169
+
170
+ .statediagram-state rect.basic {
171
+ rx: 5px;
172
+ ry: 5px;
173
+ }
174
+ .statediagram-state rect.divider {
175
+ stroke-dasharray: 10,10;
176
+ fill: ${t.altBackground?t.altBackground:"#efefef"};
177
+ }
178
+
179
+ .note-edge {
180
+ stroke-dasharray: 5;
181
+ }
182
+
183
+ .statediagram-note rect {
184
+ fill: ${t.noteBkgColor};
185
+ stroke: ${t.noteBorderColor};
186
+ stroke-width: 1px;
187
+ rx: 0;
188
+ ry: 0;
189
+ }
190
+ .statediagram-note rect {
191
+ fill: ${t.noteBkgColor};
192
+ stroke: ${t.noteBorderColor};
193
+ stroke-width: 1px;
194
+ rx: 0;
195
+ ry: 0;
196
+ }
197
+
198
+ .statediagram-note text {
199
+ fill: ${t.noteTextColor};
200
+ }
201
+
202
+ .statediagram-note .nodeLabel {
203
+ color: ${t.noteTextColor};
204
+ }
205
+ .statediagram .edgeLabel {
206
+ color: red; // ${t.noteTextColor};
207
+ }
208
+
209
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
210
+ fill: ${t.lineColor};
211
+ stroke: ${t.lineColor};
212
+ stroke-width: ${t.strokeWidth||1};
213
+ }
214
+
215
+ .statediagramTitleText {
216
+ text-anchor: middle;
217
+ font-size: 18px;
218
+ fill: ${t.textColor};
219
+ }
220
+
221
+ [data-look="neo"].statediagram-cluster rect {
222
+ fill: ${t.mainBkg};
223
+ stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};
224
+ stroke-width: ${t.strokeWidth??1};
225
+ }
226
+ [data-look="neo"].statediagram-cluster rect.outer {
227
+ rx: ${t.radius}px;
228
+ ry: ${t.radius}px;
229
+ filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}
230
+ }
231
+ `,"getStyles"),es=Ge;export{Je as a,qe as b,ts as c,es as d};
@@ -0,0 +1 @@
1
+ function E(t){if(t.aborted)throw new DOMException("Copy request was cancelled","AbortError")}async function A(t,r){if(E(r),navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(t);return}catch{E(r)}E(r);let c=document.activeElement instanceof HTMLElement?document.activeElement:null,a=document.getSelection(),s=a?Array.from({length:a.rangeCount},(e,i)=>a.getRangeAt(i).cloneRange()):[],o=document.createElement("textarea");o.value=t,o.setAttribute("readonly",""),o.style.position="fixed",o.style.inset="0 auto auto -9999px",document.body.append(o);let n=!1;try{o.select(),n=document.execCommand("copy")}finally{if(o.remove(),c?.isConnected&&c.focus({preventScroll:!0}),a){a.removeAllRanges();for(let e of s)try{a.addRange(e)}catch{}}}if(!n)throw new Error("The browser rejected the copy command")}var L=2e3,d="http://www.w3.org/2000/svg",y={code:"Copy code",diagram:"Copy diagram source",formula:"Copy formula source"};function w(t){return t.hasAttribute("data-website-mermaid")||t.getAttribute("lang")?.toLocaleLowerCase("und")==="mermaid"||!!t.querySelector(":scope > code.language-mermaid")}function v(t){let r=document.createElementNS(d,"svg");if(r.classList.add("source-copy__icon"),r.dataset.copyIcon=t,r.setAttribute("viewBox","0 0 20 20"),r.setAttribute("aria-hidden","true"),t==="success"){let s=document.createElementNS(d,"path");return s.setAttribute("d","m3.5 10.5 4 4 9-9"),r.append(s),r}if(t==="error"){let s=document.createElementNS(d,"path"),o=document.createElementNS(d,"path");return s.setAttribute("d","m5 5 10 10"),o.setAttribute("d","m15 5-10 10"),r.append(s,o),r}let c=document.createElementNS(d,"path");c.setAttribute("d","M7 5H4.5A1.5 1.5 0 0 0 3 6.5v9A1.5 1.5 0 0 0 4.5 17h7a1.5 1.5 0 0 0 1.5-1.5V13");let a=document.createElementNS(d,"rect");return a.setAttribute("x","7"),a.setAttribute("y","3"),a.setAttribute("width","10"),a.setAttribute("height","10"),a.setAttribute("rx","1.5"),r.append(c,a),r}function M(t,r){return r==="diagram"?t?.dataset.copyDiagramLabel||y.diagram:r==="formula"?t?.dataset.copyFormulaLabel||y.formula:t?.dataset.copyCodeLabel||y.code}function f(t,r,c){t.dataset.copyState=r,t.setAttribute("aria-label",c),t.title=c,t.replaceChildren(v(r))}function h(t,r,c){let a=t.closest(".note-content"),s=M(a,c);t.dataset.sourceCopy=c;let o=t.querySelector(":scope > template[data-website-copy-source]");o||(o=document.createElement("template"),o.dataset.websiteCopySource="",t.append(o)),o.content.textContent=r;let n=t.querySelector(":scope > button[data-copy-source]");n||(n=document.createElement("button"),n.className="source-copy__button",n.type="button",n.dataset.copySource="",n.lang=document.documentElement.lang,n.dir=document.documentElement.dir,t.append(n)),n.dataset.copyKind=c,n.dataset.copyLabel=s,c==="code"&&(n.dataset.copyCode=""),f(n,"idle",s);let e=t.querySelector(":scope > [data-copy-source-status]");e||(e=document.createElement("span"),e.className="visually-hidden",e.dataset.copySourceStatus="",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.lang=document.documentElement.lang,e.dir=document.documentElement.dir,t.append(e)),t.append(n,e,o)}function q(){let t=[],r=Array.from(document.querySelectorAll(".note-content")),c=new Map,a=!1;for(let o of r)for(let n of o.querySelectorAll("pre")){if(w(n)||n.closest("[data-code-block-copy]"))continue;let e=document.createElement("div");e.className="code-block-copy",e.dataset.codeBlockCopy="";let p=n.querySelector(":scope > code")?.textContent??n.textContent??"";n.replaceWith(e),e.append(n),h(e,p,"code"),t.push(e)}let s=o=>{let n=o.target;if(!(n instanceof Element))return;let e=n.closest("button[data-copy-source]");if(!e)return;let i=e.closest(".note-content");if(!i||!r.includes(i))return;let p=e.closest("[data-source-copy]"),b=p?.querySelector(":scope > template[data-website-copy-source]")?.content.textContent;if(b===void 0)return;let g=c.get(e);g?.request?.abort(),window.clearTimeout(g?.resetTimer);let m=new AbortController,l={request:m};c.set(e,l);let T=e.dataset.copyLabel||y.code,C=i.dataset.copyCodeSuccess||"Copied",S=i.dataset.copyCodeError||"Copy failed",u=p?.querySelector(":scope > [data-copy-source-status]");u&&(u.textContent=""),A(b,m.signal).then(()=>{a||m.signal.aborted||c.get(e)!==l||!i.contains(e)||(f(e,"success",C),u&&(u.textContent=C))}).catch(()=>{a||m.signal.aborted||c.get(e)!==l||!i.contains(e)||(f(e,"error",S),u&&(u.textContent=S))}).finally(()=>{c.get(e)===l&&(delete l.request,!a&&(l.resetTimer=window.setTimeout(()=>{c.get(e)!==l||!i.contains(e)||(f(e,"idle",T),c.delete(e))},L)))})};return r.forEach(o=>o.addEventListener("click",s)),()=>{a=!0,r.forEach(o=>o.removeEventListener("click",s));for(let o of c.values())o.request?.abort(),window.clearTimeout(o.resetTimer);c.clear();for(let o of t){let n=o.querySelector(":scope > pre");n?o.replaceWith(n):o.remove()}}}export{A as a,h as b,q as c};