@myagentroam/server 0.15.41 → 0.15.42
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.
- package/node_modules/@myagentroam/protocol/package.json +1 -1
- package/node_modules/@myagentroam/server-core/package.json +2 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
- package/package.json +5 -5
- package/web/assets/AuditManagementPage-GD6tI0QN.js +1 -0
- package/web/assets/AuthEntryPanel-BtstFCQi.css +1 -0
- package/web/assets/{AuthEntryPanel-PefnSyv3.js → AuthEntryPanel-DUEFdLFh.js} +32 -32
- package/web/assets/{CodeFileEditor-BvjTB2D_.js → CodeFileEditor-umNSWDW0.js} +3 -3
- package/web/assets/ConversationTemplateManagementPage-mC6V6jMs.js +1 -0
- package/web/assets/ConversationTemplateManagementPage-vyV6XqHC.js +1 -0
- package/web/assets/DocxPreview-Bae_J_ch.js +5 -0
- package/web/assets/DocxPreview-ncIL_Pso.css +1 -0
- package/web/assets/EnterpriseUserManagementPage-CaY6-1FE.js +1 -0
- package/web/assets/EnvironmentSecretManager-h9CkmhSR.js +1 -0
- package/web/assets/FilePreviewState-B5i6_Hbj.js +7 -0
- package/web/assets/{FilePreviewState-D6LhvU1O.css → FilePreviewState-CUlULrug.css} +1 -1
- package/web/assets/ImagePreview-8ECKq1Qs.js +1 -0
- package/web/assets/ImagePreviewViewport-DLzQ76L_.js +1 -0
- package/web/assets/ImagePreviewViewport-PRd-zxR4.css +1 -0
- package/web/assets/{LicenseManagementPage-BlLyAMWq.js → LicenseManagementPage-BAF5Yb5F.js} +1 -1
- package/web/assets/ManagementPagination-CMRG-882.js +1 -0
- package/web/assets/MarAgentModelManagementPage-B46PnJ0-.js +1 -0
- package/web/assets/MarAgentModelManagementPage-DMjsatig.js +1 -0
- package/web/assets/MarAlert-DIUpIxCI.js +1 -0
- package/web/assets/MarCascader-CvJulIGZ.js +1 -0
- package/web/assets/{MarCheckTag-BfCf1m6w.js → MarCheckTag-C4OCmrU_.js} +1 -1
- package/web/assets/{MarCheckboxGroup-D-LSYqWc.js → MarCheckboxGroup-BhkiQZ_Z.js} +1 -1
- package/web/assets/MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-C6Wa8qEQ.js +1 -0
- package/web/assets/MarDatePicker-CNtRhc8Q.js +1 -0
- package/web/assets/{MarDescriptionsItem-CATbgWMr.js → MarDescriptionsItem-CwaEq38I.js} +1 -1
- package/web/assets/{MarFormItem.vue_vue_type_script_setup_true_lang-BVHNyoCI.js → MarFormItem.vue_vue_type_script_setup_true_lang-CGvKTIHO.js} +2 -2
- package/web/assets/MarInputNumber-rlobtDMg.js +1 -0
- package/web/assets/MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-vAli1jXG.js +1 -0
- package/web/assets/{MarSwitch-D5LoiKKA.js → MarSwitch-o4SRMGth.js} +1 -1
- package/web/assets/MarTableColumn.vue_vue_type_script_setup_true_lang-BzUQnt8U.js +1 -0
- package/web/assets/MarTabs-DhT4CHFq.js +1 -0
- package/web/assets/{MarTag-XZGjfVpY.js → MarTag-D6FhFOig.js} +1 -1
- package/web/assets/MarkdownFilePreview-BSvpIFIl.js +1 -0
- package/web/assets/MarkdownFilePreview.vue_vue_type_script_setup_true_lang-Vz3GPOpF.js +1 -0
- package/web/assets/MarkdownPreview-BgP1mldZ.js +2 -0
- package/web/assets/MarkdownPreview-Dl92la6C.css +1 -0
- package/web/assets/McpDetailsDialog-D4Qnb7Or.js +1 -0
- package/web/assets/McpSourceManagementPage-D8v57iT4.js +1 -0
- package/web/assets/{McpSourceManagementPage-UuYYO-pq.js → McpSourceManagementPage-DwFYz78x.js} +1 -1
- package/web/assets/MediaPreview-BBIgmKm0.js +1 -0
- package/web/assets/MediaPreview-CaAn8ccD.css +1 -0
- package/web/assets/NodeDetailsDialogs-BNIA6azG.js +1 -0
- package/web/assets/NodeManagementPage-C1RFFoNg.js +1 -0
- package/web/assets/NodeManagementPage-CEe1ue0v.js +1 -0
- package/web/assets/{OAuthManagementPage-EWDnSTOv.js → OAuthManagementPage-CKPMouaD.js} +1 -1
- package/web/assets/{OrganizationManagementPage-Ce9efifj.js → OrganizationManagementPage-BO5WCgZ4.js} +1 -1
- package/web/assets/PdfPreview-0U8rcAWR.js +1 -0
- package/web/assets/PdfPreview-DfFbYhbD.css +1 -0
- package/web/assets/PptxPreview--mU-YW98.js +2 -0
- package/web/assets/PptxPreview-DoFiCcnf.css +1 -0
- package/web/assets/RemoteDesktopPage-vvWogaQ5.js +1 -0
- package/web/assets/{ResourceManagementPanel-PKgXDQ0p.js → ResourceManagementPanel-CpXDTdcH.js} +2 -2
- package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-Cx5U35uD.js +1 -0
- package/web/assets/SecretManagementPage-Ctsm8yQc.js +1 -0
- package/web/assets/{SecretManagementPage-LwxTX0Gu.js → SecretManagementPage-DgCcJ0M3.js} +1 -1
- package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-Cn3t2U36.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-DnB3OcKU.js} +1 -1
- package/web/assets/SessionSharePage-CnaP0W3z.js +2 -0
- package/web/assets/SettingsContent-BvwwnmIS.js +1 -0
- package/web/assets/SettingsContent-D6Qg9F6i.js +1 -0
- package/web/assets/SkillCenterPage-B5X0nJNy.js +1 -0
- package/web/assets/SkillCenterPage-BntG8FpL.js +1 -0
- package/web/assets/{SkillDetailsDialog-CrYyaNwM.js → SkillDetailsDialog-CkFhw1Dr.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-DdPc8D1e.js → SkillSourceManagementPage-sCGn2BPm.js} +1 -1
- package/web/assets/SkillSourceManagementPage-xPVcHwnx.js +1 -0
- package/web/assets/StandaloneFilePreviewPage-C7O_aEPr.js +1 -0
- package/web/assets/{SystemConfigurationPage-DPWg14TQ.js → SystemConfigurationPage-DVMnnBTe.js} +1 -1
- package/web/assets/SystemConfigurationPage-SF9nHlk4.js +1 -0
- package/web/assets/{SystemInformationPage-DGfikj8T.js → SystemInformationPage-BzP9kAFS.js} +1 -1
- package/web/assets/{TerminalTabView-u2aSGZ04.js → TerminalTabView-D77AsuLv.js} +12 -12
- package/web/assets/{UTIF-Cbbg5qD8.js → UTIF-BH2SxhT2.js} +1 -1
- package/web/assets/{WorkbenchPage-CTxS7s7-.js → WorkbenchPage-D-Fz12dJ.js} +11 -11
- package/web/assets/WorkspaceManagementPage-C26b9iy0.js +1 -0
- package/web/assets/WorkspaceManagementPage-DcXT04AI.js +1 -0
- package/web/assets/XlsxPreview-CinViUaq.js +2 -0
- package/web/assets/XlsxPreview-CqIzgJ6j.css +1 -0
- package/web/assets/abnfDiagram-VCTEODGH-BvreeKsg.js +1 -0
- package/web/assets/{arc-CwgKK-qk.js → arc-D1U5Fp_3.js} +1 -1
- package/web/assets/architectureDiagram-5GKGNRK7-DRBVeOBW.js +36 -0
- package/web/assets/{blockDiagram-OSKFZWR5-TTIR4KiU.js → blockDiagram-OSKFZWR5-Bq6UwP9V.js} +2 -2
- package/web/assets/{c4Diagram-7LVT6UL2-BHbKh2eo.js → c4Diagram-7LVT6UL2-Dm_Waf1p.js} +2 -2
- package/web/assets/{catalog-ownership-service-CD2lV1ja.js → catalog-ownership-service-Bn7Vc8ps.js} +1 -1
- package/web/assets/{catalog-page-service-B39AbhzD.js → catalog-page-service-CzaLfAec.js} +1 -1
- package/web/assets/channel-Xetf-jB4.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-yN3KUNPC.js → chunk-2Q5K7J3B-CM_CkiL_.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-oBVvflCb.js → chunk-5VM5RSS4-CzbOR7Ui.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-B_RmcT8S.js → chunk-F27PBJKO-Cnx-FlhK.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-DeVoR5aT.js → chunk-HLEWEB6X-BSamV0mz.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-C7l8TuXz.js → chunk-JWPE2WC7-C0cCj49K.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-D3Mbe-WC.js → chunk-POPQ4Y6H-Djanjaue.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-C3MIPi5v.js → chunk-SVP7TREG-CJqcm5kp.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-C2exIkCS.js → chunk-XXDRQBXY-Dn5nMVNA.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6-BCNum6mZ.js → chunk-ZLD2IHE6-DYYT9bFH.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-D5krxbsF.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-D5krxbsF.js +1 -0
- package/web/assets/{conversation-history-CVtz4OTR.js → conversation-history-VXCklnxD.js} +1 -1
- package/web/assets/cose-bilkent-JH36ORCC-DHyQXVaw.js +1 -0
- package/web/assets/{cynefin-OW5HDTMX-MPH1NFcC.js → cynefin-OW5HDTMX-21CD-a02.js} +1 -1
- package/web/assets/cynefinDiagram-5FMLGOSQ-B_h6zDF2.js +62 -0
- package/web/assets/{dagre-OS7QT2EB-73sAmr86.js → dagre-OS7QT2EB-SLvIykdp.js} +2 -2
- package/web/assets/{diagram-S7CK7UJ4-BYilVZhO.js → diagram-S7CK7UJ4-DPD7ZZjQ.js} +6 -6
- package/web/assets/diagram-UQ7AKVKN-B80W4_w8.js +41 -0
- package/web/assets/{diagram-VSXAHHWV-B90CZCUL.js → diagram-VSXAHHWV-C9j3BXmW.js} +2 -2
- package/web/assets/diagram-VX7I27RA-C5X1CBwy.js +24 -0
- package/web/assets/diagram-Z3DM3KII-CtGdTcuR.js +24 -0
- package/web/assets/{docx-preview-D442GZjV.js → docx-preview-BNPbDiFD.js} +1 -1
- package/web/assets/ebnfDiagram-PWID7BFC-IoMkoDSF.js +1 -0
- package/web/assets/{enterprise-management-service-bHedVTxj.js → enterprise-management-service-BYCyS_wt.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-BGdP_8ns.js → erDiagram-2YWLMYGG-DSxgebHv.js} +2 -2
- package/web/assets/{error-presentation-BIHskbsq.js → error-presentation-BOjTqu52.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-DX0etIF8.js → flowDiagram-T62WH6J4-DIF8eXMf.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-Bck1rVWu.js → ganttDiagram-EL5Y4UJY-Dsf_NATv.js} +2 -2
- package/web/assets/gitGraphDiagram-WWUBYQGX-dXL-FkTK.js +106 -0
- package/web/assets/{hosted-conversation-template-client-DnvfGRBu.js → hosted-conversation-template-client-DKrQxlf9.js} +1 -1
- package/web/assets/{image-DPXM5XRl.js → image-CO2JJS1F.js} +1 -1
- package/web/assets/{index-fhQa0qRd.js → index--NLnU-PC.js} +1 -1
- package/web/assets/{index-BoSfb6cp.js → index-B1LolMrk.js} +1 -1
- package/web/assets/{index-BkreGCD-.js → index-BXb60ljb.js} +1 -1
- package/web/assets/{index-1ztxY10Q.js → index-BgZrQr9P.js} +2 -2
- package/web/assets/{index-dWh-elpj.js → index-BujjAa6S.js} +1 -1
- package/web/assets/{index-m-Vth8Lp.js → index-CKNeNsn1.js} +13 -13
- package/web/assets/{index-DVEJoNxp.js → index-CgMN-tQB.js} +1 -1
- package/web/assets/{index-CDFzYuLy.js → index-CkdmiFrP.js} +1 -1
- package/web/assets/{index-CKWELYQv.js → index-CkxFb7tB.js} +1 -1
- package/web/assets/{index-ClwT8-YD.js → index-CltK9KPF.js} +1 -1
- package/web/assets/{index-BVbociOE.js → index-D6UYzpvs.js} +1 -1
- package/web/assets/{index-bJjuQE-R.js → index-DHv95HPL.js} +1 -1
- package/web/assets/index-DZaMF5Cc.js +18 -0
- package/web/assets/{index-CqCoigmP.js → index-DaJyxpF_.js} +1 -1
- package/web/assets/{index-B7xWc-56.js → index-DfNKIFX7.js} +1 -1
- package/web/assets/{index-CchTHxH1.js → index-DkjcSLJ0.js} +1 -1
- package/web/assets/{index-DMDVPzzz.js → index-Dl2kwehD.js} +1 -1
- package/web/assets/{index-CK-BLN5B.js → index-Dp34xr7S.js} +1 -1
- package/web/assets/{index-DLMF9w63.js → index-DqIkoUqw.js} +1 -1
- package/web/assets/{index-CUcE1S0f.js → index-WGQA4iL6.js} +1 -1
- package/web/assets/{index-BvmAaESL.js → index-Xj6Um3Pu.js} +1 -1
- package/web/assets/{index-D_P0Kggk.js → index-ek3kRrpC.js} +1 -1
- package/web/assets/{index-C5XTyLQT.js → index-i59E-3bY.js} +1 -1
- package/web/assets/{index-p7vgCUSU.js → index-vcTqaF8o.js} +1 -1
- package/web/assets/{index-xznheEQN.js → index-y9N5piQy.js} +1 -1
- package/web/assets/{index.esm-QsCqOWi6.js → index.esm-jzsMp9Zo.js} +1 -1
- package/web/assets/infoDiagram-FKFFQAWI-DCtICqXj.js +2 -0
- package/web/assets/{ishikawaDiagram-5VMMS53U-B3gZgpzh.js → ishikawaDiagram-5VMMS53U-CSQpfhMS.js} +2 -2
- package/web/assets/{journeyDiagram-EYS64GPL-D_w8JGjX.js → journeyDiagram-EYS64GPL-W80U_Ccw.js} +2 -2
- package/web/assets/{jszip.min-CsvkqY8t.js → jszip.min-BVrMMDrm.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-BdARDTj5.js → kanban-definition-UXKFOSKX-wK7OIhpr.js} +2 -2
- package/web/assets/{layout-Cjpr9Phn.js → layout-DxHdeJb6.js} +1 -1
- package/web/assets/{linear-rvpNqaxZ.js → linear-DcWs93MI.js} +1 -1
- package/web/assets/{management-url-service-BuO_Rkc1.js → management-url-service-5WvTQNzC.js} +1 -1
- package/web/assets/{mar-agent-reasoning-effort-oFpgtNhz.js → mar-agent-reasoning-effort-nGNzKJZF.js} +1 -1
- package/web/assets/mcp-center-service-CvE7d83L.js +1 -0
- package/web/assets/{mermaid.core-C1A7sX2Q.js → mermaid.core-D0YHAXWX.js} +10 -10
- package/web/assets/{mindmap-definition-THT77NOG-nLwbpZ2C.js → mindmap-definition-THT77NOG-CtoLe01d.js} +2 -2
- package/web/assets/{mobile-dialog-return-service-8c0Hdszs.js → mobile-dialog-return-service-szw78Fb_.js} +1 -1
- package/web/assets/{oauth-callback-DyBB-p_5.js → oauth-callback-kRY1gWjG.js} +1 -1
- package/web/assets/office-preview-content-D0ZXuRcd.js +1 -0
- package/web/assets/{parser-9MSNX3kG.js → parser-DQIjcH1-.js} +1 -1
- package/web/assets/pegDiagram-XKGWAZYB-Ciz0vkWP.js +1 -0
- package/web/assets/pie-B21f3Jcw.js +1 -0
- package/web/assets/{pieDiagram-E7YTZNPT-CBRKd2je.js → pieDiagram-E7YTZNPT-B5CIq0Lf.js} +3 -3
- package/web/assets/{quadrantDiagram-AXDQQJYC-B78h4Jcp.js → quadrantDiagram-AXDQQJYC-By7ER2U2.js} +2 -2
- package/web/assets/railroadDiagram-O6MQD6OU-CuRWrWkF.js +1 -0
- package/web/assets/{requirementDiagram-IS5BZ75X-Cv6oz6T-.js → requirementDiagram-IS5BZ75X-Dm-8x0xg.js} +2 -2
- package/web/assets/{runner-presentation-BjEVsVDR.js → runner-presentation-CqR6RZ2f.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-DMdnaPyY.js → sankeyDiagram-P5KCCOFB-CKF82NHc.js} +2 -2
- package/web/assets/{scoped-http-service-BVzLlWqo.css → scoped-http-service-DndsZGnK.css} +1 -1
- package/web/assets/scoped-http-service-hGJUOrzj.js +7 -0
- package/web/assets/{sequenceDiagram-WJ2MYXX4-Dat0PaJ8.js → sequenceDiagram-WJ2MYXX4-C2vuuSXZ.js} +2 -2
- package/web/assets/{session-share-client-service-Dei7sXZO.js → session-share-client-service--097i0dw.js} +1 -1
- package/web/assets/sizeCapture-INFHLROL-BLrfm-2B.js +1 -0
- package/web/assets/{spreadsheet-CliGFPUB.js → spreadsheet-BzSEg54w.js} +4 -4
- package/web/assets/stateDiagram-XQSTLZYL-BHs6Prnk.js +1 -0
- package/web/assets/stateDiagram-v2-IH3M54BS-DV6maewS.js +1 -0
- package/web/assets/swimlanes-V6O3JKXN-qyWgYGXC.js +1 -0
- package/web/assets/swimlanesDiagram-JKAHXJPX-BxGFH_8w.js +8 -0
- package/web/assets/{time-DC3Mg0i2.js → time-DjKvo7nM.js} +1 -1
- package/web/assets/{time-presentation-pOQ1ZO_U.js → time-presentation-B5QAWtBf.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-86vVFEkd.js → timeline-definition-24CTP7MA-DVUo_Z66.js} +2 -2
- package/web/assets/{transform-CXma_uU-.js → transform-YfG62m2h.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-D1q8T4f-.js → vennDiagram-4TSXK5OY-hexhULHW.js} +2 -2
- package/web/assets/{wardleyDiagram-VM6X3IG4-GeKVLSox.js → wardleyDiagram-VM6X3IG4-gdqzyrOZ.js} +2 -2
- package/web/assets/{workbench-live-service-B89IkMyd.js → workbench-live-service-Mn3Hb6LP.js} +1 -1
- package/web/assets/workbench-presentation-D8FQswdV.js +1 -0
- package/web/assets/{workspace-direct-transfer-service-Drc-w6o5.js → workspace-direct-transfer-service-DV-cgEer.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-D78O3RsI.js → xychartDiagram-S5SC5T6Z-BExraG4Q.js} +2 -2
- package/web/docs/404.html +1 -1
- package/web/docs/administration/account.html +2 -2
- package/web/docs/administration/audit.html +2 -2
- package/web/docs/administration/conversation-templates.html +2 -2
- package/web/docs/administration/email-notifications.html +2 -2
- package/web/docs/administration/license.html +2 -2
- package/web/docs/administration/nodes-workspaces.html +2 -2
- package/web/docs/administration/oauth.html +2 -2
- package/web/docs/administration/secrets.html +2 -2
- package/web/docs/administration/template-workspace-maintenance.html +2 -2
- package/web/docs/administration/users-organizations.html +2 -2
- package/web/docs/assets/{app.IG6cdLVL.js → app.qSEvwjJn.js} +1 -1
- package/web/docs/assets/chunks/{@localSearchIndexen-US.C05wTUcn.js → @localSearchIndexen-US.T1F90Fmq.js} +1 -1
- package/web/docs/assets/chunks/{@localSearchIndexroot.WReEePz8.js → @localSearchIndexroot.DokTaNKc.js} +1 -1
- package/web/docs/assets/chunks/{VPLocalSearchBox.0cBFdZWo.js → VPLocalSearchBox.BX5_fH81.js} +1 -1
- package/web/docs/assets/chunks/{theme.D-ifa0oj.js → theme.COkmiT5c.js} +2 -2
- package/web/docs/concepts/architecture.html +2 -2
- package/web/docs/concepts/data-and-security.html +2 -2
- package/web/docs/concepts/files-git-terminal.html +2 -2
- package/web/docs/concepts/node-and-workspace.html +2 -2
- package/web/docs/concepts/permissions-and-sharing.html +2 -2
- package/web/docs/concepts/runner-control.html +2 -2
- package/web/docs/concepts/secrets.html +2 -2
- package/web/docs/concepts/session-run-turn.html +2 -2
- package/web/docs/deployment/backup-restore.html +2 -2
- package/web/docs/deployment/network.html +2 -2
- package/web/docs/deployment/node-installation.html +2 -2
- package/web/docs/deployment/node-linux.html +2 -2
- package/web/docs/deployment/node-macos.html +2 -2
- package/web/docs/deployment/node-windows.html +2 -2
- package/web/docs/deployment/production.html +2 -2
- package/web/docs/deployment/security-checklist.html +2 -2
- package/web/docs/deployment/upgrade.html +2 -2
- package/web/docs/en-US/administration/account.html +2 -2
- package/web/docs/en-US/administration/audit.html +2 -2
- package/web/docs/en-US/administration/conversation-templates.html +2 -2
- package/web/docs/en-US/administration/email-notifications.html +2 -2
- package/web/docs/en-US/administration/license.html +2 -2
- package/web/docs/en-US/administration/nodes-workspaces.html +2 -2
- package/web/docs/en-US/administration/oauth.html +2 -2
- package/web/docs/en-US/administration/secrets.html +2 -2
- package/web/docs/en-US/administration/template-workspace-maintenance.html +2 -2
- package/web/docs/en-US/administration/users-organizations.html +2 -2
- package/web/docs/en-US/concepts/architecture.html +2 -2
- package/web/docs/en-US/concepts/data-and-security.html +2 -2
- package/web/docs/en-US/concepts/files-git-terminal.html +2 -2
- package/web/docs/en-US/concepts/node-and-workspace.html +2 -2
- package/web/docs/en-US/concepts/permissions-and-sharing.html +2 -2
- package/web/docs/en-US/concepts/runner-control.html +2 -2
- package/web/docs/en-US/concepts/secrets.html +2 -2
- package/web/docs/en-US/concepts/session-run-turn.html +2 -2
- package/web/docs/en-US/deployment/backup-restore.html +2 -2
- package/web/docs/en-US/deployment/network.html +2 -2
- package/web/docs/en-US/deployment/node-installation.html +2 -2
- package/web/docs/en-US/deployment/node-linux.html +2 -2
- package/web/docs/en-US/deployment/node-macos.html +2 -2
- package/web/docs/en-US/deployment/node-windows.html +2 -2
- package/web/docs/en-US/deployment/production.html +2 -2
- package/web/docs/en-US/deployment/security-checklist.html +2 -2
- package/web/docs/en-US/deployment/upgrade.html +2 -2
- package/web/docs/en-US/getting-started/connect-node.html +2 -2
- package/web/docs/en-US/getting-started/first-agent-session.html +2 -2
- package/web/docs/en-US/getting-started/first-login.html +2 -2
- package/web/docs/en-US/getting-started/next-steps.html +2 -2
- package/web/docs/en-US/getting-started/npm-quick-start.html +2 -2
- package/web/docs/en-US/getting-started/overview.html +2 -2
- package/web/docs/en-US/getting-started/prerequisites.html +2 -2
- package/web/docs/en-US/getting-started/register-workspace.html +2 -2
- package/web/docs/en-US/getting-started/server-installation.html +2 -2
- package/web/docs/en-US/operations/marctl.html +2 -2
- package/web/docs/en-US/reference/configuration.html +2 -2
- package/web/docs/en-US/reference/keyboard-shortcuts.html +2 -2
- package/web/docs/en-US/reference/limits.html +2 -2
- package/web/docs/en-US/reference/ports-paths-data.html +2 -2
- package/web/docs/en-US/reference/status-and-errors.html +2 -2
- package/web/docs/en-US/runners/claude-code.html +2 -2
- package/web/docs/en-US/runners/codex.html +2 -2
- package/web/docs/en-US/runners/mar-agent.html +2 -2
- package/web/docs/en-US/runners/opencode.html +2 -2
- package/web/docs/en-US/runners/overview.html +2 -2
- package/web/docs/en-US/runners/runner-troubleshooting.html +2 -2
- package/web/docs/en-US/troubleshooting/node-offline.html +2 -2
- package/web/docs/en-US/troubleshooting/quick-diagnosis.html +2 -2
- package/web/docs/en-US/troubleshooting/session-run.html +2 -2
- package/web/docs/en-US/troubleshooting/terminal.html +2 -2
- package/web/docs/en-US/troubleshooting/workspace-files.html +2 -2
- package/web/docs/en-US/workbench/browser.html +2 -2
- package/web/docs/en-US/workbench/composer.html +2 -2
- package/web/docs/en-US/workbench/context-and-plan.html +2 -2
- package/web/docs/en-US/workbench/conversation.html +2 -2
- package/web/docs/en-US/workbench/file-reference-and-attachment.html +2 -2
- package/web/docs/en-US/workbench/files.html +2 -2
- package/web/docs/en-US/workbench/git-changes.html +2 -2
- package/web/docs/en-US/workbench/git-history.html +2 -2
- package/web/docs/en-US/workbench/hosted-conversations.html +2 -2
- package/web/docs/en-US/workbench/mobile.html +2 -2
- package/web/docs/en-US/workbench/navigation.html +2 -2
- package/web/docs/en-US/workbench/remote-desktop.html +2 -2
- package/web/docs/en-US/workbench/sessions.html +2 -2
- package/web/docs/en-US/workbench/skills.html +2 -2
- package/web/docs/en-US/workbench/terminal.html +2 -2
- package/web/docs/getting-started/connect-node.html +2 -2
- package/web/docs/getting-started/first-agent-session.html +2 -2
- package/web/docs/getting-started/first-login.html +2 -2
- package/web/docs/getting-started/next-steps.html +2 -2
- package/web/docs/getting-started/npm-quick-start.html +2 -2
- package/web/docs/getting-started/overview.html +2 -2
- package/web/docs/getting-started/prerequisites.html +2 -2
- package/web/docs/getting-started/register-workspace.html +2 -2
- package/web/docs/getting-started/server-installation.html +2 -2
- package/web/docs/operations/marctl.html +2 -2
- package/web/docs/reference/configuration.html +2 -2
- package/web/docs/reference/keyboard-shortcuts.html +2 -2
- package/web/docs/reference/limits.html +2 -2
- package/web/docs/reference/ports-paths-data.html +2 -2
- package/web/docs/reference/status-and-errors.html +2 -2
- package/web/docs/runners/claude-code.html +2 -2
- package/web/docs/runners/codex.html +2 -2
- package/web/docs/runners/mar-agent.html +2 -2
- package/web/docs/runners/opencode.html +2 -2
- package/web/docs/runners/overview.html +2 -2
- package/web/docs/runners/runner-troubleshooting.html +2 -2
- package/web/docs/troubleshooting/node-offline.html +2 -2
- package/web/docs/troubleshooting/quick-diagnosis.html +2 -2
- package/web/docs/troubleshooting/session-run.html +2 -2
- package/web/docs/troubleshooting/terminal.html +2 -2
- package/web/docs/troubleshooting/workspace-files.html +2 -2
- package/web/docs/workbench/browser.html +2 -2
- package/web/docs/workbench/composer.html +2 -2
- package/web/docs/workbench/context-and-plan.html +2 -2
- package/web/docs/workbench/conversation.html +2 -2
- package/web/docs/workbench/file-reference-and-attachment.html +2 -2
- package/web/docs/workbench/files.html +2 -2
- package/web/docs/workbench/git-changes.html +2 -2
- package/web/docs/workbench/git-history.html +2 -2
- package/web/docs/workbench/hosted-conversations.html +2 -2
- package/web/docs/workbench/mobile.html +2 -2
- package/web/docs/workbench/navigation.html +2 -2
- package/web/docs/workbench/remote-desktop.html +2 -2
- package/web/docs/workbench/sessions.html +2 -2
- package/web/docs/workbench/skills.html +2 -2
- package/web/docs/workbench/terminal.html +2 -2
- package/web/index.html +2 -2
- package/web/service-worker.js +1 -1
- package/web/web-version.json +1 -1
- package/web/assets/AuditManagementPage-zwPBs-Ce.js +0 -1
- package/web/assets/AuthEntryPanel-Cjjl18ym.css +0 -1
- package/web/assets/ConversationTemplateManagementPage-CPOXegFa.js +0 -1
- package/web/assets/ConversationTemplateManagementPage-DF0i1Cs1.js +0 -1
- package/web/assets/EnterpriseUserManagementPage-DLLDJNkU.js +0 -1
- package/web/assets/EnvironmentSecretManager-ZNomBsD1.js +0 -1
- package/web/assets/FilePreviewState-pYNEkUjZ.js +0 -24
- package/web/assets/ManagementPagination-iGAGnhIO.js +0 -1
- package/web/assets/MarAgentModelManagementPage-DKflhYMH.js +0 -1
- package/web/assets/MarAgentModelManagementPage-PVLZn_dL.js +0 -1
- package/web/assets/MarAlert-_tcVNzIU.js +0 -1
- package/web/assets/MarCascader-BYIWt0sQ.js +0 -1
- package/web/assets/MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-BTYujnMk.js +0 -1
- package/web/assets/MarDatePicker-DOd41mfH.js +0 -1
- package/web/assets/MarInputNumber-10vTwsKI.js +0 -1
- package/web/assets/MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-DyF6NqNF.js +0 -1
- package/web/assets/MarTableColumn.vue_vue_type_script_setup_true_lang-D19MPZhF.js +0 -1
- package/web/assets/MarTabs-BjfW3mGn.js +0 -1
- package/web/assets/MarkdownFilePreview-B3vmpJ_r.css +0 -1
- package/web/assets/MarkdownFilePreview-DgKOCHSz.js +0 -2
- package/web/assets/McpDetailsDialog-BMIxE9bH.js +0 -1
- package/web/assets/McpSourceManagementPage-2Uyo1wAD.js +0 -1
- package/web/assets/NodeDetailsDialogs-BFhSvz5U.js +0 -1
- package/web/assets/NodeManagementPage-67BVOr7i.js +0 -1
- package/web/assets/NodeManagementPage-XVXLHVza.js +0 -1
- package/web/assets/RemoteDesktopPage-DbhQwrsT.js +0 -1
- package/web/assets/ResourceManagementPanel.vue_vue_type_script_setup_true_lang-vLSuFGUT.js +0 -1
- package/web/assets/SecretManagementPage-DWEnFHaU.js +0 -1
- package/web/assets/SessionSharePage-_33GkXBz.js +0 -2
- package/web/assets/SettingsContent-CNd6x354.js +0 -1
- package/web/assets/SettingsContent-CPLjVTvX.js +0 -1
- package/web/assets/SkillCenterPage-DBhCMEgw.js +0 -1
- package/web/assets/SkillCenterPage-DIKNNNiP.js +0 -1
- package/web/assets/SkillSourceManagementPage-7Anj4ewB.js +0 -1
- package/web/assets/StandaloneFilePreviewPage-BY0PaVUk.js +0 -1
- package/web/assets/SystemConfigurationPage-BoWrS3cV.js +0 -1
- package/web/assets/WorkspaceManagementPage-cnTVpL3X.js +0 -1
- package/web/assets/WorkspaceManagementPage-g0O9u1XQ.js +0 -1
- package/web/assets/abnfDiagram-VCTEODGH-BAGlleHn.js +0 -1
- package/web/assets/architectureDiagram-5GKGNRK7-CvVqnRUV.js +0 -36
- package/web/assets/channel-B9YzXmoh.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-ZzVe_iSa.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-ZzVe_iSa.js +0 -1
- package/web/assets/cose-bilkent-JH36ORCC-DvgtaUEo.js +0 -1
- package/web/assets/cynefinDiagram-5FMLGOSQ-C5JpE3Gi.js +0 -62
- package/web/assets/diagram-UQ7AKVKN-FWbYdMBn.js +0 -41
- package/web/assets/diagram-VX7I27RA-BuHhC6bF.js +0 -24
- package/web/assets/diagram-Z3DM3KII-B4kjdH0n.js +0 -24
- package/web/assets/ebnfDiagram-PWID7BFC-BIKv5E-d.js +0 -1
- package/web/assets/gitGraphDiagram-WWUBYQGX-j8eLeKlH.js +0 -106
- package/web/assets/infoDiagram-FKFFQAWI-B-2gAPSJ.js +0 -2
- package/web/assets/mcp-center-service-DilPQiPa.js +0 -1
- package/web/assets/pegDiagram-XKGWAZYB-Bha_zpMx.js +0 -1
- package/web/assets/pie-CALWOQR1.js +0 -1
- package/web/assets/railroadDiagram-O6MQD6OU-CIDBmt0c.js +0 -1
- package/web/assets/scoped-http-service-DAqwVDhi.js +0 -10
- package/web/assets/sizeCapture-INFHLROL-B4UowqbS.js +0 -1
- package/web/assets/stateDiagram-XQSTLZYL-WtARd8Pr.js +0 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-Kf89TbDo.js +0 -1
- package/web/assets/swimlanes-V6O3JKXN-SrACAKI4.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-gtv67fR8.js +0 -8
- package/web/assets/workbench-presentation-BKp2r7v0.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as I,o as f,b as y,p as A,u as M,$ as D,Z as R,v as p,f as L,_ as $,t as s,a as l,B as _}from"./index-CKNeNsn1.js";import{f as N}from"./time-presentation-B5QAWtBf.js";import"./conversation-history-VXCklnxD.js";const T={"en-US":{divisor:1e6,minimumFractionDigits:0},"zh-CN":{divisor:1e8,minimumFractionDigits:1}},F=["href","data-type","data-underline"],E={key:2,class:"mar-ui-link__inner"},O=I({__name:"MarLink",props:{href:{},type:{default:"default"},underline:{type:[Boolean,String],default:"hover"},icon:{}},setup(e){return(t,n)=>(f(),y("a",{class:"mar-ui-link",href:e.href,"data-type":e.type,"data-underline":e.underline},[typeof e.icon=="string"?(f(),A(M(D),{key:0,name:e.icon},null,8,["name"])):e.icon?(f(),A(R(e.icon),{key:1,"aria-hidden":"true"})):p("",!0),t.$slots.default?(f(),y("span",E,[L(t.$slots,"default",{},void 0,!0)])):p("",!0)],8,F))}}),K=$(O,[["__scopeId","data-v-15845f19"]]);function W(e){return{five_hour:s("nodeMessages.fiveHourLimit"),seven_day:s("nodeMessages.sevenDayLimit"),seven_day_sonnet:s("nodeMessages.sevenDaySonnetLimit")}[e.id]??e.label}function w(e){return e==="claude-code"?s("nodeMessages.claudeUsage"):s("nodeMessages.codexUsage")}function q(e){const t=l(),n=l(!1),u=l(),i=l(!1),o=l(),m=l(),v=l(!1);function h(a){t.value=a,n.value=!0,u.value=void 0,i.value=!1,g(a.id)}async function g(a){const r=t.value;try{const c=await e.request(`/api/runner-usage/status?nodeId=${encodeURIComponent(a)}`);t.value===r&&r?.id===a&&(u.value=c.statuses,i.value=!1)}catch{t.value===r&&r?.id===a&&(u.value=[],i.value=!0)}}function S(a){if(i.value)return s("generated.runnerUsageService.usageCapabilityDetectionFailedCloseAndReopen");const r=u.value?.find(c=>c.runner===a);return r===void 0?s("generated.runnerUsageService.detectingUsageCapability"):r.available?"":r.reasonCode==="OFFICIAL_OAUTH_REQUIRED"?s("generated.runnerUsageService.usageQueriesRequireAnOfficialOAuthAccount"):r.reasonCode==="RUNNER_UNAVAILABLE"?s("generated.runnerUsageService.thisRunnerIsUnavailableSoUsageCannot"):s("generated.runnerUsageService.thisRunnerDoesNotCurrentlySupportUsage")}async function U(a){const r=t.value;if(!(r===void 0||o.value!==void 0)){o.value=a;try{const c=await e.request(`/api/runner-usage?nodeId=${encodeURIComponent(r.id)}&runner=${encodeURIComponent(a)}`);if(t.value!==r)return;m.value=c.usage,v.value=!0}catch(c){if(t.value!==r)return;e.error(s("generated.runnerUsageService.unableToQueryUsage",{value0:e.errorMessage(c)}),c),g(r.id)}finally{t.value===r&&(o.value=void 0)}}}function k(a){return w(a?.runner)}function C(a){return a===null?s("generated.runnerUsageService.notProvided"):N(a)}function b(){v.value=!1,m.value=void 0,o.value=void 0,n.value=!1,t.value=void 0,u.value=void 0,i.value=!1}return{nodeDetails:t,detailsOpen:n,statuses:u,loading:o,details:m,usageOpen:v,openNode:h,loadStatuses:g,disabledReason:S,show:U,title:k,formatTimestamp:C,clearNode:b}}const H=30;function d(e){return e!==void 0&&Number.isFinite(e)&&e>0}function Q(e,t){if(!e?.ready||!t.ready||e.context!==t.context||e.items.length!==t.items.length||e.items.every((i,o)=>i.key===t.items[o]?.key))return!1;const n=new Map(e.items.map(i=>[i.key,i]));let u=!1;for(const i of t.items){const o=n.get(i.key);if(!o||o.pin!==i.pin)return!1;d(o.lastActivityAt)&&d(i.lastActivityAt)&&i.lastActivityAt>o.lastActivityAt&&(u=!0)}return u}function V(e,t=Date.now()){if(!d(e))return"—";const n=Math.max(0,t-e);return n<6e4?"<1m":n<60*6e4?`>${Math.floor(n/6e4)}m`:n<1440*6e4?`>${Math.floor(n/(60*6e4))}h`:`>${Math.floor(n/(1440*6e4))}d`}function Z(e){return encodeURIComponent(e).replace(/%3A/gi,":")}function j(e,t){return`${e}:${t}`}function z(e){return e.displayName?.trim()?e.displayName.trim():e.path.split(/[\\/]/).filter(Boolean).at(-1)||e.path}function J(e){return e.kind==="GIT_WORKSPACE"?"Git":s("workspace.directory")}function X(e){if(e.kind==="GIT_WORKSPACE")return e.gitSummary?.branch??"HEAD"}function x(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${Math.round(e/1e3)}k`:String(e)}function Y(e){if(e===null)return"—";if(e<1e8)return x(e);const t=_(),n=T[t];return s("marAgentModels.codexUsageLargeTokens",{value:new Intl.NumberFormat(t,{useGrouping:!1,minimumFractionDigits:n.minimumFractionDigits,maximumFractionDigits:1}).format(e/n.divisor)})}function ee(e){return`${Math.max(0,Math.round(e*10)/10)}%`}function te(e){return e.length===0?e:`${e[0]?.toUpperCase()}${e.slice(1)}`}function ne(e){return e.displayName?.trim()||e.registeredAddress||e.id}function ae(e,t){return e.externalDiscovered===!1||!d(e.lastActivityAt)?void 0:s("presentation.lastActivity",{value:t(e.lastActivityAt)})}function re(e){return e.externalDiscovered===!1||!d(e.lastActivityAt)?void 0:new Date(e.lastActivityAt).toISOString()}export{K as M,H as W,ee as a,Z as b,Y as c,j as d,te as e,V as f,X as g,z as h,re as i,q as j,Q as k,d as l,ne as n,W as r,ae as s,x as t,J as w};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as _e}from"./uuid-BmNSYLtZ.js";import{r as De,s as Se,N as Le,b as me,a as Oe}from"./workbench-live-service-B89IkMyd.js";const Pe=3e3,he=3e3,we=[3e4,6e4,12e4,3e5],Q=32,$=1e4,Z=new Set(["DIRECT_UNAVAILABLE","DIRECT_TRANSFER_UNAVAILABLE","DIRECT_PREPARE_TIMEOUT","DIRECT_CONNECTION_FAILED","DIRECT_CHANNEL_CLOSED","DIRECT_TRANSFER_CONTROL_UNAVAILABLE","DIRECT_NODE_OFFLINE","DIRECT_NODE_INVALIDATED","DIRECT_NETWORK_CHANGED"]);function We(n){const s=new Map,u=new Map,a=new Map,d=new Map,E=new Map,h=new Map,C=new Set,f=new Map,T=new Map,y=n.createPeerConnection??(()=>new RTCPeerConnection({iceServers:[]})),_=n.randomId??(()=>_e().replaceAll("-","")),V=n.probeTimeoutMs??Pe,v=n.probeRetryDelaysMs??we;function p(e,t){const r=a.get(e);return r===void 0||r.request.nodeGeneration!==t?"STALE":R(r)?"DIRECT_AVAILABLE":"RELAY_ONLY"}function D(e,t){return p(e,t)==="DIRECT_AVAILABLE"}function te(e,t){const r=a.get(e);if(r===void 0||r.request.nodeGeneration!==t||!R(r))return;f.set(e,(f.get(e)??0)+1);let o=!1;return{transportSessionId:r.directSessionId,nodeGeneration:r.request.nodeGeneration,get streamPath(){return R(r)&&!r.streamPath.closed&&!o?r.streamPath:void 0},createChannel:i=>{if(!R(r)||a.get(e)!==r)throw new Error("DIRECT_TRANSPORT_UNAVAILABLE");return r.peer.createDataChannel(i,{ordered:!0})},release:()=>{if(o)return;o=!0;const i=(f.get(e)??1)-1;i>0?f.set(e,i):f.delete(e),g(e)}}}function re(e,t){const r=a.get(e);if(!r||r.request.nodeGeneration!==t||!R(r))return;f.set(e,(f.get(e)??0)+1);const o=new Set;let i=!1;return{transportSessionId:r.directSessionId,nodeGeneration:t,maxMessageBytes:Math.min(16384,r.peer.sctp?.maxMessageSize||16384),waitChannel(c,I){if(i||I.aborted||a.get(e)!==r||!R(r)||!/^[A-Za-z0-9_-]{8,128}$/u.test(c)||r.desktopTaken.has(c)||r.desktopWaiters.has(c)||r.desktopWaiters.size>=4)return Promise.reject(new Error("DESKTOP_TRANSPORT_ERROR"));const l=r.desktopChannels.get(c);return l?(r.desktopChannels.delete(c),clearTimeout(l.timer),l.channel.onmessage=null,l.channel.onclose=null,l.channel.readyState==="closed"||l.channel.readyState==="closing"?Promise.reject(new Error("DESKTOP_TRANSPORT_ERROR")):(z(r,c,l.channel),Promise.resolve(l.channel))):(o.add(c),new Promise((O,N)=>{const P=setTimeout(()=>q(),15e3),W=()=>{clearTimeout(P),o.delete(c),r.desktopWaiters.delete(c),I.removeEventListener("abort",q)},q=()=>{W(),N(new Error("DESKTOP_TRANSPORT_ERROR"))};r.desktopWaiters.set(c,{resolve:K=>{W(),O(K)},reject:K=>{W(),N(K)}}),I.addEventListener("abort",q,{once:!0}),I.aborted&&q()}))},release(){if(i)return;i=!0;for(const I of o)r.desktopWaiters.get(I)?.reject(new Error("DESKTOP_TRANSPORT_ERROR"));const c=(f.get(e)??1)-1;c>0?f.set(e,c):f.delete(e),g(e)}}}function ne(e,t){return D(e,t)?h.get(e):void 0}function oe(e,t){return b(e,t)}function b(e,t){const r=T.get(e);r!==void 0&&(r.generation!==t?w(e):r.timer!==void 0&&(clearTimeout(r.timer),r.timer=void 0)),C.delete(e);const o=a.get(e);if(o!==void 0&&o.request.nodeGeneration===t)return R(o)?Promise.resolve("DIRECT_AVAILABLE"):o.request.promise;o!==void 0&&A(o,"DIRECT_NODE_GENERATION_MISMATCH",!1);for(const l of s.values())if(l.nodeId===e){if(l.nodeGeneration===t)return l.promise;Y(l)}let i;const c=new Promise(l=>i=l),I={requestId:_(),nodeId:e,nodeGeneration:t,resolve:i,promise:c,timer:void 0,attempt:1};return H(I),c}function H(e){e.timer=setTimeout(()=>S(e.requestId,"DIRECT_CONNECTION_TIMEOUT"),V),s.set(e.requestId,e);const t={type:"direct.prepare",requestId:e.requestId,nodeId:e.nodeId,nodeGeneration:e.nodeGeneration,purpose:"TRANSPORT"};n.send(t)||S(e.requestId,"DIRECT_TRANSFER_UNAVAILABLE")}async function ie(e){if(e.descriptor.direction!=="UPLOAD")throw new Error("DIRECT_TRANSFER_INVALID");const t=e.signal??new AbortController().signal,r=await M(e.nodeId,e.nodeGeneration,e.descriptor,t);if(r===void 0)throw new Error("DIRECT_UNAVAILABLE");try{await Se(r,e.file,t,e.onProgress)}catch(o){throw r.close(),G(o)}}async function se(e){try{if(e.descriptor.direction!=="DOWNLOAD")throw new Error("DIRECT_TRANSFER_INVALID");const t=e.signal??new AbortController().signal,r=await M(e.nodeId,e.nodeGeneration,e.descriptor,t);if(r===void 0)throw new Error("DIRECT_UNAVAILABLE");try{await De(r,e.sink,ke(e.descriptor),t,e.onProgress)}catch(o){throw r.close(),G(o)}}catch(t){throw await e.sink.abort().catch(()=>{}),t}}function M(e,t,r,o){if(o.aborted)return Promise.reject(new Error("DIRECT_TRANSFER_CANCELLED"));const i=Re(e,t);if(i===void 0||i.streamPath.closed)return Promise.resolve(void 0);const c=_(),{promise:I,resolve:l,reject:O}=Promise.withResolvers(),N=()=>L(c,"DIRECT_TRANSFER_CANCELLED"),P={requestId:c,nodeId:e,nodeGeneration:t,transportSessionId:i.directSessionId,descriptor:r,resolve:l,reject:O,removeAbort:()=>o.removeEventListener("abort",N),timer:setTimeout(()=>L(c,"DIRECT_PREPARE_TIMEOUT"),he)};return d.set(c,P),o.addEventListener("abort",N,{once:!0}),ce(P)||L(c,"DIRECT_TRANSFER_UNAVAILABLE"),I}function ce(e){return n.send({type:"direct.prepare",requestId:e.requestId,nodeId:e.nodeId,nodeGeneration:e.nodeGeneration,purpose:"TRANSFER",transportSessionId:e.transportSessionId,transfer:e.descriptor})}function ae(e){if(e.type==="direct.error"&&e.requestId!==void 0){s.has(e.requestId)?S(e.requestId,e.code):d.has(e.requestId)&&L(e.requestId,e.code);return}if(e.type==="direct.prepared"){e.purpose==="TRANSPORT"?de(e.requestId,e.directSessionId):Ee(e.requestId,e.directSessionId,e.transportSessionId);return}const t=u.get(e.directSessionId??"");if(t!==void 0){le(t,e);return}const r=E.get(e.directSessionId??"");r!==void 0&&Te(r,e)}async function de(e,t){const r=s.get(e);if(r!==void 0)try{const o=y(),i=o.createDataChannel(Le,{ordered:!0}),c={request:r,directSessionId:t,peer:o,streamChannel:i,streamPath:me({carrier:Oe(i),maxStreams:32}),sentCandidateKeys:new Set,desktopChannels:new Map,desktopWaiters:new Map,desktopTaken:new Set,serverOpened:!1,peerConnected:!1};o.ondatachannel=P=>pe(c,P.channel),u.set(t,c),a.set(r.nodeId,c),i.addEventListener("open",()=>U(c),{once:!0}),i.addEventListener("close",()=>A(c,"DIRECT_CHANNEL_CLOSED",!1),{once:!0}),ue(c);const I=await o.createOffer();await o.setLocalDescription(I);const l=o.localDescription?.sdp,O=Ue(l,c.sentCandidateKeys),N=Ve(l);if(O===void 0||N===void 0)throw new Error("DIRECT_FINGERPRINT_INVALID");n.send({type:"direct.signal",directSessionId:t,signal:{kind:"OFFER",sdp:O,fingerprint:N}})}catch(o){const i=u.get(t);i!==void 0?A(i,X(o)):S(e,X(o))}}function ue(e){const{peer:t,directSessionId:r}=e;t.onicecandidate=o=>{const i=o.candidate;if(i===null){n.send({type:"direct.signal",directSessionId:r,signal:{kind:"END_OF_CANDIDATES"}});return}const c=i.toJSON();typeof c.candidate!="string"||!Me(c.candidate,e.sentCandidateKeys)||n.send({type:"direct.signal",directSessionId:r,signal:{kind:"CANDIDATE",candidate:{candidate:c.candidate,sdpMid:c.sdpMid??null,sdpMLineIndex:c.sdpMLineIndex??null}}})},t.onconnectionstatechange=()=>{t.connectionState==="connected"&&(e.peerConnected=!0,n.send({type:"direct.connected",directSessionId:r}),U(e)),(t.connectionState==="failed"||t.connectionState==="closed")&&A(e,"DIRECT_CONNECTION_FAILED",!1)}}function le(e,t){if(t.type==="direct.signal"){qe(e.peer,t.signal).catch(()=>A(e,"DIRECT_SIGNAL_INVALID"));return}if(t.type==="direct.opened"){e.serverOpened=!0,U(e);return}(t.type==="direct.error"||t.type==="direct.closed")&&A(e,t.code,!1)}function U(e){u.get(e.directSessionId)!==e||!R(e)||(s.delete(e.request.requestId)&&(clearTimeout(e.request.timer),w(e.request.nodeId),e.heartbeat=setInterval(()=>{n.send({type:"direct.heartbeat",directSessionId:e.directSessionId})||A(e,"DIRECT_TRANSFER_CONTROL_UNAVAILABLE")},$),e.request.resolve("DIRECT_AVAILABLE"),n.onTransportReady?.(e.request.nodeId)),n.onProbeResultChange?.(),fe(e))}async function fe(e){if(typeof e.peer.getStats=="function")try{const t=ye(await e.peer.getStats());if(t===void 0||a.get(e.request.nodeId)!==e||!R(e))return;h.set(e.request.nodeId,t),n.onProbeResultChange?.()}catch{}}function Ee(e,t,r){const o=d.get(e),i=u.get(r??"");if(o===void 0||i===void 0||o.transportSessionId!==i.directSessionId||!R(i)){n.send({type:"direct.cancel",directSessionId:t}),o!==void 0&&L(e,"DIRECT_TRANSFER_UNAVAILABLE");return}E.set(t,{request:o,directSessionId:t,path:i.streamPath,scope:new AbortController,opening:!1})}function Te(e,t){if(t.type==="direct.grant"){Ie(e,t.grant);return}(t.type==="direct.error"||t.type==="direct.closed")&&m(e,t.code)}async function Ie(e,t){if(e.opening)return;e.opening=!0,e.heartbeat=setInterval(()=>n.send({type:"direct.heartbeat",directSessionId:e.directSessionId}),$);const r=e.scope.signal;try{const o=e.request.descriptor.direction==="UPLOAD"?"file-upload":"file-download",i=await e.path.openStream({kind:o,grant:t},r);if(r.aborted){i?.close();return}if(clearTimeout(e.request.timer),i===void 0){n.send({type:"direct.cancel",directSessionId:e.directSessionId}),e.request.resolve(void 0),m(e);return}e.stream=i,e.request.resolve(i),i.finished.then(()=>m(e))}catch(o){if(r.aborted)return;const i=o instanceof Error?o.message:"DIRECT_TRANSFER_FAILED";i!=="NODE_STREAM_DISCONNECTED"&&n.send({type:"direct.cancel",directSessionId:e.directSessionId}),m(e,i)}}function Y(e){s.delete(e.requestId),clearTimeout(e.timer),e.resolve("RELAY_ONLY")}function S(e,t){const r=s.get(e);if(r===void 0)return;s.delete(e),clearTimeout(r.timer);const o=[...u.values()].find(i=>i.request===r);if(o!==void 0&&B(o,t,!0),r.attempt===1){r.attempt=2,r.requestId=_(),H(r);return}r.resolve("RELAY_ONLY"),j(r.nodeId,r.nodeGeneration),n.onProbeResultChange?.()}function A(e,t,r=!0){B(e,t,r)&&(e.request.resolve("RELAY_ONLY"),j(e.request.nodeId,e.request.nodeGeneration),n.onProbeResultChange?.())}function pe(e,t){const r=/^mar-desktop-([A-Za-z0-9_-]{8,128})$/u.exec(t.label);if(!r||u.get(e.directSessionId)!==e||!t.ordered||t.maxRetransmits!==null||t.maxPacketLifeTime!==null){t.close();return}const o=r[1];if(e.desktopTaken.has(o)){t.close();return}const i=e.desktopWaiters.get(o);if(i){z(e,o,t),i.resolve(t);return}if(e.desktopChannels.has(o)||e.desktopChannels.size>=4){t.close();return}const c=()=>{const l=e.desktopChannels.get(o);l?.channel===t&&(clearTimeout(l.timer),e.desktopChannels.delete(o),t.onmessage=null,t.onclose=null,t.close())},I=setTimeout(c,15e3);e.desktopChannels.set(o,{channel:t,timer:I}),t.onmessage=c,t.onclose=c}function z(e,t,r){e.desktopTaken.add(t),r.addEventListener("close",()=>e.desktopTaken.delete(t),{once:!0})}function B(e,t,r){if(!u.delete(e.directSessionId))return!1;for(const o of e.desktopWaiters.values())o.reject(new Error(t));for(const{channel:o,timer:i}of e.desktopChannels.values())clearTimeout(i),o.onmessage=null,o.onclose=null,o.close();e.desktopChannels.clear(),e.desktopTaken.clear(),e.peer.ondatachannel=null,a.get(e.request.nodeId)===e&&a.delete(e.request.nodeId),h.delete(e.request.nodeId),s.delete(e.request.requestId),clearTimeout(e.request.timer),e.heartbeat!==void 0&&clearInterval(e.heartbeat),e.streamPath.close();for(const o of[...E.values()])o.request.transportSessionId===e.directSessionId&&m(o,t);return r&&n.send({type:"direct.cancel",directSessionId:e.directSessionId}),e.peer.close(),!0}function L(e,t){const r=d.get(e);if(r===void 0)return;const o=[...E.values()].find(i=>i.request===r);if(o!==void 0){n.send({type:"direct.cancel",directSessionId:o.directSessionId}),m(o,o.opening&&t==="DIRECT_PREPARE_TIMEOUT"?"DIRECT_OPEN_TIMEOUT":t);return}d.delete(e),clearTimeout(r.timer),r.removeAbort(),Z.has(t)?r.resolve(void 0):r.reject(new Error(t)),g(r.nodeId)}function m(e,t){if(!E.delete(e.directSessionId))return;const r=e.request;d.delete(r.requestId),clearTimeout(r.timer),r.removeAbort(),e.heartbeat!==void 0&&clearInterval(e.heartbeat),t!==void 0&&(e.stream!==void 0?e.stream.reset(t):!e.opening&&Z.has(t)?r.resolve(void 0):r.reject(G(new Error(t)))),e.scope.abort(),g(r.nodeId)}function Re(e,t){const r=a.get(e);return r!==void 0&&r.request.nodeGeneration===t&&R(r)?r:void 0}function j(e,t){if(n.shouldRetryProbe?.(e,t)!==!0||v.length===0)return;const r=T.get(e),o=r?.generation===t?r.attempt+1:0,i=v[Math.min(o,v.length-1)];if(i===void 0)return;r?.timer!==void 0&&clearTimeout(r.timer);const c={generation:t,attempt:o,timer:void 0};c.timer=setTimeout(()=>{b(e,t)},i),T.set(e,c)}function w(e){const t=T.get(e);t?.timer!==void 0&&clearTimeout(t.timer),T.delete(e)}function Ae(e){if(w(e),[...d.values()].some(t=>t.nodeId===e)||(f.get(e)??0)>0){C.add(e);return}x(e)}function g(e){!C.has(e)||[...d.values()].some(t=>t.nodeId===e)||(f.get(e)??0)>0||x(e)}function x(e){C.delete(e),w(e);const t=a.get(e);t!==void 0&&(B(t,"DIRECT_TRANSPORT_RELEASED",!0),t.request.resolve("RELAY_ONLY"));for(const r of s.values())r.nodeId===e&&Y(r);n.onProbeResultChange?.()}function Ce(e){C.delete(e),w(e);const t=a.get(e);t!==void 0&&A(t,"DIRECT_NODE_INVALIDATED");for(const r of[...s.values()])r.nodeId===e&&S(r.requestId,"DIRECT_NODE_INVALIDATED")}function F(){for(const e of T.values())e.timer!==void 0&&clearTimeout(e.timer);T.clear();for(const e of[...u.values()])A(e,"DIRECT_NETWORK_CHANGED");for(const e of[...s.values()])S(e.requestId,"DIRECT_NETWORK_CHANGED")}function Ne(){F()}function ve(){C.clear(),F();for(const e of[...d.values()])L(e.requestId,"DIRECT_CONNECTION_FAILED")}return{result:p,transportNodeIds:()=>[...a.keys()],isConnected:D,acquireTerminalTransport:te,acquireDesktopTransport:re,networkInfo:ne,probe:oe,ensureTransport:b,upload:ie,download:se,openFileStream:M,handle:ae,invalidateControlConnection:Ne,invalidateNetwork:F,invalidateNode:Ce,releaseTransport:Ae,close:ve}}function ye(n){const s=new Map;n.forEach(p=>{const D=p;typeof D.id=="string"&&s.set(D.id,D)});const u=[...s.values()].find(p=>p.type==="transport"&&typeof p.selectedCandidatePairId=="string"),a=(u?.selectedCandidatePairId===void 0?void 0:s.get(u.selectedCandidatePairId))??[...s.values()].find(p=>p.type==="candidate-pair"&&p.state==="succeeded"&&p.nominated===!0);if(a?.localCandidateId===void 0||a.remoteCandidateId===void 0)return;const d=s.get(a.localCandidateId),E=s.get(a.remoteCandidateId);if(d===void 0||E===void 0)return;const h=d.address??d.ip,C=E.address??E.ip,f=J(h),T=J(C),y=ge(d.networkType),_=T.scope==="LOOPBACK"?"LOOPBACK":y==="VPN"||f.scope==="VPN_TUN"||T.scope==="VPN_TUN"?"VPN_TUN":f.scope==="PUBLIC"||T.scope==="PUBLIC"?"PUBLIC":f.scope==="PRIVATE"||T.scope==="PRIVATE"?"PRIVATE":"UNKNOWN",V=f.ipVersion===T.ipVersion?f.ipVersion:T.ipVersion!=="UNKNOWN"?T.ipVersion:f.ipVersion,v=(d.protocol??E.protocol)?.toUpperCase();return{scope:_,ipVersion:V,protocol:v==="UDP"||v==="TCP"?v:"UNKNOWN",interfaceType:_==="LOOPBACK"?"LOOPBACK":y}}function J(n){if(n===void 0||n.endsWith(".local"))return{scope:"UNKNOWN",ipVersion:"UNKNOWN"};const s=n.split(".").map(Number);if(s.length===4&&s.every(a=>Number.isInteger(a)&&a>=0&&a<=255)){const[a,d]=s;return a===127?{scope:"LOOPBACK",ipVersion:"IPV4"}:a===198&&(d===18||d===19)?{scope:"VPN_TUN",ipVersion:"IPV4"}:a===10||a===100&&d>=64&&d<=127||a===169&&d===254||a===172&&d>=16&&d<=31||a===192&&d===168?{scope:"PRIVATE",ipVersion:"IPV4"}:{scope:"PUBLIC",ipVersion:"IPV4"}}const u=n.toLowerCase().split("%")[0]??"";return u.includes(":")?u==="::1"?{scope:"LOOPBACK",ipVersion:"IPV6"}:/^f[cd]/u.test(u)||/^fe[89ab]/u.test(u)?{scope:"PRIVATE",ipVersion:"IPV6"}:{scope:"PUBLIC",ipVersion:"IPV6"}:{scope:"UNKNOWN",ipVersion:"UNKNOWN"}}function ge(n){return n==="ethernet"?"ETHERNET":n==="wifi"?"WIFI":n==="cellular"?"CELLULAR":n==="vpn"?"VPN":n==="loopback"?"LOOPBACK":"UNKNOWN"}function R(n){return n.peerConnected&&n.serverOpened&&n.peer.connectionState==="connected"&&n.streamChannel.readyState==="open"}async function qe(n,s){if(s.kind==="CANDIDATE"){if(!k(s.candidate.candidate))throw new Error("DIRECT_CANDIDATE_REJECTED");await n.addIceCandidate(s.candidate)}else if(s.kind==="END_OF_CANDIDATES")await n.addIceCandidate(null);else{if(!be(s.sdp))throw new Error("DIRECT_CANDIDATE_REJECTED");await n.setRemoteDescription({type:s.kind==="ANSWER"?"answer":"offer",sdp:s.sdp})}}function ke(n){return n.direction==="DOWNLOAD"?n.range?.length??n.size:n.size}function Ve(n){return n?.match(/^a=fingerprint:(sha-256 [A-F0-9:]+)\r?$/imu)?.[1]}function k(n){return/\styp host(?:\s|$)/u.test(n)&&(n.trim().split(/\s+/u)[4]?.length??0)>0}function be(n){return n.split(/\r?\n/u).filter(s=>s.startsWith("a=candidate:")).every(s=>k(s.slice(2)))}function ee(n){const s=n.trim().split(/\s+/u);return s[1]!==void 0&&s[2]!==void 0&&s[4]!==void 0?`${s[1]}:${s[2].toLowerCase()}:${s[4].toLowerCase()}`:void 0}function Me(n,s){if(!k(n))return!1;const u=ee(n);return u===void 0||s.has(u)||s.size>=Q?!1:(s.add(u),!0)}function Ue(n,s){if(n===void 0)return;const u=new Set;return n.split(/\r?\n/u).filter(a=>{if(!a.startsWith("a=candidate:"))return!0;const d=a.slice(2);if(!k(d))return!1;const E=ee(d);return E===void 0||u.has(E)||!s.has(E)&&s.size>=Q?!1:(s.add(E),u.add(E),!0)}).join(`\r
|
|
1
|
+
import{c as _e}from"./uuid-BmNSYLtZ.js";import{r as De,s as Se,N as Le,b as me,a as Oe}from"./workbench-live-service-Mn3Hb6LP.js";const Pe=3e3,he=3e3,we=[3e4,6e4,12e4,3e5],Q=32,$=1e4,Z=new Set(["DIRECT_UNAVAILABLE","DIRECT_TRANSFER_UNAVAILABLE","DIRECT_PREPARE_TIMEOUT","DIRECT_CONNECTION_FAILED","DIRECT_CHANNEL_CLOSED","DIRECT_TRANSFER_CONTROL_UNAVAILABLE","DIRECT_NODE_OFFLINE","DIRECT_NODE_INVALIDATED","DIRECT_NETWORK_CHANGED"]);function We(n){const s=new Map,u=new Map,a=new Map,d=new Map,E=new Map,h=new Map,C=new Set,f=new Map,T=new Map,y=n.createPeerConnection??(()=>new RTCPeerConnection({iceServers:[]})),_=n.randomId??(()=>_e().replaceAll("-","")),V=n.probeTimeoutMs??Pe,v=n.probeRetryDelaysMs??we;function p(e,t){const r=a.get(e);return r===void 0||r.request.nodeGeneration!==t?"STALE":R(r)?"DIRECT_AVAILABLE":"RELAY_ONLY"}function D(e,t){return p(e,t)==="DIRECT_AVAILABLE"}function te(e,t){const r=a.get(e);if(r===void 0||r.request.nodeGeneration!==t||!R(r))return;f.set(e,(f.get(e)??0)+1);let o=!1;return{transportSessionId:r.directSessionId,nodeGeneration:r.request.nodeGeneration,get streamPath(){return R(r)&&!r.streamPath.closed&&!o?r.streamPath:void 0},createChannel:i=>{if(!R(r)||a.get(e)!==r)throw new Error("DIRECT_TRANSPORT_UNAVAILABLE");return r.peer.createDataChannel(i,{ordered:!0})},release:()=>{if(o)return;o=!0;const i=(f.get(e)??1)-1;i>0?f.set(e,i):f.delete(e),g(e)}}}function re(e,t){const r=a.get(e);if(!r||r.request.nodeGeneration!==t||!R(r))return;f.set(e,(f.get(e)??0)+1);const o=new Set;let i=!1;return{transportSessionId:r.directSessionId,nodeGeneration:t,maxMessageBytes:Math.min(16384,r.peer.sctp?.maxMessageSize||16384),waitChannel(c,I){if(i||I.aborted||a.get(e)!==r||!R(r)||!/^[A-Za-z0-9_-]{8,128}$/u.test(c)||r.desktopTaken.has(c)||r.desktopWaiters.has(c)||r.desktopWaiters.size>=4)return Promise.reject(new Error("DESKTOP_TRANSPORT_ERROR"));const l=r.desktopChannels.get(c);return l?(r.desktopChannels.delete(c),clearTimeout(l.timer),l.channel.onmessage=null,l.channel.onclose=null,l.channel.readyState==="closed"||l.channel.readyState==="closing"?Promise.reject(new Error("DESKTOP_TRANSPORT_ERROR")):(z(r,c,l.channel),Promise.resolve(l.channel))):(o.add(c),new Promise((O,N)=>{const P=setTimeout(()=>q(),15e3),W=()=>{clearTimeout(P),o.delete(c),r.desktopWaiters.delete(c),I.removeEventListener("abort",q)},q=()=>{W(),N(new Error("DESKTOP_TRANSPORT_ERROR"))};r.desktopWaiters.set(c,{resolve:K=>{W(),O(K)},reject:K=>{W(),N(K)}}),I.addEventListener("abort",q,{once:!0}),I.aborted&&q()}))},release(){if(i)return;i=!0;for(const I of o)r.desktopWaiters.get(I)?.reject(new Error("DESKTOP_TRANSPORT_ERROR"));const c=(f.get(e)??1)-1;c>0?f.set(e,c):f.delete(e),g(e)}}}function ne(e,t){return D(e,t)?h.get(e):void 0}function oe(e,t){return b(e,t)}function b(e,t){const r=T.get(e);r!==void 0&&(r.generation!==t?w(e):r.timer!==void 0&&(clearTimeout(r.timer),r.timer=void 0)),C.delete(e);const o=a.get(e);if(o!==void 0&&o.request.nodeGeneration===t)return R(o)?Promise.resolve("DIRECT_AVAILABLE"):o.request.promise;o!==void 0&&A(o,"DIRECT_NODE_GENERATION_MISMATCH",!1);for(const l of s.values())if(l.nodeId===e){if(l.nodeGeneration===t)return l.promise;Y(l)}let i;const c=new Promise(l=>i=l),I={requestId:_(),nodeId:e,nodeGeneration:t,resolve:i,promise:c,timer:void 0,attempt:1};return H(I),c}function H(e){e.timer=setTimeout(()=>S(e.requestId,"DIRECT_CONNECTION_TIMEOUT"),V),s.set(e.requestId,e);const t={type:"direct.prepare",requestId:e.requestId,nodeId:e.nodeId,nodeGeneration:e.nodeGeneration,purpose:"TRANSPORT"};n.send(t)||S(e.requestId,"DIRECT_TRANSFER_UNAVAILABLE")}async function ie(e){if(e.descriptor.direction!=="UPLOAD")throw new Error("DIRECT_TRANSFER_INVALID");const t=e.signal??new AbortController().signal,r=await M(e.nodeId,e.nodeGeneration,e.descriptor,t);if(r===void 0)throw new Error("DIRECT_UNAVAILABLE");try{await Se(r,e.file,t,e.onProgress)}catch(o){throw r.close(),G(o)}}async function se(e){try{if(e.descriptor.direction!=="DOWNLOAD")throw new Error("DIRECT_TRANSFER_INVALID");const t=e.signal??new AbortController().signal,r=await M(e.nodeId,e.nodeGeneration,e.descriptor,t);if(r===void 0)throw new Error("DIRECT_UNAVAILABLE");try{await De(r,e.sink,ke(e.descriptor),t,e.onProgress)}catch(o){throw r.close(),G(o)}}catch(t){throw await e.sink.abort().catch(()=>{}),t}}function M(e,t,r,o){if(o.aborted)return Promise.reject(new Error("DIRECT_TRANSFER_CANCELLED"));const i=Re(e,t);if(i===void 0||i.streamPath.closed)return Promise.resolve(void 0);const c=_(),{promise:I,resolve:l,reject:O}=Promise.withResolvers(),N=()=>L(c,"DIRECT_TRANSFER_CANCELLED"),P={requestId:c,nodeId:e,nodeGeneration:t,transportSessionId:i.directSessionId,descriptor:r,resolve:l,reject:O,removeAbort:()=>o.removeEventListener("abort",N),timer:setTimeout(()=>L(c,"DIRECT_PREPARE_TIMEOUT"),he)};return d.set(c,P),o.addEventListener("abort",N,{once:!0}),ce(P)||L(c,"DIRECT_TRANSFER_UNAVAILABLE"),I}function ce(e){return n.send({type:"direct.prepare",requestId:e.requestId,nodeId:e.nodeId,nodeGeneration:e.nodeGeneration,purpose:"TRANSFER",transportSessionId:e.transportSessionId,transfer:e.descriptor})}function ae(e){if(e.type==="direct.error"&&e.requestId!==void 0){s.has(e.requestId)?S(e.requestId,e.code):d.has(e.requestId)&&L(e.requestId,e.code);return}if(e.type==="direct.prepared"){e.purpose==="TRANSPORT"?de(e.requestId,e.directSessionId):Ee(e.requestId,e.directSessionId,e.transportSessionId);return}const t=u.get(e.directSessionId??"");if(t!==void 0){le(t,e);return}const r=E.get(e.directSessionId??"");r!==void 0&&Te(r,e)}async function de(e,t){const r=s.get(e);if(r!==void 0)try{const o=y(),i=o.createDataChannel(Le,{ordered:!0}),c={request:r,directSessionId:t,peer:o,streamChannel:i,streamPath:me({carrier:Oe(i),maxStreams:32}),sentCandidateKeys:new Set,desktopChannels:new Map,desktopWaiters:new Map,desktopTaken:new Set,serverOpened:!1,peerConnected:!1};o.ondatachannel=P=>pe(c,P.channel),u.set(t,c),a.set(r.nodeId,c),i.addEventListener("open",()=>U(c),{once:!0}),i.addEventListener("close",()=>A(c,"DIRECT_CHANNEL_CLOSED",!1),{once:!0}),ue(c);const I=await o.createOffer();await o.setLocalDescription(I);const l=o.localDescription?.sdp,O=Ue(l,c.sentCandidateKeys),N=Ve(l);if(O===void 0||N===void 0)throw new Error("DIRECT_FINGERPRINT_INVALID");n.send({type:"direct.signal",directSessionId:t,signal:{kind:"OFFER",sdp:O,fingerprint:N}})}catch(o){const i=u.get(t);i!==void 0?A(i,X(o)):S(e,X(o))}}function ue(e){const{peer:t,directSessionId:r}=e;t.onicecandidate=o=>{const i=o.candidate;if(i===null){n.send({type:"direct.signal",directSessionId:r,signal:{kind:"END_OF_CANDIDATES"}});return}const c=i.toJSON();typeof c.candidate!="string"||!Me(c.candidate,e.sentCandidateKeys)||n.send({type:"direct.signal",directSessionId:r,signal:{kind:"CANDIDATE",candidate:{candidate:c.candidate,sdpMid:c.sdpMid??null,sdpMLineIndex:c.sdpMLineIndex??null}}})},t.onconnectionstatechange=()=>{t.connectionState==="connected"&&(e.peerConnected=!0,n.send({type:"direct.connected",directSessionId:r}),U(e)),(t.connectionState==="failed"||t.connectionState==="closed")&&A(e,"DIRECT_CONNECTION_FAILED",!1)}}function le(e,t){if(t.type==="direct.signal"){qe(e.peer,t.signal).catch(()=>A(e,"DIRECT_SIGNAL_INVALID"));return}if(t.type==="direct.opened"){e.serverOpened=!0,U(e);return}(t.type==="direct.error"||t.type==="direct.closed")&&A(e,t.code,!1)}function U(e){u.get(e.directSessionId)!==e||!R(e)||(s.delete(e.request.requestId)&&(clearTimeout(e.request.timer),w(e.request.nodeId),e.heartbeat=setInterval(()=>{n.send({type:"direct.heartbeat",directSessionId:e.directSessionId})||A(e,"DIRECT_TRANSFER_CONTROL_UNAVAILABLE")},$),e.request.resolve("DIRECT_AVAILABLE"),n.onTransportReady?.(e.request.nodeId)),n.onProbeResultChange?.(),fe(e))}async function fe(e){if(typeof e.peer.getStats=="function")try{const t=ye(await e.peer.getStats());if(t===void 0||a.get(e.request.nodeId)!==e||!R(e))return;h.set(e.request.nodeId,t),n.onProbeResultChange?.()}catch{}}function Ee(e,t,r){const o=d.get(e),i=u.get(r??"");if(o===void 0||i===void 0||o.transportSessionId!==i.directSessionId||!R(i)){n.send({type:"direct.cancel",directSessionId:t}),o!==void 0&&L(e,"DIRECT_TRANSFER_UNAVAILABLE");return}E.set(t,{request:o,directSessionId:t,path:i.streamPath,scope:new AbortController,opening:!1})}function Te(e,t){if(t.type==="direct.grant"){Ie(e,t.grant);return}(t.type==="direct.error"||t.type==="direct.closed")&&m(e,t.code)}async function Ie(e,t){if(e.opening)return;e.opening=!0,e.heartbeat=setInterval(()=>n.send({type:"direct.heartbeat",directSessionId:e.directSessionId}),$);const r=e.scope.signal;try{const o=e.request.descriptor.direction==="UPLOAD"?"file-upload":"file-download",i=await e.path.openStream({kind:o,grant:t},r);if(r.aborted){i?.close();return}if(clearTimeout(e.request.timer),i===void 0){n.send({type:"direct.cancel",directSessionId:e.directSessionId}),e.request.resolve(void 0),m(e);return}e.stream=i,e.request.resolve(i),i.finished.then(()=>m(e))}catch(o){if(r.aborted)return;const i=o instanceof Error?o.message:"DIRECT_TRANSFER_FAILED";i!=="NODE_STREAM_DISCONNECTED"&&n.send({type:"direct.cancel",directSessionId:e.directSessionId}),m(e,i)}}function Y(e){s.delete(e.requestId),clearTimeout(e.timer),e.resolve("RELAY_ONLY")}function S(e,t){const r=s.get(e);if(r===void 0)return;s.delete(e),clearTimeout(r.timer);const o=[...u.values()].find(i=>i.request===r);if(o!==void 0&&B(o,t,!0),r.attempt===1){r.attempt=2,r.requestId=_(),H(r);return}r.resolve("RELAY_ONLY"),j(r.nodeId,r.nodeGeneration),n.onProbeResultChange?.()}function A(e,t,r=!0){B(e,t,r)&&(e.request.resolve("RELAY_ONLY"),j(e.request.nodeId,e.request.nodeGeneration),n.onProbeResultChange?.())}function pe(e,t){const r=/^mar-desktop-([A-Za-z0-9_-]{8,128})$/u.exec(t.label);if(!r||u.get(e.directSessionId)!==e||!t.ordered||t.maxRetransmits!==null||t.maxPacketLifeTime!==null){t.close();return}const o=r[1];if(e.desktopTaken.has(o)){t.close();return}const i=e.desktopWaiters.get(o);if(i){z(e,o,t),i.resolve(t);return}if(e.desktopChannels.has(o)||e.desktopChannels.size>=4){t.close();return}const c=()=>{const l=e.desktopChannels.get(o);l?.channel===t&&(clearTimeout(l.timer),e.desktopChannels.delete(o),t.onmessage=null,t.onclose=null,t.close())},I=setTimeout(c,15e3);e.desktopChannels.set(o,{channel:t,timer:I}),t.onmessage=c,t.onclose=c}function z(e,t,r){e.desktopTaken.add(t),r.addEventListener("close",()=>e.desktopTaken.delete(t),{once:!0})}function B(e,t,r){if(!u.delete(e.directSessionId))return!1;for(const o of e.desktopWaiters.values())o.reject(new Error(t));for(const{channel:o,timer:i}of e.desktopChannels.values())clearTimeout(i),o.onmessage=null,o.onclose=null,o.close();e.desktopChannels.clear(),e.desktopTaken.clear(),e.peer.ondatachannel=null,a.get(e.request.nodeId)===e&&a.delete(e.request.nodeId),h.delete(e.request.nodeId),s.delete(e.request.requestId),clearTimeout(e.request.timer),e.heartbeat!==void 0&&clearInterval(e.heartbeat),e.streamPath.close();for(const o of[...E.values()])o.request.transportSessionId===e.directSessionId&&m(o,t);return r&&n.send({type:"direct.cancel",directSessionId:e.directSessionId}),e.peer.close(),!0}function L(e,t){const r=d.get(e);if(r===void 0)return;const o=[...E.values()].find(i=>i.request===r);if(o!==void 0){n.send({type:"direct.cancel",directSessionId:o.directSessionId}),m(o,o.opening&&t==="DIRECT_PREPARE_TIMEOUT"?"DIRECT_OPEN_TIMEOUT":t);return}d.delete(e),clearTimeout(r.timer),r.removeAbort(),Z.has(t)?r.resolve(void 0):r.reject(new Error(t)),g(r.nodeId)}function m(e,t){if(!E.delete(e.directSessionId))return;const r=e.request;d.delete(r.requestId),clearTimeout(r.timer),r.removeAbort(),e.heartbeat!==void 0&&clearInterval(e.heartbeat),t!==void 0&&(e.stream!==void 0?e.stream.reset(t):!e.opening&&Z.has(t)?r.resolve(void 0):r.reject(G(new Error(t)))),e.scope.abort(),g(r.nodeId)}function Re(e,t){const r=a.get(e);return r!==void 0&&r.request.nodeGeneration===t&&R(r)?r:void 0}function j(e,t){if(n.shouldRetryProbe?.(e,t)!==!0||v.length===0)return;const r=T.get(e),o=r?.generation===t?r.attempt+1:0,i=v[Math.min(o,v.length-1)];if(i===void 0)return;r?.timer!==void 0&&clearTimeout(r.timer);const c={generation:t,attempt:o,timer:void 0};c.timer=setTimeout(()=>{b(e,t)},i),T.set(e,c)}function w(e){const t=T.get(e);t?.timer!==void 0&&clearTimeout(t.timer),T.delete(e)}function Ae(e){if(w(e),[...d.values()].some(t=>t.nodeId===e)||(f.get(e)??0)>0){C.add(e);return}x(e)}function g(e){!C.has(e)||[...d.values()].some(t=>t.nodeId===e)||(f.get(e)??0)>0||x(e)}function x(e){C.delete(e),w(e);const t=a.get(e);t!==void 0&&(B(t,"DIRECT_TRANSPORT_RELEASED",!0),t.request.resolve("RELAY_ONLY"));for(const r of s.values())r.nodeId===e&&Y(r);n.onProbeResultChange?.()}function Ce(e){C.delete(e),w(e);const t=a.get(e);t!==void 0&&A(t,"DIRECT_NODE_INVALIDATED");for(const r of[...s.values()])r.nodeId===e&&S(r.requestId,"DIRECT_NODE_INVALIDATED")}function F(){for(const e of T.values())e.timer!==void 0&&clearTimeout(e.timer);T.clear();for(const e of[...u.values()])A(e,"DIRECT_NETWORK_CHANGED");for(const e of[...s.values()])S(e.requestId,"DIRECT_NETWORK_CHANGED")}function Ne(){F()}function ve(){C.clear(),F();for(const e of[...d.values()])L(e.requestId,"DIRECT_CONNECTION_FAILED")}return{result:p,transportNodeIds:()=>[...a.keys()],isConnected:D,acquireTerminalTransport:te,acquireDesktopTransport:re,networkInfo:ne,probe:oe,ensureTransport:b,upload:ie,download:se,openFileStream:M,handle:ae,invalidateControlConnection:Ne,invalidateNetwork:F,invalidateNode:Ce,releaseTransport:Ae,close:ve}}function ye(n){const s=new Map;n.forEach(p=>{const D=p;typeof D.id=="string"&&s.set(D.id,D)});const u=[...s.values()].find(p=>p.type==="transport"&&typeof p.selectedCandidatePairId=="string"),a=(u?.selectedCandidatePairId===void 0?void 0:s.get(u.selectedCandidatePairId))??[...s.values()].find(p=>p.type==="candidate-pair"&&p.state==="succeeded"&&p.nominated===!0);if(a?.localCandidateId===void 0||a.remoteCandidateId===void 0)return;const d=s.get(a.localCandidateId),E=s.get(a.remoteCandidateId);if(d===void 0||E===void 0)return;const h=d.address??d.ip,C=E.address??E.ip,f=J(h),T=J(C),y=ge(d.networkType),_=T.scope==="LOOPBACK"?"LOOPBACK":y==="VPN"||f.scope==="VPN_TUN"||T.scope==="VPN_TUN"?"VPN_TUN":f.scope==="PUBLIC"||T.scope==="PUBLIC"?"PUBLIC":f.scope==="PRIVATE"||T.scope==="PRIVATE"?"PRIVATE":"UNKNOWN",V=f.ipVersion===T.ipVersion?f.ipVersion:T.ipVersion!=="UNKNOWN"?T.ipVersion:f.ipVersion,v=(d.protocol??E.protocol)?.toUpperCase();return{scope:_,ipVersion:V,protocol:v==="UDP"||v==="TCP"?v:"UNKNOWN",interfaceType:_==="LOOPBACK"?"LOOPBACK":y}}function J(n){if(n===void 0||n.endsWith(".local"))return{scope:"UNKNOWN",ipVersion:"UNKNOWN"};const s=n.split(".").map(Number);if(s.length===4&&s.every(a=>Number.isInteger(a)&&a>=0&&a<=255)){const[a,d]=s;return a===127?{scope:"LOOPBACK",ipVersion:"IPV4"}:a===198&&(d===18||d===19)?{scope:"VPN_TUN",ipVersion:"IPV4"}:a===10||a===100&&d>=64&&d<=127||a===169&&d===254||a===172&&d>=16&&d<=31||a===192&&d===168?{scope:"PRIVATE",ipVersion:"IPV4"}:{scope:"PUBLIC",ipVersion:"IPV4"}}const u=n.toLowerCase().split("%")[0]??"";return u.includes(":")?u==="::1"?{scope:"LOOPBACK",ipVersion:"IPV6"}:/^f[cd]/u.test(u)||/^fe[89ab]/u.test(u)?{scope:"PRIVATE",ipVersion:"IPV6"}:{scope:"PUBLIC",ipVersion:"IPV6"}:{scope:"UNKNOWN",ipVersion:"UNKNOWN"}}function ge(n){return n==="ethernet"?"ETHERNET":n==="wifi"?"WIFI":n==="cellular"?"CELLULAR":n==="vpn"?"VPN":n==="loopback"?"LOOPBACK":"UNKNOWN"}function R(n){return n.peerConnected&&n.serverOpened&&n.peer.connectionState==="connected"&&n.streamChannel.readyState==="open"}async function qe(n,s){if(s.kind==="CANDIDATE"){if(!k(s.candidate.candidate))throw new Error("DIRECT_CANDIDATE_REJECTED");await n.addIceCandidate(s.candidate)}else if(s.kind==="END_OF_CANDIDATES")await n.addIceCandidate(null);else{if(!be(s.sdp))throw new Error("DIRECT_CANDIDATE_REJECTED");await n.setRemoteDescription({type:s.kind==="ANSWER"?"answer":"offer",sdp:s.sdp})}}function ke(n){return n.direction==="DOWNLOAD"?n.range?.length??n.size:n.size}function Ve(n){return n?.match(/^a=fingerprint:(sha-256 [A-F0-9:]+)\r?$/imu)?.[1]}function k(n){return/\styp host(?:\s|$)/u.test(n)&&(n.trim().split(/\s+/u)[4]?.length??0)>0}function be(n){return n.split(/\r?\n/u).filter(s=>s.startsWith("a=candidate:")).every(s=>k(s.slice(2)))}function ee(n){const s=n.trim().split(/\s+/u);return s[1]!==void 0&&s[2]!==void 0&&s[4]!==void 0?`${s[1]}:${s[2].toLowerCase()}:${s[4].toLowerCase()}`:void 0}function Me(n,s){if(!k(n))return!1;const u=ee(n);return u===void 0||s.has(u)||s.size>=Q?!1:(s.add(u),!0)}function Ue(n,s){if(n===void 0)return;const u=new Set;return n.split(/\r?\n/u).filter(a=>{if(!a.startsWith("a=candidate:"))return!0;const d=a.slice(2);if(!k(d))return!1;const E=ee(d);return E===void 0||u.has(E)||!s.has(E)&&s.size>=Q?!1:(s.add(E),u.add(E),!0)}).join(`\r
|
|
2
2
|
`)}function X(n){return n instanceof Error&&/^[A-Z][A-Z0-9_]{0,127}$/u.test(n.message)?n.message:"DIRECT_CONNECTION_FAILED"}function G(n){return n instanceof Error?n.message==="NODE_STREAM_DISCONNECTED"?new Error("DIRECT_CHANNEL_CLOSED"):n:new Error("DIRECT_TRANSFER_FAILED")}export{We as c};
|
package/web/assets/{xychartDiagram-S5SC5T6Z-D78O3RsI.js → xychartDiagram-S5SC5T6Z-BExraG4Q.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{s as pi,g as mi,p as $t,o as yi,a as bi,b as wi,_ as a,l as Ut,F as Ai,d as Ci,q as Si,z as Dt,i as Ri,B as qt,D as _i,H as ki,al as Ti}from"./mermaid.core-
|
|
1
|
+
import{s as pi,g as mi,p as $t,o as yi,a as bi,b as wi,_ as a,l as Ut,F as Ai,d as Ci,q as Si,z as Dt,i as Ri,B as qt,D as _i,H as ki,al as Ti}from"./mermaid.core-D0YHAXWX.js";import{l as Xt}from"./transform-YfG62m2h.js";import{i as Di}from"./init-Gi6I4Gst.js";import{o as Pi}from"./ordinal-Cboi1Yqb.js";import{l as Nt}from"./linear-DcWs93MI.js";import"./index-CKNeNsn1.js";import"./FilePreviewState-B5i6_Hbj.js";import"./workbench-live-service-Mn3Hb6LP.js";import"./mobile-dialog-return-service-szw78Fb_.js";import"./index-DZaMF5Cc.js";import"./d3-format-lk9t_ahw.js";function vi(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function St(){var e=Pi().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,h,p=!1,u=0,f=0,R=.5;delete e.unknown;function C(){var y=t().length,E=n<s,v=E?n:s,L=E?s:n;o=(L-v)/Math.max(1,y-u+f*2),p&&(o=Math.floor(o)),v+=(L-v-o*(y-u))*R,h=o*(1-u),p&&(v=Math.round(v),h=Math.round(h));var M=vi(y).map(function(b){return v+o*b});return i(E?M.reverse():M)}return e.domain=function(y){return arguments.length?(t(y),C()):t()},e.range=function(y){return arguments.length?([s,n]=y,s=+s,n=+n,C()):[s,n]},e.rangeRound=function(y){return[s,n]=y,s=+s,n=+n,p=!0,C()},e.bandwidth=function(){return h},e.step=function(){return o},e.round=function(y){return arguments.length?(p=!!y,C()):p},e.padding=function(y){return arguments.length?(u=Math.min(1,f=+y),C()):u},e.paddingInner=function(y){return arguments.length?(u=Math.min(1,y),C()):u},e.paddingOuter=function(y){return arguments.length?(f=+y,C()):f},e.align=function(y){return arguments.length?(R=Math.max(0,Math.min(1,y)),C()):R},e.copy=function(){return St(t(),[s,n]).round(p).paddingInner(u).paddingOuter(f).align(R)},Di.apply(C(),arguments)}var Rt=(function(){var e=a(function(W,l,g,d){for(g=g||{},d=W.length;d--;g[W[d]]=l);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],h=[1,7],p=[1,5,10,12,14,16,18,19,21,23,36,37,38],u=[1,25],f=[1,26],R=[1,28],C=[1,29],y=[1,30],E=[1,31],v=[1,32],L=[1,33],M=[1,34],b=[1,35],D=[1,36],c=[1,37],B=[1,43],F=[1,42],X=[1,47],N=[1,50],k=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],S=[1,65],O=[26,28],T={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:a(function(l,g,d,x,_,r,lt){var m=r.length-1;switch(_){case 5:x.setOrientation(r[m]);break;case 9:x.setDiagramTitle(r[m].text.trim());break;case 12:x.setLineData({text:"",type:"text"},r[m]);break;case 13:x.setLineData(r[m-1],r[m]);break;case 14:x.setBarData({text:"",type:"text"},r[m]);break;case 15:x.setBarData(r[m-1],r[m]);break;case 16:this.$=r[m].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=r[m].trim(),x.setAccDescription(this.$);break;case 19:this.$=r[m-1];break;case 20:case 30:this.$=[r[m-2],...r[m]];break;case 21:case 31:this.$=[r[m]];break;case 22:this.$={value:Number(r[m-1]),label:r[m]};break;case 23:this.$={value:Number(r[m]),label:""};break;case 24:x.setXAxisTitle(r[m]);break;case 25:x.setXAxisTitle(r[m-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(r[m]);break;case 28:x.setXAxisRangeData(Number(r[m-2]),Number(r[m]));break;case 29:this.$=r[m-1];break;case 32:x.setYAxisTitle(r[m]);break;case 33:x.setYAxisTitle(r[m-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(r[m-2]),Number(r[m]));break;case 39:this.$={text:r[m],type:"text"};break;case 40:this.$={text:r[m],type:"text"};break;case 41:this.$={text:r[m],type:"markdown"};break;case 42:this.$=r[m];break;case 43:this.$=r[m-1]+""+r[m];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:n,37:o,38:h}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:n,37:o,38:h}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:n,37:o,38:h}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,36]),e(p,[2,37]),e(p,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:n,37:o,38:h}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,36:n,37:o,38:h}),{11:23,30:u,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{11:39,13:38,24:B,29:F,30:u,31:40,32:41,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{11:45,15:44,29:X,30:u,35:46,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{11:49,17:48,24:N,30:u,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{11:52,17:51,24:N,30:u,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},{20:[1,53]},{22:[1,54]},e(k,[2,18]),{1:[2,2]},e(k,[2,8]),e(k,[2,9]),e(H,[2,39],{41:55,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(k,[2,10]),e(k,[2,24],{32:41,31:56,24:B,29:F}),e(k,[2,26]),e(k,[2,27]),{33:[1,57]},{11:59,30:u,34:58,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},e(k,[2,11]),e(k,[2,32],{35:60,29:X}),e(k,[2,34]),{33:[1,61]},e(k,[2,12]),{17:62,24:N},{25:63,27:64,29:S},e(k,[2,14]),{17:66,24:N},e(k,[2,16]),e(k,[2,17]),e(A,[2,43]),e(k,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(k,[2,33]),{29:[1,70]},e(k,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(O,[2,23],{30:[1,73]}),e(k,[2,15]),e(k,[2,28]),e(k,[2,29]),{11:59,30:u,34:74,39:24,40:f,41:27,42:R,43:C,44:y,45:E,46:v,47:L,48:M,49:b,50:D,51:c},e(k,[2,35]),e(k,[2,19]),{25:75,27:64,29:S},e(O,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:a(function(l,g){if(g.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=g,d}},"parseError"),parse:a(function(l){var g=this,d=[0],x=[],_=[null],r=[],lt=this.table,m="",dt=0,Ot=0,ui=2,Vt=1,di=r.slice.call(arguments,1),P=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);P.setInput(l,$.yy),$.yy.lexer=P,$.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var wt=P.yylloc;r.push(wt);var xi=P.options&&P.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(z){d.length=d.length-2*z,_.length=_.length-z,r.length=r.length-z}a(fi,"popStack");function Ft(){var z;return z=x.pop()||P.lex()||Vt,typeof z!="number"&&(z instanceof Array&&(x=z,z=x.pop()),z=g.symbols_[z]||z),z}a(Ft,"lex");for(var I,U,V,At,j={},xt,Y,Wt,ft;;){if(U=d[d.length-1],this.defaultActions[U]?V=this.defaultActions[U]:((I===null||typeof I>"u")&&(I=Ft()),V=lt[U]&<[U][I]),typeof V>"u"||!V.length||!V[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");P.showPosition?Ct="Parse error on line "+(dt+1)+`:
|
|
2
2
|
`+P.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Ct="Parse error on line "+(dt+1)+": Unexpected "+(I==Vt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Ct,{text:P.match,token:this.terminals_[I]||I,line:P.yylineno,loc:wt,expected:ft})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+I);switch(V[0]){case 1:d.push(I),_.push(P.yytext),r.push(P.yylloc),d.push(V[1]),I=null,Ot=P.yyleng,m=P.yytext,dt=P.yylineno,wt=P.yylloc;break;case 2:if(Y=this.productions_[V[1]][1],j.$=_[_.length-Y],j._$={first_line:r[r.length-(Y||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(Y||1)].first_column,last_column:r[r.length-1].last_column},xi&&(j._$.range=[r[r.length-(Y||1)].range[0],r[r.length-1].range[1]]),At=this.performAction.apply(j,[m,Ot,dt,$.yy,V[1],_,r].concat(di)),typeof At<"u")return At;Y&&(d=d.slice(0,-1*Y*2),_=_.slice(0,-1*Y),r=r.slice(0,-1*Y)),d.push(this.productions_[V[1]][0]),_.push(j.$),r.push(j._$),Wt=lt[d[d.length-2]][d[d.length-1]],d.push(Wt);break;case 3:return!0}}return!0},"parse")},ht=(function(){var W={EOF:1,parseError:a(function(g,d){if(this.yy.parser)this.yy.parser.parseError(g,d);else throw new Error(g)},"parseError"),setInput:a(function(l,g){return this.yy=g||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var g=l.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:a(function(l){var g=l.length,d=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===x.length?this.yylloc.first_column:0)+x[x.length-d.length].length-d[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(l){this.unput(this.match.slice(l))},"less"),pastInput:a(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var l=this.pastInput(),g=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
5
5
|
`+g+"^"},"showPosition"),test_match:a(function(l,g){var d,x,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),x=l[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],d=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var r in _)this[r]=_[r];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,g,d,x;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),r=0;r<_.length;r++)if(d=this._input.match(this.rules[_[r]]),d&&(!g||d[0].length>g[0].length)){if(g=d,x=r,this.options.backtrack_lexer){if(l=this.test_match(d,_[r]),l!==!1)return l;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(l=this.test_match(g,_[x]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
6
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var g=this.next();return g||this.lex()},"lex"),begin:a(function(g){this.conditionStack.push(g)},"begin"),popState:a(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:a(function(g){this.begin(g)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(g,d,x,_){switch(x){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 33;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 29;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return W})();T.lexer=ht;function G(){this.yy={}}return a(G,"Parser"),G.prototype=T,T.Parser=G,new G})();Rt.parser=Rt;var Li=Rt;function pt(e){return e.type==="bar"}a(pt,"isBarPlot");function mt(e){return e.type==="band"}a(mt,"isBandAxisData");function Q(e){return e.type==="linear"}a(Q,"isLinearAxisData");var K,Pt=(K=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,h)=>Math.max(h.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const h=Ti(n,1,o),p=h?h.width:o.length*i,u=h?h.height:i;s.width=Math.max(s.width,p),s.height=Math.max(s.height,u)}return n.remove(),s}},a(K,"TextDimensionCalculatorWithFont"),K),Yt=.7,Ht=.2,Z,Gt=(Z=class{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Yt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Yt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ht*t.width;this.outerPadding=Math.min(s.width/2,n);let o=s.height;this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0&&(o=Math.max(o,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*s.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*s.height))),o+=this.axisConfig.labelPadding*2,this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ht*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateOffsetByRotation(t){const i=this.normalizedLabelRotationInRad;return i===0?0:Math.sin(i)*this.getLabelDimension()[t]/2}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},a(Z,"BaseAxis"),Z),J,Ei=(J=class extends Gt{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=St().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=St().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ut.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},a(J,"BandAxis"),J),tt,Mi=(tt=class extends Gt{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=Nt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=Nt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},a(tt,"LinearAxis"),tt);function _t(e,t,i,s){const n=new Pt(s);return mt(e)?new Ei(t,i,e.categories,e.title,n):new Mi(t,i,[e.min,e.max],e.title,n)}a(_t,"getAxis");var it,Ii=(it=class{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},a(it,"ChartTitle"),it);function jt(e,t,i,s){const n=new Pt(s);return new Ii(n,e,t,i)}a(jt,"getChartTitleComponent");var zi=.75,Bi=.5,Oi=.35;function kt(e){return{fontSize:e,markerSize:e*zi,markerSpacing:e*Oi,itemSpacing:e*Bi}}a(kt,"getLegendLayout");var et,Vi=(et=class{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(f=>f.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};const{fontSize:i,markerSize:s,markerSpacing:n,itemSpacing:o}=kt(this.chartConfig.legendFontSize),h=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(f=>f.title),i),p=this.chartConfig.legendPadding*2+s+n+h.width,u=this.chartConfig.legendPadding*2+this.visiblePlots.length*i+(this.visiblePlots.length-1)*o;return p<=t.width&&u<=t.height?(this.boundingRect.width=p,this.boundingRect.height=u):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];const{fontSize:t,markerSize:i,markerSpacing:s,itemSpacing:n}=kt(this.chartConfig.legendFontSize),o=t+n,h=this.boundingRect.x+this.chartConfig.legendPadding,p=this.boundingRect.y+this.chartConfig.legendPadding,u=[],f=[];for(const[R,C]of this.visiblePlots.entries())if(pt(C))u.push({x:h,y:p+R*o,width:i,height:i,fill:C.fill,strokeFill:C.fill,strokeWidth:0});else{const y=p+R*o+i/2;f.push({path:`M ${h},${y} L ${h+i},${y}`,strokeFill:C.strokeFill,strokeWidth:C.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:u},{groupTexts:["legend","markers"],type:"path",data:f},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((R,C)=>({text:R.title,x:h+i+s,y:p+C*o+i/2,fill:this.chartThemeConfig.legendTextColor,fontSize:t,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}},a(et,"ChartLegend"),et);function Qt(e,t,i,s){const n=new Pt(s);return new Vi(n,e,t,i)}a(Qt,"getChartLegendComponent");var st,Fi=(st=class{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]);let i;if(this.orientation==="horizontal"?i=Xt().y(n=>n[0]).x(n=>n[1])(t):i=Xt().x(n=>n[0]).y(n=>n[1])(t),!i)return[];const s=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){const h=[];for(const[p,[u,f]]of t.entries()){const R=this.plotData.pointLabels[p];R&&(this.orientation==="horizontal"?h.push({x:f+10,y:u,text:R,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0}):h.push({x:u,y:f-10,text:R,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0}))}h.length>0&&s.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:h})}return s}},a(st,"LinePlot"),st),nt,Wi=(nt=class{constructor(t,i,s,n,o,h){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=h}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},a(nt,"BarPlot"),nt),at,Xi=(at=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new Fi(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new Wi(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}},a(at,"BasePlot"),at);function Kt(e,t,i){return new Xi(e,t,i)}a(Kt,"getPlotComponent");var ot,Ni=(ot=class{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:jt(t,i,s,n),plot:Kt(t,i,s),legend:Qt(t,i,s,n),xAxis:_t(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:_t(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o={width:0,height:0},h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),p=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),u=this.componentStore.plot.calculateSpace({width:h,height:p});t-=u.width,i-=u.height,u=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=u.height,i-=u.height,this.componentStore.xAxis.setAxisPosition("bottom"),u=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=u.height,this.componentStore.yAxis.setAxisPosition("left"),u=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=u.width,t-=u.width,o=this.componentStore.legend.calculateSpace({width:t,height:p}),t-=o.width,t>0&&(h+=t,t=0),i>0&&(p+=i,i=0),this.componentStore.plot.calculateSpace({width:h,height:p}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.legend.setBoundingBoxXY({x:s+h,y:n+Math.max((p-o.height)/2,0)}),this.componentStore.xAxis.setRange([s,s+h]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+p}),this.componentStore.yAxis.setRange([n,n+p]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(f=>pt(f))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,h={width:0,height:0},p=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),u=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:p,height:u});t-=f.width,i-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=f.height,i-=f.height,this.componentStore.xAxis.setAxisPosition("left"),f=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=f.width,n=f.width,this.componentStore.yAxis.setAxisPosition("top"),f=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=f.height,o=s+f.height,h=this.componentStore.legend.calculateSpace({width:t,height:u}),t-=h.width,t>0&&(p+=t,t=0),i>0&&(u+=i,i=0),this.componentStore.plot.calculateSpace({width:p,height:u}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.legend.setBoundingBoxXY({x:n+p,y:o+Math.max((u-h.height)/2,0)}),this.componentStore.yAxis.setRange([n,n+p]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+u]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(R=>pt(R))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},a(ot,"Orchestrator"),ot),rt,Yi=(rt=class{static build(t,i,s,n){return new Ni(t,i,s,n).getDrawableElement()}},a(rt,"XYChartBuilder"),rt),ct=0,Zt,gt=Et(),ut=Lt(),w=Mt(),Tt=ut.plotColorPalette.split(",").map(e=>e.trim()),yt=!1,vt=!1;function Lt(){const e=ki(),t=Dt();return qt(e.xyChart,t.themeVariables.xyChart)}a(Lt,"getChartDefaultThemeConfig");function Et(){const e=Dt();return qt(_i.xyChart,e.xyChart)}a(Et,"getChartDefaultConfig");function Mt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}a(Mt,"getChartDefaultData");function q(e){const t=Dt();return Ri(e.trim(),t)}a(q,"textSanitizer");function Jt(e){Zt=e}a(Jt,"setTmpSVGG");function ti(e){e==="horizontal"?gt.chartOrientation="horizontal":gt.chartOrientation="vertical"}a(ti,"setOrientation");function ii(e){w.xAxis.title=q(e.text)}a(ii,"setXAxisTitle");function It(e,t){w.xAxis={type:"linear",title:w.xAxis.title,min:e,max:t},yt=!0}a(It,"setXAxisRangeData");function ei(e){w.xAxis={type:"band",title:w.xAxis.title,categories:e.map(t=>q(t.text))},yt=!0}a(ei,"setXAxisBand");function si(e){w.yAxis.title=q(e.text)}a(si,"setYAxisTitle");function ni(e,t){w.yAxis={type:"linear",title:w.yAxis.title,min:e,max:t},vt=!0}a(ni,"setYAxisRangeData");function ai(e){const t=Math.min(...e),i=Math.max(...e),s=Q(w.yAxis)?w.yAxis.min:1/0,n=Q(w.yAxis)?w.yAxis.max:-1/0;w.yAxis={type:"linear",title:w.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}a(ai,"setYAxisRangeFromPlotData");function zt(e){let t=[];if(e.length===0)return t;if(!yt){const i=Q(w.xAxis)?w.xAxis.min:1/0,s=Q(w.xAxis)?w.xAxis.max:-1/0;It(Math.min(i,1),Math.max(s,e.length))}if(mt(w.xAxis)&&e.length>w.xAxis.categories.length&&(e=e.slice(0,w.xAxis.categories.length)),vt||ai(e),mt(w.xAxis)&&(t=w.xAxis.categories.map((i,s)=>[i,e[s]])),Q(w.xAxis)){const i=w.xAxis.min,s=w.xAxis.max;if(e.length===1)t=[[`${i}`,e[0]]];else{const n=(s-i)/(e.length-1);t=e.map((o,h)=>[`${i+h*n}`,o])}}return t}a(zt,"transformDataWithoutCategory");function Bt(e){return Tt[e===0?0:e%Tt.length]}a(Bt,"getPlotColorFromPalette");function oi(e,t){const i=t.map(h=>h.value),s=t.map(h=>h.label?q(h.label):""),n=zt(i),o=s.some(h=>h!=="");w.plots.push({type:"line",title:q(e.text),strokeFill:Bt(ct),strokeWidth:2,data:n,...o?{pointLabels:s}:{}}),ct++}a(oi,"setLineData");function ri(e,t){const i=t.map(n=>n.value),s=zt(i);w.plots.push({type:"bar",title:q(e.text),fill:Bt(ct),data:s}),ct++}a(ri,"setBarData");function hi(){if(w.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return w.title=$t(),Yi.build(gt,w,ut,Zt)}a(hi,"getDrawableElem");function li(){return ut}a(li,"getChartThemeConfig");function ci(){return gt}a(ci,"getChartConfig");function gi(){return w}a(gi,"getXYChartData");var Hi=a(function(){Si(),ct=0,gt=Et(),w=Mt(),ut=Lt(),Tt=ut.plotColorPalette.split(",").map(e=>e.trim()),yt=!1,vt=!1},"clear"),$i={getDrawableElem:hi,clear:Hi,setAccTitle:wi,getAccTitle:bi,setDiagramTitle:yi,getDiagramTitle:$t,getAccDescription:mi,setAccDescription:pi,setOrientation:ti,setXAxisTitle:ii,setXAxisRangeData:It,setXAxisBand:ei,setYAxisTitle:si,setYAxisRangeData:ni,setLineData:oi,setBarData:ri,setTmpSVGG:Jt,getChartThemeConfig:li,getChartConfig:ci,getXYChartData:gi},Ui=a((e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),h=n.getChartConfig(),p=n.getXYChartData().plots[0].data.map(b=>b[1]);function u(b){return b==="top"?"text-before-edge":"middle"}a(u,"getDominantBaseLine");function f(b){return b==="left"?"start":b==="right"?"end":"middle"}a(f,"getTextAnchor");function R(b){return`translate(${b.x}, ${b.y}) rotate(${b.rotation||0})`}a(R,"getTextTransformation"),Ut.debug(`Rendering xychart chart
|
|
7
|
-
`+e);const C=Ai(t),y=C.append("g").attr("class","main"),E=y.append("rect").attr("width",h.width).attr("height",h.height).attr("class","background");Ci(C,h.height,h.width,!0),C.attr("viewBox",`0 0 ${h.width} ${h.height}`),E.attr("fill",o.backgroundColor),n.setTmpSVGG(C.append("g").attr("class","mermaid-tmp-group"));const v=n.getDrawableElem(),L={};function M(b){let D=y,c="";for(const[B]of b.entries()){let F=y;B>0&&L[c]&&(F=L[c]),c+=b[B],D=L[c],D||(D=L[c]=F.append("g").attr("class",b[B]))}return D}a(M,"getGroup");for(const b of v){if(b.data.length===0)continue;const D=M(b.groupTexts);switch(b.type){case"rect":if(D.selectAll("rect").data(b.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),h.showDataLabel){const c=h.showDataLabelOutsideBar;if(h.chartOrientation==="horizontal"){let B=function(S,O){const{data:T,label:ht}=S;return O*ht.length*F<=T.width-X};a(B,"fitsHorizontally");const F=.7,X=10,N=b.data.map((S,O)=>({data:S,label:p[O].toString()})).filter(S=>S.data.width>0&&S.data.height>0),k=N.map(S=>{const{data:O}=S;let T=O.height*.7;for(;!B(S,T)&&T>0;)T-=1;return T}),H=Math.floor(Math.min(...k)),A=a(S=>c?S.data.x+S.data.width+X:S.data.x+S.data.width-X,"determineLabelXPosition");D.selectAll("text").data(N).enter().append("text").attr("x",A).attr("y",S=>S.data.y+S.data.height/2).attr("text-anchor",c?"start":"end").attr("dominant-baseline","middle").attr("fill",o.dataLabelColor).attr("font-size",`${H}px`).text(S=>S.label)}else{let B=function(A,S,O){const{data:T,label:ht}=A,W=S*ht.length*.7,l=T.x+T.width/2,g=l-W/2,d=l+W/2,x=g>=T.x&&d<=T.x+T.width,_=T.y+O+S<=T.y+T.height;return x&&_};a(B,"fitsInBar");const F=10,X=b.data.map((A,S)=>({data:A,label:p[S].toString()})).filter(A=>A.data.width>0&&A.data.height>0),N=X.map(A=>{const{data:S,label:O}=A;let T=S.width/(O.length*.7);for(;!B(A,T,F)&&T>0;)T-=1;return T}),k=Math.floor(Math.min(...N)),H=a(A=>c?A.data.y-F:A.data.y+F,"determineLabelYPosition");D.selectAll("text").data(X).enter().append("text").attr("x",A=>A.data.x+A.data.width/2).attr("y",H).attr("text-anchor","middle").attr("dominant-baseline",c?"auto":"hanging").attr("fill",o.dataLabelColor).attr("font-size",`${k}px`).text(A=>A.label)}}break;case"text":D.selectAll("text").data(b.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>u(c.verticalPos)).attr("text-anchor",c=>f(c.horizontalPos)).attr("transform",c=>R(c)).text(c=>c.text);break;case"path":D.selectAll("path").data(b.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),qi={draw:Ui},
|
|
7
|
+
`+e);const C=Ai(t),y=C.append("g").attr("class","main"),E=y.append("rect").attr("width",h.width).attr("height",h.height).attr("class","background");Ci(C,h.height,h.width,!0),C.attr("viewBox",`0 0 ${h.width} ${h.height}`),E.attr("fill",o.backgroundColor),n.setTmpSVGG(C.append("g").attr("class","mermaid-tmp-group"));const v=n.getDrawableElem(),L={};function M(b){let D=y,c="";for(const[B]of b.entries()){let F=y;B>0&&L[c]&&(F=L[c]),c+=b[B],D=L[c],D||(D=L[c]=F.append("g").attr("class",b[B]))}return D}a(M,"getGroup");for(const b of v){if(b.data.length===0)continue;const D=M(b.groupTexts);switch(b.type){case"rect":if(D.selectAll("rect").data(b.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),h.showDataLabel){const c=h.showDataLabelOutsideBar;if(h.chartOrientation==="horizontal"){let B=function(S,O){const{data:T,label:ht}=S;return O*ht.length*F<=T.width-X};a(B,"fitsHorizontally");const F=.7,X=10,N=b.data.map((S,O)=>({data:S,label:p[O].toString()})).filter(S=>S.data.width>0&&S.data.height>0),k=N.map(S=>{const{data:O}=S;let T=O.height*.7;for(;!B(S,T)&&T>0;)T-=1;return T}),H=Math.floor(Math.min(...k)),A=a(S=>c?S.data.x+S.data.width+X:S.data.x+S.data.width-X,"determineLabelXPosition");D.selectAll("text").data(N).enter().append("text").attr("x",A).attr("y",S=>S.data.y+S.data.height/2).attr("text-anchor",c?"start":"end").attr("dominant-baseline","middle").attr("fill",o.dataLabelColor).attr("font-size",`${H}px`).text(S=>S.label)}else{let B=function(A,S,O){const{data:T,label:ht}=A,W=S*ht.length*.7,l=T.x+T.width/2,g=l-W/2,d=l+W/2,x=g>=T.x&&d<=T.x+T.width,_=T.y+O+S<=T.y+T.height;return x&&_};a(B,"fitsInBar");const F=10,X=b.data.map((A,S)=>({data:A,label:p[S].toString()})).filter(A=>A.data.width>0&&A.data.height>0),N=X.map(A=>{const{data:S,label:O}=A;let T=S.width/(O.length*.7);for(;!B(A,T,F)&&T>0;)T-=1;return T}),k=Math.floor(Math.min(...N)),H=a(A=>c?A.data.y-F:A.data.y+F,"determineLabelYPosition");D.selectAll("text").data(X).enter().append("text").attr("x",A=>A.data.x+A.data.width/2).attr("y",H).attr("text-anchor","middle").attr("dominant-baseline",c?"auto":"hanging").attr("fill",o.dataLabelColor).attr("font-size",`${k}px`).text(A=>A.label)}}break;case"text":D.selectAll("text").data(b.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>u(c.verticalPos)).attr("text-anchor",c=>f(c.horizontalPos)).attr("transform",c=>R(c)).text(c=>c.text);break;case"path":D.selectAll("path").data(b.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),qi={draw:Ui},ae={parser:Li,db:$i,renderer:qi};export{ae as diagram};
|
package/web/docs/404.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
14
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
15
15
|
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_account.md.D2Y5jJg1.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_audit.md.B2nKZ2Ua.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_conversation-templates.md.Bg3LB_OD.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_email-notifications.md.C-l7j4kx.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_license.md.uRZn4p-7.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_nodes-workspaces.md.DqOa1vO9.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_oauth.md.Cg8_k9RX.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_secrets.md.BZ9yYa-Q.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_template-workspace-maintenance.md.EctHwoOl.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/docs/assets/style.B-GXNsWd.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/docs/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/docs/assets/app.
|
|
12
|
+
<script type="module" src="/docs/assets/app.qSEvwjJn.js"></script>
|
|
13
13
|
<link rel="preload" href="/docs/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
|
-
<link rel="modulepreload" href="/docs/assets/chunks/theme.
|
|
14
|
+
<link rel="modulepreload" href="/docs/assets/chunks/theme.COkmiT5c.js">
|
|
15
15
|
<link rel="modulepreload" href="/docs/assets/chunks/framework.CuVq8pOL.js">
|
|
16
16
|
<link rel="modulepreload" href="/docs/assets/administration_users-organizations.md.DLuDfS2l.lean.js">
|
|
17
17
|
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as p}from"./chunks/theme.
|
|
1
|
+
import{R as p}from"./chunks/theme.COkmiT5c.js";import{R as s,a4 as i,a5 as u,a6 as c,a7 as l,a8 as f,a9 as d,aa as m,ab as h,ac as g,ad as A,d as v,u as R,v as w,s as y,ae as C,af as P,ag as b,ah as E}from"./chunks/framework.CuVq8pOL.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(p),S=v({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=R();return w(()=>{y(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),P(),b(),n.setup&&n.setup(),()=>E(n.Layout)}});async function T(){globalThis.__VITEPRESS__=!0;const e=_(),a=D();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function D(){return A(S)}function _(){let e=s;return h(a=>{let t=g(a),o=null;return t&&(e&&(t=t.replace(/\.js$/,".lean.js")),o=import(t)),s&&(e=!1),o},n.NotFound)}s&&T().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{T as createApp};
|