@hiroleague/taskmanager 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +41 -52
  3. package/dist/assets/architecture-YZFGNWBL-C1MoQeSs.js +1 -0
  4. package/dist/assets/{architectureDiagram-Q4EWVU46-DSQ1_74_.js → architectureDiagram-Q4EWVU46-DUEfvDBu.js} +1 -1
  5. package/dist/assets/{blockDiagram-DXYQGD6D-DfOGNphI.js → blockDiagram-DXYQGD6D-DQzEOPT2.js} +1 -1
  6. package/dist/assets/{chunk-2KRD3SAO-9yt00aGC.js → chunk-2KRD3SAO-C2e-_49I.js} +1 -1
  7. package/dist/assets/{chunk-4TB4RGXK-DF8yJBFl.js → chunk-4TB4RGXK-AZq3s1Dh.js} +1 -1
  8. package/dist/assets/{chunk-67CJDMHE-5wFKo04G.js → chunk-67CJDMHE-B1-M78qu.js} +1 -1
  9. package/dist/assets/{chunk-7N4EOEYR-BRRGX_NC.js → chunk-7N4EOEYR-D7mYFpz-.js} +1 -1
  10. package/dist/assets/{chunk-AA7GKIK3-DUZv_pNI.js → chunk-AA7GKIK3-VWI9k39i.js} +1 -1
  11. package/dist/assets/{chunk-CIAEETIT-mA5aM_d7.js → chunk-CIAEETIT-hnu4zamm.js} +1 -1
  12. package/dist/assets/{chunk-FOC6F5B3-B-cqGCPC.js → chunk-FOC6F5B3-BJsh9nO9.js} +1 -1
  13. package/dist/assets/{chunk-K5T4RW27-BLRDzioh.js → chunk-K5T4RW27-BLIPdXaZ.js} +1 -1
  14. package/dist/assets/{chunk-KGLVRYIC-CTkQSeKy.js → chunk-KGLVRYIC-DvaW2TkT.js} +1 -1
  15. package/dist/assets/{chunk-LIHQZDEY-Cf34Nu3J.js → chunk-LIHQZDEY-CUsM0M11.js} +1 -1
  16. package/dist/assets/{chunk-ORNJ4GCN-D3uXgbay.js → chunk-ORNJ4GCN-CfluNV0_.js} +1 -1
  17. package/dist/assets/{chunk-OYMX7WX6-syQho5jf.js → chunk-OYMX7WX6-CkWzw4JX.js} +1 -1
  18. package/dist/assets/{classDiagram-6PBFFD2Q-CotFZI8-.js → classDiagram-6PBFFD2Q-Dx_f-9b7.js} +1 -1
  19. package/dist/assets/{classDiagram-v2-HSJHXN6E-DAPzeDGn.js → classDiagram-v2-HSJHXN6E-CSfvZ-nt.js} +1 -1
  20. package/dist/assets/clone-CXokakwV.js +1 -0
  21. package/dist/assets/{dagre-rhyPjnsQ.js → dagre-Do0eD9eI.js} +1 -1
  22. package/dist/assets/{dagre-KV5264BT-BBqulDtd.js → dagre-KV5264BT-lveZDhBf.js} +1 -1
  23. package/dist/assets/{diagram-5BDNPKRD-Ky3EXXj0.js → diagram-5BDNPKRD-Dq5yM_uY.js} +1 -1
  24. package/dist/assets/{diagram-G4DWMVQ6-t7LbT0Uz.js → diagram-G4DWMVQ6-D-SYOmKm.js} +1 -1
  25. package/dist/assets/{diagram-MMDJMWI5-CdnLXEMx.js → diagram-MMDJMWI5-lU5t9BZA.js} +1 -1
  26. package/dist/assets/{diagram-TYMM5635-CnzTqJBM.js → diagram-TYMM5635-6tfUbY3R.js} +1 -1
  27. package/dist/assets/{erDiagram-SMLLAGMA-BN5eJerP.js → erDiagram-SMLLAGMA-dx09stuy.js} +1 -1
  28. package/dist/assets/{flatten-C5NL-f24.js → flatten-B2BZ0pzY.js} +1 -1
  29. package/dist/assets/{flowDiagram-DWJPFMVM-CbFskc8S.js → flowDiagram-DWJPFMVM-CJi2WISS.js} +1 -1
  30. package/dist/assets/gitGraph-7Q5UKJZL-BXTuQaDM.js +1 -0
  31. package/dist/assets/{gitGraphDiagram-UUTBAWPF-wpqI2kyI.js → gitGraphDiagram-UUTBAWPF-Bjj94M12.js} +1 -1
  32. package/dist/assets/{graphlib-COiJG5Qv.js → graphlib-BIlXYGdM.js} +1 -1
  33. package/dist/assets/{index-lyyIVcc_.js → index-CZZuue3D.js} +5 -5
  34. package/dist/assets/info-OMHHGYJF-BeeKt8-X.js +1 -0
  35. package/dist/assets/{infoDiagram-42DDH7IO-BbvTdpSV.js → infoDiagram-42DDH7IO-wq_opQKO.js} +1 -1
  36. package/dist/assets/{ishikawaDiagram-UXIWVN3A-Epc23N_0.js → ishikawaDiagram-UXIWVN3A-Cnc1bwBo.js} +1 -1
  37. package/dist/assets/{kanban-definition-6JOO6SKY-C8dW_26n.js → kanban-definition-6JOO6SKY-CwHbIze0.js} +1 -1
  38. package/dist/assets/{mermaid-parser.core-6Tn8epr_.js → mermaid-parser.core-DrLhKJ48.js} +2 -2
  39. package/dist/assets/{mindmap-definition-QFDTVHPH-CvpNtrKT.js → mindmap-definition-QFDTVHPH-DswAJiEd.js} +1 -1
  40. package/dist/assets/packet-4T2RLAQJ-DQ-H9_jd.js +1 -0
  41. package/dist/assets/pie-ZZUOXDRM-BSj0Jsyj.js +1 -0
  42. package/dist/assets/{pieDiagram-DEJITSTG-eENymoXZ.js → pieDiagram-DEJITSTG-DgQTCddl.js} +1 -1
  43. package/dist/assets/radar-PYXPWWZC-B7-oRPFL.js +1 -0
  44. package/dist/assets/{reduce-BDOBPIXr.js → reduce-Uumu9GdR.js} +1 -1
  45. package/dist/assets/{requirementDiagram-MS252O5E-CmRO3hLp.js → requirementDiagram-MS252O5E-D1moa23Z.js} +1 -1
  46. package/dist/assets/{sequenceDiagram-FGHM5R23-B7qNcwNo.js → sequenceDiagram-FGHM5R23-Dvhj7HGn.js} +1 -1
  47. package/dist/assets/{stateDiagram-FHFEXIEX-CYfGMoR8.js → stateDiagram-FHFEXIEX-Dx5CjenB.js} +1 -1
  48. package/dist/assets/{stateDiagram-v2-QKLJ7IA2-CO1W_n55.js → stateDiagram-v2-QKLJ7IA2-C_PkrTdc.js} +1 -1
  49. package/dist/assets/{timeline-definition-GMOUNBTQ-CQWqDPGG.js → timeline-definition-GMOUNBTQ-z-IncVmK.js} +1 -1
  50. package/dist/assets/treeView-SZITEDCU-CFXle9Az.js +1 -0
  51. package/dist/assets/treemap-W4RFUUIX-CAW3vWh8.js +1 -0
  52. package/dist/assets/{vennDiagram-DHZGUBPP-BjTbuhcb.js → vennDiagram-DHZGUBPP-CT1ehozU.js} +1 -1
  53. package/dist/assets/wardley-RL74JXVD-7q3ju4kc.js +1 -0
  54. package/dist/assets/{wardleyDiagram-NUSXRM2D-DNhPIFCg.js → wardleyDiagram-NUSXRM2D-D-kouujI.js} +1 -1
  55. package/dist/assets/{xychartDiagram-5P7HB3ND-BDblAZ11.js → xychartDiagram-5P7HB3ND-D1lnM0pL.js} +1 -1
  56. package/dist/index.html +1 -1
  57. package/package.json +101 -92
  58. package/scripts/postinstall-message.mjs +160 -0
  59. package/scripts/stubs/node-domexception/index.cjs +18 -0
  60. package/scripts/stubs/node-domexception/package.json +7 -0
  61. package/skills/hiro-task-manager-cli/SKILL.md +97 -0
  62. package/skills/hiro-task-manager-cli/reference/boards.md +143 -0
  63. package/skills/hiro-task-manager-cli/reference/cli-access-policy.md +72 -0
  64. package/skills/hiro-task-manager-cli/reference/errors.md +85 -0
  65. package/skills/hiro-task-manager-cli/reference/lists.md +106 -0
  66. package/skills/hiro-task-manager-cli/reference/releases.md +87 -0
  67. package/skills/hiro-task-manager-cli/reference/search.md +38 -0
  68. package/skills/hiro-task-manager-cli/reference/statuses.md +25 -0
  69. package/skills/hiro-task-manager-cli/reference/tasks.md +144 -0
  70. package/skills/hiro-task-manager-cli/reference/trash.md +50 -0
  71. package/src/cli/bootstrap/launcher.test.ts +66 -0
  72. package/src/cli/bootstrap/launcher.ts +375 -35
  73. package/src/cli/bootstrap/program.ts +4 -0
  74. package/src/cli/bootstrap/runtime.test.ts +15 -0
  75. package/src/cli/bootstrap/runtime.ts +27 -1
  76. package/src/cli/commands/query.ts +56 -56
  77. package/src/cli/commands/server.ts +27 -19
  78. package/src/cli/handlers/boards.test.ts +669 -669
  79. package/src/cli/handlers/cli-wiring.test.ts +1 -1
  80. package/src/cli/handlers/search.test.ts +374 -374
  81. package/src/cli/handlers/search.ts +17 -17
  82. package/src/cli/handlers/server.test.ts +55 -13
  83. package/src/cli/handlers/server.ts +16 -3
  84. package/src/cli/lib/api-client.test.ts +35 -2
  85. package/src/cli/lib/api-client.ts +43 -10
  86. package/src/cli/lib/cli-http-errors.test.ts +85 -85
  87. package/src/cli/lib/command-helpers.ts +161 -154
  88. package/src/cli/lib/config.ts +4 -0
  89. package/src/cli/lib/launcherUi.ts +166 -0
  90. package/src/cli/lib/process.test.ts +24 -5
  91. package/src/cli/lib/process.ts +86 -55
  92. package/src/cli/ports/process.ts +8 -2
  93. package/src/cli/subprocess.real-stack.test.ts +611 -598
  94. package/src/cli/subprocess.smoke.test.ts +954 -969
  95. package/src/cli/types/config.ts +2 -6
  96. package/src/client/components/auth/AuthScreen.tsx +3 -3
  97. package/src/client/components/board/BoardStatsChips.tsx +233 -233
  98. package/src/client/components/board/BoardStatsContext.tsx +41 -41
  99. package/src/client/components/board/boardHeaderButtonStyles.ts +38 -38
  100. package/src/client/components/board/shortcuts/useBoardShortcutKeydown.ts +49 -49
  101. package/src/client/components/board/useBoardCanvasPanScroll.ts +108 -108
  102. package/src/client/components/board/useBoardTaskContainerDroppableReact.ts +33 -33
  103. package/src/client/components/board/useBoardTaskSortableReact.ts +26 -26
  104. package/src/client/components/multi-select.tsx +1206 -1206
  105. package/src/client/components/routing/BoardPage.tsx +20 -20
  106. package/src/client/components/routing/NavigationRegistrar.tsx +13 -13
  107. package/src/client/components/settings/SettingsPage.tsx +1 -1
  108. package/src/client/components/task/TaskCard.tsx +643 -643
  109. package/src/client/components/ui/badge.tsx +49 -49
  110. package/src/client/components/ui/button.tsx +65 -65
  111. package/src/client/components/ui/command.tsx +193 -193
  112. package/src/client/components/ui/dialog.tsx +163 -163
  113. package/src/client/components/ui/input-group.tsx +155 -155
  114. package/src/client/components/ui/input.tsx +19 -19
  115. package/src/client/components/ui/popover.tsx +87 -87
  116. package/src/client/components/ui/separator.tsx +28 -28
  117. package/src/client/components/ui/textarea.tsx +18 -18
  118. package/src/client/index.css +248 -248
  119. package/src/client/lib/appNavigate.ts +16 -16
  120. package/src/client/lib/taskCardDate.ts +111 -111
  121. package/src/client/lib/utils.ts +6 -6
  122. package/src/server/auth.ts +351 -302
  123. package/src/server/bootstrapDev.ts +11 -2
  124. package/src/server/bootstrapInstalled.ts +6 -1
  125. package/src/server/index.ts +33 -7
  126. package/src/server/migrations/013_cli_policy_and_provenance.ts +2 -2
  127. package/src/server/migrations/019_cli_global_create_board_default_on.ts +14 -0
  128. package/src/server/migrations/registry.ts +43 -41
  129. package/src/server/parseBootstrapProfile.ts +42 -0
  130. package/src/server/storage/cliPolicy.ts +2 -1
  131. package/src/shared/runtimeConfig.ts +256 -237
  132. package/src/shared/runtimeIdentity.test.ts +47 -0
  133. package/src/shared/runtimeIdentity.ts +35 -0
  134. package/src/shared/serverStatus.ts +21 -0
  135. package/src/shared/skillsInstall.ts +71 -0
  136. package/src/shared/terminalColors.ts +24 -0
  137. package/dist/assets/architecture-YZFGNWBL-3h1eIYfB.js +0 -1
  138. package/dist/assets/clone-BRQpYu_n.js +0 -1
  139. package/dist/assets/gitGraph-7Q5UKJZL-CG8f8JF7.js +0 -1
  140. package/dist/assets/info-OMHHGYJF-C8_SHoRO.js +0 -1
  141. package/dist/assets/packet-4T2RLAQJ-BvpAX0kJ.js +0 -1
  142. package/dist/assets/pie-ZZUOXDRM-Ow26Yf-E.js +0 -1
  143. package/dist/assets/radar-PYXPWWZC-e_ron5jQ.js +0 -1
  144. package/dist/assets/treeView-SZITEDCU-DsEr3xeq.js +0 -1
  145. package/dist/assets/treemap-W4RFUUIX-DV7nk2AB.js +0 -1
  146. package/dist/assets/wardley-RL74JXVD-CrrFU9AE.js +0 -1
@@ -1,4 +1,4 @@
1
- import{D as e,L as t,a as n,b as r,c as i,nt as a,s as o,w as s,y as c}from"./chunk-ICPOFSXX-BNR1V8rT.js";import{g as l,h as u,p as d}from"./src-C47h8eAM.js";import{t as f}from"./channel-yBmN_ln0.js";import{H as p,c as m,h,i as g}from"./chunk-5PVQY5BW-BrmXs2Gs.js";import{t as _}from"./line-DNzQATGr.js";import{n as v,t as y}from"./chunk-BSJP7CBP-D8kBlJsf.js";import{n as b,t as x}from"./chunk-ZZ45TVLE-D3I1kLlo.js";import{n as S}from"./chunk-U2HBQHQK-DTJPeU7W.js";import{t as C}from"./chunk-FMBD7UC4-DrNhFt1N.js";import{t as w}from"./graphlib-COiJG5Qv.js";import{t as T}from"./clone-BRQpYu_n.js";var E=(function(){var e=u(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],n=[1,7],r=[1,13],i=[1,14],a=[1,19],o=[1,16],s=[1,17],c=[1,18],l=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:u(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),typeof a[s].length==`number`?this.$=a[s]:this.$=[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]);this.$={id:r.generateId(),type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let n=r.edgeStrToEdgeData(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,directions:a[s].directions,arrowTypeEnd:n,arrowTypeStart:`arrow_open`},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]),this.$={id:r.generateId(),type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()};break}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{8:[1,20]},e(l,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:a,39:o,43:s,46:c}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(l,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(h,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(d,[2,27]),e(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:u(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}u(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}u(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
1
+ import{D as e,L as t,a as n,b as r,c as i,nt as a,s as o,w as s,y as c}from"./chunk-ICPOFSXX-BNR1V8rT.js";import{g as l,h as u,p as d}from"./src-C47h8eAM.js";import{t as f}from"./channel-yBmN_ln0.js";import{H as p,c as m,h,i as g}from"./chunk-5PVQY5BW-BrmXs2Gs.js";import{t as _}from"./line-DNzQATGr.js";import{n as v,t as y}from"./chunk-BSJP7CBP-D8kBlJsf.js";import{n as b,t as x}from"./chunk-ZZ45TVLE-D3I1kLlo.js";import{n as S}from"./chunk-U2HBQHQK-DTJPeU7W.js";import{t as C}from"./chunk-FMBD7UC4-DrNhFt1N.js";import{t as w}from"./graphlib-BIlXYGdM.js";import{t as T}from"./clone-CXokakwV.js";var E=(function(){var e=u(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],n=[1,7],r=[1,13],i=[1,14],a=[1,19],o=[1,16],s=[1,17],c=[1,18],l=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:u(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),typeof a[s].length==`number`?this.$=a[s]:this.$=[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]);this.$={id:r.generateId(),type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let n=r.edgeStrToEdgeData(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,directions:a[s].directions,arrowTypeEnd:n,arrowTypeStart:`arrow_open`},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]),this.$={id:r.generateId(),type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()};break}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{8:[1,20]},e(l,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:a,39:o,43:s,46:c}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(l,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(h,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(d,[2,27]),e(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:u(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}u(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}u(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=(function(){return{EOF:1,parseError:u(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:u(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:u(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:u(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:u(function(){return this._more=!0,this},`more`),reject:u(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
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:u(function(e){this.unput(this.match.slice(e))},`less`),pastInput:u(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:u(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:u(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{_ as e,g as t,h as n,i as r,m as i,s as a,t as o,u as s,v as c}from"./chunk-K5T4RW27-BLRDzioh.js";var l=class extends o{static{i(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},u={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new r,`ValueConverter`)}};function d(r=n){let i=t(c(r),a),o=t(e({shared:i}),s,u);return i.ServiceRegistry.register(o),{shared:i,Radar:o}}i(d,`createRadarServices`);export{d as n,u as t};
1
+ import{_ as e,g as t,h as n,i as r,m as i,s as a,t as o,u as s,v as c}from"./chunk-K5T4RW27-BLIPdXaZ.js";var l=class extends o{static{i(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},u={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new r,`ValueConverter`)}};function d(r=n){let i=t(c(r),a),o=t(e({shared:i}),s,u);return i.ServiceRegistry.register(o),{shared:i,Radar:o}}i(d,`createRadarServices`);export{d as n,u as t};
@@ -1,4 +1,4 @@
1
- import{B as e,C as t,L as n,V as r,W as i,Z as a,_ as o,a as s,b as c,j as l,s as u,v as d}from"./chunk-ICPOFSXX-BNR1V8rT.js";import{g as f,h as p,p as m}from"./src-C47h8eAM.js";import{h,s as g}from"./chunk-5PVQY5BW-BrmXs2Gs.js";import{a as _,o as v}from"./index-lyyIVcc_.js";import{t as y}from"./chunk-FMBD7UC4-DrNhFt1N.js";import{t as b}from"./chunk-YZCP3GAM-9wq0QKUn.js";import{t as x}from"./chunk-55IACEB6-CvSRyJqy.js";import{t as S}from"./chunk-EDXVE4YY-DxUqDyxy.js";var C=(function(){var e=p(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],c=[1,25],l=[1,32],u=[1,33],d=[1,34],f=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],ee=[1,63],P=[1,64],F=[1,8,9,41],te=[1,77],I=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],L=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],R=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],ne=[13,60,68,69,70,71,72,86,100,102,103],B=[1,102],V=[1,120],H=[1,116],U=[1,112],W=[1,118],G=[1,113],K=[1,114],q=[1,115],J=[1,117],Y=[1,119],re=[22,50,60,61,82,86,87,88,89,90],X=[1,8,9,39,41,44,46],Z=[1,8,9,22],ie=[1,150],ae=[1,8,9,61],Q=[1,8,9,22,50,60,61,82,86,87,88,89,90],oe={trace:p(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:p(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]);break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]);break;case 36:this.$=a[s],r.addNamespace(a[s]);break;case 37:this.$=[[a[s]],[]];break;case 38:this.$=[[a[s-1]],[]];break;case 39:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 40:this.$=[[],[a[s]]];break;case 41:this.$=[[],[a[s-1]]];break;case 42:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:r.setCssClass(a[s-2],a[s]);break;case 45:r.addMembers(a[s-3],a[s-1]);break;case 47:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 48:r.addAnnotation(a[s-3],a[s-1]);break;case 49:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 50:r.addAnnotation(a[s-5],a[s-3]);break;case 51:this.$=a[s],r.addClass(a[s]);break;case 52:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 56:r.addAnnotation(a[s],a[s-2]);break;case 57:case 70:this.$=[a[s]];break;case 58:a[s].push(a[s-1]),this.$=a[s];break;case 59:break;case 60:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 61:break;case 62:break;case 63:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 64:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 65:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 66:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 67:this.$=r.addNote(a[s],a[s-1]);break;case 68:this.$=r.addNote(a[s]);break;case 69:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 71:this.$=a[s-2].concat([a[s]]);break;case 72:r.setDirection(`TB`);break;case 73:r.setDirection(`BT`);break;case 74:r.setDirection(`RL`);break;case 75:r.setDirection(`LR`);break;case 76:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 77:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 78:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 79:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 80:this.$=r.relationType.AGGREGATION;break;case 81:this.$=r.relationType.EXTENSION;break;case 82:this.$=r.relationType.COMPOSITION;break;case 83:this.$=r.relationType.DEPENDENCY;break;case 84:this.$=r.relationType.LOLLIPOP;break;case 85:this.$=r.lineType.LINE;break;case 86:this.$=r.lineType.DOTTED_LINE;break;case 87:case 93:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 88:case 94:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 89:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 90:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 91:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 92:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 95:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 96:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 97:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 98:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 99:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 100:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 101:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 102:r.setCssClass(a[s-1],a[s]);break;case 103:this.$=[a[s]];break;case 104:a[s-2].push(a[s]),this.$=a[s-2];break;case 106:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:ee,74:P}),{39:[1,65]},e(F,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,61]),e(O,[2,62]),{16:69,60:f,86:C,100:w,102:T},{16:39,17:40,19:70,60:f,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:f,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:f,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:f,86:C,100:w,102:T,103:E},{13:te,55:76},{58:78,60:[1,79]},e(O,[2,72]),e(O,[2,73]),e(O,[2,74]),e(O,[2,75]),e(I,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:f,86:C,100:w,102:T,103:E}),e(I,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:f,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:f,86:C,100:w,102:T,103:E},e(L,[2,129]),e(L,[2,130]),e(L,[2,131]),e(L,[2,132]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:n,37:r,42:i,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:f,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:ee,74:P},e(O,[2,60]),{67:93,73:ee,74:P},e(R,[2,79],{66:94,68:k,69:A,70:j,71:M,72:N}),e(z,[2,80]),e(z,[2,81]),e(z,[2,82]),e(z,[2,83]),e(z,[2,84]),e(ne,[2,85]),e(ne,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:o,54:l,56:u},{16:99,60:f,86:C,100:w,102:T},{41:[1,101],45:100,51:B},{16:103,60:f,86:C,100:w,102:T},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:V,50:H,59:109,60:U,82:W,84:110,85:111,86:G,87:K,88:q,89:J,90:Y},{60:[1,121]},{13:te,55:122},e(F,[2,68]),e(F,[2,134]),{22:V,50:H,59:123,60:U,61:[1,124],82:W,84:110,85:111,86:G,87:K,88:q,89:J,90:Y},e(re,[2,70]),{16:39,17:40,19:125,60:f,86:C,100:w,102:T,103:E},e(I,[2,16]),e(I,[2,17]),e(I,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:f,86:C,100:w,102:T,103:E},{39:[2,10]},e(X,[2,51],{11:128,12:[1,129]}),e(D,[2,7]),{9:[1,130]},e(Z,[2,63]),{16:39,17:40,19:131,60:f,86:C,100:w,102:T,103:E},{13:[1,133],16:39,17:40,19:132,60:f,86:C,100:w,102:T,103:E},e(R,[2,78],{66:134,68:k,69:A,70:j,71:M,72:N}),e(R,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:o,54:l,56:u},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},e(F,[2,44],{39:[1,139]}),{41:[1,140]},e(F,[2,46]),{41:[2,57],45:141,51:B},{47:[1,142]},{16:39,17:40,19:143,60:f,86:C,100:w,102:T,103:E},e(O,[2,87],{13:[1,144]}),e(O,[2,89],{13:[1,146],77:[1,145]}),e(O,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},e(O,[2,101],{61:ie}),e(ae,[2,103],{85:151,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),e(Q,[2,105]),e(Q,[2,107]),e(Q,[2,108]),e(Q,[2,109]),e(Q,[2,110]),e(Q,[2,111]),e(Q,[2,112]),e(Q,[2,113]),e(Q,[2,114]),e(Q,[2,115]),e(O,[2,102]),e(F,[2,67]),e(O,[2,69],{61:ie}),{60:[1,152]},e(I,[2,14]),{15:153,16:85,17:86,60:f,86:C,100:w,102:T,103:E},{39:[2,12]},e(X,[2,52]),{13:[1,154]},{1:[2,4]},e(Z,[2,65]),e(Z,[2,64]),{16:39,17:40,19:155,60:f,86:C,100:w,102:T,103:E},e(R,[2,76]),e(O,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:o,54:l,56:u},{24:97,30:98,40:158,41:[2,41],43:23,48:o,54:l,56:u},{45:159,51:B},e(F,[2,45]),{41:[2,58]},e(F,[2,48],{39:[1,160]}),e(O,[2,56]),e(O,[2,88]),e(O,[2,90]),e(O,[2,91],{77:[1,161]}),e(O,[2,94]),e(O,[2,95],{13:[1,162]}),e(O,[2,97],{13:[1,164],77:[1,163]}),{22:V,50:H,60:U,82:W,84:165,85:111,86:G,87:K,88:q,89:J,90:Y},e(Q,[2,106]),e(re,[2,71]),{39:[2,11]},{14:[1,166]},e(Z,[2,66]),e(O,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:B},e(O,[2,92]),e(O,[2,96]),e(O,[2,98]),e(O,[2,99],{77:[1,170]}),e(ae,[2,104],{85:151,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),e(X,[2,8]),e(F,[2,47]),{41:[1,171]},e(F,[2,50]),e(O,[2,100]),e(F,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:p(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:p(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}p(b,`popStack`);function x(){var e=r.pop()||h.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}p(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
1
+ import{B as e,C as t,L as n,V as r,W as i,Z as a,_ as o,a as s,b as c,j as l,s as u,v as d}from"./chunk-ICPOFSXX-BNR1V8rT.js";import{g as f,h as p,p as m}from"./src-C47h8eAM.js";import{h,s as g}from"./chunk-5PVQY5BW-BrmXs2Gs.js";import{a as _,o as v}from"./index-CZZuue3D.js";import{t as y}from"./chunk-FMBD7UC4-DrNhFt1N.js";import{t as b}from"./chunk-YZCP3GAM-9wq0QKUn.js";import{t as x}from"./chunk-55IACEB6-CvSRyJqy.js";import{t as S}from"./chunk-EDXVE4YY-DxUqDyxy.js";var C=(function(){var e=p(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],c=[1,25],l=[1,32],u=[1,33],d=[1,34],f=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],ee=[1,63],P=[1,64],F=[1,8,9,41],te=[1,77],I=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],L=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],R=[13,60,86,100,102,103],z=[13,60,73,74,86,100,102,103],ne=[13,60,68,69,70,71,72,86,100,102,103],B=[1,102],V=[1,120],H=[1,116],U=[1,112],W=[1,118],G=[1,113],K=[1,114],q=[1,115],J=[1,117],Y=[1,119],re=[22,50,60,61,82,86,87,88,89,90],X=[1,8,9,39,41,44,46],Z=[1,8,9,22],ie=[1,150],ae=[1,8,9,61],Q=[1,8,9,22,50,60,61,82,86,87,88,89,90],oe={trace:p(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:p(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]);break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]);break;case 36:this.$=a[s],r.addNamespace(a[s]);break;case 37:this.$=[[a[s]],[]];break;case 38:this.$=[[a[s-1]],[]];break;case 39:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 40:this.$=[[],[a[s]]];break;case 41:this.$=[[],[a[s-1]]];break;case 42:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:r.setCssClass(a[s-2],a[s]);break;case 45:r.addMembers(a[s-3],a[s-1]);break;case 47:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 48:r.addAnnotation(a[s-3],a[s-1]);break;case 49:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 50:r.addAnnotation(a[s-5],a[s-3]);break;case 51:this.$=a[s],r.addClass(a[s]);break;case 52:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 56:r.addAnnotation(a[s],a[s-2]);break;case 57:case 70:this.$=[a[s]];break;case 58:a[s].push(a[s-1]),this.$=a[s];break;case 59:break;case 60:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 61:break;case 62:break;case 63:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 64:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 65:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 66:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 67:this.$=r.addNote(a[s],a[s-1]);break;case 68:this.$=r.addNote(a[s]);break;case 69:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 71:this.$=a[s-2].concat([a[s]]);break;case 72:r.setDirection(`TB`);break;case 73:r.setDirection(`BT`);break;case 74:r.setDirection(`RL`);break;case 75:r.setDirection(`LR`);break;case 76:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 77:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 78:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 79:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 80:this.$=r.relationType.AGGREGATION;break;case 81:this.$=r.relationType.EXTENSION;break;case 82:this.$=r.relationType.COMPOSITION;break;case 83:this.$=r.relationType.DEPENDENCY;break;case 84:this.$=r.relationType.LOLLIPOP;break;case 85:this.$=r.lineType.LINE;break;case 86:this.$=r.lineType.DOTTED_LINE;break;case 87:case 93:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 88:case 94:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 89:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 90:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 91:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 92:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 95:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 96:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 97:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 98:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 99:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 100:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 101:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 102:r.setCssClass(a[s-1],a[s]);break;case 103:this.$=[a[s]];break;case 104:a[s-2].push(a[s]),this.$=a[s-2];break;case 106:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:ee,74:P}),{39:[1,65]},e(F,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,61]),e(O,[2,62]),{16:69,60:f,86:C,100:w,102:T},{16:39,17:40,19:70,60:f,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:f,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:f,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:f,86:C,100:w,102:T,103:E},{13:te,55:76},{58:78,60:[1,79]},e(O,[2,72]),e(O,[2,73]),e(O,[2,74]),e(O,[2,75]),e(I,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:f,86:C,100:w,102:T,103:E}),e(I,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:f,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:f,86:C,100:w,102:T,103:E},e(L,[2,129]),e(L,[2,130]),e(L,[2,131]),e(L,[2,132]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:n,37:r,42:i,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:c,54:l,56:u,57:d,60:f,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:f,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:ee,74:P},e(O,[2,60]),{67:93,73:ee,74:P},e(R,[2,79],{66:94,68:k,69:A,70:j,71:M,72:N}),e(z,[2,80]),e(z,[2,81]),e(z,[2,82]),e(z,[2,83]),e(z,[2,84]),e(ne,[2,85]),e(ne,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:o,54:l,56:u},{16:99,60:f,86:C,100:w,102:T},{41:[1,101],45:100,51:B},{16:103,60:f,86:C,100:w,102:T},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:V,50:H,59:109,60:U,82:W,84:110,85:111,86:G,87:K,88:q,89:J,90:Y},{60:[1,121]},{13:te,55:122},e(F,[2,68]),e(F,[2,134]),{22:V,50:H,59:123,60:U,61:[1,124],82:W,84:110,85:111,86:G,87:K,88:q,89:J,90:Y},e(re,[2,70]),{16:39,17:40,19:125,60:f,86:C,100:w,102:T,103:E},e(I,[2,16]),e(I,[2,17]),e(I,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:f,86:C,100:w,102:T,103:E},{39:[2,10]},e(X,[2,51],{11:128,12:[1,129]}),e(D,[2,7]),{9:[1,130]},e(Z,[2,63]),{16:39,17:40,19:131,60:f,86:C,100:w,102:T,103:E},{13:[1,133],16:39,17:40,19:132,60:f,86:C,100:w,102:T,103:E},e(R,[2,78],{66:134,68:k,69:A,70:j,71:M,72:N}),e(R,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:o,54:l,56:u},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},e(F,[2,44],{39:[1,139]}),{41:[1,140]},e(F,[2,46]),{41:[2,57],45:141,51:B},{47:[1,142]},{16:39,17:40,19:143,60:f,86:C,100:w,102:T,103:E},e(O,[2,87],{13:[1,144]}),e(O,[2,89],{13:[1,146],77:[1,145]}),e(O,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},e(O,[2,101],{61:ie}),e(ae,[2,103],{85:151,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),e(Q,[2,105]),e(Q,[2,107]),e(Q,[2,108]),e(Q,[2,109]),e(Q,[2,110]),e(Q,[2,111]),e(Q,[2,112]),e(Q,[2,113]),e(Q,[2,114]),e(Q,[2,115]),e(O,[2,102]),e(F,[2,67]),e(O,[2,69],{61:ie}),{60:[1,152]},e(I,[2,14]),{15:153,16:85,17:86,60:f,86:C,100:w,102:T,103:E},{39:[2,12]},e(X,[2,52]),{13:[1,154]},{1:[2,4]},e(Z,[2,65]),e(Z,[2,64]),{16:39,17:40,19:155,60:f,86:C,100:w,102:T,103:E},e(R,[2,76]),e(O,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:o,54:l,56:u},{24:97,30:98,40:158,41:[2,41],43:23,48:o,54:l,56:u},{45:159,51:B},e(F,[2,45]),{41:[2,58]},e(F,[2,48],{39:[1,160]}),e(O,[2,56]),e(O,[2,88]),e(O,[2,90]),e(O,[2,91],{77:[1,161]}),e(O,[2,94]),e(O,[2,95],{13:[1,162]}),e(O,[2,97],{13:[1,164],77:[1,163]}),{22:V,50:H,60:U,82:W,84:165,85:111,86:G,87:K,88:q,89:J,90:Y},e(Q,[2,106]),e(re,[2,71]),{39:[2,11]},{14:[1,166]},e(Z,[2,66]),e(O,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:B},e(O,[2,92]),e(O,[2,96]),e(O,[2,98]),e(O,[2,99],{77:[1,170]}),e(ae,[2,104],{85:151,22:V,50:H,60:U,82:W,86:G,87:K,88:q,89:J,90:Y}),e(X,[2,8]),e(F,[2,47]),{41:[1,171]},e(F,[2,50]),e(O,[2,100]),e(F,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:p(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:p(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}p(b,`popStack`);function x(){var e=r.pop()||h.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}p(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==f?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};oe.lexer=(function(){return{EOF:1,parseError:p(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:p(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:p(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:p(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:p(function(){return this._more=!0,this},`more`),reject:p(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
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:p(function(e){this.unput(this.match.slice(e))},`less`),pastInput:p(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:p(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:p(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{_ as e,a as t,g as n,h as r,i,m as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLRDzioh.js";var l=class extends s{static{a(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},u={parser:{TokenBuilder:a(()=>new l,`TokenBuilder`),ValueConverter:a(()=>new i,`ValueConverter`)}};function d(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,u);return a.ServiceRegistry.register(s),{shared:a,GitGraph:s}}a(d,`createGitGraphServices`);export{d as n,u as t};
1
+ import{_ as e,a as t,g as n,h as r,i,m as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLIPdXaZ.js";var l=class extends s{static{a(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},u={parser:{TokenBuilder:a(()=>new l,`TokenBuilder`),ValueConverter:a(()=>new i,`ValueConverter`)}};function d(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,u);return a.ServiceRegistry.register(s),{shared:a,GitGraph:s}}a(d,`createGitGraphServices`);export{d as n,u as t};
@@ -1 +1 @@
1
- import{_ as e,g as t,h as n,m as r,n as i,r as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLRDzioh.js";var l=class extends s{static{r(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},u=class extends i{static{r(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.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()}}},d={parser:{TokenBuilder:r(()=>new l,`TokenBuilder`),ValueConverter:r(()=>new u,`ValueConverter`)}};function f(r=n){let i=t(c(r),o),s=t(e({shared:i}),a,d);return i.ServiceRegistry.register(s),{shared:i,Architecture:s}}r(f,`createArchitectureServices`);export{f as n,d as t};
1
+ import{_ as e,g as t,h as n,m as r,n as i,r as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLIPdXaZ.js";var l=class extends s{static{r(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},u=class extends i{static{r(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.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()}}},d={parser:{TokenBuilder:r(()=>new l,`TokenBuilder`),ValueConverter:r(()=>new u,`ValueConverter`)}};function f(r=n){let i=t(c(r),o),s=t(e({shared:i}),a,d);return i.ServiceRegistry.register(s),{shared:i,Architecture:s}}r(f,`createArchitectureServices`);export{f as n,d as t};
@@ -1 +1 @@
1
- import{_ as e,g as t,h as n,l as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLRDzioh.js";var l=class extends s{static{i(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},u=class extends a{static{i(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},d={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new u,`ValueConverter`)}};function f(i=n){let a=t(c(i),o),s=t(e({shared:a}),r,d);return a.ServiceRegistry.register(s),{shared:a,Pie:s}}i(f,`createPieServices`);export{f as n,d as t};
1
+ import{_ as e,g as t,h as n,l as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLIPdXaZ.js";var l=class extends s{static{i(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},u=class extends a{static{i(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},d={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new u,`ValueConverter`)}};function f(i=n){let a=t(c(i),o),s=t(e({shared:a}),r,d);return a.ServiceRegistry.register(s),{shared:a,Pie:s}}i(f,`createPieServices`);export{f as n,d as t};
@@ -1 +1 @@
1
- import{_ as e,g as t,h as n,m as r,n as i,p as a,s as o,v as s}from"./chunk-K5T4RW27-BLRDzioh.js";var c=class extends i{static{r(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},l={parser:{ValueConverter:r(()=>new c,`ValueConverter`)}};function u(r=n){let i=t(s(r),o),c=t(e({shared:i}),a,l);return i.ServiceRegistry.register(c),{shared:i,Wardley:c}}r(u,`createWardleyServices`);export{u as n,l as t};
1
+ import{_ as e,g as t,h as n,m as r,n as i,p as a,s as o,v as s}from"./chunk-K5T4RW27-BLIPdXaZ.js";var c=class extends i{static{r(this,`WardleyValueConverter`)}runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},l={parser:{ValueConverter:r(()=>new c,`ValueConverter`)}};function u(r=n){let i=t(s(r),o),c=t(e({shared:i}),a,l);return i.ServiceRegistry.register(c),{shared:i,Wardley:c}}r(u,`createWardleyServices`);export{u as n,l as t};
@@ -1 +1 @@
1
- import{_ as e,c as t,g as n,h as r,i,m as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLRDzioh.js";var l=class extends s{static{a(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},u={parser:{TokenBuilder:a(()=>new l,`TokenBuilder`),ValueConverter:a(()=>new i,`ValueConverter`)}};function d(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,u);return a.ServiceRegistry.register(s),{shared:a,Packet:s}}a(d,`createPacketServices`);export{d as n,u as t};
1
+ import{_ as e,c as t,g as n,h as r,i,m as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLIPdXaZ.js";var l=class extends s{static{a(this,`PacketTokenBuilder`)}constructor(){super([`packet`])}},u={parser:{TokenBuilder:a(()=>new l,`TokenBuilder`),ValueConverter:a(()=>new i,`ValueConverter`)}};function d(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,u);return a.ServiceRegistry.register(s),{shared:a,Packet:s}}a(d,`createPacketServices`);export{d as n,u as t};
@@ -1,4 +1,4 @@
1
- import{a as e,i as t,n,o as r,r as i,t as a}from"./chunk-CFjPhJqf.js";import{t as o}from"./index-lyyIVcc_.js";import{a as s,c,d as l,n as u,s as d,t as f}from"./reduce-BDOBPIXr.js";import{a as p,n as m,t as h}from"./flatten-C5NL-f24.js";function g(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function _(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function v(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function y(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function b(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}var x=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return g(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}};function S(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function ee(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function C(e){return S(e)&&typeof e.fullText==`string`}var w=class e{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return E})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=T(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?E:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return E})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(te(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return E})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t)if(te(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}while(e.iterator);return E})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n<t;n++)if(this.nextFn(e).done)return e;return e},this.nextFn)}limit(t){return new e(()=>({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?E:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return E})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}};function T(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function te(e){return!!e&&typeof e[Symbol.iterator]==`function`}var ne=new w(()=>void 0,()=>E),E=Object.freeze({done:!0,value:void 0});function D(...e){if(e.length===1){let t=e[0];if(t instanceof w)return t;if(te(t))return new w(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new w(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:E)}return e.length>1?new w(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let n=e[t.collIndex++];te(n)?t.iterator=n[Symbol.iterator]():n&&typeof n.length==`number`&&(t.array=n)}}while(t.iterator||t.array||t.collIndex<e.length);return E}):ne}var O=class extends w{constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return E})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},re;(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}e.max=i})(re||={});function ie(e,t={}){for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(Array.isArray(r)?r.forEach((r,i)=>{g(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&ie(r,t))}):g(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&ie(r,t)))}function ae(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function k(e){let t=oe(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function oe(e){for(;e.$container;)e=e.$container;return e}function A(e){return _(e)?e.ref?[e.ref]:[]:v(e)?e.items.map(e=>e.ref):[]}function j(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new w(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith(`$`)){let i=e[r];if(g(i)){if(t.keyIndex++,P(i,n))return{done:!1,value:i}}else if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let e=i[t.arrayIndex++];if(g(e)&&P(e,n))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return E})}function M(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return new O(e,e=>j(e,t))}function N(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!P(e,t.range)?new O(e,()=>[]):new O(e,e=>j(e,t),{includeRoot:!0})}function P(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?Gt(n,t):!1}function se(e){return new w(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let n=t.keys[t.keyIndex];if(!n.startsWith(`$`)){let r=e[n];if(_(r)||v(r))return t.keyIndex++,{done:!1,value:{reference:r,container:e,property:n}};if(Array.isArray(r)){for(;t.arrayIndex<r.length;){let i=t.arrayIndex++,a=r[i];if(_(a)||v(r))return{done:!1,value:{reference:a,container:e,property:n,index:i}}}t.arrayIndex=0}}t.keyIndex++}return E})}function ce(e,t){let n=e.getTypeMetaData(t.$type),r=t;for(let e of Object.values(n.properties))e.defaultValue!==void 0&&r[e.name]===void 0&&(r[e.name]=le(e.defaultValue))}function le(e){return Array.isArray(e)?[...e.map(le)]:e}var F={$type:`AbstractElement`,cardinality:`cardinality`};function ue(e){return I.isInstance(e,F.$type)}var de={$type:`AbstractParserRule`};function fe(e){return I.isInstance(e,de.$type)}var pe={$type:`AbstractRule`},me={$type:`AbstractType`},he={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`};function ge(e){return I.isInstance(e,he.$type)}var _e={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`};function ve(e){return I.isInstance(e,_e.$type)}var ye={$type:`ArrayLiteral`,elements:`elements`},be={$type:`ArrayType`,elementType:`elementType`},xe={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`};function Se(e){return I.isInstance(e,xe.$type)}var Ce={$type:`BooleanLiteral`,true:`true`};function we(e){return I.isInstance(e,Ce.$type)}var Te={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`};function Ee(e){return I.isInstance(e,Te.$type)}var De={$type:`Condition`},Oe={$type:`Conjunction`,left:`left`,right:`right`};function ke(e){return I.isInstance(e,Oe.$type)}var Ae={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`};function je(e){return I.isInstance(e,Ae.$type)}var Me={$type:`Disjunction`,left:`left`,right:`right`};function Ne(e){return I.isInstance(e,Me.$type)}var Pe={$type:`EndOfFile`,cardinality:`cardinality`};function Fe(e){return I.isInstance(e,Pe.$type)}var Ie={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},Le={$type:`GrammarImport`,path:`path`},Re={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`};function ze(e){return I.isInstance(e,Re.$type)}var Be={$type:`InferredType`,name:`name`};function Ve(e){return I.isInstance(e,Be.$type)}var He={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`};function Ue(e){return I.isInstance(e,He.$type)}var We={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},Ge={$type:`InfixRuleOperators`,precedences:`precedences`},Ke={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`};function qe(e){return I.isInstance(e,Ke.$type)}var Je={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`};function Ye(e){return I.isInstance(e,Je.$type)}var Xe={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},Ze={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Qe(e){return I.isInstance(e,Ze.$type)}var $e={$type:`Negation`,value:`value`};function et(e){return I.isInstance(e,$e.$type)}var tt={$type:`NumberLiteral`,value:`value`},nt={$type:`Parameter`,name:`name`},rt={$type:`ParameterReference`,parameter:`parameter`};function it(e){return I.isInstance(e,rt.$type)}var at={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`};function ot(e){return I.isInstance(e,at.$type)}var st={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},ct={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`};function lt(e){return I.isInstance(e,ct.$type)}var ut={$type:`ReturnType`,name:`name`};function dt(e){return I.isInstance(e,ut.$type)}var ft={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`};function pt(e){return I.isInstance(e,ft.$type)}var mt={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`};function ht(e){return I.isInstance(e,mt.$type)}var gt={$type:`StringLiteral`,value:`value`},_t={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function vt(e){return I.isInstance(e,_t.$type)}var yt={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},bt={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function xt(e){return I.isInstance(e,bt.$type)}var St={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`};function Ct(e){return I.isInstance(e,St.$type)}var wt={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`};function Tt(e){return I.isInstance(e,wt.$type)}var Et={$type:`Type`,name:`name`,type:`type`};function Dt(e){return I.isInstance(e,Et.$type)}var Ot={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},kt={$type:`TypeDefinition`},At={$type:`UnionType`,types:`types`},jt={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`};function Mt(e){return I.isInstance(e,jt.$type)}var Nt={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Pt(e){return I.isInstance(e,Nt.$type)}var Ft={$type:`ValueLiteral`},It={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`};function Lt(e){return I.isInstance(e,It.$type)}var Rt=class extends x{constructor(){super(...arguments),this.types={AbstractElement:{name:F.$type,properties:{cardinality:{name:F.cardinality}},superTypes:[]},AbstractParserRule:{name:de.$type,properties:{},superTypes:[pe.$type,me.$type]},AbstractRule:{name:pe.$type,properties:{},superTypes:[]},AbstractType:{name:me.$type,properties:{},superTypes:[]},Action:{name:he.$type,properties:{cardinality:{name:he.cardinality},feature:{name:he.feature},inferredType:{name:he.inferredType},operator:{name:he.operator},type:{name:he.type,referenceType:me.$type}},superTypes:[F.$type]},Alternatives:{name:_e.$type,properties:{cardinality:{name:_e.cardinality},elements:{name:_e.elements,defaultValue:[]}},superTypes:[F.$type]},ArrayLiteral:{name:ye.$type,properties:{elements:{name:ye.elements,defaultValue:[]}},superTypes:[Ft.$type]},ArrayType:{name:be.$type,properties:{elementType:{name:be.elementType}},superTypes:[kt.$type]},Assignment:{name:xe.$type,properties:{cardinality:{name:xe.cardinality},feature:{name:xe.feature},operator:{name:xe.operator},predicate:{name:xe.predicate},terminal:{name:xe.terminal}},superTypes:[F.$type]},BooleanLiteral:{name:Ce.$type,properties:{true:{name:Ce.true,defaultValue:!1}},superTypes:[De.$type,Ft.$type]},CharacterRange:{name:Te.$type,properties:{cardinality:{name:Te.cardinality},left:{name:Te.left},lookahead:{name:Te.lookahead},parenthesized:{name:Te.parenthesized,defaultValue:!1},right:{name:Te.right}},superTypes:[yt.$type]},Condition:{name:De.$type,properties:{},superTypes:[]},Conjunction:{name:Oe.$type,properties:{left:{name:Oe.left},right:{name:Oe.right}},superTypes:[De.$type]},CrossReference:{name:Ae.$type,properties:{cardinality:{name:Ae.cardinality},deprecatedSyntax:{name:Ae.deprecatedSyntax,defaultValue:!1},isMulti:{name:Ae.isMulti,defaultValue:!1},terminal:{name:Ae.terminal},type:{name:Ae.type,referenceType:me.$type}},superTypes:[F.$type]},Disjunction:{name:Me.$type,properties:{left:{name:Me.left},right:{name:Me.right}},superTypes:[De.$type]},EndOfFile:{name:Pe.$type,properties:{cardinality:{name:Pe.cardinality}},superTypes:[F.$type]},Grammar:{name:Ie.$type,properties:{imports:{name:Ie.imports,defaultValue:[]},interfaces:{name:Ie.interfaces,defaultValue:[]},isDeclared:{name:Ie.isDeclared,defaultValue:!1},name:{name:Ie.name},rules:{name:Ie.rules,defaultValue:[]},types:{name:Ie.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Le.$type,properties:{path:{name:Le.path}},superTypes:[]},Group:{name:Re.$type,properties:{cardinality:{name:Re.cardinality},elements:{name:Re.elements,defaultValue:[]},guardCondition:{name:Re.guardCondition},predicate:{name:Re.predicate}},superTypes:[F.$type]},InferredType:{name:Be.$type,properties:{name:{name:Be.name}},superTypes:[me.$type]},InfixRule:{name:He.$type,properties:{call:{name:He.call},dataType:{name:He.dataType},inferredType:{name:He.inferredType},name:{name:He.name},operators:{name:He.operators},parameters:{name:He.parameters,defaultValue:[]},returnType:{name:He.returnType,referenceType:me.$type}},superTypes:[de.$type]},InfixRuleOperatorList:{name:We.$type,properties:{associativity:{name:We.associativity},operators:{name:We.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Ge.$type,properties:{precedences:{name:Ge.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Ke.$type,properties:{attributes:{name:Ke.attributes,defaultValue:[]},name:{name:Ke.name},superTypes:{name:Ke.superTypes,defaultValue:[],referenceType:me.$type}},superTypes:[me.$type]},Keyword:{name:Je.$type,properties:{cardinality:{name:Je.cardinality},predicate:{name:Je.predicate},value:{name:Je.value}},superTypes:[F.$type]},NamedArgument:{name:Xe.$type,properties:{calledByName:{name:Xe.calledByName,defaultValue:!1},parameter:{name:Xe.parameter,referenceType:nt.$type},value:{name:Xe.value}},superTypes:[]},NegatedToken:{name:Ze.$type,properties:{cardinality:{name:Ze.cardinality},lookahead:{name:Ze.lookahead},parenthesized:{name:Ze.parenthesized,defaultValue:!1},terminal:{name:Ze.terminal}},superTypes:[yt.$type]},Negation:{name:$e.$type,properties:{value:{name:$e.value}},superTypes:[De.$type]},NumberLiteral:{name:tt.$type,properties:{value:{name:tt.value}},superTypes:[Ft.$type]},Parameter:{name:nt.$type,properties:{name:{name:nt.name}},superTypes:[]},ParameterReference:{name:rt.$type,properties:{parameter:{name:rt.parameter,referenceType:nt.$type}},superTypes:[De.$type]},ParserRule:{name:at.$type,properties:{dataType:{name:at.dataType},definition:{name:at.definition},entry:{name:at.entry,defaultValue:!1},fragment:{name:at.fragment,defaultValue:!1},inferredType:{name:at.inferredType},name:{name:at.name},parameters:{name:at.parameters,defaultValue:[]},returnType:{name:at.returnType,referenceType:me.$type}},superTypes:[de.$type]},ReferenceType:{name:st.$type,properties:{isMulti:{name:st.isMulti,defaultValue:!1},referenceType:{name:st.referenceType}},superTypes:[kt.$type]},RegexToken:{name:ct.$type,properties:{cardinality:{name:ct.cardinality},lookahead:{name:ct.lookahead},parenthesized:{name:ct.parenthesized,defaultValue:!1},regex:{name:ct.regex}},superTypes:[yt.$type]},ReturnType:{name:ut.$type,properties:{name:{name:ut.name}},superTypes:[]},RuleCall:{name:ft.$type,properties:{arguments:{name:ft.arguments,defaultValue:[]},cardinality:{name:ft.cardinality},predicate:{name:ft.predicate},rule:{name:ft.rule,referenceType:pe.$type}},superTypes:[F.$type]},SimpleType:{name:mt.$type,properties:{primitiveType:{name:mt.primitiveType},stringType:{name:mt.stringType},typeRef:{name:mt.typeRef,referenceType:me.$type}},superTypes:[kt.$type]},StringLiteral:{name:gt.$type,properties:{value:{name:gt.value}},superTypes:[Ft.$type]},TerminalAlternatives:{name:_t.$type,properties:{cardinality:{name:_t.cardinality},elements:{name:_t.elements,defaultValue:[]},lookahead:{name:_t.lookahead},parenthesized:{name:_t.parenthesized,defaultValue:!1}},superTypes:[yt.$type]},TerminalElement:{name:yt.$type,properties:{cardinality:{name:yt.cardinality},lookahead:{name:yt.lookahead},parenthesized:{name:yt.parenthesized,defaultValue:!1}},superTypes:[F.$type]},TerminalGroup:{name:bt.$type,properties:{cardinality:{name:bt.cardinality},elements:{name:bt.elements,defaultValue:[]},lookahead:{name:bt.lookahead},parenthesized:{name:bt.parenthesized,defaultValue:!1}},superTypes:[yt.$type]},TerminalRule:{name:St.$type,properties:{definition:{name:St.definition},fragment:{name:St.fragment,defaultValue:!1},hidden:{name:St.hidden,defaultValue:!1},name:{name:St.name},type:{name:St.type}},superTypes:[pe.$type]},TerminalRuleCall:{name:wt.$type,properties:{cardinality:{name:wt.cardinality},lookahead:{name:wt.lookahead},parenthesized:{name:wt.parenthesized,defaultValue:!1},rule:{name:wt.rule,referenceType:St.$type}},superTypes:[yt.$type]},Type:{name:Et.$type,properties:{name:{name:Et.name},type:{name:Et.type}},superTypes:[me.$type]},TypeAttribute:{name:Ot.$type,properties:{defaultValue:{name:Ot.defaultValue},isOptional:{name:Ot.isOptional,defaultValue:!1},name:{name:Ot.name},type:{name:Ot.type}},superTypes:[]},TypeDefinition:{name:kt.$type,properties:{},superTypes:[]},UnionType:{name:At.$type,properties:{types:{name:At.types,defaultValue:[]}},superTypes:[kt.$type]},UnorderedGroup:{name:jt.$type,properties:{cardinality:{name:jt.cardinality},elements:{name:jt.elements,defaultValue:[]}},superTypes:[F.$type]},UntilToken:{name:Nt.$type,properties:{cardinality:{name:Nt.cardinality},lookahead:{name:Nt.lookahead},parenthesized:{name:Nt.parenthesized,defaultValue:!1},terminal:{name:Nt.terminal}},superTypes:[yt.$type]},ValueLiteral:{name:Ft.$type,properties:{},superTypes:[]},Wildcard:{name:It.$type,properties:{cardinality:{name:It.cardinality},lookahead:{name:It.lookahead},parenthesized:{name:It.parenthesized,defaultValue:!1}},superTypes:[yt.$type]}}}},I=new Rt;function zt(e){return new O(e,e=>S(e)?e.content:[],{includeRoot:!0})}function Bt(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function Vt(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function Ht(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}var Ut;(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(Ut||={});function Wt(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return Ut.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return Ut.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return n&&r?Ut.Inside:n?Ut.OverlapBack:r?Ut.OverlapFront:Ut.Outside}function Gt(e,t){return Wt(e,t)>Ut.After}var Kt=/^[\w\p{L}]$/u;function qt(e,t){if(e){let n=Yt(e,!0);if(n&&Jt(n,t))return n;if(C(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(Jt(n,t))return n}}}}function Jt(e,t){return ee(e)&&t.includes(e.tokenType.name)}function Yt(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}var Xt=class extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Zt(e,t=`Error: Got unexpected value.`){throw Error(t)}function L(e){return e.charCodeAt(0)}function Qt(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function $t(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function en(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function tn(){throw Error(`Internal Error - Should never get here!`)}function nn(e){return e.type===`Character`}var rn=[];for(let e=L(`0`);e<=L(`9`);e++)rn.push(e);var an=[L(`_`)].concat(rn);for(let e=L(`a`);e<=L(`z`);e++)an.push(e);for(let e=L(`A`);e<=L(`Z`);e++)an.push(e);var on=[L(` `),L(`\f`),L(`
1
+ import{a as e,i as t,n,o as r,r as i,t as a}from"./chunk-CFjPhJqf.js";import{t as o}from"./index-CZZuue3D.js";import{a as s,c,d as l,n as u,s as d,t as f}from"./reduce-Uumu9GdR.js";import{a as p,n as m,t as h}from"./flatten-B2BZ0pzY.js";function g(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function _(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function v(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function y(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function b(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}var x=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return g(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}};function S(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function ee(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function C(e){return S(e)&&typeof e.fullText==`string`}var w=class e{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return E})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=T(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?E:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return E})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(te(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return E})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t)if(te(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}while(e.iterator);return E})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n<t;n++)if(this.nextFn(e).done)return e;return e},this.nextFn)}limit(t){return new e(()=>({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?E:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return E})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}};function T(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function te(e){return!!e&&typeof e[Symbol.iterator]==`function`}var ne=new w(()=>void 0,()=>E),E=Object.freeze({done:!0,value:void 0});function D(...e){if(e.length===1){let t=e[0];if(t instanceof w)return t;if(te(t))return new w(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new w(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:E)}return e.length>1?new w(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let n=e[t.collIndex++];te(n)?t.iterator=n[Symbol.iterator]():n&&typeof n.length==`number`&&(t.array=n)}}while(t.iterator||t.array||t.collIndex<e.length);return E}):ne}var O=class extends w{constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return E})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},re;(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}e.max=i})(re||={});function ie(e,t={}){for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(Array.isArray(r)?r.forEach((r,i)=>{g(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&ie(r,t))}):g(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&ie(r,t)))}function ae(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function k(e){let t=oe(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function oe(e){for(;e.$container;)e=e.$container;return e}function A(e){return _(e)?e.ref?[e.ref]:[]:v(e)?e.items.map(e=>e.ref):[]}function j(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new w(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith(`$`)){let i=e[r];if(g(i)){if(t.keyIndex++,P(i,n))return{done:!1,value:i}}else if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let e=i[t.arrayIndex++];if(g(e)&&P(e,n))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return E})}function M(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return new O(e,e=>j(e,t))}function N(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!P(e,t.range)?new O(e,()=>[]):new O(e,e=>j(e,t),{includeRoot:!0})}function P(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?Gt(n,t):!1}function se(e){return new w(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let n=t.keys[t.keyIndex];if(!n.startsWith(`$`)){let r=e[n];if(_(r)||v(r))return t.keyIndex++,{done:!1,value:{reference:r,container:e,property:n}};if(Array.isArray(r)){for(;t.arrayIndex<r.length;){let i=t.arrayIndex++,a=r[i];if(_(a)||v(r))return{done:!1,value:{reference:a,container:e,property:n,index:i}}}t.arrayIndex=0}}t.keyIndex++}return E})}function ce(e,t){let n=e.getTypeMetaData(t.$type),r=t;for(let e of Object.values(n.properties))e.defaultValue!==void 0&&r[e.name]===void 0&&(r[e.name]=le(e.defaultValue))}function le(e){return Array.isArray(e)?[...e.map(le)]:e}var F={$type:`AbstractElement`,cardinality:`cardinality`};function ue(e){return I.isInstance(e,F.$type)}var de={$type:`AbstractParserRule`};function fe(e){return I.isInstance(e,de.$type)}var pe={$type:`AbstractRule`},me={$type:`AbstractType`},he={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`};function ge(e){return I.isInstance(e,he.$type)}var _e={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`};function ve(e){return I.isInstance(e,_e.$type)}var ye={$type:`ArrayLiteral`,elements:`elements`},be={$type:`ArrayType`,elementType:`elementType`},xe={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`};function Se(e){return I.isInstance(e,xe.$type)}var Ce={$type:`BooleanLiteral`,true:`true`};function we(e){return I.isInstance(e,Ce.$type)}var Te={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`};function Ee(e){return I.isInstance(e,Te.$type)}var De={$type:`Condition`},Oe={$type:`Conjunction`,left:`left`,right:`right`};function ke(e){return I.isInstance(e,Oe.$type)}var Ae={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`};function je(e){return I.isInstance(e,Ae.$type)}var Me={$type:`Disjunction`,left:`left`,right:`right`};function Ne(e){return I.isInstance(e,Me.$type)}var Pe={$type:`EndOfFile`,cardinality:`cardinality`};function Fe(e){return I.isInstance(e,Pe.$type)}var Ie={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},Le={$type:`GrammarImport`,path:`path`},Re={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`};function ze(e){return I.isInstance(e,Re.$type)}var Be={$type:`InferredType`,name:`name`};function Ve(e){return I.isInstance(e,Be.$type)}var He={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`};function Ue(e){return I.isInstance(e,He.$type)}var We={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},Ge={$type:`InfixRuleOperators`,precedences:`precedences`},Ke={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`};function qe(e){return I.isInstance(e,Ke.$type)}var Je={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`};function Ye(e){return I.isInstance(e,Je.$type)}var Xe={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},Ze={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Qe(e){return I.isInstance(e,Ze.$type)}var $e={$type:`Negation`,value:`value`};function et(e){return I.isInstance(e,$e.$type)}var tt={$type:`NumberLiteral`,value:`value`},nt={$type:`Parameter`,name:`name`},rt={$type:`ParameterReference`,parameter:`parameter`};function it(e){return I.isInstance(e,rt.$type)}var at={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`};function ot(e){return I.isInstance(e,at.$type)}var st={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},ct={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`};function lt(e){return I.isInstance(e,ct.$type)}var ut={$type:`ReturnType`,name:`name`};function dt(e){return I.isInstance(e,ut.$type)}var ft={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`};function pt(e){return I.isInstance(e,ft.$type)}var mt={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`};function ht(e){return I.isInstance(e,mt.$type)}var gt={$type:`StringLiteral`,value:`value`},_t={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function vt(e){return I.isInstance(e,_t.$type)}var yt={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},bt={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function xt(e){return I.isInstance(e,bt.$type)}var St={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`};function Ct(e){return I.isInstance(e,St.$type)}var wt={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`};function Tt(e){return I.isInstance(e,wt.$type)}var Et={$type:`Type`,name:`name`,type:`type`};function Dt(e){return I.isInstance(e,Et.$type)}var Ot={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},kt={$type:`TypeDefinition`},At={$type:`UnionType`,types:`types`},jt={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`};function Mt(e){return I.isInstance(e,jt.$type)}var Nt={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Pt(e){return I.isInstance(e,Nt.$type)}var Ft={$type:`ValueLiteral`},It={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`};function Lt(e){return I.isInstance(e,It.$type)}var Rt=class extends x{constructor(){super(...arguments),this.types={AbstractElement:{name:F.$type,properties:{cardinality:{name:F.cardinality}},superTypes:[]},AbstractParserRule:{name:de.$type,properties:{},superTypes:[pe.$type,me.$type]},AbstractRule:{name:pe.$type,properties:{},superTypes:[]},AbstractType:{name:me.$type,properties:{},superTypes:[]},Action:{name:he.$type,properties:{cardinality:{name:he.cardinality},feature:{name:he.feature},inferredType:{name:he.inferredType},operator:{name:he.operator},type:{name:he.type,referenceType:me.$type}},superTypes:[F.$type]},Alternatives:{name:_e.$type,properties:{cardinality:{name:_e.cardinality},elements:{name:_e.elements,defaultValue:[]}},superTypes:[F.$type]},ArrayLiteral:{name:ye.$type,properties:{elements:{name:ye.elements,defaultValue:[]}},superTypes:[Ft.$type]},ArrayType:{name:be.$type,properties:{elementType:{name:be.elementType}},superTypes:[kt.$type]},Assignment:{name:xe.$type,properties:{cardinality:{name:xe.cardinality},feature:{name:xe.feature},operator:{name:xe.operator},predicate:{name:xe.predicate},terminal:{name:xe.terminal}},superTypes:[F.$type]},BooleanLiteral:{name:Ce.$type,properties:{true:{name:Ce.true,defaultValue:!1}},superTypes:[De.$type,Ft.$type]},CharacterRange:{name:Te.$type,properties:{cardinality:{name:Te.cardinality},left:{name:Te.left},lookahead:{name:Te.lookahead},parenthesized:{name:Te.parenthesized,defaultValue:!1},right:{name:Te.right}},superTypes:[yt.$type]},Condition:{name:De.$type,properties:{},superTypes:[]},Conjunction:{name:Oe.$type,properties:{left:{name:Oe.left},right:{name:Oe.right}},superTypes:[De.$type]},CrossReference:{name:Ae.$type,properties:{cardinality:{name:Ae.cardinality},deprecatedSyntax:{name:Ae.deprecatedSyntax,defaultValue:!1},isMulti:{name:Ae.isMulti,defaultValue:!1},terminal:{name:Ae.terminal},type:{name:Ae.type,referenceType:me.$type}},superTypes:[F.$type]},Disjunction:{name:Me.$type,properties:{left:{name:Me.left},right:{name:Me.right}},superTypes:[De.$type]},EndOfFile:{name:Pe.$type,properties:{cardinality:{name:Pe.cardinality}},superTypes:[F.$type]},Grammar:{name:Ie.$type,properties:{imports:{name:Ie.imports,defaultValue:[]},interfaces:{name:Ie.interfaces,defaultValue:[]},isDeclared:{name:Ie.isDeclared,defaultValue:!1},name:{name:Ie.name},rules:{name:Ie.rules,defaultValue:[]},types:{name:Ie.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:Le.$type,properties:{path:{name:Le.path}},superTypes:[]},Group:{name:Re.$type,properties:{cardinality:{name:Re.cardinality},elements:{name:Re.elements,defaultValue:[]},guardCondition:{name:Re.guardCondition},predicate:{name:Re.predicate}},superTypes:[F.$type]},InferredType:{name:Be.$type,properties:{name:{name:Be.name}},superTypes:[me.$type]},InfixRule:{name:He.$type,properties:{call:{name:He.call},dataType:{name:He.dataType},inferredType:{name:He.inferredType},name:{name:He.name},operators:{name:He.operators},parameters:{name:He.parameters,defaultValue:[]},returnType:{name:He.returnType,referenceType:me.$type}},superTypes:[de.$type]},InfixRuleOperatorList:{name:We.$type,properties:{associativity:{name:We.associativity},operators:{name:We.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Ge.$type,properties:{precedences:{name:Ge.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Ke.$type,properties:{attributes:{name:Ke.attributes,defaultValue:[]},name:{name:Ke.name},superTypes:{name:Ke.superTypes,defaultValue:[],referenceType:me.$type}},superTypes:[me.$type]},Keyword:{name:Je.$type,properties:{cardinality:{name:Je.cardinality},predicate:{name:Je.predicate},value:{name:Je.value}},superTypes:[F.$type]},NamedArgument:{name:Xe.$type,properties:{calledByName:{name:Xe.calledByName,defaultValue:!1},parameter:{name:Xe.parameter,referenceType:nt.$type},value:{name:Xe.value}},superTypes:[]},NegatedToken:{name:Ze.$type,properties:{cardinality:{name:Ze.cardinality},lookahead:{name:Ze.lookahead},parenthesized:{name:Ze.parenthesized,defaultValue:!1},terminal:{name:Ze.terminal}},superTypes:[yt.$type]},Negation:{name:$e.$type,properties:{value:{name:$e.value}},superTypes:[De.$type]},NumberLiteral:{name:tt.$type,properties:{value:{name:tt.value}},superTypes:[Ft.$type]},Parameter:{name:nt.$type,properties:{name:{name:nt.name}},superTypes:[]},ParameterReference:{name:rt.$type,properties:{parameter:{name:rt.parameter,referenceType:nt.$type}},superTypes:[De.$type]},ParserRule:{name:at.$type,properties:{dataType:{name:at.dataType},definition:{name:at.definition},entry:{name:at.entry,defaultValue:!1},fragment:{name:at.fragment,defaultValue:!1},inferredType:{name:at.inferredType},name:{name:at.name},parameters:{name:at.parameters,defaultValue:[]},returnType:{name:at.returnType,referenceType:me.$type}},superTypes:[de.$type]},ReferenceType:{name:st.$type,properties:{isMulti:{name:st.isMulti,defaultValue:!1},referenceType:{name:st.referenceType}},superTypes:[kt.$type]},RegexToken:{name:ct.$type,properties:{cardinality:{name:ct.cardinality},lookahead:{name:ct.lookahead},parenthesized:{name:ct.parenthesized,defaultValue:!1},regex:{name:ct.regex}},superTypes:[yt.$type]},ReturnType:{name:ut.$type,properties:{name:{name:ut.name}},superTypes:[]},RuleCall:{name:ft.$type,properties:{arguments:{name:ft.arguments,defaultValue:[]},cardinality:{name:ft.cardinality},predicate:{name:ft.predicate},rule:{name:ft.rule,referenceType:pe.$type}},superTypes:[F.$type]},SimpleType:{name:mt.$type,properties:{primitiveType:{name:mt.primitiveType},stringType:{name:mt.stringType},typeRef:{name:mt.typeRef,referenceType:me.$type}},superTypes:[kt.$type]},StringLiteral:{name:gt.$type,properties:{value:{name:gt.value}},superTypes:[Ft.$type]},TerminalAlternatives:{name:_t.$type,properties:{cardinality:{name:_t.cardinality},elements:{name:_t.elements,defaultValue:[]},lookahead:{name:_t.lookahead},parenthesized:{name:_t.parenthesized,defaultValue:!1}},superTypes:[yt.$type]},TerminalElement:{name:yt.$type,properties:{cardinality:{name:yt.cardinality},lookahead:{name:yt.lookahead},parenthesized:{name:yt.parenthesized,defaultValue:!1}},superTypes:[F.$type]},TerminalGroup:{name:bt.$type,properties:{cardinality:{name:bt.cardinality},elements:{name:bt.elements,defaultValue:[]},lookahead:{name:bt.lookahead},parenthesized:{name:bt.parenthesized,defaultValue:!1}},superTypes:[yt.$type]},TerminalRule:{name:St.$type,properties:{definition:{name:St.definition},fragment:{name:St.fragment,defaultValue:!1},hidden:{name:St.hidden,defaultValue:!1},name:{name:St.name},type:{name:St.type}},superTypes:[pe.$type]},TerminalRuleCall:{name:wt.$type,properties:{cardinality:{name:wt.cardinality},lookahead:{name:wt.lookahead},parenthesized:{name:wt.parenthesized,defaultValue:!1},rule:{name:wt.rule,referenceType:St.$type}},superTypes:[yt.$type]},Type:{name:Et.$type,properties:{name:{name:Et.name},type:{name:Et.type}},superTypes:[me.$type]},TypeAttribute:{name:Ot.$type,properties:{defaultValue:{name:Ot.defaultValue},isOptional:{name:Ot.isOptional,defaultValue:!1},name:{name:Ot.name},type:{name:Ot.type}},superTypes:[]},TypeDefinition:{name:kt.$type,properties:{},superTypes:[]},UnionType:{name:At.$type,properties:{types:{name:At.types,defaultValue:[]}},superTypes:[kt.$type]},UnorderedGroup:{name:jt.$type,properties:{cardinality:{name:jt.cardinality},elements:{name:jt.elements,defaultValue:[]}},superTypes:[F.$type]},UntilToken:{name:Nt.$type,properties:{cardinality:{name:Nt.cardinality},lookahead:{name:Nt.lookahead},parenthesized:{name:Nt.parenthesized,defaultValue:!1},terminal:{name:Nt.terminal}},superTypes:[yt.$type]},ValueLiteral:{name:Ft.$type,properties:{},superTypes:[]},Wildcard:{name:It.$type,properties:{cardinality:{name:It.cardinality},lookahead:{name:It.lookahead},parenthesized:{name:It.parenthesized,defaultValue:!1}},superTypes:[yt.$type]}}}},I=new Rt;function zt(e){return new O(e,e=>S(e)?e.content:[],{includeRoot:!0})}function Bt(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function Vt(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function Ht(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}var Ut;(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(Ut||={});function Wt(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return Ut.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return Ut.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return n&&r?Ut.Inside:n?Ut.OverlapBack:r?Ut.OverlapFront:Ut.Outside}function Gt(e,t){return Wt(e,t)>Ut.After}var Kt=/^[\w\p{L}]$/u;function qt(e,t){if(e){let n=Yt(e,!0);if(n&&Jt(n,t))return n;if(C(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(Jt(n,t))return n}}}}function Jt(e,t){return ee(e)&&t.includes(e.tokenType.name)}function Yt(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}var Xt=class extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Zt(e,t=`Error: Got unexpected value.`){throw Error(t)}function L(e){return e.charCodeAt(0)}function Qt(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function $t(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function en(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function tn(){throw Error(`Internal Error - Should never get here!`)}function nn(e){return e.type===`Character`}var rn=[];for(let e=L(`0`);e<=L(`9`);e++)rn.push(e);var an=[L(`_`)].concat(rn);for(let e=L(`a`);e<=L(`z`);e++)an.push(e);for(let e=L(`A`);e<=L(`Z`);e++)an.push(e);var on=[L(` `),L(`\f`),L(`
2
2
  `),L(`\r`),L(` `),L(`\v`),L(` `),L(`\xA0`),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(` `),L(`\u2028`),L(`\u2029`),L(` `),L(` `),L(` `),L(``)],sn=/[0-9a-fA-F]/,cn=/[0-9]/,ln=/[1-9]/,un=class{constructor(){this.idx=0,this.input=``,this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar(`/`);let t=this.disjunction();this.consumeChar(`/`);let n={type:`Flags`,loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case`g`:$t(n,`global`);break;case`i`:$t(n,`ignoreCase`);break;case`m`:$t(n,`multiLine`);break;case`u`:$t(n,`unicode`);break;case`y`:$t(n,`sticky`);break}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case`^`:return{type:`StartAnchor`,loc:this.loc(e)};case`$`:return{type:`EndAnchor`,loc:this.loc(e)};case`\\`:switch(this.popChar()){case`b`:return{type:`WordBoundary`,loc:this.loc(e)};case`B`:return{type:`NonWordBoundary`,loc:this.loc(e)}}throw Error(`Invalid Assertion Escape`);case`(`:this.consumeChar(`?`);let t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}break}en(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return tn()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`);break}if(e===!0&&t===void 0)return;en(t);break}if(!(e===!0&&t===void 0)&&en(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),en(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):tn()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[L(`
3
3
  `),L(`\r`),L(`\u2028`),L(`\u2029`)]}}atomEscape(){switch(this.consumeChar(`\\`),this.peekChar()){case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:return this.decimalEscapeAtom();case`d`:case`D`:case`s`:case`S`:case`w`:case`W`:return this.characterClassEscape();case`f`:case`n`:case`r`:case`t`:case`v`:return this.controlEscapeAtom();case`c`:return this.controlLetterEscapeAtom();case`0`:return this.nulCharacterAtom();case`x`:return this.hexEscapeSequenceAtom();case`u`:return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:`GroupBackReference`,value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case`d`:e=rn;break;case`D`:e=rn,t=!0;break;case`s`:e=on;break;case`S`:e=on,t=!0;break;case`w`:e=an;break;case`W`:e=an,t=!0;break}return en(e)?{type:`Set`,value:e,complement:t}:tn()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=L(`\f`);break;case`n`:e=L(`
4
4
  `);break;case`r`:e=L(`\r`);break;case`t`:e=L(` `);break;case`v`:e=L(`\v`);break}return en(e)?{type:`Character`,value:e}:tn()}controlLetterEscapeAtom(){this.consumeChar(`c`);let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error(`Invalid `);return{type:`Character`,value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar(`0`),{type:`Character`,value:L(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:L(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
@@ -1 +1 @@
1
- import{_ as e,g as t,h as n,i as r,m as i,o as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLRDzioh.js";var l=class extends s{static{i(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},u={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new r,`ValueConverter`)}};function d(r=n){let i=t(c(r),o),s=t(e({shared:i}),a,u);return i.ServiceRegistry.register(s),{shared:i,Info:s}}i(d,`createInfoServices`);export{d as n,u as t};
1
+ import{_ as e,g as t,h as n,i as r,m as i,o as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLIPdXaZ.js";var l=class extends s{static{i(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},u={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new r,`ValueConverter`)}};function d(r=n){let i=t(c(r),o),s=t(e({shared:i}),a,u);return i.ServiceRegistry.register(s),{shared:i,Info:s}}i(d,`createInfoServices`);export{d as n,u as t};
@@ -1 +1 @@
1
- import{_ as e,f as t,g as n,h as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLRDzioh.js";var l=class extends s{static{i(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},u=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,d=class extends a{static{i(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=u.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function f(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}i(f,`registerValidationChecks`);var p=class{static{i(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},m={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new d,`ValueConverter`)},validation:{TreemapValidator:i(()=>new p,`TreemapValidator`)}};function h(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,m);return a.ServiceRegistry.register(s),f(s),{shared:a,Treemap:s}}i(h,`createTreemapServices`);export{h as n,m as t};
1
+ import{_ as e,f as t,g as n,h as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLIPdXaZ.js";var l=class extends s{static{i(this,`TreemapTokenBuilder`)}constructor(){super([`treemap`])}},u=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,d=class extends a{static{i(this,`TreemapValueConverter`)}runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=u.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}};function f(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}i(f,`registerValidationChecks`);var p=class{static{i(this,`TreemapValidator`)}checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},m={parser:{TokenBuilder:i(()=>new l,`TokenBuilder`),ValueConverter:i(()=>new d,`ValueConverter`)},validation:{TreemapValidator:i(()=>new p,`TreemapValidator`)}};function h(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,m);return a.ServiceRegistry.register(s),f(s),{shared:a,Treemap:s}}i(h,`createTreemapServices`);export{h as n,m as t};
@@ -1 +1 @@
1
- import{_ as e,d as t,g as n,h as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLRDzioh.js";var l=class extends a{static{i(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`STRING2`)return t.substring(1,t.length-1)}},u=class extends s{static{i(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},d={parser:{TokenBuilder:i(()=>new u,`TokenBuilder`),ValueConverter:i(()=>new l,`ValueConverter`)}};function f(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,d);return a.ServiceRegistry.register(s),{shared:a,TreeView:s}}i(f,`createTreeViewServices`);export{f as n,d as t};
1
+ import{_ as e,d as t,g as n,h as r,m as i,n as a,s as o,t as s,v as c}from"./chunk-K5T4RW27-BLIPdXaZ.js";var l=class extends a{static{i(this,`TreeViewValueConverter`)}runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`STRING2`)return t.substring(1,t.length-1)}},u=class extends s{static{i(this,`TreeViewTokenBuilder`)}constructor(){super([`treeView-beta`])}},d={parser:{TokenBuilder:i(()=>new u,`TokenBuilder`),ValueConverter:i(()=>new l,`ValueConverter`)}};function f(i=r){let a=n(c(i),o),s=n(e({shared:a}),t,d);return a.ServiceRegistry.register(s),{shared:a,TreeView:s}}i(f,`createTreeViewServices`);export{f as n,d as t};
@@ -1,4 +1,4 @@
1
- import{B as e,C as t,V as n,W as r,_ as i,a,b as o,s,v as c}from"./chunk-ICPOFSXX-BNR1V8rT.js";import{g as l,h as u}from"./src-C47h8eAM.js";import{h as d,o as f}from"./chunk-5PVQY5BW-BrmXs2Gs.js";import{o as p}from"./index-lyyIVcc_.js";import{t as m}from"./chunk-55IACEB6-CvSRyJqy.js";import{t as h}from"./chunk-EDXVE4YY-DxUqDyxy.js";var g=(function(){var e=u(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,16],c=[1,17],l=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[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],j=[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],M=[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],N={trace:u(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:u(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([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],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:c,19:l,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:s,17:c,19:l,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[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]},e(A,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:c,19:l,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,i,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:c,19:l,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:u(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:u(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}u(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}u(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
1
+ import{B as e,C as t,V as n,W as r,_ as i,a,b as o,s,v as c}from"./chunk-ICPOFSXX-BNR1V8rT.js";import{g as l,h as u}from"./src-C47h8eAM.js";import{h as d,o as f}from"./chunk-5PVQY5BW-BrmXs2Gs.js";import{o as p}from"./index-CZZuue3D.js";import{t as m}from"./chunk-55IACEB6-CvSRyJqy.js";import{t as h}from"./chunk-EDXVE4YY-DxUqDyxy.js";var g=(function(){var e=u(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,16],c=[1,17],l=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[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],j=[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],M=[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],N={trace:u(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:u(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var c=a[s],l=a[s-2].trim();if(a[s].match(`:`)){var u=a[s].split(`:`);c=u[0],l=[l,u[1]]}this.$={stmt:`state`,id:c,type:`default`,description:l};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([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],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:c,19:l,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:s,17:c,19:l,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[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]},e(A,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:c,19:l,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,i,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:c,19:l,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:u(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:u(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}u(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}u(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:u(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:u(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:u(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:u(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:u(function(){return this._more=!0,this},`more`),reject:u(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
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:u(function(e){this.unput(this.match.slice(e))},`less`),pastInput:u(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:u(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:u(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import"./chunk-ICPOFSXX-BNR1V8rT.js";import{h as e}from"./src-C47h8eAM.js";import"./chunk-5PVQY5BW-BrmXs2Gs.js";import"./chunk-BSJP7CBP-D8kBlJsf.js";import"./chunk-ZZ45TVLE-D3I1kLlo.js";import"./chunk-X2U36JSP-CrTnmMqG.js";import"./chunk-U2HBQHQK-DTJPeU7W.js";import"./chunk-5FUZZQ4R-XEga0hMC.js";import"./chunk-ENJZ2VHE-BgZKYo1l.js";import"./index-lyyIVcc_.js";import"./chunk-FMBD7UC4-DrNhFt1N.js";import"./chunk-YZCP3GAM-9wq0QKUn.js";import"./chunk-55IACEB6-CvSRyJqy.js";import"./chunk-EDXVE4YY-DxUqDyxy.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-DF8yJBFl.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
1
+ import"./chunk-ICPOFSXX-BNR1V8rT.js";import{h as e}from"./src-C47h8eAM.js";import"./chunk-5PVQY5BW-BrmXs2Gs.js";import"./chunk-BSJP7CBP-D8kBlJsf.js";import"./chunk-ZZ45TVLE-D3I1kLlo.js";import"./chunk-X2U36JSP-CrTnmMqG.js";import"./chunk-U2HBQHQK-DTJPeU7W.js";import"./chunk-5FUZZQ4R-XEga0hMC.js";import"./chunk-ENJZ2VHE-BgZKYo1l.js";import"./index-CZZuue3D.js";import"./chunk-FMBD7UC4-DrNhFt1N.js";import"./chunk-YZCP3GAM-9wq0QKUn.js";import"./chunk-55IACEB6-CvSRyJqy.js";import"./chunk-EDXVE4YY-DxUqDyxy.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-AZq3s1Dh.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -1 +1 @@
1
- import"./chunk-ICPOFSXX-BNR1V8rT.js";import{h as e}from"./src-C47h8eAM.js";import"./chunk-5PVQY5BW-BrmXs2Gs.js";import"./chunk-BSJP7CBP-D8kBlJsf.js";import"./chunk-ZZ45TVLE-D3I1kLlo.js";import"./chunk-X2U36JSP-CrTnmMqG.js";import"./chunk-U2HBQHQK-DTJPeU7W.js";import"./chunk-5FUZZQ4R-XEga0hMC.js";import"./chunk-ENJZ2VHE-BgZKYo1l.js";import"./index-lyyIVcc_.js";import"./chunk-FMBD7UC4-DrNhFt1N.js";import"./chunk-YZCP3GAM-9wq0QKUn.js";import"./chunk-55IACEB6-CvSRyJqy.js";import"./chunk-EDXVE4YY-DxUqDyxy.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-DF8yJBFl.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
1
+ import"./chunk-ICPOFSXX-BNR1V8rT.js";import{h as e}from"./src-C47h8eAM.js";import"./chunk-5PVQY5BW-BrmXs2Gs.js";import"./chunk-BSJP7CBP-D8kBlJsf.js";import"./chunk-ZZ45TVLE-D3I1kLlo.js";import"./chunk-X2U36JSP-CrTnmMqG.js";import"./chunk-U2HBQHQK-DTJPeU7W.js";import"./chunk-5FUZZQ4R-XEga0hMC.js";import"./chunk-ENJZ2VHE-BgZKYo1l.js";import"./index-CZZuue3D.js";import"./chunk-FMBD7UC4-DrNhFt1N.js";import"./chunk-YZCP3GAM-9wq0QKUn.js";import"./chunk-55IACEB6-CvSRyJqy.js";import"./chunk-EDXVE4YY-DxUqDyxy.js";import{i as t,n,r,t as i}from"./chunk-4TB4RGXK-AZq3s1Dh.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -0,0 +1 @@
1
+ import{i as e}from"./graphlib-BIlXYGdM.js";var t=4;function n(n){return e(n,t)}export{n as t};
@@ -1 +1 @@
1
- import{C as e,N as t,S as n,T as r,_ as i,b as a,v as o,x as s,y as c}from"./chunk-5PVQY5BW-BrmXs2Gs.js";import{E as l,O as u,T as d,c as f,f as p,g as m,o as ee,r as te,t as ne,u as h,x as re}from"./identity-D4WOnl_h.js";import{i as ie,n as ae}from"./index-lyyIVcc_.js";import{E as g,_ as oe,c as _,d as v,f as se,g as ce,h as le,m as ue,n as y,o as de,p as fe,r as pe,s as me,t as b,u as he,v as ge,x as _e,y as x}from"./reduce-BDOBPIXr.js";import{a as S,i as ve,n as C,o as ye,r as be,t as w}from"./flatten-C5NL-f24.js";import{i as xe,n as T,r as E,t as D}from"./graphlib-COiJG5Qv.js";var Se=/\s/;function Ce(e){for(var t=e.length;t--&&Se.test(e.charAt(t)););return t}var we=/^\s+/;function Te(e){return e&&e.slice(0,Ce(e)+1).replace(we,``)}var Ee=NaN,De=/^[-+]0x[0-9a-f]+$/i,Oe=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,Ae=parseInt;function je(e){if(typeof e==`number`)return e;if(x(e))return Ee;if(d(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=d(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Te(e);var n=Oe.test(e);return n||ke.test(e)?Ae(e.slice(2),n?2:8):De.test(e)?Ee:+e}var Me=1/0,Ne=17976931348623157e292;function O(e){return e?(e=je(e),e===Me||e===-Me?(e<0?-1:1)*Ne:e===e?e:0):e===0?e:0}function Pe(e){var t=O(e),n=t%1;return t===t?n?t-n:t:0}function Fe(e){return a(n(e,void 0,w),e+``)}var Ie=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Le(e){return Ie.test(e)}var Re=1,ze=4;function Be(e){return xe(e,Re|ze)}var Ve=function(){return u.Date.now()},He=Object.prototype,Ue=He.hasOwnProperty,We=c(function(t,n){t=Object(t);var r=-1,i=n.length,a=i>2?n[2]:void 0;for(a&&o(n[0],n[1],a)&&(i=1);++r<i;)for(var s=n[r],c=e(s),l=-1,u=c.length;++l<u;){var d=c[l],f=t[d];(f===void 0||re(f,He[d])&&!Ue.call(t,d))&&(t[d]=s[d])}return t});function k(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ge(e){return function(t,n,r){var i=Object(t);if(!f(t)){var a=v(n,3);t=_e(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var Ke=Math.max;function qe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Pe(n);return i<0&&(i=Ke(r+i,0)),de(e,v(t,3),i)}var A=Ge(qe);function Je(t,n){return t==null?t:m(t,pe(n),e)}function Ye(e,t){return e&&he(e,pe(t))}function Xe(e,t){return e>t}var Ze=Object.prototype.hasOwnProperty;function Qe(e,t){return e!=null&&Ze.call(e,t)}function $e(e,t){return e!=null&&ue(e,t,Qe)}var et=`[object String]`;function tt(e){return typeof e==`string`||!h(e)&&p(e)&&l(e)==et}function j(e,n){var r={};return n=v(n,3),he(e,function(e,i,a){t(r,i,n(e,i,a))}),r}function M(e){return e&&e.length?ve(e,ne,Xe):void 0}function N(e,t){return e&&e.length?ve(e,v(t,2),be):void 0}function nt(e,t,n,i){if(!d(e))return e;t=oe(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=ce(t[a]),u=n;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var f=c[l];u=i?i(f,l,c):void 0,u===void 0&&(u=d(f)?f:te(t[a+1])?[]:{})}r(c,l,u),c=c[l]}return e}function rt(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=le(e,o);n(s,o)&&nt(a,oe(o,e),s)}return a}function it(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function at(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=x(e),o=t!==void 0,s=t===null,c=t===t,l=x(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function ot(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=at(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function st(e,t,n){t=t.length?g(t,function(e){return h(e)?function(t){return le(t,e.length===1?e[0]:e)}:e}):[ne];var r=-1;return t=g(t,ee(v)),it(ye(e,function(e,n,i){return{criteria:g(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return ot(e,t,n)})}var ct=se(`length`),lt=`\\ud800-\\udfff`,ut=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,dt=`\\ufe0e\\ufe0f`,ft=`[`+lt+`]`,P=`[`+ut+`]`,F=`\\ud83c[\\udffb-\\udfff]`,pt=`(?:`+P+`|`+F+`)`,mt=`[^`+lt+`]`,ht=`(?:\\ud83c[\\udde6-\\uddff]){2}`,gt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,_t=`\\u200d`,vt=pt+`?`,yt=`[`+dt+`]?`,bt=`(?:`+_t+`(?:`+[mt,ht,gt].join(`|`)+`)`+yt+vt+`)*`,xt=yt+vt+bt,St=`(?:`+[mt+P+`?`,P,ht,gt,ft].join(`|`)+`)`,Ct=RegExp(F+`(?=`+F+`)|`+St+xt,`g`);function wt(e){for(var t=Ct.lastIndex=0;Ct.test(e);)++t;return t}function Tt(e){return Le(e)?wt(e):ct(e)}function Et(e,t){return rt(e,t,function(t,n){return fe(e,n)})}var I=Fe(function(e,t){return e==null?{}:Et(e,t)}),Dt=Math.ceil,Ot=Math.max;function kt(e,t,n,r){for(var i=-1,a=Ot(Dt((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function At(e){return function(t,n,r){return r&&typeof r!=`number`&&o(t,n,r)&&(n=r=void 0),t=O(t),n===void 0?(n=t,t=0):n=O(n),r=r===void 0?t<n?1:-1:O(r),kt(t,n,r,e)}}var L=At(),jt=`[object Map]`,Mt=`[object Set]`;function Nt(e){if(e==null)return 0;if(f(e))return tt(e)?Tt(e):e.length;var t=ae(e);return t==jt||t==Mt?e.size:ie(e).length}var R=c(function(e,t){if(e==null)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),st(e,me(t,1),[])}),Pt=0;function z(e){var t=++Pt;return ge(e)+t}function Ft(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function It(e,t){return Ft(e||[],t||[],r)}var Lt=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return Rt(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&Rt(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,zt)),n=n._prev;return`[`+e.join(`, `)+`]`}};function Rt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function zt(e,t){if(e!==`_next`&&e!==`_prev`)return t}var Bt=s(1);function Vt(e,t){if(e.nodeCount()<=1)return[];var n=Ut(e,t||Bt);return w(S(Ht(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function Ht(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)B(e,t,n,o);for(;o=i.dequeue();)B(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(B(e,t,n,o,!0));break}}}return r}function B(e,t,n,r,i){var a=i?[]:void 0;return y(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,V(t,n,s)}),y(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,V(t,n,o)}),e.removeNode(r.v),a}function Ut(e,t){var n=new D,r=0,i=0;y(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),y(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=L(i+r+3).map(function(){return new Lt}),o=r+1;return y(n.nodes(),function(e){V(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function V(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function Wt(e){y(e.graph().acyclicer===`greedy`?Vt(e,t(e)):Gt(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,z(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function Gt(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,y(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return y(e.nodes(),i),t}function Kt(e){y(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function H(e,t,n,r){var i;do i=z(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function qt(e){var t=new D().setGraph(e.graph());return y(e.nodes(),function(n){t.setNode(n,e.node(n))}),y(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function Jt(e){var t=new D({multigraph:e.isMultigraph()}).setGraph(e.graph());return y(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),y(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function Yt(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function U(e){var t=S(L($t(e)+1),function(){return[]});return y(e.nodes(),function(n){var r=e.node(n),i=r.rank;T(i)||(t[i][r.order]=n)}),t}function Xt(e){var t=C(S(e.nodes(),function(t){return e.node(t).rank}));y(e.nodes(),function(n){var r=e.node(n);$e(r,`rank`)&&(r.rank-=t)})}function Zt(e){var t=C(S(e.nodes(),function(t){return e.node(t).rank})),n=[];y(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;y(n,function(t,n){T(t)&&n%i!==0?--r:r&&y(t,function(t){e.node(t).rank+=r})})}function Qt(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),H(e,`border`,i,t)}function $t(e){return M(S(e.nodes(),function(t){var n=e.node(t).rank;if(!T(n))return n}))}function en(e,t){var n={lhs:[],rhs:[]};return y(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function tn(e,t){var n=Ve();try{return t()}finally{console.log(e+` time: `+(Ve()-n)+`ms`)}}function nn(e,t){return t()}function rn(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&y(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)an(e,`borderLeft`,`_bl`,n,i,a),an(e,`borderRight`,`_br`,n,i,a)}}y(e.children(),t)}function an(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=H(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function on(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&cn(e)}function sn(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&un(e),(t===`lr`||t===`rl`)&&(dn(e),cn(e))}function cn(e){y(e.nodes(),function(t){ln(e.node(t))}),y(e.edges(),function(t){ln(e.edge(t))})}function ln(e){var t=e.width;e.width=e.height,e.height=t}function un(e){y(e.nodes(),function(t){W(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);y(n.points,W),Object.prototype.hasOwnProperty.call(n,`y`)&&W(n)})}function W(e){e.y=-e.y}function dn(e){y(e.nodes(),function(t){G(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);y(n.points,G),Object.prototype.hasOwnProperty.call(n,`x`)&&G(n)})}function G(e){var t=e.x;e.x=e.y,e.y=t}function fn(e){e.graph().dummyChains=[],y(e.edges(),function(t){pn(e,t)})}function pn(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l=void 0,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],l={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},u=H(e,`edge`,l,`_d`),r===c&&(l.width=s.width,l.height=s.height,l.dummy=`edge-label`,l.labelpos=s.labelpos),e.setEdge(n,u,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,i,{weight:s.weight},o)}}function mn(e){y(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function K(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=C(S(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}y(e.sources(),n)}function q(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function hn(e){var t=new D({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;gn(t,e)<r;)i=_n(t,e),a=t.hasNode(i.v)?q(e,i):-q(e,i),vn(t,e,a);return t}function gn(e,t){function n(r){y(t.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!q(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return y(e.nodes(),n),e.nodeCount()}function _n(e,t){return N(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return q(t,n)})}function vn(e,t,n){y(e.nodes(),function(e){t.node(e).rank+=n})}s(1),s(1),yn.CycleException=J;function yn(e){var t={},n={},r=[];function i(a){if(Object.prototype.hasOwnProperty.call(n,a))throw new J;Object.prototype.hasOwnProperty.call(t,a)||(n[a]=!0,t[a]=!0,y(e.predecessors(a),i),delete n[a],r.push(a))}if(y(e.sinks(),i),Nt(t)!==e.nodeCount())throw new J;return r}function J(){}J.prototype=Error();function bn(e,t,n){h(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return y(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);xn(e,t,n===`post`,a,r,i)}),i}function xn(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),y(i(t),function(t){xn(e,t,n,r,i,a)}),n&&a.push(t))}function Sn(e,t){return bn(e,t,`post`)}function Cn(e,t){return bn(e,t,`pre`)}Y.initLowLimValues=Z,Y.initCutValues=X,Y.calcCutValue=Tn,Y.leaveEdge=Dn,Y.enterEdge=On,Y.exchangeEdges=kn;function Y(e){e=qt(e),K(e);var t=hn(e);Z(t),X(t,e);for(var n,r;n=Dn(t);)r=On(t,e,n),kn(t,e,n,r)}function X(e,t){var n=Sn(e,e.nodes());n=n.slice(0,n.length-1),y(n,function(n){wn(e,t,n)})}function wn(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=Tn(e,t,n)}function Tn(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,y(t.nodeEdges(n),function(a){var s=a.v===n,c=s?a.w:a.v;if(c!==r){var l=s===i,u=t.edge(a).weight;if(o+=l?u:-u,jn(e,n,c)){var d=e.edge(n,c).cutvalue;o+=l?-d:d}}}),o}function Z(e,t){arguments.length<2&&(t=e.nodes()[0]),En(e,{},1,t)}function En(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,y(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=En(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function Dn(e){return A(e.edges(),function(t){return e.edge(t).cutvalue<0})}function On(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,c=!1;return a.lim>o.lim&&(s=o,c=!0),N(_(t.edges(),function(t){return c===Mn(e,e.node(t.v),s)&&c!==Mn(e,e.node(t.w),s)}),function(e){return q(t,e)})}function kn(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),Z(e),X(e,t),An(e,t)}function An(e,t){var n=Cn(e,A(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),y(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function jn(e,t,n){return e.hasEdge(t,n)}function Mn(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Nn(e){switch(e.graph().ranker){case`network-simplex`:In(e);break;case`tight-tree`:Fn(e);break;case`longest-path`:Pn(e);break;default:In(e)}}var Pn=K;function Fn(e){K(e),hn(e)}function In(e){Y(e)}function Ln(e){var t=H(e,`root`,{},`_root`),n=zn(e),r=M(E(n))-1,i=2*r+1;e.graph().nestingRoot=t,y(e.edges(),function(t){e.edge(t).minlen*=i});var a=Bn(e)+1;y(e.children(),function(o){Rn(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function Rn(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var c=Qt(e,`_bt`),l=Qt(e,`_bb`),u=e.node(o);e.setParent(c,o),u.borderTop=c,e.setParent(l,o),u.borderBottom=l,y(s,function(s){Rn(e,t,n,r,i,a,s);var u=e.node(s),d=u.borderTop?u.borderTop:s,f=u.borderBottom?u.borderBottom:s,p=u.borderTop?r:2*r,m=d===f?i-a[o]+1:1;e.setEdge(c,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,l,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,c,{weight:0,minlen:i+a[o]})}function zn(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&y(a,function(e){n(e,i+1)}),t[r]=i}return y(e.children(),function(e){n(e,1)}),t}function Bn(e){return b(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function Vn(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,y(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}function Hn(e,t,n){var r={},i;y(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}function Un(e,t,n){var r=Wn(e),i=new D({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return y(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),y(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=T(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function Wn(e){for(var t;e.hasNode(t=z(`_root`)););return t}function Gn(e,t){for(var n=0,r=1;r<t.length;++r)n+=Kn(e,t[r-1],t[r]);return n}function Kn(e,t,n){for(var r=It(n,S(n,function(e,t){return t})),i=w(S(t,function(t){return R(S(e.outEdges(t),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),`pos`)})),a=1;a<n.length;)a<<=1;var o=2*a-1;--a;var s=S(Array(o),function(){return 0}),c=0;return y(i.forEach(function(e){var t=e.pos+a;s[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;c+=e.weight*n})),c}function qn(e){var t={},n=_(e.nodes(),function(t){return!e.children(t).length}),r=S(L(M(S(n,function(t){return e.node(t).rank}))+1),function(){return[]});function i(n){$e(t,n)||(t[n]=!0,r[e.node(n).rank].push(n),y(e.successors(n),i))}return y(R(n,function(t){return e.node(t).rank}),i),r}function Jn(e,t){return S(t,function(t){var n=e.inEdges(t);if(n.length){var r=b(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}function Yn(e,t){var n={};return y(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};T(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),y(t.edges(),function(e){var t=n[e.v],r=n[e.w];!T(t)&&!T(r)&&(r.indegree++,t.out.push(n[e.w]))}),Xn(_(n,function(e){return!e.indegree}))}function Xn(e){var t=[];function n(e){return function(t){t.merged||(T(t.barycenter)||T(e.barycenter)||t.barycenter>=e.barycenter)&&Zn(e,t)}}function r(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),y(i.in.reverse(),n(i)),y(i.out,r(i))}return S(_(t,function(e){return!e.merged}),function(e){return I(e,[`vs`,`i`,`barycenter`,`weight`])})}function Zn(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function Qn(e,t){var n=en(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=R(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,c=0;r.sort(er(!!t)),c=$n(a,i,c),y(r,function(e){c+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,c=$n(a,i,c)});var l={vs:w(a)};return s&&(l.barycenter=o/s,l.weight=s),l}function $n(e,t,n){for(var r;t.length&&(r=k(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function er(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}function tr(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(i=_(i,function(e){return e!==o&&e!==s}));var l=Jn(e,i);y(l,function(t){if(e.children(t.v).length){var i=tr(e,t.v,n,r);c[t.v]=i,Object.prototype.hasOwnProperty.call(i,`barycenter`)&&rr(t,i)}});var u=Yn(l,n);nr(u,c);var d=Qn(u,r);if(o&&(d.vs=w([o,d.vs,s]),e.predecessors(o).length)){var f=e.node(e.predecessors(o)[0]),p=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(d,`barycenter`)||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+f.order+p.order)/(d.weight+2),d.weight+=2}return d}function nr(e,t){y(e,function(e){e.vs=w(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function rr(e,t){T(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function ir(e){var t=$t(e),n=ar(e,L(1,t+1),`inEdges`),r=ar(e,L(t-1,-1,-1),`outEdges`),i=qn(e);sr(e,i);for(var a=1/0,o,s=0,c=0;c<4;++s,++c){or(s%2?n:r,s%4>=2),i=U(e);var l=Gn(e,i);l<a&&(c=0,o=Be(i),a=l)}sr(e,o)}function ar(e,t,n){return S(t,function(t){return Un(e,t,n)})}function or(e,t){var n=new D;y(e,function(e){var r=e.graph().root,i=tr(e,r,n,t);y(i.vs,function(t,n){e.node(t).order=n}),Hn(e,n,i.vs)})}function sr(e,t){y(t,function(t){y(t,function(t,n){e.node(t).order=n})})}function cr(e){var t=ur(e);y(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=lr(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function lr(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c=n,l;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function ur(e){var t={},n=0;function r(i){var a=n;y(e.children(i),r),t[i]={low:a,lim:n++}}return y(e.children(),r),t}function dr(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=k(r);return y(r,function(t,c){var l=pr(e,t),u=l?e.node(l).order:o;(l||t===s)&&(y(r.slice(a,c+1),function(t){y(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(o<i||u<o)&&!(a.dummy&&e.node(t).dummy)&&mr(n,r,t)})}),a=c+1,i=u)}),r}return b(t,r),n}function fr(e,t){var n={};function r(t,r,i,a,o){var s;y(L(r,i),function(r){s=t[r],e.node(s).dummy&&y(e.predecessors(s),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>o)&&mr(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return y(n,function(s,c){if(e.node(s).dummy===`border`){var l=e.predecessors(s);l.length&&(a=e.node(l[0]).order,r(n,o,c,i,a),o=c,i=a)}r(n,o,n.length,a,t.length)}),n}return b(t,i),n}function pr(e,t){if(e.node(t).dummy)return A(e.predecessors(t),function(t){return e.node(t).dummy})}function mr(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function hr(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function gr(e,t,n,r){var i={},a={},o={};return y(t,function(e){y(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),y(t,function(e){var t=-1;y(e,function(e){var s=r(e);if(s.length){s=R(s,function(e){return o[e]});for(var c=(s.length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var d=s[l];a[e]===e&&t<o[d]&&!hr(n,e,d)&&(a[d]=e,a[e]=i[e]=i[d],t=o[d])}}})}),{root:i,align:a}}function _r(e,t,n,r,i){var a={},o=vr(e,t,n,i),s=i?`borderLeft`:`borderRight`;function c(e,t){for(var n=o.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function l(e){a[e]=o.inEdges(e).reduce(function(e,t){return Math.max(e,a[t.v]+o.edge(t))},0)}function u(t){var n=o.outEdges(t).reduce(function(e,t){return Math.min(e,a[t.w]-o.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==s&&(a[t]=Math.max(a[t],n))}return c(l,o.predecessors.bind(o)),c(u,o.successors.bind(o)),y(r,function(e){a[e]=a[n[e]]}),a}function vr(e,t,n,r){var i=new D,a=e.graph(),o=Cr(a.nodesep,a.edgesep,r);return y(t,function(t){var r;y(t,function(t){var a=n[t];if(i.setNode(a),r){var s=n[r],c=i.edge(s,a);i.setEdge(s,a,Math.max(o(e,t,r),c||0))}r=t})}),i}function yr(e,t){return N(E(t),function(t){var n=-1/0,r=1/0;return Je(t,function(t,i){var a=wr(e,i)/2;n=Math.max(t+a,n),r=Math.min(t-a,r)}),n-r})}function br(e,t){var n=E(t),r=C(n),i=M(n);y([`u`,`d`],function(n){y([`l`,`r`],function(a){var o=n+a,s=e[o],c;if(s!==t){var l=E(s);c=a===`l`?r-C(l):i-M(l),c&&(e[o]=j(s,function(e){return e+c}))}})})}function xr(e,t){return j(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=R(S(e,r));return(i[1]+i[2])/2})}function Sr(e){var t=U(e),n=i(dr(e,t),fr(e,t)),r={},a;return y([`u`,`d`],function(i){a=i===`u`?t:E(t).reverse(),y([`l`,`r`],function(t){t===`r`&&(a=S(a,function(e){return E(e).reverse()}));var o=(i===`u`?e.predecessors:e.successors).bind(e),s=gr(e,a,n,o),c=_r(e,a,s.root,s.align,t===`r`);t===`r`&&(c=j(c,function(e){return-e})),r[i+t]=c})}),br(r,yr(e,r)),xr(r,e.graph().align)}function Cr(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.prototype.hasOwnProperty.call(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.prototype.hasOwnProperty.call(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function wr(e,t){return e.node(t).width}function Tr(e){e=Jt(e),Er(e),Ye(Sr(e),function(t,n){e.node(n).x=t})}function Er(e){var t=U(e),n=e.graph().ranksep,r=0;y(t,function(t){var i=M(S(t,function(t){return e.node(t).height}));y(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}function Dr(e,t){var n=t&&t.debugTiming?tn:nn;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>Rr(e));n(` runLayout`,()=>Or(t,n)),n(` updateInputGraph`,()=>kr(e,t))})}function Or(e,t){t(` makeSpaceForEdgeLabels`,()=>zr(e)),t(` removeSelfEdges`,()=>Jr(e)),t(` acyclic`,()=>Wt(e)),t(` nestingGraph.run`,()=>Ln(e)),t(` rank`,()=>Nn(Jt(e))),t(` injectEdgeLabelProxies`,()=>Br(e)),t(` removeEmptyRanks`,()=>Zt(e)),t(` nestingGraph.cleanup`,()=>Vn(e)),t(` normalizeRanks`,()=>Xt(e)),t(` assignRankMinMax`,()=>Vr(e)),t(` removeEdgeLabelProxies`,()=>Hr(e)),t(` normalize.run`,()=>fn(e)),t(` parentDummyChains`,()=>cr(e)),t(` addBorderSegments`,()=>rn(e)),t(` order`,()=>ir(e)),t(` insertSelfEdges`,()=>Yr(e)),t(` adjustCoordinateSystem`,()=>on(e)),t(` position`,()=>Tr(e)),t(` positionSelfEdges`,()=>Xr(e)),t(` removeBorderNodes`,()=>qr(e)),t(` normalize.undo`,()=>mn(e)),t(` fixupEdgeLabelCoords`,()=>Gr(e)),t(` undoCoordinateSystem`,()=>sn(e)),t(` translateGraph`,()=>Ur(e)),t(` assignNodeIntersects`,()=>Wr(e)),t(` reversePoints`,()=>Kr(e)),t(` acyclic.undo`,()=>Kt(e))}function kr(e,t){y(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),y(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var Ar=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Mr=[`acyclicer`,`ranker`,`rankdir`,`align`],Nr=[`width`,`height`],Pr={width:0,height:0},Fr=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Ir={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},Lr=[`labelpos`];function Rr(e){var t=new D({multigraph:!0,compound:!0}),n=$(e.graph());return t.setGraph(i({},jr,Q(n,Ar),I(n,Mr))),y(e.nodes(),function(n){var r=$(e.node(n));t.setNode(n,We(Q(r,Nr),Pr)),t.setParent(n,e.parent(n))}),y(e.edges(),function(n){var r=$(e.edge(n));t.setEdge(n,i({},Ir,Q(r,Fr),I(r,Lr)))}),t}function zr(e){var t=e.graph();t.ranksep/=2,y(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function Br(e){y(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);H(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function Vr(e){var t=0;y(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=M(t,r.maxRank))}),e.graph().maxRank=t}function Hr(e){y(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function Ur(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function c(e){var a=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-c/2),i=Math.max(i,o+c/2)}y(e.nodes(),function(t){c(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&c(n)}),t-=o,r-=s,y(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),y(e.edges(),function(n){var i=e.edge(n);y(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function Wr(e){y(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(Yt(r,a)),n.points.push(Yt(i,o))})}function Gr(e){y(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function Kr(e){y(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function qr(e){y(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(k(n.borderLeft)),o=e.node(k(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),y(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function Jr(e){y(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Yr(e){y(U(e),function(t){var n=0;y(t,function(t,r){var i=e.node(t);i.order=r+n,y(i.selfEdges,function(t){H(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function Xr(e){y(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Q(e,t){return j(I(e,t),Number)}function $(e){var t={};return y(e,function(e,n){t[n.toLowerCase()]=e}),t}export{Dr as t};
1
+ import{C as e,N as t,S as n,T as r,_ as i,b as a,v as o,x as s,y as c}from"./chunk-5PVQY5BW-BrmXs2Gs.js";import{E as l,O as u,T as d,c as f,f as p,g as m,o as ee,r as te,t as ne,u as h,x as re}from"./identity-D4WOnl_h.js";import{i as ie,n as ae}from"./index-CZZuue3D.js";import{E as g,_ as oe,c as _,d as v,f as se,g as ce,h as le,m as ue,n as y,o as de,p as fe,r as pe,s as me,t as b,u as he,v as ge,x as _e,y as x}from"./reduce-Uumu9GdR.js";import{a as S,i as ve,n as C,o as ye,r as be,t as w}from"./flatten-B2BZ0pzY.js";import{i as xe,n as T,r as E,t as D}from"./graphlib-BIlXYGdM.js";var Se=/\s/;function Ce(e){for(var t=e.length;t--&&Se.test(e.charAt(t)););return t}var we=/^\s+/;function Te(e){return e&&e.slice(0,Ce(e)+1).replace(we,``)}var Ee=NaN,De=/^[-+]0x[0-9a-f]+$/i,Oe=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,Ae=parseInt;function je(e){if(typeof e==`number`)return e;if(x(e))return Ee;if(d(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=d(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Te(e);var n=Oe.test(e);return n||ke.test(e)?Ae(e.slice(2),n?2:8):De.test(e)?Ee:+e}var Me=1/0,Ne=17976931348623157e292;function O(e){return e?(e=je(e),e===Me||e===-Me?(e<0?-1:1)*Ne:e===e?e:0):e===0?e:0}function Pe(e){var t=O(e),n=t%1;return t===t?n?t-n:t:0}function Fe(e){return a(n(e,void 0,w),e+``)}var Ie=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Le(e){return Ie.test(e)}var Re=1,ze=4;function Be(e){return xe(e,Re|ze)}var Ve=function(){return u.Date.now()},He=Object.prototype,Ue=He.hasOwnProperty,We=c(function(t,n){t=Object(t);var r=-1,i=n.length,a=i>2?n[2]:void 0;for(a&&o(n[0],n[1],a)&&(i=1);++r<i;)for(var s=n[r],c=e(s),l=-1,u=c.length;++l<u;){var d=c[l],f=t[d];(f===void 0||re(f,He[d])&&!Ue.call(t,d))&&(t[d]=s[d])}return t});function k(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ge(e){return function(t,n,r){var i=Object(t);if(!f(t)){var a=v(n,3);t=_e(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var Ke=Math.max;function qe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Pe(n);return i<0&&(i=Ke(r+i,0)),de(e,v(t,3),i)}var A=Ge(qe);function Je(t,n){return t==null?t:m(t,pe(n),e)}function Ye(e,t){return e&&he(e,pe(t))}function Xe(e,t){return e>t}var Ze=Object.prototype.hasOwnProperty;function Qe(e,t){return e!=null&&Ze.call(e,t)}function $e(e,t){return e!=null&&ue(e,t,Qe)}var et=`[object String]`;function tt(e){return typeof e==`string`||!h(e)&&p(e)&&l(e)==et}function j(e,n){var r={};return n=v(n,3),he(e,function(e,i,a){t(r,i,n(e,i,a))}),r}function M(e){return e&&e.length?ve(e,ne,Xe):void 0}function N(e,t){return e&&e.length?ve(e,v(t,2),be):void 0}function nt(e,t,n,i){if(!d(e))return e;t=oe(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=ce(t[a]),u=n;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var f=c[l];u=i?i(f,l,c):void 0,u===void 0&&(u=d(f)?f:te(t[a+1])?[]:{})}r(c,l,u),c=c[l]}return e}function rt(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=le(e,o);n(s,o)&&nt(a,oe(o,e),s)}return a}function it(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function at(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=x(e),o=t!==void 0,s=t===null,c=t===t,l=x(t);if(!s&&!l&&!a&&e>t||a&&o&&c&&!s&&!l||r&&o&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!c)return-1}return 0}function ot(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=at(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function st(e,t,n){t=t.length?g(t,function(e){return h(e)?function(t){return le(t,e.length===1?e[0]:e)}:e}):[ne];var r=-1;return t=g(t,ee(v)),it(ye(e,function(e,n,i){return{criteria:g(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return ot(e,t,n)})}var ct=se(`length`),lt=`\\ud800-\\udfff`,ut=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,dt=`\\ufe0e\\ufe0f`,ft=`[`+lt+`]`,P=`[`+ut+`]`,F=`\\ud83c[\\udffb-\\udfff]`,pt=`(?:`+P+`|`+F+`)`,mt=`[^`+lt+`]`,ht=`(?:\\ud83c[\\udde6-\\uddff]){2}`,gt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,_t=`\\u200d`,vt=pt+`?`,yt=`[`+dt+`]?`,bt=`(?:`+_t+`(?:`+[mt,ht,gt].join(`|`)+`)`+yt+vt+`)*`,xt=yt+vt+bt,St=`(?:`+[mt+P+`?`,P,ht,gt,ft].join(`|`)+`)`,Ct=RegExp(F+`(?=`+F+`)|`+St+xt,`g`);function wt(e){for(var t=Ct.lastIndex=0;Ct.test(e);)++t;return t}function Tt(e){return Le(e)?wt(e):ct(e)}function Et(e,t){return rt(e,t,function(t,n){return fe(e,n)})}var I=Fe(function(e,t){return e==null?{}:Et(e,t)}),Dt=Math.ceil,Ot=Math.max;function kt(e,t,n,r){for(var i=-1,a=Ot(Dt((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}function At(e){return function(t,n,r){return r&&typeof r!=`number`&&o(t,n,r)&&(n=r=void 0),t=O(t),n===void 0?(n=t,t=0):n=O(n),r=r===void 0?t<n?1:-1:O(r),kt(t,n,r,e)}}var L=At(),jt=`[object Map]`,Mt=`[object Set]`;function Nt(e){if(e==null)return 0;if(f(e))return tt(e)?Tt(e):e.length;var t=ae(e);return t==jt||t==Mt?e.size:ie(e).length}var R=c(function(e,t){if(e==null)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),st(e,me(t,1),[])}),Pt=0;function z(e){var t=++Pt;return ge(e)+t}function Ft(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}function It(e,t){return Ft(e||[],t||[],r)}var Lt=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return Rt(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&Rt(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,zt)),n=n._prev;return`[`+e.join(`, `)+`]`}};function Rt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function zt(e,t){if(e!==`_next`&&e!==`_prev`)return t}var Bt=s(1);function Vt(e,t){if(e.nodeCount()<=1)return[];var n=Ut(e,t||Bt);return w(S(Ht(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function Ht(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)B(e,t,n,o);for(;o=i.dequeue();)B(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(B(e,t,n,o,!0));break}}}return r}function B(e,t,n,r,i){var a=i?[]:void 0;return y(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,V(t,n,s)}),y(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,V(t,n,o)}),e.removeNode(r.v),a}function Ut(e,t){var n=new D,r=0,i=0;y(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),y(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=L(i+r+3).map(function(){return new Lt}),o=r+1;return y(n.nodes(),function(e){V(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function V(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function Wt(e){y(e.graph().acyclicer===`greedy`?Vt(e,t(e)):Gt(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,z(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function Gt(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,y(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return y(e.nodes(),i),t}function Kt(e){y(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function H(e,t,n,r){var i;do i=z(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function qt(e){var t=new D().setGraph(e.graph());return y(e.nodes(),function(n){t.setNode(n,e.node(n))}),y(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function Jt(e){var t=new D({multigraph:e.isMultigraph()}).setGraph(e.graph());return y(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),y(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function Yt(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function U(e){var t=S(L($t(e)+1),function(){return[]});return y(e.nodes(),function(n){var r=e.node(n),i=r.rank;T(i)||(t[i][r.order]=n)}),t}function Xt(e){var t=C(S(e.nodes(),function(t){return e.node(t).rank}));y(e.nodes(),function(n){var r=e.node(n);$e(r,`rank`)&&(r.rank-=t)})}function Zt(e){var t=C(S(e.nodes(),function(t){return e.node(t).rank})),n=[];y(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;y(n,function(t,n){T(t)&&n%i!==0?--r:r&&y(t,function(t){e.node(t).rank+=r})})}function Qt(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),H(e,`border`,i,t)}function $t(e){return M(S(e.nodes(),function(t){var n=e.node(t).rank;if(!T(n))return n}))}function en(e,t){var n={lhs:[],rhs:[]};return y(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function tn(e,t){var n=Ve();try{return t()}finally{console.log(e+` time: `+(Ve()-n)+`ms`)}}function nn(e,t){return t()}function rn(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&y(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)an(e,`borderLeft`,`_bl`,n,i,a),an(e,`borderRight`,`_br`,n,i,a)}}y(e.children(),t)}function an(e,t,n,r,i,a){var o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=H(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function on(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&cn(e)}function sn(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&un(e),(t===`lr`||t===`rl`)&&(dn(e),cn(e))}function cn(e){y(e.nodes(),function(t){ln(e.node(t))}),y(e.edges(),function(t){ln(e.edge(t))})}function ln(e){var t=e.width;e.width=e.height,e.height=t}function un(e){y(e.nodes(),function(t){W(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);y(n.points,W),Object.prototype.hasOwnProperty.call(n,`y`)&&W(n)})}function W(e){e.y=-e.y}function dn(e){y(e.nodes(),function(t){G(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);y(n.points,G),Object.prototype.hasOwnProperty.call(n,`x`)&&G(n)})}function G(e){var t=e.x;e.x=e.y,e.y=t}function fn(e){e.graph().dummyChains=[],y(e.edges(),function(t){pn(e,t)})}function pn(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a!==r+1){e.removeEdge(t);var l=void 0,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],l={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},u=H(e,`edge`,l,`_d`),r===c&&(l.width=s.width,l.height=s.height,l.dummy=`edge-label`,l.labelpos=s.labelpos),e.setEdge(n,u,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,i,{weight:s.weight},o)}}function mn(e){y(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function K(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=C(S(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}y(e.sources(),n)}function q(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function hn(e){var t=new D({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;gn(t,e)<r;)i=_n(t,e),a=t.hasNode(i.v)?q(e,i):-q(e,i),vn(t,e,a);return t}function gn(e,t){function n(r){y(t.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!q(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return y(e.nodes(),n),e.nodeCount()}function _n(e,t){return N(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return q(t,n)})}function vn(e,t,n){y(e.nodes(),function(e){t.node(e).rank+=n})}s(1),s(1),yn.CycleException=J;function yn(e){var t={},n={},r=[];function i(a){if(Object.prototype.hasOwnProperty.call(n,a))throw new J;Object.prototype.hasOwnProperty.call(t,a)||(n[a]=!0,t[a]=!0,y(e.predecessors(a),i),delete n[a],r.push(a))}if(y(e.sinks(),i),Nt(t)!==e.nodeCount())throw new J;return r}function J(){}J.prototype=Error();function bn(e,t,n){h(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return y(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);xn(e,t,n===`post`,a,r,i)}),i}function xn(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),y(i(t),function(t){xn(e,t,n,r,i,a)}),n&&a.push(t))}function Sn(e,t){return bn(e,t,`post`)}function Cn(e,t){return bn(e,t,`pre`)}Y.initLowLimValues=Z,Y.initCutValues=X,Y.calcCutValue=Tn,Y.leaveEdge=Dn,Y.enterEdge=On,Y.exchangeEdges=kn;function Y(e){e=qt(e),K(e);var t=hn(e);Z(t),X(t,e);for(var n,r;n=Dn(t);)r=On(t,e,n),kn(t,e,n,r)}function X(e,t){var n=Sn(e,e.nodes());n=n.slice(0,n.length-1),y(n,function(n){wn(e,t,n)})}function wn(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=Tn(e,t,n)}function Tn(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,y(t.nodeEdges(n),function(a){var s=a.v===n,c=s?a.w:a.v;if(c!==r){var l=s===i,u=t.edge(a).weight;if(o+=l?u:-u,jn(e,n,c)){var d=e.edge(n,c).cutvalue;o+=l?-d:d}}}),o}function Z(e,t){arguments.length<2&&(t=e.nodes()[0]),En(e,{},1,t)}function En(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,y(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=En(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function Dn(e){return A(e.edges(),function(t){return e.edge(t).cutvalue<0})}function On(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,c=!1;return a.lim>o.lim&&(s=o,c=!0),N(_(t.edges(),function(t){return c===Mn(e,e.node(t.v),s)&&c!==Mn(e,e.node(t.w),s)}),function(e){return q(t,e)})}function kn(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),Z(e),X(e,t),An(e,t)}function An(e,t){var n=Cn(e,A(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),y(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function jn(e,t,n){return e.hasEdge(t,n)}function Mn(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Nn(e){switch(e.graph().ranker){case`network-simplex`:In(e);break;case`tight-tree`:Fn(e);break;case`longest-path`:Pn(e);break;default:In(e)}}var Pn=K;function Fn(e){K(e),hn(e)}function In(e){Y(e)}function Ln(e){var t=H(e,`root`,{},`_root`),n=zn(e),r=M(E(n))-1,i=2*r+1;e.graph().nestingRoot=t,y(e.edges(),function(t){e.edge(t).minlen*=i});var a=Bn(e)+1;y(e.children(),function(o){Rn(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function Rn(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var c=Qt(e,`_bt`),l=Qt(e,`_bb`),u=e.node(o);e.setParent(c,o),u.borderTop=c,e.setParent(l,o),u.borderBottom=l,y(s,function(s){Rn(e,t,n,r,i,a,s);var u=e.node(s),d=u.borderTop?u.borderTop:s,f=u.borderBottom?u.borderBottom:s,p=u.borderTop?r:2*r,m=d===f?i-a[o]+1:1;e.setEdge(c,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,l,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,c,{weight:0,minlen:i+a[o]})}function zn(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&y(a,function(e){n(e,i+1)}),t[r]=i}return y(e.children(),function(e){n(e,1)}),t}function Bn(e){return b(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function Vn(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,y(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}function Hn(e,t,n){var r={},i;y(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}function Un(e,t,n){var r=Wn(e),i=new D({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return y(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),y(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=T(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function Wn(e){for(var t;e.hasNode(t=z(`_root`)););return t}function Gn(e,t){for(var n=0,r=1;r<t.length;++r)n+=Kn(e,t[r-1],t[r]);return n}function Kn(e,t,n){for(var r=It(n,S(n,function(e,t){return t})),i=w(S(t,function(t){return R(S(e.outEdges(t),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),`pos`)})),a=1;a<n.length;)a<<=1;var o=2*a-1;--a;var s=S(Array(o),function(){return 0}),c=0;return y(i.forEach(function(e){var t=e.pos+a;s[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;c+=e.weight*n})),c}function qn(e){var t={},n=_(e.nodes(),function(t){return!e.children(t).length}),r=S(L(M(S(n,function(t){return e.node(t).rank}))+1),function(){return[]});function i(n){$e(t,n)||(t[n]=!0,r[e.node(n).rank].push(n),y(e.successors(n),i))}return y(R(n,function(t){return e.node(t).rank}),i),r}function Jn(e,t){return S(t,function(t){var n=e.inEdges(t);if(n.length){var r=b(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}else return{v:t}})}function Yn(e,t){var n={};return y(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};T(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),y(t.edges(),function(e){var t=n[e.v],r=n[e.w];!T(t)&&!T(r)&&(r.indegree++,t.out.push(n[e.w]))}),Xn(_(n,function(e){return!e.indegree}))}function Xn(e){var t=[];function n(e){return function(t){t.merged||(T(t.barycenter)||T(e.barycenter)||t.barycenter>=e.barycenter)&&Zn(e,t)}}function r(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),y(i.in.reverse(),n(i)),y(i.out,r(i))}return S(_(t,function(e){return!e.merged}),function(e){return I(e,[`vs`,`i`,`barycenter`,`weight`])})}function Zn(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function Qn(e,t){var n=en(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=R(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,c=0;r.sort(er(!!t)),c=$n(a,i,c),y(r,function(e){c+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,c=$n(a,i,c)});var l={vs:w(a)};return s&&(l.barycenter=o/s,l.weight=s),l}function $n(e,t,n){for(var r;t.length&&(r=k(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function er(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}function tr(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,c={};o&&(i=_(i,function(e){return e!==o&&e!==s}));var l=Jn(e,i);y(l,function(t){if(e.children(t.v).length){var i=tr(e,t.v,n,r);c[t.v]=i,Object.prototype.hasOwnProperty.call(i,`barycenter`)&&rr(t,i)}});var u=Yn(l,n);nr(u,c);var d=Qn(u,r);if(o&&(d.vs=w([o,d.vs,s]),e.predecessors(o).length)){var f=e.node(e.predecessors(o)[0]),p=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(d,`barycenter`)||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+f.order+p.order)/(d.weight+2),d.weight+=2}return d}function nr(e,t){y(e,function(e){e.vs=w(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function rr(e,t){T(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function ir(e){var t=$t(e),n=ar(e,L(1,t+1),`inEdges`),r=ar(e,L(t-1,-1,-1),`outEdges`),i=qn(e);sr(e,i);for(var a=1/0,o,s=0,c=0;c<4;++s,++c){or(s%2?n:r,s%4>=2),i=U(e);var l=Gn(e,i);l<a&&(c=0,o=Be(i),a=l)}sr(e,o)}function ar(e,t,n){return S(t,function(t){return Un(e,t,n)})}function or(e,t){var n=new D;y(e,function(e){var r=e.graph().root,i=tr(e,r,n,t);y(i.vs,function(t,n){e.node(t).order=n}),Hn(e,n,i.vs)})}function sr(e,t){y(t,function(t){y(t,function(t,n){e.node(t).order=n})})}function cr(e){var t=ur(e);y(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=lr(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}e.setParent(n,l),n=e.successors(n)[0]}})}function lr(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c=n,l;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function ur(e){var t={},n=0;function r(i){var a=n;y(e.children(i),r),t[i]={low:a,lim:n++}}return y(e.children(),r),t}function dr(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=k(r);return y(r,function(t,c){var l=pr(e,t),u=l?e.node(l).order:o;(l||t===s)&&(y(r.slice(a,c+1),function(t){y(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(o<i||u<o)&&!(a.dummy&&e.node(t).dummy)&&mr(n,r,t)})}),a=c+1,i=u)}),r}return b(t,r),n}function fr(e,t){var n={};function r(t,r,i,a,o){var s;y(L(r,i),function(r){s=t[r],e.node(s).dummy&&y(e.predecessors(s),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>o)&&mr(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return y(n,function(s,c){if(e.node(s).dummy===`border`){var l=e.predecessors(s);l.length&&(a=e.node(l[0]).order,r(n,o,c,i,a),o=c,i=a)}r(n,o,n.length,a,t.length)}),n}return b(t,i),n}function pr(e,t){if(e.node(t).dummy)return A(e.predecessors(t),function(t){return e.node(t).dummy})}function mr(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function hr(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function gr(e,t,n,r){var i={},a={},o={};return y(t,function(e){y(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),y(t,function(e){var t=-1;y(e,function(e){var s=r(e);if(s.length){s=R(s,function(e){return o[e]});for(var c=(s.length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var d=s[l];a[e]===e&&t<o[d]&&!hr(n,e,d)&&(a[d]=e,a[e]=i[e]=i[d],t=o[d])}}})}),{root:i,align:a}}function _r(e,t,n,r,i){var a={},o=vr(e,t,n,i),s=i?`borderLeft`:`borderRight`;function c(e,t){for(var n=o.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function l(e){a[e]=o.inEdges(e).reduce(function(e,t){return Math.max(e,a[t.v]+o.edge(t))},0)}function u(t){var n=o.outEdges(t).reduce(function(e,t){return Math.min(e,a[t.w]-o.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==s&&(a[t]=Math.max(a[t],n))}return c(l,o.predecessors.bind(o)),c(u,o.successors.bind(o)),y(r,function(e){a[e]=a[n[e]]}),a}function vr(e,t,n,r){var i=new D,a=e.graph(),o=Cr(a.nodesep,a.edgesep,r);return y(t,function(t){var r;y(t,function(t){var a=n[t];if(i.setNode(a),r){var s=n[r],c=i.edge(s,a);i.setEdge(s,a,Math.max(o(e,t,r),c||0))}r=t})}),i}function yr(e,t){return N(E(t),function(t){var n=-1/0,r=1/0;return Je(t,function(t,i){var a=wr(e,i)/2;n=Math.max(t+a,n),r=Math.min(t-a,r)}),n-r})}function br(e,t){var n=E(t),r=C(n),i=M(n);y([`u`,`d`],function(n){y([`l`,`r`],function(a){var o=n+a,s=e[o],c;if(s!==t){var l=E(s);c=a===`l`?r-C(l):i-M(l),c&&(e[o]=j(s,function(e){return e+c}))}})})}function xr(e,t){return j(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=R(S(e,r));return(i[1]+i[2])/2})}function Sr(e){var t=U(e),n=i(dr(e,t),fr(e,t)),r={},a;return y([`u`,`d`],function(i){a=i===`u`?t:E(t).reverse(),y([`l`,`r`],function(t){t===`r`&&(a=S(a,function(e){return E(e).reverse()}));var o=(i===`u`?e.predecessors:e.successors).bind(e),s=gr(e,a,n,o),c=_r(e,a,s.root,s.align,t===`r`);t===`r`&&(c=j(c,function(e){return-e})),r[i+t]=c})}),br(r,yr(e,r)),xr(r,e.graph().align)}function Cr(e,t,n){return function(r,i,a){var o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.prototype.hasOwnProperty.call(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.prototype.hasOwnProperty.call(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),l=0,c}}function wr(e,t){return e.node(t).width}function Tr(e){e=Jt(e),Er(e),Ye(Sr(e),function(t,n){e.node(n).x=t})}function Er(e){var t=U(e),n=e.graph().ranksep,r=0;y(t,function(t){var i=M(S(t,function(t){return e.node(t).height}));y(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}function Dr(e,t){var n=t&&t.debugTiming?tn:nn;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>Rr(e));n(` runLayout`,()=>Or(t,n)),n(` updateInputGraph`,()=>kr(e,t))})}function Or(e,t){t(` makeSpaceForEdgeLabels`,()=>zr(e)),t(` removeSelfEdges`,()=>Jr(e)),t(` acyclic`,()=>Wt(e)),t(` nestingGraph.run`,()=>Ln(e)),t(` rank`,()=>Nn(Jt(e))),t(` injectEdgeLabelProxies`,()=>Br(e)),t(` removeEmptyRanks`,()=>Zt(e)),t(` nestingGraph.cleanup`,()=>Vn(e)),t(` normalizeRanks`,()=>Xt(e)),t(` assignRankMinMax`,()=>Vr(e)),t(` removeEdgeLabelProxies`,()=>Hr(e)),t(` normalize.run`,()=>fn(e)),t(` parentDummyChains`,()=>cr(e)),t(` addBorderSegments`,()=>rn(e)),t(` order`,()=>ir(e)),t(` insertSelfEdges`,()=>Yr(e)),t(` adjustCoordinateSystem`,()=>on(e)),t(` position`,()=>Tr(e)),t(` positionSelfEdges`,()=>Xr(e)),t(` removeBorderNodes`,()=>qr(e)),t(` normalize.undo`,()=>mn(e)),t(` fixupEdgeLabelCoords`,()=>Gr(e)),t(` undoCoordinateSystem`,()=>sn(e)),t(` translateGraph`,()=>Ur(e)),t(` assignNodeIntersects`,()=>Wr(e)),t(` reversePoints`,()=>Kr(e)),t(` acyclic.undo`,()=>Kt(e))}function kr(e,t){y(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),y(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var Ar=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Mr=[`acyclicer`,`ranker`,`rankdir`,`align`],Nr=[`width`,`height`],Pr={width:0,height:0},Fr=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Ir={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},Lr=[`labelpos`];function Rr(e){var t=new D({multigraph:!0,compound:!0}),n=$(e.graph());return t.setGraph(i({},jr,Q(n,Ar),I(n,Mr))),y(e.nodes(),function(n){var r=$(e.node(n));t.setNode(n,We(Q(r,Nr),Pr)),t.setParent(n,e.parent(n))}),y(e.edges(),function(n){var r=$(e.edge(n));t.setEdge(n,i({},Ir,Q(r,Fr),I(r,Lr)))}),t}function zr(e){var t=e.graph();t.ranksep/=2,y(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function Br(e){y(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);H(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function Vr(e){var t=0;y(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=M(t,r.maxRank))}),e.graph().maxRank=t}function Hr(e){y(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function Ur(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function c(e){var a=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-c/2),i=Math.max(i,o+c/2)}y(e.nodes(),function(t){c(e.node(t))}),y(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&c(n)}),t-=o,r-=s,y(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),y(e.edges(),function(n){var i=e.edge(n);y(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function Wr(e){y(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(Yt(r,a)),n.points.push(Yt(i,o))})}function Gr(e){y(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function Kr(e){y(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function qr(e){y(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(k(n.borderLeft)),o=e.node(k(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),y(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function Jr(e){y(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Yr(e){y(U(e),function(t){var n=0;y(t,function(t,r){var i=e.node(t);i.order=r+n,y(i.selfEdges,function(t){H(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function Xr(e){y(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Q(e,t){return j(I(e,t),Number)}function $(e){var t={};return y(e,function(e,n){t[n.toLowerCase()]=e}),t}export{Dr as t};