@myagentroam/server 0.14.11 → 0.14.13

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 (515) hide show
  1. package/node_modules/@myagentroam/protocol/package.json +1 -1
  2. package/node_modules/@myagentroam/server-core/package.json +2 -2
  3. package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
  4. package/package.json +5 -5
  5. package/web/THIRD_PARTY_NOTICES.txt +0 -202
  6. package/web/assets/AuditManagementPage-BGwiwkWO.js +1 -0
  7. package/web/assets/AuditManagementPage-DsqAkiGi.css +1 -0
  8. package/web/assets/AuthEntryPanel-CFtw_f_Y.js +45 -0
  9. package/web/assets/AuthEntryPanel-d8KztXAR.css +1 -0
  10. package/web/assets/{BusyIndicator-D3z5mSYz.js → BusyIndicator-BJHbXq72.js} +1 -1
  11. package/web/assets/{CodeFileEditor-C1nsen9d.css → CodeFileEditor-DOTdiDdP.css} +1 -1
  12. package/web/assets/{CodeFileEditor-DrfKtRGJ.js → CodeFileEditor-DuD7Q4mq.js} +3 -3
  13. package/web/assets/ConversationTemplateManagementPage-CfZ2Ul2v.js +1 -0
  14. package/web/assets/ConversationTemplateManagementPage-DYpRP2CZ.css +1 -0
  15. package/web/assets/ConversationTemplateManagementPage-UWiSWTX8.js +1 -0
  16. package/web/assets/ConversationTemplateManagementPage-zmRrOr4L.css +1 -0
  17. package/web/assets/EnterpriseUserManagementPage-AR_Tfq3R.css +1 -0
  18. package/web/assets/EnterpriseUserManagementPage-DsO542HL.js +1 -0
  19. package/web/assets/EnvironmentSecretManager-C-5fdfXQ.css +1 -0
  20. package/web/assets/EnvironmentSecretManager-rbFx9YED.js +1 -0
  21. package/web/assets/FilePreviewLoading-B58or4ra.css +1 -0
  22. package/web/assets/FilePreviewLoading-D6s3o2bu.js +23 -0
  23. package/web/assets/HtmlPreviewFrame-DgODUBJD.css +1 -0
  24. package/web/assets/HtmlPreviewFrame-fKFJ8kxw.js +6 -0
  25. package/web/assets/LicenseManagementPage-BtQdmqgE.js +1 -0
  26. package/web/assets/LicenseManagementPage-DXwm-duU.css +1 -0
  27. package/web/assets/ManagementPagination-B6Pmmb2K.js +1 -0
  28. package/web/assets/ManagementPagination-I-9QufQH.css +1 -0
  29. package/web/assets/MarAgentModelManagementPage-BFVlk-4R.css +1 -0
  30. package/web/assets/MarAgentModelManagementPage-CLHwnOlN.css +1 -0
  31. package/web/assets/MarAgentModelManagementPage-DgIYAL72.js +1 -0
  32. package/web/assets/MarAgentModelManagementPage-jLtdmQI8.js +1 -0
  33. package/web/assets/MarAlert-Dsrb10N-.js +1 -0
  34. package/web/assets/MarAlert-Rzb0-bOv.css +1 -0
  35. package/web/assets/MarCascader-BKG_pCU9.js +1 -0
  36. package/web/assets/MarCascader-Cc9hefbo.css +1 -0
  37. package/web/assets/MarCheckboxGroup-CeaJ5pd8.js +1 -0
  38. package/web/assets/MarCheckboxGroup-DkmFKLjl.css +1 -0
  39. package/web/assets/MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-oSUSoUdm.js +1 -0
  40. package/web/assets/MarDatePicker-Bv6kzLiu.js +1 -0
  41. package/web/assets/MarDatePicker-T5E6eRQy.css +1 -0
  42. package/web/assets/MarDescriptionsItem-D06qWo6K.css +1 -0
  43. package/web/assets/MarDescriptionsItem-Ddl4rEoo.js +1 -0
  44. package/web/assets/MarFormItem-E1c9DvaF.css +1 -0
  45. package/web/assets/MarFormItem.vue_vue_type_script_setup_true_lang-DNgXEgAb.js +12 -0
  46. package/web/assets/MarInputNumber-C3s8idO0.css +1 -0
  47. package/web/assets/MarInputNumber-CcpviHTx.js +1 -0
  48. package/web/assets/MarOptionGroup-BVR0qlAA.css +1 -0
  49. package/web/assets/MarOptionGroup.vue_vue_type_style_index_0_scoped_cacd24eb_lang-BQD1pghB.js +1 -0
  50. package/web/assets/MarSwitch-DSMHC1ur.css +1 -0
  51. package/web/assets/MarSwitch-Nht5u3dc.js +1 -0
  52. package/web/assets/MarTableColumn-DtHETYNc.css +1 -0
  53. package/web/assets/MarTableColumn.vue_vue_type_script_setup_true_lang-9WwypTkY.js +1 -0
  54. package/web/assets/MarTabs-D28b5Cm_.js +1 -0
  55. package/web/assets/MarTabs-hvIwX-j4.css +1 -0
  56. package/web/assets/MarTag-Bqa2l4XX.css +1 -0
  57. package/web/assets/MarTag-CU69nmi0.js +1 -0
  58. package/web/assets/MarkdownFilePreview-eHfaSvqk.js +2 -0
  59. package/web/assets/McpDetailsDialog-CeN-XR0C.js +1 -0
  60. package/web/assets/McpDetailsDialog-DDeblEzR.css +1 -0
  61. package/web/assets/McpSourceManagementPage-C2XYcsBZ.css +1 -0
  62. package/web/assets/McpSourceManagementPage-CQ02Cxhp.js +1 -0
  63. package/web/assets/McpSourceManagementPage-D7TISzgb.js +1 -0
  64. package/web/assets/NodeDetailsDialogs-CunI5Y3P.js +1 -0
  65. package/web/assets/NodeDetailsDialogs-DGvkZsiw.css +1 -0
  66. package/web/assets/NodeManagementPage-5A5wEaf7.js +1 -0
  67. package/web/assets/NodeManagementPage-D8xNnpz-.js +1 -0
  68. package/web/assets/OAuthManagementPage-DiVu7-4g.js +2 -0
  69. package/web/assets/OAuthManagementPage-PZThmGZo.css +1 -0
  70. package/web/assets/OrganizationManagementPage-CKRrtBnJ.css +1 -0
  71. package/web/assets/OrganizationManagementPage-KYRf5SG3.js +1 -0
  72. package/web/assets/RemoteDesktopPage-CXb_A40m.js +5 -0
  73. package/web/assets/RemoteDesktopPage-DRio-7WI.css +1 -0
  74. package/web/assets/ResourceManagementPanel-C8sK8pZt.js +2 -0
  75. package/web/assets/ResourceManagementPanel-DxgpQohB.css +1 -0
  76. package/web/assets/ResourceManagementPanel-S4DxgU7P.css +1 -0
  77. package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-B0BiJsYP.js +1 -0
  78. package/web/assets/SecretManagementPage-BQLBf9JN.js +1 -0
  79. package/web/assets/SecretManagementPage-CdG81hZg.js +1 -0
  80. package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-D9D12HWp.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-Cj-i8iWa.js} +1 -1
  81. package/web/assets/SessionSharePage-3pOC7zRL.js +2 -0
  82. package/web/assets/SessionSharePage-DGGHczdP.css +1 -0
  83. package/web/assets/SettingsContent-BGPfO8se.css +1 -0
  84. package/web/assets/SettingsContent-DNa5A1_N.js +1 -0
  85. package/web/assets/SettingsContent-DnSL8cs4.css +1 -0
  86. package/web/assets/SettingsContent-_7yaCY3w.js +1 -0
  87. package/web/assets/SkillCenterPage--fuP-slY.css +1 -0
  88. package/web/assets/SkillCenterPage-C-RhgoXR.js +1 -0
  89. package/web/assets/SkillCenterPage-H2QFeB7_.js +1 -0
  90. package/web/assets/SkillDetailsDialog-CLwwbvCq.css +1 -0
  91. package/web/assets/SkillDetailsDialog-DtVFRPBy.js +1 -0
  92. package/web/assets/SkillSourceManagementPage-ChDzfGdm.js +1 -0
  93. package/web/assets/SkillSourceManagementPage-D4z1Gg5N.js +1 -0
  94. package/web/assets/SkillSourceManagementPage-hmRcmngS.css +1 -0
  95. package/web/assets/{StandaloneFilePreviewPage-C0MQvJCM.css → StandaloneFilePreviewPage-ByAe63vc.css} +1 -1
  96. package/web/assets/StandaloneFilePreviewPage-MXCtMW26.js +1 -0
  97. package/web/assets/SystemConfigurationPage-ChSNj8MT.js +1 -0
  98. package/web/assets/SystemConfigurationPage-CmVdXe_T.css +1 -0
  99. package/web/assets/SystemConfigurationPage-DB37Nbbr.js +1 -0
  100. package/web/assets/SystemInformationPage-2Q4V-iJ4.js +1 -0
  101. package/web/assets/SystemInformationPage-BbiC_REW.css +1 -0
  102. package/web/assets/{TerminalTabView-CNTFZaQR.css → TerminalTabView-CEYeT8xN.css} +1 -1
  103. package/web/assets/{TerminalTabView-DZaEqCsA.js → TerminalTabView-De_0nedS.js} +13 -13
  104. package/web/assets/WorkbenchPage-Dlmd8LuY.js +22 -0
  105. package/web/assets/WorkbenchPage-DlnYvv_a.css +1 -0
  106. package/web/assets/WorkspaceManagementPage-B90eAGf0.js +1 -0
  107. package/web/assets/WorkspaceManagementPage-Dt54G8Zh.js +1 -0
  108. package/web/assets/abnfDiagram-VCTEODGH-DBu0yas5.js +1 -0
  109. package/web/assets/{arc-BZJz7fgx.js → arc-C8OREc8-.js} +1 -1
  110. package/web/assets/architectureDiagram-5GKGNRK7-DW-uxKX_.js +36 -0
  111. package/web/assets/{blockDiagram-OSKFZWR5-ChXGVAW4.js → blockDiagram-OSKFZWR5-BdpowaJF.js} +2 -2
  112. package/web/assets/{c4Diagram-7LVT6UL2-BydPkqtS.js → c4Diagram-7LVT6UL2-CIj5XN7-.js} +2 -2
  113. package/web/assets/{catalog-ownership-service-CcpPtWVP.js → catalog-ownership-service-Om-CO2AO.js} +1 -1
  114. package/web/assets/{catalog-page-service-bZJ62ES7.js → catalog-page-service-C7a95mKM.js} +1 -1
  115. package/web/assets/channel-h8T8Sf1f.js +1 -0
  116. package/web/assets/{chunk-2Q5K7J3B-mMXlOAcn.js → chunk-2Q5K7J3B-qTv1HCpA.js} +1 -1
  117. package/web/assets/{chunk-5VM5RSS4-BxJVt54W.js → chunk-5VM5RSS4-Z_81Yg9R.js} +1 -1
  118. package/web/assets/{chunk-F27PBJKO-BaApcs8Z.js → chunk-F27PBJKO-ByXYNCQX.js} +1 -1
  119. package/web/assets/{chunk-HLEWEB6X-Ccdh85hH.js → chunk-HLEWEB6X-Db0t6b8M.js} +1 -1
  120. package/web/assets/{chunk-JWPE2WC7-D3RBRFlO.js → chunk-JWPE2WC7-mtd3itJH.js} +1 -1
  121. package/web/assets/{chunk-POPQ4Y6H-D_kXllbI.js → chunk-POPQ4Y6H-DjNpwfJ_.js} +1 -1
  122. package/web/assets/{chunk-SVP7TREG-Dea2xbeN.js → chunk-SVP7TREG-BJDr9WEi.js} +1 -1
  123. package/web/assets/{chunk-XXDRQBXY-RniBwNi8.js → chunk-XXDRQBXY-B6pSX6oT.js} +1 -1
  124. package/web/assets/{chunk-ZLD2IHE6-DVgAuMNk.js → chunk-ZLD2IHE6-QUzKTKo1.js} +1 -1
  125. package/web/assets/classDiagram-CYGNFDIV-DmCMc5em.js +1 -0
  126. package/web/assets/classDiagram-v2-TLXNO2FR-DmCMc5em.js +1 -0
  127. package/web/assets/{conversation-history-K5KJjagU.js → conversation-history-CWG_l_s7.js} +3 -3
  128. package/web/assets/cose-bilkent-JH36ORCC-DsiB67gb.js +1 -0
  129. package/web/assets/{cynefin-OW5HDTMX-OjLqg3vs.js → cynefin-OW5HDTMX-ByAQTEbY.js} +1 -1
  130. package/web/assets/cynefinDiagram-5FMLGOSQ-CLvR8C8K.js +62 -0
  131. package/web/assets/{dagre-OS7QT2EB-MEtxYfcw.js → dagre-OS7QT2EB-BZY4XKaO.js} +2 -2
  132. package/web/assets/{diagram-S7CK7UJ4-5kVInc1x.js → diagram-S7CK7UJ4-DZhsMLHj.js} +6 -6
  133. package/web/assets/diagram-UQ7AKVKN-gKeE9VCW.js +41 -0
  134. package/web/assets/{diagram-VSXAHHWV-BW17pKv6.js → diagram-VSXAHHWV-DGcOJLzF.js} +2 -2
  135. package/web/assets/diagram-VX7I27RA-YNftovCx.js +24 -0
  136. package/web/assets/diagram-Z3DM3KII-CYs_A5LR.js +24 -0
  137. package/web/assets/ebnfDiagram-PWID7BFC-CfAgj9SA.js +1 -0
  138. package/web/assets/{enterprise-management-service-CG71nGIU.js → enterprise-management-service-DoxF9G8J.js} +1 -1
  139. package/web/assets/{erDiagram-2YWLMYGG-BQsrfpxt.js → erDiagram-2YWLMYGG-D68c5ay0.js} +2 -2
  140. package/web/assets/{error-presentation-0VNQQ2nr.js → error-presentation-UGQTkLY-.js} +1 -1
  141. package/web/assets/{flowDiagram-T62WH6J4-NCalayl1.js → flowDiagram-T62WH6J4-SueK2EIr.js} +5 -5
  142. package/web/assets/ganttDiagram-EL5Y4UJY-DqUpBKVe.js +292 -0
  143. package/web/assets/gitGraphDiagram-WWUBYQGX-25lcZzew.js +106 -0
  144. package/web/assets/{hosted-conversation-template-client-DQPHLrAO.js → hosted-conversation-template-client-j8BSmb6C.js} +1 -1
  145. package/web/assets/{index-BdFIQX-N.js → index-1GTIQQ8z.js} +1 -1
  146. package/web/assets/{index-DLDwJApb.js → index-3hGH8X4w.js} +1 -1
  147. package/web/assets/{index--ITWaRgn.js → index-5c57yBxX.js} +1 -1
  148. package/web/assets/{index-sjH_QD-g.js → index-6kwQzDJ5.js} +1 -1
  149. package/web/assets/{index-C2e-_NrV.js → index-B1tseZ0y.js} +1 -1
  150. package/web/assets/{index-dTpxe_Gs.js → index-BCIlc_yx.js} +1 -1
  151. package/web/assets/index-BFbW15q7.js +24 -0
  152. package/web/assets/{index-FArB2ej3.js → index-Be5d1p6m.js} +1 -1
  153. package/web/assets/{index-CIXi4jod.js → index-BeFqmV-S.js} +1 -1
  154. package/web/assets/{index-5lmCpsNB.js → index-C3LQg-du.js} +5 -5
  155. package/web/assets/{index-gShXSPW-.js → index-C5fDP7hM.js} +1 -1
  156. package/web/assets/{index-C_X8ddLl.js → index-C64qxIt_.js} +1 -1
  157. package/web/assets/index-CGbMb0Lv.css +1 -0
  158. package/web/assets/{index-DBza2J2e.js → index-Cq0gQdNu.js} +1 -1
  159. package/web/assets/{index-Bu40Nnn5.js → index-D0BAg9Vm.js} +1 -1
  160. package/web/assets/{index-COVqVXiR.js → index-D0W2JUwi.js} +1 -1
  161. package/web/assets/{index-XtXXdicn.js → index-D6z2G5Kn.js} +1 -1
  162. package/web/assets/{index-pX4rMOtd.js → index-DKQH5cxU.js} +1 -1
  163. package/web/assets/{index-BWRbd9G2.js → index-DRH1HX2S.js} +1 -1
  164. package/web/assets/{index-CmH0QB5k.js → index-DXjLMl3l.js} +1 -1
  165. package/web/assets/{index-BGXV3IRD.js → index-DZiLssjQ.js} +1 -1
  166. package/web/assets/{index-CyjqGYRL.js → index-DnnQL2J0.js} +1 -1
  167. package/web/assets/{index-12Q1ABnb.js → index-DwErmPk6.js} +1 -1
  168. package/web/assets/{index-BzcFHBL_.js → index-L8P4MfkD.js} +1 -1
  169. package/web/assets/{index-4wFnzUIX.js → index-WlaKUfsp.js} +1 -1
  170. package/web/assets/{index-Bi-mbkoY.js → index-ZU_3sogz.js} +1 -1
  171. package/web/assets/{index-BeMUZ-FA.js → index-cXt12mWt.js} +1 -1
  172. package/web/assets/{index-DIub0j2n.js → index-ntE_ZhRt.js} +1 -1
  173. package/web/assets/infoDiagram-FKFFQAWI-BBwjh-6f.js +2 -0
  174. package/web/assets/{ishikawaDiagram-5VMMS53U-BfOtObMu.js → ishikawaDiagram-5VMMS53U-CQS9pAgH.js} +6 -6
  175. package/web/assets/{journeyDiagram-EYS64GPL-BWYgykkp.js → journeyDiagram-EYS64GPL-Wf3zND8h.js} +4 -4
  176. package/web/assets/{kanban-definition-UXKFOSKX-CJCPnFQL.js → kanban-definition-UXKFOSKX-B0s2KfqD.js} +2 -2
  177. package/web/assets/layout-C8Uv0gkT.js +1 -0
  178. package/web/assets/{linear-Z2llEn8N.js → linear-cvnW3wz3.js} +1 -1
  179. package/web/assets/management-url-service-DZ88REB_.js +1 -0
  180. package/web/assets/mcp-center-service-BxLSeP6x.js +1 -0
  181. package/web/assets/mcp-center-service-DaswFG-J.css +1 -0
  182. package/web/assets/mermaid.core-tIk1Nhel.js +308 -0
  183. package/web/assets/{mindmap-definition-THT77NOG-Dzh4GNkB.js → mindmap-definition-THT77NOG-umweN-cI.js} +2 -2
  184. package/web/assets/mobile-dialog-return-service-C1n1IVHV.js +1 -0
  185. package/web/assets/{oauth-callback-BVVtUcaY.js → oauth-callback-BcjCk3xN.js} +1 -1
  186. package/web/assets/pegDiagram-XKGWAZYB-DKJc7Ez9.js +1 -0
  187. package/web/assets/{pieDiagram-E7YTZNPT-DqdcXBbF.js → pieDiagram-E7YTZNPT-BsxpOU9E.js} +2 -2
  188. package/web/assets/{quadrantDiagram-AXDQQJYC-BdCAFeZM.js → quadrantDiagram-AXDQQJYC-Dy0JSXEc.js} +2 -2
  189. package/web/assets/railroadDiagram-O6MQD6OU-DuWjaEVr.js +1 -0
  190. package/web/assets/{requirementDiagram-IS5BZ75X-BtOH1ryf.js → requirementDiagram-IS5BZ75X-CcDa2f9z.js} +9 -9
  191. package/web/assets/{runner-presentation-hpB_DTwD.js → runner-presentation-hTBi5beq.js} +1 -1
  192. package/web/assets/sankeyDiagram-P5KCCOFB-zXSrhCHx.js +40 -0
  193. package/web/assets/{sequenceDiagram-WJ2MYXX4-BgvxFvgM.js → sequenceDiagram-WJ2MYXX4-D_zXYQwI.js} +2 -2
  194. package/web/assets/{session-share-client-service-BHy9Xnov.js → session-share-client-service-iqg5n2jT.js} +1 -1
  195. package/web/assets/sizeCapture-INFHLROL-DQHaspbL.js +1 -0
  196. package/web/assets/stateDiagram-XQSTLZYL-CZuAC9yx.js +1 -0
  197. package/web/assets/stateDiagram-v2-IH3M54BS-BVCGzcEg.js +1 -0
  198. package/web/assets/swimlanes-V6O3JKXN-DPLARPKF.js +1 -0
  199. package/web/assets/swimlanesDiagram-JKAHXJPX-0AG7MKMH.js +8 -0
  200. package/web/assets/{time-presentation-unYkc6Yq.js → time-presentation-D0SLW-7Y.js} +1 -1
  201. package/web/assets/{timeline-definition-24CTP7MA-BYMNcXwH.js → timeline-definition-24CTP7MA-DOCrHy_B.js} +2 -2
  202. package/web/assets/{vennDiagram-4TSXK5OY-Do00UHWr.js → vennDiagram-4TSXK5OY-bxqgw5V-.js} +2 -2
  203. package/web/assets/{wardleyDiagram-VM6X3IG4-BXyiK-dt.js → wardleyDiagram-VM6X3IG4-DnYBE0Fi.js} +3 -3
  204. package/web/assets/{workbench-live-service-DwzHqrE7.js → workbench-live-service-CQiYAsuU.js} +1 -1
  205. package/web/assets/workbench-presentation-Bon-njr-.css +1 -0
  206. package/web/assets/workbench-presentation-DRF1_KCI.js +1 -0
  207. package/web/assets/{xychartDiagram-S5SC5T6Z-CvVvnTgf.js → xychartDiagram-S5SC5T6Z-dEwC3KCd.js} +2 -2
  208. package/web/docs/404.html +2 -2
  209. package/web/docs/administration/account.html +3 -3
  210. package/web/docs/administration/audit.html +3 -3
  211. package/web/docs/administration/conversation-templates.html +3 -3
  212. package/web/docs/administration/email-notifications.html +3 -3
  213. package/web/docs/administration/license.html +3 -3
  214. package/web/docs/administration/nodes-workspaces.html +3 -3
  215. package/web/docs/administration/oauth.html +3 -3
  216. package/web/docs/administration/secrets.html +3 -3
  217. package/web/docs/administration/template-workspace-maintenance.html +3 -3
  218. package/web/docs/administration/users-organizations.html +3 -3
  219. package/web/docs/assets/{app.CSsyPSgB.js → app.DtD1evI0.js} +1 -1
  220. package/web/docs/assets/chunks/@localSearchIndexen-US.DHrLf7lS.js +1 -0
  221. package/web/docs/assets/chunks/@localSearchIndexroot.C6ZO4-Cz.js +1 -0
  222. package/web/docs/assets/chunks/{VPLocalSearchBox.w7zJkm8w.js → VPLocalSearchBox.BfQVfx68.js} +1 -1
  223. package/web/docs/assets/chunks/{theme.BfxRX_Vl.js → theme.JpsRm0j7.js} +2 -2
  224. package/web/docs/assets/{en-US_getting-started_overview.md.CB-43rGR.js → en-US_getting-started_overview.md.BB0mpD5A.js} +1 -1
  225. package/web/docs/assets/{en-US_getting-started_overview.md.CB-43rGR.lean.js → en-US_getting-started_overview.md.BB0mpD5A.lean.js} +1 -1
  226. package/web/docs/assets/en-US_runners_runner-troubleshooting.md.BVp1H8Ez.js +1 -0
  227. package/web/docs/assets/{en-US_runners_runner-troubleshooting.md.BvJ6yGrw.lean.js → en-US_runners_runner-troubleshooting.md.BVp1H8Ez.lean.js} +1 -1
  228. package/web/docs/assets/{en-US_workbench_navigation.md.CQIawd-E.js → en-US_workbench_navigation.md.bwp_93yS.js} +1 -1
  229. package/web/docs/assets/{en-US_workbench_navigation.md.CQIawd-E.lean.js → en-US_workbench_navigation.md.bwp_93yS.lean.js} +1 -1
  230. package/web/docs/assets/{getting-started_overview.md.Cv-HSfAh.js → getting-started_overview.md.Crab_e9M.js} +1 -1
  231. package/web/docs/assets/{getting-started_overview.md.Cv-HSfAh.lean.js → getting-started_overview.md.Crab_e9M.lean.js} +1 -1
  232. package/web/docs/assets/runners_runner-troubleshooting.md.x-gG5ZND.js +1 -0
  233. package/web/docs/assets/{runners_runner-troubleshooting.md.CIWCfGkf.lean.js → runners_runner-troubleshooting.md.x-gG5ZND.lean.js} +1 -1
  234. package/web/docs/assets/{workbench_navigation.md.vS-uMPsO.js → workbench_navigation.md.CXd25kxS.js} +1 -1
  235. package/web/docs/assets/{workbench_navigation.md.vS-uMPsO.lean.js → workbench_navigation.md.CXd25kxS.lean.js} +1 -1
  236. package/web/docs/concepts/architecture.html +3 -3
  237. package/web/docs/concepts/data-and-security.html +3 -3
  238. package/web/docs/concepts/files-git-terminal.html +3 -3
  239. package/web/docs/concepts/node-and-workspace.html +3 -3
  240. package/web/docs/concepts/permissions-and-sharing.html +3 -3
  241. package/web/docs/concepts/runner-control.html +3 -3
  242. package/web/docs/concepts/secrets.html +3 -3
  243. package/web/docs/concepts/session-run-turn.html +3 -3
  244. package/web/docs/deployment/backup-restore.html +3 -3
  245. package/web/docs/deployment/network.html +3 -3
  246. package/web/docs/deployment/node-installation.html +3 -3
  247. package/web/docs/deployment/node-linux.html +3 -3
  248. package/web/docs/deployment/node-macos.html +3 -3
  249. package/web/docs/deployment/node-windows.html +3 -3
  250. package/web/docs/deployment/production.html +3 -3
  251. package/web/docs/deployment/security-checklist.html +3 -3
  252. package/web/docs/deployment/upgrade.html +3 -3
  253. package/web/docs/en-US/administration/account.html +3 -3
  254. package/web/docs/en-US/administration/audit.html +3 -3
  255. package/web/docs/en-US/administration/conversation-templates.html +3 -3
  256. package/web/docs/en-US/administration/email-notifications.html +3 -3
  257. package/web/docs/en-US/administration/license.html +3 -3
  258. package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
  259. package/web/docs/en-US/administration/oauth.html +3 -3
  260. package/web/docs/en-US/administration/secrets.html +3 -3
  261. package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
  262. package/web/docs/en-US/administration/users-organizations.html +3 -3
  263. package/web/docs/en-US/concepts/architecture.html +3 -3
  264. package/web/docs/en-US/concepts/data-and-security.html +3 -3
  265. package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
  266. package/web/docs/en-US/concepts/node-and-workspace.html +3 -3
  267. package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
  268. package/web/docs/en-US/concepts/runner-control.html +3 -3
  269. package/web/docs/en-US/concepts/secrets.html +3 -3
  270. package/web/docs/en-US/concepts/session-run-turn.html +3 -3
  271. package/web/docs/en-US/deployment/backup-restore.html +3 -3
  272. package/web/docs/en-US/deployment/network.html +3 -3
  273. package/web/docs/en-US/deployment/node-installation.html +3 -3
  274. package/web/docs/en-US/deployment/node-linux.html +3 -3
  275. package/web/docs/en-US/deployment/node-macos.html +3 -3
  276. package/web/docs/en-US/deployment/node-windows.html +3 -3
  277. package/web/docs/en-US/deployment/production.html +3 -3
  278. package/web/docs/en-US/deployment/security-checklist.html +3 -3
  279. package/web/docs/en-US/deployment/upgrade.html +3 -3
  280. package/web/docs/en-US/getting-started/connect-node.html +3 -3
  281. package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
  282. package/web/docs/en-US/getting-started/first-login.html +3 -3
  283. package/web/docs/en-US/getting-started/next-steps.html +3 -3
  284. package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
  285. package/web/docs/en-US/getting-started/overview.html +5 -5
  286. package/web/docs/en-US/getting-started/prerequisites.html +3 -3
  287. package/web/docs/en-US/getting-started/register-workspace.html +3 -3
  288. package/web/docs/en-US/getting-started/server-installation.html +3 -3
  289. package/web/docs/en-US/operations/marctl.html +3 -3
  290. package/web/docs/en-US/reference/configuration.html +3 -3
  291. package/web/docs/en-US/reference/keyboard-shortcuts.html +3 -3
  292. package/web/docs/en-US/reference/limits.html +3 -3
  293. package/web/docs/en-US/reference/ports-paths-data.html +3 -3
  294. package/web/docs/en-US/reference/status-and-errors.html +3 -3
  295. package/web/docs/en-US/runners/claude-code.html +3 -3
  296. package/web/docs/en-US/runners/codex.html +3 -3
  297. package/web/docs/en-US/runners/mar-agent.html +3 -3
  298. package/web/docs/en-US/runners/opencode.html +3 -3
  299. package/web/docs/en-US/runners/overview.html +3 -3
  300. package/web/docs/en-US/runners/runner-troubleshooting.html +5 -5
  301. package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
  302. package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
  303. package/web/docs/en-US/troubleshooting/session-run.html +3 -3
  304. package/web/docs/en-US/troubleshooting/terminal.html +3 -3
  305. package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
  306. package/web/docs/en-US/workbench/composer.html +3 -3
  307. package/web/docs/en-US/workbench/context-and-plan.html +3 -3
  308. package/web/docs/en-US/workbench/conversation.html +3 -3
  309. package/web/docs/en-US/workbench/file-reference-and-attachment.html +3 -3
  310. package/web/docs/en-US/workbench/files.html +3 -3
  311. package/web/docs/en-US/workbench/git-changes.html +3 -3
  312. package/web/docs/en-US/workbench/git-history.html +3 -3
  313. package/web/docs/en-US/workbench/hosted-conversations.html +3 -3
  314. package/web/docs/en-US/workbench/mobile.html +3 -3
  315. package/web/docs/en-US/workbench/navigation.html +5 -5
  316. package/web/docs/en-US/workbench/remote-desktop.html +3 -3
  317. package/web/docs/en-US/workbench/sessions.html +3 -3
  318. package/web/docs/en-US/workbench/skills.html +3 -3
  319. package/web/docs/en-US/workbench/terminal.html +3 -3
  320. package/web/docs/getting-started/connect-node.html +3 -3
  321. package/web/docs/getting-started/first-agent-session.html +3 -3
  322. package/web/docs/getting-started/first-login.html +3 -3
  323. package/web/docs/getting-started/next-steps.html +3 -3
  324. package/web/docs/getting-started/npm-quick-start.html +3 -3
  325. package/web/docs/getting-started/overview.html +5 -5
  326. package/web/docs/getting-started/prerequisites.html +3 -3
  327. package/web/docs/getting-started/register-workspace.html +3 -3
  328. package/web/docs/getting-started/server-installation.html +3 -3
  329. package/web/docs/hashmap.json +1 -1
  330. package/web/docs/operations/marctl.html +3 -3
  331. package/web/docs/reference/configuration.html +3 -3
  332. package/web/docs/reference/keyboard-shortcuts.html +3 -3
  333. package/web/docs/reference/limits.html +3 -3
  334. package/web/docs/reference/ports-paths-data.html +3 -3
  335. package/web/docs/reference/status-and-errors.html +3 -3
  336. package/web/docs/runners/claude-code.html +3 -3
  337. package/web/docs/runners/codex.html +3 -3
  338. package/web/docs/runners/mar-agent.html +3 -3
  339. package/web/docs/runners/opencode.html +3 -3
  340. package/web/docs/runners/overview.html +3 -3
  341. package/web/docs/runners/runner-troubleshooting.html +5 -5
  342. package/web/docs/troubleshooting/node-offline.html +3 -3
  343. package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
  344. package/web/docs/troubleshooting/session-run.html +3 -3
  345. package/web/docs/troubleshooting/terminal.html +3 -3
  346. package/web/docs/troubleshooting/workspace-files.html +3 -3
  347. package/web/docs/workbench/composer.html +3 -3
  348. package/web/docs/workbench/context-and-plan.html +3 -3
  349. package/web/docs/workbench/conversation.html +3 -3
  350. package/web/docs/workbench/file-reference-and-attachment.html +3 -3
  351. package/web/docs/workbench/files.html +3 -3
  352. package/web/docs/workbench/git-changes.html +3 -3
  353. package/web/docs/workbench/git-history.html +3 -3
  354. package/web/docs/workbench/hosted-conversations.html +3 -3
  355. package/web/docs/workbench/mobile.html +3 -3
  356. package/web/docs/workbench/navigation.html +5 -5
  357. package/web/docs/workbench/remote-desktop.html +3 -3
  358. package/web/docs/workbench/sessions.html +3 -3
  359. package/web/docs/workbench/skills.html +3 -3
  360. package/web/docs/workbench/terminal.html +3 -3
  361. package/web/index.html +3 -3
  362. package/web/service-worker.js +1 -1
  363. package/web/web-version.json +1 -1
  364. package/web/assets/AuditManagementPage-CCT1TwDi.css +0 -1
  365. package/web/assets/AuditManagementPage-CS2otqIm.js +0 -1
  366. package/web/assets/AuthEntryPanel-L6a1edei.js +0 -45
  367. package/web/assets/AuthEntryPanel-tmwbR_cP.css +0 -1
  368. package/web/assets/ConversationTemplateManagementPage-BNFnQcXK.css +0 -1
  369. package/web/assets/ConversationTemplateManagementPage-CRZLk9fm.js +0 -1
  370. package/web/assets/ConversationTemplateManagementPage-D9ensD8p.css +0 -1
  371. package/web/assets/ConversationTemplateManagementPage-jh1pR7UJ.js +0 -1
  372. package/web/assets/EnterpriseUserManagementPage-BQGB9p1y.js +0 -1
  373. package/web/assets/EnterpriseUserManagementPage-DPqV5zOg.css +0 -1
  374. package/web/assets/EnvironmentSecretManager-Dw4d5loZ.css +0 -1
  375. package/web/assets/EnvironmentSecretManager-tHrtBCMq.js +0 -1
  376. package/web/assets/FilePreviewLoading-CCHsarTJ.js +0 -23
  377. package/web/assets/FilePreviewLoading-Cxn0bDjD.css +0 -1
  378. package/web/assets/HtmlPreviewFrame-3T3NlO-b.js +0 -6
  379. package/web/assets/HtmlPreviewFrame-BpZTgaYt.css +0 -1
  380. package/web/assets/LicenseManagementPage-BJe05unY.js +0 -1
  381. package/web/assets/LicenseManagementPage-BRQZUU16.css +0 -1
  382. package/web/assets/ManagementPagination-CSNsQQGq.js +0 -1
  383. package/web/assets/ManagementPagination-DazknMFC.css +0 -1
  384. package/web/assets/MarAgentModelManagementPage-C4uaAH84.js +0 -1
  385. package/web/assets/MarAgentModelManagementPage-CmOYRQDb.js +0 -1
  386. package/web/assets/MarAgentModelManagementPage-DuXtnpsD.css +0 -1
  387. package/web/assets/MarAgentModelManagementPage-O5io0Qw1.css +0 -1
  388. package/web/assets/MarIcon-Co9d87Zk.js +0 -1
  389. package/web/assets/MarIcon-aPIFZI-D.css +0 -1
  390. package/web/assets/MarkdownFilePreview-QY1W9Sht.js +0 -2
  391. package/web/assets/McpDetailsDialog-BIXNILiX.js +0 -1
  392. package/web/assets/McpDetailsDialog-BQywxEJx.css +0 -1
  393. package/web/assets/McpSourceManagementPage-B0dXY3Jr.js +0 -1
  394. package/web/assets/McpSourceManagementPage-BH743WCr.css +0 -1
  395. package/web/assets/McpSourceManagementPage-V2LnmWhN.js +0 -1
  396. package/web/assets/NodeDetailsDialogs-BlNTYQYy.js +0 -6
  397. package/web/assets/NodeDetailsDialogs-DN4NQ6QY.css +0 -1
  398. package/web/assets/NodeManagementPage-CTwvmQO2.js +0 -1
  399. package/web/assets/NodeManagementPage-_6BEH6ad.js +0 -1
  400. package/web/assets/OAuthManagementPage-DTAHiT-o.js +0 -2
  401. package/web/assets/OAuthManagementPage-Dp2FX_G6.css +0 -1
  402. package/web/assets/OrganizationManagementPage-BYl2Zu-Z.css +0 -1
  403. package/web/assets/OrganizationManagementPage-Bycbm1Ck.js +0 -1
  404. package/web/assets/RemoteDesktopPage-BtylaQwZ.js +0 -5
  405. package/web/assets/RemoteDesktopPage-CBJ5tTYz.css +0 -1
  406. package/web/assets/ResourceManagementPanel-CjGfQ5Jl.css +0 -1
  407. package/web/assets/ResourceManagementPanel-DW78XY-C.js +0 -2
  408. package/web/assets/ResourceManagementPanel-Dk-l51CQ.css +0 -1
  409. package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-DH-cxwTV.js +0 -1
  410. package/web/assets/SecretManagementPage-BX9Se1LC.js +0 -1
  411. package/web/assets/SecretManagementPage-Xw89IDvN.js +0 -1
  412. package/web/assets/SessionSharePage-C6bBkWn3.js +0 -2
  413. package/web/assets/SessionSharePage-TAsoyhjA.css +0 -1
  414. package/web/assets/SettingsContent-B98WZKeX.css +0 -1
  415. package/web/assets/SettingsContent-BV9zT9nN.css +0 -1
  416. package/web/assets/SettingsContent-Djq-KXqQ.js +0 -1
  417. package/web/assets/SettingsContent-DtzeYEEH.js +0 -1
  418. package/web/assets/SkillCenterPage-B6woSHOS.css +0 -1
  419. package/web/assets/SkillCenterPage-Bys_Quoc.js +0 -1
  420. package/web/assets/SkillCenterPage-rZX4ZlMr.js +0 -1
  421. package/web/assets/SkillDetailsDialog-BqdDZiga.js +0 -1
  422. package/web/assets/SkillDetailsDialog-CWt4SchU.css +0 -1
  423. package/web/assets/SkillSourceManagementPage-BRfmUgj1.css +0 -1
  424. package/web/assets/SkillSourceManagementPage-C85ouqr8.js +0 -1
  425. package/web/assets/SkillSourceManagementPage-CBxAUgfv.js +0 -1
  426. package/web/assets/StandaloneFilePreviewPage-BYDL16E9.js +0 -1
  427. package/web/assets/SystemConfigurationPage-BcX24TM6.js +0 -1
  428. package/web/assets/SystemConfigurationPage-HVB1OG86.css +0 -1
  429. package/web/assets/SystemConfigurationPage-Z5Am851M.js +0 -1
  430. package/web/assets/SystemInformationPage-C9qhYKmf.css +0 -1
  431. package/web/assets/SystemInformationPage-CfhLyEHd.js +0 -1
  432. package/web/assets/WorkbenchPage-Do7CXbzf.js +0 -22
  433. package/web/assets/WorkbenchPage-la7gadME.css +0 -1
  434. package/web/assets/WorkspaceManagementPage-DbGc88Td.js +0 -1
  435. package/web/assets/WorkspaceManagementPage-DzCDMPL7.js +0 -1
  436. package/web/assets/_baseFindIndex-D7XfJLKM.js +0 -1
  437. package/web/assets/_baseIteratee-CpPVpKOG.js +0 -1
  438. package/web/assets/abnfDiagram-VCTEODGH-Co8FN1zm.js +0 -1
  439. package/web/assets/advancedFormat-COanKdEE.js +0 -1
  440. package/web/assets/architectureDiagram-5GKGNRK7-BcyAgFdD.js +0 -36
  441. package/web/assets/channel-7JutKhz2.js +0 -1
  442. package/web/assets/classDiagram-CYGNFDIV-mqoo2fwb.js +0 -1
  443. package/web/assets/classDiagram-v2-TLXNO2FR-mqoo2fwb.js +0 -1
  444. package/web/assets/cose-bilkent-JH36ORCC-BfcYhq-S.js +0 -1
  445. package/web/assets/cynefinDiagram-5FMLGOSQ-BEnz4b4w.js +0 -62
  446. package/web/assets/diagram-UQ7AKVKN-COeeJ4gg.js +0 -41
  447. package/web/assets/diagram-VX7I27RA-D6eKygok.js +0 -24
  448. package/web/assets/diagram-Z3DM3KII-qeIDpBOf.js +0 -24
  449. package/web/assets/ebnfDiagram-PWID7BFC-8uDxgpST.js +0 -1
  450. package/web/assets/el-alert-B6UgayC7.css +0 -1
  451. package/web/assets/el-alert-DmVsBvUv.js +0 -1
  452. package/web/assets/el-cascader-BOobdI59.js +0 -12
  453. package/web/assets/el-cascader-Y4U47xEI.css +0 -1
  454. package/web/assets/el-checkbox-CGRzOjDl.js +0 -1
  455. package/web/assets/el-checkbox-CzNtyWdF.css +0 -1
  456. package/web/assets/el-checkbox-group-D_6SYB2i.css +0 -1
  457. package/web/assets/el-date-picker-BsrAVvYx.css +0 -1
  458. package/web/assets/el-date-picker-CRwKPW7Q.js +0 -1
  459. package/web/assets/el-descriptions-BFAMFbyx.js +0 -1
  460. package/web/assets/el-descriptions-BpDzfuC8.css +0 -1
  461. package/web/assets/el-form-item-CoJM2Hlw.js +0 -12
  462. package/web/assets/el-form-item-D_relxjU.css +0 -1
  463. package/web/assets/el-input-8ehKRrZb.css +0 -1
  464. package/web/assets/el-input-B2Nof_cr.js +0 -3
  465. package/web/assets/el-input-number-C7R4Dpyt.js +0 -1
  466. package/web/assets/el-input-number-DExoAqKP.css +0 -1
  467. package/web/assets/el-radio-B4O75OaI.css +0 -1
  468. package/web/assets/el-radio-npWoUqDX.js +0 -1
  469. package/web/assets/el-scrollbar-GF-yQkxY.css +0 -1
  470. package/web/assets/el-scrollbar-K7eVpxQ7.js +0 -1
  471. package/web/assets/el-select-D5zQ8kOe.css +0 -1
  472. package/web/assets/el-select-DBNt1msu.js +0 -1
  473. package/web/assets/el-switch-DpR9-s4E.css +0 -1
  474. package/web/assets/el-switch-yJdlzAOS.js +0 -1
  475. package/web/assets/el-tab-pane-D0rG2y_2.js +0 -1
  476. package/web/assets/el-tab-pane-LzsQQ_QK.css +0 -1
  477. package/web/assets/el-table-column-B_iZELUe.js +0 -1
  478. package/web/assets/el-table-column-Dp73S2HR.css +0 -1
  479. package/web/assets/el-tag-1VV9QMa7.css +0 -1
  480. package/web/assets/ganttDiagram-EL5Y4UJY-CycZuNi5.js +0 -292
  481. package/web/assets/gitGraphDiagram-WWUBYQGX-D5DwspHx.js +0 -106
  482. package/web/assets/index-1wDLFmml.js +0 -1
  483. package/web/assets/index-BEELfYGZ.js +0 -29
  484. package/web/assets/index-Cb_FF3Fn.css +0 -1
  485. package/web/assets/index-DOLrLWUV.js +0 -1
  486. package/web/assets/infoDiagram-FKFFQAWI-BBKjh0vF.js +0 -2
  487. package/web/assets/isArrayLikeObject-DdIC_9HC.js +0 -1
  488. package/web/assets/last-DXTTfs9a.js +0 -1
  489. package/web/assets/layout-BBJqL-32.js +0 -1
  490. package/web/assets/management-url-service-CWmMGb2s.js +0 -1
  491. package/web/assets/mcp-center-service-DiM2Ti2y.js +0 -1
  492. package/web/assets/merge-CFyFeS5y.js +0 -1
  493. package/web/assets/mermaid.core-NgKGXesa.js +0 -308
  494. package/web/assets/message-box-service-Bt8ZxdJl.js +0 -1
  495. package/web/assets/message-box-service-amIz9eLF.css +0 -1
  496. package/web/assets/mobile-dialog-return-service-TSZfE1b8.css +0 -1
  497. package/web/assets/mobile-dialog-return-service-lRpqLQ4m.js +0 -1
  498. package/web/assets/pegDiagram-XKGWAZYB-B8oSPYxB.js +0 -1
  499. package/web/assets/railroadDiagram-O6MQD6OU-CEpcMFjP.js +0 -1
  500. package/web/assets/sankeyDiagram-P5KCCOFB-CLa4XJUV.js +0 -40
  501. package/web/assets/sizeCapture-INFHLROL-BivNFLeY.js +0 -1
  502. package/web/assets/stateDiagram-XQSTLZYL-r56uSJd2.js +0 -1
  503. package/web/assets/stateDiagram-v2-IH3M54BS-B-acW4aI.js +0 -1
  504. package/web/assets/swimlanes-V6O3JKXN-CK9wbK2C.js +0 -1
  505. package/web/assets/swimlanesDiagram-JKAHXJPX-D313EwlH.js +0 -8
  506. package/web/assets/union-s1ErPvjZ.js +0 -1
  507. package/web/assets/use-form-common-props-mcyC3w-u.js +0 -1
  508. package/web/assets/use-wheel-BmcW1XgC.js +0 -1
  509. package/web/assets/vnode-CG_nLPou.js +0 -1
  510. package/web/assets/workbench-presentation-CPQZ-olG.css +0 -1
  511. package/web/assets/workbench-presentation-DyHrQcrJ.js +0 -1
  512. package/web/docs/assets/chunks/@localSearchIndexen-US.B7_wteDx.js +0 -1
  513. package/web/docs/assets/chunks/@localSearchIndexroot.BIoX7nDM.js +0 -1
  514. package/web/docs/assets/en-US_runners_runner-troubleshooting.md.BvJ6yGrw.js +0 -1
  515. package/web/docs/assets/runners_runner-troubleshooting.md.CIWCfGkf.js +0 -1
@@ -1 +0,0 @@
1
- import{_ as V,l as k,j as lt}from"./mermaid.core-NgKGXesa.js";import{c as tt}from"./cytoscape.esm-yzknjiTM.js";import{aa as gt}from"./index-BEELfYGZ.js";import"./FilePreviewLoading-CCHsarTJ.js";import"./use-form-common-props-mcyC3w-u.js";import"./el-scrollbar-K7eVpxQ7.js";import"./el-input-B2Nof_cr.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./BusyIndicator-D3z5mSYz.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./_baseIteratee-CpPVpKOG.js";import"./union-s1ErPvjZ.js";import"./_baseFindIndex-D7XfJLKM.js";var Z={exports:{}},$={exports:{}},Q={exports:{}},ut=Q.exports,q;function ft(){return q||(q=1,(function(G,b){(function(I,L){G.exports=L()})(ut,function(){return(function(N){var I={};function L(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,L),e.l=!0,e.exports}return L.m=N,L.c=I,L.i=function(o){return o},L.d=function(o,e,t){L.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},L.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return L.d(e,"a",e),e},L.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},L.p="",L(L.s=26)})([(function(N,I,L){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,L){var o=L(2),e=L(8),t=L(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,L){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(13),i=L(0),l=L(16),g=L(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;v<p.length;v++)h=p[v],a=h.withChildren(),a.forEach(function(D){r.add(D)});return r},n.prototype.getNoOfChildren=function(){var r=0,h;if(this.child==null)r=1;else for(var a=this.child.getNodes(),p=0;p<a.length;p++)h=a[p],r+=h.getNoOfChildren();return r==0&&(r=1),r},n.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},n.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},n.prototype.scatter=function(){var r,h,a=-i.INITIAL_WORLD_BOUNDARY,p=i.INITIAL_WORLD_BOUNDARY;r=i.WORLD_CENTER_X+l.nextDouble()*(p-a)+a;var v=-i.INITIAL_WORLD_BOUNDARY,D=i.INITIAL_WORLD_BOUNDARY;h=i.WORLD_CENTER_Y+l.nextDouble()*(D-v)+v,this.rect.x=r,this.rect.y=h},n.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var r=this.getChild();if(r.updateBounds(!0),this.rect.x=r.getLeft(),this.rect.y=r.getTop(),this.setWidth(r.getRight()-r.getLeft()),this.setHeight(r.getBottom()-r.getTop()),i.NODE_DIMENSIONS_INCLUDE_LABELS){var h=r.getRight()-r.getLeft(),a=r.getBottom()-r.getTop();this.labelWidth>h&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,L){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(0),i=L(6),l=L(3),g=L(1),n=L(13),d=L(12),r=L(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var T=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(T.source=v,T.target=D,T.isInterGraph=!1,this.getEdges().push(T),v.edges.push(T),D!=v&&D.edges.push(T),T)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,T=D.length,y=0;y<T;y++)u=D[y],u.isInterGraph?this.graphManager.remove(u):u.source.owner.remove(u);var O=this.nodes.indexOf(v);if(O==-1)throw"Node not in owner node list!";this.nodes.splice(O,1)}else if(p instanceof g){var u=p;if(u==null)throw"Edge is null!";if(!(u.source!=null&&u.target!=null))throw"Source and/or target is null!";if(!(u.source.owner!=null&&u.target.owner!=null&&u.source.owner==this&&u.target.owner==this))throw"Source and/or target owner is invalid!";var s=u.source.edges.indexOf(u),f=u.target.edges.indexOf(u);if(!(s>-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,T,y=this.getNodes(),O=y.length,s=0;s<O;s++){var f=y[s];D=f.getTop(),u=f.getLeft(),p>D&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?T=y[0].getParent().paddingLeft:T=this.margin,this.left=v-T,this.top=p-T,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c,E=this.nodes,A=E.length,m=0;m<A;m++){var C=E[m];p&&C.child!=null&&C.updateBounds(),y=C.getLeft(),O=C.getRight(),s=C.getTop(),f=C.getBottom(),v>y&&(v=y),D<O&&(D=O),u>s&&(u=s),T<f&&(T=f)}var R=new n(v,u,D-v,T-u);v==e.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),E[0].getParent().paddingLeft!=null?c=E[0].getParent().paddingLeft:c=this.margin,this.left=R.x-c,this.right=R.x+R.width+c,this.top=R.y-c,this.bottom=R.y+R.height+c},h.calculateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c=p.length,E=0;E<c;E++){var A=p[E];y=A.getLeft(),O=A.getRight(),s=A.getTop(),f=A.getBottom(),v>y&&(v=y),D<O&&(D=O),u>s&&(u=s),T<f&&(T=f)}var m=new n(v,u,D-v,T-u);return m},h.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.prototype.calcEstimatedSize=function(){for(var p=0,v=this.nodes,D=v.length,u=0;u<D;u++){var T=v[u];p+=T.calcEstimatedSize()}return p==0?this.estimatedSize=t.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=p/Math.sqrt(this.nodes.length),this.estimatedSize},h.prototype.updateConnected=function(){var p=this;if(this.nodes.length==0){this.isConnected=!0;return}var v=new r,D=new Set,u=this.nodes[0],T,y,O=u.withChildren();for(O.forEach(function(m){v.push(m),D.add(m)});v.length!==0;){u=v.shift(),T=u.getEdges();for(var s=T.length,f=0;f<s;f++){var c=T[f];if(y=c.getOtherEndInGraph(u,this),y!=null&&!D.has(y)){var E=y.withChildren();E.forEach(function(m){v.push(m),D.add(m)})}}}if(this.isConnected=!1,D.size>=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,L){var o,e=L(1);function t(i){o=L(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r<d;r++)n=g[r],l.remove(n);var h=[];h=h.concat(l.getNodes());var a;d=h.length;for(var r=0;r<d;r++)a=h[r],l.remove(a);l==this.rootGraph&&this.setRootGraph(null);var p=this.graphs.indexOf(l);this.graphs.splice(p,1),l.parent=null}else if(i instanceof e){if(n=i,n==null)throw"Edge is null!";if(!n.isInterGraph)throw"Not an inter-graph edge!";if(!(n.source!=null&&n.target!=null))throw"Source and/or target is null!";if(!(n.source.edges.indexOf(n)!=-1&&n.target.edges.indexOf(n)!=-1))throw"Source and/or target doesn't know this edge!";var p=n.source.edges.indexOf(n);if(n.source.edges.splice(p,1),p=n.target.edges.indexOf(n),n.target.edges.splice(p,1),!(n.source.owner!=null&&n.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(n.source.owner.getGraphManager().edges.indexOf(n)==-1)throw"Not in owner graph manager's edge list!";var p=n.source.owner.getGraphManager().edges.indexOf(n);n.source.owner.getGraphManager().edges.splice(p,1)}},t.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},t.prototype.getGraphs=function(){return this.graphs},t.prototype.getAllNodes=function(){if(this.allNodes==null){for(var i=[],l=this.getGraphs(),g=l.length,n=0;n<g;n++)i=i.concat(l[n].getNodes());this.allNodes=i}return this.allNodes},t.prototype.resetAllNodes=function(){this.allNodes=null},t.prototype.resetAllEdges=function(){this.allEdges=null},t.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},t.prototype.getAllEdges=function(){if(this.allEdges==null){var i=[],l=this.getGraphs();l.length;for(var g=0;g<l.length;g++)i=i.concat(l[g].getEdges());i=i.concat(this.edges),this.allEdges=i}return this.allEdges},t.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},t.prototype.setAllNodesToApplyGravitation=function(i){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=i},t.prototype.getRoot=function(){return this.rootGraph},t.prototype.setRootGraph=function(i){if(i.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=i,i.parent==null&&(i.parent=this.layout.newNode("Root node"))},t.prototype.getLayout=function(){return this.layout},t.prototype.isOneAncestorOfOther=function(i,l){if(!(i!=null&&l!=null))throw"assert failed";if(i==l)return!0;var g=i.getOwner(),n;do{if(n=g.getParent(),n==null)break;if(n==l)return!0;if(g=n.getOwner(),g==null)break}while(!0);g=l.getOwner();do{if(n=g.getParent(),n==null)break;if(n==i)return!0;if(g=n.getOwner(),g==null)break}while(!0);return!1},t.prototype.calcLowestCommonAncestors=function(){for(var i,l,g,n,d,r=this.getAllEdges(),h=r.length,a=0;a<h;a++){if(i=r[a],l=i.source,g=i.target,i.lca=null,i.sourceInLca=l,i.targetInLca=g,l==g){i.lca=l.getOwner();continue}for(n=l.getOwner();i.lca==null;){for(i.targetInLca=g,d=g.getOwner();i.lca==null;){if(d==n){i.lca=d;break}if(d==this.rootGraph)break;if(i.lca!=null)throw"assert failed";i.targetInLca=d.getParent(),d=i.targetInLca.getOwner()}if(n==this.rootGraph)break;i.lca==null&&(i.sourceInLca=n.getParent(),n=i.sourceInLca.getOwner())}if(i.lca==null)throw"assert failed"}},t.prototype.calcLowestCommonAncestor=function(i,l){if(i==l)return i.getOwner();var g=i.getOwner();do{if(g==null)break;var n=l.getOwner();do{if(n==null)break;if(n==g)return n;n=n.getParent().getOwner()}while(!0);g=g.getParent().getOwner()}while(!0);return g},t.prototype.calcInclusionTreeDepths=function(i,l){i==null&&l==null&&(i=this.rootGraph,l=1);for(var g,n=i.getNodes(),d=n.length,r=0;r<d;r++)g=n[r],g.inclusionTreeDepth=l,g.child!=null&&this.calcInclusionTreeDepths(g.child,l+1)},t.prototype.includesInvalidEdge=function(){for(var i,l=this.edges.length,g=0;g<l;g++)if(i=this.edges[g],this.isOneAncestorOfOther(i.source,i.target))return!0;return!1},N.exports=t}),(function(N,I,L){var o=L(0);function e(){}for(var t in o)e[t]=o[t];e.MAX_ITERATIONS=2500,e.DEFAULT_EDGE_LENGTH=50,e.DEFAULT_SPRING_STRENGTH=.45,e.DEFAULT_REPULSION_STRENGTH=4500,e.DEFAULT_GRAVITY_STRENGTH=.4,e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,e.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,e.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,e.COOLING_ADAPTATION_FACTOR=.33,e.ADAPTATION_LOWER_NODE_LIMIT=1e3,e.ADAPTATION_UPPER_NODE_LIMIT=5e3,e.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,e.MAX_NODE_DISPLACEMENT=e.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,e.MIN_REPULSION_DIST=e.DEFAULT_EDGE_LENGTH/10,e.CONVERGENCE_CHECK_PERIOD=100,e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,e.MIN_EDGE_LENGTH=1,e.GRID_CALCULATION_CHECK_PERIOD=10,N.exports=e}),(function(N,I,L){var o=L(12);function e(){}e.calcSeparationAmount=function(t,i,l,g){if(!t.intersects(i))throw"assert failed";var n=new Array(2);this.decideDirectionsForOverlappingNodes(t,i,n),l[0]=Math.min(t.getRight(),i.getRight())-Math.max(t.x,i.x),l[1]=Math.min(t.getBottom(),i.getBottom())-Math.max(t.y,i.y),t.getX()<=i.getX()&&t.getRight()>=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]<h?h=l[0]:r=l[1],l[0]=-1*n[0]*(h/2+g),l[1]=-1*n[1]*(r/2+g)},e.decideDirectionsForOverlappingNodes=function(t,i,l){t.getCenterX()<i.getCenterX()?l[0]=-1:l[0]=1,t.getCenterY()<i.getCenterY()?l[1]=-1:l[1]=1},e.getIntersection2=function(t,i,l){var g=t.getCenterX(),n=t.getCenterY(),d=i.getCenterX(),r=i.getCenterY();if(t.intersects(i))return l[0]=g,l[1]=n,l[2]=d,l[3]=r,!0;var h=t.getX(),a=t.getY(),p=t.getRight(),v=t.getX(),D=t.getBottom(),u=t.getRight(),T=t.getWidthHalf(),y=t.getHeightHalf(),O=i.getX(),s=i.getY(),f=i.getRight(),c=i.getX(),E=i.getBottom(),A=i.getRight(),m=i.getWidthHalf(),C=i.getHeightHalf(),R=!1,M=!1;if(g===d){if(n>r)return l[0]=g,l[1]=a,l[2]=d,l[3]=E,!1;if(n<r)return l[0]=g,l[1]=D,l[2]=d,l[3]=s,!1}else if(n===r){if(g>d)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(g<d)return l[0]=p,l[1]=n,l[2]=O,l[3]=r,!1}else{var S=t.height/t.width,Y=i.height/i.width,w=(r-n)/(d-g),x=void 0,F=void 0,U=void 0,P=void 0,_=void 0,X=void 0;if(-S===w?g>d?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=E,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=E,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+T*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-T*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=E,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,T=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,E=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,E=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*E-f*c)/A,T=(O*c-y*E)/A,new o(u,T))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l<t?n+=Math.PI:g<i&&(n+=this.TWO_PI)):g<i?n=this.ONE_AND_HALF_PI:n=this.HALF_PI,n},e.doIntersect=function(t,i,l,g){var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=(r-n)*(D-p)-(v-a)*(h-d);if(u===0)return!1;var T=((D-p)*(v-n)+(a-v)*(D-d))/u,y=((d-h)*(v-n)+(r-n)*(D-d))/u;return 0<T&&T<1&&0<y&&y<1},e.HALF_PI=.5*Math.PI,e.ONE_AND_HALF_PI=1.5*Math.PI,e.TWO_PI=2*Math.PI,e.THREE_PI=3*Math.PI,N.exports=e}),(function(N,I,L){function o(){}o.sign=function(e){return e>0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,L){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,L){var o=(function(){function n(d,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}}return function(d,r,h){return r&&n(d.prototype,r),h&&n(d,h),d}})();function e(n,d){if(!(n instanceof d))throw new TypeError("Cannot call a class as a function")}var t=function(d){return{value:d,next:null,prev:null}},i=function(d,r,h,a){return d!==null?d.next=r:a.head=r,h!==null?h.prev=r:a.tail=r,r.prev=d,r.next=h,a.length++,r},l=function(d,r){var h=d.prev,a=d.next;return h!==null?h.next=a:r.head=a,a!==null?a.prev=h:r.tail=h,d.prev=d.next=null,r.length--,d},g=(function(){function n(d){var r=this;e(this,n),this.length=0,this.head=null,this.tail=null,d?.forEach(function(h){return r.push(h)})}return o(n,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(r,h){return i(h.prev,t(r),h,this)}},{key:"insertAfter",value:function(r,h){return i(h,t(r),h.next,this)}},{key:"insertNodeBefore",value:function(r,h){return i(h.prev,r,h,this)}},{key:"insertNodeAfter",value:function(r,h){return i(h,r,h.next,this)}},{key:"push",value:function(r){return i(this.tail,t(r),null,this)}},{key:"unshift",value:function(r){return i(null,t(r),this.head,this)}},{key:"remove",value:function(r){return l(r,this)}},{key:"pop",value:function(){return l(this.tail,this).value}},{key:"popNode",value:function(){return l(this.tail,this)}},{key:"shift",value:function(){return l(this.head,this).value}},{key:"shiftNode",value:function(){return l(this.head,this)}},{key:"get_object_at",value:function(r){if(r<=this.length()){for(var h=1,a=this.head;h<r;)a=a.next,h++;return a.value}}},{key:"set_object_at",value:function(r,h){if(r<=this.length()){for(var a=1,p=this.head;a<r;)p=p.next,a++;p.value=h}}}]),n})();N.exports=g}),(function(N,I,L){function o(e,t,i){this.x=null,this.y=null,e==null&&t==null&&i==null?(this.x=0,this.y=0):typeof e=="number"&&typeof t=="number"&&i==null?(this.x=e,this.y=t):e.constructor.name=="Point"&&t==null&&i==null&&(i=e,this.x=i.x,this.y=i.y)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.getLocation=function(){return new o(this.x,this.y)},o.prototype.setLocation=function(e,t,i){e.constructor.name=="Point"&&t==null&&i==null?(i=e,this.setLocation(i.x,i.y)):typeof e=="number"&&typeof t=="number"&&i==null&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},o.prototype.move=function(e,t){this.x=e,this.y=t},o.prototype.translate=function(e,t){this.x+=e,this.y+=t},o.prototype.equals=function(e){if(e.constructor.name=="Point"){var t=e;return this.x==t.x&&this.y==t.y}return this==e},o.prototype.toString=function(){return new o().constructor.name+"[x="+this.x+",y="+this.y+"]"},N.exports=o}),(function(N,I,L){function o(e,t,i,l){this.x=0,this.y=0,this.width=0,this.height=0,e!=null&&t!=null&&i!=null&&l!=null&&(this.x=e,this.y=t,this.width=i,this.height=l)}o.prototype.getX=function(){return this.x},o.prototype.setX=function(e){this.x=e},o.prototype.getY=function(){return this.y},o.prototype.setY=function(e){this.y=e},o.prototype.getWidth=function(){return this.width},o.prototype.setWidth=function(e){this.width=e},o.prototype.getHeight=function(){return this.height},o.prototype.setHeight=function(e){this.height=e},o.prototype.getRight=function(){return this.x+this.width},o.prototype.getBottom=function(){return this.y+this.height},o.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},o.prototype.getCenterX=function(){return this.x+this.width/2},o.prototype.getMinX=function(){return this.getX()},o.prototype.getMaxX=function(){return this.getX()+this.width},o.prototype.getCenterY=function(){return this.y+this.height/2},o.prototype.getMinY=function(){return this.getY()},o.prototype.getMaxY=function(){return this.getY()+this.height},o.prototype.getWidthHalf=function(){return this.width/2},o.prototype.getHeightHalf=function(){return this.height/2},N.exports=o}),(function(N,I,L){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function e(){}e.lastID=0,e.createID=function(t){return e.isPrimitive(t)?t:(t.uniqueID!=null||(t.uniqueID=e.getString(),e.lastID++),t.uniqueID)},e.getString=function(t){return t==null&&(t=e.lastID),"Object#"+t},e.isPrimitive=function(t){var i=typeof t>"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,L){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p<a.length;p++)v[p]=a[p];return v}else return Array.from(a)}var e=L(0),t=L(6),i=L(3),l=L(1),g=L(5),n=L(4),d=L(17),r=L(27);function h(a){r.call(this),this.layoutQuality=e.QUALITY,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=e.DEFAULT_INCREMENTAL,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new t(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,a!=null&&(this.isRemoteUse=a)}h.RANDOM_SEED=1,h.prototype=Object.create(r.prototype),h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},h.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},h.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},h.prototype.newGraphManager=function(){var a=new t(this);return this.graphManager=a,a},h.prototype.newGraph=function(a){return new g(null,this.graphManager,a)},h.prototype.newNode=function(a){return new i(this.graphManager,a)},h.prototype.newEdge=function(a){return new l(null,null,a)},h.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},h.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var a;return this.checkLayoutSuccess()?a=!1:a=this.layout(),e.ANIMATE==="during"?!1:(a&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,a)},h.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},h.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var a=this.graphManager.getAllEdges(),p=0;p<a.length;p++)a[p];for(var v=this.graphManager.getRoot().getNodes(),p=0;p<v.length;p++)v[p];this.update(this.graphManager.getRoot())}},h.prototype.update=function(a){if(a==null)this.update2();else if(a instanceof i){var p=a;if(p.getChild()!=null)for(var v=p.getChild().getNodes(),D=0;D<v.length;D++)update(v[D]);if(p.vGraphObject!=null){var u=p.vGraphObject;u.update(p)}}else if(a instanceof l){var T=a;if(T.vGraphObject!=null){var y=T.vGraphObject;y.update(T)}}else if(a instanceof g){var O=a;if(O.vGraphObject!=null){var s=O.vGraphObject;s.update(O)}}},h.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=e.QUALITY,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=e.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},h.prototype.transform=function(a){if(a==null)this.transform(new n(0,0));else{var p=new d,v=this.graphManager.getRoot().updateLeftTop();if(v!=null){p.setWorldOrgX(a.x),p.setWorldOrgY(a.y),p.setDeviceOrgX(v.x),p.setDeviceOrgY(v.y);for(var D=this.getAllNodes(),u,T=0;T<D.length;T++)u=D[T],u.transform(p)}}},h.prototype.positionNodesRandomly=function(a){if(a==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var p,v,D=a.getNodes(),u=0;u<D.length;u++)p=D[u],v=p.getChild(),v==null||v.getNodes().length==0?p.scatter():(this.positionNodesRandomly(v),p.updateBounds())},h.prototype.getFlatForest=function(){for(var a=[],p=!0,v=this.graphManager.getRoot().getNodes(),D=!0,u=0;u<v.length;u++)v[u].getChild()!=null&&(D=!1);if(!D)return a;var T=new Set,y=[],O=new Map,s=[];for(s=s.concat(v);s.length>0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),T.add(f);for(var c=f.getEdges(),u=0;u<c.length;u++){var E=c[u].getOtherEnd(f);if(O.get(f)!=E)if(!T.has(E))y.push(E),O.set(E,f);else{p=!1;break}}}if(!p)a=[];else{var A=[].concat(o(T));a.push(A);for(var u=0;u<A.length;u++){var m=A[u],C=s.indexOf(m);C>-1&&s.splice(C,1)}T=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u<a.bendpoints.length;u++){var T=this.newNode(null);T.setRect(new Point(0,0),new Dimension(1,1)),D.add(T);var y=this.newEdge(null);this.graphManager.add(y,v,T),p.add(T),v=T}var y=this.newEdge(null);return this.graphManager.add(y,v,a.target),this.edgeToDummyNodes.set(a,p),a.isInterGraph()?this.graphManager.remove(a):D.remove(a),p},h.prototype.createBendpointsFromDummyNodes=function(){var a=[];a=a.concat(this.graphManager.getAllEdges()),a=[].concat(o(this.edgeToDummyNodes.keys())).concat(a);for(var p=0;p<a.length;p++){var v=a[p];if(v.bendpoints.length>0){for(var D=this.edgeToDummyNodes.get(v),u=0;u<D.length;u++){var T=D[u],y=new n(T.getCenterX(),T.getCenterY()),O=v.bendpoints.get(u);O.x=y.x,O.y=y.y,T.getOwner().remove(T)}this.graphManager.add(v,v.source,v.target)}}},h.transform=function(a,p,v,D){if(v!=null&&D!=null){var u=p;if(a<=50){var T=p/v;u-=(p-T)/50*(50-a)}else{var y=p*D;u+=(y-p)/50*(a-50)}return u}else{var O,s;return a<=50?(O=9*p/500,s=p/10):(O=9*p/50,s=-8*p),O*a+s}},h.findCenterOfTree=function(a){var p=[];p=p.concat(a);var v=[],D=new Map,u=!1,T=null;(p.length==1||p.length==2)&&(u=!0,T=p[0]);for(var y=0;y<p.length;y++){var O=p[y],s=O.getNeighborsList().size;D.set(O,O.getNeighborsList().size),s==1&&v.push(O)}var f=[];for(f=f.concat(v);!u;){var c=[];c=c.concat(f),f=[];for(var y=0;y<p.length;y++){var O=p[y],E=p.indexOf(O);E>=0&&p.splice(E,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,T=p[0])}return T},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,L){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,L){var o=L(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,L){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);h<r.length;h++)a[h]=r[h];return a}else return Array.from(r)}var e=L(15),t=L(7),i=L(0),l=L(8),g=L(9);function n(){e.call(this),this.useSmartIdealEdgeLengthCalculation=t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=t.DEFAULT_EDGE_LENGTH,this.springConstant=t.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=t.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=t.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=t.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*t.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=t.MAX_ITERATIONS}n.prototype=Object.create(e.prototype);for(var d in e)n[d]=e[d];n.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},n.prototype.calcIdealEdgeLengths=function(){for(var r,h,a,p,v,D,u=this.getGraphManager().getAllEdges(),T=0;T<u.length;T++)r=u[T],r.idealLength=this.idealEdgeLength,r.isInterGraph&&(a=r.getSource(),p=r.getTarget(),v=r.getSourceInLca().getEstimatedSize(),D=r.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(r.idealLength+=v+D-2*i.SIMPLE_NODE_SIZE),h=r.getLca().getInclusionTreeDepth(),r.idealLength+=t.DEFAULT_EDGE_LENGTH*t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(a.getInclusionTreeDepth()+p.getInclusionTreeDepth()-2*h))},n.prototype.initSpringEmbedder=function(){var r=this.getAllNodes().length;this.incremental?(r>t.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a<r.length;a++)h=r[a],this.calcSpringForce(h,h.idealLength)},n.prototype.calcRepulsionForces=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,a=0;a<u.length;a++)v=u[a],this.calculateRepulsionForceOfANode(v,T,r,h),T.add(v);else for(a=0;a<u.length;a++)for(v=u[a],p=a+1;p<u.length;p++)D=u[p],v.getOwner()==D.getOwner()&&this.calcRepulsionForce(v,D)},n.prototype.calcGravitationalForces=function(){for(var r,h=this.getAllNodesToApplyGravitation(),a=0;a<h.length;a++)r=h[a],this.calcGravitationalForce(r)},n.prototype.moveNodes=function(){for(var r=this.getAllNodes(),h,a=0;a<r.length;a++)h=r[a],h.move()},n.prototype.calcSpringForce=function(r,h){var a=r.getSource(),p=r.getTarget(),v,D,u,T;if(this.uniformLeafNodeSizes&&a.getChild()==null&&p.getChild()==null)r.updateLengthSimple();else if(r.updateLength(),r.isOverlapingSourceAndTarget)return;v=r.getLength(),v!=0&&(D=this.springConstant*(v-h),u=D*(r.lengthX/v),T=D*(r.lengthY/v),a.springForceX+=u,a.springForceY+=T,p.springForceX-=u,p.springForceY-=T)},n.prototype.calcRepulsionForce=function(r,h){var a=r.getRect(),p=h.getRect(),v=new Array(2),D=new Array(4),u,T,y,O,s,f,c;if(a.intersects(p)){l.calcSeparationAmount(a,p,v,t.DEFAULT_EDGE_LENGTH/2),f=2*v[0],c=2*v[1];var E=r.noOfChildren*h.noOfChildren/(r.noOfChildren+h.noOfChildren);r.repulsionForceX-=E*f,r.repulsionForceY-=E*c,h.repulsionForceX+=E*f,h.repulsionForceY+=E*c}else this.uniformLeafNodeSizes&&r.getChild()==null&&h.getChild()==null?(u=p.getCenterX()-a.getCenterX(),T=p.getCenterY()-a.getCenterY()):(l.getIntersection(a,p,D),u=D[2]-D[0],T=D[3]-D[1]),Math.abs(u)<t.MIN_REPULSION_DIST&&(u=g.sign(u)*t.MIN_REPULSION_DIST),Math.abs(T)<t.MIN_REPULSION_DIST&&(T=g.sign(T)*t.MIN_REPULSION_DIST),y=u*u+T*T,O=Math.sqrt(y),s=this.repulsionConstant*r.noOfChildren*h.noOfChildren/y,f=s*u/O,c=s*T/O,r.repulsionForceX-=f,r.repulsionForceY-=c,h.repulsionForceX+=f,h.repulsionForceY+=c},n.prototype.calcGravitationalForce=function(r){var h,a,p,v,D,u,T,y;h=r.getOwner(),a=(h.getRight()+h.getLeft())/2,p=(h.getTop()+h.getBottom())/2,v=r.getCenterX()-a,D=r.getCenterY()-p,u=Math.abs(v)+r.getWidth()/2,T=Math.abs(D)+r.getHeight()/2,r.getOwner()==this.graphManager.getRoot()?(y=h.getEstimatedSize()*this.gravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,r||h},n.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},n.prototype.calcNoOfChildrenForAllNodes=function(){for(var r,h=this.graphManager.getAllNodes(),a=0;a<h.length;a++)r=h[a],r.noOfChildren=r.getNoOfChildren()},n.prototype.calcGrid=function(r){var h=0,a=0;h=parseInt(Math.ceil((r.getRight()-r.getLeft())/this.repulsionRange)),a=parseInt(Math.ceil((r.getBottom()-r.getTop())/this.repulsionRange));for(var p=new Array(h),v=0;v<h;v++)p[v]=new Array(a);for(var v=0;v<h;v++)for(var D=0;D<a;D++)p[v][D]=new Array;return p},n.prototype.addNodeToGrid=function(r,h,a){var p=0,v=0,D=0,u=0;p=parseInt(Math.floor((r.getRect().x-h)/this.repulsionRange)),v=parseInt(Math.floor((r.getRect().width+r.getRect().x-h)/this.repulsionRange)),D=parseInt(Math.floor((r.getRect().y-a)/this.repulsionRange)),u=parseInt(Math.floor((r.getRect().height+r.getRect().y-a)/this.repulsionRange));for(var T=p;T<=v;T++)for(var y=D;y<=u;y++)this.grid[T][y].push(r),r.setGridCoordinates(p,v,D,u)},n.prototype.updateGrid=function(){var r,h,a=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),r=0;r<a.length;r++)h=a[r],this.addNodeToGrid(h,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},n.prototype.calculateRepulsionForceOfANode=function(r,h,a,p){if(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&a||p){var v=new Set;r.surrounding=new Array;for(var D,u=this.grid,T=r.startX-1;T<r.finishX+2;T++)for(var y=r.startY-1;y<r.finishY+2;y++)if(!(T<0||y<0||T>=u.length||y>=u[0].length)){for(var O=0;O<u[T][y].length;O++)if(D=u[T][y][O],!(r.getOwner()!=D.getOwner()||r==D)&&!h.has(D)&&!v.has(D)){var s=Math.abs(r.getCenterX()-D.getCenterX())-(r.getWidth()/2+D.getWidth()/2),f=Math.abs(r.getCenterY()-D.getCenterY())-(r.getHeight()/2+D.getHeight()/2);s<=this.repulsionRange&&f<=this.repulsionRange&&v.add(D)}}r.surrounding=[].concat(o(v))}for(T=0;T<r.surrounding.length;T++)this.calcRepulsionForce(r,r.surrounding[T])},n.prototype.calcRepulsionRange=function(){return 0},N.exports=n}),(function(N,I,L){var o=L(1),e=L(7);function t(l,g,n){o.call(this,l,g,n),this.idealLength=e.DEFAULT_EDGE_LENGTH}t.prototype=Object.create(o.prototype);for(var i in o)t[i]=o[i];N.exports=t}),(function(N,I,L){var o=L(3);function e(i,l,g,n){o.call(this,i,l,g,n),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}e.prototype=Object.create(o.prototype);for(var t in o)e[t]=o[t];e.prototype.setGridCoordinates=function(i,l,g,n){this.startX=i,this.finishX=l,this.startY=g,this.finishY=n},N.exports=e}),(function(N,I,L){function o(e,t){this.width=0,this.height=0,e!==null&&t!==null&&(this.height=t,this.width=e)}o.prototype.getWidth=function(){return this.width},o.prototype.setWidth=function(e){this.width=e},o.prototype.getHeight=function(){return this.height},o.prototype.setHeight=function(e){this.height=e},N.exports=o}),(function(N,I,L){var o=L(14);function e(){this.map={},this.keys=[]}e.prototype.put=function(t,i){var l=o.createID(t);this.contains(l)||(this.map[l]=i,this.keys.push(t))},e.prototype.contains=function(t){return o.createID(t),this.map[t]!=null},e.prototype.get=function(t){var i=o.createID(t);return this.map[i]},e.prototype.keySet=function(){return this.keys},N.exports=e}),(function(N,I,L){var o=L(14);function e(){this.set={}}e.prototype.add=function(t){var i=o.createID(t);this.contains(i)||(this.set[i]=t)},e.prototype.remove=function(t){delete this.set[o.createID(t)]},e.prototype.clear=function(){this.set={}},e.prototype.contains=function(t){return this.set[o.createID(t)]==t},e.prototype.isEmpty=function(){return this.size()===0},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAllTo=function(t){for(var i=Object.keys(this.set),l=i.length,g=0;g<l;g++)t.push(this.set[i[g]])},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAll=function(t){for(var i=t.length,l=0;l<i;l++){var g=t[l];this.add(g)}},N.exports=e}),(function(N,I,L){var o=(function(){function l(g,n){for(var d=0;d<n.length;d++){var r=n[d];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(g,r.key,r)}}return function(g,n,d){return n&&l(g.prototype,n),d&&l(g,d),g}})();function e(l,g){if(!(l instanceof g))throw new TypeError("Cannot call a class as a function")}var t=L(11),i=(function(){function l(g,n){e(this,l),(n!==null||n!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var d=void 0;g instanceof t?d=g.size():d=g.length,this._quicksort(g,0,d-1)}return o(l,[{key:"_quicksort",value:function(n,d,r){if(d<r){var h=this._partition(n,d,r);this._quicksort(n,d,h),this._quicksort(n,h+1,r)}}},{key:"_partition",value:function(n,d,r){for(var h=this._get(n,d),a=d,p=r;;){for(;this.compareFunction(h,this._get(n,p));)p--;for(;this.compareFunction(this._get(n,a),h);)a++;if(a<p)this._swap(n,a,p),a++,p--;else return p}}},{key:"_get",value:function(n,d){return n instanceof t?n.get_object_at(d):n[d]}},{key:"_set",value:function(n,d,r){n instanceof t?n.set_object_at(d,r):n[d]=r}},{key:"_swap",value:function(n,d,r){var h=this._get(n,d);this._set(n,d,this._get(n,r)),this._set(n,r,h)}},{key:"_defaultCompareFunction",value:function(n,d){return d>n}}]),l})();N.exports=i}),(function(N,I,L){var o=(function(){function i(l,g){for(var n=0;n<g.length;n++){var d=g[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}return function(l,g,n){return g&&i(l.prototype,g),n&&i(l,n),l}})();function e(i,l){if(!(i instanceof l))throw new TypeError("Cannot call a class as a function")}var t=(function(){function i(l,g){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h<this.iMax;h++){this.grid[h]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[h][a]=0}this.tracebackGrid=new Array(this.iMax);for(var p=0;p<this.iMax;p++){this.tracebackGrid[p]=new Array(this.jMax);for(var v=0;v<this.jMax;v++)this.tracebackGrid[p][v]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return o(i,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var g=1;g<this.jMax;g++)this.grid[0][g]=this.grid[0][g-1]+this.gap_penalty,this.tracebackGrid[0][g]=[!1,!1,!0];for(var n=1;n<this.iMax;n++)this.grid[n][0]=this.grid[n-1][0]+this.gap_penalty,this.tracebackGrid[n][0]=[!1,!0,!1];for(var d=1;d<this.iMax;d++)for(var r=1;r<this.jMax;r++){var h=void 0;this.sequence1[d-1]===this.sequence2[r-1]?h=this.grid[d-1][r-1]+this.match_score:h=this.grid[d-1][r-1]+this.mismatch_penalty;var a=this.grid[d-1][r]+this.gap_penalty,p=this.grid[d][r-1]+this.gap_penalty,v=[h,a,p],D=this.arrayAllMaxIndexes(v);this.grid[d][r]=v[D[0]],this.tracebackGrid[d][r]=[D.includes(0),D.includes(1),D.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var g=[];for(g.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});g[0];){var n=g[0],d=this.tracebackGrid[n.pos[0]][n.pos[1]];d[0]&&g.push({pos:[n.pos[0]-1,n.pos[1]-1],seq1:this.sequence1[n.pos[0]-1]+n.seq1,seq2:this.sequence2[n.pos[1]-1]+n.seq2}),d[1]&&g.push({pos:[n.pos[0]-1,n.pos[1]],seq1:this.sequence1[n.pos[0]-1]+n.seq1,seq2:"-"+n.seq2}),d[2]&&g.push({pos:[n.pos[0],n.pos[1]-1],seq1:"-"+n.seq1,seq2:this.sequence2[n.pos[1]-1]+n.seq2}),n.pos[0]===0&&n.pos[1]===0&&this.alignments.push({sequence1:n.seq1,sequence2:n.seq2}),g.shift()}return this.alignments}},{key:"getAllIndexes",value:function(g,n){for(var d=[],r=-1;(r=g.indexOf(n,r+1))!==-1;)d.push(r);return d}},{key:"arrayAllMaxIndexes",value:function(g){return this.getAllIndexes(g,Math.max.apply(null,g))}}]),i})();N.exports=t}),(function(N,I,L){var o=function(){};o.FDLayout=L(18),o.FDLayoutConstants=L(7),o.FDLayoutEdge=L(19),o.FDLayoutNode=L(20),o.DimensionD=L(21),o.HashMap=L(22),o.HashSet=L(23),o.IGeometry=L(8),o.IMath=L(9),o.Integer=L(10),o.Point=L(12),o.PointD=L(4),o.RandomSeed=L(16),o.RectangleD=L(13),o.Transform=L(17),o.UniqueIDGeneretor=L(14),o.Quicksort=L(24),o.LinkedList=L(11),o.LGraphObject=L(2),o.LGraph=L(5),o.LEdge=L(1),o.LGraphManager=L(6),o.LNode=L(3),o.Layout=L(15),o.LayoutConstants=L(0),o.NeedlemanWunsch=L(25),N.exports=o}),(function(N,I,L){function o(){this.listeners=[]}var e=o.prototype;e.addListener=function(t,i){this.listeners.push({event:t,callback:i})},e.removeListener=function(t,i){for(var l=this.listeners.length;l>=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;l<this.listeners.length;l++){var g=this.listeners[l];t===g.event&&g.callback(i)}},N.exports=o})])})})(Q)),Q.exports}var ct=$.exports,z;function pt(){return z||(z=1,(function(G,b){(function(I,L){G.exports=L(ft())})(ct,function(N){return(function(I){var L={};function o(e){if(L[e])return L[e].exports;var t=L[e]={i:e,l:!1,exports:{}};return I[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=I,o.c=L,o.i=function(e){return e},o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=7)})([(function(I,L){I.exports=N}),(function(I,L,o){var e=o(0).FDLayoutConstants;function t(){}for(var i in e)t[i]=e[i];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,I.exports=t}),(function(I,L,o){var e=o(0).FDLayoutEdge;function t(l,g,n){e.call(this,l,g,n)}t.prototype=Object.create(e.prototype);for(var i in e)t[i]=e[i];I.exports=t}),(function(I,L,o){var e=o(0).LGraph;function t(l,g,n){e.call(this,l,g,n)}t.prototype=Object.create(e.prototype);for(var i in e)t[i]=e[i];I.exports=t}),(function(I,L,o){var e=o(0).LGraphManager;function t(l){e.call(this,l)}t.prototype=Object.create(e.prototype);for(var i in e)t[i]=e[i];I.exports=t}),(function(I,L,o){var e=o(0).FDLayoutNode,t=o(0).IMath;function i(g,n,d,r){e.call(this,g,n,d,r)}i.prototype=Object.create(e.prototype);for(var l in e)i[l]=e[l];i.prototype.move=function(){var g=this.graphManager.getLayout();this.displacementX=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h<d.length;h++)r=d[h],r.getChild()==null?(r.moveBy(g,n),r.displacementX+=g,r.displacementY+=n):r.propogateDisplacementToChildren(g,n)},i.prototype.setPred1=function(g){this.pred1=g},i.prototype.getPred1=function(){return pred1},i.prototype.getPred2=function(){return pred2},i.prototype.setNext=function(g){this.next=g},i.prototype.getNext=function(){return next},i.prototype.setProcessed=function(g){this.processed=g},i.prototype.isProcessed=function(){return processed},I.exports=i}),(function(I,L,o){var e=o(0).FDLayout,t=o(4),i=o(3),l=o(5),g=o(2),n=o(1),d=o(0).FDLayoutConstants,r=o(0).LayoutConstants,h=o(0).Point,a=o(0).PointD,p=o(0).Layout,v=o(0).Integer,D=o(0).IGeometry,u=o(0).LGraph,T=o(0).Transform;function y(){e.call(this),this.toBeTiled={}}y.prototype=Object.create(e.prototype);for(var O in e)y[O]=e[O];y.prototype.newGraphManager=function(){var s=new t(this);return this.graphManager=s,s},y.prototype.newGraph=function(s){return new i(null,this.graphManager,s)},y.prototype.newNode=function(s){return new l(this.graphManager,s)},y.prototype.newEdge=function(s){return new g(null,null,s)},y.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(n.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=n.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=d.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=d.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=d.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},y.prototype.layout=function(){var s=r.DEFAULT_CREATE_BENDS_AS_NEEDED;return s&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},y.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(n.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(m){return f.has(m)});this.graphManager.setAllNodesToApplyGravitation(c)}}else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c<s.length;c++){var E=s[c].rect,A=s[c].id;f[A]={id:A,x:E.getCenterX(),y:E.getCenterY(),w:E.width,h:E.height}}return f},y.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(d.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},y.prototype.calculateNodesToApplyGravitationTo=function(){var s=[],f,c=this.graphManager.getGraphs(),E=c.length,A;for(A=0;A<E;A++)f=c[A],f.updateConnected(),f.isConnected||(s=s.concat(f.getNodes()));return s},y.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var f=new Set,c;for(c=0;c<s.length;c++){var E=s[c];if(!f.has(E)){var A=E.getSource(),m=E.getTarget();if(A==m)E.getBendpoints().push(new a),E.getBendpoints().push(new a),this.createDummyNodesForBendpoints(E),f.add(E);else{var C=[];if(C=C.concat(A.getEdgeListToNode(m)),C=C.concat(m.getEdgeListToNode(A)),!f.has(C[0])){if(C.length>1){var R;for(R=0;R<C.length;R++){var M=C[R];M.getBendpoints().push(new a),this.createDummyNodesForBendpoints(M)}}C.forEach(function(S){f.add(S)})}}}if(f.size==s.length)break}},y.prototype.positionNodesRadially=function(s){for(var f=new h(0,0),c=Math.ceil(Math.sqrt(s.length)),E=0,A=0,m=0,C=new a(0,0),R=0;R<s.length;R++){R%c==0&&(m=0,A=E,R!=0&&(A+=n.DEFAULT_COMPONENT_SEPERATION),E=0);var M=s[R],S=p.findCenterOfTree(M);f.x=m,f.y=A,C=y.radialLayout(M,S,f),C.y>E&&(E=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var E=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,E);var A=u.calculateBounds(s),m=new T;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C<s.length;C++){var R=s[C];R.transform(m)}var M=new a(A.getMaxX(),A.getMaxY());return m.inverseTransformPoint(M)},y.branchRadialLayout=function(s,f,c,E,A,m){var C=(E-c+1)/2;C<0&&(C+=180);var R=(C+c)%360,M=R*D.TWO_PI/360,S=A*Math.cos(M),Y=A*Math.sin(M);s.setCenter(S,Y);var w=[];w=w.concat(s.getEdges());var x=w.length;f!=null&&x--;for(var F=0,U=w.length,P,_=s.getEdgesBetween(f);_.length>1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(E-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var j=(c+F*W)%360,ht=(j+W)%360;y.branchRadialLayout(K,s,j,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;c<s.length;c++){var E=s[c],A=E.getDiagonal();A>f&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],E=this.graphManager.getAllNodes(),A=0;A<E.length;A++){var m=E[A],C=m.getParent();this.getNodeDegreeWithChildren(m)===0&&(C.id==null||!this.getToBeTiled(C))&&c.push(m)}for(var A=0;A<c.length;A++){var m=c[A],R=m.getParent().id;typeof f[R]>"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U<f[M].length;U++){var P=f[M][U];F.remove(P),x.add(P)}}})},y.prototype.clearCompounds=function(){var s={},f={};this.performDFSOnCompounds();for(var c=0;c<this.compoundOrder.length;c++)f[this.compoundOrder[c].id]=this.compoundOrder[c],s[this.compoundOrder[c].id]=[].concat(this.compoundOrder[c].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[c].getChild()),this.compoundOrder[c].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,f)},y.prototype.clearZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(c){var E=s.idToDummyNode[c];f[c]=s.tileNodes(s.memberGroups[c],E.paddingLeft+E.paddingRight),E.rect.width=f[c].width,E.rect.height=f[c].height})},y.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var f=this.compoundOrder[s],c=f.id,E=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,E,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var E=s.idToDummyNode[c],A=E.paddingLeft,m=E.paddingTop;s.adjustLocations(f[c],E.rect.x,E.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var E=c.getNodes(),A=0;A<E.length;A++){var m=E[A];if(this.getNodeDegree(m)>0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,E=0;E<f.length;E++){var A=f[E];A.getSource().id!==A.getTarget().id&&(c=c+1)}return c},y.prototype.getNodeDegreeWithChildren=function(s){var f=this.getNodeDegree(s);if(s.getChild()==null)return f;for(var c=s.getChild().getNodes(),E=0;E<c.length;E++){var A=c[E];f+=this.getNodeDegreeWithChildren(A)}return f},y.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},y.prototype.fillCompexOrderByDFS=function(s){for(var f=0;f<s.length;f++){var c=s[f];c.getChild()!=null&&this.fillCompexOrderByDFS(c.getChild().getNodes()),this.getToBeTiled(c)&&this.compoundOrder.push(c)}},y.prototype.adjustLocations=function(s,f,c,E,A){f+=E,c+=A;for(var m=f,C=0;C<s.rows.length;C++){var R=s.rows[C];f=m;for(var M=0,S=0;S<R.length;S++){var Y=R[S];Y.rect.x=f,Y.rect.y=c,f+=Y.rect.width+s.horizontalPadding,Y.rect.height>M&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var A=f[E];c.tiledMemberPack[E]=c.tileNodes(s[E],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[E].width,A.rect.height=c.tiledMemberPack[E].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,E=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:E};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height<M.rect.width*M.rect.height?1:0});for(var m=0;m<s.length;m++){var C=s[m];A.rows.length==0?this.insertNodeToRow(A,C,0,f):this.canAddHorizontal(A,C.rect.width,C.rect.height)?this.insertNodeToRow(A,C,this.getShortestRowIndex(A),f):this.insertNodeToRow(A,C,A.rows.length,f),this.shiftToLastRow(A)}return A},y.prototype.insertNodeToRow=function(s,f,c,E){var A=E;if(c==s.rows.length){var m=[];s.rows.push(m),s.rowWidth.push(A),s.rowHeight.push(0)}var C=s.rowWidth[c]+f.rect.width;s.rows[c].length>0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width<C&&(s.width=C);var R=f.rect.height;c>0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]<c&&(f=E,c=s.rowWidth[E]);return f},y.prototype.getLongestRowIndex=function(s){for(var f=-1,c=Number.MIN_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]>c&&(f=E,c=s.rowWidth[E]);return f},y.prototype.canAddHorizontal=function(s,f,c){var E=this.getShortestRowIndex(s);if(E<0)return!0;var A=s.rowWidth[E];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[E]<c&&E>0&&(m=c+s.verticalPadding-s.rowHeight[E]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.width<f?R=(s.height+m)/f:R=(s.height+m)/s.width,R<1&&(R=1/R),C<1&&(C=1/C),C<R},y.prototype.shiftToLastRow=function(s){var f=this.getLongestRowIndex(s),c=s.rowWidth.length-1,E=s.rows[f],A=E[E.length-1],m=A.width+s.horizontalPadding;if(s.width-s.rowWidth[c]>m&&f!=c){E.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;R<E.length;R++)E[R].height>C&&(C=E[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]<A.height+s.verticalPadding&&(s.rowHeight[c]=A.height+s.verticalPadding);var S=s.rowHeight[f]+s.rowHeight[c];s.height+=S-M,this.shiftToLastRow(s)}},y.prototype.tilingPreLayout=function(){n.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},y.prototype.tilingPostLayout=function(){n.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},y.prototype.reduceTrees=function(){for(var s=[],f=!0,c;f;){var E=this.graphManager.getAllNodes(),A=[];f=!1;for(var m=0;m<E.length;m++)c=E[m],c.getEdges().length==1&&!c.getEdges()[0].isInterGraph&&c.getChild()==null&&(A.push([c,c.getEdges()[0],c.getOwner()]),f=!0);if(f==!0){for(var C=[],R=0;R<A.length;R++)A[R][0].getEdges().length==1&&(C.push(A[R]),A[R][0].getOwner().remove(A[R][0]));s.push(C),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=s},y.prototype.growTree=function(s){for(var f=s.length,c=s[f-1],E,A=0;A<c.length;A++)E=c[A],this.findPlaceforPrunedNode(E),E[2].add(E[0]),E[2].add(E[1],E[1].source,E[1].target);s.splice(s.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},y.prototype.findPlaceforPrunedNode=function(s){var f,c,E=s[0];E==s[1].source?c=s[1].target:c=s[1].source;var A=c.startX,m=c.finishX,C=c.startY,R=c.finishY,M=0,S=0,Y=0,w=0,x=[M,Y,S,w];if(C>0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m<this.grid.length-1)for(var F=C;F<=R;F++)x[1]+=this.grid[m+1][F].length+this.grid[m][F].length-1;if(R<this.grid[0].length-1)for(var F=A;F<=m;F++)x[2]+=this.grid[F][R+1].length+this.grid[F][R].length-1;if(A>0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X<x.length;X++)x[X]<U?(U=x[X],P=1,_=X):x[X]==U&&P++;if(P==3&&U==0)x[0]==0&&x[1]==0&&x[2]==0?f=1:x[0]==0&&x[1]==0&&x[3]==0?f=0:x[0]==0&&x[2]==0&&x[3]==0?f=3:x[1]==0&&x[2]==0&&x[3]==0&&(f=2);else if(P==2&&U==0){var H=Math.floor(Math.random()*2);x[0]==0&&x[1]==0?H==0?f=0:f=1:x[0]==0&&x[2]==0?H==0?f=0:f=2:x[0]==0&&x[3]==0?H==0?f=0:f=3:x[1]==0&&x[2]==0?H==0?f=1:f=2:x[1]==0&&x[3]==0?H==0?f=1:f=3:H==0?f=2:f=3}else if(P==4&&U==0){var H=Math.floor(Math.random()*4);f=H}else f=_;f==0?E.setCenter(c.getCenterX(),c.getCenterY()-c.getHeight()/2-d.DEFAULT_EDGE_LENGTH-E.getHeight()/2):f==1?E.setCenter(c.getCenterX()+c.getWidth()/2+d.DEFAULT_EDGE_LENGTH+E.getWidth()/2,c.getCenterY()):f==2?E.setCenter(c.getCenterX(),c.getCenterY()+c.getHeight()/2+d.DEFAULT_EDGE_LENGTH+E.getHeight()/2):E.setCenter(c.getCenterX()-c.getWidth()/2-d.DEFAULT_EDGE_LENGTH-E.getWidth()/2,c.getCenterY())},I.exports=y}),(function(I,L,o){var e={};e.layoutBase=o(0),e.CoSEConstants=o(1),e.CoSEEdge=o(2),e.CoSEGraph=o(3),e.CoSEGraphManager=o(4),e.CoSELayout=o(6),e.CoSENode=o(5),I.exports=e})])})})($)),$.exports}var dt=Z.exports,J;function vt(){return J||(J=1,(function(G,b){(function(I,L){G.exports=L(pt())})(dt,function(N){return(function(I){var L={};function o(e){if(L[e])return L[e].exports;var t=L[e]={i:e,l:!1,exports:{}};return I[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=I,o.c=L,o.i=function(e){return e},o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)})([(function(I,L){I.exports=N}),(function(I,L,o){var e=o(0).layoutBase.LayoutConstants,t=o(0).layoutBase.FDLayoutConstants,i=o(0).CoSEConstants,l=o(0).CoSELayout,g=o(0).CoSENode,n=o(0).layoutBase.PointD,d=o(0).layoutBase.DimensionD,r={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function h(D,u){var T={};for(var y in D)T[y]=D[y];for(var y in u)T[y]=u[y];return T}function a(D){this.options=h(r,D),p(this.options)}var p=function(u){u.nodeRepulsion!=null&&(i.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=u.nodeRepulsion),u.idealEdgeLength!=null&&(i.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=u.idealEdgeLength),u.edgeElasticity!=null&&(i.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=u.edgeElasticity),u.nestingFactor!=null&&(i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.nestingFactor),u.gravity!=null&&(i.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=u.gravity),u.numIter!=null&&(i.MAX_ITERATIONS=t.MAX_ITERATIONS=u.numIter),u.gravityRange!=null&&(i.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=u.gravityRange),u.gravityCompound!=null&&(i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.gravityCompound),u.gravityRangeCompound!=null&&(i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.gravityRangeCompound),u.initialEnergyOnIncremental!=null&&(i.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.initialEnergyOnIncremental),u.quality=="draft"?e.QUALITY=0:u.quality=="proof"?e.QUALITY=2:e.QUALITY=1,i.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=u.nodeDimensionsIncludeLabels,i.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!u.randomize,i.ANIMATE=t.ANIMATE=e.ANIMATE=u.animate,i.TILE=u.tile,i.TILING_PADDING_VERTICAL=typeof u.tilingPaddingVertical=="function"?u.tilingPaddingVertical.call():u.tilingPaddingVertical,i.TILING_PADDING_HORIZONTAL=typeof u.tilingPaddingHorizontal=="function"?u.tilingPaddingHorizontal.call():u.tilingPaddingHorizontal};a.prototype.run=function(){var D,u,T=this.options;this.idToLNode={};var y=this.layout=new l,O=this;O.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var s=y.newGraphManager();this.gm=s;var f=this.options.eles.nodes(),c=this.options.eles.edges();this.root=s.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(f),y);for(var E=0;E<c.length;E++){var A=c[E],m=this.idToLNode[A.data("source")],C=this.idToLNode[A.data("target")];if(m!==C&&m.getEdgesBetween(C).length==0){var R=s.add(y.newEdge(),m,C);R.id=A.id()}}var M=function(w,x){typeof w=="number"&&(w=x);var F=w.data("id"),U=O.idToLNode[F];return{x:U.getRect().getCenterX(),y:U.getRect().getCenterY()}},S=function Y(){for(var w=function(){T.fit&&T.cy.fit(T.eles,T.padding),D||(D=!0,O.cy.one("layoutready",T.ready),O.cy.trigger({type:"layoutready",layout:O}))},x=O.options.refresh,F,U=0;U<x&&!F;U++)F=O.stopped||O.layout.tick();if(F){y.checkLayoutSuccess()&&!y.isSubLayout&&y.doPostLayout(),y.tilingPostLayout&&y.tilingPostLayout(),y.isLayoutFinished=!0,O.options.eles.nodes().positions(M),w(),O.cy.one("layoutstop",O.options.stop),O.cy.trigger({type:"layoutstop",layout:O}),u&&cancelAnimationFrame(u),D=!1;return}var P=O.layout.getPositionsData();T.eles.nodes().positions(function(_,X){if(typeof _=="number"&&(_=X),!_.isParent()){for(var H=_.id(),W=P[H],B=_;W==null&&(W=P[B.data("parent")]||P["DummyCompound_"+B.data("parent")],P[H]=W,B=B.parent()[0],B!=null););return W!=null?{x:W.x,y:W.y}:{x:_.position("x"),y:_.position("y")}}}),w(),u=requestAnimationFrame(Y)};return y.addListener("layoutstarted",function(){O.options.animate==="during"&&(u=requestAnimationFrame(S))}),y.runLayout(),this.options.animate!=="during"&&(O.options.eles.nodes().not(":parent").layoutPositions(O,O.options,M),D=!1),this},a.prototype.getTopMostNodes=function(D){for(var u={},T=0;T<D.length;T++)u[D[T].id()]=!0;var y=D.filter(function(O,s){typeof O=="number"&&(O=s);for(var f=O.parent()[0];f!=null;){if(u[f.id()])return!1;f=f.parent()[0]}return!0});return y},a.prototype.processChildrenList=function(D,u,T){for(var y=u.length,O=0;O<y;O++){var s=u[O],f=s.children(),c,E=s.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(s.outerWidth()!=null&&s.outerHeight()!=null?c=D.add(new g(T.graphManager,new n(s.position("x")-E.w/2,s.position("y")-E.h/2),new d(parseFloat(E.w),parseFloat(E.h)))):c=D.add(new g(this.graphManager)),c.id=s.data("id"),c.paddingLeft=parseInt(s.css("padding")),c.paddingTop=parseInt(s.css("padding")),c.paddingRight=parseInt(s.css("padding")),c.paddingBottom=parseInt(s.css("padding")),this.options.nodeDimensionsIncludeLabels&&s.isParent()){var A=s.boundingBox({includeLabels:!0,includeNodes:!1}).w,m=s.boundingBox({includeLabels:!0,includeNodes:!1}).h,C=s.css("text-halign");c.labelWidth=A,c.labelHeight=m,c.labelPos=C}if(this.idToLNode[s.data("id")]=c,isNaN(c.rect.x)&&(c.rect.x=0),isNaN(c.rect.y)&&(c.rect.y=0),f!=null&&f.length>0){var R;R=T.getGraphManager().add(T.newGraph(),c),this.processChildrenList(R,f,T)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})(Z)),Z.exports}var yt=vt();const Et=gt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(L=>{["id","label","height","width","padding","x","y"].includes(L)||(I[L]=N[L])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(L=>{["id","start","end"].includes(L)||(I[L]=N[L])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=lt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const L={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(L).run(),I.ready(o=>{k.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),L={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(L[o]=N[o])}),L})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,L={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(L[o]=N[o])}),L})}V(ot,"extractPositionedEdges");async function st(G,b){k.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),L=ot(N);return k.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`),{nodes:I,edges:L}}catch(N){throw k.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:L,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const T={...u};n[u.id]=T,g[u.id]=T,await N(r,u)}else{const T={...u};g[u.id]=T;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();T.width=O.width,T.height=O.height,T.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const T=g[u.id];return{...u,width:T.width,height:T.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const T=g[u.id];T?.domId&&(T.domId.attr("transform",`translate(${u.x}, ${u.y})`),T.x=u.x,T.y=u.y,t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const T=G.edges.find(y=>y.id===u.id);T&&(T.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await L(a,u);const T=g[u.start??""],y=g[u.end??""];if(T&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:T.x||0,y:T.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),Ft=Lt;export{Ft as render};
@@ -1,62 +0,0 @@
1
- import{p as xt}from"./chunk-JWPE2WC7-D3RBRFlO.js";import{s as gt,g as $t,q as bt,p as wt,a as Ct,b as vt,_ as i,l as Y,G as Dt,d as kt,r as At,D as U,A as Q,E as Tt,X as ot}from"./mermaid.core-NgKGXesa.js";import{p as Bt}from"./cynefin-OW5HDTMX-OjLqg3vs.js";import"./index-BEELfYGZ.js";import"./FilePreviewLoading-CCHsarTJ.js";import"./use-form-common-props-mcyC3w-u.js";import"./el-scrollbar-K7eVpxQ7.js";import"./el-input-B2Nof_cr.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./BusyIndicator-D3z5mSYz.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./_baseIteratee-CpPVpKOG.js";import"./union-s1ErPvjZ.js";import"./_baseFindIndex-D7XfJLKM.js";var rt=i(()=>({domains:new Map,transitions:[]}),"createDefaultData"),G=rt(),St=i(()=>G.domains,"getDomains"),Mt=i(()=>G.transitions,"getTransitions"),zt=i(t=>{if(t)for(const e of t){const n=e.domain,a=(e.items??[]).map(c=>({label:c.label}));G.domains.set(n,{name:n,items:a})}},"setDomains"),Lt=i(t=>{t&&(G.transitions=t.filter(e=>e.from===e.to?(Y.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1):!0).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},"setTransitions"),Nt=i(()=>U({...Tt.cynefin,...Q().cynefin}),"getConfig"),Pt=i(()=>{At(),G=rt()},"clear"),X={getDomains:St,getTransitions:Mt,setDomains:zt,setTransitions:Lt,getConfig:Nt,clear:Pt,setAccTitle:vt,getAccTitle:Ct,setDiagramTitle:wt,getDiagramTitle:bt,getAccDescription:$t,setAccDescription:gt},It=i(t=>{xt(t,X),X.setDomains(t.domains),X.setTransitions(t.transitions)},"populate"),Wt={parse:i(async t=>{const e=await Bt("cynefin",t);Y.debug(e),It(e)},"parse")};function V(t){let e=t+1831565813|0;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}i(V,"seededRandom");function it(t){let e=0;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=(e<<5)-e+a,e|=0}return e}i(it,"hashString");function st(t,e){return typeof t=="number"&&Number.isFinite(t)&&t!==0?t:it(e)}i(st,"resolveSeed");function ct(t,e,n,a){const c=t/2,m=a??t*.015,v=7,W=e/v,d=[];for(let o=0;o<=v;o++){const p=V(n+o*17)*m*2-m;d.push({x:c+p,y:o*W})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],s=d[o+1],f=(p.y+s.y)/2,b=o%2===0?1:-1,h=m*1.5*b*V(n+o*31+7),R=p.x+h,_=f,E=s.x-h;D+=` C${R},${_} ${E},${f} ${s.x},${s.y}`}return D}i(ct,"generateFoldPath");function lt(t,e,n,a){const c=e/2,m=a??e*.015,v=7,W=t/v,d=[];for(let o=0;o<=v;o++){const p=V(n+o*23)*m*2-m;d.push({x:o*W,y:c+p})}let D=`M${d[0].x},${d[0].y}`;for(let o=0;o<d.length-1;o++){const p=d[o],s=d[o+1],f=(p.x+s.x)/2,b=o%2===0?1:-1,h=m*1.5*b*V(n+o*37+11),R=f,_=p.y+h,E=f,z=s.y-h;D+=` C${R},${_} ${E},${z} ${s.x},${s.y}`}return D}i(lt,"generateHorizontalBoundary");function dt(t,e){const n=t/2,a=e*.5,c=e,m=t*.03;return[`M${n},${a}`,`C${n+m},${a+(c-a)*.2}`,`${n-m*1.5},${a+(c-a)*.55}`,`${n+m*.5},${a+(c-a)*.75}`,`C${n-m},${a+(c-a)*.85}`,`${n+m*.3},${a+(c-a)*.95}`,`${n},${c}`].join(" ")}i(dt,"generateCliffPath");function ft(t,e,n,a){return[`M${t-n},${e}`,`A${n},${a} 0 1,1 ${t+n},${e}`,`A${n},${a} 0 1,1 ${t-n},${e}`,"Z"].join(" ")}i(ft,"generateConfusionPath");var at={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},Rt=i((t,e)=>{const n=t/2,a=e/2;return{complex:{cx:n/2,cy:a/2,x:0,y:0,w:n,h:a},complicated:{cx:n+n/2,cy:a/2,x:n,y:0,w:n,h:a},chaotic:{cx:n/2,cy:a+a/2,x:0,y:a,w:n,h:a},clear:{cx:n+n/2,cy:a+a/2,x:n,y:a,w:n,h:a},confusion:{cx:n,cy:a,x:n*.7,y:a*.7,w:n*.6,h:a*.6}}},"getDomainLayouts"),_t=i(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinDomainColors"),q=3,Et=i((t,e,n,a)=>{const c=a.db,m=c.getDomains(),v=c.getTransitions(),W=c.getDiagramTitle(),d=c.getAccTitle(),D=c.getAccDescription(),o=c.getConfig(),p=_t();Y.debug("Rendering Cynefin diagram");const s=o.width,f=o.height,b=o.padding,h=o.showDomainDescriptions,R=o.boundaryAmplitude,_=s+b*2,E=f+b*2,z={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},k=Dt(e);kt(k,E,_,o.useMaxWidth??!0),k.attr("viewBox",`0 0 ${_} ${E}`),d&&k.append("title").text(d),D&&k.append("desc").text(D);const A=k.append("g").attr("transform",`translate(${b}, ${b})`),F=Rt(s,f),Z=st(o.seed,e),mt=A.append("g").attr("class","cynefin-backgrounds"),O=["complex","complicated","chaotic","clear"];for(const l of O){const r=F[l];mt.append("rect").attr("class","cynefinDomain").attr("x",r.x).attr("y",r.y).attr("width",r.w).attr("height",r.h).attr("fill",z[l]).attr("fill-opacity",.4).attr("stroke","none")}const j=A.append("g").attr("class","cynefin-boundaries");j.append("path").attr("class","cynefinBoundary").attr("d",ct(s,f,Z,R)).attr("fill","none"),j.append("path").attr("class","cynefinBoundary").attr("d",lt(s,f,Z+100,R)).attr("fill","none"),j.append("path").attr("class","cynefinCliff").attr("d",dt(s,f)).attr("fill","none");const pt=s*.15,yt=f*.15;A.append("path").attr("class","cynefinConfusion").attr("d",ft(s/2,f/2,pt,yt)).attr("fill",z.confusion).attr("fill-opacity",.5);const J=A.append("g").attr("class","cynefin-labels");for(const l of O){const r=F[l];J.append("text").attr("class","cynefinDomainLabel").attr("x",r.cx).attr("y",h?r.cy-30:r.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(l.charAt(0).toUpperCase()+l.slice(1))}if(J.append("text").attr("class","cynefinDomainLabel").attr("x",s/2).attr("y",h?f/2-10:f/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),h){const l=A.append("g").attr("class","cynefin-subtitles");for(const r of O){const u=F[r],y=at[r];l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.model),l.append("text").attr("class","cynefinSubtitle").attr("x",u.cx).attr("y",u.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(y.practice)}l.append("text").attr("class","cynefinSubtitle").attr("x",s/2).attr("y",f/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(at.confusion.practice)}const K=A.append("g").attr("class","cynefin-items"),T=26,tt=10,ut=["complex","complicated","chaotic","clear","confusion"];for(const l of ut){const r=m.get(l);if(!r||r.items.length===0)continue;const u=F[l],y=l==="confusion";let L=r.items,N=0;y&&r.items.length>q&&(N=r.items.length-q,L=r.items.slice(0,q));let B;if(y){const g=h?22:14;B=u.cy+g}else B=u.cy+(h?25:15);if([...L].forEach((g,S)=>{const w=B+S*(T+4),M=K.append("g"),P=M.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(g.label);let $=g.label.length*7;const x=P.node();if(x&&typeof x.getBBox=="function"){const H=x.getBBox();H.width>0&&($=H.width)}const C=$+tt*2,I=u.cx-C/2;M.attr("transform",`translate(${I}, ${w})`),M.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",C).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.95),P.attr("x",C/2).attr("y",T/2)}),N>0){const g=B+L.length*(T+4),S=`+${N} more`,w=K.append("g"),M=w.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",T/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(S);let P=S.length*7;const $=M.node();if($&&typeof $.getBBox=="function"){const I=$.getBBox();I.width>0&&(P=I.width)}const x=P+tt*2,C=u.cx-x/2;w.attr("transform",`translate(${C}, ${g})`),w.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",x).attr("height",T).attr("rx",4).attr("ry",4).attr("fill",z[l]).attr("fill-opacity",.6),M.attr("x",x/2).attr("y",T/2)}}if(v.length>0){const l=k.select("defs").empty()?k.append("defs"):k.select("defs"),r=`cynefin-arrow-${e}`;l.append("marker").attr("id",r).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");const u=A.append("g").attr("class","cynefin-arrows");v.forEach(y=>{const L=F[y.from],N=F[y.to];if(!L||!N)return;if(y.from===y.to){Y.warn(`Cynefin renderer: skipping self-loop on domain "${y.from}"`);return}const B=L.cx,g=L.cy,S=N.cx,w=N.cy,M=(B+S)/2,P=(g+w)/2,$=S-B,x=w-g,C=Math.sqrt($*$+x*x),I=C*.15,H=-x/C,ht=$/C,et=M+H*I,nt=P+ht*I;u.append("path").attr("class","cynefinArrowLine").attr("d",`M${B},${g} Q${et},${nt} ${S},${w}`).attr("fill","none").attr("marker-end",`url(#${r})`),y.label&&u.append("text").attr("class","cynefinArrowLabel").attr("x",et).attr("y",nt-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(y.label)})}W&&A.append("text").attr("class","cynefinTitle").attr("x",s/2).attr("y",-b/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(W)},"draw"),Ft={draw:Et},Vt=i(()=>{const t=ot(),e=Q();return U(t,e.themeVariables).cynefin},"getCynefinTheme"),Gt=i(()=>{const t=Vt();return`
2
- .cynefinDomain {
3
- stroke: none;
4
- }
5
- .cynefinDomainLabel {
6
- font-size: ${t.domainFontSize}px;
7
- font-weight: bold;
8
- fill: ${t.labelColor};
9
- }
10
- .cynefinSubtitle {
11
- font-size: ${t.itemFontSize-1}px;
12
- fill: ${t.textColor};
13
- font-style: italic;
14
- }
15
- .cynefinItem {
16
- fill-opacity: 0.95;
17
- stroke: ${t.boundaryColor};
18
- stroke-width: 1;
19
- }
20
- .cynefinItemText {
21
- font-size: ${t.itemFontSize}px;
22
- fill: ${t.textColor};
23
- }
24
- .cynefinItemOverflow {
25
- fill-opacity: 0.6;
26
- stroke: ${t.boundaryColor};
27
- stroke-width: 1;
28
- stroke-dasharray: 3 2;
29
- }
30
- .cynefinBoundary {
31
- stroke: ${t.boundaryColor};
32
- stroke-width: ${t.boundaryWidth};
33
- stroke-dasharray: 6 3;
34
- }
35
- .cynefinCliff {
36
- stroke: ${t.cliffColor};
37
- stroke-width: ${t.cliffWidth};
38
- }
39
- .cynefinConfusion {
40
- stroke: ${t.boundaryColor};
41
- stroke-width: 1.5;
42
- stroke-dasharray: 4 2;
43
- }
44
- .cynefinArrowLine {
45
- stroke: ${t.arrowColor};
46
- stroke-width: ${t.arrowWidth};
47
- fill: none;
48
- }
49
- .cynefinArrowHead {
50
- fill: ${t.arrowColor};
51
- stroke: none;
52
- }
53
- .cynefinArrowLabel {
54
- font-size: ${t.itemFontSize-1}px;
55
- fill: ${t.textColor};
56
- }
57
- .cynefinTitle {
58
- font-size: ${t.domainFontSize+2}px;
59
- font-weight: bold;
60
- fill: ${t.labelColor};
61
- }
62
- `},"styles"),Ht=Gt,oe={parser:Wt,db:X,renderer:Ft,styles:Ht};export{oe as diagram};
@@ -1,41 +0,0 @@
1
- import{p as I}from"./chunk-JWPE2WC7-D3RBRFlO.js";import{s as _,g as E,q as D,p as F,a as G,b as P,_ as c,G as z,r as B,D as w,A as C,E as W,l as b,X as V,d as H}from"./mermaid.core-NgKGXesa.js";import{p as X}from"./cynefin-OW5HDTMX-OjLqg3vs.js";import"./index-BEELfYGZ.js";import"./FilePreviewLoading-CCHsarTJ.js";import"./use-form-common-props-mcyC3w-u.js";import"./el-scrollbar-K7eVpxQ7.js";import"./el-input-B2Nof_cr.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./BusyIndicator-D3z5mSYz.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./_baseIteratee-CpPVpKOG.js";import"./union-s1ErPvjZ.js";import"./_baseFindIndex-D7XfJLKM.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:x},g=structuredClone(A),j=W.radar,U=c(()=>w({...j,...C().radar}),"getConfig"),M=c(()=>g.axes,"getAxes"),q=c(()=>g.curves,"getCurves"),K=c(()=>g.options,"getOptions"),N=c(a=>{g.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Y=c(a=>{g.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:Z(t.entries)}))},"setCurves"),Z=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});g.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},g.options.ticks>y&&(b.warn(`Radar diagram ticks (${g.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),g.options.ticks=y)},"setOptions"),Q=c(()=>{B(),g=structuredClone(A)},"clear"),$={getAxes:M,getCurves:q,getOptions:K,setAxes:N,setCurves:Y,setOptions:J,getConfig:U,clear:Q,setAccTitle:P,getAccTitle:G,setDiagramTitle:F,getDiagramTitle:D,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await X("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),u=z(t),p=rt(u,o),m=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(p,i,v,n.ticks,n.graticule),nt(p,i,v,o),L(p,i,l,h,m,n.graticule,o),k(p,l,n.showLegend,o),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,u)=>{const p=2*u*Math.PI/i-Math.PI/2,m=n*Math.cos(p),h=n*Math.sin(p);return`${m},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const u=o>.01?"start":o<-.01?"end":"middle",p=d>.01?"hanging":d<-.01?"auto":"central",m=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+m*o).attr("y",e*r.axisLabelFactor*d+m*d).attr("text-anchor",u).attr("dominant-baseline",p).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,u)=>{if(d.entries.length!==n)return;const p=d.entries.map((m,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(m,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(p,l.curveTension)).attr("class",`radarCurve-${u}`):i==="polygon"&&a.append("polygon").attr("points",p.map(m=>`${m.x},${m.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},u={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${u.x},${u.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
- .radarCurve-${r} {
3
- color: ${s};
4
- fill: ${s};
5
- fill-opacity: ${t.curveOpacity};
6
- stroke: ${s};
7
- stroke-width: ${t.curveStrokeWidth};
8
- }
9
- .radarLegendBox-${r} {
10
- fill: ${s};
11
- fill-opacity: ${t.curveOpacity};
12
- stroke: ${s};
13
- }
14
- `}return e},"genIndexStyles"),lt=c(a=>{const t=V(),e=C(),r=w(t,e.themeVariables),s=w(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),ct=c(({radar:a}={})=>{const{themeVariables:t,radarOptions:e}=lt(a);return`
15
- .radarTitle {
16
- font-size: ${t.fontSize};
17
- color: ${t.titleColor};
18
- dominant-baseline: hanging;
19
- text-anchor: middle;
20
- }
21
- .radarAxisLine {
22
- stroke: ${e.axisColor};
23
- stroke-width: ${e.axisStrokeWidth};
24
- }
25
- .radarAxisLabel {
26
- font-size: ${e.axisLabelFontSize}px;
27
- color: ${e.axisColor};
28
- }
29
- .radarGraticule {
30
- fill: ${e.graticuleColor};
31
- fill-opacity: ${e.graticuleOpacity};
32
- stroke: ${e.graticuleColor};
33
- stroke-width: ${e.graticuleStrokeWidth};
34
- }
35
- .radarLegendText {
36
- text-anchor: start;
37
- font-size: ${e.legendFontSize}px;
38
- dominant-baseline: hanging;
39
- }
40
- ${it(t,e)}
41
- `},"styles"),At={parser:et,db:$,renderer:ot,styles:ct};export{At as diagram};
@@ -1,24 +0,0 @@
1
- import{p as ge}from"./chunk-JWPE2WC7-D3RBRFlO.js";import{_ as w,X as ye,A as ae,D as ee,G as Se,d as ve,l as te,bc as B,j as U,b as xe,a as be,p as we,q as Ce,g as Te,s as Le,E as $e,bd as Ae,r as Fe}from"./mermaid.core-NgKGXesa.js";import{s as Ne}from"./chunk-POPQ4Y6H-D_kXllbI.js";import{p as Me}from"./cynefin-OW5HDTMX-OjLqg3vs.js";import{b as O}from"./defaultLocale-DX6XiGOO.js";import{o as Q}from"./ordinal-Cboi1Yqb.js";import"./index-BEELfYGZ.js";import"./FilePreviewLoading-CCHsarTJ.js";import"./use-form-common-props-mcyC3w-u.js";import"./el-scrollbar-K7eVpxQ7.js";import"./el-input-B2Nof_cr.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./BusyIndicator-D3z5mSYz.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./_baseIteratee-CpPVpKOG.js";import"./union-s1ErPvjZ.js";import"./_baseFindIndex-D7XfJLKM.js";import"./init-Gi6I4Gst.js";function _e(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function ke(){return this.eachAfter(_e)}function ze(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function Ve(t,a){for(var l=this,n=[l],r,i,h=-1;l=n.pop();)if(t.call(a,l,++h,this),r=l.children)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function De(t,a){for(var l=this,n=[l],r=[],i,h,d,g=-1;l=n.pop();)if(r.push(l),i=l.children)for(h=0,d=i.length;h<d;++h)n.push(i[h]);for(;l=r.pop();)t.call(a,l,++g,this);return this}function Pe(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function Be(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,r=n&&n.length;--r>=0;)l+=n[r].value;a.value=l})}function Ee(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Re(t){for(var a=this,l=We(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var r=n.length;t!==l;)n.splice(r,0,t),t=t.parent;return n}function We(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),r=null;for(t=l.pop(),a=n.pop();t===a;)r=t,t=l.pop(),a=n.pop();return r}function He(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Ie(){return Array.from(this)}function Oe(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function Ge(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*qe(){var t=this,a,l=[t],n,r,i;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(r=0,i=n.length;r<i;++r)l.push(n[r]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ye)):a===void 0&&(a=je);for(var l=new Z(t),n,r=[l],i,h,d,g;n=r.pop();)if((h=a(n.data))&&(g=(h=Array.from(h)).length))for(n.children=h,d=g-1;d>=0;--d)r.push(i=h[d]=new Z(h[d])),i.parent=n,i.depth=n.depth+1;return l.eachBefore(Ze)}function Xe(){return ne(this).eachBefore(Ue)}function je(t){return t.children}function Ye(t){return Array.isArray(t)?t[1]:null}function Ue(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ze(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Z(t){this.data=t,this.depth=this.height=0,this.parent=null}Z.prototype=ne.prototype={constructor:Z,count:ke,each:ze,eachAfter:De,eachBefore:Ve,find:Pe,sum:Be,sort:Ee,path:Re,ancestors:He,descendants:Ie,leaves:Oe,links:Ge,copy:Xe,[Symbol.iterator]:qe};function Je(t){if(typeof t!="function")throw new Error;return t}function G(){return 0}function q(t){return function(){return t}}function Ke(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Qe(t,a,l,n,r){for(var i=t.children,h,d=-1,g=i.length,c=t.value&&(n-a)/t.value;++d<g;)h=i[d],h.y0=l,h.y1=r,h.x0=a,h.x1=a+=h.value*c}function et(t,a,l,n,r){for(var i=t.children,h,d=-1,g=i.length,c=t.value&&(r-l)/t.value;++d<g;)h=i[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*c}var tt=(1+Math.sqrt(5))/2;function at(t,a,l,n,r,i){for(var h=[],d=a.children,g,c,p=0,b=0,s=d.length,x,S,v=a.value,u,y,N,$,V,W,M;p<s;){x=r-l,S=i-n;do u=d[b++].value;while(!u&&b<s);for(y=N=u,W=Math.max(S/x,x/S)/(v*t),M=u*u*W,V=Math.max(N/M,M/y);b<s;++b){if(u+=c=d[b].value,c<y&&(y=c),c>N&&(N=c),M=u*u*W,$=Math.max(N/M,M/y),$>V){u-=c;break}V=$}h.push(g={value:u,dice:x<S,children:d.slice(p,b)}),g.dice?Qe(g,l,n,r,v?n+=S*u/v:i):et(g,l,n,v?l+=x*u/v:r,i),v-=u,p=b}return h}const nt=(function t(a){function l(n,r,i,h,d){at(a,n,r,i,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(tt);function lt(){var t=nt,a=!1,l=1,n=1,r=[0],i=G,h=G,d=G,g=G,c=G;function p(s){return s.x0=s.y0=0,s.x1=l,s.y1=n,s.eachBefore(b),r=[0],a&&s.eachBefore(Ke),s}function b(s){var x=r[s.depth],S=s.x0+x,v=s.y0+x,u=s.x1-x,y=s.y1-x;u<S&&(S=u=(S+u)/2),y<v&&(v=y=(v+y)/2),s.x0=S,s.y0=v,s.x1=u,s.y1=y,s.children&&(x=r[s.depth+1]=i(s)/2,S+=c(s)-x,v+=h(s)-x,u-=d(s)-x,y-=g(s)-x,u<S&&(S=u=(S+u)/2),y<v&&(v=y=(v+y)/2),t(s,S,v,u,y))}return p.round=function(s){return arguments.length?(a=!!s,p):a},p.size=function(s){return arguments.length?(l=+s[0],n=+s[1],p):[l,n]},p.tile=function(s){return arguments.length?(t=Je(s),p):t},p.padding=function(s){return arguments.length?p.paddingInner(s).paddingOuter(s):p.paddingInner()},p.paddingInner=function(s){return arguments.length?(i=typeof s=="function"?s:q(+s),p):i},p.paddingOuter=function(s){return arguments.length?p.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):p.paddingTop()},p.paddingTop=function(s){return arguments.length?(h=typeof s=="function"?s:q(+s),p):h},p.paddingRight=function(s){return arguments.length?(d=typeof s=="function"?s:q(+s),p):d},p.paddingBottom=function(s){return arguments.length?(g=typeof s=="function"?s:q(+s),p):g},p.paddingLeft=function(s){return arguments.length?(c=typeof s=="function"?s:q(+s),p):c},p}var R,oe=(R=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=xe,this.getAccTitle=be,this.setDiagramTitle=we,this.getDiagramTitle=Ce,this.getAccDescription=Te,this.setAccDescription=Le}getNodes(){return this.nodes}getConfig(){const a=$e,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(i=>{Ae(i)&&(n?.textStyles?n.textStyles.push(i):n.textStyles=[i]),n?.styles?n.styles.push(i):n.styles=[i]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Fe(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},w(R,"TreeMapDB"),R);function ce(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const r={name:n.name,children:n.type==="Leaf"?void 0:[]};for(r.classSelector=n?.classSelector,n?.cssCompiledStyles&&(r.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(r.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(r);else{const i=l[l.length-1].node;i.children?i.children.push(r):i.children=[r]}n.type!=="Leaf"&&l.push({node:r,level:n.level})}),a}w(ce,"buildHierarchy");var rt=w((t,a)=>{ge(t,a);const l=[];for(const i of t.TreemapRows??[])i.$type==="ClassDefStatement"&&a.addClass(i.className??"",i.styleText??"");for(const i of t.TreemapRows??[]){const h=i.item;if(!h)continue;const d=i.indent?parseInt(i.indent):0,g=st(h),c=h.classSelector?a.getStylesForClass(h.classSelector):[],p=c.length>0?c:void 0,b={level:d,name:g,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:p};l.push(b)}const n=ce(l),r=w((i,h)=>{for(const d of i)a.addNode(d,h),d.children&&d.children.length>0&&r(d.children,h+1)},"addNodesRecursively");r(n,0)},"populate"),st=w(t=>t.name?String(t.name):"","getItemName"),he={parser:{yy:void 0},parse:w(async t=>{try{const l=await Me("treemap",t);te.debug("Treemap AST:",l);const n=he.parser?.yy;if(!(n instanceof oe))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");rt(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,E=10,X=25,ot=w((t,a,l,n)=>{const r=n.db,i=r.getConfig(),h=i.padding??it,d=r.getDiagramTitle(),g=r.getRoot(),{themeVariables:c}=ae();if(!g)return;const p=d?30:0,b=Se(a),s=i.nodeWidth?i.nodeWidth*E:960,x=i.nodeHeight?i.nodeHeight*E:500,S=s,v=x+p;b.attr("viewBox",`0 0 ${S} ${v}`),ve(b,v,S,i.useMaxWidth);let u;try{const e=i.valueFormat||",";if(e==="$0,0")u=w(o=>"$"+O(",")(o),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const o=/\.\d+/.exec(e),f=o?o[0]:"";u=w(C=>"$"+O(","+f)(C),"valueFormat")}else if(e.startsWith("$")){const o=e.substring(1);u=w(f=>"$"+O(o||"")(f),"valueFormat")}else u=O(e)}catch(e){te.error("Error creating format function:",e),u=O(",")}const y=Q().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=Q().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),$=Q().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);d&&b.append("text").attr("x",S/2).attr("y",p/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const V=b.append("g").attr("transform",`translate(0, ${p})`).attr("class","treemapContainer"),W=ne(g).sum(e=>e.value??0).sort((e,o)=>(o.value??0)-(e.value??0)),le=lt().size([s,x]).paddingTop(e=>e.children&&e.children.length>0?X+E:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?E:0).paddingRight(e=>e.children&&e.children.length>0?E:0).paddingBottom(e=>e.children&&e.children.length>0?E:0).round(!0)(W),de=le.descendants().filter(e=>e.children&&e.children.length>0),H=V.selectAll(".treemapSection").data(de).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,o)=>`clip-section-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,o)=>`treemapSection section${o}`).attr("fill",e=>y(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const o=B({cssCompiledStyles:e.data.cssCompiledStyles});return o.nodeStyles+";"+o.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,o)=>`url(#clip-section-${a}-${o})`).attr("style",e=>{if(e.depth===0)return"display: none;";const o="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:e.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const o=U(this),f=e.data.name;o.text(f);const C=e.x1-e.x0,L=6;let T;i.showValues!==!1&&e.value?T=C-10-30-10-L:T=C-L-6;const m=Math.max(15,T),_=o.node();if(_.getComputedTextLength()>m){let z=f;for(;z.length>0;){if(z=f.substring(0,z.length-1),z.length===0){o.text("..."),_.getComputedTextLength()>m&&o.text("");break}if(o.text(z+"..."),_.getComputedTextLength()<=m)break}}}),i.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?u(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const o="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=B({cssCompiledStyles:e.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")});const re=le.leaves(),A=re.length>20,pe=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,se=A?8:10,K=A?1:2,Y=V.selectAll(".treemapLeafGroup").data(re).enter().append("g").attr("class",(e,o)=>`treemapNode treemapLeafGroup leaf${o}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?y(e.parent.data.name):y(e.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(e,o)=>`clip-${a}-${o}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const o=`text-anchor: middle; dominant-baseline: middle; font-size: ${pe}px;fill:`+$(e.data.name)+";",f=B({cssCompiledStyles:e.data.cssCompiledStyles});return o+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,o)=>`url(#clip-${a}-${o})`).text(e=>e.data.name).each(function(e){const o=U(this),f=e.x1-e.x0,C=e.y1-e.y0,L=o.node(),T=f-2*J,P=C-2*J;if(T<se||P<se){o.style("display","none");return}let m=parseInt(o.style("font-size"),10);const _=.6;for(;L.getComputedTextLength()>T&&m>D;)m--,o.style("font-size",`${m}px`);let F=Math.max(I,Math.min(j,Math.round(m*_))),k=m+K+F;for(;k>P&&m>D&&(m--,F=Math.max(I,Math.min(j,Math.round(m*_))),!(F<I&&m===D));)o.style("font-size",`${m}px`),k=m+K+F;o.style("font-size",`${m}px`),A?(m<D||P<D)&&o.style("display","none"):(L.getComputedTextLength()>T||m<D||P<m)&&o.style("display","none")}),i.showValues!==!1&&Y.append("text").attr("class","treemapValue").attr("x",o=>(o.x1-o.x0)/2).attr("y",function(o){return(o.y1-o.y0)/2}).attr("style",o=>{const f=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(o.data.name)+";",C=B({cssCompiledStyles:o.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(o,f)=>`url(#clip-${a}-${f})`).text(o=>o.value?u(o.value):"").each(function(o){const f=U(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=U(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const T=parseFloat(L.style("font-size")),m=Math.max(I,Math.min(j,Math.round(T*.6)));f.style("font-size",`${m}px`);const F=(o.y1-o.y0)/2+T/2+K;f.attr("y",F);const k=o.x1-o.x0,ie=o.y1-o.y0-4,me=k-2*J;f.node().getComputedTextLength()>me||F+m>ie||m<I?f.style("display","none"):f.style("display",null)});const ue=i.diagramPadding??8;Ne(b,ue,"flowchart",i?.useMaxWidth||!1)},"draw"),ct=w(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},pt=w(({treemap:t}={})=>{const a=ye(),l=ae(),n=ee(a,l.themeVariables),r=ee(dt,t),i=r.titleColor??n.titleColor,h=r.labelColor??n.textColor,d=r.valueColor??n.textColor;return`
2
- .treemapNode.section {
3
- stroke: ${r.sectionStrokeColor};
4
- stroke-width: ${r.sectionStrokeWidth};
5
- fill: ${r.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${r.leafStrokeColor};
9
- stroke-width: ${r.leafStrokeWidth};
10
- fill: ${r.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${h};
14
- font-size: ${r.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${d};
18
- font-size: ${r.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${i};
22
- font-size: ${r.titleFontSize};
23
- }
24
- `},"getStyles"),ut=pt,zt={parser:he,get db(){return new oe},renderer:ht,styles:ut};export{zt as diagram};
@@ -1,24 +0,0 @@
1
- import{p as B}from"./chunk-JWPE2WC7-D3RBRFlO.js";import{_ as m,D as u,G as C,d as S,l as w,b as D,a as T,p as E,q as P,g as z,s as A,A as F,E as W,r as _}from"./mermaid.core-NgKGXesa.js";import{p as N}from"./cynefin-OW5HDTMX-OjLqg3vs.js";import"./index-BEELfYGZ.js";import"./FilePreviewLoading-CCHsarTJ.js";import"./use-form-common-props-mcyC3w-u.js";import"./el-scrollbar-K7eVpxQ7.js";import"./el-input-B2Nof_cr.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./BusyIndicator-D3z5mSYz.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./_baseIteratee-CpPVpKOG.js";import"./union-s1ErPvjZ.js";import"./_baseFindIndex-D7XfJLKM.js";var L=W.packet,b,v=(b=class{constructor(){this.packet=[],this.setAccTitle=D,this.getAccTitle=T,this.setDiagramTitle=E,this.getDiagramTitle=P,this.getAccDescription=z,this.setAccDescription=A}getConfig(){const t=u({...L,...F().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){_(),this.packet=[]}},m(b,"PacketDB"),b),M=1e4,Y=m((e,t)=>{B(e,t);let r=-1,o=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:s,bits:d,label:c}of e.blocks){if(a!==void 0&&s!==void 0&&s<a)throw new Error(`Packet block ${a} - ${s} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${s??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(s??=a+(d??1)-1,d??=s-a+1,r=s,w.debug(`Packet block ${a} - ${r} with label ${c}`);o.length<=l+1&&t.getPacket().length<M;){const[p,i]=G({start:a,end:s,bits:d,label:c},n,l);if(o.push(p),p.end+1===n*l&&(t.pushWord(o),o=[],n++),!i)break;({start:a,end:s,bits:d,label:c}=i)}}t.pushWord(o)},"populate"),G=m((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const o=t*r-1,n=t*r;return[{start:e.start,end:o,label:e.label,bits:o-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:m(async e=>{const t=await N("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,r)},"parse")},I=m((e,t,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:s,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),i=n.getDiagramTitle(),h=a+s,g=h*(p.length+1)-(i?0:a),k=d*c+2,f=C(t);f.attr("viewBox",`0 0 ${k} ${g}`),S(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(i).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=m((e,t,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:s,showBits:d})=>{const c=e.append("g"),p=r*(o+l)+l;for(const i of t){const h=i.start%s*a+1,g=(i.end-i.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(i.label),!d)continue;const k=i.end===i.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(i.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(i.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=m(({packet:e}={})=>{const t=u(q,e);return`
2
- .packetByte {
3
- font-size: ${t.byteFontSize};
4
- }
5
- .packetByte.start {
6
- fill: ${t.startByteColor};
7
- }
8
- .packetByte.end {
9
- fill: ${t.endByteColor};
10
- }
11
- .packetLabel {
12
- fill: ${t.labelColor};
13
- font-size: ${t.labelFontSize};
14
- }
15
- .packetTitle {
16
- fill: ${t.titleColor};
17
- font-size: ${t.titleFontSize};
18
- }
19
- .packetBlock {
20
- stroke: ${t.blockStrokeColor};
21
- stroke-width: ${t.blockStrokeWidth};
22
- fill: ${t.blockFillColor};
23
- }
24
- `},"styles"),st={parser:x,get db(){return new v},renderer:j,styles:H};export{st as diagram};
@@ -1 +0,0 @@
1
- import{g as m,r as p,d as n}from"./chunk-SVP7TREG-Dea2xbeN.js";import{p as l}from"./chunk-JWPE2WC7-D3RBRFlO.js";import{_ as t,l as s}from"./mermaid.core-NgKGXesa.js";import{M as u,a as f}from"./cynefin-OW5HDTMX-OjLqg3vs.js";import"./index-BEELfYGZ.js";import"./FilePreviewLoading-CCHsarTJ.js";import"./use-form-common-props-mcyC3w-u.js";import"./el-scrollbar-K7eVpxQ7.js";import"./el-input-B2Nof_cr.js";import"./mobile-dialog-return-service-lRpqLQ4m.js";import"./BusyIndicator-D3z5mSYz.js";import"./isArrayLikeObject-DdIC_9HC.js";import"./_baseIteratee-CpPVpKOG.js";import"./union-s1ErPvjZ.js";import"./_baseFindIndex-D7XfJLKM.js";var c=f().RailroadEbnf.parser.LangiumParser,o=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return o(e.element);case"EbnfOptional":return{type:"optional",element:o(e.element)};case"EbnfRepetition":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=t(e=>{l(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),s.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;s.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),s.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},D={parser:g,db:n,renderer:p,styles:m};export{D as diagram};
@@ -1 +0,0 @@
1
- .el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:14px;--el-alert-title-with-description-font-size:16px;--el-alert-description-font-size:14px;--el-alert-close-font-size:16px;--el-alert-close-customed-font-size:14px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;width:100%;padding:var(--el-alert-padding);box-sizing:border-box;border-radius:var(--el-alert-border-radius-base);background-color:var(--el-color-white);opacity:1;transition:opacity var(--el-transition-duration-fast);align-items:center;margin:0;display:flex;position:relative;overflow:hidden}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--primary{--el-alert-bg-color:var(--el-color-primary-light-9)}.el-alert--primary.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-primary)}.el-alert--primary.is-light .el-alert__description{color:var(--el-color-primary)}.el-alert--primary.is-dark{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-success)}.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-info)}.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-warning)}.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-error)}.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{flex-direction:column;gap:4px;display:flex}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);width:var(--el-alert-icon-size);margin-right:8px}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);width:var(--el-alert-icon-large-size);margin-right:12px}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:24px}.el-alert__title.with-description{font-size:var(--el-alert-title-with-description-font-size)}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:0}.el-alert .el-alert__close-btn{font-size:var(--el-alert-close-font-size);opacity:1;cursor:pointer;position:absolute;top:12px;right:16px}.el-alert .el-alert__close-btn.is-customed{font-style:normal;font-size:var(--el-alert-close-customed-font-size);line-height:24px;top:8px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}
@@ -1 +0,0 @@
1
- import{am as N,aU as V,aV as S,m as $,aW as D,ap as I,o as l,J as n,K as u,V as x,X as C,a6 as o,L as e,ar as h,p as f,a2 as A,N as i,n as c,Z as g,Y as d,H as M,q as P,aX as X,aY as Y,at as q,f as z,k as b,au as F}from"./index-BEELfYGZ.js";import{f as H,i as J}from"./vnode-CG_nLPou.js";const K=["light","dark"],L=N({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:V(S),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:K,default:"light"}}),O={close:t=>t instanceof MouseEvent};var U=$({name:"ElAlert",__name:"alert",props:L,emits:O,setup(t,{emit:E}){const{Close:w}=X,m=t,B=E,T=D(),s=I("alert"),v=z(!0),p=b(()=>S[m.type]),r=b(()=>{if(m.description)return!0;const a=T.default?.();return a?H(a).some(k=>!J(k)):!1}),y=a=>{v.value=!1,B("close",a)};return(a,k)=>(l(),n(q,{name:e(s).b("fade"),persisted:""},{default:u(()=>[x(C("div",{class:o([e(s).b(),e(s).m(t.type),e(s).is("center",t.center),e(s).is(t.effect)]),role:"alert"},[t.showIcon&&(a.$slots.icon||p.value)?(l(),n(e(h),{key:0,class:o([e(s).e("icon"),e(s).is("big",r.value)])},{default:u(()=>[f(a.$slots,"icon",{},()=>[(l(),n(A(p.value)))])]),_:3},8,["class"])):i("v-if",!0),C("div",{class:o(e(s).e("content"))},[t.title||a.$slots.title?(l(),c("span",{key:0,class:o([e(s).e("title"),{"with-description":r.value}])},[f(a.$slots,"title",{},()=>[g(d(t.title),1)])],2)):i("v-if",!0),r.value?(l(),c("p",{key:1,class:o(e(s).e("description"))},[f(a.$slots,"default",{},()=>[g(d(t.description),1)])],2)):i("v-if",!0),t.closable?(l(),c(M,{key:2},[t.closeText?(l(),c("div",{key:0,class:o([e(s).e("close-btn"),e(s).is("customed")]),onClick:y},d(t.closeText),3)):(l(),n(e(h),{key:1,class:o(e(s).e("close-btn")),onClick:y},{default:u(()=>[P(e(w))]),_:1},8,["class"]))],64)):i("v-if",!0)],2)],2),[[Y,v.value]])]),_:3},8,["name"]))}}),W=U;const G=F(W);export{G as E};
@@ -1,12 +0,0 @@
1
- import{bm as Rl,am as Le,aC as re,k as h,aD as ct,ct as Pl,d7 as Me,O as Mt,d8 as Dl,m as Oe,ap as Ne,w as pe,ac as Al,bh as Ie,$ as ze,f as R,l as ut,L as t,a2 as dt,H as xe,ay as ft,a8 as Vl,az as De,cU as Fl,T as Ot,bd as Xe,aK as Bl,cW as Hl,F as ql,ab as ye,d9 as Wl,aH as Kl,Q as Rt,q as oe,B as ht,D as Bt,o as S,n as H,N as le,J as se,K as q,X as ke,cE as vt,a6 as M,ar as Ce,aE as pt,cx as Gl,ao as al,b9 as Ul,as as gt,Z as Ze,Y as be,p as ve,a3 as We,da as Ae,d3 as mt,v as Ht,aQ as jl,c8 as Zl,cb as Ve,db as Yl,aW as sl,cA as Xl,dc as qt,dd as Wt,aR as yt,aT as ie,de as nl,ca as Jl,au as ol,ax as Ql,cX as _l,cY as nt,cZ as ea,cD as ta,aA as la,aJ as aa,df as sa,d0 as na,ce as oa,V as Re,aY as Ye,aP as ia,aL as ra,d6 as Kt,a4 as ca,dg as ua,aG as Gt,dh as da,d5 as fa}from"./index-BEELfYGZ.js";import{C as Qe,U as _e,c as ha,r as va,u as pa,e as ga,E as ma,f as ya}from"./el-input-B2Nof_cr.js";import{a as ba,u as Sa}from"./use-form-common-props-mcyC3w-u.js";import{B as ka,i as Ut,E as bt,a as St,b as xa}from"./el-scrollbar-K7eVpxQ7.js";import{C as Ca}from"./el-select-DBNt1msu.js";import{t as jt,E as ot}from"./index-DOLrLWUV.js";import{u as Na}from"./use-wheel-BmcW1XgC.js";import{E as wa}from"./el-checkbox-CGRzOjDl.js";import{E as Ea}from"./el-radio-npWoUqDX.js";import{c as il}from"./el-form-item-CoJM2Hlw.js";var Ta=1/0;function za(e){var l=e==null?0:e.length;return l?Rl(e,Ta):[]}const rl=Le({modelValue:{type:re([Number,String,Array,Object])},options:{type:re(Array),default:()=>[]},props:{type:re(Object),default:()=>({})},virtualScroll:Boolean,itemSize:{type:Number,default:34},height:{type:Number,default:204}}),$a={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:ct,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},Ia=Le({...rl,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),Zt=e=>!0,La={[_e]:Zt,[Qe]:Zt,close:()=>!0,"expand-change":e=>e},Ma=e=>h(()=>({...$a,...e.props})),Yt="itemRendered",Xt="scroll",it="end-reached",cl="forward",Oa="backward",kt="auto",Ra="start",Jt="center",Pa="horizontal",ul="vertical",xt="negative",dl="positive-ascending",fl="positive-descending",Da={[Pa]:"left",[ul]:"top"},Ct=Me({type:re([Number,Function]),required:!0}),Nt=Me({type:Number}),wt=Me({type:Number,default:2}),Aa=Me({type:String,values:["ltr","rtl"],default:"ltr"}),Et=Me({type:Number,default:0}),Je=Me({type:Number,required:!0}),hl=Me({type:String,values:["horizontal","vertical"],default:ul}),vl=Le({className:{type:re([String,Array,Object,Boolean]),default:""},containerElement:{type:re([String,Object]),default:"div"},data:{type:re(Array),default:()=>Pl([])},direction:Aa,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:re(Object),default:()=>({})},style:{type:re([Object,String,Array,Boolean]),default:void 0},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},innerWidth:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),Va=Le({cache:wt,estimatedItemSize:Nt,layout:hl,initScrollOffset:Et,total:Je,itemSize:Ct,...vl}),Tt={type:Number,default:6},pl={type:Number,default:0},gl={type:Number,default:2},ws=Le({columnCache:wt,columnWidth:Ct,estimatedColumnWidth:Nt,estimatedRowHeight:Nt,initScrollLeft:Et,initScrollTop:Et,itemKey:{type:re(Function),default:({columnIndex:e,rowIndex:l})=>`${l}:${e}`},rowCache:wt,rowHeight:Ct,totalColumn:Je,totalRow:Je,hScrollbarSize:Tt,vScrollbarSize:Tt,scrollbarStartGap:pl,scrollbarEndGap:gl,role:String,...vl}),Fa=Le({alwaysOn:Boolean,class:{type:re([String,Array,Object,Boolean]),default:""},layout:hl,total:Je,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Tt,startGap:pl,endGap:gl,visible:Boolean}),Ba=(e,l)=>e<l?cl:Oa,zt=e=>e==="ltr"||e==="rtl"||e==="horizontal";let Pe=null;function Qt(e=!1){if(Pe===null||e){const l=document.createElement("div"),s=l.style;s.width="50px",s.height="50px",s.overflow="scroll",s.direction="rtl";const c=document.createElement("div"),a=c.style;return a.width="100px",a.height="100px",l.appendChild(c),document.body.appendChild(l),l.scrollLeft>0?Pe=fl:(l.scrollLeft=1,l.scrollLeft===0?Pe=xt:Pe=dl),document.body.removeChild(l),Pe}return Pe}function Ha({move:e,size:l,bar:s},c){const a={},d=`translate${s.axis}(${e}px)`;return a[s.size]=l,a.transform=d,c==="horizontal"?a.height="100%":a.width="100%",a}var _t=Number.isNaN||function(l){return typeof l=="number"&&l!==l};function qa(e,l){return!!(e===l||_t(e)&&_t(l))}function Wa(e,l){if(e.length!==l.length)return!1;for(var s=0;s<e.length;s++)if(!qa(e[s],l[s]))return!1;return!0}function Ka(e,l){l===void 0&&(l=Wa);var s=null;function c(){for(var a=[],d=0;d<arguments.length;d++)a[d]=arguments[d];if(s&&s.lastThis===this&&l(a,s.lastArgs))return s.lastResult;var y=e.apply(this,a);return s={lastResult:y,lastArgs:a,lastThis:this},y}return c.clear=function(){s=null},c}const Ga=()=>{const e=Mt().proxy.$props;return h(()=>{const l=(s,c,a)=>({});return e.perfMode?Dl(l):Ka(l)})},Ua=Oe({name:"ElVirtualScrollBar",props:Fa,emits:["scroll","start-move","stop-move"],setup(e,{emit:l}){const s=h(()=>e.startGap+e.endGap),c=Ne("virtual-scrollbar"),a=Ne("scrollbar"),d=R(),y=R();let g=null,k=null;const v=ut({isDragging:!1,traveled:0}),o=h(()=>ka[e.layout]),C=h(()=>e.clientSize-t(s)),I=h(()=>({position:"absolute",width:`${e.layout==="horizontal"?C.value:e.scrollbarSize}px`,height:`${e.layout==="horizontal"?e.scrollbarSize:C.value}px`,[Da[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),W=h(()=>{const m=e.ratio;if(m>=100)return Number.POSITIVE_INFINITY;if(m>=50)return m*C.value/100;const f=C.value/3;return Math.floor(Math.min(Math.max(m*C.value/100,20),f))}),P=h(()=>{if(!Number.isFinite(W.value))return{display:"none"};const m=`${W.value}px`;return Ha({bar:o.value,size:m,move:v.traveled},e.layout)}),z=h(()=>Math.ceil(e.clientSize-W.value-t(s))),Q=()=>{window.addEventListener("mousemove",$),window.addEventListener("mouseup",G);const m=t(y);m&&(k=document.onselectstart,document.onselectstart=()=>!1,m.addEventListener("touchmove",$,{passive:!0}),m.addEventListener("touchend",G))},K=()=>{window.removeEventListener("mousemove",$),window.removeEventListener("mouseup",G),document.onselectstart=k,k=null;const m=t(y);m&&(m.removeEventListener("touchmove",$),m.removeEventListener("touchend",G))},j=m=>{m.stopImmediatePropagation(),!(m.ctrlKey||[1,2].includes(m.button))&&(v.isDragging=!0,v[o.value.axis]=m.currentTarget[o.value.offset]-(m[o.value.client]-m.currentTarget.getBoundingClientRect()[o.value.direction]),l("start-move"),Q())},G=()=>{v.isDragging=!1,v[o.value.axis]=0,l("stop-move"),K()},$=m=>{const{isDragging:f}=v;if(!f||!y.value||!d.value)return;const N=v[o.value.axis];if(!N)return;ha(g);const x=(d.value.getBoundingClientRect()[o.value.direction]-m[o.value.client])*-1-(y.value[o.value.offset]-N);g=va(()=>{v.traveled=Math.max(0,Math.min(x,z.value)),l("scroll",x,z.value)})},F=m=>{const f=Math.abs(m.target.getBoundingClientRect()[o.value.direction]-m[o.value.client])-y.value[o.value.offset]/2;v.traveled=Math.max(0,Math.min(f,z.value)),l("scroll",f,z.value)};return pe(()=>e.scrollFrom,m=>{v.isDragging||(v.traveled=Math.ceil(m*z.value))}),Al(()=>{K()}),()=>Ie("div",{role:"presentation",ref:d,class:[c.b(),e.class,(e.alwaysOn||v.isDragging)&&"always-on"],style:I.value,onMousedown:ze(F,["stop","prevent"]),onTouchstartPrevent:j},Ie("div",{ref:y,class:a.e("thumb"),style:P.value,onMousedown:j},[]))}}),ja=({name:e,getOffset:l,getItemSize:s,getItemOffset:c,getEstimatedTotalSize:a,getStartIndexForOffset:d,getStopIndexForStartIndex:y,initCache:g,clearCache:k,validateProps:v})=>Oe({name:e??"ElVirtualList",props:Va,emits:[Yt,Xt,it],setup(o,{emit:C,expose:I}){v(o);const W=Mt(),P=Ne("vl"),z=R(g(o,W)),Q=Ga(),K=R(),j=R(),G=R(),$=R({isScrolling:!1,scrollDir:cl,scrollOffset:De(o.initScrollOffset)?o.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1}),F=h(()=>{const{total:p,cache:O}=o,{isScrolling:T,scrollDir:U,scrollOffset:B}=t($);if(p===0)return[0,0,0,0];const te=d(o,B,t(z)),me=y(o,te,B,t(z)),Ee=!T||U==="backward"?Math.max(1,O):1,Te=!T||U==="forward"?Math.max(1,O):1;return[Math.max(0,te-Ee),Math.max(0,Math.min(p-1,me+Te)),te,me]}),m=h(()=>a(o,t(z))),f=h(()=>zt(o.layout)),N=h(()=>[{position:"relative",[`overflow-${f.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:o.direction,height:De(o.height)?`${o.height}px`:o.height,width:De(o.width)?`${o.width}px`:o.width},o.style]),x=h(()=>{const p=t(m),O=t(f),T=o.innerWidth;return{height:O?"100%":`${p}px`,pointerEvents:t($).isScrolling?"none":void 0,width:O?`${p}px`:T!==void 0?De(T)?`${T}px`:T:"100%",margin:0,boxSizing:"border-box"}}),w=h(()=>f.value?o.width:o.height),_=h(()=>Math.max(0,m.value-w.value)),ee=p=>Wl(p,0,_.value),ce=1,ae=p=>({start:!Ut(p,0,ce),end:!Ut(_.value,p,ce)}),V=h(()=>ee($.value.scrollOffset)),Z=h(()=>ae(V.value));let ue=Z.value;const{onWheel:ge}=Na({atStartEdge:h(()=>Z.value.start),atEndEdge:h(()=>Z.value.end),layout:h(()=>o.layout)},p=>{G.value.onMouseUp?.(),X(Math.min($.value.scrollOffset+p,_.value))});Fl(K,"wheel",ge,{passive:!1});const we=()=>{const{total:p}=o;if(p>0){const[B,te,me,Ee]=t(F);C(Yt,B,te,me,Ee)}const{scrollDir:O,scrollOffset:T,updateRequested:U}=t($);C(Xt,O,T,U)},u=(p,O)=>{const T=ae(O),U=o.direction==="rtl"?"left":"right",B=o.direction==="rtl"?"right":"left";p==="forward"&&T.end&&!ue.end&&C(it,f.value?U:"bottom"),p==="backward"&&T.start&&!ue.start&&C(it,f.value?B:"top"),ue=T},b=(p,{isScrolling:O,updateRequested:T})=>{const U=t($),B=Math.max(p,0);if(B===U.scrollOffset)return;const te=Ba(U.scrollOffset,B);$.value={...U,isScrolling:O,scrollDir:te,scrollOffset:B,updateRequested:T},u(te,ee(B)),ye(Se)},E=p=>{const{clientHeight:O,scrollHeight:T,scrollTop:U}=p.currentTarget;t($).scrollOffset!==U&&b(Math.min(U,T-O),{isScrolling:!0,updateRequested:!1})},L=p=>{const{clientWidth:O,scrollLeft:T,scrollWidth:U}=p.currentTarget;if(t($).scrollOffset===T)return;const{direction:B}=o;let te=T;if(B==="rtl")switch(Qt()){case xt:te=-T;break;case fl:te=U-O-T;break}b(Math.min(te,U-O),{isScrolling:!0,updateRequested:!1})},D=p=>{t(f)?L(p):E(p),we()},Y=(p,O)=>{const T=_.value/O*p;X(Math.min(_.value,T))},X=p=>{b(p,{isScrolling:t($).isScrolling,updateRequested:!0})},A=(p,O=kt)=>{const{scrollOffset:T}=t($);p=Math.max(0,Math.min(p,o.total-1)),X(l(o,p,O,T,t(z)))},de=p=>{const{direction:O,itemSize:T,layout:U}=o,B=Q.value(k&&T,k&&U,k&&O);let te;if(ql(B,String(p)))te=B[p];else{const me=c(o,p,t(z)),Ee=s(o,p,t(z)),Te=t(f),Fe=O==="rtl",Ke=Te?me:0;B[p]=te={position:"absolute",left:Fe?void 0:`${Ke}px`,right:Fe?`${Ke}px`:void 0,top:Te?0:`${me}px`,height:Te?"100%":`${Ee}px`,width:Te?`${Ee}px`:"100%"}}return te},Se=()=>{$.value.isScrolling=!1,ye(()=>{Q.value(-1,null,null)})},$e=()=>{const p=K.value;p&&(p.scrollTop=0)};Ot(()=>{if(!Xe)return;const{initScrollOffset:p}=o,O=t(K);De(p)&&O&&(t(f)?O.scrollLeft=p:O.scrollTop=p),we()}),Bl(()=>{const{direction:p,layout:O}=o,{scrollOffset:T,updateRequested:U}=t($),B=t(K);if(U&&B)if(O==="horizontal")if(p==="rtl")switch(Qt()){case xt:B.scrollLeft=-T;break;case dl:B.scrollLeft=T;break;default:{const{clientWidth:te,scrollWidth:me}=B;B.scrollLeft=me-te-T;break}}else B.scrollLeft=T;else B.scrollTop=T}),Hl(()=>{t(K).scrollTop=t($).scrollOffset}),pe(_,()=>{ue=Z.value});const tt={ns:P,clientSize:w,estimatedTotalSize:m,windowStyle:N,windowRef:K,innerRef:j,innerStyle:x,itemsToRender:F,scrollbarRef:G,states:$,getItemStyle:de,onScroll:D,onScrollbarScroll:Y,onWheel:ge,scrollTo:X,scrollToItem:A,resetScrollTop:$e};return I({windowRef:K,innerRef:j,getItemStyleCache:Q,scrollTo:X,scrollToItem:A,resetScrollTop:$e,states:$}),tt},render(o){const{$slots:C,className:I,clientSize:W,containerElement:P,data:z,getItemStyle:Q,innerElement:K,itemsToRender:j,innerStyle:G,layout:$,scrollbarAlwaysOn:F,total:m,onScroll:f,onScrollbarScroll:N,states:x,useIsScrolling:w,windowStyle:_,ns:ee}=o,[ce,ae]=j,V=dt(P),Z=dt(K),ue=[];if(m>0)for(let b=ce;b<=ae;b++)ue.push(Ie(xe,{key:b},C.default?.({data:z,index:b,isScrolling:w?x.isScrolling:void 0,style:Q(b)})));const ge=[Ie(Z,Vl(o.innerProps,{style:G,ref:"innerRef"}),ft(Z)?ue:{default:()=>ue})],we=Ie(Ua,{ref:"scrollbarRef",clientSize:W,layout:$,onScroll:N,ratio:W*100/this.estimatedTotalSize,scrollFrom:x.scrollOffset/(this.estimatedTotalSize-W),total:m,alwaysOn:F}),u=Ie(V,{class:[ee.e("window"),I],style:_,onScroll:f,ref:"windowRef",key:0},ft(V)?[ge]:{default:()=>[ge]});return Ie("div",{key:0,class:[ee.e("wrapper"),F?"always-on":""]},[u,we])}}),ml=ja({name:"ElFixedSizeList",getItemOffset:({itemSize:e},l)=>l*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:l})=>l*e,getOffset:({height:e,total:l,itemSize:s,layout:c,width:a},d,y,g)=>{const k=zt(c)?a:e;ft(k)&&Kl("[ElVirtualList]",`
2
- You should set
3
- width/height
4
- to number when your layout is
5
- horizontal/vertical
6
- `);const v=Math.max(0,l*s-k),o=Math.min(v,d*s),C=Math.max(0,(d+1)*s-k);switch(y==="smart"&&(g>=C-k&&g<=o+k?y=kt:y=Jt),y){case Ra:return o;case"end":return C;case Jt:{const I=Math.round(C+(o-C)/2);return I<Math.ceil(k/2)?0:I>v+Math.floor(k/2)?v:I}case kt:default:return g>=C&&g<=o?g:g<C?C:o}},getStartIndexForOffset:({total:e,itemSize:l},s)=>Math.max(0,Math.min(e-1,Math.floor(s/l))),getStopIndexForStartIndex:({height:e,total:l,itemSize:s,layout:c,width:a},d,y)=>{const g=d*s,k=zt(c)?a:e,v=Math.ceil((k+y-g)/s);return Math.max(0,Math.min(l-1,d+v-1))},initCache(){},clearCache:!0,validateProps(){}}),et=Symbol();function Za(e){return!!(ht(e)?e.every(({type:l})=>l===Bt):e?.type===Bt)}var Ya=Oe({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const l=Ne("cascader-node"),{renderLabelFn:s}=Rt(et),{node:c}=e,{data:a,label:d}=c,y=()=>{const g=s?.({node:c,data:a});return Za(g)?d:g??d};return()=>oe("span",{class:l.e("label")},[y()])}});const Xa=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var Ja=Oe({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:{type:String,required:!1}},emits:["expand"],setup(e,{emit:l}){const s=e,c=l,a=Rt(et),d=Ne("cascader-node"),y=h(()=>a.isHoverMenu),g=h(()=>a.config.multiple),k=h(()=>a.config.checkStrictly),v=h(()=>a.config.showPrefix),o=h(()=>a.checkedNodes[0]?.uid),C=h(()=>s.node.isDisabled),I=h(()=>s.node.isLeaf),W=h(()=>k.value&&!I.value||!C.value),P=h(()=>Q(a.expandingNode)),z=h(()=>k.value&&a.checkedNodes.some(Q)),Q=x=>{const{level:w,uid:_}=s.node;return x?.pathNodes[w-1]?.uid===_},K=()=>{P.value||a.expandNode(s.node)},j=x=>{const{node:w}=s;x!==w.checked&&a.handleCheckChange(w,x)},G=()=>{a.lazyLoad(s.node,()=>{I.value||K()})},$=x=>{y.value&&(F(),!I.value&&c("expand",x))},F=()=>{const{node:x}=s;!W.value||x.loading||(x.loaded?K():G())},m=()=>{I.value&&!C.value&&!k.value&&!g.value?N(!0):(a.config.checkOnClickNode&&(g.value||k.value)||I.value&&a.config.checkOnClickLeaf)&&!C.value?f(!s.node.checked):y.value||F()},f=x=>{k.value?(j(x),s.node.loaded&&K()):N(x)},N=x=>{s.node.loaded?(j(x),!k.value&&K()):G()};return(x,w)=>(S(),H("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!I.value,"aria-owns":I.value?void 0:e.menuId,"aria-expanded":P.value,tabindex:W.value?-1:void 0,class:M([t(d).b(),t(d).is("selectable",k.value),t(d).is("active",e.node.checked),t(d).is("disabled",!W.value),P.value&&"in-active-path",z.value&&"in-checked-path"]),onMouseenter:$,onFocus:$,onClick:m},[le(" prefix "),g.value&&v.value?(S(),se(t(wa),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:C.value,onClick:w[0]||(w[0]=ze(()=>{},["stop"])),"onUpdate:modelValue":f},null,8,["model-value","indeterminate","disabled"])):k.value&&v.value?(S(),se(t(Ea),{key:1,"model-value":o.value,label:e.node.uid,disabled:C.value,"onUpdate:modelValue":f,onClick:w[1]||(w[1]=ze(()=>{},["stop"]))},{default:q(()=>[le(`
7
- Add an empty element to avoid render label,
8
- do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
9
- `),w[2]||(w[2]=ke("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):I.value&&e.node.checked?(S(),se(t(Ce),{key:2,class:M(t(d).e("prefix"))},{default:q(()=>[oe(t(vt))]),_:1},8,["class"])):le("v-if",!0),le(" content "),oe(t(Ya),{node:e.node},null,8,["node"]),le(" postfix "),I.value?le("v-if",!0):(S(),H(xe,{key:3},[e.node.loading?(S(),se(t(Ce),{key:0,class:M([t(d).is("loading"),t(d).e("postfix")])},{default:q(()=>[oe(t(pt))]),_:1},8,["class"])):(S(),se(t(Ce),{key:1,class:M(["arrow-right",t(d).e("postfix")])},{default:q(()=>[oe(t(Gl))]),_:1},8,["class"]))],64))],42,Xa))}}),el=Ja,Qa=Oe({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:l}){const s=e,c=Mt(),a=Ne("cascader-menu"),{t:d}=al(),y=Ul();let g,k;const v=Rt(et),o=R(),C=R(),I=h(()=>!s.nodes.length),W=h(()=>!v.initialLoaded),P=h(()=>`${y.value}-${s.index}`),z=()=>{let f;if(v.expandingNode){const{level:N,pathNodes:x}=v.expandingNode;s.index<N?f=x[s.index]?.uid:s.index===N&&v.checkedNodes.length>0&&(f=v.checkedNodes[0]?.pathNodes[s.index]?.uid)}else v.checkedNodes.length>0&&s.index<v.checkedNodes[0].pathNodes.length&&(f=v.checkedNodes[0].pathNodes[s.index]?.uid);return f!==void 0?s.nodes.findIndex(N=>N.uid===f):-1},Q=f=>f?s.nodes.findIndex(N=>`${P.value}-${N.uid}`===f):-1,K=f=>{const N=St(f,0,s.nodes.length-1);C.value?.scrollToItem(N)},j=f=>{if(!s.nodes.length)return;const N=St(f,0,s.nodes.length-1);K(N),ye(()=>{const x=c.vnode.el?.querySelector(`#${P.value}-${s.nodes[N].uid}`);x&&Ae(x)})},G=f=>{g=f.target},$=f=>{if(!(!v.isHoverMenu||!g||!o.value))if(g.contains(f.target)){F();const N=c.vnode.el,{left:x}=N.getBoundingClientRect(),{offsetWidth:w,offsetHeight:_}=N,ee=f.clientX-x,ce=g.offsetTop,ae=ce+g.offsetHeight,V=s.virtualScroll?C.value?.states?.scrollOffset||0:N.querySelector(`.${a.e("wrap")}`)?.scrollTop||0;o.value.innerHTML=`
10
- <path style="pointer-events: auto;" fill="transparent" d="M${ee} ${ce} L${w} ${V} V${ce} Z" />
11
- <path style="pointer-events: auto;" fill="transparent" d="M${ee} ${ae} L${w} ${_+V} V${ae} Z" />
12
- `}else k||(k=window.setTimeout(m,v.config.hoverThreshold))},F=()=>{k&&(clearTimeout(k),k=void 0)},m=()=>{o.value&&(o.value.innerHTML="",F())};return l({getActiveNodeIndex:z,getNodeIndexById:Q,scrollToItem:K,focusNodeAt:j,virtualListRef:C,get $el(){return c.vnode.el}}),(f,N)=>e.virtualScroll?(S(),H("div",{key:P.value,class:M(t(a).b()),onMousemove:$,onMouseleave:m},[oe(t(ml),{ref_key:"virtualListRef",ref:C,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":t(a).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:t(a).is("empty",I.value)}},{default:q(({data:x,index:w,style:_})=>[(S(),se(el,{key:x[w].uid,node:x[w],"menu-id":P.value,style:gt(_),onExpand:G},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),W.value?(S(),H("div",{key:0,class:M(t(a).e("empty-text"))},[oe(t(Ce),{size:14,class:M(t(a).is("loading"))},{default:q(()=>[oe(t(pt))]),_:1},8,["class"]),Ze(" "+be(t(d)("el.cascader.loading")),1)],2)):I.value?(S(),H("div",{key:1,class:M(t(a).e("empty-text"))},[ve(f.$slots,"empty",{},()=>[Ze(be(t(d)("el.cascader.noData")),1)])],2)):t(v)?.isHoverMenu?(S(),H(xe,{key:2},[le(" eslint-disable vue/html-self-closing "),(S(),H("svg",{ref_key:"hoverZone",ref:o,class:M(t(a).e("hover-zone"))},null,2))],2112)):le("v-if",!0),le(" eslint-enable vue/html-self-closing ")],34)):(S(),se(t(bt),{key:P.value,tag:"ul",role:"menu",class:M(t(a).b()),"wrap-class":t(a).e("wrap"),"view-class":[t(a).e("list"),t(a).is("empty",I.value)],onMousemove:$,onMouseleave:m},{default:q(()=>[(S(!0),H(xe,null,We(e.nodes,x=>(S(),se(el,{key:x.uid,node:x,"menu-id":P.value,onExpand:G},null,8,["node","menu-id"]))),128)),W.value?(S(),H("div",{key:0,class:M(t(a).e("empty-text"))},[oe(t(Ce),{size:14,class:M(t(a).is("loading"))},{default:q(()=>[oe(t(pt))]),_:1},8,["class"]),Ze(" "+be(t(d)("el.cascader.loading")),1)],2)):I.value?(S(),H("div",{key:1,class:M(t(a).e("empty-text"))},[ve(f.$slots,"empty",{},()=>[Ze(be(t(d)("el.cascader.noData")),1)])],2)):t(v)?.isHoverMenu?(S(),H(xe,{key:2},[le(" eslint-disable vue/html-self-closing "),(S(),H("svg",{ref_key:"hoverZone",ref:o,class:M(t(a).e("hover-zone"))},null,2))],2112)):le("v-if",!0),le(" eslint-enable vue/html-self-closing ")]),_:3},8,["class","wrap-class","view-class"]))}}),_a=Qa;let es=0;const ts=e=>{const l=[e];let{parent:s}=e;for(;s;)l.unshift(s),s=s.parent;return l};var $t=class It{constructor(l,s,c,a=!1){this.data=l,this.config=s,this.parent=c,this.root=a,this.uid=es++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:d,label:y,children:g}=s,k=l[g],v=ts(this);this.level=a?0:c?c.level+1:1,this.value=l[d],this.label=l[y],this.pathNodes=v,this.pathValues=v.map(o=>o.value),this.pathLabels=v.map(o=>o.label),this.childrenData=k,this.children=(k||[]).map(o=>new It(o,s,this)),this.loaded=!s.lazy||this.isLeaf||!mt(k),this.text=""}get isDisabled(){const{data:l,parent:s,config:c}=this,{disabled:a,checkStrictly:d}=c;return(Ht(a)?a(l,this):!!l[a])||!d&&!!s?.isDisabled}get isLeaf(){const{data:l,config:s,childrenData:c,loaded:a}=this,{lazy:d,leaf:y}=s,g=Ht(y)?y(l,this):l[y];return jl(g)?d&&!a?!1:!(ht(c)&&c.length):!!g}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(l){const{childrenData:s,children:c}=this,a=new It(l,this.config,this);return ht(s)?s.push(l):this.childrenData=[l],c.push(a),a}calcText(l,s){const c=l?this.pathLabels.join(s):this.label;return this.text=c,c}broadcast(l){this.children.forEach(s=>{s&&(s.broadcast(l),s.onParentCheck?.(l))})}emit(){const{parent:l}=this;l&&(l.onChildCheck?.(),l.emit())}onParentCheck(l){this.isDisabled||this.setCheckState(l)}onChildCheck(){const{children:l}=this,s=l.filter(a=>!a.isDisabled),c=s.length?s.every(a=>a.checked):!1;this.setCheckState(c)}setCheckState(l){const s=this.children.length,c=this.children.reduce((a,d)=>a+(d.checked?1:d.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&l,this.indeterminate=this.loaded&&c!==s&&c>0}doCheck(l){if(this.checked===l)return;const{checkStrictly:s,multiple:c}=this.config;s||!c?this.checked=l:(this.broadcast(l),this.setCheckState(l),this.emit())}};const Lt=(e,l)=>e.reduce((s,c)=>(c.isLeaf?s.push(c):(!l&&s.push(c),s=s.concat(Lt(c.children,l))),s),[]);var tl=class{constructor(e,l){this.config=l;const s=(e||[]).map(c=>new $t(c,this.config));this.nodes=s,this.allNodes=Lt(s,!1),this.leafNodes=Lt(s,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,l){const s=l?l.appendChild(e):new $t(e,this.config);l||this.nodes.push(s),this.appendAllNodesAndLeafNodes(s)}appendNodes(e,l){e.length>0?e.forEach(s=>this.appendNode(s,l)):l&&l.isLeaf&&this.leafNodes.push(l)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(l=>{this.appendAllNodesAndLeafNodes(l)})}getNodeByValue(e,l=!1){return Zl(e)?null:this.getFlattedNodes(l).find(s=>Ve(s.value,e)||Ve(s.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:l,level:s})=>Ve(e.value,l)&&e.level===s)||null}};const rt=e=>{if(!e)return 0;const l=e.id.split("-");return Number(l[l.length-2])},ls=e=>{if(!e)return;const l=e.querySelector("input");l?l.click():Yl(e)&&e.click()},as=(e,l)=>{const s=l.slice(0),c=s.map(d=>d.uid),a=e.reduce((d,y)=>{const g=c.indexOf(y.uid);return g>-1&&(d.push(y),s.splice(g,1),c.splice(g,1)),d},[]);return a.push(...s),a};var ss=Oe({name:"ElCascaderPanel",__name:"index",props:Ia,emits:La,setup(e,{expose:l,emit:s}){const c=e,a=s;let d=!1;const y=Ne("cascader"),g=Ma(c),k=sl();let v;const o=R(!0),C=R(!1),I=R([]),W=R(),P=R([]),z=R(),Q=R([]),K=h(()=>g.value.expandTrigger==="hover"),j=h(()=>c.renderLabel||k.default),G=h(()=>c.virtualScroll),$=h(()=>c.itemSize),F=h(()=>c.height),m=()=>{const{options:u}=c,b=g.value;d=!1,v=new tl(u,b),P.value=[v.getNodes()],b.lazy&&mt(c.options)?(o.value=!1,f(void 0,E=>{E&&(v=new tl(E,b),P.value=[v.getNodes()]),o.value=!0,V(!1,!0)})):V(!1,!0)},f=(u,b)=>{const E=g.value;u=u||new $t({},E,void 0,!0),u.loading=!0;const L=Y=>{const X=u,A=X.root?null:X;X.loading=!1,X.loaded=!0,X.childrenData=X.childrenData||[],Y&&v?.appendNodes(Y,A),Y&&b?.(Y),u.level===0&&(C.value=!0)},D=()=>{u.loading=!1,u.loaded=!1,u.level===0&&(o.value=!0)};E.lazyLoad(u,L,D)},N=(u,b)=>{const{level:E}=u,L=P.value.slice(0,E);let D;u.isLeaf?D=u.pathNodes[E-2]:(D=u,L.push(u.children)),z.value?.uid!==D?.uid&&(z.value=u,P.value=L,!b&&a("expand-change",u?.pathValues||[]))},x=(u,b,E=!0)=>{const{checkStrictly:L,multiple:D}=g.value,Y=Q.value[0];d=!0,!D&&Y?.doCheck(!1),u.doCheck(b),ae(),E&&!D&&!L&&a("close"),!E&&!D&&w(u)},w=u=>{u&&(u=u.parent,w(u),u&&N(u))},_=u=>v?.getFlattedNodes(u),ee=u=>_(u)?.filter(({checked:b})=>b!==!1),ce=()=>{Q.value.forEach(u=>u.doCheck(!1)),ae(),P.value=P.value.slice(0,1),z.value=void 0,a("expand-change",[])},ae=()=>{const{checkStrictly:u,multiple:b}=g.value,E=Q.value,L=as(E,ee(!u)),D=L.map(Y=>Y.valueByOption);Q.value=L,W.value=b?D:D[0]??null},V=(u=!1,b=!1)=>{const{modelValue:E}=c,{lazy:L,multiple:D,checkStrictly:Y}=g.value,X=!Y;if(!(!o.value||d||!b&&Ve(E,W.value)))if(L&&!u){const A=qt(za(Wt(E))).map(de=>v?.getNodeByValue(de)).filter(de=>!!de&&!de.loaded&&!de.loading);A.length?A.forEach(de=>{f(de,()=>V(!1,b))}):V(!0,b)}else Z(qt((D?Wt(E):[E]).map(A=>v?.getNodeByValue(A,X))),b),W.value=il(E??void 0)},Z=(u,b=!0)=>{const{checkStrictly:E}=g.value,L=Q.value,D=u.filter(A=>!!A&&(E||A.isLeaf)),Y=v?.getSameNode(z.value),X=b&&Y||D[0];X?X.pathNodes.forEach(A=>N(A,!0)):z.value=void 0,L.forEach(A=>A.doCheck(!1)),ut(D).forEach(A=>A.doCheck(!0)),Q.value=D,ye(ue)},ue=()=>{Xe&&I.value.forEach(u=>{const b=u?.$el;if(b)if(G.value){const E=u?.getActiveNodeIndex?.();E!==void 0&&E>=0&&u?.scrollToItem?.(E)}else{const E=b.querySelector(`.${y.namespace.value}-scrollbar__wrap`);let L=b.querySelector(`.${y.b("node")}.in-active-path`);if(!L){const D=b.querySelectorAll(`.${y.b("node")}.${y.is("active")}`);L=D[D.length-1]}xa(E,L)}})},ge=u=>{const b=u.target,E=yt(u);switch(E){case ie.up:case ie.down:{u.preventDefault();const L=E===ie.up?-1:1;if(G.value){const D=rt(b),Y=I.value[D];if(Y){const X=Y.getNodeIndexById(b.id);if(X>=0){const A=P.value[D]??[],de=A.length;let Se=X+L;for(;Se>=0&&Se<de;){if(!A[Se].isDisabled){Y.focusNodeAt(Se);return}Se+=L}}}}Ae(nl(b,L,`.${y.b("node")}[tabindex="-1"]`));break}case ie.left:{u.preventDefault();const L=I.value[rt(b)-1]?.$el.querySelector(`.${y.b("node")}[aria-expanded="true"]`);Ae(L);break}case ie.right:{u.preventDefault();const L=I.value[rt(b)+1]?.$el.querySelector(`.${y.b("node")}[tabindex="-1"]`);Ae(L);break}case ie.enter:case ie.numpadEnter:ls(b);break}};Jl(et,ut({config:g,expandingNode:z,checkedNodes:Q,isHoverMenu:K,initialLoaded:o,renderLabelFn:j,virtualScroll:G,itemSize:$,height:F,lazyLoad:f,expandNode:N,handleCheckChange:x})),pe(g,(u,b)=>{Ve(u,b)||m()},{immediate:!0}),pe(()=>c.options,m,{deep:!0}),pe(()=>c.modelValue,()=>{d=!1,V()},{deep:!0}),pe(()=>W.value,u=>{Ve(u,c.modelValue)||(a(_e,u),a(Qe,u))});const we=()=>{C.value||!o.value||m()};return Xl(()=>I.value=[]),Ot(()=>!mt(c.modelValue)&&V()),l({menuList:I,menus:P,checkedNodes:Q,handleKeyDown:ge,handleCheckChange:x,getFlattedNodes:_,getCheckedNodes:ee,clearCheckedNodes:ce,calculateCheckedValue:ae,scrollToExpandingNode:ue,loadLazyRootNodes:we}),(u,b)=>(S(),H("div",{class:M([t(y).b("panel"),t(y).is("bordered",e.border)]),onKeydown:ge},[(S(!0),H(xe,null,We(P.value,(E,L)=>(S(),se(_a,{key:L,ref_for:!0,ref:D=>I.value[L]=D,index:L,nodes:[...E],"virtual-scroll":G.value,"item-size":$.value,height:F.value},{empty:q(()=>[ve(u.$slots,"empty")]),_:3},8,["index","nodes","virtual-scroll","item-size","height"]))),128))],34))}}),ns=ss;const os=ol(ns),is=Le({...rl,size:aa,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:la,default:ta},filterable:Boolean,filterMethod:{type:re(Function),default:(e,l)=>e.text.includes(l)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:re(Function),default:()=>!0},placement:{type:re(String),values:ea,default:"bottom-start"},fallbackPlacements:{type:re(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:nt.popperClass,popperStyle:nt.popperStyle,teleported:nt.teleported,effect:{type:re(String),default:"light"},tagType:{...jt.type,default:"info"},tagEffect:{...jt.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},fitInputWidth:{type:[Boolean,Number],default:!1},..._l}),ll=e=>!0,rs={[_e]:ll,[Qe]:ll,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Ql(e),expandChange:e=>!!e,removeTag:e=>!!e},cs=["placeholder"],us=["onClick"],ds=["id","data-suggestion-index","onClick"],fs=34;var hs=Oe({name:"ElCascader",__name:"cascader",props:is,emits:rs,setup(e,{expose:l,emit:s}){const c={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:n})=>{const{modifiersData:r,placement:i}=n;["right","left","bottom","top"].includes(i)||r.arrow&&(r.arrow.x=35)},requires:["arrow"]}]},a=e,d=s,y=sa(),g=sl();let k=0,v=0;const o=Ne("cascader"),C=Ne("input"),I={small:7,default:11,large:15},{t:W}=al(),{formItem:P}=pa(),z=ba(),{valueOnClear:Q}=na(a),{isComposing:K,handleComposition:j}=ya({afterComposition(n){const r=n.target?.value;st(r)}}),G=R(),$=R(),F=R(),m=R(),f=R(),N=R(),x=R(),w=R(!1),_=R(!1),ee=R(!1),ce=R(""),ae=R(""),V=R([]),Z=R([]),ue=R("100%"),ge=h(()=>!!g["suggestion-item"]),we=h(()=>St(Z.value.length*a.itemSize,a.itemSize,a.height)),u=h(()=>a.props.multiple?a.collapseTags?V.value.slice(0,a.maxCollapseTags):V.value:[]),b=h(()=>a.props.multiple?a.collapseTags?V.value.slice(a.maxCollapseTags):[]:[]),E=h(()=>y.style),L=h(()=>a.placeholder??W("el.cascader.placeholder")),D=h(()=>ae.value||V.value.length>0||K.value?"":L.value),Y=Sa(),X=h(()=>Y.value==="small"?"small":"default"),A=h(()=>!!a.props.multiple),de=h(()=>!a.filterable||A.value),Se=h(()=>A.value?ae.value:ce.value),$e=h(()=>f.value?.checkedNodes||[]),{wrapperRef:tt,isFocused:p,handleBlur:O}=ga(F,{disabled:z,beforeBlur(n){return G.value?.isFocusInsideContent(n)||$.value?.isFocusInsideContent(n)},afterBlur(){a.validateEvent&&P?.validate?.("blur").catch(ct)}}),T=h(()=>!a.clearable||z.value||ee.value||!_.value&&!p.value?!1:!!$e.value.length),U=h(()=>{const{showAllLevels:n,separator:r}=a,i=$e.value;return i.length?A.value?"":i[0].calcText(n,r):""}),B=h(()=>P?.validateState||""),te=h({get(){return il(a.modelValue)},set(n){const r=n??Q.value;d(_e,r),d(Qe,r),a.validateEvent&&P?.validate("change").catch(ct)}}),me=h(()=>[o.b(),o.m(Y.value),o.is("disabled",z.value),y.class]),Ee=h(()=>[C.e("icon"),"icon-arrow-down",o.is("reverse",w.value)]),Te=h(()=>o.is("focus",p.value)),Fe=h(()=>G.value?.popperRef?.contentRef),Ke=n=>{p.value&&O(new FocusEvent("blur",n)),fe(!1)},fe=n=>{z.value||(n=n??!w.value,n!==w.value&&(w.value=n,F.value?.input?.setAttribute("aria-expanded",`${n}`),n?(Be(),f.value&&ye(f.value.scrollToExpandingNode)):a.filterable&&at(),d("visibleChange",n)))},Be=()=>{ye(()=>{G.value?.updatePopper()})},lt=()=>{ee.value=!1},yl=n=>{const{showAllLevels:r,separator:i}=a;return{node:n,key:n.uid,text:n.calcText(r,i),hitState:!1,closable:!z.value&&!n.isDisabled}},Ge=n=>{const r=n.node;r.doCheck(!1),f.value?.calculateCheckedValue(),d("removeTag",r.valueByOption)},bl=()=>{switch(a.showCheckedStrategy){case"child":return $e.value;case"parent":{const n=Dt(!1),r=n.map(i=>i.value);return n.filter(i=>!i.parent||!r.includes(i.parent.value))}default:return[]}},Sl=()=>{if(!A.value)return;const n=bl(),r=[];n.forEach(i=>r.push(yl(i))),V.value=r},Pt=()=>{const{filterMethod:n,showAllLevels:r,separator:i}=a,J=f.value?.getFlattedNodes(!a.props.checkStrictly)?.filter(ne=>ne.isDisabled?!1:(ne.calcText(r,i),n(ne,Se.value)));A.value&&V.value.forEach(ne=>{ne.hitState=!1}),ee.value=!0,Z.value=J,ye(()=>{a.virtualScroll&&Z.value.length>0&&x.value?.scrollToItem(0),Ue()}),Be()},He=n=>{const r=N.value;return n?r?.querySelector(n)??void 0:r},kl=()=>{let n;ee.value&&N.value?n=He(`.${o.e("suggestion-item")}`):n=f.value?.$el.querySelector(`.${o.b("node")}[tabindex="-1"]`),n&&(n.focus(),!ee.value&&n.getAttribute("aria-haspopup")==="true"&&n.click())},xl=n=>{const r=He();if(!r)return;const i=De(a.fitInputWidth)?`${a.fitInputWidth}px`:`${n}px`,J=he=>{a.fitInputWidth!==!1?(he.style.width=i,he.style.minWidth=""):(he.style.width="",he.style.minWidth=i)};if(J(r),a.virtualScroll){ue.value=a.fitInputWidth!==!1?i:ge.value?`${n}px`:`${Math.max(n,Nl())}px`;return}const ne=He(`.${o.e("suggestion-list")}`);ne&&J(ne)},Cl=()=>{if(!g.prefix)return 0;const n=F.value?.$el.querySelector(`.${C.e("prefix")}`);if(!n)return 0;const r=n.getBoundingClientRect().width;return r<=0?0:r+I[Y.value||"default"]},Ue=()=>{const n=F.value?.input,r=F.value?.$el;if(!Xe||!n||!r)return;N.value&&xl(r.getBoundingClientRect().width);const i=m.value;if(i){const J=V.value.length>0?`${Math.max(i.offsetHeight,k)-2}px`:`${k}px`;n.style.height=J,i.style.left=`${Cl()}px`,Be()}},Nl=()=>{if(ge.value||!Z.value.length)return 0;const n=document.createElement("canvas").getContext("2d");if(!n)return 0;const r=He(`.${o.e("suggestion-item")}`);if(!r||!Xe)return 0;const i=getComputedStyle(r),J=Number.parseFloat(i.paddingLeft)+Number.parseFloat(i.paddingRight);n.font=`bold ${i.fontSize} ${i.fontFamily}`;let ne=0,he=!1;for(const qe of Z.value){const je=qe.text||"",Ol=n.measureText(je);ne=Math.max(ne,Ol.width),qe.checked&&!he&&(he=!0)}return ne+J+(he?fs:0)},Dt=n=>f.value?.getCheckedNodes(n),wl=n=>{Be(),d("expandChange",n)},El=n=>{if(!K.value)switch(yt(n)){case ie.enter:case ie.numpadEnter:fe();break;case ie.down:fe(!0),ye(kl),n.preventDefault();break;case ie.esc:w.value===!0&&(n.preventDefault(),n.stopPropagation(),fe(!1));break;case ie.tab:fe(!1);break}},Tl=()=>{f.value?.clearCheckedNodes(),!w.value&&a.filterable&&at(),fe(!1),d("clear")},at=()=>{const{value:n}=U;ce.value=n,ae.value=n},At=n=>{const{checked:r}=n;A.value?f.value?.handleCheckChange(n,!r,!1):(!r&&f.value?.handleCheckChange(n,!0,!1),fe(!1))},zl=n=>{const r=n.closest("[data-suggestion-index]")?.dataset.suggestionIndex;if(!r)return-1;const i=Number.parseInt(r,10);return Number.isNaN(i)||i<0||i>=Z.value.length?-1:i},Vt=n=>{const r=n.target,i=yt(n);switch(i){case ie.up:case ie.down:{n.preventDefault();const J=i===ie.up?-1:1;if(a.virtualScroll&&x.value){const ne=zl(r);if(ne>=0){const he=Z.value.length,qe=(ne+J+he)%he;x.value.scrollToItem(qe),ye(()=>{const je=He(`#suggestion-${Z.value[qe].uid}`);je&&Ae(je)});return}}Ae(nl(r,J,`.${o.e("suggestion-item")}[tabindex="-1"]`));break}case ie.enter:case ie.numpadEnter:r.click();break}},$l=()=>{const n=V.value[V.value.length-1];v=ae.value?0:v+1,!(!n||!v||a.collapseTags&&V.value.length>1)&&(n.hitState?Ge(n):n.hitState=!0)},Il=fa(()=>{const{value:n}=Se;if(!n)return;const r=a.beforeFilter(n);Gt(r)?r.then(Pt).catch(()=>{}):r!==!1?Pt():lt()},h(()=>a.debounce)),st=(n,r)=>{if(!w.value&&fe(!0),!r?.isComposing)if(n)Il();else{const i=a.beforeFilter("");Gt(i)&&i.catch(()=>{}),lt()}},Ft=n=>Number.parseFloat(da(C.cssVarName("input-height"),n).value)-2,Ll=()=>{F.value?.focus()},Ml=()=>{F.value?.blur()};return pe(ee,Be),pe([$e,z,()=>a.collapseTags,()=>a.maxCollapseTags],Sl),pe(V,()=>{ye(()=>Ue())}),pe(Y,async()=>{await ye();const n=F.value.input;k=Ft(n)||k,Ue()}),pe(U,at,{immediate:!0}),pe(()=>w.value,n=>{n&&a.props.lazy&&a.props.lazyLoad&&f.value?.loadLazyRootNodes()}),Ot(()=>{const n=F.value.input,r=F.value.$el,i=Ft(n);k=n.offsetHeight||i,oa(r,Ue)}),l({getCheckedNodes:Dt,cascaderPanelRef:f,togglePopperVisible:fe,contentRef:Fe,presentText:U,focus:Ll,blur:Ml}),(n,r)=>(S(),se(t(Kt),{ref_key:"tooltipRef",ref:G,visible:w.value,teleported:e.teleported,"popper-class":[t(o).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":c,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${t(o).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:lt},{default:q(()=>[Re((S(),H("div",{ref_key:"wrapperRef",ref:tt,class:M(me.value),style:gt(E.value),onClick:r[8]||(r[8]=()=>fe(de.value?void 0:!0)),onKeydown:El,onMouseenter:r[9]||(r[9]=i=>_.value=!0),onMouseleave:r[10]||(r[10]=i=>_.value=!1)},[oe(t(ma),{ref_key:"inputRef",ref:F,modelValue:ce.value,"onUpdate:modelValue":r[1]||(r[1]=i=>ce.value=i),placeholder:D.value,readonly:de.value,disabled:t(z),"validate-event":!1,size:t(Y),class:M(Te.value),tabindex:A.value&&e.filterable&&!t(z)?-1:void 0,onCompositionstart:t(j),onCompositionupdate:t(j),onCompositionend:t(j),onInput:st},ia({suffix:q(()=>[T.value?(S(),se(t(Ce),{key:"clear",class:M([t(C).e("icon"),"icon-circle-close"]),onClick:ze(Tl,["stop"])},{default:q(()=>[(S(),se(dt(e.clearIcon)))]),_:1},8,["class"])):(S(),se(t(Ce),{key:"arrow-down",class:M(Ee.value),onClick:r[0]||(r[0]=ze(i=>fe(),["stop"]))},{default:q(()=>[oe(t(ra))]),_:1},8,["class"]))]),_:2},[n.$slots.prefix?{name:"prefix",fn:q(()=>[ve(n.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),A.value?(S(),H("div",{key:0,ref_key:"tagWrapper",ref:m,class:M([t(o).e("tags"),t(o).is("validate",!!B.value)])},[ve(n.$slots,"tag",{data:V.value,deleteTag:Ge},()=>[(S(!0),H(xe,null,We(u.value,i=>(S(),se(t(ot),{key:i.key,type:e.tagType,size:X.value,effect:e.tagEffect,hit:i.hitState,closable:i.closable,"disable-transitions":"",onClose:J=>Ge(i)},{default:q(()=>[ke("span",null,be(i.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&V.value.length>e.maxCollapseTags?(S(),se(t(Kt),{key:0,ref_key:"tagTooltipRef",ref:$,disabled:w.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:q(()=>[oe(t(ot),{closable:!1,size:X.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:q(()=>[ke("span",{class:M(t(o).e("tags-text"))}," + "+be(V.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:q(()=>[oe(t(bt),{"max-height":e.maxCollapseTagsTooltipHeight},{default:q(()=>[ke("div",{class:M(t(o).e("collapse-tags"))},[(S(!0),H(xe,null,We(b.value,(i,J)=>(S(),H("div",{key:J,class:M(t(o).e("collapse-tag"))},[(S(),se(t(ot),{key:i.key,class:"in-tooltip",type:e.tagType,size:X.value,effect:e.tagEffect,hit:i.hitState,closable:i.closable,"disable-transitions":"",onClose:ne=>Ge(i)},{default:q(()=>[ke("span",null,be(i.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):le("v-if",!0),e.filterable&&!t(z)?Re((S(),H("input",{key:1,"onUpdate:modelValue":r[2]||(r[2]=i=>ae.value=i),type:"text",class:M(t(o).e("search-input")),placeholder:U.value?"":L.value,onInput:r[3]||(r[3]=i=>st(ae.value,i)),onClick:r[4]||(r[4]=ze(i=>fe(!0),["stop"])),onKeydown:ca($l,["delete"]),onCompositionstart:r[5]||(r[5]=(...i)=>t(j)&&t(j)(...i)),onCompositionupdate:r[6]||(r[6]=(...i)=>t(j)&&t(j)(...i)),onCompositionend:r[7]||(r[7]=(...i)=>t(j)&&t(j)(...i))},null,42,cs)),[[ua,ae.value]]):le("v-if",!0)],2)):le("v-if",!0)],38)),[[t(Ca),Ke,Fe.value]])]),content:q(()=>[n.$slots.header?(S(),H("div",{key:0,class:M(t(o).e("header")),onClick:r[11]||(r[11]=ze(()=>{},["stop"]))},[ve(n.$slots,"header")],2)):le("v-if",!0),Re(oe(t(os),{ref_key:"cascaderPanelRef",ref:f,modelValue:te.value,"onUpdate:modelValue":r[12]||(r[12]=i=>te.value=i),options:e.options,props:a.props,border:!1,"render-label":n.$slots.default,"virtual-scroll":e.virtualScroll,"item-size":e.itemSize,height:e.height,onExpandChange:wl,onClose:r[13]||(r[13]=i=>n.$nextTick(()=>fe(!1)))},{empty:q(()=>[ve(n.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label","virtual-scroll","item-size","height"]),[[Ye,!ee.value]]),e.filterable?(S(),H(xe,{key:1},[e.virtualScroll?Re((S(),H("div",{key:1,ref_key:"suggestionPanel",ref:N,class:M(t(o).e("suggestion-panel")),onKeydown:Vt},[Re(oe(t(ml),{ref_key:"suggestionVirtualListRef",ref:x,height:we.value,"item-size":e.itemSize,data:Z.value,total:Z.value.length,"class-name":t(o).e("suggestion-list"),"inner-element":"ul","inner-width":ue.value},{default:q(({data:i,index:J,style:ne})=>[(S(),H("li",{id:`suggestion-${i[J].uid}`,key:i[J].uid,"data-suggestion-index":J,class:M([t(o).e("suggestion-item"),t(o).is("checked",i[J].checked)]),tabindex:-1,style:gt(ne),onClick:he=>At(i[J])},[ve(n.$slots,"suggestion-item",{item:i[J]},()=>[ke("span",null,be(i[J].text),1),i[J].checked?(S(),se(t(Ce),{key:0},{default:q(()=>[oe(t(vt))]),_:1})):le("v-if",!0)])],14,ds))]),_:3},8,["height","item-size","data","total","class-name","inner-width"]),[[Ye,Z.value.length]]),Z.value.length?le("v-if",!0):ve(n.$slots,"empty",{key:0},()=>[ke("ul",{class:M(t(o).e("suggestion-list"))},[ke("li",{class:M(t(o).e("empty-text"))},be(t(W)("el.cascader.noMatch")),3)],2)])],34)),[[Ye,ee.value]]):Re((S(),se(t(bt),{key:0,ref:i=>N.value=i?.$el,tag:"ul",class:M(t(o).e("suggestion-panel")),"wrap-class":t(o).e("suggestion-wrap"),"view-class":t(o).e("suggestion-list"),onKeydown:Vt},{default:q(()=>[Z.value.length?(S(!0),H(xe,{key:0},We(Z.value,i=>(S(),H("li",{key:i.uid,class:M([t(o).e("suggestion-item"),t(o).is("checked",i.checked)]),tabindex:-1,onClick:J=>At(i)},[ve(n.$slots,"suggestion-item",{item:i},()=>[ke("span",null,be(i.text),1),i.checked?(S(),se(t(Ce),{key:0},{default:q(()=>[oe(t(vt))]),_:1})):le("v-if",!0)])],10,us))),128)):ve(n.$slots,"empty",{key:1},()=>[ke("li",{class:M(t(o).e("empty-text"))},be(t(W)("el.cascader.noMatch")),3)])]),_:3},8,["class","wrap-class","view-class"])),[[Ye,ee.value]])],64)):le("v-if",!0),n.$slots.footer?(S(),H("div",{key:2,class:M(t(o).e("footer")),onClick:r[14]||(r[14]=ze(()=>{},["stop"]))},[ve(n.$slots,"footer")],2)):le("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}}),vs=hs;const Es=ol(vs);export{Es as E};