decocms 4.519.0 → 4.520.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/client/assets/{ActiveShapeUtils-DpnSicPy.js → ActiveShapeUtils-a2DoNLsg.js} +1 -1
- package/dist/client/assets/{AlertCircle-DBK8R4dI.js → AlertCircle-CePpxiVL.js} +1 -1
- package/dist/client/assets/{AreaChart-CeMTC5TB.js → AreaChart-futTS77r.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BhYsdDhs.js → ArrowLeft-DPa6sZRI.js} +1 -1
- package/dist/client/assets/{ArrowUp-B-samV76.js → ArrowUp-Bc6Es12Z.js} +1 -1
- package/dist/client/assets/{BarChart-D4vvVhNP.js → BarChart-CJBobvga.js} +1 -1
- package/dist/client/assets/{Building02-BVkscSyZ.js → Building02-BbEppJaI.js} +1 -1
- package/dist/client/assets/{CartesianChart-D5TCh86n.js → CartesianChart-D2mofn_H.js} +1 -1
- package/dist/client/assets/{CategoricalChart-BlWkKGI4.js → CategoricalChart-1f5JjzPP.js} +1 -1
- package/dist/client/assets/{CheckCircle-Bnnstx7h.js → CheckCircle-Dlz5XR1a.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-rEBuyaLs.js → ChevronSelectorVertical-BjvpkKQW.js} +1 -1
- package/dist/client/assets/{ChevronUp-CBJitQaC.js → ChevronUp-CHckv_8T.js} +1 -1
- package/dist/client/assets/{Copy01-B-Kqql1v.js → Copy01-ynYolVGY.js} +1 -1
- package/dist/client/assets/{CreditCard01-BuvGgoKU.js → CreditCard01-CJRwgkVP.js} +1 -1
- package/dist/client/assets/{DotsVertical-kTicVrIf.js → DotsVertical-xGYJd_oZ.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BUVr9l59.js → ErrorBarContext-Bu4h-9ud.js} +1 -1
- package/dist/client/assets/{Globe04-KYEPLfFL.js → Globe04-rKrlqbJ3.js} +1 -1
- package/dist/client/assets/{Image01-D5xmdMv9.js → Image01-J72Rm0Yr.js} +1 -1
- package/dist/client/assets/{Key01-egFT7DX9.js → Key01-GACmaKDe.js} +1 -1
- package/dist/client/assets/{Link01-DbW4kVwR.js → Link01-Dy_bSHLe.js} +1 -1
- package/dist/client/assets/{LinkBroken01-OntVHV0h.js → LinkBroken01-Dbb_PbFz.js} +1 -1
- package/dist/client/assets/{Minus-DN-1q402.js → Minus-cuNEQYA9.js} +1 -1
- package/dist/client/assets/{Monitor01-QBQW5XNf.js → Monitor01-CW3G0lSo.js} +1 -1
- package/dist/client/assets/{Play-COeyqncs.js → Play-RPF1C2F0.js} +1 -1
- package/dist/client/assets/{Plus-B4v3GkBC.js → Plus-DXIMcQkQ.js} +1 -1
- package/dist/client/assets/{ReferenceLine-5iYQv1Rq.js → ReferenceLine-CYgqeMqY.js} +1 -1
- package/dist/client/assets/{SearchMd-DWVKWjSh.js → SearchMd-DQ6xirDN.js} +1 -1
- package/dist/client/assets/{Sector-CExKcwxp.js → Sector-fbb2Py22.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BhCtEuhY.js → ShoppingBag01-B81IcYcu.js} +1 -1
- package/dist/client/assets/{Sun-DXxrAWEA.js → Sun-Bd7hlMAK.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-ByDhQXb-.js → SwitchHorizontal01-QjLd4gai.js} +1 -1
- package/dist/client/assets/{Tool01-Bhwq8fKA.js → Tool01-D7eccoeh.js} +1 -1
- package/dist/client/assets/{Trash01-BJcybrX2.js → Trash01-CTrNlbT8.js} +1 -1
- package/dist/client/assets/{Upload01-D6z8pgdP.js → Upload01-B9oMCz-6.js} +1 -1
- package/dist/client/assets/{User01-BaPQvgQq.js → User01-BgWUolo8.js} +1 -1
- package/dist/client/assets/{UserSquare-BIGP81NS.js → UserSquare-CZXKi88L.js} +1 -1
- package/dist/client/assets/{Users01-OOPFNu5a.js → Users01-B7zAiC4m.js} +1 -1
- package/dist/client/assets/{XClose-DbFkM30N.js → XClose-C9XzQkao.js} +1 -1
- package/dist/client/assets/{ZoomOut-CKf6RmrA.js → ZoomOut-DKNOmfuK.js} +1 -1
- package/dist/client/assets/{access-gate-Bp5g1mrg.js → access-gate-BBEga0hz.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-C3wKqrUu.js → add-connection-dialog-ldH4ynvN.js} +1 -1
- package/dist/client/assets/agent-analytics-CAeIvLpw.js +1 -0
- package/dist/client/assets/agent-app-BIZw6O6x.js +1 -0
- package/dist/client/assets/{agent-assets-CXlM6UQS.js → agent-assets-BTuYhb0x.js} +1 -1
- package/dist/client/assets/{agent-automation-C1KFlSjr.js → agent-automation-CPVX6Ssc.js} +1 -1
- package/dist/client/assets/{agent-automations-BXeaRV79.js → agent-automations-Depk4_IZ.js} +1 -1
- package/dist/client/assets/agent-calendar-rSYcBUhL.js +1 -0
- package/dist/client/assets/{agent-connect-sources-ByDR9dOm.js → agent-connect-sources-B_w_bZyW.js} +1 -1
- package/dist/client/assets/agent-deck-BdTe1uEF.js +1 -0
- package/dist/client/assets/{agent-e2e-BOVUEdNB.js → agent-e2e-BUjIk9_k.js} +1 -1
- package/dist/client/assets/agent-experiments-C9MFznl7.js +1 -0
- package/dist/client/assets/{agent-file-De8dU8yj.js → agent-file-CD0Yoa7I.js} +1 -1
- package/dist/client/assets/{agent-hosting-BJaMFlfC.js → agent-hosting-DZFLF8mA.js} +1 -1
- package/dist/client/assets/{agent-icon-B7E6q_wB.js → agent-icon-DtT3h4UX.js} +1 -1
- package/dist/client/assets/agent-library-ClrTwj50.js +1 -0
- package/dist/client/assets/agent-library-file-CAlMp336.js +1 -0
- package/dist/client/assets/agent-monitor-Bn4RTzzk.js +1 -0
- package/dist/client/assets/{agent-overview-CSyXy3g4.js → agent-overview-D3DqJ6Lq.js} +1 -1
- package/dist/client/assets/{agent-releases-srD8iHFc.js → agent-releases-JCAWDH6g.js} +1 -1
- package/dist/client/assets/agent-settings-DUBumxG4.js +1 -0
- package/dist/client/assets/{agent-site-editor-C0gN8EWt.js → agent-site-editor-DmMopyU6.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CXdBuByv.js +2 -0
- package/dist/client/assets/agent-site-editor-content-xxngWBr2.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DBUt1iNd.js +1 -0
- package/dist/client/assets/agent-view-BiUQ1gj5.js +1 -0
- package/dist/client/assets/{agent-view-guard-IwJPeHon.js → agent-view-guard-MrJ6Jxxx.js} +1 -1
- package/dist/client/assets/{agents-list-kkn2potC.js → agents-list-6A96PYcg.js} +1 -1
- package/dist/client/assets/{ai-providers-B1i5Zd64.js → ai-providers-DLOQtpHm.js} +1 -1
- package/dist/client/assets/{alert-CfW38lSF.js → alert-BEazQOeN.js} +1 -1
- package/dist/client/assets/{alert-dialog-DOm8vTAh.js → alert-dialog-DdGCb0IF.js} +1 -1
- package/dist/client/assets/{analytics-sections-BnQKN24n.js → analytics-sections-BO4YnAjA.js} +1 -1
- package/dist/client/assets/{analytics-tab-BPISXjrq.js → analytics-tab-DaOlRgMk.js} +1 -1
- package/dist/client/assets/{api-keys-B0NZlktL.js → api-keys-BJgy-lS2.js} +1 -1
- package/dist/client/assets/api-keys-bhSN63jL.js +1 -0
- package/dist/client/assets/{app-editor-Cl4XOhpA.js → app-editor-DLE8thcF.js} +1 -1
- package/dist/client/assets/{asset-utils-DE9emOC4.js → asset-utils-BCgXGBCC.js} +1 -1
- package/dist/client/assets/{auth-JXZLGOBb.js → auth-D6exVMlw.js} +1 -1
- package/dist/client/assets/{auth-catchall-DJ8C8A5P.js → auth-catchall-DvDQWdKb.js} +1 -1
- package/dist/client/assets/{auth-entry-CRJg2jV6.js → auth-entry-C86oFADV.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Cb2N96wc.js → auth-split-layout-DyRJlWjB.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Sm0OtDe1.js → authenticate-and-persist-oauth-ByNJ3IhY.js} +1 -1
- package/dist/client/assets/{automation-list-row-DLS7nqs1.js → automation-list-row-CX5dszCC.js} +1 -1
- package/dist/client/assets/{automation-runs-DGVHidy8.js → automation-runs-CHeG76Ew.js} +1 -1
- package/dist/client/assets/{automations-w7eRZ4NJ.js → automations-BpcPPmZL.js} +1 -1
- package/dist/client/assets/{autosend-YiZkI0k7.js → autosend-DJIOdR-h.js} +1 -1
- package/dist/client/assets/{avatar-BD2PDf8q.js → avatar-49aPXdv7.js} +1 -1
- package/dist/client/assets/{badge-CDeaoqCi.js → badge-Xi0bu-aJ.js} +1 -1
- package/dist/client/assets/{block-document-BleRxhvK.js → block-document-Cn8tlonv.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-D22eN4p4.js → blocks-preview-workspace-context-QgOcURJH.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-g8ibEmjD.js → blocks-tab-states-BG-MFk9Q.js} +1 -1
- package/dist/client/assets/{blog-schema-CrKFhIXz.js → blog-schema-BO9IdDkD.js} +1 -1
- package/dist/client/assets/{buckets-DRYNl_Gz.js → buckets-xqarwZ-o.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C1y7z_kF.js → build-improve-prompt-doc-D7Pi_LQA.js} +1 -1
- package/dist/client/assets/{calendar-jrNp7aMz.js → calendar-HcE4WZuE.js} +1 -1
- package/dist/client/assets/{campaigns-view-BgZ9KvqV.js → campaigns-view-BLsQazTL.js} +1 -1
- package/dist/client/assets/{capability-load-error-tQkVlgGI.js → capability-load-error-BzCsh693.js} +1 -1
- package/dist/client/assets/{category-editor-CtUbDM-y.js → category-editor-Cwe6Gn4P.js} +1 -1
- package/dist/client/assets/{cdn-tab-wOWVfYEi.js → cdn-tab-tnk9RtCD.js} +1 -1
- package/dist/client/assets/{chart-BBE_aWjm.js → chart-BKCzQrbM.js} +1 -1
- package/dist/client/assets/{chat-context-C1JvjRtO.js → chat-context-CwxNIspy.js} +1 -1
- package/dist/client/assets/{chat-draft-B0O1aMg3.js → chat-draft-Czzd6Fgc.js} +1 -1
- package/dist/client/assets/{checkbox-BQV5rQq6.js → checkbox-IscGSBh9.js} +1 -1
- package/dist/client/assets/{choose-editor-Cco5iYhS.js → choose-editor-uAgHg51i.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C0BkGk_m.js → cli-auth-success-BhFG_H4z.js} +1 -1
- package/dist/client/assets/{client-icons-CSB7_p4A.js → client-icons-CZ-ZSlxS.js} +1 -1
- package/dist/client/assets/cms-settings-editor-DVlUigtK.js +1 -0
- package/dist/client/assets/{collapsible-DyKYJwPy.js → collapsible-D314pUSB.js} +1 -1
- package/dist/client/assets/{collection-detail-BvgJ-RrS.js → collection-detail-CuIOpuSM.js} +1 -1
- package/dist/client/assets/{collection-display-button-IJ7oRZnA.js → collection-display-button-kbHHi0Kq.js} +1 -1
- package/dist/client/assets/{collection-search-DF8xKBAI.js → collection-search-DCYm5aP4.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-N4bJjHS6.js → collection-table-wrapper-DDG00R7J.js} +1 -1
- package/dist/client/assets/{collection-tabs-DUP2Wv2k.js → collection-tabs-CpRvK4aY.js} +1 -1
- package/dist/client/assets/{column-rules-CzVSaEJv.js → column-rules-yLNPamrN.js} +1 -1
- package/dist/client/assets/{combobox-DSv_uY1C.js → combobox-uDe7w0z0.js} +1 -1
- package/dist/client/assets/{command-C2RTsWLU.js → command-DcKOVszs.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-Om4Xi1g-.js → companion-mcps-section-DZ2ioXzY.js} +1 -1
- package/dist/client/assets/{config-CnSMG0Cu.js → config-DlkgY7Jy.js} +1 -1
- package/dist/client/assets/{connect-layout-Zlm12dcn.js → connect-layout-DU417orE.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DNnWnFk9.js → connect-source-dialog-B6k_6_M9.js} +1 -1
- package/dist/client/assets/{connect-Cyhyxw9Y.js → connect-wFJx1iR7.js} +1 -1
- package/dist/client/assets/{connection-CKGquOu0.js → connection-CLuVf0UF.js} +1 -1
- package/dist/client/assets/{connection-card-CeElSdkP.js → connection-card-BaWG41H0.js} +1 -1
- package/dist/client/assets/{connection-detail-XrFXQKQo.js → connection-detail-B8vzaLYN.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D5tlzOOb.js → connection-form-helpers-BWk506qj.js} +1 -1
- package/dist/client/assets/{connections-WO7Na7dg.js → connections-ajPWQmhT.js} +1 -1
- package/dist/client/assets/{content-tab-C3B5hAv_.js → content-tab-C9mWHRiZ.js} +3 -3
- package/dist/client/assets/{context-BojR4HN9.js → context-BZM48LEC.js} +1 -1
- package/dist/client/assets/{context-menu-22sCTgBs.js → context-menu-DuBXLH-0.js} +1 -1
- package/dist/client/assets/{context-shell-D1N7epOl.js → context-shell-DBFau4jR.js} +3 -3
- package/dist/client/assets/{core.esm-QVBuVFEZ.js → core.esm-r_1fOlla.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-D6kuk20k.js → create-organization-dialog-DinRNNUe.js} +1 -1
- package/dist/client/assets/{daily-pulse-CQHr9nNT.js → daily-pulse-DIrHsqZA.js} +1 -1
- package/dist/client/assets/{discover-C-_i2-PM.js → discover-fUj70D62.js} +1 -1
- package/dist/client/assets/{domain-settings-C-dCekXs.js → domain-settings-CLujyp1m.js} +1 -1
- package/dist/client/assets/{drawer-_y_lX-Yn.js → drawer-CyiQimHr.js} +1 -1
- package/dist/client/assets/{editor-D3dE1UTI.js → editor-BpL3QDOn.js} +1 -1
- package/dist/client/assets/{editor-classes-Bzr4sAFl.js → editor-classes-DA3QHiC-.js} +1 -1
- package/dist/client/assets/{empty-state-gsVYH7fP.js → empty-state-B0G_CGwR.js} +1 -1
- package/dist/client/assets/{empty-state-C-9cwlrp.js → empty-state-Bw4axBb5.js} +1 -1
- package/dist/client/assets/{experiments-tab-CeVz9r9-.js → experiments-tab-BkzMMdcP.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-2QAdfouX.js → experiments-tab-choice-BYO4Dw1S.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CgXJmK0-.js → extract-connection-data-CwDf8Ns1.js} +1 -1
- package/dist/client/assets/{feature-gate-C5He1Jql.js → feature-gate-BxG3yqt8.js} +1 -1
- package/dist/client/assets/{feature-paywall-BKaJGna9.js → feature-paywall-BHK5XVuW.js} +1 -1
- package/dist/client/assets/{file-explorer-v9KulF9f.js → file-explorer-CPGV5tot.js} +1 -1
- package/dist/client/assets/{file-preview-BJJubHbu.js → file-preview-BdEwMhOt.js} +1 -1
- package/dist/client/assets/{file-share-button-Devx0UP5.js → file-share-button-C4MFpt4s.js} +1 -1
- package/dist/client/assets/{file-type-icon-CtKJHzOq.js → file-type-icon-BnEUVv2h.js} +1 -1
- package/dist/client/assets/{folder-icon-v_un8oBh.js → folder-icon-DOB3P9Vd.js} +1 -1
- package/dist/client/assets/{form-B4txFZ9_.js → form-CpnGThcL.js} +1 -1
- package/dist/client/assets/{general-D1PYsEPe.js → general-7WS5B97k.js} +1 -1
- package/dist/client/assets/{home-Ce58QfRL.js → home-CfcdGSri.js} +1 -1
- package/dist/client/assets/{icon-button-B2nkkF4s.js → icon-button-B1pb2_kW.js} +1 -1
- package/dist/client/assets/{index-DofgWNDj.js → index-B-nEUC-m.js} +1 -1
- package/dist/client/assets/{index-DAeJjOY-.js → index-B6fYZNK2.js} +1 -1
- package/dist/client/assets/{index-9zYu4OQI.js → index-BlsmUzy2.js} +1 -1
- package/dist/client/assets/{index-CHOolU-2.js → index-CDmfe_Ze.js} +1 -1
- package/dist/client/assets/{index-C_vsZdEs.js → index-CMKEBGKX.js} +36 -36
- package/dist/client/assets/{index-uj-2aD6g.js → index-CMr2QK3C.js} +1 -1
- package/dist/client/assets/{index-CYvWDMig.js → index-CXV4VJ6T.js} +1 -1
- package/dist/client/assets/{index-Bp5c1HaS.js → index-CZWqOlKo.js} +1 -1
- package/dist/client/assets/{index-ZeYytYg9.js → index-C_uum72U.js} +1 -1
- package/dist/client/assets/{index-DC_lXxHn.js → index-D2b1OQG0.js} +1 -1
- package/dist/client/assets/{index-CBPFaqzb.js → index-DwGMmQy3.js} +1 -1
- package/dist/client/assets/{index-CBITis32.js → index-Okf21u4l.js} +1 -1
- package/dist/client/assets/{index-BjNnHm9S.js → index-P7t2U4iN.js} +1 -1
- package/dist/client/assets/{index-redirect-Jch1OTL_.js → index-redirect-B2074CyX.js} +1 -1
- package/dist/client/assets/{index-DfK7_snd.js → index-tbca9DY7.js} +1 -1
- package/dist/client/assets/{index-AnCWAS83.js → index-uNmIis3_.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C2uEQLvN.js → infiniteQueryObserver-sZS50x9h.js} +1 -1
- package/dist/client/assets/{infra-billing-BI2rcYbR.js → infra-billing-Cf1YDWV8.js} +1 -1
- package/dist/client/assets/{input-nGqpK_4e.js → input-DlOSVkNE.js} +3 -3
- package/dist/client/assets/{input-DlfhLXVo.js → input-qA_oxMGt.js} +1 -1
- package/dist/client/assets/{integration-icon-CeG7h1x5.js → integration-icon-mkTLlJYZ.js} +1 -1
- package/dist/client/assets/{jira-icon-DLfJcRXS.js → jira-icon-C5lcBXYi.js} +1 -1
- package/dist/client/assets/{label-CCla7LnP.js → label-8_hsm0_y.js} +1 -1
- package/dist/client/assets/{layout-C9sg2y3c.js → layout-C4N_3p9u.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BpXhG-Np.js → legacy-agents-deep-Zsw21wnc.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CNUdNl6X.js → legacy-main-redirect-RzdE-Ynb.js} +1 -1
- package/dist/client/assets/library-CKihNjtp.js +1 -0
- package/dist/client/assets/{login-mhnZ1Cb9.js → login-B439_6KR.js} +1 -1
- package/dist/client/assets/{markdown-BDTHe610.js → markdown-yQLRhm2z.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CMRuQe66.js → mcp-app-renderer-gJ1lyd1u.js} +1 -1
- package/dist/client/assets/{mcp-oauth-L6wgBjWx.js → mcp-oauth-B64tInkO.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CIkq3Lwg.js → mcp-oauth-BFUDXDf6.js} +1 -1
- package/dist/client/assets/{members-V_RnUVXg.js → members-Beq92g_c.js} +1 -1
- package/dist/client/assets/{memory-CB8DHXY4.js → memory-BkOPkUkc.js} +1 -1
- package/dist/client/assets/{mini-report-page-DZhVo3A1.js → mini-report-page-BWPJGpfB.js} +1 -1
- package/dist/client/assets/{mock-board-Dy_pSyrX.js → mock-board-qTnFSOlt.js} +3 -3
- package/dist/client/assets/{monaco-editor-BzWTOVge.js → monaco-editor-C2ej8TCv.js} +1 -1
- package/dist/client/assets/{monitoring-UGiK-7BE.js → monitoring-BdT45NJd.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BagVDHFD.js → monitoring-stats-row-QRt_yzIW.js} +1 -1
- package/dist/client/assets/{multi-select-CKLuefuY.js → multi-select-D4sL81eP.js} +1 -1
- package/dist/client/assets/{mustache-Co8KcLI0.js → mustache-3jnCJNSv.js} +1 -1
- package/dist/client/assets/{named-rule-uses-0L-mc_uD.js → named-rule-uses-u1am7LRC.js} +1 -1
- package/dist/client/assets/{named-rule-view-DZyPdsij.js → named-rule-view-B49ZuZC_.js} +1 -1
- package/dist/client/assets/{new-project-dialog-C5J4MWsO.js → new-project-dialog-DCNrhfVx.js} +1 -1
- package/dist/client/assets/{oauth-callback-DGdoi3wa.js → oauth-callback-D1lTLeuO.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DID3n8T6.js → oauth-callback-ai-provider-uHk7H4_s.js} +1 -1
- package/dist/client/assets/{onboarding-D9ovXhj0.js → onboarding-Cqmu7Q1I.js} +1 -1
- package/dist/client/assets/{openai-conversation-CM0XUf2p.js → openai-conversation-D9oaPp7I.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Bfc4VpR_.js → optimistic-project-sidebar-views-C2xkkt2n.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DXxkF6qy.js → order-monitor-day-Bn2RftCy.js} +1 -1
- package/dist/client/assets/{organization-choice-BPMnBB4D.js → organization-choice-DbSR_Tq1.js} +1 -1
- package/dist/client/assets/{orgs-D8DaVl4f.js → orgs-Dv6ZMLaR.js} +1 -1
- package/dist/client/assets/{page-seo-form-BRaefSdh.js → page-seo-form-CYdB-eYU.js} +1 -1
- package/dist/client/assets/{pair-DO5ZeABu.js → pair-DIRyClgs.js} +1 -1
- package/dist/client/assets/{parse-sections-C4YcWg_N.js → parse-sections-CvCJ7mYl.js} +1 -1
- package/dist/client/assets/{plan-0xsoBIKI.js → plan-bTtLskYs.js} +1 -1
- package/dist/client/assets/{plan-ladder-RZlDrpyw.js → plan-ladder-DNfn-N6n.js} +1 -1
- package/dist/client/assets/{popover-CjjSJX-T.js → popover-n_tcLsd5.js} +1 -1
- package/dist/client/assets/{post-calendar-CMfQVQhR.js → post-calendar-DnSIZDH2.js} +1 -1
- package/dist/client/assets/{post-editor-DneZ_oYu.js → post-editor-Ds8VBbi2.js} +1 -1
- package/dist/client/assets/{preview-content-C045LLz9.js → preview-content-YpNvTcZt.js} +1 -1
- package/dist/client/assets/{preview-dialog-C5KMdNHK.js → preview-dialog-DJ8srmsM.js} +1 -1
- package/dist/client/assets/{preview-panel-DbAGt6c_.js → preview-panel-C7cA2AYG.js} +1 -1
- package/dist/client/assets/{preview-tab-BT-Dmpc3.js → preview-tab-lR6Zy9Kz.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BjUVIbA3.js → product-picker-dialog-BQZeexho.js} +1 -1
- package/dist/client/assets/{profile-nkfQjNS7.js → profile-D9pE1ZCt.js} +1 -1
- package/dist/client/assets/project-app-view-BJMSCiLQ.js +1 -0
- package/dist/client/assets/{project-apps-BNVRAEb2.js → project-apps-CKpWGbT4.js} +1 -1
- package/dist/client/assets/{project-feed-xXVaAcj7.js → project-feed-BFyTaEPY.js} +1 -1
- package/dist/client/assets/{project-icon-N-_cW8IV.js → project-icon-BozuiJlT.js} +1 -1
- package/dist/client/assets/project-reports-B6AQHucI.js +1 -0
- package/dist/client/assets/project-tasks-DFBfLTNl.js +1 -0
- package/dist/client/assets/{projects-iwaahBWW.js → projects-Bj8bu01s.js} +1 -1
- package/dist/client/assets/{projects-empty-state-zSj-H-15.js → projects-empty-state-Co0D5JhR.js} +1 -1
- package/dist/client/assets/{prompts-DHg6zTlM.js → prompts-CUYrqR6B.js} +1 -1
- package/dist/client/assets/record-editor-Dq4w4KU3.js +1 -0
- package/dist/client/assets/{redirect-editor-CUc3_Gjb.js → redirect-editor-tsiTjzIT.js} +1 -1
- package/dist/client/assets/{releases-api-FsFJ3Ao1.js → releases-api-DuhgreiH.js} +1 -1
- package/dist/client/assets/{reports-BfO4SPfx.js → reports-BG2If9Qe.js} +1 -1
- package/dist/client/assets/reports-DhdnjILE.js +1 -0
- package/dist/client/assets/{reports-onboarding-C51nw6GE.js → reports-onboarding-DMCkOYqe.js} +1 -1
- package/dist/client/assets/{reports-tab-D4zotKTH.js → reports-tab-LnruJoPA.js} +2 -2
- package/dist/client/assets/repositories-CBH2GIms.js +1 -0
- package/dist/client/assets/{repositories-ChqgU36Q.js → repositories-D-cEWI3N.js} +1 -1
- package/dist/client/assets/{repository-binding-DAOz6vJw.js → repository-binding-BBtZf2zz.js} +1 -1
- package/dist/client/assets/{repository-import-picker-BcrGb4sk.js → repository-import-picker-Dm0ES3Rv.js} +1 -1
- package/dist/client/assets/{repository-picker-BIZQUbzV.js → repository-picker-CPuj3bZ1.js} +1 -1
- package/dist/client/assets/{require-capability-CW24vDTN.js → require-capability-C24QIC4M.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DZbUxfmT.js → required-auth-layout-PhuA3Ewp.js} +1 -1
- package/dist/client/assets/{reset-password-CGOBWPvy.js → reset-password-C8SdUbOh.js} +1 -1
- package/dist/client/assets/{resizable-CZKHd0We.js → resizable-miZzhQuc.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-kIr1F8om.js → resolve-tab-icon-CpfXvomr.js} +1 -1
- package/dist/client/assets/{review-settings-9IMzIRKU.js → review-settings-BrKUWarQ.js} +1 -1
- package/dist/client/assets/{roles-DZEPLtk9.js → roles-BlQqDK5V.js} +1 -1
- package/dist/client/assets/{route-lBtyO3bR.js → route-C1AFWDaT.js} +1 -1
- package/dist/client/assets/route-DSfRBjPS.js +1 -0
- package/dist/client/assets/{route-BRcGegjD.js → route-fvDFg13s.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-DUtYxxN3.js → runnable-block-editor-Bn4b767r.js} +3 -3
- package/dist/client/assets/{sandbox-lifecycle-context-wjpGI-pF.js → sandbox-lifecycle-context-DR0GTBJX.js} +1 -1
- package/dist/client/assets/{schema-CeHPVV-x.js → schema-BRZOWw0d.js} +1 -1
- package/dist/client/assets/{schema-B-d5VC7M.js → schema-CylodOUQ.js} +1 -1
- package/dist/client/assets/{scroll-area-DpJwcaMZ.js → scroll-area-BH2Oy8PV.js} +1 -1
- package/dist/client/assets/{search-input-Dn_Mm6hP.js → search-input-RbNJNFgo.js} +1 -1
- package/dist/client/assets/{search-toggle-BlrCbEt-.js → search-toggle-BKYod6Wy.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-x-rG3-SW.js → secret-ciphertext-IJ4Mey7K.js} +1 -1
- package/dist/client/assets/{secret-picker-BjSmxw0L.js → secret-picker-C-cbBnBP.js} +1 -1
- package/dist/client/assets/{secrets-BOaO2wUC.js → secrets-BvD9KlhJ.js} +1 -1
- package/dist/client/assets/{sections-B7NcoZr9.js → sections-C2rk7uX1.js} +1 -1
- package/dist/client/assets/{sections-editor-B65DWyde.js → sections-editor-DTbMqnxy.js} +1 -1
- package/dist/client/assets/{select-35KAqptX.js → select-B-vRTlp8.js} +1 -1
- package/dist/client/assets/{select-model-CRhm1POv.js → select-model-jzXUtlUA.js} +1 -1
- package/dist/client/assets/{seo-editor-BD4rsTCg.js → seo-editor-BqtZxWFt.js} +1 -1
- package/dist/client/assets/{separator-CN44jTdI.js → separator-DQdTCaJ6.js} +1 -1
- package/dist/client/assets/settings-tab-CPth5xHx.js +1 -0
- package/dist/client/assets/{sheet--x4K5vq7.js → sheet-DIT9lGlU.js} +1 -1
- package/dist/client/assets/{shell-layout-MuOSrWff.js → shell-layout-NV-fbXIm.js} +1 -1
- package/dist/client/assets/{site-draft-actions-C158kLWC.js → site-draft-actions-DpuJ9efE.js} +1 -1
- package/dist/client/assets/site-draft-view-D6YYVH6j.js +2 -0
- package/dist/client/assets/site-editor-CpNSE9w9.js +1 -0
- package/dist/client/assets/{site-editor-toast-S3ZDWqj4.js → site-editor-toast-hxv14akZ.js} +1 -1
- package/dist/client/assets/{skills-DLHcL6Ra.js → skills-Dmur65NR.js} +1 -1
- package/dist/client/assets/{slider-CB0MGtcs.js → slider-DL5ZrKD2.js} +1 -1
- package/dist/client/assets/{sortable.esm-CnslkyN-.js → sortable.esm-CmQjLRc-.js} +1 -1
- package/dist/client/assets/{sso-HY_2IIv9.js → sso-DJaANv0k.js} +1 -1
- package/dist/client/assets/{suggestion-DZQHNrRW.js → suggestion-Dp-vLwaS.js} +1 -1
- package/dist/client/assets/{switch-CUuF3Lbb.js → switch-CWqn4x2S.js} +1 -1
- package/dist/client/assets/{symbol-BF05cGJ-.js → symbol-9K-WFQbg.js} +1 -1
- package/dist/client/assets/{synced-repos-BSOSKhlb.js → synced-repos-C6pBMypP.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CJIOp39A.js → tab-icon-glyph-CM3k-yhU.js} +1 -1
- package/dist/client/assets/{table-BlnsYBCM.js → table-Clkje7xI.js} +1 -1
- package/dist/client/assets/{tabs-6v8Cll9k.js → tabs-SpJ7v19a.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-C9Sk5bvn.js → task-assignee-avatar-D7x8Ztl2.js} +1 -1
- package/dist/client/assets/{task-board-Bt136szd.js → task-board-CEgpYip9.js} +1 -1
- package/dist/client/assets/{task-route-t6KGoxhC.js → task-route-0IGfE2Sp.js} +1 -1
- package/dist/client/assets/{task-status-DvsJuwH-.js → task-status-DxuW2r4d.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Dsx_nKwf.js → taskboard-analytics-D5efiDoG.js} +1 -1
- package/dist/client/assets/{tasks-B9wf25Tq.js → tasks-BOOTk53y.js} +1 -1
- package/dist/client/assets/tasks-DBKhuSFQ.js +1 -0
- package/dist/client/assets/{textarea-CzFPd8mY.js → textarea-DhtVYf8e.js} +1 -1
- package/dist/client/assets/{thread-analytics-BNsgRzDB.js → thread-analytics-WxV3T9V2.js} +1 -1
- package/dist/client/assets/{thread-intent-Dimk3aQq.js → thread-intent-BS7K-UuZ.js} +1 -1
- package/dist/client/assets/{thread-route-Dx9_u5Jd.js → thread-route-BZhEwUGV.js} +1 -1
- package/dist/client/assets/{thread-route-CBR-hVjV.js → thread-route-BkotEDA1.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BW-XRqLk.js → thread-sheet-body-F9Cd7VsI.js} +1 -1
- package/dist/client/assets/{time-range-picker-CmcQeC_-.js → time-range-picker-DgOYXLpU.js} +1 -1
- package/dist/client/assets/{toggle-group-o8h9w6Rw.js → toggle-group-errY3aOY.js} +1 -1
- package/dist/client/assets/{tool-namespace-BohpB6u5.js → tool-namespace-BVXAR9Sk.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-eoL5rlvV.js → toolbar-icon-button-Cq4ZT7sJ.js} +1 -1
- package/dist/client/assets/{tooltip-BKiQ2c4S.js → tooltip-WTx8RFDb.js} +1 -1
- package/dist/client/assets/{tooltipContext-BKUF9aS4.js → tooltipContext-Ccm0pmDN.js} +1 -1
- package/dist/client/assets/{track-BIe-Ry31.js → track-DGHY3NJe.js} +1 -1
- package/dist/client/assets/{types-CjXbKtgO.js → types-C2kyJgqF.js} +1 -1
- package/dist/client/assets/{url-slug-CKCta88_.js → url-slug-eBdSwuRg.js} +1 -1
- package/dist/client/assets/{usage-stats-CTkcwRGv.js → usage-stats-BCvxtMFR.js} +1 -1
- package/dist/client/assets/{use-ai-providers-De1swco5.js → use-ai-providers-BUYCLrsq.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-Yk2R4vGY.js → use-apply-named-rule-D8uSRmIc.js} +1 -1
- package/dist/client/assets/{use-automations-DOZ_ddWM.js → use-automations-BKnx1LOU.js} +1 -1
- package/dist/client/assets/{use-autosave-B8CxO0rS.js → use-autosave-C0kQXP3a.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-B0cKljGG.js → use-chat-layout-state-CoSgX-8p.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DXHhIXGi.js → use-clock-tick-BVcS6c_m.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CNjzI2Gb.js → use-connect-companion-Dfch6Pn5.js} +1 -1
- package/dist/client/assets/{use-connection-Bb5luwYC.js → use-connection-C2QTK4P4.js} +1 -1
- package/dist/client/assets/{use-content-sync-9gqPWQll.js → use-content-sync-cSja7hdH.js} +1 -1
- package/dist/client/assets/{use-copy-GYYhLXBY.js → use-copy-DedJIHzN.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CcifdRil.js → use-create-virtual-mcp-JDXemb5m.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CYgQL4Jo.js → use-date-fns-locale-ByEf5sEV.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-B9JjKQU0.js → use-debounced-autosave-C_RB3agc.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BOYaK5vY.js → use-debounced-value-ELHlrW87.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BOXZz3P1.js → use-deco-credits-D6gi2fbm.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DQQB-1qO.js → use-decopilot-events-CwR46UgN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DeeN5sak.js → use-delete-connection-BTgka6iQ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Bz_unjS_.js → use-deployment-admin-BCN-ylik.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DL15tTpN.js → use-fast-preview-draft-url-CVZxF7Um.js} +1 -1
- package/dist/client/assets/{use-file-configs-Bs34_QXe.js → use-file-configs-Br5njpmm.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CPLQGzQu.js → use-inbox-feed-Dz2zKYVV.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-TKtAAXad.js → use-infinite-scroll-C3u8iypP.js} +1 -1
- package/dist/client/assets/{use-join-requests-Zw7OQ09c.js → use-join-requests-D2Wm3dTe.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-w1hDvrxY.js → use-main-panel-tabs-CTK-I6l5.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DTPo2TCr.js → use-mcp-auth-status-BPhXIpD4.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Q83YdvIg.js → use-mcp-client-COM3gP2O.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BcqS4HpY.js → use-mcp-prompts-1pj8Mn9o.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CFBxGHgP.js → use-mcp-tools-DVMy4xzU.js} +1 -1
- package/dist/client/assets/{use-members-CMq0EOLQ.js → use-members-BXYZ5GWT.js} +1 -1
- package/dist/client/assets/{use-mobile-DHwXmnJW.js → use-mobile-Bq3CXRKG.js} +1 -1
- package/dist/client/assets/{use-move-blocks-BZQPOuio.js → use-move-blocks-BrZbG7eM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CRetfCk1.js → use-navigate-to-agent-F9oDR6Aw.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BoLb6LTQ.js → use-open-billing-url-D4P9ija_.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Im4HAiDN.js → use-org-auth-client-C3gy1liR.js} +1 -1
- package/dist/client/assets/{use-org-fs-BkhssW-q.js → use-org-fs-BRfBBlvJ.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CQwCJbKx.js → use-org-repo-syncs-IArfEyUi.js} +1 -1
- package/dist/client/assets/{use-org-sso-ChZhVF-c.js → use-org-sso-ChkTjfH5.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C3qIjIVy.js → use-organization-roles-Dx88n2m6.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BKC0vqj5.js → use-organization-settings-dAOl4U_-.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-D3V5oZgG.js → use-panel-navigate-CW6DUzf9.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BnccFS-g.js → use-project-native-view-presence-CTc7wMZF.js} +1 -1
- package/dist/client/assets/{use-project-scope-CXdLsOUx.js → use-project-scope-BFye4eeg.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B5QclJaN.js → use-recent-apps-BU79Go-x.js} +1 -1
- package/dist/client/assets/{use-releases-BC3G5Pl0.js → use-releases-CfZAXBwl.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-tcpLCmvm.js → use-reports-diagnostic-CJiI0aEe.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-DvplhdO9.js → use-sandbox-events-Bryc2tH_.js} +1 -1
- package/dist/client/assets/{use-secrets-Bc11D92Z.js → use-secrets-BBwZJiLY.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Dnt4agkC.js → use-section-preview-base-B5gtsawP.js} +1 -1
- package/dist/client/assets/{use-session-runtime-C4oqymjC.js → use-session-runtime-C6i7UtWU.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BwUTTLp4.js → use-sidebar-collapsed-CKSL9ORL.js} +1 -1
- package/dist/client/assets/{use-tags-BB1h7o3t.js → use-tags-C7NcCL7l.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DGpoyTMw.js → use-task-board-analytics-CmTEpb8g.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CavGFGcP.js → use-task-board-events-bChrXXDv.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DV_64vVH.js → use-task-board-item-prs-B5n2Imtn.js} +1 -1
- package/dist/client/assets/{use-task-metadata-HTLDRogK.js → use-task-metadata-CyLevNIC.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-BpkGclpK.js → use-thread-analytics-BdSD31wi.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DTZGPUxN.js → use-thread-outputs-COl9UfXy.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-EcJS-_aQ.js +1 -0
- package/dist/client/assets/{useQueries-jpAcc0Og.js → useQueries-Dgo1k5er.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-XLLgwpcB.js +1 -0
- package/dist/client/assets/{users-rDy84J0H.js → users-BOMrf4Fo.js} +1 -1
- package/dist/client/assets/{utils-Azo2Yo1D.js → utils-fsgeKe9W.js} +1 -1
- package/dist/client/assets/{variant-calendar-EbCPgcKt.js → variant-calendar-CGX7TiEA.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-aUUxuYxP.js → variant-matcher-override-D3H0IPwr.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DSXubdao.js → virtual-mcp-th0bGjq5.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BydfW6Wr.js → watch-sse-pool-9c6_Ze8B.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-ga8WG0DD.js +0 -1
- package/dist/client/assets/agent-app-D3wD7b8f.js +0 -1
- package/dist/client/assets/agent-calendar-B3oKpSw2.js +0 -1
- package/dist/client/assets/agent-deck-CXdYMYf4.js +0 -1
- package/dist/client/assets/agent-experiments-HQCEx4Fq.js +0 -1
- package/dist/client/assets/agent-library-CycM9_xW.js +0 -1
- package/dist/client/assets/agent-library-file-CQfHiAWz.js +0 -1
- package/dist/client/assets/agent-monitor-DZTUJG_q.js +0 -1
- package/dist/client/assets/agent-settings-BzozrOuP.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CfhAFGbw.js +0 -2
- package/dist/client/assets/agent-site-editor-content-HSi2zAV9.js +0 -1
- package/dist/client/assets/agent-site-editor-preview--Eh8H0cH.js +0 -1
- package/dist/client/assets/agent-view-i5fuA9y0.js +0 -1
- package/dist/client/assets/api-keys-9XoxlxPv.js +0 -1
- package/dist/client/assets/cms-settings-editor-DzowXA1R.js +0 -1
- package/dist/client/assets/library-KPhgahQ-.js +0 -1
- package/dist/client/assets/project-app-view-bzcy9g1q.js +0 -1
- package/dist/client/assets/project-reports-CAf7P6Es.js +0 -1
- package/dist/client/assets/project-tasks-XqUcBopf.js +0 -1
- package/dist/client/assets/record-editor-hs79wE2U.js +0 -1
- package/dist/client/assets/reports-s1lwdSit.js +0 -1
- package/dist/client/assets/repositories-CGUqALW5.js +0 -1
- package/dist/client/assets/route-CYe3oAYd.js +0 -1
- package/dist/client/assets/settings-tab-BrPjDgOB.js +0 -1
- package/dist/client/assets/site-draft-view-cqx7I6xp.js +0 -2
- package/dist/client/assets/site-editor-Cepl1MM3.js +0 -1
- package/dist/client/assets/tasks-DUF77GAJ.js +0 -1
- package/dist/client/assets/useInfiniteQuery-XMmYWsXs.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BK6RRGGC.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,au as te,aw as ne,b as Q,a2 as se,aa as ae,k as ie,j as s,l as oe,n as X,r as M,d as le,aL as K,H as W,P as z,aT as re,B as ce}from"./index-C_vsZdEs.js";import{u as de}from"./use-mobile-DHwXmnJW.js";import{h as ue,c as he,u as me,m as fe}from"./use-sidebar-collapsed-BwUTTLp4.js";import{a as Z,R as pe,b as ge}from"./resizable-CZKHd0We.js";import{c as xe,r as be,m as ye}from"./use-chat-layout-state-B0cKljGG.js";import{O as je,m as q}from"./agent-icon-B7E6q_wB.js";import{c as G,T as U,a as Y}from"./tooltip-BKiQ2c4S.js";import{T as A}from"./toolbar-icon-button-eoL5rlvV.js";import{a as Se}from"./use-project-scope-CXdLsOUx.js";import{c as ve}from"./repository-binding-DAOz6vJw.js";function J(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Ce(l,e){const a=w.c(8);let o;a[0]!==e?(o=c=>J(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=te(l,o);let n;a[2]!==e||a[3]!==t?(n=J(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Te=33;function Le(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ne.sidePanelWidth(),l[0]=e):e=l[0],Ce(e,Te)}function Ne(l){const e=w.c(54),{actions:a,navigation:o}=l,t=Q(),{org:i}=se(),n=Se(),d=ve(n),c=ue(),{toggleSidebar:r}=he(),h=me(),u=ee(),m=ae();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:we},e[0]=x):x=e[0];const f=ie(x),b=f?.mainView==="overview";let L;e[1]!==d?.title||e[2]!==t?(L=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=L):L=e[3];const p=L;let C;e[4]!==b||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==p||e[9]!==n||e[10]!==t?(C=b?n?p:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=b,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=p,e[9]=n,e[10]=t,e[11]=C):C=e[11];const v=C,N=n??"";let g;e[12]!==i.slug||e[13]!==N?(g={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:N}},e[12]=i.slug,e[13]=N,e[14]=g):g=e[14];const S=g;let y;if(e[15]!==c||e[16]!==b||e[17]!==i.slug||e[18]!==S||e[19]!==p||e[20]!==n||e[21]!==t||e[22]!==v){if(y=[],c){let T;e[24]!==t?(T=t("sidebar.navDestinations.settings"),e[24]=t,e[25]=T):T=e[25];let E;e[26]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[26]=i.slug,e[27]=E):E=e[27];let B;e[28]!==T||e[29]!==E?(B={key:"settings",label:T,link:E},e[28]=T,e[29]=E,e[30]=B):B=e[30],y.push(B)}else if(n&&!b){let T;e[31]!==S||e[32]!==p?(T={key:"project",label:p,link:S},e[31]=S,e[32]=p,e[33]=T):T=e[33],y.push(T)}let R;e[34]!==v?(R={key:"page",label:v},e[34]=v,e[35]=R):R=e[35],y.push(R),e[15]=c,e[16]=b,e[17]=i.slug,e[18]=S,e[19]=p,e[20]=n,e[21]=t,e[22]=v,e[23]=y}else y=e[23];const j=m&&h;let P;e[36]!==u||e[37]!==j||e[38]!==t?(P=j&&u&&!u.threadless&&s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(Y,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[36]=u,e[37]=j,e[38]=t,e[39]=P):P=e[39];const D=P;let O;e[40]!==m||e[41]!==j||e[42]!==t||e[43]!==r?(O=m?s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{className:oe(!j&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(q,{size:16})})}),s.jsx(Y,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(A,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(q,{size:16})}),e[40]=m,e[41]=j,e[42]=t,e[43]=r,e[44]=O):O=e[44];let _;e[45]!==D||e[46]!==O?(_=s.jsxs(s.Fragment,{children:[O,D]}),e[45]=D,e[46]=O,e[47]=_):_=e[47];let I;return e[48]!==a||e[49]!==y||e[50]!==o||e[51]!==i.name||e[52]!==_?(I=s.jsx(X.Header,{leading:_,breadcrumbs:y,scope:i.name,actions:a,navigation:o}),e[48]=a,e[49]=y,e[50]=o,e[51]=i.name,e[52]=_,e[53]=I):I=e[53],I}function we(l){return l.matches.findLast(Pe)?.staticData}function Pe(l){return l.staticData.pageTitle}const k="chat-layout-thread",$="chat-layout-content",H=M.createContext(null);function ze(){return V()}function ee(){return M.use(H)}function V(){const l=M.use(H);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Oe(l){const e=w.c(23),{children:a,...o}=l,t=de(),i=le(),n=M.useRef(null),[d,c]=Le(),{threadOpen:r,contentOpen:h}=o,u=xe(o),m=r&&h?d:u.side,x=100-m,f=g=>{const S=g.getLayout(),y=S[k],j=S[$];typeof y!="number"||typeof j!="number"||Math.abs(y-m)<.001&&Math.abs(j-x)<.001||g.setLayout({[k]:m,[$]:x})},b=be({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let L;e[0]!==t||e[1]!==o||e[2]!==b?(L={...o,isMobile:t,mobileSurface:b},e[0]=t,e[1]=o,e[2]=b,e[3]=L):L=e[3];const p=L;let C;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p?(C=!o.threadless&&s.jsx(fe,{open:t?p.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:g=>({...g,...ye(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=C):C=e[9];let v;e[10]!==a||e[11]!==h||e[12]!==x||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(v=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(pe,{ref:g=>{if(n.current=g,!g)return;let S=!0;return queueMicrotask(()=>{S&&f(g)}),()=>{S=!1,n.current===g&&(n.current=null)}},defaultLayout:{[k]:m,[$]:x},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(g,S)=>{const{isUserInteraction:y}=S;if(!y){const P=n.current;P&&f(P);return}const j=g[k];r&&h&&typeof j=="number"&&j>0&&j<100&&c(j)},children:a}),e[10]=a,e[11]=h,e[12]=x,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=v):v=e[18];let N;return e[19]!==C||e[20]!==v||e[21]!==p?(N=s.jsxs(H,{value:p,children:[C,v]}),e[19]=C,e[20]=v,e[21]=p,e[22]=N):N=e[22],N}function _e(l){const e=w.c(16),{children:a,topbar:o}=l,t=V();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(Z,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ge,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Ee({children:l,routeId:e}){return l}function F(l){const e=w.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=V();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(K,{children:s.jsx(Ee,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(X.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(z,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const f=x;let b;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(b=n.isMobile?f:s.jsx(Z,{id:$,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(K,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=b):b=e[22],b}function ke(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(F,{children:s.jsx(re,{})}),l[0]=e):e=l[0],e}function Me(l){const e=w.c(18),{error:a,reset:o}=l,t=Q();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(ce,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(F,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Ie=Object.assign(Oe,{Thread:_e,Content:F}),qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ie,ChatLayoutError:Me,ChatLayoutPending:ke,useChatLayout:ze,useOptionalChatLayout:ee},Symbol.toStringTag,{value:"Module"}));export{Ie as C,Ne as R,qe as i,ze as u};
|
|
1
|
+
import{c as w,au as te,aw as ne,b as Q,a2 as se,aa as ae,k as ie,j as s,l as oe,n as X,r as M,d as le,aL as K,H as W,P as z,aT as re,B as ce}from"./index-CMKEBGKX.js";import{u as de}from"./use-mobile-Bq3CXRKG.js";import{h as ue,c as he,u as me,m as fe}from"./use-sidebar-collapsed-CKSL9ORL.js";import{a as Z,R as pe,b as ge}from"./resizable-miZzhQuc.js";import{c as xe,r as be,m as ye}from"./use-chat-layout-state-CoSgX-8p.js";import{O as je,m as q}from"./agent-icon-DtT3h4UX.js";import{c as G,T as U,a as Y}from"./tooltip-WTx8RFDb.js";import{T as A}from"./toolbar-icon-button-Cq4ZT7sJ.js";import{a as Se}from"./use-project-scope-BFye4eeg.js";import{c as ve}from"./repository-binding-BBtZf2zz.js";function J(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Ce(l,e){const a=w.c(8);let o;a[0]!==e?(o=c=>J(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=te(l,o);let n;a[2]!==e||a[3]!==t?(n=J(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Te=33;function Le(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ne.sidePanelWidth(),l[0]=e):e=l[0],Ce(e,Te)}function Ne(l){const e=w.c(54),{actions:a,navigation:o}=l,t=Q(),{org:i}=se(),n=Se(),d=ve(n),c=ue(),{toggleSidebar:r}=he(),h=me(),u=ee(),m=ae();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:we},e[0]=x):x=e[0];const f=ie(x),b=f?.mainView==="overview";let L;e[1]!==d?.title||e[2]!==t?(L=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=L):L=e[3];const p=L;let C;e[4]!==b||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==p||e[9]!==n||e[10]!==t?(C=b?n?p:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=b,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=p,e[9]=n,e[10]=t,e[11]=C):C=e[11];const v=C,N=n??"";let g;e[12]!==i.slug||e[13]!==N?(g={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:N}},e[12]=i.slug,e[13]=N,e[14]=g):g=e[14];const S=g;let y;if(e[15]!==c||e[16]!==b||e[17]!==i.slug||e[18]!==S||e[19]!==p||e[20]!==n||e[21]!==t||e[22]!==v){if(y=[],c){let T;e[24]!==t?(T=t("sidebar.navDestinations.settings"),e[24]=t,e[25]=T):T=e[25];let E;e[26]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[26]=i.slug,e[27]=E):E=e[27];let B;e[28]!==T||e[29]!==E?(B={key:"settings",label:T,link:E},e[28]=T,e[29]=E,e[30]=B):B=e[30],y.push(B)}else if(n&&!b){let T;e[31]!==S||e[32]!==p?(T={key:"project",label:p,link:S},e[31]=S,e[32]=p,e[33]=T):T=e[33],y.push(T)}let R;e[34]!==v?(R={key:"page",label:v},e[34]=v,e[35]=R):R=e[35],y.push(R),e[15]=c,e[16]=b,e[17]=i.slug,e[18]=S,e[19]=p,e[20]=n,e[21]=t,e[22]=v,e[23]=y}else y=e[23];const j=m&&h;let P;e[36]!==u||e[37]!==j||e[38]!==t?(P=j&&u&&!u.threadless&&s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(Y,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[36]=u,e[37]=j,e[38]=t,e[39]=P):P=e[39];const D=P;let O;e[40]!==m||e[41]!==j||e[42]!==t||e[43]!==r?(O=m?s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{className:oe(!j&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(q,{size:16})})}),s.jsx(Y,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(A,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(q,{size:16})}),e[40]=m,e[41]=j,e[42]=t,e[43]=r,e[44]=O):O=e[44];let _;e[45]!==D||e[46]!==O?(_=s.jsxs(s.Fragment,{children:[O,D]}),e[45]=D,e[46]=O,e[47]=_):_=e[47];let I;return e[48]!==a||e[49]!==y||e[50]!==o||e[51]!==i.name||e[52]!==_?(I=s.jsx(X.Header,{leading:_,breadcrumbs:y,scope:i.name,actions:a,navigation:o}),e[48]=a,e[49]=y,e[50]=o,e[51]=i.name,e[52]=_,e[53]=I):I=e[53],I}function we(l){return l.matches.findLast(Pe)?.staticData}function Pe(l){return l.staticData.pageTitle}const k="chat-layout-thread",$="chat-layout-content",H=M.createContext(null);function ze(){return V()}function ee(){return M.use(H)}function V(){const l=M.use(H);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Oe(l){const e=w.c(23),{children:a,...o}=l,t=de(),i=le(),n=M.useRef(null),[d,c]=Le(),{threadOpen:r,contentOpen:h}=o,u=xe(o),m=r&&h?d:u.side,x=100-m,f=g=>{const S=g.getLayout(),y=S[k],j=S[$];typeof y!="number"||typeof j!="number"||Math.abs(y-m)<.001&&Math.abs(j-x)<.001||g.setLayout({[k]:m,[$]:x})},b=be({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let L;e[0]!==t||e[1]!==o||e[2]!==b?(L={...o,isMobile:t,mobileSurface:b},e[0]=t,e[1]=o,e[2]=b,e[3]=L):L=e[3];const p=L;let C;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p?(C=!o.threadless&&s.jsx(fe,{open:t?p.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:g=>({...g,...ye(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=C):C=e[9];let v;e[10]!==a||e[11]!==h||e[12]!==x||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(v=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(pe,{ref:g=>{if(n.current=g,!g)return;let S=!0;return queueMicrotask(()=>{S&&f(g)}),()=>{S=!1,n.current===g&&(n.current=null)}},defaultLayout:{[k]:m,[$]:x},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(g,S)=>{const{isUserInteraction:y}=S;if(!y){const P=n.current;P&&f(P);return}const j=g[k];r&&h&&typeof j=="number"&&j>0&&j<100&&c(j)},children:a}),e[10]=a,e[11]=h,e[12]=x,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=v):v=e[18];let N;return e[19]!==C||e[20]!==v||e[21]!==p?(N=s.jsxs(H,{value:p,children:[C,v]}),e[19]=C,e[20]=v,e[21]=p,e[22]=N):N=e[22],N}function _e(l){const e=w.c(16),{children:a,topbar:o}=l,t=V();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(Z,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ge,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Ee({children:l,routeId:e}){return l}function F(l){const e=w.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=V();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(K,{children:s.jsx(Ee,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(X.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(z,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const f=x;let b;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(b=n.isMobile?f:s.jsx(Z,{id:$,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(K,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=b):b=e[22],b}function ke(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(F,{children:s.jsx(re,{})}),l[0]=e):e=l[0],e}function Me(l){const e=w.c(18),{error:a,reset:o}=l,t=Q();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(ce,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(F,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Ie=Object.assign(Oe,{Thread:_e,Content:F}),qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ie,ChatLayoutError:Me,ChatLayoutPending:ke,useChatLayout:ze,useOptionalChatLayout:ee},Symbol.toStringTag,{value:"Module"}));export{Ie as C,Ne as R,qe as i,ze as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,by as ce,j as p,bE as _,bD as B,bB as C,bI as le,bx as de,bU as ue,bQ as fe,bJ as me}from"./index-
|
|
1
|
+
import{r as l,by as ce,j as p,bE as _,bD as B,bB as C,bI as le,bx as de,bU as ue,bQ as fe,bJ as me}from"./index-CMKEBGKX.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,T]=W(M),J=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:b=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),w=r==="horizontal"?ge:ve,[S=[],I]=ce({prop:h,defaultProp:b,onChange:x=>{[...m.current][f.current]?.focus(),i(x)}}),V=l.useRef(S);function j(x){const y=ye(S,x);K(x,y)}function se(x){K(x,f.current)}function ae(){const x=V.current[f.current];S[f.current]!==x&&d(S)}function K(x,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((x-n)/c)*c+n,U),A=Y(z,[n,s]);I((E=[])=>{const P=xe(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(w,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(V.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:j,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&K(n,0,{commit:!0}),onEndKeyDown:()=>!a&&K(s,S.length-1,{commit:!0}),onStepKeyDown:({event:x,direction:y})=>{if(!a){const z=$.includes(x.key)||x.shiftKey&&X.includes(x.key)?10:1,A=f.current,E=S[A],P=c*z*y;K(E+P,A,{commit:!0})}}})})})})});J.displayName=M;var[Q,q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:b,...h}=e,[i,d]=l.useState(null),v=C(t,w=>d(w)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(w){const S=R.current||i.getBoundingClientRect(),I=[0,S.width],j=O(I,f?[o,n]:[n,o]);return R.current=S,j(w-S.left)}return p.jsx(Q,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=D(w.clientX);r?.(S)},onSlideMove:w=>{const S=D(w.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:w=>{const I=G[f?"from-left":"from-right"].includes(w.key);b?.({event:w,direction:I?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...b}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],w=O(f,v?[n,o]:[o,n]);return d.current=m,w(g-m.top)}return p.jsx(Q,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...b,ref:i,style:{...b.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...b}=e,h=T(M,o);return p.jsx(B.span,{...b,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=T(ee,o);return p.jsx(B.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=T(N,o),c=q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,b=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...b):0,i=100-Math.max(...b);return p.jsx(B.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(be,{...e,ref:c,index:r})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=T(L,o),a=q(L,o),[u,b]=l.useState(null),h=C(t,D=>b(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(B.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var we="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(B.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=we;function xe(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ke=J,Ae=te,Be=ne,Te=oe;export{Be as R,Ae as T,Ke as a,Te as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,b as j,r as E,j as b,l as q,af as vt,t as ue,aW as Xe,a2 as At,m as Mt,K as St,b3 as Ct,h as Je}from"./index-C_vsZdEs.js";import{a as Rt,n as Ye,E as ie,o as Et,x as $t,y as P,z as _t,A as Lt,B as et,C as N,G as Ee,H as It,I as zt,J as $e,K as Pt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as xe,U as Ht,V as jt,W as Nt,X as Ot,Y as Bt,s as Dt,Z as Ft,u as qt,b as Wt}from"./usage-stats-CTkcwRGv.js";import{T as _,n as Ut,i as Gt,E as Zt}from"./editor-classes-Bzr4sAFl.js";import{a as Vt,e as nt,s as Kt,S as Qt}from"./suggestion-DZQHNrRW.js";import{B as Xt,c as Jt,t as Yt,C as rt,f as en,g as _e,s as tn,m as Le,a as Ie,b as nn,d as ze,e as rn,h as sn,i as an,j as on,k as ln,l as cn,n as un}from"./index-uj-2aD6g.js";import{ai as hn,aj as dn,al as pn,a0 as fn,be as gn,aW as mn}from"./agent-icon-B7E6q_wB.js";import{i as kn}from"./SwitchHorizontal01-ByDhQXb-.js";import{i as xn}from"./Link01-DbW4kVwR.js";import{s as bn}from"./Trash01-BJcybrX2.js";import{i as wn,b as yn}from"./use-org-fs-BkhssW-q.js";import{E as Pe,i as st,b as Tn,c as vn,d as it,A as An,e as Mn,m as Sn,f as Cn}from"./markdown-BDTHe610.js";import{A as Rn}from"./avatar-BD2PDf8q.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-C2RTsWLU.js";import{u as zn}from"./use-org-auth-client-Im4HAiDN.js";import{I as Pn}from"./icon-button-B2nkkF4s.js";function Hn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=d):d=e[4];const f=d;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=Ut(a);if(M===""){g();return}if(!Gt(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=b.jsx(xn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=b.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let x;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(x=s&&b.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[b.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),b.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:b.jsx(vt,{size:14})}),h&&b.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:b.jsx(bn,{size:14})})]}),e[18]=h,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=x):x=e[26];let v;return e[27]!==T||e[28]!==x?(v=b.jsxs("div",{className:"relative",children:[T,x]}),e[27]=T,e[28]=x,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=b.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},at=[1,2,3],jn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function Nn(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:On},e[0]=n,e[1]=a):a=e[1];const l=Rt(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&b.jsxs(Xt,{editor:n,shouldShow:jn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[b.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:b.jsx(hn,{size:14})}),b.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:b.jsx(dn,{size:14})}),b.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:b.jsx(pn,{size:14})}),b.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:b.jsx(fn,{size:14})}),b.jsx(le,{}),at.map((g,m)=>b.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:b.jsx(He,{children:`H${g}`})},g)),b.jsx(le,{}),b.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:b.jsx(kn,{size:14})}),b.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:b.jsx(He,{children:"1."})}),b.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:b.jsx(gn,{size:14})}),b.jsx(le,{}),b.jsx(Hn,{editor:n})]}),e[12]=n,e[13]=d,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=b.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function On(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:at.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Bn=10,Dn=25,Fn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function qn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??Fn[t.type]??""}function Wn(){const t=$.c(4),e=j(),{upload:n}=wn(Pe),r=yn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Bn:Dn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?Tn:vn,c=`${crypto.randomUUID()}${qn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Ye("uploadSlots"),Un=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Et({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function he(t,e,n){return t.setMeta(ee,[e,n])}function Gn(t,e){return ee.getState(t)?.get(e)}function Zn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,x,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,x)=>{T===l&&(m=x+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=$t.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Vn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Kn(t=!0){const e=j(),{uploadFile:n}=Wn(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Zn(h,Gn(h.state,p)??h.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Vn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,g,m))}}}function be(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=be();function ot(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Qn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Xn=/^(?:[ \t]*(?:\n|$))+/,Jn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Yn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,er=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,lt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ct=A(lt).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),tr=A(lt).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sr=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ir=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ut=A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),ar=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ut).getRegex(),Ae={blockquote:ar,code:Jn,def:rr,fences:Yn,heading:er,hr:K,html:ir,lheading:ct,list:sr,newline:Xn,paragraph:ut,table:O,text:nr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),or={...Ae,lheading:tr,table:je,paragraph:A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex()},lr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
1
|
+
import{c as $,b as j,r as E,j as b,l as q,af as vt,t as ue,aW as Xe,a2 as At,m as Mt,K as St,b3 as Ct,h as Je}from"./index-CMKEBGKX.js";import{a as Rt,n as Ye,E as ie,o as Et,x as $t,y as P,z as _t,A as Lt,B as et,C as N,G as Ee,H as It,I as zt,J as $e,K as Pt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as xe,U as Ht,V as jt,W as Nt,X as Ot,Y as Bt,s as Dt,Z as Ft,u as qt,b as Wt}from"./usage-stats-BCvxtMFR.js";import{T as _,n as Ut,i as Gt,E as Zt}from"./editor-classes-DA3QHiC-.js";import{a as Vt,e as nt,s as Kt,S as Qt}from"./suggestion-Dp-vLwaS.js";import{B as Xt,c as Jt,t as Yt,C as rt,f as en,g as _e,s as tn,m as Le,a as Ie,b as nn,d as ze,e as rn,h as sn,i as an,j as on,k as ln,l as cn,n as un}from"./index-CMr2QK3C.js";import{ai as hn,aj as dn,al as pn,a0 as fn,be as gn,aW as mn}from"./agent-icon-DtT3h4UX.js";import{i as kn}from"./SwitchHorizontal01-QjLd4gai.js";import{i as xn}from"./Link01-Dy_bSHLe.js";import{s as bn}from"./Trash01-CTrNlbT8.js";import{i as wn,b as yn}from"./use-org-fs-BRfBBlvJ.js";import{E as Pe,i as st,b as Tn,c as vn,d as it,A as An,e as Mn,m as Sn,f as Cn}from"./markdown-yQLRhm2z.js";import{A as Rn}from"./avatar-49aPXdv7.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-DcKOVszs.js";import{u as zn}from"./use-org-auth-client-C3gy1liR.js";import{I as Pn}from"./icon-button-B1pb2_kW.js";function Hn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=d):d=e[4];const f=d;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=Ut(a);if(M===""){g();return}if(!Gt(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=b.jsx(xn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=b.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let x;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(x=s&&b.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[b.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),b.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:b.jsx(vt,{size:14})}),h&&b.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:b.jsx(bn,{size:14})})]}),e[18]=h,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=x):x=e[26];let v;return e[27]!==T||e[28]!==x?(v=b.jsxs("div",{className:"relative",children:[T,x]}),e[27]=T,e[28]=x,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=b.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},at=[1,2,3],jn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function Nn(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:On},e[0]=n,e[1]=a):a=e[1];const l=Rt(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&b.jsxs(Xt,{editor:n,shouldShow:jn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[b.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:b.jsx(hn,{size:14})}),b.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:b.jsx(dn,{size:14})}),b.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:b.jsx(pn,{size:14})}),b.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:b.jsx(fn,{size:14})}),b.jsx(le,{}),at.map((g,m)=>b.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:b.jsx(He,{children:`H${g}`})},g)),b.jsx(le,{}),b.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:b.jsx(kn,{size:14})}),b.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:b.jsx(He,{children:"1."})}),b.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:b.jsx(gn,{size:14})}),b.jsx(le,{}),b.jsx(Hn,{editor:n})]}),e[12]=n,e[13]=d,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=b.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function On(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:at.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Bn=10,Dn=25,Fn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function qn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??Fn[t.type]??""}function Wn(){const t=$.c(4),e=j(),{upload:n}=wn(Pe),r=yn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Bn:Dn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?Tn:vn,c=`${crypto.randomUUID()}${qn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Ye("uploadSlots"),Un=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Et({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function he(t,e,n){return t.setMeta(ee,[e,n])}function Gn(t,e){return ee.getState(t)?.get(e)}function Zn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,x,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,x)=>{T===l&&(m=x+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=$t.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Vn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Kn(t=!0){const e=j(),{uploadFile:n}=Wn(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Zn(h,Gn(h.state,p)??h.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Vn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,g,m))}}}function be(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=be();function ot(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Qn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Xn=/^(?:[ \t]*(?:\n|$))+/,Jn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Yn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,er=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,lt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ct=A(lt).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),tr=A(lt).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sr=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ir=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ut=A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),ar=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ut).getRegex(),Ae={blockquote:ar,code:Jn,def:rr,fences:Yn,heading:er,hr:K,html:ir,lheading:ct,list:sr,newline:Xn,paragraph:ut,table:O,text:nr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex(),or={...Ae,lheading:tr,table:je,paragraph:A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ae).getRegex()},lr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",ct).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ur=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ht=/^( {2,}|\\)\n(?!\s*$)/,hr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,W=/[\p{P}\p{S}]/u,oe=/[\s\p{P}\p{S}]/u,Me=/[^\s\p{P}\p{S}]/u,dr=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oe).getRegex(),dt=/(?!~)[\p{P}\p{S}]/u,pr=/(?!~)[\s\p{P}\p{S}]/u,fr=/(?:[^\s\p{P}\p{S}]|~)/u,gr=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Qn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),pt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mr=A(pt,"u").replace(/punct/g,W).getRegex(),kr=A(pt,"u").replace(/punct/g,dt).getRegex(),ft="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xr=A(ft,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),br=A(ft,"gu").replace(/notPunctSpace/g,fr).replace(/punctSpace/g,pr).replace(/punct/g,dt).getRegex(),wr=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),yr=A(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,W).getRegex(),Tr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",vr=A(Tr,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Ar=A(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),Mr=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Sr=A(ve).replace("(?:-->|$)","-->").getRegex(),Cr=A("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Sr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),te=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Rr=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gt=A(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",Te).getRegex(),mt=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Te).getRegex(),Er=A("reflink|nolink(?!\\()","g").replace("reflink",gt).replace("nolink",mt).getRegex(),Ne=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Se={_backpedal:O,anyPunctuation:Ar,autolink:Mr,blockSkip:gr,br:ht,code:ur,del:O,delLDelim:O,delRDelim:O,emStrongLDelim:mr,emStrongRDelimAst:xr,emStrongRDelimUnd:wr,escape:cr,link:Rr,nolink:mt,punctuation:dr,reflink:gt,reflinkSearch:Er,tag:Cr,text:hr,url:O},$r={...Se,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},de={...Se,emStrongRDelimAst:br,emStrongLDelim:kr,delLDelim:yr,delRDelim:vr,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ne).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:A(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ne).getRegex()},_r={...de,br:A(ht).replace("{2,}","*").getRegex(),text:A(de.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:Ae,gfm:or,pedantic:lr},U={normal:Se,gfm:de,breaks:_r,pedantic:$r},Lr={"&":"&","<":"<",">":">",'"':""","'":"'"},Oe=t=>Lr[t];function z(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,Oe)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,Oe);return t}function Be(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function De(t,e){let n=t.replace(R.findPipe,(i,a,l)=>{let o=!1,u=a;for(;--u>=0&&l[u]==="\\";)o=!o;return o?"|":" |"}),r=n.split(R.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(R.slashPipe,"|");return r}function G(t,e,n){let r=t.length;if(r===0)return"";let s=0;for(;s<r&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function Ir(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function zr(t,e=0){let n=e,r="";for(let s of t)if(s===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=s,n++;return r}function Fe(t,e,n,r,s){let i=e.href,a=e.title||null,l=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,o}function Pr(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let s=r[1];return e.split(`
|
|
3
3
|
`).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[l]=a;return l.length>=s.length?i.slice(s.length):i}).join(`
|
|
4
4
|
`)}var ne=class{options;rules;lexer;constructor(t){this.options=t||F}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:G(n,`
|