@inkeep/open-knowledge 0.89.1-beta.3 → 0.89.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cli-BNTVA4cX.mjs → cli-CQfCrneK.mjs} +6 -6
- package/dist/cli.mjs +1 -1
- package/dist/constants-CpsSLH8K.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/init-C53kUCVN.mjs +1 -0
- package/dist/{init-DQMXb7pz.mjs → init-DMEgsCO_.mjs} +2 -2
- package/dist/{launch-json-removal-XzwmH8VA.mjs → launch-json-removal-BRGir6sa.mjs} +1 -1
- package/dist/{loader-DZHQrNG-.mjs → loader-CA-sFbfB.mjs} +1 -1
- package/dist/loader-ozL1G3tH.mjs +1 -0
- package/dist/{preview-COH7UFVW.mjs → preview-BNeOtuYk.mjs} +1 -1
- package/dist/preview-eXuw0ZsX.mjs +1 -0
- package/dist/public/assets/{AboutSection-tRd4zWnA.js → AboutSection-Wga6ljal.js} +1 -1
- package/dist/public/assets/{AccountSection-D-Zall4m.js → AccountSection-BxA3npGg.js} +1 -1
- package/dist/public/assets/{ActivityModeContent-Df-RqhPu.js → ActivityModeContent-gpbFdkTU.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-BrWvNG4i.js → AddPropertiesButton-V-9pfunh.js} +2 -2
- package/dist/public/assets/{AgentConnectionsSection-zBXwBiiA.js → AgentConnectionsSection-BGriqiir.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-sAkF_NLr.js → AgentDiffPane-yQbqJfsi.js} +1 -1
- package/dist/public/assets/{AgentIconCluster-B9rTFji5.js → AgentIconCluster-DJYZ5s2f.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-BXRVPDki.js → AgentThreadClientBinder-CzUmSXiH.js} +1 -1
- package/dist/public/assets/{AppMenubar-VrP4K7e4.js → AppMenubar-N_LouakH.js} +1 -1
- package/dist/public/assets/{AttachmentsSection-D76XKrhk.js → AttachmentsSection-B_OUperC.js} +1 -1
- package/dist/public/assets/{AuthModal-B9y3bqhO.js → AuthModal-CJedoV6p.js} +1 -1
- package/dist/public/assets/{BugReportHistory-BsyHsVNu.js → BugReportHistory-D-crQhE_.js} +1 -1
- package/dist/public/assets/{BugReportHistoryDialog-Bm48RkG0.js → BugReportHistoryDialog-C44scJWu.js} +1 -1
- package/dist/public/assets/{CodeMirrorEditor-UCMRAMCV-jW_2l0nP.js → CodeMirrorEditor-UCMRAMCV-BjEQv2x_.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-CpXyhdyX.js → CodeMirrorPropInput-BjXlLQ_X.js} +3 -3
- package/dist/public/assets/{ConfigSharingInfoTooltip-CI5Q4134.js → ConfigSharingInfoTooltip-CmaSkr99.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-Dfwwu4vC.js → ConsentDialogBody-B20jtW8L.js} +1 -1
- package/dist/public/assets/{ContentRulesSection-ciIo1Fox.js → ContentRulesSection-BsUQ0zJF.js} +1 -1
- package/dist/public/assets/{CopyButton-CTEyT6XZ.js → CopyButton-BGXlB8sP.js} +1 -1
- package/dist/public/assets/{DeleteConfirmationDialog-BmShNEdj.js → DeleteConfirmationDialog-DJ6Qtngd.js} +1 -1
- package/dist/public/assets/{DiffViewBoundary-CQYIlOsP.js → DiffViewBoundary-hs_VDrka.js} +1 -1
- package/dist/public/assets/DocumentContext-C3d3aPqq.js +110 -0
- package/dist/public/assets/{EditorModeToggle-BNWcaoac.js → EditorModeToggle-Bgispkgy.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-zJYliunZ.js → ExcalidrawDocEditor-CL1aJRLt.js} +1 -1
- package/dist/public/assets/FeedbackForm-D0ym4bbj.js +1 -0
- package/dist/public/assets/{GraphPanel-BTP-s4xS.js → GraphPanel-CA7VLMPM.js} +1 -1
- package/dist/public/assets/{HotkeysSection-B7aU1Xml.js → HotkeysSection-DrZRSXKK.js} +1 -1
- package/dist/public/assets/{ImageAttachments-DtqOrDVB.js → ImageAttachments-DLQC8k-Z.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-BQCpvSBy.js → ImportSkillDialog-BMeOmhlC.js} +1 -1
- package/dist/public/assets/{InstallInClaudeDesktopDialog-BmZRe4ai.js → InstallInClaudeDesktopDialog-C_RQYp3V.js} +1 -1
- package/dist/public/assets/{IntegrationsSection-BhYEcdaY.js → IntegrationsSection-gn7Gi9_7.js} +1 -1
- package/dist/public/assets/{LinkPreviewsSection-CKiImo2e.js → LinkPreviewsSection-DJl-IPy_.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-CvXRnn-2.js → LintConfigEditor-BaIj6Zsp.js} +1 -1
- package/dist/public/assets/LintingSection-Dpym-WwL.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-BKGAnhMk.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-CzlNCWxw.js → ManagedArtifactProperties-DAKwfoMZ.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-9-QJlWro.js → McpConsentDialogBody-CpTyyWwe.js} +1 -1
- package/dist/public/assets/Mermaid--NaGL3Jp.js +2 -0
- package/dist/public/assets/MermaidDocEditor-BIvYQTbS.js +1 -0
- package/dist/public/assets/{NetworkAccessSection-CVtdkBHf.js → NetworkAccessSection-Bhvpr6OE.js} +1 -1
- package/dist/public/assets/{OkCliPathRow-Cp6iztN6.js → OkCliPathRow-S85j6YMf.js} +1 -1
- package/dist/public/assets/{OkignoreSection-DnoLrVcI.js → OkignoreSection-BfbduXqI.js} +1 -1
- package/dist/public/assets/{OpenInAgentMenuItem-N6xIhi4p.js → OpenInAgentMenuItem-BBBy2Gy8.js} +1 -1
- package/dist/public/assets/{PageListContext-BlD9uQe7.js → PageListContext-DpKyZSYI.js} +1 -1
- package/dist/public/assets/{ProjectTemplatesSection-s7icbspb.js → ProjectTemplatesSection-DnNyoDmD.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-H7bj6f5t.js → PropertyDisplayRow-DCVZcKLb.js} +2 -2
- package/dist/public/assets/PublishToGitHubDialog-UHsZa7GM.js +1 -0
- package/dist/public/assets/{RegisteredAgentIcon-B5-umwTf.js → RegisteredAgentIcon-DtQ0KEVm.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-BcTojqR0.js → ReportBugDialogBody-BAr884FO.js} +1 -1
- package/dist/public/assets/{ReportBugMenuTrigger-78gwrqdl.js → ReportBugMenuTrigger-B1Y-51y_.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-Bf5cqDaq.js → SchemaConfigEditor-D3s5A49m.js} +1 -1
- package/dist/public/assets/{SearchSection-DRdyZQZf.js → SearchSection-Bi3VBSp6.js} +1 -1
- package/dist/public/assets/{SessionsHost-mRrdjGIy.js → SessionsHost-2SfG2-Gc.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-DmZz1LOo.js → SettingsDialogBody-wJKOE5mL.js} +2 -2
- package/dist/public/assets/{SettingsSectionHeader-B2_3E9FZ.js → SettingsSectionHeader-DoDCqZE9.js} +1 -1
- package/dist/public/assets/{ShareBranchSwitchDialog-DWQTjLZ-.js → ShareBranchSwitchDialog-CHuKbT9D.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-BdppBZDP.js → ShareReceiveDialog-2iD7YbAG.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-Dbjg3K-r.js → ShareReceiveMissDialog-BPBSQEGy.js} +1 -1
- package/dist/public/assets/{SharingSection-MyaUcheU.js → SharingSection-CmvBaP1e.js} +1 -1
- package/dist/public/assets/{SkillCostValue-DGFAhums.js → SkillCostValue-DvhkGtxl.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-Ci6hp9qh.js → SkillEditBanner-DgXHGu5U.js} +1 -1
- package/dist/public/assets/{SkillForkDialog-CKEK2MLM.js → SkillForkDialog-DRFCczwZ.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-Fmrl12N7.js → SkillInstallMenu-yZ2LF3xI.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-h0ecHbks.js → SkillOriginInline-CtCMa2BK.js} +2 -2
- package/dist/public/assets/{SkillPluginBundleDialog-0PDRSlc7.js → SkillPluginBundleDialog-3QRGH28G.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-zISw8oZn.js → SkillToolbarControls-CBBLRFMf.js} +1 -1
- package/dist/public/assets/{SkillUpdateConflictDialog-B2amDEg5.js → SkillUpdateConflictDialog-BRuajj8h.js} +1 -1
- package/dist/public/assets/{SkillsManagerSection-CXbSw1oW.js → SkillsManagerSection-CfotG9eR.js} +1 -1
- package/dist/public/assets/{SlidesPluginSection-sGWfjtzJ.js → SlidesPluginSection-BpeI6naA.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-BVK9CgWY.js → SlidesToolbarControls-DsTwYCvs.js} +1 -1
- package/dist/public/assets/SourceEditor-xm588PrA.js +1 -0
- package/dist/public/assets/{SpellingSettings-DYtxL6uE.js → SpellingSettings-DS0iCc6q.js} +1 -1
- package/dist/public/assets/{SyncSection-Eyz1tj40.js → SyncSection-Bu7cBZQC.js} +1 -1
- package/dist/public/assets/{SyncStatusBadge-CE7Y2cCh.js → SyncStatusBadge-5xYsRIZu.js} +1 -1
- package/dist/public/assets/{TemplateRow-W3JPZI1f.js → TemplateRow-CH88SaaS.js} +1 -1
- package/dist/public/assets/{TerminalLaunchContext-P5-tdwl5.js → TerminalLaunchContext-DknxkMP_.js} +1 -1
- package/dist/public/assets/{TerminalPanel-BXCRCaq6.js → TerminalPanel-CzYCOqZx.js} +1 -1
- package/dist/public/assets/{TerminalSection-xwZM2Hgh.js → TerminalSection-CxJHg3uk.js} +1 -1
- package/dist/public/assets/{TerminalStartingNotice-CdvEXHch.js → TerminalStartingNotice-eW111Pr-.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-D8l7JsRd.js → TerminalWindowApp-ElLsKjvU.js} +1 -1
- package/dist/public/assets/{TextDocEditor-BG9kfQtX.js → TextDocEditor-B3Xv0IEB.js} +1 -1
- package/dist/public/assets/{ThemePicker-c5au2kY3.js → ThemePicker-l4igefke.js} +1 -1
- package/dist/public/assets/{ThemePluginSection-Fo_U0vAO.js → ThemePluginSection-C3QmAxSy.js} +1 -1
- package/dist/public/assets/ThreadView-D4rEicmI.js +28 -0
- package/dist/public/assets/{TimelineDiffPane-DE5qL-Hx.js → TimelineDiffPane-pWimxwSf.js} +1 -1
- package/dist/public/assets/{_envelope-DuFpUEag-Beu481Zb.js → _envelope-DuFpUEag-DIV0rnvM.js} +1 -1
- package/dist/public/assets/{acp-tool-call-input-4D1kgN9C.js → acp-tool-call-input-BAHxmJVC.js} +1 -1
- package/dist/public/assets/{agent-connections-CgDvLLC0.js → agent-connections-Bk1le3Hp.js} +1 -1
- package/dist/public/assets/{agent-diff-store-Dk1ZsJcI.js → agent-diff-store-lpiSKA5i.js} +1 -1
- package/dist/public/assets/{agent-registry-U8NZfQJI.js → agent-registry-DAlpnuPI.js} +1 -1
- package/dist/public/assets/arrow-right-9zZjHMAu.js +1 -0
- package/dist/public/assets/{arrow-up-BGHhPj4y.js → arrow-up-VsvqTAMX.js} +1 -1
- package/dist/public/assets/arrow-up-right-BuM5_PNk.js +1 -0
- package/dist/public/assets/{braces--g9Mwtim.js → braces-BuqU1wEY.js} +1 -1
- package/dist/public/assets/{bridge-RmbYCE1j.js → bridge-C3zpQGKh.js} +1 -1
- package/dist/public/assets/{bug-report-send-manager-D9UBUsIi.js → bug-report-send-manager-BOS3d4vT.js} +1 -1
- package/dist/public/assets/{calendar-D8X69oI3.js → calendar-GZZrn9oy.js} +1 -1
- package/dist/public/assets/{case-sensitive-DIxypOE0.js → case-sensitive-CON108GM.js} +1 -1
- package/dist/public/assets/{catalog-qUDNhRiX.js → catalog-BIFRvQrT.js} +1 -1
- package/dist/public/assets/channel-cli-copy-BE13Ri4Z.js +1 -0
- package/dist/public/assets/check-x3deoXUY.js +1 -0
- package/dist/public/assets/{checkbox-CKD8LETI.js → checkbox-CYP7ZXBH.js} +1 -1
- package/dist/public/assets/{chevron-down-CEv6N8LG.js → chevron-down-COI0lQ_Z.js} +1 -1
- package/dist/public/assets/chevron-left-az_PtXMd.js +1 -0
- package/dist/public/assets/chevron-right-B3hLba9m.js +1 -0
- package/dist/public/assets/{circle-alert-eBm4JPxY.js → circle-alert-dBeNuHbp.js} +1 -1
- package/dist/public/assets/circle-check-CGCTZ_86.js +1 -0
- package/dist/public/assets/{client-version-BOmJe1SA.js → client-version-CE1HFR4D.js} +1 -1
- package/dist/public/assets/{cm-theme-jJbc1zUE.js → cm-theme-DHJ4FCK8.js} +1 -1
- package/dist/public/assets/comment-chips-CCtWVMI5.js +8 -0
- package/dist/public/assets/{config-errors-d-4C2SfD.js → config-errors-BXj4CTPy.js} +1 -1
- package/dist/public/assets/{config-provider-t8yPjJNx.js → config-provider-DzD_5rVC.js} +1 -1
- package/dist/public/assets/config-schema-CmT2Ao7f.js +1 -0
- package/dist/public/assets/{constants-editors-DmmORwNP.js → constants-editors-IUfUQiPg.js} +1 -1
- package/dist/public/assets/{context-menu-DJEXk_NV.js → context-menu-v1ORxy1K.js} +1 -1
- package/dist/public/assets/{copy-DpWa6i2v.js → copy-C2v-T-2G.js} +1 -1
- package/dist/public/assets/{css-color-to-hex-BSfwCuBg.js → css-color-to-hex-B2zwblEY.js} +1 -1
- package/dist/public/assets/{diagnostic-breadcrumb-Mg7sdCfQ.js → diagnostic-breadcrumb-DJHixy9_.js} +1 -1
- package/dist/public/assets/{dialog-CAxu_6pu.js → dialog-BPbtQmOL.js} +1 -1
- package/dist/public/assets/{dist-CALMvI24.js → dist-B3l4eYse.js} +1 -1
- package/dist/public/assets/{dist-D3OAk9962.js → dist-CDI_AHNY2.js} +1 -1
- package/dist/public/assets/{dist-D7OhjHST.js → dist-CUgGmlsn.js} +1 -1
- package/dist/public/assets/{dist-Dc8tD1th.js → dist-CdgIFD0J.js} +1 -1
- package/dist/public/assets/{dist-DC3MtD_U.js → dist-CitzgyZk.js} +1 -1
- package/dist/public/assets/{dist-CuciuUd8.js → dist-DPg4Sze-.js} +1 -1
- package/dist/public/assets/{dist-C2kRm2yU.js → dist-DQuOA3vR.js} +1 -1
- package/dist/public/assets/{dist-1WMiywBY.js → dist-DlTJY48Q.js} +1 -1
- package/dist/public/assets/{dist-B2xcxFKA.js → dist-DqqLfr8L.js} +1 -1
- package/dist/public/assets/{dist-BB-_bX4W.js → dist-LtbcyjB7.js} +1 -1
- package/dist/public/assets/{dist-CTgYxMvL.js → dist-McVxqaQr.js} +1 -1
- package/dist/public/assets/{dist-CEcVCo7N.js → dist-R7QC_kjf.js} +1 -1
- package/dist/public/assets/{dist-BMKoCRsq.js → dist-XOMICCBT.js} +1 -1
- package/dist/public/assets/{dist-BJEecnun.js → dist-oYievw6e.js} +1 -1
- package/dist/public/assets/{dist-BDK1JLMM.js → dist-qfZ4Zkay.js} +1 -1
- package/dist/public/assets/{doc-hash-BT2I193z.js → doc-hash-BDtDlqpM.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-CfgPgnPl.js → doc-undo-manager-yavvIgvD.js} +1 -1
- package/dist/public/assets/{documents-events-C1uYbecE.js → documents-events-DD7-XBOS.js} +1 -1
- package/dist/public/assets/{download-BouT3__0.js → download-D-kvS_hz.js} +1 -1
- package/dist/public/assets/{dropdown-menu-DH6UNmuX.js → dropdown-menu-480HwyVz.js} +1 -1
- package/dist/public/assets/field-controls-ZSTvXteZ.js +1 -0
- package/dist/public/assets/{field-controls-DVDZIfO-.js → field-controls-hRoeLiNf.js} +1 -1
- package/dist/public/assets/{file-plus-DKxOZh2k.js → file-plus-DBpEVY_Q.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-swxoGL5Y.js → file-tree-adapter-CCs0BTVj.js} +1 -1
- package/dist/public/assets/{file-tree-utils-4_QK0cZe.js → file-tree-utils-Chf8oKT-.js} +1 -1
- package/dist/public/assets/{folder-QqUoFRPR.js → folder-DSkyRNas.js} +1 -1
- package/dist/public/assets/{folder-config-api-CzgwDsGQ.js → folder-config-api-DIgyKHZD.js} +1 -1
- package/dist/public/assets/{folder-open-COGOeTzI.js → folder-open-a_XLAh8h.js} +1 -1
- package/dist/public/assets/{git-branch-CeTudSak.js → git-branch-EQxRRYB4.js} +1 -1
- package/dist/public/assets/{git-merge-VDBzSZBV.js → git-merge-Cmg8y0YC.js} +1 -1
- package/dist/public/assets/{grip-vertical-DNbkgWZL.js → grip-vertical-DDCmIcxh.js} +1 -1
- package/dist/public/assets/{handoff-DsHaP2rA.js → handoff-rTg39zAU.js} +1 -1
- package/dist/public/assets/{hash-C4CJQURT.js → hash-Cm4xjMc9.js} +1 -1
- package/dist/public/assets/{image-attachment-dml6C4FH.js → image-attachment-DFK2cqaC.js} +1 -1
- package/dist/public/assets/{ime-composition-ga8qmx5E.js → ime-composition-CGhNlGxT.js} +1 -1
- package/dist/public/assets/index-ceo-9NqS.js +2209 -0
- package/dist/public/assets/{info-CyR0W2SK.js → info-CTtlruwn.js} +1 -1
- package/dist/public/assets/{keyboard-shortcuts-D5fo2XHL.js → keyboard-shortcuts-BqVfFaC6.js} +1 -1
- package/dist/public/assets/{lint-config-client-DTbxVXNu.js → lint-config-client-Cwihn-uv.js} +1 -1
- package/dist/public/assets/{lint-plugin-meta-CtDE2R0v.js → lint-plugin-meta-6QZWEsvL.js} +1 -1
- package/dist/public/assets/lint-plugins-Bvo_3j4n.js +1 -0
- package/dist/public/assets/{list-plus-CYMJBvrm.js → list-plus-BF2ESfO9.js} +1 -1
- package/dist/public/assets/{local-menu-action-bus-Dyh2UJJF.js → local-menu-action-bus-BRwk7KU_.js} +1 -1
- package/dist/public/assets/{markdown-lint-yCmtY_Fk.js → markdown-lint-BHJCn8aG.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-DCZOAJHa.js → markdownlint-rule-browser-BljNWP0X.js} +1 -1
- package/dist/public/assets/minus-BUHNVRuZ.js +1 -0
- package/dist/public/assets/{miss-dialog-store-CsiJb9Ou.js → miss-dialog-store-9W8qZPsI.js} +1 -1
- package/dist/public/assets/{monitor-IXzxTnmk.js → monitor-Ddo728b9.js} +1 -1
- package/dist/public/assets/{navigation-targets-24nBe7eF.js → navigation-targets-CDgtiaAU.js} +1 -1
- package/dist/public/assets/{ok-bT2YVjQO.js → ok-Bc_I9i6o.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-CU-PLDYS.js → open-managed-artifact-tab-Iri08bTq.js} +1 -1
- package/dist/public/assets/{package-PkCmIx3S.js → package-C9LVxBgR.js} +1 -1
- package/dist/public/assets/{page-list-cache-QYahbazR.js → page-list-cache-tOaID4O4.js} +1 -1
- package/dist/public/assets/{panel-right-close-Bsh1pCmh.js → panel-right-close-D50eEzbs.js} +1 -1
- package/dist/public/assets/{panel-right-open-D4M8nGPT.js → panel-right-open-Bf2A8riD.js} +1 -1
- package/dist/public/assets/{paperclip-FfP_WlTp.js → paperclip-CToLKs9f.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-BrZXdyHa.js → pending-receive-nav-store-NVntzFTK.js} +1 -1
- package/dist/public/assets/{perf-CYJlqBBt.js → perf-B1ng3teX.js} +1 -1
- package/dist/public/assets/{platform-labels-Bz5YiQUO.js → platform-labels-aUYOyjZS.js} +1 -1
- package/dist/public/assets/{plus-CXQ-oViZ.js → plus-CTeS7j4Q.js} +1 -1
- package/dist/public/assets/{preferred-session-events-DmjJhoQV.js → preferred-session-events-DoI6Nltj.js} +1 -1
- package/dist/public/assets/{prod-y4DljgL_.js → prod-CxmLlnTC.js} +2 -2
- package/dist/public/assets/{progress-BW0rUQqg.js → progress-DLhlLXF7.js} +4 -4
- package/dist/public/assets/{project-paths-apPSrrqd.js → project-paths-DjS_hY_q.js} +1 -1
- package/dist/public/assets/{prop-types-ZtKgQMRh.js → prop-types-CLb0dK7M.js} +1 -1
- package/dist/public/assets/{receive-store-BxNGsbg2.js → receive-store-DG-FxM8p.js} +1 -1
- package/dist/public/assets/{refresh-cw-BVQchE6b.js → refresh-cw-kK6tPJpw.js} +1 -1
- package/dist/public/assets/{restart-collab-server-J9LBNmz1.js → restart-collab-server-D7TSZeVB.js} +1 -1
- package/dist/public/assets/{rotate-ccw-DeMl2ou7.js → rotate-ccw-LkVEzPHf.js} +1 -1
- package/dist/public/assets/{save-held-message-EDUNzH4a.js → save-held-message-BxyYPArP.js} +1 -1
- package/dist/public/assets/{saved-themes-client-CekgvN2w.js → saved-themes-client-BESiCu3n.js} +1 -1
- package/dist/public/assets/{schema-section-UHYsIbh2.js → schema-section-CufFaxte.js} +1 -1
- package/dist/public/assets/{schemas-api-DlZNlpBW.js → schemas-api-6ufosDur.js} +1 -1
- package/dist/public/assets/{schemas-cc1-DAVdMZdU.js → schemas-cc1-tjl2gPeT.js} +1 -1
- package/dist/public/assets/search-DtAlL42D.js +1 -0
- package/dist/public/assets/{select-BsDvTs6I.js → select-BELkoEB6.js} +1 -1
- package/dist/public/assets/{selection-context-CL5DJJ5J.js → selection-context-D-6Wx6n8.js} +1 -1
- package/dist/public/assets/{settings-2-DoBlNQMk.js → settings-2-wYPq-LU9.js} +1 -1
- package/dist/public/assets/{share-D-LUU2aX-rZ2lBHef.js → share-D-LUU2aX-iU4CJWyG.js} +1 -1
- package/dist/public/assets/{sign-in-terminal-events-Cq-Ff47d.js → sign-in-terminal-events-BDhZsuH0.js} +1 -1
- package/dist/public/assets/{skill-scope-B5R5dnia.js → skill-scope-C6c798PF.js} +1 -1
- package/dist/public/assets/skill-targets-schema-CqL94mYR.js +1 -0
- package/dist/public/assets/{skills-api-BfE5FOtO.js → skills-api-BW6egGED.js} +1 -1
- package/dist/public/assets/{sparkles-lfxw6YO9.js → sparkles-CLa9Bco7.js} +1 -1
- package/dist/public/assets/{spinner-Bx8xD6f8.js → spinner-CeYJkImG.js} +1 -1
- package/dist/public/assets/{square-pen-DU3t-IcD.js → square-pen-5YkKFkKE.js} +1 -1
- package/dist/public/assets/{src-DZLuBGc4.js → src-BnRkOYT2.js} +1 -1
- package/dist/public/assets/{startup-marks-BTf4KsuH.js → startup-marks-iW0WPaQZ.js} +1 -1
- package/dist/public/assets/storage-scope-CM5DIkjP.js +1 -0
- package/dist/public/assets/{tag-pill-input-CsGX3LfF.js → tag-pill-input-BaWWdgLz.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-C5UVyTyO.js → target-navigation-intent-CwpBpDqj.js} +1 -1
- package/dist/public/assets/{telemetry-impl-B31Ncjxi.js → telemetry-impl-xdjXYvb5.js} +1 -1
- package/dist/public/assets/{telemetry-startup-B6ziimEZ.js → telemetry-startup-Dzg-IDUr.js} +1 -1
- package/dist/public/assets/terminal-BaAWoXQi.js +1 -0
- package/dist/public/assets/terminal-cli-display-nqMvU4tr.js +1 -0
- package/dist/public/assets/{terminal-command-events-DChb4IWc.js → terminal-command-events-DHW8vnqr.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-C4fI5alv.js → terminal-launch-events-CzHSWWOd.js} +1 -1
- package/dist/public/assets/{text-viewer-languages-CEIKqAO0.js → text-viewer-languages-5aC_46ro.js} +2 -2
- package/dist/public/assets/{theme-token-colors-BdA7xOfE.js → theme-token-colors-BHO3FRsE.js} +1 -1
- package/dist/public/assets/{thread-client-RjSMZyu3.js → thread-client-Dpm0z74_.js} +1 -1
- package/dist/public/assets/{trash-2-Blf9Cydx.js → trash-2-Dx-L6HlB.js} +1 -1
- package/dist/public/assets/{triangle-alert-DFWRwfH7.js → triangle-alert-COKT45NU.js} +1 -1
- package/dist/public/assets/typing-burst-detector-xtgLhjHi.js +6 -0
- package/dist/public/assets/{undo-2-opKemDpM.js → undo-2-DFO1_Si-.js} +1 -1
- package/dist/public/assets/{uninstall-QtbRPTPw.js → uninstall-8hUOVLi8.js} +1 -1
- package/dist/public/assets/use-activity-panel-No-V0vGV.js +1 -0
- package/dist/public/assets/{use-app-color-mode-IuaS2l9q.js → use-app-color-mode-D01Vqp07.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-DtZYKd4S.js → use-apply-config-color-theme-Dp4XXsd0.js} +1 -1
- package/dist/public/assets/{use-apply-config-language-2osa4BZp.js → use-apply-config-language-zbymJk7K.js} +1 -1
- package/dist/public/assets/{use-collab-url-cdu23GKm.js → use-collab-url-KnAEFuX9.js} +1 -1
- package/dist/public/assets/{use-conflicts-DYDVgnHm.js → use-conflicts-BjdOWvm-.js} +1 -1
- package/dist/public/assets/{use-git-sync-status-QF4fPT1l.js → use-git-sync-status-D8KvdiBj.js} +1 -1
- package/dist/public/assets/{use-installed-clis-CuUHppPf.js → use-installed-clis-CJz4xwue.js} +2 -2
- package/dist/public/assets/{use-live-xterm-theme-C44W14gS.js → use-live-xterm-theme-BeWdaIDt.js} +1 -1
- package/dist/public/assets/use-open-skill-BqX8C4Fb.js +1 -0
- package/dist/public/assets/{use-semantic-search-status-CtwmKCOY.js → use-semantic-search-status-H3Lc3w3y.js} +1 -1
- package/dist/public/assets/{use-settings-route-BGtkup9E.js → use-settings-route-9jEucaC_.js} +1 -1
- package/dist/public/assets/{use-skill-origin-CqdAI0LE.js → use-skill-origin-CevMDiz2.js} +1 -1
- package/dist/public/assets/{use-skill-targets-L7eMluIp.js → use-skill-targets-Bm-1Jayt.js} +1 -1
- package/dist/public/assets/{use-skills-CjskC_gs.js → use-skills-BWN24_tx.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-CNxLndWK.js → use-terminal-enabled-C38kf-nC.js} +1 -1
- package/dist/public/assets/use-timeline-entry-diff-BBU349EG.js +7 -0
- package/dist/public/assets/{use-workspace-DyJIW5z6.js → use-workspace-gZ0GtHN-.js} +1 -1
- package/dist/public/assets/{wrench-DmtZXcHB.js → wrench-DX4SUik6.js} +1 -1
- package/dist/public/assets/x-B-DmMnJT.js +1 -0
- package/dist/public/index.html +180 -180
- package/dist/public/uninstall.html +9 -9
- package/dist/{registry-probes-CYNi5qIQ.mjs → registry-probes-i8THON1F.mjs} +1 -1
- package/dist/{removal-file-path-DZLkET7b.mjs → removal-file-path-C6ummtKf.mjs} +1 -1
- package/dist/{repair-launch-json-B7OnJBuU.mjs → repair-launch-json-D13WJKpY.mjs} +1 -1
- package/dist/{repair-mcp-configs-C4dUbuGT.mjs → repair-mcp-configs-Dpcbr0O1.mjs} +1 -1
- package/dist/src-C7iKm_nG.mjs +1 -0
- package/dist/{src-CbhsFfxZ.mjs → src-Cdv7Ww9e.mjs} +1 -1
- package/dist/{start-DjdNCY_w.mjs → start-BUPWWrZ2.mjs} +2 -2
- package/dist/start-CFBtSeQO.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-CDIC_0E3.mjs +0 -1
- package/dist/init-DksPCBxe.mjs +0 -1
- package/dist/loader-mvKq5eBt.mjs +0 -1
- package/dist/preview-C7MzdJar.mjs +0 -1
- package/dist/public/assets/DocumentContext-Dd5YjJ75.js +0 -110
- package/dist/public/assets/FeedbackForm-CuhSXZwR.js +0 -1
- package/dist/public/assets/LintingSection-Bu0KWPM4.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-Pum7Yl2Z.js +0 -1
- package/dist/public/assets/Mermaid-BtwwoOWv.js +0 -2
- package/dist/public/assets/MermaidDocEditor-CkzKNCRL.js +0 -1
- package/dist/public/assets/PublishToGitHubDialog-B8k76ixS.js +0 -1
- package/dist/public/assets/SourceEditor-Ch9WvIrp.js +0 -1
- package/dist/public/assets/ThreadView-D014DKw-.js +0 -28
- package/dist/public/assets/arrow-right-NOQZeKIW.js +0 -1
- package/dist/public/assets/arrow-up-right-nJaICi16.js +0 -1
- package/dist/public/assets/channel-cli-copy-B2cLpMLf.js +0 -1
- package/dist/public/assets/check-B2OLRY33.js +0 -1
- package/dist/public/assets/chevron-left-C5T97PNU.js +0 -1
- package/dist/public/assets/chevron-right-Bofu4lib.js +0 -1
- package/dist/public/assets/circle-check-nK1yRBIw.js +0 -1
- package/dist/public/assets/comment-chips-HHEqRWai.js +0 -8
- package/dist/public/assets/config-schema-B0ILVL9I.js +0 -1
- package/dist/public/assets/field-controls-CERlEL35.js +0 -1
- package/dist/public/assets/index-Cc2cEgpA.js +0 -2209
- package/dist/public/assets/lint-plugins-MY8H8P61.js +0 -1
- package/dist/public/assets/minus-DdRxss3A.js +0 -1
- package/dist/public/assets/search-BoiwnBpA.js +0 -1
- package/dist/public/assets/skill-targets-schema-DIfTaAkM.js +0 -1
- package/dist/public/assets/storage-scope-BxY5pL8X.js +0 -1
- package/dist/public/assets/terminal-B38K-KMo.js +0 -1
- package/dist/public/assets/terminal-cli-display-F8P1rJOv.js +0 -1
- package/dist/public/assets/typing-burst-detector-Cdgni4Wx.js +0 -6
- package/dist/public/assets/use-activity-panel-CSJGf6vZ.js +0 -1
- package/dist/public/assets/use-open-skill-Bw3rOfos.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-BlZZ9rzl.js +0 -7
- package/dist/public/assets/x-wldAHzfP.js +0 -1
- package/dist/src-LKeE7di1.mjs +0 -1
- package/dist/start-DjDw3VK-.mjs +0 -1
- /package/dist/public/assets/{config-context-Dr6ezl8P.js → config-context-DmzX_4s_.js} +0 -0
- /package/dist/public/assets/{constants-cc1-Bt4QPTUe.js → constants-cc1-DSBEUyZb.js} +0 -0
- /package/dist/public/assets/{constants-github-B7yhDvQc.js → constants-github-CG_3Vnhk.js} +0 -0
- /package/dist/public/assets/{constants-product-BVSOzxVs.js → constants-product-DTeqlnBa.js} +0 -0
- /package/dist/public/assets/{constants-upload-DZP-sCdl.js → constants-upload-kkBkFBty.js} +0 -0
- /package/dist/public/assets/{createLucideIcon-DdBzwsHe.js → createLucideIcon-CB3nKwwz.js} +0 -0
- /package/dist/public/assets/{desktop-bridge-types-BxqZkaz9.js → desktop-bridge-types-B8voP7ui.js} +0 -0
- /package/dist/public/assets/{dist-BGzUo_18.js → dist-Bs8bPT30.js} +0 -0
- /package/dist/public/assets/{dist-C_FzPxEX2.js → dist-XgwTV-oh2.js} +0 -0
- /package/dist/public/assets/{doc-extensions-CcO7K8uD-DG9uHV54.js → doc-extensions-CcO7K8uD-BsCiKh3N.js} +0 -0
- /package/dist/public/assets/{logging-renderer-log-CqIZVUIQ.js → logging-renderer-log-BxHgdJfM.js} +0 -0
- /package/dist/public/assets/{note-window-mode-CI3Yju9B.js → note-window-mode-DK36peY8.js} +0 -0
- /package/dist/public/assets/{parse-api-error-CeEVOj25.js → parse-api-error-B-hICRsf.js} +0 -0
- /package/dist/public/assets/{schemas-CxFhJLAM.js → schemas-DN_HD0k4.js} +0 -0
- /package/dist/public/assets/{util-doc-name-DRKmy6g9.js → util-doc-name-ICsmfVCh.js} +0 -0
- /package/dist/public/assets/{w3c-keyname-C7Rznu6R.js → w3c-keyname-DElaZB74.js} +0 -0
- /package/dist/public/assets/{workspace-paths-BjilyZF6.js → workspace-paths-C2i9A8jM.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=e(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]);export{t};
|
package/dist/public/assets/{keyboard-shortcuts-D5fo2XHL.js → keyboard-shortcuts-BqVfFaC6.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as e}from"./dist-Dc8tD1th.js";var t={general:{id:`Weq9zb`},workspace:{id:`pmUArF`},search:{id:`A1taO8`},wysiwyg:{id:`ur2XSb`},source:{id:`tiWX6q`},navigation:{id:`LXfNU-`}},n=Object.keys(t),r=[{id:`command-palette`,category:`general`,title:{id:`ZjtgI-`},description:{id:`PBQwGb`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}},{mac:`⌘ P`,windowsLinux:`Ctrl P`,match:{key:`p`,mod:!0}}]},{id:`settings`,category:`general`,title:{id:`Tz0i8g`},description:{id:`6m_7We`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ ,`,windowsLinux:`Ctrl ,`,match:{key:`,`,anyMod:!0}}]},{id:`new-item`,category:`general`,title:{id:`HdkSiO`},description:{id:`KkEAud`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ N`,windowsLinux:`Ctrl N`,match:{key:`n`,mod:!0}},{mac:`⌥⌘ N`,windowsLinux:`Ctrl Alt N`,match:{key:`n`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`new-folder`,category:`general`,title:{id:`96G6Re`},description:{id:`3cOo2C`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ N`,windowsLinux:`Ctrl Shift N`}]},{id:`toggle-files-sidebar`,category:`general`,title:{id:`rtdR4v`},description:{id:`TvEb-G`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ S`,windowsLinux:`Ctrl Alt S`,match:{code:`KeyS`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-document-panel`,category:`general`,title:{id:`lkYioO`},description:{id:`5I3wAF`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ B`,windowsLinux:`Ctrl Alt B`,match:{code:`KeyB`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-editor-mode`,category:`general`,title:{id:`vPXOUw`},description:{id:`buNXgr`},scope:{id:`uBAxNB`},bindings:[{mac:`⌥⌘ M`,windowsLinux:`Ctrl Alt M`,match:{code:`KeyM`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-terminal-panel`,category:`general`,title:{id:`-Al4WQ`},description:{id:`SCveu1`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ J`,windowsLinux:`Ctrl J`,match:{key:`j`,mod:!0},nativeMenuAccelerator:!0},{mac:"⌃ `",windowsLinux:"Ctrl `",match:{code:`Backquote`,ctrlKey:!0}}]},{id:`toggle-agent-panel`,category:`general`,title:{id:`4-Phgi`},description:{id:`4ivBhl`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`ask-ai-selection`,category:`general`,title:{id:`6YBJ3m`},description:{id:`ClTEde`},scope:{id:`C62P6b`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`open-ask-ai`,category:`general`,title:{id:`xWEvuo`},description:{id:`5OTgC7`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`,match:{code:`KeyL`,anyMod:!0,shiftKey:!0,allowExtraModifiers:!0}}]},{id:`new-terminal-tab`,category:`general`,title:{id:`YkvmF4`},description:{id:`j2kt1j`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ J`,windowsLinux:`Ctrl Shift J`,match:{key:`j`,mod:!0,shiftKey:!0}}]},{id:`report-bug`,category:`general`,title:{id:`cd5EXh`},description:{id:`CJpuc1`},scope:{id:`cZI5AL`},desktopOnly:!0,bindings:[{mac:`⇧⌘ D`,windowsLinux:`Ctrl Shift D`}]},{id:`navigate-back`,category:`navigation`,title:{id:`iH8pgl`},description:{id:`cjtjry`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ [`,windowsLinux:`Alt ←`}]},{id:`navigate-forward`,category:`navigation`,title:{id:`rxWGWX`},description:{id:`XK5cbh`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ ]`,windowsLinux:`Alt →`}]},{id:`tab-new`,category:`navigation`,title:{id:`3YvS-c`},description:{id:`t6w1cq`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ T`,windowsLinux:`Ctrl T`,match:{key:`t`,mod:!0}}]},{id:`tab-next`,category:`navigation`,title:{id:`l46MqT`},description:{id:`thnPBX`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃ Tab`,windowsLinux:`Ctrl Tab`,match:{key:`Tab`,ctrlKey:!0}}]},{id:`tab-previous`,category:`navigation`,title:{id:`Mh_4hd`},description:{id:`DJd000`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃⇧ Tab`,windowsLinux:`Ctrl Shift Tab`,match:{key:`Tab`,ctrlKey:!0,shiftKey:!0}}]},{id:`tab-jump`,category:`navigation`,title:{id:`_6FVBz`},description:{id:`wGSHzy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 1-8`,windowsLinux:`Ctrl 1-8`}]},{id:`tab-jump-last`,category:`navigation`,title:{id:`N1KkEO`},description:{id:`ZQJ1IV`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 9`,windowsLinux:`Ctrl 9`}]},{id:`tab-reopen-closed`,category:`navigation`,title:{id:`hpzRlK`},description:{id:`E5WeIy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ T`,windowsLinux:`Ctrl Shift T`,match:{key:`t`,mod:!0,shiftKey:!0}}]},{id:`open-folder`,category:`workspace`,title:{id:`PVUn_c`},description:{id:`VYd_YA`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ O`,windowsLinux:`Ctrl O`}]},{id:`open-file`,category:`workspace`,title:{id:`9npOH9`},description:{id:`H08D2X`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ O`,windowsLinux:`Ctrl Shift O`}]},{id:`switch-project`,category:`workspace`,title:{id:`xaDWAI`},description:{id:`oS1YpJ`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ P`,windowsLinux:`Ctrl Shift P`}]},{id:`file-tree-copy`,category:`workspace`,title:{id:`eGUbmF`},description:{id:`7uBlRT`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ C`,windowsLinux:`Ctrl C`}]},{id:`file-tree-paste`,category:`workspace`,title:{id:`_tjopj`},description:{id:`e4PbgC`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ V`,windowsLinux:`Ctrl V`}]},{id:`file-tree-duplicate`,category:`workspace`,title:{id:`ot5BRK`},description:{id:`mxY24F`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`file-tree-delete`,category:`workspace`,title:{id:`VxO6wR`},description:{id:`osRqlv`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ Backspace`,windowsLinux:`Delete`}]},{id:`file-tree-select-all`,category:`workspace`,title:{id:`1d1F11`},description:{id:`4v2Yyz`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`find`,category:`search`,title:{id:`KujtjC`},description:{id:`8OGgNM`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`,match:{key:`f`,mod:!0,allowShiftKey:!0}}]},{id:`replace`,category:`search`,title:{id:`fqSfXY`},description:{id:`wT4iQr`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ F`,windowsLinux:`Ctrl H`,match:{mac:{key:`f`,mod:!0,altKey:!0},windowsLinux:{key:`h`,mod:!0}}}]},{id:`find-next`,category:`search`,title:{id:`v7lbnC`},description:{id:`PR9FSv`},scope:{id:`EqtBXb`},bindings:[{mac:`⌘ G`,windowsLinux:`Ctrl G`,match:{key:`g`,mod:!0}},{mac:`F3`,windowsLinux:`F3`,match:{key:`F3`}}]},{id:`find-previous`,category:`search`,title:{id:`PB4upl`},description:{id:`PgzIpb`},scope:{id:`EqtBXb`},bindings:[{mac:`⇧⌘ G`,windowsLinux:`Ctrl Shift G`,match:{key:`g`,mod:!0,shiftKey:!0}},{mac:`Shift F3`,windowsLinux:`Shift F3`,match:{key:`F3`,shiftKey:!0}}]},{id:`find-field-navigation`,category:`search`,title:{id:`yMgL_E`},description:{id:`5ALjdr`},scope:{id:`BgV29F`},bindings:[{mac:`Enter / Shift Enter`,windowsLinux:`Enter / Shift Enter`}]},{id:`replace-current-from-field`,category:`search`,title:{id:`LDuM35`},description:{id:`EZVxVz`},scope:{id:`rZVMkf`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`format-bold`,category:`wysiwyg`,title:{id:`KmydK6`},description:{id:`fbdLmk`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ B`,windowsLinux:`Ctrl B`}]},{id:`format-italic`,category:`wysiwyg`,title:{id:`pzutoc`},description:{id:`TLIO3j`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ I`,windowsLinux:`Ctrl I`}]},{id:`format-underline`,category:`wysiwyg`,title:{id:`YyXtnN`},description:{id:`Okd2Xv`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ U`,windowsLinux:`Ctrl U`}]},{id:`format-strike`,category:`wysiwyg`,title:{id:`WhOsNE`},description:{id:`HCn0Ay`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ X`,windowsLinux:`Ctrl Shift X`}]},{id:`format-inline-code`,category:`wysiwyg`,title:{id:`OX2Neh`},description:{id:`mo22UP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ E`,windowsLinux:`Ctrl E`}]},{id:`format-highlight`,category:`wysiwyg`,title:{id:`gtEbeW`},description:{id:`Eji13z`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ H`,windowsLinux:`Ctrl Shift H`}]},{id:`add-link`,category:`wysiwyg`,title:{id:`VzGJRl`},description:{id:`u7U_Ij`},scope:{id:`v77jrg`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`add-comment`,category:`wysiwyg`,title:{id:`G4m8rL`},description:{id:`bGOTXx`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`,match:{key:`m`,mod:!0,shiftKey:!0}}]},{id:`view-source-at-cursor`,category:`wysiwyg`,title:{id:`zq2eBA`},description:{id:`cU-seF`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ E`,windowsLinux:`Ctrl Alt E`,match:{code:`KeyE`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`send-comment-queue`,category:`general`,title:{id:`C7PKTv`},description:{id:`5ecEGe`},scope:{id:`ryhHUm`},bindings:[{mac:`⇧⌘ Enter`,windowsLinux:`Ctrl Shift Enter`,match:{key:`Enter`,mod:!0,shiftKey:!0}}]},{id:`history-undo-redo`,category:`wysiwyg`,title:{id:`i9OyGp`},description:{id:`lbkOif`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z / ⌘ Y`,windowsLinux:`Ctrl Shift Z / Ctrl Y`}]},{id:`heading-paragraph`,category:`wysiwyg`,title:{id:`bkQRMh`},description:{id:`rgPqOw`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 0`,windowsLinux:`Ctrl Alt 0`}]},{id:`heading-levels`,category:`wysiwyg`,title:{id:`q_z77Z`},description:{id:`8Jm2EP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 1-6`,windowsLinux:`Ctrl Alt 1-6`}]},{id:`list-bullet`,category:`wysiwyg`,title:{id:`ijLc3m`},description:{id:`By-7Pn`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 8`,windowsLinux:`Ctrl Shift 8`}]},{id:`list-ordered`,category:`wysiwyg`,title:{id:`iSQTsg`},description:{id:`ou1hFW`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 7`,windowsLinux:`Ctrl Shift 7`}]},{id:`list-task`,category:`wysiwyg`,title:{id:`E1_c72`},description:{id:`-slrNR`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 9`,windowsLinux:`Ctrl Shift 9`}]},{id:`code-block`,category:`wysiwyg`,title:{id:`4A3Yzu`},description:{id:`pTPqMK`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ C`,windowsLinux:`Ctrl Alt C`}]},{id:`hard-break`,category:`wysiwyg`,title:{id:`-3ois8`},description:{id:`vDXqVv`},scope:{id:`ur2XSb`},bindings:[{mac:`Shift Enter`,windowsLinux:`Shift Enter`},{mac:`⌘ Enter`,windowsLinux:`Ctrl Enter`}]},{id:`move-block`,category:`wysiwyg`,title:{id:`f1XQyZ`},description:{id:`HJ7aHU`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ ↑`,windowsLinux:`Ctrl Shift ↑`},{mac:`⇧⌘ ↓`,windowsLinux:`Ctrl Shift ↓`}]},{id:`list-indent`,category:`wysiwyg`,title:{id:`G0YZ-I`},description:{id:`5GKMSz`},scope:{id:`ynIa4S`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`list-split-item`,category:`wysiwyg`,title:{id:`neRy3o`},description:{id:`NpC29w`},scope:{id:`ynIa4S`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`table-cell-navigation`,category:`wysiwyg`,title:{id:`K8-WWn`},description:{id:`4NC2Ym`},scope:{id:`l1aQKz`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`table-delete-selection`,category:`wysiwyg`,title:{id:`881Uwh`},description:{id:`YEP3X2`},scope:{id:`99eR72`},bindings:[{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌘ Backspace / ⌘ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`}]},{id:`delete-atom`,category:`wysiwyg`,title:{id:`636K3K`},description:{id:`oXKEsy`},scope:{id:`ur2XSb`},bindings:[{mac:`Backspace`,windowsLinux:`Backspace`},{mac:`Delete`,windowsLinux:`Delete`}]},{id:`slash-menu`,category:`navigation`,title:{id:`shNd9t`},description:{id:`8PmoQF`},scope:{id:`ur2XSb`},bindings:[{mac:`/`,windowsLinux:`/`}]},{id:`suggestion-navigation`,category:`navigation`,title:{id:`riqekz`},description:{id:`OiHJdA`},scope:{id:`y5FUYi`},bindings:[{mac:`↑ / ↓`,windowsLinux:`↑ / ↓`},{mac:`Enter / Tab`,windowsLinux:`Enter / Tab`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`component-navigation`,category:`navigation`,title:{id:`rwrPbS`},description:{id:`0s8-e8`},scope:{id:`ur2XSb`},bindings:[{mac:`↑ / ↓ / ← / →`,windowsLinux:`↑ / ↓ / ← / →`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-indent`,category:`source`,title:{id:`fwhX-N`},description:{id:`skf5Ix`},scope:{id:`tiWX6q`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`source-navigation`,category:`source`,title:{id:`qSKu2v`},description:{id:`gITz7o`},scope:{id:`tiWX6q`},bindings:[{mac:`Arrow keys / Option Arrow / Command Arrow`,windowsLinux:`Arrow keys / Ctrl Arrow / Home / End`},{mac:`Page Up / Page Down`,windowsLinux:`Page Up / Page Down`},{mac:`Shift with movement keys`,windowsLinux:`Shift with movement keys`}]},{id:`source-editing`,category:`source`,title:{id:`pFagOn`},description:{id:`MGb89P`},scope:{id:`tiWX6q`},bindings:[{mac:`Enter / Shift Enter / ⌘ Enter`,windowsLinux:`Enter / Shift Enter / Ctrl Enter`},{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌥ Backspace / ⌥ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`},{mac:`⌥ ↑ / ⌥ ↓`,windowsLinux:`Alt ↑ / Alt ↓`},{mac:`⇧⌥ ↑ / ⇧⌥ ↓`,windowsLinux:`Shift Alt ↑ / Shift Alt ↓`},{mac:`⇧⌘ K`,windowsLinux:`Ctrl Shift K`}]},{id:`source-history`,category:`source`,title:{id:`4Sxexw`},description:{id:`TDeOpa`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y / Ctrl Shift Z`}]},{id:`code-field-history`,category:`wysiwyg`,title:{id:`VXGFMg`},description:{id:`BkGtRl`},scope:{id:`FWSjnp`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y`},{mac:`⌘ U / ⇧⌘ U`,windowsLinux:`Ctrl U / Alt U`}]},{id:`source-select-all`,category:`source`,title:{id:`a-cKXz`},description:{id:`UTNVyS`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`source-multi-cursor`,category:`source`,title:{id:`mg0YGL`},description:{id:`lWNpNB`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ ↑ / ⌥⌘ ↓`,windowsLinux:`Ctrl Alt ↑ / Ctrl Alt ↓`},{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`}]},{id:`source-search`,category:`source`,title:{id:`7OhaRy`},description:{id:`mwMF9u`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`}]},{id:`source-toggle-comment`,category:`source`,title:{id:`RfaEio`},description:{id:`MrwYIK`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ /`,windowsLinux:`Ctrl /`},{mac:`Shift Alt A`,windowsLinux:`Shift Alt A`}]},{id:`source-select-next-occurrence`,category:`source`,title:{id:`hY8pka`},description:{id:`XnlF3W`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`source-goto-line`,category:`source`,title:{id:`7FamGZ`},description:{id:`yHikCO`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ G`,windowsLinux:`Ctrl Alt G`}]},{id:`source-find-results`,category:`source`,title:{id:`rJVoVX`},description:{id:`TwYboS`},scope:{id:`qyLmWw`},bindings:[{mac:`⌘ G / ⇧⌘ G`,windowsLinux:`Ctrl G / Ctrl Shift G`},{mac:`F3 / Shift F3`,windowsLinux:`F3 / Shift F3`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`source-folding`,category:`source`,title:{id:`bcjYUA`},description:{id:`VZGh8G`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ [ / ⌥⌘ ]`,windowsLinux:`Ctrl Shift [ / Ctrl Shift ]`},{mac:`Ctrl Alt [ / Ctrl Alt ]`,windowsLinux:`Ctrl Alt [ / Ctrl Alt ]`}]},{id:`source-completion`,category:`source`,title:{id:`VuxVSP`},description:{id:`Ehkru0`},scope:{id:`tiWX6q`},bindings:[{mac:`Ctrl Space`,windowsLinux:`Ctrl Space`},{mac:"⌥ ` / ⌥ I",windowsLinux:`Ctrl Space`},{mac:`↑ / ↓ / Page Up / Page Down`,windowsLinux:`↑ / ↓ / Page Up / Page Down`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-tab-focus-mode`,category:`source`,title:{id:`eG8Jsg`},description:{id:`qRZh7J`},scope:{id:`tiWX6q`},bindings:[{mac:`Shift Alt M`,windowsLinux:`Ctrl M`}]},{id:`source-lint-panel`,category:`source`,title:{id:`yvG-l1`},description:{id:`kCqCyf`},scope:{id:`tiWX6q`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`}]},{id:`source-next-diagnostic`,category:`source`,title:{id:`M1OfV9`},description:{id:`ExPiRQ`},scope:{id:`tiWX6q`},bindings:[{mac:`F8`,windowsLinux:`F8`}]}],i=r,a=new Map(r.map(e=>[e.id,e]));function o(e){let t=a.get(e);if(!t)throw Error(`Unknown keyboard shortcut: ${e}`);return t}function s(){return e()?`mac`:`windowsLinux`}var c=[[/⌘/g,` Command `],[/⌥/g,` Option `],[/⇧/g,` Shift `],[/⌃/g,` Control `],[/↑/g,` Up Arrow `],[/↓/g,` Down Arrow `],[/←/g,` Left Arrow `],[/→/g,` Right Arrow `],[/\[/g,` Left Bracket `],[/\]/g,` Right Bracket `],[/,/g,` Comma `],[/\bCtrl\b/g,` Control `]];function l(e){return e.split(` / `).map(e=>c.reduce((e,[t,n])=>e.replace(t,n),e).replaceAll(/\s+/g,` `).trim()).join(` or `)}function u(e,t=s()){return t===`mac`?e.mac:e.windowsLinux}function d(e,t=s()){return l(u(e,t))}function f(e,t=s()){return u(o(e).bindings[0],t)}function p(e,t=s()){return d(o(e).bindings[0],t)}function m(e){if(!e||typeof e!=`object`)return!1;if(`isContentEditable`in e&&e.isContentEditable===!0)return!0;if(!(`tagName`in e))return!1;let t=String(e.tagName).toUpperCase();return t===`INPUT`||t===`TEXTAREA`}function h(e,t=s()){return t===`mac`?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function g(e,t,n=s()){return o(t).bindings.some(t=>{let r=v(t.match,n);return r?b(e,r,n):!1})}function _(e,t,n,r=s()){return o(t).bindings.some(t=>{if(n&&t.nativeMenuAccelerator===!0)return!1;let i=v(t.match,r);return i?b(e,i,r):!1})}function v(e,t){return e?y(e)?e:e[t]??null:null}function y(e){return`key`in e||`code`in e}function b(e,t,n){if(t.key&&e.key.toLowerCase()!==t.key.toLowerCase()||t.code&&e.code!==t.code)return!1;let r=t.metaKey??(t.mod?n===`mac`:!1),i=t.ctrlKey??(t.mod?n===`windowsLinux`:!1),a=t.altKey??!1,o=t.shiftKey??!1;return t.allowExtraModifiers?!(t.anyMod&&!e.metaKey&&!e.ctrlKey||r&&!e.metaKey||i&&!e.ctrlKey||a&&!e.altKey||o&&!e.shiftKey):(t.anyMod?e.metaKey||e.ctrlKey:e.metaKey===r&&e.ctrlKey===i)&&e.altKey===a&&(t.allowShiftKey||!!e.shiftKey===o)}export{u as a,l as c,h as d,_ as f,f as i,m as l,t as n,d as o,n as r,p as s,i as t,g as u};
|
|
1
|
+
import{M as e}from"./dist-CdgIFD0J.js";var t={general:{id:`Weq9zb`},workspace:{id:`pmUArF`},search:{id:`A1taO8`},wysiwyg:{id:`ur2XSb`},source:{id:`tiWX6q`},navigation:{id:`LXfNU-`}},n=Object.keys(t),r=[{id:`command-palette`,category:`general`,title:{id:`ZjtgI-`},description:{id:`PBQwGb`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}},{mac:`⌘ P`,windowsLinux:`Ctrl P`,match:{key:`p`,mod:!0}}]},{id:`settings`,category:`general`,title:{id:`Tz0i8g`},description:{id:`6m_7We`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ ,`,windowsLinux:`Ctrl ,`,match:{key:`,`,anyMod:!0}}]},{id:`new-item`,category:`general`,title:{id:`HdkSiO`},description:{id:`KkEAud`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ N`,windowsLinux:`Ctrl N`,match:{key:`n`,mod:!0}},{mac:`⌥⌘ N`,windowsLinux:`Ctrl Alt N`,match:{key:`n`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`new-folder`,category:`general`,title:{id:`96G6Re`},description:{id:`3cOo2C`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ N`,windowsLinux:`Ctrl Shift N`}]},{id:`toggle-files-sidebar`,category:`general`,title:{id:`rtdR4v`},description:{id:`TvEb-G`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ S`,windowsLinux:`Ctrl Alt S`,match:{code:`KeyS`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-document-panel`,category:`general`,title:{id:`lkYioO`},description:{id:`5I3wAF`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ B`,windowsLinux:`Ctrl Alt B`,match:{code:`KeyB`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-editor-mode`,category:`general`,title:{id:`vPXOUw`},description:{id:`buNXgr`},scope:{id:`uBAxNB`},bindings:[{mac:`⌥⌘ M`,windowsLinux:`Ctrl Alt M`,match:{code:`KeyM`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-terminal-panel`,category:`general`,title:{id:`-Al4WQ`},description:{id:`SCveu1`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ J`,windowsLinux:`Ctrl J`,match:{key:`j`,mod:!0},nativeMenuAccelerator:!0},{mac:"⌃ `",windowsLinux:"Ctrl `",match:{code:`Backquote`,ctrlKey:!0}}]},{id:`toggle-agent-panel`,category:`general`,title:{id:`4-Phgi`},description:{id:`4ivBhl`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`ask-ai-selection`,category:`general`,title:{id:`6YBJ3m`},description:{id:`ClTEde`},scope:{id:`C62P6b`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`open-ask-ai`,category:`general`,title:{id:`xWEvuo`},description:{id:`5OTgC7`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`,match:{code:`KeyL`,anyMod:!0,shiftKey:!0,allowExtraModifiers:!0}}]},{id:`new-terminal-tab`,category:`general`,title:{id:`YkvmF4`},description:{id:`j2kt1j`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ J`,windowsLinux:`Ctrl Shift J`,match:{key:`j`,mod:!0,shiftKey:!0}}]},{id:`report-bug`,category:`general`,title:{id:`cd5EXh`},description:{id:`CJpuc1`},scope:{id:`cZI5AL`},desktopOnly:!0,bindings:[{mac:`⇧⌘ D`,windowsLinux:`Ctrl Shift D`}]},{id:`navigate-back`,category:`navigation`,title:{id:`iH8pgl`},description:{id:`cjtjry`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ [`,windowsLinux:`Alt ←`}]},{id:`navigate-forward`,category:`navigation`,title:{id:`rxWGWX`},description:{id:`XK5cbh`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ ]`,windowsLinux:`Alt →`}]},{id:`tab-new`,category:`navigation`,title:{id:`3YvS-c`},description:{id:`t6w1cq`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ T`,windowsLinux:`Ctrl T`,match:{key:`t`,mod:!0}}]},{id:`tab-next`,category:`navigation`,title:{id:`l46MqT`},description:{id:`thnPBX`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃ Tab`,windowsLinux:`Ctrl Tab`,match:{key:`Tab`,ctrlKey:!0}}]},{id:`tab-previous`,category:`navigation`,title:{id:`Mh_4hd`},description:{id:`DJd000`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃⇧ Tab`,windowsLinux:`Ctrl Shift Tab`,match:{key:`Tab`,ctrlKey:!0,shiftKey:!0}}]},{id:`tab-jump`,category:`navigation`,title:{id:`_6FVBz`},description:{id:`wGSHzy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 1-8`,windowsLinux:`Ctrl 1-8`}]},{id:`tab-jump-last`,category:`navigation`,title:{id:`N1KkEO`},description:{id:`ZQJ1IV`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 9`,windowsLinux:`Ctrl 9`}]},{id:`tab-reopen-closed`,category:`navigation`,title:{id:`hpzRlK`},description:{id:`E5WeIy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ T`,windowsLinux:`Ctrl Shift T`,match:{key:`t`,mod:!0,shiftKey:!0}}]},{id:`open-folder`,category:`workspace`,title:{id:`PVUn_c`},description:{id:`VYd_YA`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ O`,windowsLinux:`Ctrl O`}]},{id:`open-file`,category:`workspace`,title:{id:`9npOH9`},description:{id:`H08D2X`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ O`,windowsLinux:`Ctrl Shift O`}]},{id:`switch-project`,category:`workspace`,title:{id:`xaDWAI`},description:{id:`oS1YpJ`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ P`,windowsLinux:`Ctrl Shift P`}]},{id:`file-tree-copy`,category:`workspace`,title:{id:`eGUbmF`},description:{id:`7uBlRT`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ C`,windowsLinux:`Ctrl C`}]},{id:`file-tree-paste`,category:`workspace`,title:{id:`_tjopj`},description:{id:`e4PbgC`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ V`,windowsLinux:`Ctrl V`}]},{id:`file-tree-duplicate`,category:`workspace`,title:{id:`ot5BRK`},description:{id:`mxY24F`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`file-tree-delete`,category:`workspace`,title:{id:`VxO6wR`},description:{id:`osRqlv`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ Backspace`,windowsLinux:`Delete`}]},{id:`file-tree-select-all`,category:`workspace`,title:{id:`1d1F11`},description:{id:`4v2Yyz`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`find`,category:`search`,title:{id:`KujtjC`},description:{id:`8OGgNM`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`,match:{key:`f`,mod:!0,allowShiftKey:!0}}]},{id:`replace`,category:`search`,title:{id:`fqSfXY`},description:{id:`wT4iQr`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ F`,windowsLinux:`Ctrl H`,match:{mac:{key:`f`,mod:!0,altKey:!0},windowsLinux:{key:`h`,mod:!0}}}]},{id:`find-next`,category:`search`,title:{id:`v7lbnC`},description:{id:`PR9FSv`},scope:{id:`EqtBXb`},bindings:[{mac:`⌘ G`,windowsLinux:`Ctrl G`,match:{key:`g`,mod:!0}},{mac:`F3`,windowsLinux:`F3`,match:{key:`F3`}}]},{id:`find-previous`,category:`search`,title:{id:`PB4upl`},description:{id:`PgzIpb`},scope:{id:`EqtBXb`},bindings:[{mac:`⇧⌘ G`,windowsLinux:`Ctrl Shift G`,match:{key:`g`,mod:!0,shiftKey:!0}},{mac:`Shift F3`,windowsLinux:`Shift F3`,match:{key:`F3`,shiftKey:!0}}]},{id:`find-field-navigation`,category:`search`,title:{id:`yMgL_E`},description:{id:`5ALjdr`},scope:{id:`BgV29F`},bindings:[{mac:`Enter / Shift Enter`,windowsLinux:`Enter / Shift Enter`}]},{id:`replace-current-from-field`,category:`search`,title:{id:`LDuM35`},description:{id:`EZVxVz`},scope:{id:`rZVMkf`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`format-bold`,category:`wysiwyg`,title:{id:`KmydK6`},description:{id:`fbdLmk`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ B`,windowsLinux:`Ctrl B`}]},{id:`format-italic`,category:`wysiwyg`,title:{id:`pzutoc`},description:{id:`TLIO3j`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ I`,windowsLinux:`Ctrl I`}]},{id:`format-underline`,category:`wysiwyg`,title:{id:`YyXtnN`},description:{id:`Okd2Xv`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ U`,windowsLinux:`Ctrl U`}]},{id:`format-strike`,category:`wysiwyg`,title:{id:`WhOsNE`},description:{id:`HCn0Ay`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ X`,windowsLinux:`Ctrl Shift X`}]},{id:`format-inline-code`,category:`wysiwyg`,title:{id:`OX2Neh`},description:{id:`mo22UP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ E`,windowsLinux:`Ctrl E`}]},{id:`format-highlight`,category:`wysiwyg`,title:{id:`gtEbeW`},description:{id:`Eji13z`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ H`,windowsLinux:`Ctrl Shift H`}]},{id:`add-link`,category:`wysiwyg`,title:{id:`VzGJRl`},description:{id:`u7U_Ij`},scope:{id:`v77jrg`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`add-comment`,category:`wysiwyg`,title:{id:`G4m8rL`},description:{id:`bGOTXx`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`,match:{key:`m`,mod:!0,shiftKey:!0}}]},{id:`view-source-at-cursor`,category:`wysiwyg`,title:{id:`zq2eBA`},description:{id:`cU-seF`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ E`,windowsLinux:`Ctrl Alt E`,match:{code:`KeyE`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`send-comment-queue`,category:`general`,title:{id:`C7PKTv`},description:{id:`5ecEGe`},scope:{id:`ryhHUm`},bindings:[{mac:`⇧⌘ Enter`,windowsLinux:`Ctrl Shift Enter`,match:{key:`Enter`,mod:!0,shiftKey:!0}}]},{id:`history-undo-redo`,category:`wysiwyg`,title:{id:`i9OyGp`},description:{id:`lbkOif`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z / ⌘ Y`,windowsLinux:`Ctrl Shift Z / Ctrl Y`}]},{id:`heading-paragraph`,category:`wysiwyg`,title:{id:`bkQRMh`},description:{id:`rgPqOw`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 0`,windowsLinux:`Ctrl Alt 0`}]},{id:`heading-levels`,category:`wysiwyg`,title:{id:`q_z77Z`},description:{id:`8Jm2EP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 1-6`,windowsLinux:`Ctrl Alt 1-6`}]},{id:`list-bullet`,category:`wysiwyg`,title:{id:`ijLc3m`},description:{id:`By-7Pn`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 8`,windowsLinux:`Ctrl Shift 8`}]},{id:`list-ordered`,category:`wysiwyg`,title:{id:`iSQTsg`},description:{id:`ou1hFW`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 7`,windowsLinux:`Ctrl Shift 7`}]},{id:`list-task`,category:`wysiwyg`,title:{id:`E1_c72`},description:{id:`-slrNR`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 9`,windowsLinux:`Ctrl Shift 9`}]},{id:`code-block`,category:`wysiwyg`,title:{id:`4A3Yzu`},description:{id:`pTPqMK`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ C`,windowsLinux:`Ctrl Alt C`}]},{id:`hard-break`,category:`wysiwyg`,title:{id:`-3ois8`},description:{id:`vDXqVv`},scope:{id:`ur2XSb`},bindings:[{mac:`Shift Enter`,windowsLinux:`Shift Enter`},{mac:`⌘ Enter`,windowsLinux:`Ctrl Enter`}]},{id:`move-block`,category:`wysiwyg`,title:{id:`f1XQyZ`},description:{id:`HJ7aHU`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ ↑`,windowsLinux:`Ctrl Shift ↑`},{mac:`⇧⌘ ↓`,windowsLinux:`Ctrl Shift ↓`}]},{id:`list-indent`,category:`wysiwyg`,title:{id:`G0YZ-I`},description:{id:`5GKMSz`},scope:{id:`ynIa4S`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`list-split-item`,category:`wysiwyg`,title:{id:`neRy3o`},description:{id:`NpC29w`},scope:{id:`ynIa4S`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`table-cell-navigation`,category:`wysiwyg`,title:{id:`K8-WWn`},description:{id:`4NC2Ym`},scope:{id:`l1aQKz`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`table-delete-selection`,category:`wysiwyg`,title:{id:`881Uwh`},description:{id:`YEP3X2`},scope:{id:`99eR72`},bindings:[{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌘ Backspace / ⌘ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`}]},{id:`delete-atom`,category:`wysiwyg`,title:{id:`636K3K`},description:{id:`oXKEsy`},scope:{id:`ur2XSb`},bindings:[{mac:`Backspace`,windowsLinux:`Backspace`},{mac:`Delete`,windowsLinux:`Delete`}]},{id:`slash-menu`,category:`navigation`,title:{id:`shNd9t`},description:{id:`8PmoQF`},scope:{id:`ur2XSb`},bindings:[{mac:`/`,windowsLinux:`/`}]},{id:`suggestion-navigation`,category:`navigation`,title:{id:`riqekz`},description:{id:`OiHJdA`},scope:{id:`y5FUYi`},bindings:[{mac:`↑ / ↓`,windowsLinux:`↑ / ↓`},{mac:`Enter / Tab`,windowsLinux:`Enter / Tab`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`component-navigation`,category:`navigation`,title:{id:`rwrPbS`},description:{id:`0s8-e8`},scope:{id:`ur2XSb`},bindings:[{mac:`↑ / ↓ / ← / →`,windowsLinux:`↑ / ↓ / ← / →`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-indent`,category:`source`,title:{id:`fwhX-N`},description:{id:`skf5Ix`},scope:{id:`tiWX6q`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`source-navigation`,category:`source`,title:{id:`qSKu2v`},description:{id:`gITz7o`},scope:{id:`tiWX6q`},bindings:[{mac:`Arrow keys / Option Arrow / Command Arrow`,windowsLinux:`Arrow keys / Ctrl Arrow / Home / End`},{mac:`Page Up / Page Down`,windowsLinux:`Page Up / Page Down`},{mac:`Shift with movement keys`,windowsLinux:`Shift with movement keys`}]},{id:`source-editing`,category:`source`,title:{id:`pFagOn`},description:{id:`MGb89P`},scope:{id:`tiWX6q`},bindings:[{mac:`Enter / Shift Enter / ⌘ Enter`,windowsLinux:`Enter / Shift Enter / Ctrl Enter`},{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌥ Backspace / ⌥ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`},{mac:`⌥ ↑ / ⌥ ↓`,windowsLinux:`Alt ↑ / Alt ↓`},{mac:`⇧⌥ ↑ / ⇧⌥ ↓`,windowsLinux:`Shift Alt ↑ / Shift Alt ↓`},{mac:`⇧⌘ K`,windowsLinux:`Ctrl Shift K`}]},{id:`source-history`,category:`source`,title:{id:`4Sxexw`},description:{id:`TDeOpa`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y / Ctrl Shift Z`}]},{id:`code-field-history`,category:`wysiwyg`,title:{id:`VXGFMg`},description:{id:`BkGtRl`},scope:{id:`FWSjnp`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y`},{mac:`⌘ U / ⇧⌘ U`,windowsLinux:`Ctrl U / Alt U`}]},{id:`source-select-all`,category:`source`,title:{id:`a-cKXz`},description:{id:`UTNVyS`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`source-multi-cursor`,category:`source`,title:{id:`mg0YGL`},description:{id:`lWNpNB`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ ↑ / ⌥⌘ ↓`,windowsLinux:`Ctrl Alt ↑ / Ctrl Alt ↓`},{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`}]},{id:`source-search`,category:`source`,title:{id:`7OhaRy`},description:{id:`mwMF9u`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`}]},{id:`source-toggle-comment`,category:`source`,title:{id:`RfaEio`},description:{id:`MrwYIK`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ /`,windowsLinux:`Ctrl /`},{mac:`Shift Alt A`,windowsLinux:`Shift Alt A`}]},{id:`source-select-next-occurrence`,category:`source`,title:{id:`hY8pka`},description:{id:`XnlF3W`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`source-goto-line`,category:`source`,title:{id:`7FamGZ`},description:{id:`yHikCO`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ G`,windowsLinux:`Ctrl Alt G`}]},{id:`source-find-results`,category:`source`,title:{id:`rJVoVX`},description:{id:`TwYboS`},scope:{id:`qyLmWw`},bindings:[{mac:`⌘ G / ⇧⌘ G`,windowsLinux:`Ctrl G / Ctrl Shift G`},{mac:`F3 / Shift F3`,windowsLinux:`F3 / Shift F3`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`source-folding`,category:`source`,title:{id:`bcjYUA`},description:{id:`VZGh8G`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ [ / ⌥⌘ ]`,windowsLinux:`Ctrl Shift [ / Ctrl Shift ]`},{mac:`Ctrl Alt [ / Ctrl Alt ]`,windowsLinux:`Ctrl Alt [ / Ctrl Alt ]`}]},{id:`source-completion`,category:`source`,title:{id:`VuxVSP`},description:{id:`Ehkru0`},scope:{id:`tiWX6q`},bindings:[{mac:`Ctrl Space`,windowsLinux:`Ctrl Space`},{mac:"⌥ ` / ⌥ I",windowsLinux:`Ctrl Space`},{mac:`↑ / ↓ / Page Up / Page Down`,windowsLinux:`↑ / ↓ / Page Up / Page Down`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-tab-focus-mode`,category:`source`,title:{id:`eG8Jsg`},description:{id:`qRZh7J`},scope:{id:`tiWX6q`},bindings:[{mac:`Shift Alt M`,windowsLinux:`Ctrl M`}]},{id:`source-lint-panel`,category:`source`,title:{id:`yvG-l1`},description:{id:`kCqCyf`},scope:{id:`tiWX6q`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`}]},{id:`source-next-diagnostic`,category:`source`,title:{id:`M1OfV9`},description:{id:`ExPiRQ`},scope:{id:`tiWX6q`},bindings:[{mac:`F8`,windowsLinux:`F8`}]}],i=r,a=new Map(r.map(e=>[e.id,e]));function o(e){let t=a.get(e);if(!t)throw Error(`Unknown keyboard shortcut: ${e}`);return t}function s(){return e()?`mac`:`windowsLinux`}var c=[[/⌘/g,` Command `],[/⌥/g,` Option `],[/⇧/g,` Shift `],[/⌃/g,` Control `],[/↑/g,` Up Arrow `],[/↓/g,` Down Arrow `],[/←/g,` Left Arrow `],[/→/g,` Right Arrow `],[/\[/g,` Left Bracket `],[/\]/g,` Right Bracket `],[/,/g,` Comma `],[/\bCtrl\b/g,` Control `]];function l(e){return e.split(` / `).map(e=>c.reduce((e,[t,n])=>e.replace(t,n),e).replaceAll(/\s+/g,` `).trim()).join(` or `)}function u(e,t=s()){return t===`mac`?e.mac:e.windowsLinux}function d(e,t=s()){return l(u(e,t))}function f(e,t=s()){return u(o(e).bindings[0],t)}function p(e,t=s()){return d(o(e).bindings[0],t)}function m(e){if(!e||typeof e!=`object`)return!1;if(`isContentEditable`in e&&e.isContentEditable===!0)return!0;if(!(`tagName`in e))return!1;let t=String(e.tagName).toUpperCase();return t===`INPUT`||t===`TEXTAREA`}function h(e,t=s()){return t===`mac`?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function g(e,t,n=s()){return o(t).bindings.some(t=>{let r=v(t.match,n);return r?b(e,r,n):!1})}function _(e,t,n,r=s()){return o(t).bindings.some(t=>{if(n&&t.nativeMenuAccelerator===!0)return!1;let i=v(t.match,r);return i?b(e,i,r):!1})}function v(e,t){return e?y(e)?e:e[t]??null:null}function y(e){return`key`in e||`code`in e}function b(e,t,n){if(t.key&&e.key.toLowerCase()!==t.key.toLowerCase()||t.code&&e.code!==t.code)return!1;let r=t.metaKey??(t.mod?n===`mac`:!1),i=t.ctrlKey??(t.mod?n===`windowsLinux`:!1),a=t.altKey??!1,o=t.shiftKey??!1;return t.allowExtraModifiers?!(t.anyMod&&!e.metaKey&&!e.ctrlKey||r&&!e.metaKey||i&&!e.ctrlKey||a&&!e.altKey||o&&!e.shiftKey):(t.anyMod?e.metaKey||e.ctrlKey:e.metaKey===r&&e.ctrlKey===i)&&e.altKey===a&&(t.allowShiftKey||!!e.shiftKey===o)}export{u as a,l as c,h as d,_ as f,f as i,m as l,t as n,d as o,n as r,p as s,i as t,g as u};
|
package/dist/public/assets/{lint-config-client-DTbxVXNu.js → lint-config-client-Cwihn-uv.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{a as r,i,n as a}from"./markdown-lint-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{a as r,i,n as a}from"./markdown-lint-BHJCn8aG.js";var o=n(),s=e(t(),1),c=`open-knowledge:lint-config-changed`;function l(){window.dispatchEvent(new CustomEvent(c))}function u(e){let t=()=>e();return window.addEventListener(c,t),()=>window.removeEventListener(c,t)}async function d(e){try{let t=e===void 0?``:`?doc=${encodeURIComponent(e)}`,n=await fetch(`/api/lint/config${t}`);if(!n.ok)return null;let r=await n.json().catch(()=>null),a=i.safeParse(r);return a.success?a.data:(console.warn(`[lint] lint-config response failed schema validation`,a.error.issues),null)}catch{return null}}async function f(e){return(await d(e))?.effective??null}var p=3e4;async function m(e){let t=new AbortController,n=setTimeout(()=>t.abort(),p);try{let n=await fetch(`/api/lint/fix`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({docName:e}),signal:t.signal});if(!n.ok){let e=await n.json().catch(()=>null);return{ok:!1,errorDetail:typeof e?.title==`string`?e.title:null,status:n.status,problemType:typeof e?.type==`string`?e.type:null}}let i=await n.json().catch(()=>null),a=r.safeParse(i);return a.success?{ok:!0,result:a.data}:(console.warn(`[lint] fix response failed schema validation`,a.error.issues),{ok:!1,errorDetail:null,status:n.status,problemType:null})}catch(t){return console.warn(`[lint] fix request failed`,e,t instanceof Error?t.message:t),{ok:!1,errorDetail:null,status:null,problemType:null}}finally{clearTimeout(n)}}async function h(e,t){try{let n=await fetch(`/api/lint/markdownlint-config`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({ruleId:e,value:t})});if(!n.ok){let e=await n.json().catch(()=>null);return{ok:!1,errorDetail:typeof e?.title==`string`?e.title:null}}let r=await n.json().catch(()=>null),a=i.safeParse(r);return a.success?{ok:!0,response:a.data}:{ok:!1,errorDetail:null}}catch{return{ok:!1,errorDetail:null}}}async function g(e){try{let t=await fetch(`/api/lint/frontmatter-schema`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)});if(!t.ok){let e=await t.json().catch(()=>null);return{ok:!1,errorDetail:typeof e?.title==`string`?e.title:null}}let n=i.safeParse(await t.json().catch(()=>null));return n.success?{ok:!0,response:n.data}:{ok:!1,errorDetail:null}}catch{return{ok:!1,errorDetail:null}}}function _(e){return e.length>0?e:void 0}async function v(e,t,n,r=[]){return g({file:e,field:t,constraint:n,parentPath:_(r)})}async function y(){try{let e=await fetch(`/api/lint/frontmatter-schemas`);if(!e.ok)return[];let t=await e.json().catch(()=>null),n=a.safeParse(t);return n.success?n.data.schemas:(console.warn(`[lint] frontmatter-schemas response failed schema validation`,n.error.issues),[])}catch{return[]}}async function b(e){let t=await g({file:e});return t.ok&&l(),t}async function x(e,t,n=[]){return g({file:e,field:t,removeField:!0,parentPath:_(n)})}async function S(e,t,n,r=[]){return g({file:e,field:t,renameTo:n,parentPath:_(r)})}async function C(e){let t=await g({file:e,delete:!0});return t.ok&&l(),t}function w(){let e=(0,o.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0];let[n,r]=(0,s.useState)(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{y().then(r)},e[1]=i):i=e[1];let a=i,c,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{let e=!1,t=()=>{y().then(t=>{e||r(t)})};t();let n=u(t);return()=>{e=!0,n()}},l=[],e[2]=c,e[3]=l):(c=e[2],l=e[3]),(0,s.useEffect)(c,l);let d;return e[4]===n?d=e[5]:(d={schemas:n,refresh:a},e[4]=n,e[5]=d),d}function T(e){let t=(0,o.c)(5),[n,r]=(0,s.useState)(null),i,a;t[0]===e?(i=t[1],a=t[2]):(i=()=>{if(!e){r(null);return}let t=!1,n=()=>{d(e).then(e=>{t||r(e)})};n();let i=u(n);return()=>{t=!0,i()}},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,s.useEffect)(i,a);let c;return t[3]===n?c=t[4]:(c={data:n},t[3]=n,t[4]=c),c}function E(){let e=(0,o.c)(4),[t,n]=(0,s.useState)(null),r,i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=!1,t=()=>{d().then(t=>{e||n(t)})};t();let r=u(t);return()=>{e=!0,r()}},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,s.useEffect)(r,i);let a;return e[2]===t?a=e[3]:(a={data:t},e[2]=t,e[3]=a),a}export{m as a,u as c,E as d,v as f,f as i,T as l,C as n,x as o,h as p,l as r,S as s,b as t,w as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=e(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),n=`https://openknowledge.ai/docs/advanced/content-rules`,r=[{id:`markdownlint`,label:`markdownlint`,docUrl:`${n}/markdownlint`},{id:`frontmatter`,label:`Frontmatter schemas`,docUrl:`${n}/frontmatter`},{id:`okf`,label:`OKF`,docUrl:`https://openknowledge.ai/docs/plugins/okf`,beta:!0,recommendedSkills:[{packId:`okf`,name:`okf-knowledge-base`}]}];export{t as n,r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./lint-plugin-meta-6QZWEsvL.js";import{FrontmatterPluginSection as t,MarkdownlintPluginSection as n,OkfPluginSection as r}from"./LintingSection-Dpym-WwL.js";var i={markdownlint:n,frontmatter:t,okf:r},a=e.map(e=>({...e,Section:i[e.id]}));export{a as LINT_PLUGIN_UI};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=e(`list-plus`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]);export{t};
|
package/dist/public/assets/{local-menu-action-bus-Dyh2UJJF.js → local-menu-action-bus-BRwk7KU_.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./note-window-mode-
|
|
1
|
+
import{t as e}from"./note-window-mode-DK36peY8.js";import{t}from"./createLucideIcon-CB3nKwwz.js";function n(t,n){if(typeof window>`u`||n!==window||!e())return!1;let r=window.okDesktop?.noteWindow?.dispatchToMain;return typeof r==`function`?(r(t).then(e=>{e.ok||console.warn(`[note-window] main-window action dispatch declined`,{reason:e.reason,kind:t.kind})}).catch(e=>{console.warn(`[note-window] main-window action dispatch failed`,e)}),!0):!1}var r=t(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),i=t(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),a=Object.freeze({launcherBorne:!1}),o=new Set,s=null;function c(){if(s!==null)return;let e=typeof window<`u`?window.okDesktop:void 0;e==null||typeof e.onMenuAction!=`function`||(s=e.onMenuAction((e,t)=>{d(e,t)}))}function l(){o.size===0&&s!==null&&(s(),s=null)}function u(e){return o.add(e),c(),()=>{o.delete(e),l()}}function d(e,t=a){for(let n of o)try{n(e,t)}catch(e){console.error(`[local-menu-action-bus] subscriber threw during dispatch:`,e)}}export{n as a,r as i,u as n,i as r,d as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./markdownit-Bzko96Lx.js","./chunk-CYidjpOJ.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e,i as t,n,o as r,r as i,t as a}from"./chunk-CYidjpOJ.js";import{t as o}from"./preload-helper-Chd9yIcd.js";import{a as s,b as c,f as l,g as u,i as d,p as f,r as p,t as m,u as h,v as g,y as _}from"./schemas-CxFhJLAM.js";import{c as v,d as y,f as b}from"./_envelope-DuFpUEag-Beu481Zb.js";import{Ft as x,Jt as S,Lt as C,Rt as w,Yt as T,bt as E,qt as D,vt as O,xt as k}from"./schemas-api-DlZNlpBW.js";import{t as A}from"./doc-extensions-CcO7K8uD-DG9uHV54.js";import{D as ee,O as j}from"./saved-themes-client-CekgvN2w.js";import{A as M,E as N,M as P,O as F,R as I,a as L,c as R,d as z,f as B,i as V,j as H,k as U,l as te,n as W,o as G,p as ne,r as re,s as K,t as ie,u as q,v as ae}from"./lib-Bq-Hw4OM.js";import{n as oe,t as se}from"./syntax-IpEhTG_b.js";import{n as ce,t as le}from"./markdownit-Bzko96Lx.js";var ue=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i<t.length;)s(n,t[i]),n.push(e[++i]);return new r(n)}e._=i;var a=new r(`+`);function o(e,...t){let n=[p(e[0])],i=0;for(;i<t.length;)n.push(a),s(n,t[i]),n.push(a,p(e[++i]));return c(n),new r(n)}e.str=o;function s(e,t){t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push(d(t))}e.addCodeArg=s;function c(e){let t=1;for(;t<e.length-1;){if(e[t]===a){let n=l(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=`+`}t++}}function l(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof n||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof n))return`"${e}${t.slice(1)}`}function u(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`}e.strConcat=u;function d(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:p(Array.isArray(e)?e.join(`,`):e)}function f(e){return new r(p(e))}e.stringify=f;function p(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=p;function m(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`}e.getProperty=m;function h(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new r(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=h;function g(e){return new r(e.toString())}e.regexpCode=g})),de=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t=ue(),n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;var o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}})),J=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var t=ue(),n=de(),r=ue();Object.defineProperty(e,`_`,{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,`str`,{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,`strConcat`,{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,`nil`,{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,`getProperty`,{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,`regexpCode`,{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,`Name`,{enumerable:!0,get:function(){return r.Name}});var i=de();Object.defineProperty(e,`Scope`,{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,`ValueScope`,{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,`ValueScopeName`,{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,`varKinds`,{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=k(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=k(this.rhs,e,n),this}get names(){return O(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=k(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(A(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>D(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(ee(t),n instanceof e?[n]:n.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=k(this.condition,e,t),this}get names(){let e=super.names;return O(e,this.condition),this.else&&D(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=k(this.iteration,e,t),this}get names(){return D(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return O(O(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=k(this.iterable,e,t),this}get names(){return D(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var w=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&D(e,this.catch.names),this.finally&&D(e,this.finally.names),e}},T=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};T.kind=`catch`;var E=class extends m{render(e){return`finally`+super.render(e)}};E.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
|
|
2
|
+
import{a as e,i as t,n,o as r,r as i,t as a}from"./chunk-CYidjpOJ.js";import{t as o}from"./preload-helper-Chd9yIcd.js";import{a as s,b as c,f as l,g as u,i as d,p as f,r as p,t as m,u as h,v as g,y as _}from"./schemas-DN_HD0k4.js";import{c as v,d as y,f as b}from"./_envelope-DuFpUEag-DIV0rnvM.js";import{Ft as x,Jt as S,Lt as C,Rt as w,Yt as T,bt as E,qt as D,vt as O,xt as k}from"./schemas-api-6ufosDur.js";import{t as A}from"./doc-extensions-CcO7K8uD-BsCiKh3N.js";import{D as ee,O as j}from"./saved-themes-client-BESiCu3n.js";import{A as M,E as N,M as P,O as F,R as I,a as L,c as R,d as z,f as B,i as V,j as H,k as U,l as te,n as W,o as G,p as ne,r as re,s as K,t as ie,u as q,v as ae}from"./lib-Bq-Hw4OM.js";import{n as oe,t as se}from"./syntax-IpEhTG_b.js";import{n as ce,t as le}from"./markdownit-Bzko96Lx.js";var ue=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i<t.length;)s(n,t[i]),n.push(e[++i]);return new r(n)}e._=i;var a=new r(`+`);function o(e,...t){let n=[p(e[0])],i=0;for(;i<t.length;)n.push(a),s(n,t[i]),n.push(a,p(e[++i]));return c(n),new r(n)}e.str=o;function s(e,t){t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push(d(t))}e.addCodeArg=s;function c(e){let t=1;for(;t<e.length-1;){if(e[t]===a){let n=l(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=`+`}t++}}function l(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof n||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof n))return`"${e}${t.slice(1)}`}function u(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`}e.strConcat=u;function d(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:p(Array.isArray(e)?e.join(`,`):e)}function f(e){return new r(p(e))}e.stringify=f;function p(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=p;function m(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`}e.getProperty=m;function h(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new r(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=h;function g(e){return new r(e.toString())}e.regexpCode=g})),de=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t=ue(),n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;var o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}})),J=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var t=ue(),n=de(),r=ue();Object.defineProperty(e,`_`,{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,`str`,{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,`strConcat`,{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,`nil`,{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,`getProperty`,{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,`regexpCode`,{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,`Name`,{enumerable:!0,get:function(){return r.Name}});var i=de();Object.defineProperty(e,`Scope`,{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,`ValueScope`,{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,`ValueScopeName`,{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,`varKinds`,{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=k(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=k(this.rhs,e,n),this}get names(){return O(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=k(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(A(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>D(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(ee(t),n instanceof e?[n]:n.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=k(this.condition,e,t),this}get names(){let e=super.names;return O(e,this.condition),this.else&&D(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=k(this.iteration,e,t),this}get names(){return D(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return O(O(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=k(this.iterable,e,t),this}get names(){return D(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var w=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&D(e,this.catch.names),this.finally&&D(e,this.finally.names),e}},T=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};T.kind=`catch`;var E=class extends m{render(e){return`finally`+super.render(e)}};E.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
|
|
3
3
|
`:``},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let i=this._scope.toName(t);return n!==void 0&&r&&(this._constants[i.str]=n),this._leafNode(new o(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new c(t,e.operators.ADD,n))}code(e){return typeof e==`function`?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){let n=[`{`];for(let[r,i]of e)n.length>1&&n.push(`,`),n.push(r),(r!==i||this.opts.es5)&&(n.push(`:`),(0,t.addCodeArg)(n,i));return n.push(`}`),new t._Code(n)}if(e,t,n){if(this._blockNode(new _(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(_,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.let){let o=this._scope.toName(e);return this._for(new b(a,o,t,r),()=>i(o))}forOf(e,r,i,a=n.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=r instanceof t.Name?r:this.var(`_arr`,r);return this.forRange(`_i`,0,(0,t._)`${e}.length`,n=>{this.var(o,(0,t._)`${e}[${n}]`),i(o)})}return this._for(new x(`of`,a,o,r),()=>i(o))}forIn(e,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,t._)`Object.keys(${r})`,i);let o=this._scope.toName(e);return this._for(new x(`in`,a,o,r),()=>i(o))}endFor(){return this._endBlockNode(v)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new u(e))}return(e){let t=new C;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error(`CodeGen: "return" should have one node`);return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw Error(`CodeGen: "try" without "catch" and "finally"`);let r=new w;if(this._blockNode(r),this.code(e),t){let e=this.name(`e`);this._currNode=r.catch=new T(e),t(e)}return n&&(this._currNode=r.finally=new E,this.code(n)),this._endBlockNode(T,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new S(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof _))throw Error(`CodeGen: "else" without "if"`);return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function D(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function O(e,n){return n instanceof t._CodeOrName?D(e,n.names):e}function k(e,n,r){if(e instanceof t.Name)return i(e);if(!a(e))return e;return new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[]));function i(e){let t=r[e.str];return t===void 0||n[e.str]!==1?e:(delete n[e.str],t)}function a(e){return e instanceof t._Code&&e._items.some(e=>e instanceof t.Name&&n[e.str]===1&&r[e.str]!==void 0)}}function A(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function ee(e){return typeof e==`boolean`||typeof e==`number`||e===null?!e:(0,t._)`!${I(e)}`}e.not=ee;var j=F(e.operators.AND);function M(...e){return e.reduce(j)}e.and=M;var N=F(e.operators.OR);function P(...e){return e.reduce(N)}e.or=P;function F(e){return(n,r)=>n===t.nil?r:r===t.nil?n:(0,t._)`${I(n)} ${e} ${I(r)}`}function I(e){return e instanceof t.Name?e:(0,t._)`(${e})`}})),Y=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;var t=J(),n=ue();function r(e){let t={};for(let n of e)t[n]=!0;return t}e.toHash=r;function i(e,t){return typeof t==`boolean`?t:Object.keys(t).length===0?!0:(a(e,t),!o(t,e.self.RULES.all))}e.alwaysValidSchema=i;function a(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t==`boolean`)return;let i=r.RULES.keywords;for(let n in t)i[n]||x(e,`unknown keyword: "${n}"`)}e.checkUnknownRules=a;function o(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(t[n])return!0;return!1}e.schemaHasRules=o;function s(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(n!==`$ref`&&t.all[n])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:e,schemaPath:n},r,i,a){if(!a){if(typeof r==`number`||typeof r==`boolean`)return r;if(typeof r==`string`)return(0,t._)`${r}`}return(0,t._)`${e}${n}${(0,t.getProperty)(i)}`}e.schemaRefOrVal=c;function l(e){return f(decodeURIComponent(e))}e.unescapeFragment=l;function u(e){return encodeURIComponent(d(e))}e.escapeFragment=u;function d(e){return typeof e==`number`?`${e}`:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.escapeJsonPointer=d;function f(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}e.unescapeJsonPointer=f;function p(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}e.eachItem=p;function m({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:i}){return(a,o,s,c)=>{let l=s===void 0?o:s instanceof t.Name?(o instanceof t.Name?e(a,o,s):n(a,o,s),s):o instanceof t.Name?(n(a,s,o),o):r(o,s);return c===t.Name&&!(l instanceof t.Name)?i(a,l):l}}e.mergeEvaluated={props:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>{e.if((0,t._)`${n} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,t._)`${r} || {}`).code((0,t._)`Object.assign(${r}, ${n})`))}),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>{n===!0?e.assign(r,!0):(e.assign(r,(0,t._)`${r} || {}`),g(e,r,n))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:h}),items:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>e.assign(r,(0,t._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>e.assign(r,n===!0?!0:(0,t._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var(`items`,t)})};function h(e,n){if(n===!0)return e.var(`props`,!0);let r=e.var(`props`,(0,t._)`{}`);return n!==void 0&&g(e,r,n),r}e.evaluatedPropsToName=h;function g(e,n,r){Object.keys(r).forEach(r=>e.assign((0,t._)`${n}${(0,t.getProperty)(r)}`,!0))}e.setEvaluated=g;var _={};function v(e,t){return e.scopeValue(`func`,{ref:t,code:_[t.code]||(_[t.code]=new n._Code(t.code))})}e.useFunc=v;var y;(function(e){e[e.Num=0]=`Num`,e[e.Str=1]=`Str`})(y||(e.Type=y={}));function b(e,n,r){if(e instanceof t.Name){let i=n===y.Num;return r?i?(0,t._)`"[" + ${e} + "]"`:(0,t._)`"['" + ${e} + "']"`:i?(0,t._)`"/" + ${e}`:(0,t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():`/`+d(e)}e.getErrorPath=b;function x(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}}e.checkStrictMode=x})),X=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=J();e.default={data:new t.Name(`data`),valCxt:new t.Name(`valCxt`),instancePath:new t.Name(`instancePath`),parentData:new t.Name(`parentData`),parentDataProperty:new t.Name(`parentDataProperty`),rootData:new t.Name(`rootData`),dynamicAnchors:new t.Name(`dynamicAnchors`),vErrors:new t.Name(`vErrors`),errors:new t.Name(`errors`),this:new t.Name(`this`),self:new t.Name(`self`),scope:new t.Name(`scope`),json:new t.Name(`json`),jsonPos:new t.Name(`jsonPos`),jsonLen:new t.Name(`jsonLen`),jsonPart:new t.Name(`jsonPart`)}})),fe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;var t=J(),n=Y(),r=X();e.keywordError={message:({keyword:e})=>(0,t.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?(0,t.str)`"${e}" keyword must be ${n} ($data)`:(0,t.str)`"${e}" keyword is invalid ($data)`};function i(n,r=e.keywordError,i,a){let{it:o}=n,{gen:s,compositeRule:u,allErrors:f}=o,p=d(n,r,i);a??(u||f)?c(s,p):l(o,(0,t._)`[${p}]`)}e.reportError=i;function a(t,n=e.keywordError,i){let{it:a}=t,{gen:o,compositeRule:s,allErrors:u}=a;c(o,d(t,n,i)),s||u||l(a,r.default.vErrors)}e.reportExtraError=a;function o(e,n){e.assign(r.default.errors,n),e.if((0,t._)`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign((0,t._)`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:e,keyword:n,schemaValue:i,data:a,errsCount:o,it:s}){if(o===void 0)throw Error(`ajv implementation error`);let c=e.name(`err`);e.forRange(`i`,o,r.default.errors,o=>{e.const(c,(0,t._)`${r.default.vErrors}[${o}]`),e.if((0,t._)`${c}.instancePath === undefined`,()=>e.assign((0,t._)`${c}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign((0,t._)`${c}.schemaPath`,(0,t.str)`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign((0,t._)`${c}.schema`,i),e.assign((0,t._)`${c}.data`,a))})}e.extendErrors=s;function c(e,n){let i=e.const(`err`,n);e.if((0,t._)`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,(0,t._)`[${i}]`),(0,t._)`${r.default.vErrors}.push(${i})`),e.code((0,t._)`${r.default.errors}++`)}function l(e,n){let{gen:r,validateName:i,schemaEnv:a}=e;a.$async?r.throw((0,t._)`new ${e.ValidationError}(${n})`):(r.assign((0,t._)`${i}.errors`,n),r.return(!1))}var u={keyword:new t.Name(`keyword`),schemaPath:new t.Name(`schemaPath`),params:new t.Name(`params`),propertyName:new t.Name(`propertyName`),message:new t.Name(`message`),schema:new t.Name(`schema`),parentSchema:new t.Name(`parentSchema`)};function d(e,n,r){let{createErrors:i}=e.it;return i===!1?(0,t._)`{}`:f(e,n,r)}function f(e,t,n={}){let{gen:r,it:i}=e,a=[p(i,n),m(e,n)];return h(e,t,a),r.object(...a)}function p({errorPath:e},{instancePath:i}){let a=i?(0,t.str)`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function m({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:a}){let o=a?r:(0,t.str)`${r}/${e}`;return i&&(o=(0,t.str)`${o}${(0,n.getErrorPath)(i,n.Type.Str)}`),[u.schemaPath,o]}function h(e,{params:n,message:i},a){let{keyword:o,data:s,schemaValue:c,it:l}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=l;a.push([u.keyword,o],[u.params,typeof n==`function`?n(e):n||(0,t._)`{}`]),d.messages&&a.push([u.message,typeof i==`function`?i(e):i]),d.verbose&&a.push([u.schema,c],[u.parentSchema,(0,t._)`${p}${m}`],[r.default.data,s]),f&&a.push([u.propertyName,f])}})),pe=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;var t=fe(),n=J(),r=X(),i={message:`boolean schema is false`};function a(e){let{gen:t,schema:i,validateName:a}=e;i===!1?s(e,!1):typeof i==`object`&&i.$async===!0?t.return(r.default.data):(t.assign((0,n._)`${a}.errors`,null),t.return(!0))}e.topBoolOrEmptySchema=a;function o(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),s(e)):n.var(t,!0)}e.boolOrEmptySchema=o;function s(e,n){let{gen:r,data:a}=e,o={gen:r,keyword:`false schema`,data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,t.reportError)(o,i,void 0,n)}})),me=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getRules=e.isJSONType=void 0;var t=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function n(e){return typeof e==`string`&&t.has(e)}e.isJSONType=n;function r(){let e={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=r})),he=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&n(e,i)}e.schemaHasRulesForType=t;function n(e,t){return t.rules.some(t=>r(e,t))}e.shouldUseGroup=n;function r(e,t){return e[t.keyword]!==void 0||t.definition.implements?.some(t=>e[t]!==void 0)}e.shouldUseRule=r})),ge=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;var t=me(),n=he(),r=fe(),i=J(),a=Y(),o;(function(e){e[e.Correct=0]=`Correct`,e[e.Wrong=1]=`Wrong`})(o||(e.DataType=o={}));function s(e){let t=c(e.type);if(t.includes(`null`)){if(e.nullable===!1)throw Error(`type: null contradicts nullable: false`)}else{if(!t.length&&e.nullable!==void 0)throw Error(`"nullable" cannot be used without "type"`);e.nullable===!0&&t.push(`null`)}return t}e.getSchemaTypes=s;function c(e){let n=Array.isArray(e)?e:e?[e]:[];if(n.every(t.isJSONType))return n;throw Error(`type must be JSONType or JSONType[]: `+n.join(`,`))}e.getJSONTypes=c;function l(e,t){let{gen:r,data:i,opts:a}=e,s=d(t,a.coerceTypes),c=t.length>0&&!(s.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(c){let n=h(t,i,a.strictNumbers,o.Wrong);r.if(n,()=>{s.length?f(e,t,s):_(e)})}return c}e.coerceAndCheckDataType=l;var u=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function d(e,t){return t?e.filter(e=>u.has(e)||t===`array`&&e===`array`):[]}function f(e,t,n){let{gen:r,data:a,opts:o}=e,s=r.let(`dataType`,(0,i._)`typeof ${a}`),c=r.let(`coerced`,(0,i._)`undefined`);o.coerceTypes===`array`&&r.if((0,i._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>r.assign(a,(0,i._)`${a}[0]`).assign(s,(0,i._)`typeof ${a}`).if(h(t,a,o.strictNumbers),()=>r.assign(c,a))),r.if((0,i._)`${c} !== undefined`);for(let e of n)(u.has(e)||e===`array`&&o.coerceTypes===`array`)&&l(e);r.else(),_(e),r.endIf(),r.if((0,i._)`${c} !== undefined`,()=>{r.assign(a,c),p(e,c)});function l(e){switch(e){case`string`:r.elseIf((0,i._)`${s} == "number" || ${s} == "boolean"`).assign(c,(0,i._)`"" + ${a}`).elseIf((0,i._)`${a} === null`).assign(c,(0,i._)`""`);return;case`number`:r.elseIf((0,i._)`${s} == "boolean" || ${a} === null
|
|
4
4
|
|| (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,(0,i._)`+${a}`);return;case`integer`:r.elseIf((0,i._)`${s} === "boolean" || ${a} === null
|
|
5
5
|
|| (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,(0,i._)`+${a}`);return;case`boolean`:r.elseIf((0,i._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf((0,i._)`${a} === "true" || ${a} === 1`).assign(c,!0);return;case`null`:r.elseIf((0,i._)`${a} === "" || ${a} === 0 || ${a} === false`),r.assign(c,null);return;case`array`:r.elseIf((0,i._)`${s} === "string" || ${s} === "number"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-BjuCvy5N.js";import{n as l,r as u,t as d}from"./collapsible-BKbszYZV.js";import{t as f}from"./checkbox-CKD8LETI.js";import{t as p}from"./label-CvMpFFbN.js";import{i as m,n as h,o as g,s as _,t as v}from"./select-BsDvTs6I.js";import{t as y}from"./switch-BKZTXkzu.js";import{t as ee}from"./button-DzgjsZzC.js";import{n as b}from"./dist-BGzUo_18.js";import{t as x}from"./arrow-up-right-nJaICi16.js";import{t as te}from"./chevron-right-Bofu4lib.js";import{t as S}from"./info-CyR0W2SK.js";import{t as ne}from"./rotate-ccw-DeMl2ou7.js";import{t as C}from"./badge-DcyFOLs8.js";import{r as w}from"./field-DtEiTjHS.js";import{t as T}from"./input-DUSj2Bri.js";import{t as E}from"./external-link-C6hldklD.js";import{t as D}from"./skeleton-BBQ4J9l6.js";import{_ as O,g as k,l as A,o as j}from"./markdown-lint-yCmtY_Fk.js";import{d as M,p as N,r as re}from"./lint-config-client-DTbxVXNu.js";import{t as P}from"./tag-pill-input-CsGX3LfF.js";var F=a(),I=e(n(),1),L=t(),R={};function ie(e){let t=(0,F.c)(5),n=R[e.ruleId];if(n!==void 0){let r;return t[0]!==n||t[1]!==e?(r=(0,L.jsx)(n,{...e}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r}let r;return t[3]===e?r=t[4]:(r=(0,L.jsx)(z,{...e}),t[3]=e,t[4]=r),r}function z(e){let t=(0,F.c)(65),{ruleId:n,spec:i,value:a,disabled:o,onChange:s}=e,c=`rule-option-${n}-${i.key}`,l=`${c}-description`,u;t[0]!==c||t[1]!==i.key||t[2]!==i.type?(u=i.type===`unsupported`?(0,L.jsx)(`span`,{className:`font-mono text-sm font-medium`,children:i.key}):(0,L.jsx)(p,{htmlFor:c,className:`font-mono text-sm font-medium`,children:i.key}),t[0]=c,t[1]=i.key,t[2]=i.type,t[3]=u):u=t[3];let d;t[4]===i.default?d=t[5]:(d=i.default===void 0?null:(0,L.jsxs)(L.Fragment,{children:[` · `,(0,L.jsx)(r,{id:`KtACeE`,values:{0:H(i.default)},components:{0:(0,L.jsx)(`code`,{className:`font-mono`})}})]}),t[4]=i.default,t[5]=d);let f;t[6]!==l||t[7]!==i.description||t[8]!==d?(f=(0,L.jsxs)(w,{id:l,children:[i.description,d]}),t[6]=l,t[7]=i.description,t[8]=d,t[9]=f):f=t[9];let m;t[10]!==u||t[11]!==f?(m=(0,L.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[u,f]}),t[10]=u,t[11]=f,t[12]=m):m=t[12];let h=m,g=o===!0,_;t[13]!==c||t[14]!==l||t[15]!==s||t[16]!==g?(_={controlId:c,descriptionId:l,disabled:g,onChange:s},t[13]=c,t[14]=l,t[15]=s,t[16]=g,t[17]=_):_=t[17];let v=_;switch(i.type){case`boolean`:{let e;t[18]!==v||t[19]!==i||t[20]!==a?(e=(0,L.jsx)(U,{...v,spec:i,value:a}),t[18]=v,t[19]=i,t[20]=a,t[21]=e):e=t[21];let n;return t[22]!==c||t[23]!==h||t[24]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[22]=c,t[23]=h,t[24]=e,t[25]=n):n=t[25],n}case`enum`:{let e;t[26]!==v||t[27]!==i||t[28]!==a?(e=(0,L.jsx)(W,{...v,spec:i,value:a}),t[26]=v,t[27]=i,t[28]=a,t[29]=e):e=t[29];let n;return t[30]!==c||t[31]!==h||t[32]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[30]=c,t[31]=h,t[32]=e,t[33]=n):n=t[33],n}case`integer`:{let e;t[34]!==v||t[35]!==i||t[36]!==a?(e=(0,L.jsx)(G,{...v,spec:i,value:a}),t[34]=v,t[35]=i,t[36]=a,t[37]=e):e=t[37];let n;return t[38]!==c||t[39]!==h||t[40]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[38]=c,t[39]=h,t[40]=e,t[41]=n):n=t[41],n}case`string`:{let e;t[42]!==v||t[43]!==i||t[44]!==a?(e=(0,L.jsx)(K,{...v,spec:i,value:a}),t[42]=v,t[43]=i,t[44]=a,t[45]=e):e=t[45];let n;return t[46]!==c||t[47]!==h||t[48]!==e?(n=(0,L.jsx)(V,{testId:c,header:h,children:e}),t[46]=c,t[47]=h,t[48]=e,t[49]=n):n=t[49],n}case`string-array`:{let e;t[50]!==v||t[51]!==i||t[52]!==a?(e=(0,L.jsx)(q,{...v,spec:i,value:a}),t[50]=v,t[51]=i,t[52]=a,t[53]=e):e=t[53];let n;return t[54]!==c||t[55]!==h||t[56]!==e?(n=(0,L.jsx)(V,{testId:c,header:h,children:e}),t[54]=c,t[55]=h,t[56]=e,t[57]=n):n=t[57],n}case`unsupported`:{let e=`${c}-unsupported`,n;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsx)(r,{id:`NQXwDy`}),t[58]=n):n=t[58];let i;t[59]===e?i=t[60]:(i=(0,L.jsx)(C,{variant:`gray`,"data-testid":e,children:n}),t[59]=e,t[60]=i);let a;return t[61]!==c||t[62]!==h||t[63]!==i?(a=(0,L.jsx)(B,{testId:c,header:h,children:i}),t[61]=c,t[62]=h,t[63]=i,t[64]=a):a=t[64],a}default:return i}}function B(e){let t=(0,F.c)(6),{testId:n,header:r,children:i}=e,a;t[0]===i?a=t[1]:(a=(0,L.jsx)(`div`,{className:`shrink-0`,children:i}),t[0]=i,t[1]=a);let o;return t[2]!==r||t[3]!==a||t[4]!==n?(o=(0,L.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,"data-testid":n,children:[r,a]}),t[2]=r,t[3]=a,t[4]=n,t[5]=o):o=t[5],o}function V(e){let t=(0,F.c)(4),{testId:n,header:r,children:i}=e,a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=(0,L.jsxs)(`div`,{className:`space-y-1.5`,"data-testid":n,children:[r,i]}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function H(e){return JSON.stringify(e)}function U(e){let t=(0,F.c)(8),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`boolean`?r:n.default??!1,l;t[0]===s?l=t[1]:(l=e=>s(e),t[0]=s,t[1]=l);let u;return t[2]!==c||t[3]!==i||t[4]!==a||t[5]!==o||t[6]!==l?(u=(0,L.jsx)(y,{id:i,checked:c,disabled:o,"aria-describedby":a,onCheckedChange:l}),t[2]=c,t[3]=i,t[4]=a,t[5]=o,t[6]=l,t[7]=u):u=t[7],u}function W(e){let t=(0,F.c)(16),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`string`?r:n.default??``,l;t[0]===s?l=t[1]:(l=e=>s(e),t[0]=s,t[1]=l);let u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,L.jsx)(_,{}),t[2]=u):u=t[2];let d;t[3]!==i||t[4]!==a?(d=(0,L.jsx)(g,{id:i,"aria-describedby":a,className:`w-48`,children:u}),t[3]=i,t[4]=a,t[5]=d):d=t[5];let f;t[6]===n.enum?f=t[7]:(f=n.enum.map(ae),t[6]=n.enum,t[7]=f);let p;t[8]===f?p=t[9]:(p=(0,L.jsx)(h,{children:f}),t[8]=f,t[9]=p);let m;return t[10]!==c||t[11]!==o||t[12]!==l||t[13]!==d||t[14]!==p?(m=(0,L.jsxs)(v,{value:c,onValueChange:l,disabled:o,children:[d,p]}),t[10]=c,t[11]=o,t[12]=l,t[13]=d,t[14]=p,t[15]=m):m=t[15],m}function ae(e){return(0,L.jsx)(m,{value:e,children:e},e)}function G(e){let t=(0,F.c)(22),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`number`?r:n.default,l=c===void 0?``:String(c),[u,d]=(0,I.useState)(l),f=(0,I.useRef)(c),p,m;t[0]===c?(p=t[1],m=t[2]):(p=()=>{f.current!==c&&(d(c===void 0?``:String(c)),f.current=c)},m=[c],t[0]=c,t[1]=p,t[2]=m),(0,I.useEffect)(p,m);let h;t[3]!==c||t[4]!==l||t[5]!==s||t[6]!==u||t[7]!==n.maximum||t[8]!==n.minimum?(h=()=>{if(u.trim()===``){d(l);return}let e=Number(u);if(!Number.isFinite(e)){d(l);return}let t=Math.round(e);n.minimum!==void 0&&t<n.minimum&&(t=n.minimum),n.maximum!==void 0&&t>n.maximum&&(t=n.maximum),d(String(t)),t!==c&&s(t)},t[3]=c,t[4]=l,t[5]=s,t[6]=u,t[7]=n.maximum,t[8]=n.minimum,t[9]=h):h=t[9];let g=h,_;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>d(e.target.value),t[10]=_):_=t[10];let v;t[11]===g?v=t[12]:(v=e=>{e.key===`Enter`&&(e.preventDefault(),g())},t[11]=g,t[12]=v);let y;return t[13]!==g||t[14]!==i||t[15]!==a||t[16]!==o||t[17]!==u||t[18]!==n.maximum||t[19]!==n.minimum||t[20]!==v?(y=(0,L.jsx)(T,{id:i,type:`number`,value:u,min:n.minimum,max:n.maximum,disabled:o,"aria-describedby":a,onChange:_,onBlur:g,onKeyDown:v,className:`h-8 w-28 text-sm tabular-nums`}),t[13]=g,t[14]=i,t[15]=a,t[16]=o,t[17]=u,t[18]=n.maximum,t[19]=n.minimum,t[20]=v,t[21]=y):y=t[21],y}function K(e){let t=(0,F.c)(17),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`string`?r:n.default??``,[l,u]=(0,I.useState)(c),d=(0,I.useRef)(c),f,p;t[0]===c?(f=t[1],p=t[2]):(f=()=>{d.current!==c&&(u(c),d.current=c)},p=[c],t[0]=c,t[1]=f,t[2]=p),(0,I.useEffect)(f,p);let m;t[3]!==c||t[4]!==s||t[5]!==l?(m=()=>{l!==c&&s(l)},t[3]=c,t[4]=s,t[5]=l,t[6]=m):m=t[6];let h=m,g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>u(e.target.value),t[7]=g):g=t[7];let _;t[8]===h?_=t[9]:(_=e=>{e.key===`Enter`&&(e.preventDefault(),h())},t[8]=h,t[9]=_);let v;return t[10]!==h||t[11]!==i||t[12]!==a||t[13]!==o||t[14]!==l||t[15]!==_?(v=(0,L.jsx)(T,{id:i,value:l,disabled:o,"aria-describedby":a,onChange:g,onBlur:h,onKeyDown:_,className:`h-8 font-mono text-sm`}),t[10]=h,t[11]=i,t[12]=a,t[13]=o,t[14]=l,t[15]=_,t[16]=v):v=t[16],v}function q(e){let t=(0,F.c)(11),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c;t[0]!==n||t[1]!==r?(c=Array.isArray(r)?r.filter(J):[...n.default??[]],t[0]=n,t[1]=r,t[2]=c):c=t[2];let l=c,u;t[3]===s?u=t[4]:(u=e=>s(e),t[3]=s,t[4]=u);let d;return t[5]!==i||t[6]!==a||t[7]!==o||t[8]!==l||t[9]!==u?(d=(0,L.jsx)(P,{id:i,value:l,grammar:`free-text`,disabled:o,"aria-describedby":a,onChange:u}),t[5]=i,t[6]=a,t[7]=o,t[8]=l,t[9]=u,t[10]=d):d=t[10],d}function J(e){return typeof e==`string`}function oe(e){let t=(0,F.c)(53),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{hideConfigSourceNote:a,initialRuleQuery:o}=n,s=a===void 0?!1:a,{_:c}=i(),{data:m}=M(),h=m!==null,g;t[2]===m?.effective.plugins.markdownlint.rules?g=t[3]:(g=m?.effective.plugins.markdownlint.rules??{},t[2]=m?.effective.plugins.markdownlint.rules,t[3]=g);let _=g,v=m?.configFile??null,[y,ee]=(0,I.useState)(o?.query??``),[x,ne]=(0,I.useState)(!1),C=o?.nonce,w=o?.query,E,O;t[4]!==C||t[5]!==w?(E=()=>{C===void 0||w===void 0||ee(w)},O=[C,w],t[4]=C,t[5]=w,t[6]=E,t[7]=O):(E=t[6],O=t[7]),(0,I.useEffect)(E,O);let P;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=[],t[8]=P):P=t[8];let[R,ie]=(0,I.useState)(P),z;t[9]===c?z=t[10]:(z=function(e,t){N(e,t).then(e=>{if(!e.ok){b.error(e.errorDetail??c({id:`2G-56b`}));return}re()})},t[9]=c,t[10]=z);let B=z,V;t[11]!==x||t[12]!==y?(V=y.trim()!==``||x,t[11]=x,t[12]=y,t[13]=V):V=t[13];let H=V,U;if(t[14]!==c||t[15]!==R||t[16]!==v||t[17]!==H||t[18]!==s||t[19]!==x||t[20]!==h||t[21]!==_||t[22]!==y||t[23]!==B){let e;t[25]!==v||t[26]!==x||t[27]!==_||t[28]!==y?(e=e=>le(e,y)&&(!x||se(_,v,e.id)),t[25]=v,t[26]=x,t[27]=_,t[28]=y,t[29]=e):e=t[29];let n=j.filter(e),i=A.map(e=>({category:e,entries:n.filter(t=>k(t)===e)})).filter(Y),a;t[30]!==v||t[31]!==s||t[32]!==h?(a=!s&&(h?v?(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,"data-testid":`markdownlint-config-source-note`,children:(0,L.jsx)(r,{id:`V2Gmie`,values:{configFile:v},components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}):(0,L.jsxs)(`div`,{className:`space-y-2`,children:[(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,L.jsx)(r,{id:`Z6rrjc`,components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}),(0,L.jsxs)(`p`,{className:`flex items-start gap-1.5 rounded-md border border-dashed p-2.5 text-sm text-muted-foreground`,"data-testid":`markdownlint-no-file-disclaimer`,children:[(0,L.jsx)(S,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0`}),(0,L.jsx)(`span`,{children:(0,L.jsx)(r,{id:`Te6sK2`,components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})})]})]}):(0,L.jsxs)(`div`,{className:`space-y-2`,"aria-busy":`true`,"data-testid":`markdownlint-rule-browser-config-loading`,children:[(0,L.jsx)(D,{className:`h-4 w-full`}),(0,L.jsx)(D,{className:`h-4 w-2/3`})]})),t[30]=v,t[31]=s,t[32]=h,t[33]=a):a=t[33];let o;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,"data-testid":`markdownlint-rule-browser-legend`,children:(0,L.jsx)(r,{id:`zYp8Sr`,components:{0:(0,L.jsx)(`span`,{className:`font-medium text-foreground`}),1:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}),t[34]=o):o=t[34];let m;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>ee(e.target.value),t[35]=m):m=t[35];let g;t[36]===c?g=t[37]:(g=c({id:`l-4nnw`}),t[36]=c,t[37]=g);let b;t[38]===c?b=t[39]:(b=c({id:`yf5auF`}),t[38]=c,t[39]=b);let C;t[40]!==y||t[41]!==g||t[42]!==b?(C=(0,L.jsx)(T,{value:y,onChange:m,placeholder:g,"aria-label":b,className:`h-8`,"data-testid":`markdownlint-rule-search`}),t[40]=y,t[41]=g,t[42]=b,t[43]=C):C=t[43];let w;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>ne(e===!0),t[44]=w):w=t[44];let E;t[45]===x?E=t[46]:(E=(0,L.jsx)(f,{id:`markdownlint-only-modified`,checked:x,onCheckedChange:w,"data-testid":`markdownlint-only-modified`}),t[45]=x,t[46]=E);let O;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,L.jsx)(p,{htmlFor:`markdownlint-only-modified`,className:`text-sm font-normal`,children:(0,L.jsx)(r,{id:`ccNps_`})}),t[47]=O):O=t[47];let M;t[48]===E?M=t[49]:(M=(0,L.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[E,O]}),t[48]=E,t[49]=M);let N;t[50]!==C||t[51]!==M?(N=(0,L.jsxs)(`div`,{className:`flex items-center gap-4`,children:[C,M]}),t[50]=C,t[51]=M,t[52]=N):N=t[52],U=(0,L.jsxs)(`div`,{className:`space-y-3`,"data-testid":`settings-linting-markdownlint-rules`,children:[a,o,N,i.length===0?(0,L.jsx)(`p`,{className:`rounded-md border border-dashed p-3 text-sm text-muted-foreground`,"data-testid":`markdownlint-rule-browser-empty`,children:(0,L.jsx)(r,{id:`RfilGt`})}):(0,L.jsx)(`div`,{className:`space-y-2`,children:i.map(e=>{let{category:t,entries:n}=e,i=n.filter(e=>ue($(_,e.id))).length;return(0,L.jsxs)(d,{open:H||!R.includes(t),onOpenChange:e=>ie(e?R.filter(e=>e!==t):[...R,t]),children:[(0,L.jsxs)(u,{className:`group flex w-full items-center gap-2 rounded-md px-1.5 py-1.5 text-sm font-medium hover:bg-muted/50`,"data-testid":`markdownlint-rule-category-${Q(t)}`,children:[(0,L.jsx)(te,{className:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),(0,L.jsx)(Z,{category:t}),(0,L.jsx)(`span`,{className:`ms-auto text-xs font-normal text-muted-foreground tabular-nums`,children:(0,L.jsx)(r,{id:`NgZwB0`,values:{0:n.length,enabledCount:i}})})]}),(0,L.jsx)(l,{children:(0,L.jsx)(`div`,{className:`mt-1 divide-y rounded-md border`,children:n.map(e=>(0,L.jsx)(X,{rule:e,value:$(_,e.id),modified:se(_,v,e.id),ready:h,onWrite:t=>B(e.id,t)},e.id))})})]},t)})})]}),t[14]=c,t[15]=R,t[16]=v,t[17]=H,t[18]=s,t[19]=x,t[20]=h,t[21]=_,t[22]=y,t[23]=B,t[24]=U}else U=t[24];return U}function Y(e){return e.entries.length>0}function X(e){let t=(0,F.c)(96),{rule:n,value:a,modified:f,ready:p,onWrite:m}=e,{_:h}=i(),g;t[0]===a?g=t[1]:(g=ue(a),t[0]=a,t[1]=g);let _=g,v;t[2]===a?v=t[3]:(v=ce(a),t[2]=a,t[3]=v);let b=v,S,w,T,D,O,k,A;if(t[4]!==n.id||t[5]!==n.name||t[6]!==a){w=de(a),S=d,A=`markdownlint-rule-row-${n.id}`,O=`flex items-center justify-between gap-3 px-3 py-2`;let e=`markdownlint-rule-expand-${n.id}`,i;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,L.jsx)(te,{className:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),t[14]=i):i=t[14];let o;t[15]===n.name?o=t[16]:(o=(0,L.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-foreground`,children:n.name}),t[15]=n.name,t[16]=o),t[17]!==o||t[18]!==e?(k=(0,L.jsxs)(u,{className:`group flex min-w-0 flex-1 items-center gap-1.5 rounded-md py-0.5 text-left hover:bg-muted/50`,"data-testid":e,children:[i,o]}),t[17]=o,t[18]=e,t[19]=k):k=t[19],T=`flex shrink-0 items-center gap-2`,D=w.length>0?(0,L.jsx)(`span`,{id:`settings-linting-markdownlint-options-${n.id}`,className:`text-xs text-muted-foreground`,title:w.join(`, `),"data-testid":`settings-linting-markdownlint-options-${n.id}`,children:(0,L.jsx)(r,{id:`G-h6qN`,values:{0:w.length}})}):null,t[4]=n.id,t[5]=n.name,t[6]=a,t[7]=S,t[8]=w,t[9]=T,t[10]=D,t[11]=O,t[12]=k,t[13]=A}else S=t[7],w=t[8],T=t[9],D=t[10],O=t[11],k=t[12],A=t[13];let j;t[20]!==n.id||t[21]!==b?(j=b===null?null:(0,L.jsx)(C,{variant:`gray`,"data-testid":`markdownlint-rule-severity-${n.id}`,children:b}),t[20]=n.id,t[21]=b,t[22]=j):j=t[22];let M;t[23]!==f||t[24]!==n.id?(M=f?(0,L.jsx)(C,{variant:`outline`,"data-testid":`markdownlint-rule-modified-${n.id}`,children:(0,L.jsx)(r,{id:`tgWuMB`})}):null,t[23]=f,t[24]=n.id,t[25]=M):M=t[25];let N;t[26]!==h||t[27]!==f||t[28]!==m||t[29]!==p||t[30]!==n.id?(N=f?(0,L.jsxs)(c,{children:[(0,L.jsx)(o,{asChild:!0,children:(0,L.jsx)(ee,{variant:`ghost`,size:`icon`,className:`h-5 w-5 shrink-0 text-muted-foreground opacity-60 hover:opacity-100`,disabled:!p,"aria-label":h({id:`50ORFs`,values:{0:n.id}}),onClick:()=>m(null),children:(0,L.jsx)(ne,{className:`size-3.5`})})}),(0,L.jsx)(s,{children:(0,L.jsx)(r,{id:`L-rMC9`})})]}):null,t[26]=h,t[27]=f,t[28]=m,t[29]=p,t[30]=n.id,t[31]=N):N=t[31];let re=`markdownlint-rule-toggle-${n.id}`,P=!p,I;t[32]!==h||t[33]!==_||t[34]!==n.name?(I=h(_?{id:`y5UgU8`,values:{0:n.name}}:{id:`FZtBeR`,values:{0:n.name}}),t[32]=h,t[33]=_,t[34]=n.name,t[35]=I):I=t[35];let R=w.length>0?`settings-linting-markdownlint-options-${n.id}`:void 0,z;t[36]!==m||t[37]!==a?(z=e=>m(fe(a,e)),t[36]=m,t[37]=a,t[38]=z):z=t[38];let B=`markdownlint-rule-toggle-${n.id}`,V;t[39]!==_||t[40]!==re||t[41]!==P||t[42]!==I||t[43]!==R||t[44]!==z||t[45]!==B?(V=(0,L.jsx)(y,{id:re,checked:_,disabled:P,"aria-label":I,"aria-describedby":R,onCheckedChange:z,"data-testid":B}),t[39]=_,t[40]=re,t[41]=P,t[42]=I,t[43]=R,t[44]=z,t[45]=B,t[46]=V):V=t[46];let H;t[47]!==N||t[48]!==V||t[49]!==T||t[50]!==D||t[51]!==j||t[52]!==M?(H=(0,L.jsxs)(`div`,{className:T,children:[D,j,M,N,V]}),t[47]=N,t[48]=V,t[49]=T,t[50]=D,t[51]=j,t[52]=M,t[53]=H):H=t[53];let U;t[54]!==H||t[55]!==O||t[56]!==k?(U=(0,L.jsxs)(`div`,{className:O,children:[k,H]}),t[54]=H,t[55]=O,t[56]=k,t[57]=U):U=t[57];let W;t[58]!==n.alias||t[59]!==n.id?(W=(0,L.jsxs)(`span`,{className:`font-mono`,children:[n.id,` · `,n.alias]}),t[58]=n.alias,t[59]=n.id,t[60]=W):W=t[60];let ae=n.docUrl,G,K;t[61]===n.docUrl?(G=t[62],K=t[63]):(G=e=>E(e,n.docUrl),K=e=>E(e,n.docUrl),t[61]=n.docUrl,t[62]=G,t[63]=K);let q;t[64]!==h||t[65]!==n.id?(q=h({id:`iv452l`,values:{0:n.id}}),t[64]=h,t[65]=n.id,t[66]=q):q=t[66];let J,oe;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,L.jsx)(r,{id:`TvY_XA`}),oe=(0,L.jsx)(x,{"aria-hidden":!0,className:`size-3`}),t[67]=J,t[68]=oe):(J=t[67],oe=t[68]);let Y;t[69]!==n.docUrl||t[70]!==G||t[71]!==K||t[72]!==q?(Y=(0,L.jsxs)(`a`,{href:ae,target:`_blank`,rel:`noopener noreferrer`,onClick:G,onAuxClick:K,"aria-label":q,className:`inline-flex items-center gap-0.5 text-primary underline-offset-2 hover:underline`,children:[J,oe]}),t[69]=n.docUrl,t[70]=G,t[71]=K,t[72]=q,t[73]=Y):Y=t[73];let X;t[74]!==W||t[75]!==Y?(X=(0,L.jsxs)(`p`,{className:`text-1sm text-muted-foreground`,children:[W,` · `,Y]}),t[74]=W,t[75]=Y,t[76]=X):X=t[76];let Z;if(t[77]!==m||t[78]!==p||t[79]!==n.id||t[80]!==n.options||t[81]!==a){let e;t[83]!==m||t[84]!==p||t[85]!==n.id||t[86]!==a?(e=e=>(0,L.jsx)(ie,{ruleId:n.id,spec:e,value:me(a,e.key),disabled:!p,onChange:t=>m(pe(a,e.key,t))},e.key),t[83]=m,t[84]=p,t[85]=n.id,t[86]=a,t[87]=e):e=t[87],Z=n.options.map(e),t[77]=m,t[78]=p,t[79]=n.id,t[80]=n.options,t[81]=a,t[82]=Z}else Z=t[82];let Q;t[88]!==X||t[89]!==Z?(Q=(0,L.jsx)(l,{className:`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in]`,children:(0,L.jsxs)(`div`,{className:`space-y-3 px-3 pb-3 pt-1`,children:[X,Z]})}),t[88]=X,t[89]=Z,t[90]=Q):Q=t[90];let $;return t[91]!==S||t[92]!==U||t[93]!==Q||t[94]!==A?($=(0,L.jsxs)(S,{"data-testid":A,children:[U,Q]}),t[91]=S,t[92]=U,t[93]=Q,t[94]=A,t[95]=$):$=t[95],$}function Z(e){let t=(0,F.c)(6),{category:n}=e;switch(n){case`Headings`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`PKjGhT`}),t[0]=e):e=t[0],e}case`Lists`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`h16FyT`}),t[1]=e):e=t[1],e}case`Whitespace`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`iIaSUD`}),t[2]=e):e=t[2],e}case`Code`:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`EWPtMO`}),t[3]=e):e=t[3],e}case`Links & images`:{let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`-kbIAr`}),t[4]=e):e=t[4],e}case`Style`:{let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`1CalO6`}),t[5]=e):e=t[5],e}default:return n}}function Q(e){return e.toLowerCase().replace(/[^a-z]+/g,`-`).replace(/^-|-$/g,``)}function $(e,t){let n=O(e,t);return n===void 0?e.default??!0:n.value}function se(e,t,n){return t!==null&&O(e,n)!==void 0}function ce(e){return typeof e==`string`?e:null}function le(e,t){let n=t.trim().toLowerCase();return n===``?!0:e.id.toLowerCase().includes(n)||e.alias.toLowerCase().includes(n)||e.name.toLowerCase().includes(n)}function ue(e){return typeof e!=`object`||!e?e!==!1:e.enabled!==!1}function de(e){return typeof e!=`object`||!e?[]:Object.keys(e).filter(e=>e!==`enabled`)}function fe(e,t){if(typeof e!=`object`||!e)return t;let n={};for(let t of Object.keys(e))t!==`enabled`&&(n[t]=e[t]);return Object.keys(n).length===0?t:t?n:{...n,enabled:!1}}function pe(e,t,n){return typeof e==`object`&&e?{...e,[t]:n}:e===!1?{enabled:!1,[t]:n}:{[t]:n}}function me(e,t){if(!(typeof e!=`object`||!e))return e[t]}export{oe as t};
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-BjuCvy5N.js";import{n as l,r as u,t as d}from"./collapsible-BKbszYZV.js";import{t as f}from"./checkbox-CYP7ZXBH.js";import{t as p}from"./label-CvMpFFbN.js";import{i as m,n as h,o as g,s as _,t as v}from"./select-BELkoEB6.js";import{t as y}from"./switch-BKZTXkzu.js";import{t as ee}from"./button-DzgjsZzC.js";import{n as b}from"./dist-Bs8bPT30.js";import{t as x}from"./arrow-up-right-BuM5_PNk.js";import{t as te}from"./chevron-right-B3hLba9m.js";import{t as S}from"./info-CTtlruwn.js";import{t as ne}from"./rotate-ccw-LkVEzPHf.js";import{t as C}from"./badge-DcyFOLs8.js";import{r as w}from"./field-DtEiTjHS.js";import{t as T}from"./input-DUSj2Bri.js";import{t as E}from"./external-link-C6hldklD.js";import{t as D}from"./skeleton-BBQ4J9l6.js";import{_ as O,g as k,l as A,o as j}from"./markdown-lint-BHJCn8aG.js";import{d as M,p as N,r as re}from"./lint-config-client-Cwihn-uv.js";import{t as P}from"./tag-pill-input-BaWWdgLz.js";var F=a(),I=e(n(),1),L=t(),R={};function ie(e){let t=(0,F.c)(5),n=R[e.ruleId];if(n!==void 0){let r;return t[0]!==n||t[1]!==e?(r=(0,L.jsx)(n,{...e}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r}let r;return t[3]===e?r=t[4]:(r=(0,L.jsx)(z,{...e}),t[3]=e,t[4]=r),r}function z(e){let t=(0,F.c)(65),{ruleId:n,spec:i,value:a,disabled:o,onChange:s}=e,c=`rule-option-${n}-${i.key}`,l=`${c}-description`,u;t[0]!==c||t[1]!==i.key||t[2]!==i.type?(u=i.type===`unsupported`?(0,L.jsx)(`span`,{className:`font-mono text-sm font-medium`,children:i.key}):(0,L.jsx)(p,{htmlFor:c,className:`font-mono text-sm font-medium`,children:i.key}),t[0]=c,t[1]=i.key,t[2]=i.type,t[3]=u):u=t[3];let d;t[4]===i.default?d=t[5]:(d=i.default===void 0?null:(0,L.jsxs)(L.Fragment,{children:[` · `,(0,L.jsx)(r,{id:`KtACeE`,values:{0:H(i.default)},components:{0:(0,L.jsx)(`code`,{className:`font-mono`})}})]}),t[4]=i.default,t[5]=d);let f;t[6]!==l||t[7]!==i.description||t[8]!==d?(f=(0,L.jsxs)(w,{id:l,children:[i.description,d]}),t[6]=l,t[7]=i.description,t[8]=d,t[9]=f):f=t[9];let m;t[10]!==u||t[11]!==f?(m=(0,L.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[u,f]}),t[10]=u,t[11]=f,t[12]=m):m=t[12];let h=m,g=o===!0,_;t[13]!==c||t[14]!==l||t[15]!==s||t[16]!==g?(_={controlId:c,descriptionId:l,disabled:g,onChange:s},t[13]=c,t[14]=l,t[15]=s,t[16]=g,t[17]=_):_=t[17];let v=_;switch(i.type){case`boolean`:{let e;t[18]!==v||t[19]!==i||t[20]!==a?(e=(0,L.jsx)(U,{...v,spec:i,value:a}),t[18]=v,t[19]=i,t[20]=a,t[21]=e):e=t[21];let n;return t[22]!==c||t[23]!==h||t[24]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[22]=c,t[23]=h,t[24]=e,t[25]=n):n=t[25],n}case`enum`:{let e;t[26]!==v||t[27]!==i||t[28]!==a?(e=(0,L.jsx)(W,{...v,spec:i,value:a}),t[26]=v,t[27]=i,t[28]=a,t[29]=e):e=t[29];let n;return t[30]!==c||t[31]!==h||t[32]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[30]=c,t[31]=h,t[32]=e,t[33]=n):n=t[33],n}case`integer`:{let e;t[34]!==v||t[35]!==i||t[36]!==a?(e=(0,L.jsx)(G,{...v,spec:i,value:a}),t[34]=v,t[35]=i,t[36]=a,t[37]=e):e=t[37];let n;return t[38]!==c||t[39]!==h||t[40]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[38]=c,t[39]=h,t[40]=e,t[41]=n):n=t[41],n}case`string`:{let e;t[42]!==v||t[43]!==i||t[44]!==a?(e=(0,L.jsx)(K,{...v,spec:i,value:a}),t[42]=v,t[43]=i,t[44]=a,t[45]=e):e=t[45];let n;return t[46]!==c||t[47]!==h||t[48]!==e?(n=(0,L.jsx)(V,{testId:c,header:h,children:e}),t[46]=c,t[47]=h,t[48]=e,t[49]=n):n=t[49],n}case`string-array`:{let e;t[50]!==v||t[51]!==i||t[52]!==a?(e=(0,L.jsx)(q,{...v,spec:i,value:a}),t[50]=v,t[51]=i,t[52]=a,t[53]=e):e=t[53];let n;return t[54]!==c||t[55]!==h||t[56]!==e?(n=(0,L.jsx)(V,{testId:c,header:h,children:e}),t[54]=c,t[55]=h,t[56]=e,t[57]=n):n=t[57],n}case`unsupported`:{let e=`${c}-unsupported`,n;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsx)(r,{id:`NQXwDy`}),t[58]=n):n=t[58];let i;t[59]===e?i=t[60]:(i=(0,L.jsx)(C,{variant:`gray`,"data-testid":e,children:n}),t[59]=e,t[60]=i);let a;return t[61]!==c||t[62]!==h||t[63]!==i?(a=(0,L.jsx)(B,{testId:c,header:h,children:i}),t[61]=c,t[62]=h,t[63]=i,t[64]=a):a=t[64],a}default:return i}}function B(e){let t=(0,F.c)(6),{testId:n,header:r,children:i}=e,a;t[0]===i?a=t[1]:(a=(0,L.jsx)(`div`,{className:`shrink-0`,children:i}),t[0]=i,t[1]=a);let o;return t[2]!==r||t[3]!==a||t[4]!==n?(o=(0,L.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,"data-testid":n,children:[r,a]}),t[2]=r,t[3]=a,t[4]=n,t[5]=o):o=t[5],o}function V(e){let t=(0,F.c)(4),{testId:n,header:r,children:i}=e,a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=(0,L.jsxs)(`div`,{className:`space-y-1.5`,"data-testid":n,children:[r,i]}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function H(e){return JSON.stringify(e)}function U(e){let t=(0,F.c)(8),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`boolean`?r:n.default??!1,l;t[0]===s?l=t[1]:(l=e=>s(e),t[0]=s,t[1]=l);let u;return t[2]!==c||t[3]!==i||t[4]!==a||t[5]!==o||t[6]!==l?(u=(0,L.jsx)(y,{id:i,checked:c,disabled:o,"aria-describedby":a,onCheckedChange:l}),t[2]=c,t[3]=i,t[4]=a,t[5]=o,t[6]=l,t[7]=u):u=t[7],u}function W(e){let t=(0,F.c)(16),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`string`?r:n.default??``,l;t[0]===s?l=t[1]:(l=e=>s(e),t[0]=s,t[1]=l);let u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,L.jsx)(_,{}),t[2]=u):u=t[2];let d;t[3]!==i||t[4]!==a?(d=(0,L.jsx)(g,{id:i,"aria-describedby":a,className:`w-48`,children:u}),t[3]=i,t[4]=a,t[5]=d):d=t[5];let f;t[6]===n.enum?f=t[7]:(f=n.enum.map(ae),t[6]=n.enum,t[7]=f);let p;t[8]===f?p=t[9]:(p=(0,L.jsx)(h,{children:f}),t[8]=f,t[9]=p);let m;return t[10]!==c||t[11]!==o||t[12]!==l||t[13]!==d||t[14]!==p?(m=(0,L.jsxs)(v,{value:c,onValueChange:l,disabled:o,children:[d,p]}),t[10]=c,t[11]=o,t[12]=l,t[13]=d,t[14]=p,t[15]=m):m=t[15],m}function ae(e){return(0,L.jsx)(m,{value:e,children:e},e)}function G(e){let t=(0,F.c)(22),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`number`?r:n.default,l=c===void 0?``:String(c),[u,d]=(0,I.useState)(l),f=(0,I.useRef)(c),p,m;t[0]===c?(p=t[1],m=t[2]):(p=()=>{f.current!==c&&(d(c===void 0?``:String(c)),f.current=c)},m=[c],t[0]=c,t[1]=p,t[2]=m),(0,I.useEffect)(p,m);let h;t[3]!==c||t[4]!==l||t[5]!==s||t[6]!==u||t[7]!==n.maximum||t[8]!==n.minimum?(h=()=>{if(u.trim()===``){d(l);return}let e=Number(u);if(!Number.isFinite(e)){d(l);return}let t=Math.round(e);n.minimum!==void 0&&t<n.minimum&&(t=n.minimum),n.maximum!==void 0&&t>n.maximum&&(t=n.maximum),d(String(t)),t!==c&&s(t)},t[3]=c,t[4]=l,t[5]=s,t[6]=u,t[7]=n.maximum,t[8]=n.minimum,t[9]=h):h=t[9];let g=h,_;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>d(e.target.value),t[10]=_):_=t[10];let v;t[11]===g?v=t[12]:(v=e=>{e.key===`Enter`&&(e.preventDefault(),g())},t[11]=g,t[12]=v);let y;return t[13]!==g||t[14]!==i||t[15]!==a||t[16]!==o||t[17]!==u||t[18]!==n.maximum||t[19]!==n.minimum||t[20]!==v?(y=(0,L.jsx)(T,{id:i,type:`number`,value:u,min:n.minimum,max:n.maximum,disabled:o,"aria-describedby":a,onChange:_,onBlur:g,onKeyDown:v,className:`h-8 w-28 text-sm tabular-nums`}),t[13]=g,t[14]=i,t[15]=a,t[16]=o,t[17]=u,t[18]=n.maximum,t[19]=n.minimum,t[20]=v,t[21]=y):y=t[21],y}function K(e){let t=(0,F.c)(17),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`string`?r:n.default??``,[l,u]=(0,I.useState)(c),d=(0,I.useRef)(c),f,p;t[0]===c?(f=t[1],p=t[2]):(f=()=>{d.current!==c&&(u(c),d.current=c)},p=[c],t[0]=c,t[1]=f,t[2]=p),(0,I.useEffect)(f,p);let m;t[3]!==c||t[4]!==s||t[5]!==l?(m=()=>{l!==c&&s(l)},t[3]=c,t[4]=s,t[5]=l,t[6]=m):m=t[6];let h=m,g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>u(e.target.value),t[7]=g):g=t[7];let _;t[8]===h?_=t[9]:(_=e=>{e.key===`Enter`&&(e.preventDefault(),h())},t[8]=h,t[9]=_);let v;return t[10]!==h||t[11]!==i||t[12]!==a||t[13]!==o||t[14]!==l||t[15]!==_?(v=(0,L.jsx)(T,{id:i,value:l,disabled:o,"aria-describedby":a,onChange:g,onBlur:h,onKeyDown:_,className:`h-8 font-mono text-sm`}),t[10]=h,t[11]=i,t[12]=a,t[13]=o,t[14]=l,t[15]=_,t[16]=v):v=t[16],v}function q(e){let t=(0,F.c)(11),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c;t[0]!==n||t[1]!==r?(c=Array.isArray(r)?r.filter(J):[...n.default??[]],t[0]=n,t[1]=r,t[2]=c):c=t[2];let l=c,u;t[3]===s?u=t[4]:(u=e=>s(e),t[3]=s,t[4]=u);let d;return t[5]!==i||t[6]!==a||t[7]!==o||t[8]!==l||t[9]!==u?(d=(0,L.jsx)(P,{id:i,value:l,grammar:`free-text`,disabled:o,"aria-describedby":a,onChange:u}),t[5]=i,t[6]=a,t[7]=o,t[8]=l,t[9]=u,t[10]=d):d=t[10],d}function J(e){return typeof e==`string`}function oe(e){let t=(0,F.c)(53),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{hideConfigSourceNote:a,initialRuleQuery:o}=n,s=a===void 0?!1:a,{_:c}=i(),{data:m}=M(),h=m!==null,g;t[2]===m?.effective.plugins.markdownlint.rules?g=t[3]:(g=m?.effective.plugins.markdownlint.rules??{},t[2]=m?.effective.plugins.markdownlint.rules,t[3]=g);let _=g,v=m?.configFile??null,[y,ee]=(0,I.useState)(o?.query??``),[x,ne]=(0,I.useState)(!1),C=o?.nonce,w=o?.query,E,O;t[4]!==C||t[5]!==w?(E=()=>{C===void 0||w===void 0||ee(w)},O=[C,w],t[4]=C,t[5]=w,t[6]=E,t[7]=O):(E=t[6],O=t[7]),(0,I.useEffect)(E,O);let P;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=[],t[8]=P):P=t[8];let[R,ie]=(0,I.useState)(P),z;t[9]===c?z=t[10]:(z=function(e,t){N(e,t).then(e=>{if(!e.ok){b.error(e.errorDetail??c({id:`2G-56b`}));return}re()})},t[9]=c,t[10]=z);let B=z,V;t[11]!==x||t[12]!==y?(V=y.trim()!==``||x,t[11]=x,t[12]=y,t[13]=V):V=t[13];let H=V,U;if(t[14]!==c||t[15]!==R||t[16]!==v||t[17]!==H||t[18]!==s||t[19]!==x||t[20]!==h||t[21]!==_||t[22]!==y||t[23]!==B){let e;t[25]!==v||t[26]!==x||t[27]!==_||t[28]!==y?(e=e=>le(e,y)&&(!x||se(_,v,e.id)),t[25]=v,t[26]=x,t[27]=_,t[28]=y,t[29]=e):e=t[29];let n=j.filter(e),i=A.map(e=>({category:e,entries:n.filter(t=>k(t)===e)})).filter(Y),a;t[30]!==v||t[31]!==s||t[32]!==h?(a=!s&&(h?v?(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,"data-testid":`markdownlint-config-source-note`,children:(0,L.jsx)(r,{id:`V2Gmie`,values:{configFile:v},components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}):(0,L.jsxs)(`div`,{className:`space-y-2`,children:[(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,L.jsx)(r,{id:`Z6rrjc`,components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}),(0,L.jsxs)(`p`,{className:`flex items-start gap-1.5 rounded-md border border-dashed p-2.5 text-sm text-muted-foreground`,"data-testid":`markdownlint-no-file-disclaimer`,children:[(0,L.jsx)(S,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0`}),(0,L.jsx)(`span`,{children:(0,L.jsx)(r,{id:`Te6sK2`,components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})})]})]}):(0,L.jsxs)(`div`,{className:`space-y-2`,"aria-busy":`true`,"data-testid":`markdownlint-rule-browser-config-loading`,children:[(0,L.jsx)(D,{className:`h-4 w-full`}),(0,L.jsx)(D,{className:`h-4 w-2/3`})]})),t[30]=v,t[31]=s,t[32]=h,t[33]=a):a=t[33];let o;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,"data-testid":`markdownlint-rule-browser-legend`,children:(0,L.jsx)(r,{id:`zYp8Sr`,components:{0:(0,L.jsx)(`span`,{className:`font-medium text-foreground`}),1:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}),t[34]=o):o=t[34];let m;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>ee(e.target.value),t[35]=m):m=t[35];let g;t[36]===c?g=t[37]:(g=c({id:`l-4nnw`}),t[36]=c,t[37]=g);let b;t[38]===c?b=t[39]:(b=c({id:`yf5auF`}),t[38]=c,t[39]=b);let C;t[40]!==y||t[41]!==g||t[42]!==b?(C=(0,L.jsx)(T,{value:y,onChange:m,placeholder:g,"aria-label":b,className:`h-8`,"data-testid":`markdownlint-rule-search`}),t[40]=y,t[41]=g,t[42]=b,t[43]=C):C=t[43];let w;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>ne(e===!0),t[44]=w):w=t[44];let E;t[45]===x?E=t[46]:(E=(0,L.jsx)(f,{id:`markdownlint-only-modified`,checked:x,onCheckedChange:w,"data-testid":`markdownlint-only-modified`}),t[45]=x,t[46]=E);let O;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,L.jsx)(p,{htmlFor:`markdownlint-only-modified`,className:`text-sm font-normal`,children:(0,L.jsx)(r,{id:`ccNps_`})}),t[47]=O):O=t[47];let M;t[48]===E?M=t[49]:(M=(0,L.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[E,O]}),t[48]=E,t[49]=M);let N;t[50]!==C||t[51]!==M?(N=(0,L.jsxs)(`div`,{className:`flex items-center gap-4`,children:[C,M]}),t[50]=C,t[51]=M,t[52]=N):N=t[52],U=(0,L.jsxs)(`div`,{className:`space-y-3`,"data-testid":`settings-linting-markdownlint-rules`,children:[a,o,N,i.length===0?(0,L.jsx)(`p`,{className:`rounded-md border border-dashed p-3 text-sm text-muted-foreground`,"data-testid":`markdownlint-rule-browser-empty`,children:(0,L.jsx)(r,{id:`RfilGt`})}):(0,L.jsx)(`div`,{className:`space-y-2`,children:i.map(e=>{let{category:t,entries:n}=e,i=n.filter(e=>ue($(_,e.id))).length;return(0,L.jsxs)(d,{open:H||!R.includes(t),onOpenChange:e=>ie(e?R.filter(e=>e!==t):[...R,t]),children:[(0,L.jsxs)(u,{className:`group flex w-full items-center gap-2 rounded-md px-1.5 py-1.5 text-sm font-medium hover:bg-muted/50`,"data-testid":`markdownlint-rule-category-${Q(t)}`,children:[(0,L.jsx)(te,{className:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),(0,L.jsx)(Z,{category:t}),(0,L.jsx)(`span`,{className:`ms-auto text-xs font-normal text-muted-foreground tabular-nums`,children:(0,L.jsx)(r,{id:`NgZwB0`,values:{0:n.length,enabledCount:i}})})]}),(0,L.jsx)(l,{children:(0,L.jsx)(`div`,{className:`mt-1 divide-y rounded-md border`,children:n.map(e=>(0,L.jsx)(X,{rule:e,value:$(_,e.id),modified:se(_,v,e.id),ready:h,onWrite:t=>B(e.id,t)},e.id))})})]},t)})})]}),t[14]=c,t[15]=R,t[16]=v,t[17]=H,t[18]=s,t[19]=x,t[20]=h,t[21]=_,t[22]=y,t[23]=B,t[24]=U}else U=t[24];return U}function Y(e){return e.entries.length>0}function X(e){let t=(0,F.c)(96),{rule:n,value:a,modified:f,ready:p,onWrite:m}=e,{_:h}=i(),g;t[0]===a?g=t[1]:(g=ue(a),t[0]=a,t[1]=g);let _=g,v;t[2]===a?v=t[3]:(v=ce(a),t[2]=a,t[3]=v);let b=v,S,w,T,D,O,k,A;if(t[4]!==n.id||t[5]!==n.name||t[6]!==a){w=de(a),S=d,A=`markdownlint-rule-row-${n.id}`,O=`flex items-center justify-between gap-3 px-3 py-2`;let e=`markdownlint-rule-expand-${n.id}`,i;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,L.jsx)(te,{className:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),t[14]=i):i=t[14];let o;t[15]===n.name?o=t[16]:(o=(0,L.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-foreground`,children:n.name}),t[15]=n.name,t[16]=o),t[17]!==o||t[18]!==e?(k=(0,L.jsxs)(u,{className:`group flex min-w-0 flex-1 items-center gap-1.5 rounded-md py-0.5 text-left hover:bg-muted/50`,"data-testid":e,children:[i,o]}),t[17]=o,t[18]=e,t[19]=k):k=t[19],T=`flex shrink-0 items-center gap-2`,D=w.length>0?(0,L.jsx)(`span`,{id:`settings-linting-markdownlint-options-${n.id}`,className:`text-xs text-muted-foreground`,title:w.join(`, `),"data-testid":`settings-linting-markdownlint-options-${n.id}`,children:(0,L.jsx)(r,{id:`G-h6qN`,values:{0:w.length}})}):null,t[4]=n.id,t[5]=n.name,t[6]=a,t[7]=S,t[8]=w,t[9]=T,t[10]=D,t[11]=O,t[12]=k,t[13]=A}else S=t[7],w=t[8],T=t[9],D=t[10],O=t[11],k=t[12],A=t[13];let j;t[20]!==n.id||t[21]!==b?(j=b===null?null:(0,L.jsx)(C,{variant:`gray`,"data-testid":`markdownlint-rule-severity-${n.id}`,children:b}),t[20]=n.id,t[21]=b,t[22]=j):j=t[22];let M;t[23]!==f||t[24]!==n.id?(M=f?(0,L.jsx)(C,{variant:`outline`,"data-testid":`markdownlint-rule-modified-${n.id}`,children:(0,L.jsx)(r,{id:`tgWuMB`})}):null,t[23]=f,t[24]=n.id,t[25]=M):M=t[25];let N;t[26]!==h||t[27]!==f||t[28]!==m||t[29]!==p||t[30]!==n.id?(N=f?(0,L.jsxs)(c,{children:[(0,L.jsx)(o,{asChild:!0,children:(0,L.jsx)(ee,{variant:`ghost`,size:`icon`,className:`h-5 w-5 shrink-0 text-muted-foreground opacity-60 hover:opacity-100`,disabled:!p,"aria-label":h({id:`50ORFs`,values:{0:n.id}}),onClick:()=>m(null),children:(0,L.jsx)(ne,{className:`size-3.5`})})}),(0,L.jsx)(s,{children:(0,L.jsx)(r,{id:`L-rMC9`})})]}):null,t[26]=h,t[27]=f,t[28]=m,t[29]=p,t[30]=n.id,t[31]=N):N=t[31];let re=`markdownlint-rule-toggle-${n.id}`,P=!p,I;t[32]!==h||t[33]!==_||t[34]!==n.name?(I=h(_?{id:`y5UgU8`,values:{0:n.name}}:{id:`FZtBeR`,values:{0:n.name}}),t[32]=h,t[33]=_,t[34]=n.name,t[35]=I):I=t[35];let R=w.length>0?`settings-linting-markdownlint-options-${n.id}`:void 0,z;t[36]!==m||t[37]!==a?(z=e=>m(fe(a,e)),t[36]=m,t[37]=a,t[38]=z):z=t[38];let B=`markdownlint-rule-toggle-${n.id}`,V;t[39]!==_||t[40]!==re||t[41]!==P||t[42]!==I||t[43]!==R||t[44]!==z||t[45]!==B?(V=(0,L.jsx)(y,{id:re,checked:_,disabled:P,"aria-label":I,"aria-describedby":R,onCheckedChange:z,"data-testid":B}),t[39]=_,t[40]=re,t[41]=P,t[42]=I,t[43]=R,t[44]=z,t[45]=B,t[46]=V):V=t[46];let H;t[47]!==N||t[48]!==V||t[49]!==T||t[50]!==D||t[51]!==j||t[52]!==M?(H=(0,L.jsxs)(`div`,{className:T,children:[D,j,M,N,V]}),t[47]=N,t[48]=V,t[49]=T,t[50]=D,t[51]=j,t[52]=M,t[53]=H):H=t[53];let U;t[54]!==H||t[55]!==O||t[56]!==k?(U=(0,L.jsxs)(`div`,{className:O,children:[k,H]}),t[54]=H,t[55]=O,t[56]=k,t[57]=U):U=t[57];let W;t[58]!==n.alias||t[59]!==n.id?(W=(0,L.jsxs)(`span`,{className:`font-mono`,children:[n.id,` · `,n.alias]}),t[58]=n.alias,t[59]=n.id,t[60]=W):W=t[60];let ae=n.docUrl,G,K;t[61]===n.docUrl?(G=t[62],K=t[63]):(G=e=>E(e,n.docUrl),K=e=>E(e,n.docUrl),t[61]=n.docUrl,t[62]=G,t[63]=K);let q;t[64]!==h||t[65]!==n.id?(q=h({id:`iv452l`,values:{0:n.id}}),t[64]=h,t[65]=n.id,t[66]=q):q=t[66];let J,oe;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,L.jsx)(r,{id:`TvY_XA`}),oe=(0,L.jsx)(x,{"aria-hidden":!0,className:`size-3`}),t[67]=J,t[68]=oe):(J=t[67],oe=t[68]);let Y;t[69]!==n.docUrl||t[70]!==G||t[71]!==K||t[72]!==q?(Y=(0,L.jsxs)(`a`,{href:ae,target:`_blank`,rel:`noopener noreferrer`,onClick:G,onAuxClick:K,"aria-label":q,className:`inline-flex items-center gap-0.5 text-primary underline-offset-2 hover:underline`,children:[J,oe]}),t[69]=n.docUrl,t[70]=G,t[71]=K,t[72]=q,t[73]=Y):Y=t[73];let X;t[74]!==W||t[75]!==Y?(X=(0,L.jsxs)(`p`,{className:`text-1sm text-muted-foreground`,children:[W,` · `,Y]}),t[74]=W,t[75]=Y,t[76]=X):X=t[76];let Z;if(t[77]!==m||t[78]!==p||t[79]!==n.id||t[80]!==n.options||t[81]!==a){let e;t[83]!==m||t[84]!==p||t[85]!==n.id||t[86]!==a?(e=e=>(0,L.jsx)(ie,{ruleId:n.id,spec:e,value:me(a,e.key),disabled:!p,onChange:t=>m(pe(a,e.key,t))},e.key),t[83]=m,t[84]=p,t[85]=n.id,t[86]=a,t[87]=e):e=t[87],Z=n.options.map(e),t[77]=m,t[78]=p,t[79]=n.id,t[80]=n.options,t[81]=a,t[82]=Z}else Z=t[82];let Q;t[88]!==X||t[89]!==Z?(Q=(0,L.jsx)(l,{className:`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in]`,children:(0,L.jsxs)(`div`,{className:`space-y-3 px-3 pb-3 pt-1`,children:[X,Z]})}),t[88]=X,t[89]=Z,t[90]=Q):Q=t[90];let $;return t[91]!==S||t[92]!==U||t[93]!==Q||t[94]!==A?($=(0,L.jsxs)(S,{"data-testid":A,children:[U,Q]}),t[91]=S,t[92]=U,t[93]=Q,t[94]=A,t[95]=$):$=t[95],$}function Z(e){let t=(0,F.c)(6),{category:n}=e;switch(n){case`Headings`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`PKjGhT`}),t[0]=e):e=t[0],e}case`Lists`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`h16FyT`}),t[1]=e):e=t[1],e}case`Whitespace`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`iIaSUD`}),t[2]=e):e=t[2],e}case`Code`:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`EWPtMO`}),t[3]=e):e=t[3],e}case`Links & images`:{let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`-kbIAr`}),t[4]=e):e=t[4],e}case`Style`:{let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`1CalO6`}),t[5]=e):e=t[5],e}default:return n}}function Q(e){return e.toLowerCase().replace(/[^a-z]+/g,`-`).replace(/^-|-$/g,``)}function $(e,t){let n=O(e,t);return n===void 0?e.default??!0:n.value}function se(e,t,n){return t!==null&&O(e,n)!==void 0}function ce(e){return typeof e==`string`?e:null}function le(e,t){let n=t.trim().toLowerCase();return n===``?!0:e.id.toLowerCase().includes(n)||e.alias.toLowerCase().includes(n)||e.name.toLowerCase().includes(n)}function ue(e){return typeof e!=`object`||!e?e!==!1:e.enabled!==!1}function de(e){return typeof e!=`object`||!e?[]:Object.keys(e).filter(e=>e!==`enabled`)}function fe(e,t){if(typeof e!=`object`||!e)return t;let n={};for(let t of Object.keys(e))t!==`enabled`&&(n[t]=e[t]);return Object.keys(n).length===0?t:t?n:{...n,enabled:!1}}function pe(e,t,n){return typeof e==`object`&&e?{...e,[t]:n}:e===!1?{enabled:!1,[t]:n}:{[t]:n}}function me(e,t){if(!(typeof e!=`object`||!e))return e[t]}export{oe as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=e(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=e(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]);function n(){let e=null,t=new Set;function n(){for(let e of t)e()}function r(t){e!==t&&(e=t,n())}return{arm(e){r(e)},dismiss(){r(null)},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}var r=n();export{t as n,r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=e(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]);export{t};
|
package/dist/public/assets/{navigation-targets-24nBe7eF.js → navigation-targets-CDgtiaAU.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,b as t,g as n,m as r}from"./constants-upload-DZP-sCdl.js";import{C as i,S as a,_ as o,b as s,d as c,g as l,h as u,m as d,v as f,w as p,x as m,y as h}from"./constants-cc1-Bt4QPTUe.js";import{t as g}from"./doc-extensions-CcO7K8uD-DG9uHV54.js";import{o as _,r as v}from"./file-tree-utils-4_QK0cZe.js";import{r as y}from"./doc-paths-BxQo1KRQ.js";var b=524288;function x(e,t=b){return typeof e==`number`&&Number.isFinite(e)&&e>t}var ee=10485760,te=/(^|\P{M})(\p{M}+)/gu,ne=/^(?![\p{Script_Extensions=Latin}\p{Script_Extensions=Greek}\p{Script_Extensions=Cyrillic}\p{Script_Extensions=Arabic}\p{Script_Extensions=Hebrew}])\p{L}$/u,re=/\p{DI}/gu,ie=/[^\p{L}\p{M}\p{N}]+/gu,ae=/^-+|-+$/g;function oe(e,t,n){return ne.test(t)?t+n.replace(re,``):t}function S(e){return e.trim().normalize(`NFKD`).replace(te,oe).normalize(`NFC`).toLowerCase().replace(ie,`-`).replace(ae,``)}function se(e,t){let n=t.get(e)??0;return t.set(e,n+1),n===0?e:`${e}-${n}`}function ce(e,t){let n=S(e);return n?se(n,t):``}function le(e,t){let n=S(e);return t?`#${n}-${S(t)}`:`#${n}`}var ue={document:{unicode:`NFC`,case:`sensitive`},folder:{unicode:`NFC`,case:`sensitive`},file:{unicode:`NFC`,case:`insensitive`}};function C(e,t){let n=ue[e],r=t.normalize(n.unicode);return n.case===`insensitive`?r.toLowerCase():r}function w(e){return C(`file`,e)}function T(e,t){return e<t?-1:+(e>t)}function E(e,t){let n=t.split(`/`),r=n.length-1;return n.map((t,n)=>C(n===r?e:`folder`,t)).join(`/`)}var D=Symbol.for(`@inkeep/open-knowledge-core/target-namespace`),de=class extends Set{kind;[D]=!0;byKey=new Map;constructor(e,t){super(),this.kind=e;for(let e of t)this.add(e)}add(e){if(super.has(e))return this;super.add(e);let t=E(this.kind,e),n=this.byKey.get(t);if(n===void 0)return this.byKey.set(t,[e]),this;let r=0;for(;r<n.length&&T(n[r],e)<0;)r++;return n.splice(r,0,e),this}delete(e){if(!super.delete(e))return!1;let t=E(this.kind,e),n=this.byKey.get(t);return n===void 0?!0:(n.splice(n.indexOf(e),1),n.length===0&&this.byKey.delete(t),!0)}clear(){super.clear(),this.byKey.clear()}lookup(e){if(super.has(e))return{kind:`exact`,name:e};let t=this.byKey.get(E(this.kind,e));if(t===void 0)return{kind:`absent`};let n=t[0];return t.length===1?{kind:`equivalent`,name:n}:{kind:`ambiguous`,name:n,candidates:[...t]}}resolve(e){return super.has(e)?e:this.byKey.get(E(this.kind,e))?.[0]}};function O(e,t=[]){return new de(e,t)}function fe(e){return e[D]===!0}function k(e,t){return fe(e)?e.resolve(t):e.has(t)?t:void 0}function pe(e,t){let n=e;return n[D]===!0&&n.kind===t}function A(e,t){return pe(t,e)?t:O(e,t)}function j(e){if(!e.includes(`%`))return e;let t;try{t=decodeURIComponent(e)}catch{return e}return t===`.`||t===`..`||t.includes(`/`)||t.includes(`\\`)||t.includes(`\0`)?e:t}function me(e){return e===`.`||e===`..`?e:encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.codePointAt(0)?.toString(16).toUpperCase()}`)}function he(e){return e.split(`/`).map(me).join(`/`)}function M(e){return e.split(`/`).map(j).join(`/`)}function N(e,t){let n=e.trim();if(!n||/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n)||n.startsWith(`//`)||n.startsWith(`#`))return null;let r=n.indexOf(`#`),a=r>=0?n.slice(0,r):n,o=r>=0?n.slice(r+1):null,s=(a.split(`?`)[0]??``).trim();if(!s)return null;let c=j(s.split(`/`).pop()??``).match(/\.([a-z0-9]+)$/i);if(c){let e=`.${(c[1]??``).toLowerCase()}`;if(!g.includes(e))return null}let l=s.startsWith(`/`),u=l?s.slice(1):s,d=l?[]:t.includes(`/`)?t.split(`/`).slice(0,-1):[],f=u.split(`/`),p=f.length-1;for(let e=0;e<f.length;e++){let t=j(f[e]??``);if(e===p&&(t=i(t)),t===`..`){if(d.length===0)return null;d.pop()}else t!==`.`&&t!==``&&d.push(t)}return d.length===0?null:{docName:d.join(`/`),anchor:o||null}}function ge(e){throw Error(`Unhandled ClassifiedLinkTarget variant: ${JSON.stringify(e)}`)}var P=/^[a-zA-Z][a-zA-Z\d+\-.]*:/;function F(e){let t=(e.split(/[?#]/)[0]??e).match(/\.([a-z0-9]+)$/i);return t?(t[1]??``).toLowerCase():null}function I(e){return e.split(`/`).filter(Boolean)}function L(e){let t=e.trim();return P.test(t)||t.startsWith(`//`)}function _e(e,t){let n=e.trim();if(!n)return null;if(n.startsWith(`#`)){let e=n.slice(1).trim();return e?{kind:`anchor`,anchor:e}:null}if(L(n))return{kind:`external`,url:n};let r=n.indexOf(`#`),i=M(r<0?n:n.slice(0,r)),a=h(i,t);if(a)return{kind:`doc`,docName:a,anchor:r<0?null:n.slice(r+1)};let o=s(i,t);if(o)return{kind:`doc`,docName:o,anchor:r<0?null:n.slice(r+1)};let c=N(n,t);if(c)return{kind:`doc`,docName:c.docName,anchor:c.anchor};let l=F(i);return l&&l!==`md`&&l!==`mdx`?{kind:`asset`,url:n,ext:l,literal:!1}:null}function ve(e,t){let n=e.trim();if(!n)return null;if(L(n))return{kind:`external`,url:t?`${n}#${t}`:n};let r=F(n);return r&&r!==`md`&&r!==`mdx`?{kind:`asset`,url:n,ext:r,literal:!0}:{kind:`doc`,docName:n,anchor:t?.trim()||null}}function ye(e,t,n){let r=e.trim();if(!r||P.test(r)||r.startsWith(`//`)||r.startsWith(`#`))return null;let i=r.indexOf(`#`),a=((i>=0?r.slice(0,i):r).split(`?`)[0]??``).trim();if(!a)return null;let o=a.startsWith(`/`),s=o?a.slice(1):a,c=o?[]:t.includes(`/`)?t.split(`/`).slice(0,-1):[];for(let e of s.split(`/`))if(e===`..`){if(c.length===0)return null;c.pop()}else e!==`.`&&e!==``&&c.push(n.literal?e:j(e));return c.length===0?null:c.join(`/`)}function be(e,t,n=null,r=`.md`){let i=I(e);i.pop();let a=I(t),o=0;for(;o<i.length&&o<a.length&&i[o]===a[o];)o+=1;let s=i.slice(o).map(()=>`..`),c=a.slice(o),l=[...s,...c].join(`/`);return l||=a.at(-1)??t,!l.startsWith(`./`)&&!l.startsWith(`../`)&&(l=`./${l}`),`${he(l)}${r}${n?`#${n}`:``}`}function R(e){return`pagesBySlug`in e}function z(e){return R(e)?e.pages:e}function xe(e,t){return R(e)?e.assetPaths??new Set:t??new Set}function B(e,t){return R(e)?e.filePaths??new Set:t??new Set}function Se(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);e&&(i===void 0||T(r,i)<0)&&n.set(e,r)}return n}function Ce(e,t){let n=new Map,r=[...e].sort(T);for(let e of r){let r=e.lastIndexOf(`/`),i=t(r===-1?e:e.slice(r+1));i&&!n.has(i)&&n.set(i,e)}return n}function we(e,t){let n=S(e);if(!n)return;if(R(t))return t.pagesBySlug.get(n);let r;for(let e of t)S(e)===n&&(r===void 0||T(e,r)<0)&&(r=e);return r}function Te(e,t){if(e.includes(`/`))return;let n=S(e);if(!n)return;if(R(t))return t.pagesByBasename?.get(n);let r;for(let e of t){let t=e.lastIndexOf(`/`);S(t===-1?e:e.slice(t+1))===n&&(r===void 0||T(e,r)<0)&&(r=e)}return r}function V(e){let t=e.trim();if(!t)return[];let n=S(t);return n.length>0&&n!==t?[n]:[]}function H(e,t){let n=e.trim();if(!n)return;let r=k(z(t),n);if(r!==void 0)return r;let i=n.replace(/\.(md|mdx)$/i,``);if(i!==n){let e=U(i,t);if(e!==void 0)return e}return U(n,t)}function U(e,t){let n=e.trim();if(!n)return;let r=z(t),i=k(r,n);if(i!==void 0)return i;let a=we(n,t);if(a)return a;for(let e of V(n)){let t=k(r,e);if(t!==void 0)return t}return Ee(n,r)||Te(n,t)}function Ee(e,t){let n=k(t,`${e}/index`);if(n!==void 0)return n;let r=e.lastIndexOf(`/`),i=r===-1?e:e.slice(r+1);return i?k(t,`${e}/${i}`):void 0}function W(e){let t=((e.trim().split(`#`)[0]??``).trim().split(`?`)[0]??``).trim();return t.startsWith(`/`)?t.slice(1):t}function De(e){let t=new Map;for(let n of e){let e=w(n),r=t.get(e);(r===void 0||T(n,r)<0)&&t.set(e,n)}return t}function Oe(e){let t=A(`file`,e),n;return e=>{let r=t.resolve(e);return r===void 0?(n??=De(t),n.get(w(e))):r}}function G(e,t,n){let r=W(e);if(!r)return null;let i=n?[t,n]:[t];for(let e of i){let t=Oe(e)(r);if(t!==void 0)return t}if(r.includes(`/`))return null;let a=C(`file`,r),o=[];for(let e of i)for(let t of e){let e=t.lastIndexOf(`/`);C(`file`,e===-1?t:t.slice(e+1))===a&&o.push(t)}return o.length===0?null:o.sort(T)[0]??null}function ke(...e){let t=new Set;for(let n of e)for(let e of n)t.add(`path:${w(e)}`),t.add(`basename:${C(`file`,e.slice(e.lastIndexOf(`/`)+1))}`);return t}function Ae(e,t,n,r){let i=e.trim();if(!i)return!1;let a=W(i),o=R(t)?t.assetTargetKeys:void 0;if(o!==void 0){if(o.has(`path:${w(a)}`)||!a.includes(`/`)&&o.has(`basename:${C(`file`,a)}`))return!0}else if(G(i,xe(t,n),B(t,r)))return!0;return H(i,t)!==void 0}function je(e,t,n){let r=ve(e,t);return r===null||r.kind!==`asset`||G(r.url,xe(n),B(n))!==null||H(e,n)===void 0?r:{kind:`doc`,docName:e.trim(),anchor:t?.trim()||null}}function Me(e){return e.scope===`project`?i(K(e)):a(e.scope,e.name,e.hostQualifier)}function K(e){return e.canonicalPath??e.path}function Ne(e,t){return e.scope===`project`?`${K(e).replace(/\/SKILL\.mdx?$/i,``)}/${i(t)}`:m(e.scope,e.name,t,e.hostQualifier)}function q(e){let t=l(e);return t?.kind===`skill`?t.name:null}function J(e){let t=e.trim();return{normalizedTarget:t.replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\/+$/g,``),expectsFolder:/\/+$/.test(t)}}function Pe(e){return y(e).replace(/\/+$/g,``)}function Y(e){return e.slice(0,e.lastIndexOf(`/`))}var X=/\.(md|mdx)$/i;function Fe(e,t){let{normalizedTarget:n,expectsFolder:r}=J(e);return r||!X.test(n)||k(t,n)!==void 0?e:n.replace(X,``)}function Z(e){let t=new Set;for(let n of e)for(let e of v(n))t.add(e);return t}function Ie(e,t){return t?`${e}${t}`:(e.split(`/`).pop()??``).lastIndexOf(`.`)>0?e:`${e}.md`}function Q(t,n){if(!_(t)||o(t)||k(n.pages,t)!==void 0)return null;let r=Ie(t,n.docExt);return{kind:`asset`,target:r,assetPath:r,mediaKind:e(r.slice(r.lastIndexOf(`.`)+1))}}function Le(e,i){let a=e,s=Fe(a,i.pages);if(c(s)){let e=u(s);if(e?.kind===`skill`&&e.scope===`project`){let t=f(e.name);return{kind:`doc`,target:t,docName:t}}let t=d(s);if(t){let e=p(t.folder,t.name);return{kind:`doc`,target:e,docName:e}}return{kind:`doc`,target:s,docName:s}}if(q(s))return{kind:`doc`,target:s,docName:s};let l=o(s);if(l){let e=p(l.folder,l.name);return{kind:`doc`,target:e,docName:e}}let{normalizedTarget:m,expectsFolder:h}=J(a);if(!m)return{kind:`missing`,target:m};if(!h&&(n(m)||r(m)||t(m)))return{kind:`doc`,target:m,docName:m};let g=Pe(a),_=h?void 0:H(m,{pages:i.pages,pagesBySlug:i.pagesBySlug??new Map,pagesByBasename:i.pagesByBasename}),v=h?[g]:[m,g];for(let e of v){let t=k(i.pages,`${e}/index`);if(t!==void 0&&(h||_===t))return{kind:`folder-index`,target:e,folderPath:Y(t),docName:t,noteKind:`canonical-index`};let n=e.split(`/`).pop(),r=n?k(i.pages,`${e}/${n}`):void 0;if(r!==void 0&&(h||_===r))return{kind:`folder-index`,target:e,folderPath:Y(r),docName:r,noteKind:`legacy-folder-note`}}if(_!==void 0)return{kind:`doc`,target:_,docName:_};let y=k(i.folderPaths??Z(i.pages),g);if(y!==void 0)return{kind:`folder`,target:g,folderPath:y};if(!h){let e=Q(m,i);if(e)return e}return{kind:`missing`,target:g||m}}function Re(e){return e.kind===`folder-index`?{kind:`folder`,target:e.folderPath,folderPath:e.folderPath}:e}function $(e,t,n=b){return typeof t!=`number`||!x(t,n)?null:{kind:`large-file`,target:e,docName:e,size:t,limit:n}}function ze(e,t,n=b){return e.kind!==`doc`&&e.kind!==`folder-index`?e:$(e.docName,t.get(e.docName)?.size,n)??e}function Be(e){switch(e.kind){case`doc`:case`folder-index`:case`large-file`:return e.docName;case`missing`:return e.target;case`asset`:case`skill-file`:case`skills`:case`skill-preview`:case`folder`:return null}}export{ce as A,L as C,A as D,N as E,le as M,ee as N,O,x as P,F as S,M as T,je as _,Q as a,be as b,q as c,Ce as d,Se as f,G as g,Ae as h,$ as i,S as j,k,Ne as l,V as m,Be as n,Le as o,ke as p,Re as r,ze as s,Z as t,Me as u,H as v,ye as w,_e as x,ge as y};
|
|
1
|
+
import{_ as e,b as t,g as n,m as r}from"./constants-upload-kkBkFBty.js";import{C as i,S as a,_ as o,b as s,d as c,g as l,h as u,m as d,v as f,w as p,x as m,y as h}from"./constants-cc1-DSBEUyZb.js";import{t as g}from"./doc-extensions-CcO7K8uD-BsCiKh3N.js";import{o as _,r as v}from"./file-tree-utils-Chf8oKT-.js";import{r as y}from"./doc-paths-BxQo1KRQ.js";var b=524288;function x(e,t=b){return typeof e==`number`&&Number.isFinite(e)&&e>t}var ee=10485760,te=/(^|\P{M})(\p{M}+)/gu,ne=/^(?![\p{Script_Extensions=Latin}\p{Script_Extensions=Greek}\p{Script_Extensions=Cyrillic}\p{Script_Extensions=Arabic}\p{Script_Extensions=Hebrew}])\p{L}$/u,re=/\p{DI}/gu,ie=/[^\p{L}\p{M}\p{N}]+/gu,ae=/^-+|-+$/g;function oe(e,t,n){return ne.test(t)?t+n.replace(re,``):t}function S(e){return e.trim().normalize(`NFKD`).replace(te,oe).normalize(`NFC`).toLowerCase().replace(ie,`-`).replace(ae,``)}function se(e,t){let n=t.get(e)??0;return t.set(e,n+1),n===0?e:`${e}-${n}`}function ce(e,t){let n=S(e);return n?se(n,t):``}function le(e,t){let n=S(e);return t?`#${n}-${S(t)}`:`#${n}`}var ue={document:{unicode:`NFC`,case:`sensitive`},folder:{unicode:`NFC`,case:`sensitive`},file:{unicode:`NFC`,case:`insensitive`}};function C(e,t){let n=ue[e],r=t.normalize(n.unicode);return n.case===`insensitive`?r.toLowerCase():r}function w(e){return C(`file`,e)}function T(e,t){return e<t?-1:+(e>t)}function E(e,t){let n=t.split(`/`),r=n.length-1;return n.map((t,n)=>C(n===r?e:`folder`,t)).join(`/`)}var D=Symbol.for(`@inkeep/open-knowledge-core/target-namespace`),de=class extends Set{kind;[D]=!0;byKey=new Map;constructor(e,t){super(),this.kind=e;for(let e of t)this.add(e)}add(e){if(super.has(e))return this;super.add(e);let t=E(this.kind,e),n=this.byKey.get(t);if(n===void 0)return this.byKey.set(t,[e]),this;let r=0;for(;r<n.length&&T(n[r],e)<0;)r++;return n.splice(r,0,e),this}delete(e){if(!super.delete(e))return!1;let t=E(this.kind,e),n=this.byKey.get(t);return n===void 0?!0:(n.splice(n.indexOf(e),1),n.length===0&&this.byKey.delete(t),!0)}clear(){super.clear(),this.byKey.clear()}lookup(e){if(super.has(e))return{kind:`exact`,name:e};let t=this.byKey.get(E(this.kind,e));if(t===void 0)return{kind:`absent`};let n=t[0];return t.length===1?{kind:`equivalent`,name:n}:{kind:`ambiguous`,name:n,candidates:[...t]}}resolve(e){return super.has(e)?e:this.byKey.get(E(this.kind,e))?.[0]}};function O(e,t=[]){return new de(e,t)}function fe(e){return e[D]===!0}function k(e,t){return fe(e)?e.resolve(t):e.has(t)?t:void 0}function pe(e,t){let n=e;return n[D]===!0&&n.kind===t}function A(e,t){return pe(t,e)?t:O(e,t)}function j(e){if(!e.includes(`%`))return e;let t;try{t=decodeURIComponent(e)}catch{return e}return t===`.`||t===`..`||t.includes(`/`)||t.includes(`\\`)||t.includes(`\0`)?e:t}function me(e){return e===`.`||e===`..`?e:encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.codePointAt(0)?.toString(16).toUpperCase()}`)}function he(e){return e.split(`/`).map(me).join(`/`)}function M(e){return e.split(`/`).map(j).join(`/`)}function N(e,t){let n=e.trim();if(!n||/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n)||n.startsWith(`//`)||n.startsWith(`#`))return null;let r=n.indexOf(`#`),a=r>=0?n.slice(0,r):n,o=r>=0?n.slice(r+1):null,s=(a.split(`?`)[0]??``).trim();if(!s)return null;let c=j(s.split(`/`).pop()??``).match(/\.([a-z0-9]+)$/i);if(c){let e=`.${(c[1]??``).toLowerCase()}`;if(!g.includes(e))return null}let l=s.startsWith(`/`),u=l?s.slice(1):s,d=l?[]:t.includes(`/`)?t.split(`/`).slice(0,-1):[],f=u.split(`/`),p=f.length-1;for(let e=0;e<f.length;e++){let t=j(f[e]??``);if(e===p&&(t=i(t)),t===`..`){if(d.length===0)return null;d.pop()}else t!==`.`&&t!==``&&d.push(t)}return d.length===0?null:{docName:d.join(`/`),anchor:o||null}}function ge(e){throw Error(`Unhandled ClassifiedLinkTarget variant: ${JSON.stringify(e)}`)}var P=/^[a-zA-Z][a-zA-Z\d+\-.]*:/;function F(e){let t=(e.split(/[?#]/)[0]??e).match(/\.([a-z0-9]+)$/i);return t?(t[1]??``).toLowerCase():null}function I(e){return e.split(`/`).filter(Boolean)}function L(e){let t=e.trim();return P.test(t)||t.startsWith(`//`)}function _e(e,t){let n=e.trim();if(!n)return null;if(n.startsWith(`#`)){let e=n.slice(1).trim();return e?{kind:`anchor`,anchor:e}:null}if(L(n))return{kind:`external`,url:n};let r=n.indexOf(`#`),i=M(r<0?n:n.slice(0,r)),a=h(i,t);if(a)return{kind:`doc`,docName:a,anchor:r<0?null:n.slice(r+1)};let o=s(i,t);if(o)return{kind:`doc`,docName:o,anchor:r<0?null:n.slice(r+1)};let c=N(n,t);if(c)return{kind:`doc`,docName:c.docName,anchor:c.anchor};let l=F(i);return l&&l!==`md`&&l!==`mdx`?{kind:`asset`,url:n,ext:l,literal:!1}:null}function ve(e,t){let n=e.trim();if(!n)return null;if(L(n))return{kind:`external`,url:t?`${n}#${t}`:n};let r=F(n);return r&&r!==`md`&&r!==`mdx`?{kind:`asset`,url:n,ext:r,literal:!0}:{kind:`doc`,docName:n,anchor:t?.trim()||null}}function ye(e,t,n){let r=e.trim();if(!r||P.test(r)||r.startsWith(`//`)||r.startsWith(`#`))return null;let i=r.indexOf(`#`),a=((i>=0?r.slice(0,i):r).split(`?`)[0]??``).trim();if(!a)return null;let o=a.startsWith(`/`),s=o?a.slice(1):a,c=o?[]:t.includes(`/`)?t.split(`/`).slice(0,-1):[];for(let e of s.split(`/`))if(e===`..`){if(c.length===0)return null;c.pop()}else e!==`.`&&e!==``&&c.push(n.literal?e:j(e));return c.length===0?null:c.join(`/`)}function be(e,t,n=null,r=`.md`){let i=I(e);i.pop();let a=I(t),o=0;for(;o<i.length&&o<a.length&&i[o]===a[o];)o+=1;let s=i.slice(o).map(()=>`..`),c=a.slice(o),l=[...s,...c].join(`/`);return l||=a.at(-1)??t,!l.startsWith(`./`)&&!l.startsWith(`../`)&&(l=`./${l}`),`${he(l)}${r}${n?`#${n}`:``}`}function R(e){return`pagesBySlug`in e}function z(e){return R(e)?e.pages:e}function xe(e,t){return R(e)?e.assetPaths??new Set:t??new Set}function B(e,t){return R(e)?e.filePaths??new Set:t??new Set}function Se(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);e&&(i===void 0||T(r,i)<0)&&n.set(e,r)}return n}function Ce(e,t){let n=new Map,r=[...e].sort(T);for(let e of r){let r=e.lastIndexOf(`/`),i=t(r===-1?e:e.slice(r+1));i&&!n.has(i)&&n.set(i,e)}return n}function we(e,t){let n=S(e);if(!n)return;if(R(t))return t.pagesBySlug.get(n);let r;for(let e of t)S(e)===n&&(r===void 0||T(e,r)<0)&&(r=e);return r}function Te(e,t){if(e.includes(`/`))return;let n=S(e);if(!n)return;if(R(t))return t.pagesByBasename?.get(n);let r;for(let e of t){let t=e.lastIndexOf(`/`);S(t===-1?e:e.slice(t+1))===n&&(r===void 0||T(e,r)<0)&&(r=e)}return r}function V(e){let t=e.trim();if(!t)return[];let n=S(t);return n.length>0&&n!==t?[n]:[]}function H(e,t){let n=e.trim();if(!n)return;let r=k(z(t),n);if(r!==void 0)return r;let i=n.replace(/\.(md|mdx)$/i,``);if(i!==n){let e=U(i,t);if(e!==void 0)return e}return U(n,t)}function U(e,t){let n=e.trim();if(!n)return;let r=z(t),i=k(r,n);if(i!==void 0)return i;let a=we(n,t);if(a)return a;for(let e of V(n)){let t=k(r,e);if(t!==void 0)return t}return Ee(n,r)||Te(n,t)}function Ee(e,t){let n=k(t,`${e}/index`);if(n!==void 0)return n;let r=e.lastIndexOf(`/`),i=r===-1?e:e.slice(r+1);return i?k(t,`${e}/${i}`):void 0}function W(e){let t=((e.trim().split(`#`)[0]??``).trim().split(`?`)[0]??``).trim();return t.startsWith(`/`)?t.slice(1):t}function De(e){let t=new Map;for(let n of e){let e=w(n),r=t.get(e);(r===void 0||T(n,r)<0)&&t.set(e,n)}return t}function Oe(e){let t=A(`file`,e),n;return e=>{let r=t.resolve(e);return r===void 0?(n??=De(t),n.get(w(e))):r}}function G(e,t,n){let r=W(e);if(!r)return null;let i=n?[t,n]:[t];for(let e of i){let t=Oe(e)(r);if(t!==void 0)return t}if(r.includes(`/`))return null;let a=C(`file`,r),o=[];for(let e of i)for(let t of e){let e=t.lastIndexOf(`/`);C(`file`,e===-1?t:t.slice(e+1))===a&&o.push(t)}return o.length===0?null:o.sort(T)[0]??null}function ke(...e){let t=new Set;for(let n of e)for(let e of n)t.add(`path:${w(e)}`),t.add(`basename:${C(`file`,e.slice(e.lastIndexOf(`/`)+1))}`);return t}function Ae(e,t,n,r){let i=e.trim();if(!i)return!1;let a=W(i),o=R(t)?t.assetTargetKeys:void 0;if(o!==void 0){if(o.has(`path:${w(a)}`)||!a.includes(`/`)&&o.has(`basename:${C(`file`,a)}`))return!0}else if(G(i,xe(t,n),B(t,r)))return!0;return H(i,t)!==void 0}function je(e,t,n){let r=ve(e,t);return r===null||r.kind!==`asset`||G(r.url,xe(n),B(n))!==null||H(e,n)===void 0?r:{kind:`doc`,docName:e.trim(),anchor:t?.trim()||null}}function Me(e){return e.scope===`project`?i(K(e)):a(e.scope,e.name,e.hostQualifier)}function K(e){return e.canonicalPath??e.path}function Ne(e,t){return e.scope===`project`?`${K(e).replace(/\/SKILL\.mdx?$/i,``)}/${i(t)}`:m(e.scope,e.name,t,e.hostQualifier)}function q(e){let t=l(e);return t?.kind===`skill`?t.name:null}function J(e){let t=e.trim();return{normalizedTarget:t.replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\/+$/g,``),expectsFolder:/\/+$/.test(t)}}function Pe(e){return y(e).replace(/\/+$/g,``)}function Y(e){return e.slice(0,e.lastIndexOf(`/`))}var X=/\.(md|mdx)$/i;function Fe(e,t){let{normalizedTarget:n,expectsFolder:r}=J(e);return r||!X.test(n)||k(t,n)!==void 0?e:n.replace(X,``)}function Z(e){let t=new Set;for(let n of e)for(let e of v(n))t.add(e);return t}function Ie(e,t){return t?`${e}${t}`:(e.split(`/`).pop()??``).lastIndexOf(`.`)>0?e:`${e}.md`}function Q(t,n){if(!_(t)||o(t)||k(n.pages,t)!==void 0)return null;let r=Ie(t,n.docExt);return{kind:`asset`,target:r,assetPath:r,mediaKind:e(r.slice(r.lastIndexOf(`.`)+1))}}function Le(e,i){let a=e,s=Fe(a,i.pages);if(c(s)){let e=u(s);if(e?.kind===`skill`&&e.scope===`project`){let t=f(e.name);return{kind:`doc`,target:t,docName:t}}let t=d(s);if(t){let e=p(t.folder,t.name);return{kind:`doc`,target:e,docName:e}}return{kind:`doc`,target:s,docName:s}}if(q(s))return{kind:`doc`,target:s,docName:s};let l=o(s);if(l){let e=p(l.folder,l.name);return{kind:`doc`,target:e,docName:e}}let{normalizedTarget:m,expectsFolder:h}=J(a);if(!m)return{kind:`missing`,target:m};if(!h&&(n(m)||r(m)||t(m)))return{kind:`doc`,target:m,docName:m};let g=Pe(a),_=h?void 0:H(m,{pages:i.pages,pagesBySlug:i.pagesBySlug??new Map,pagesByBasename:i.pagesByBasename}),v=h?[g]:[m,g];for(let e of v){let t=k(i.pages,`${e}/index`);if(t!==void 0&&(h||_===t))return{kind:`folder-index`,target:e,folderPath:Y(t),docName:t,noteKind:`canonical-index`};let n=e.split(`/`).pop(),r=n?k(i.pages,`${e}/${n}`):void 0;if(r!==void 0&&(h||_===r))return{kind:`folder-index`,target:e,folderPath:Y(r),docName:r,noteKind:`legacy-folder-note`}}if(_!==void 0)return{kind:`doc`,target:_,docName:_};let y=k(i.folderPaths??Z(i.pages),g);if(y!==void 0)return{kind:`folder`,target:g,folderPath:y};if(!h){let e=Q(m,i);if(e)return e}return{kind:`missing`,target:g||m}}function Re(e){return e.kind===`folder-index`?{kind:`folder`,target:e.folderPath,folderPath:e.folderPath}:e}function $(e,t,n=b){return typeof t!=`number`||!x(t,n)?null:{kind:`large-file`,target:e,docName:e,size:t,limit:n}}function ze(e,t,n=b){return e.kind!==`doc`&&e.kind!==`folder-index`?e:$(e.docName,t.get(e.docName)?.size,n)??e}function Be(e){switch(e.kind){case`doc`:case`folder-index`:case`large-file`:return e.docName;case`missing`:return e.target;case`asset`:case`skill-file`:case`skills`:case`skill-preview`:case`folder`:return null}}export{ce as A,L as C,A as D,N as E,le as M,ee as N,O,x as P,F as S,M as T,je as _,Q as a,be as b,q as c,Ce as d,Se as f,G as g,Ae as h,$ as i,S as j,k,Ne as l,V as m,Be as n,Le as o,ke as p,Re as r,ze as s,Z as t,Me as u,H as v,ye as w,_e as x,ge as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./dist-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./dist-XgwTV-oh2.js";function a(){let e=null,t=null,n=new Set,r=!1,a=null;function o(){for(let e of n)e()}function s(){e!==null&&(e=null,o())}return{install({bridge:n}){if(n)return r?a??void 0:(r=!0,t=n,a=n.mcpWiring.onShow(t=>{e=t,o()}),n.mcpWiring.signalReady(),()=>{a?.(),a=null,r=!1,t=null,s()})},getSnapshot(){return e},subscribe(e){return n.add(e),()=>{n.delete(e)}},async confirm(e){let n=t;if(!n)return{ok:!1,error:i._({id:`bEp7UY`})};try{let t=await n.mcpWiring.confirm(e);return t.ok&&s(),t}catch(e){return{ok:!1,error:e instanceof Error?e.message:i._({id:`29VNqC`})}}},async skip(){let e=t;if(!e)return{ok:!1,error:i._({id:`bEp7UY`})};try{let t=await e.mcpWiring.skip();return t.ok&&s(),t}catch(e){return{ok:!1,error:e instanceof Error?e.message:i._({id:`29VNqC`})}}},dismiss(){s()}}}var o=a();function s(e){return o.install(e)}var c=r(),l=e(n(),1),u=t();function d(e){let t=(0,c.c)(24),n=(0,l.useId)(),r;if(t[0]!==n){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=/:/g,t[2]=e):e=t[2],r=n.replace(e,``),t[0]=n,t[1]=r}else r=t[1];let i=`ok-shadow-${r}`,a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(`title`,{children:`OpenKnowledge icon`}),t[3]=a):a=t[3];let o=`url(#${i})`,s,d,f,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,u.jsx)(`path`,{d:`M66.8902 16.1017C58.2694 3.86669 46.1739 -0.690239 29.9182 2.17749C21.3995 3.67813 13.4602 9.555 8.67934 17.9009C3.93974 26.1701 2.98514 35.6533 6.05714 43.9166C9.31574 52.6868 16.7168 58.4752 24.2299 63.4231C25.7973 64.4562 26.1351 65.7172 26.3551 68.9896C26.5221 71.4625 26.799 75.6011 30.6842 77.7204C31.8176 78.3372 33.0648 78.6515 34.3946 78.6515C37.0796 78.6515 39.4033 77.3649 40.5189 76.7482C47.1049 73.1046 68.8878 59.7147 72.6453 40.4027C74.3444 31.6679 70.9797 21.9019 66.8922 16.1017H66.8902Z`,fill:`white`}),d=(0,u.jsx)(`path`,{d:`M37.4214 71.154C28.7888 75.929 36.787 64.0397 27.7458 58.0843C21.6372 54.0616 14.788 49.0568 12.0499 41.6911C6.74463 27.4192 17.5438 10.8473 31.028 8.47262C45.1977 5.97613 54.6946 9.8947 61.6635 19.7844C65.2089 24.8167 67.6013 32.8365 66.3658 39.1828C63.6906 52.9341 49.073 64.7075 37.4214 71.154Z`,fill:`#69A3FF`}),f=(0,u.jsx)(`path`,{d:`M52.7244 29.2638C53.4665 28.5217 54.6697 28.5217 55.4119 29.2638V29.2638C56.154 30.0059 56.154 31.2091 55.4119 31.9513L49.2589 38.1042L46.5715 35.4167L52.7244 29.2638Z`,fill:`#D5E5FF`}),p=(0,u.jsx)(`path`,{d:`M55.4119 38.8821C56.154 39.6242 56.154 40.8274 55.4119 41.5696V41.5696C54.6698 42.3117 53.4665 42.3117 52.7244 41.5696L46.5715 35.4166L49.259 32.7292L55.4119 38.8821Z`,fill:`#D5E5FF`}),t[4]=s,t[5]=d,t[6]=f,t[7]=p):(s=t[4],d=t[5],f=t[6],p=t[7]);let m;t[8]===o?m=t[9]:(m=(0,u.jsxs)(`g`,{filter:o,children:[s,d,f,p]}),t[8]=o,t[9]=m);let h,g,_,v,y,b,x,S;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,u.jsx)(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),h=(0,u.jsx)(`feColorMatrix`,{in:`SourceAlpha`,type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`hardAlpha`}),g=(0,u.jsx)(`feOffset`,{dy:`2.85714`}),_=(0,u.jsx)(`feGaussianBlur`,{stdDeviation:`2.14286`}),v=(0,u.jsx)(`feComposite`,{in2:`hardAlpha`,operator:`out`}),y=(0,u.jsx)(`feColorMatrix`,{type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0`}),b=(0,u.jsx)(`feBlend`,{mode:`normal`,in2:`BackgroundImageFix`,result:`effect1_dropShadow_ok`}),x=(0,u.jsx)(`feBlend`,{mode:`normal`,in:`SourceGraphic`,in2:`effect1_dropShadow_ok`,result:`shape`}),t[10]=h,t[11]=g,t[12]=_,t[13]=v,t[14]=y,t[15]=b,t[16]=x,t[17]=S):(h=t[10],g=t[11],_=t[12],v=t[13],y=t[14],b=t[15],x=t[16],S=t[17]);let C;t[18]===i?C=t[19]:(C=(0,u.jsx)(`defs`,{children:(0,u.jsxs)(`filter`,{id:i,x:`-9.53674e-07`,y:`-0.0799994`,width:`77.3817`,height:`85.8743`,filterUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`,children:[S,h,g,_,v,y,b,x]})}),t[18]=i,t[19]=C);let w;return t[20]!==e||t[21]!==C||t[22]!==m?(w=(0,u.jsxs)(`svg`,{role:`img`,"aria-label":`OpenKnowledge icon`,fill:`none`,height:24,width:24,viewBox:`0 0 78 80`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[a,m,C]}),t[20]=e,t[21]=C,t[22]=m,t[23]=w):w=t[23],w}export{s as n,o as r,d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,m as t,u as n}from"./doc-hash-
|
|
1
|
+
import{_ as e,m as t,u as n}from"./doc-hash-BDtDlqpM.js";function r(t){if(typeof window>`u`)return;let r=n(t);e(window.location.hash,r)||(window.location.hash=r)}function i(e){if(typeof window>`u`)return;let n=t(e);window.location.hash!==n&&(window.location.hash=n)}export{i as n,r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]],n=e(`package`,t);export{t as n,n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./navigation-targets-
|
|
1
|
+
import"./navigation-targets-CDgtiaAU.js";var e=null,t=new Set;function n(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function r(e,t){return e===null?!1:e===t?!0:n(e.pages,t.pages)&&n(e.folderPaths,t.folderPaths)&&n(e.assetPaths??new Set,t.assetPaths??new Set)&&n(e.filePaths??new Set,t.filePaths??new Set)&&i(e.pageIcons,t.pageIcons)}function i(e,t){if(e===t)return!0;let n=e?.size??0;if(n!==(t?.size??0))return!1;if(n===0)return!0;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function a(e){let t=new Map;for(let[n,r]of e){let e=r.icon;typeof e==`string`&&e.trim()!==``&&t.set(n,e)}return t}function o(){return e}function s(n){if(!r(e,n)){e=n;for(let e of Array.from(t))try{e(n)}catch(e){console.error(`[page-list-cache] subscriber threw:`,e)}}}function c(n){if(t.add(n),e!==null)try{n(e)}catch(e){console.error(`[page-list-cache] subscriber threw on replay:`,e)}return()=>{t.delete(n)}}export{c as i,o as n,s as r,a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=e(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=e(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-CB3nKwwz.js";var t=e(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]);export{t};
|