decocms 4.503.2 → 4.503.3
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-CBLSJqBl.js → ActiveShapeUtils-BZHO-Tea.js} +1 -1
- package/dist/client/assets/{AlertCircle-BFUZ4yx0.js → AlertCircle-C0bs-qa3.js} +1 -1
- package/dist/client/assets/{AreaChart-DKrmhkRJ.js → AreaChart-D6DLk2lt.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CK2OAC0l.js → ArrowLeft-CyqGFvgi.js} +1 -1
- package/dist/client/assets/{ArrowUp-U6_gobY2.js → ArrowUp-BJPF3L4O.js} +1 -1
- package/dist/client/assets/{BarChart-DBqZyJQX.js → BarChart-RIdoc9z7.js} +1 -1
- package/dist/client/assets/{Building02-Ddm6hNyu.js → Building02-CwMh8UJJ.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DYWjGYq1.js → CategoricalChart-DbWIEPi9.js} +1 -1
- package/dist/client/assets/{CheckCircle-BWW06ZXQ.js → CheckCircle-YHLE1_hJ.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DKcwgXpF.js → ChevronSelectorVertical-Bggh3LX5.js} +1 -1
- package/dist/client/assets/{ChevronUp-CTrNq9Nk.js → ChevronUp-DqRKMsmV.js} +1 -1
- package/dist/client/assets/{Copy01-TJP2zB12.js → Copy01-Cq9WjfW7.js} +1 -1
- package/dist/client/assets/{CreditCard01-Bm6_xB5H.js → CreditCard01-CUDx5NqO.js} +1 -1
- package/dist/client/assets/{DotsVertical-DKl8j3BE.js → DotsVertical-B2EQHomZ.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CR5xIaDQ.js → ErrorBarContext-CI-Gw7tk.js} +1 -1
- package/dist/client/assets/{Globe04-ClrCqE7c.js → Globe04-D9a2dMdx.js} +1 -1
- package/dist/client/assets/{Image01-Cf_YxPro.js → Image01-DkJLJorV.js} +1 -1
- package/dist/client/assets/{Key01-55Z6tHcr.js → Key01-xAYnO8or.js} +1 -1
- package/dist/client/assets/{Link01-DNXOSsg9.js → Link01-DQBTD3DQ.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Vuoqu_ZW.js → LinkBroken01-BmmJuH8C.js} +1 -1
- package/dist/client/assets/{Monitor01-C-mB2rao.js → Monitor01-BCkwJw6w.js} +1 -1
- package/dist/client/assets/{Play-CUFyJJIt.js → Play-oLIfAzRt.js} +1 -1
- package/dist/client/assets/{Plus-D-GSl2MA.js → Plus-BApnGlKK.js} +1 -1
- package/dist/client/assets/{SearchMd-CkV8MM4H.js → SearchMd-NpuwzAcc.js} +1 -1
- package/dist/client/assets/{Sector-CNZsIxmG.js → Sector-WmR1cpX-.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-dI1cRqeE.js → ShoppingBag01-DK8LMXMw.js} +1 -1
- package/dist/client/assets/{Sun-BPl8u-yx.js → Sun-C9cU8hxr.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-KDjTaTLX.js → SwitchHorizontal01-AcstXYg5.js} +1 -1
- package/dist/client/assets/{Tool01-CvAlZ6_R.js → Tool01-Dupx1l4q.js} +1 -1
- package/dist/client/assets/{Trash01-BzUZQR5Y.js → Trash01-Ck_X1vUa.js} +1 -1
- package/dist/client/assets/{Upload01-CdgDB-zC.js → Upload01-qEgWy132.js} +1 -1
- package/dist/client/assets/{User01-CinpYulR.js → User01-CgwPUhzy.js} +1 -1
- package/dist/client/assets/{UserSquare-0R6kuy9W.js → UserSquare-BW7WmTct.js} +1 -1
- package/dist/client/assets/{Users01-DFSTtPtZ.js → Users01-B_hzpQi7.js} +1 -1
- package/dist/client/assets/{XAxis-CMCcO3jI.js → XAxis-D0tEledV.js} +1 -1
- package/dist/client/assets/{XClose-CXxsMd9c.js → XClose-C6revfQl.js} +1 -1
- package/dist/client/assets/{ZoomOut-C1rwTYBB.js → ZoomOut-CMtk8pmQ.js} +1 -1
- package/dist/client/assets/{access-gate-BSx5LbNZ.js → access-gate-BUHxGD7s.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CNB1XZS8.js → add-connection-dialog-DYGuB_HZ.js} +1 -1
- package/dist/client/assets/{agent-analytics-BKsJAgnt.js → agent-analytics-C0toyZBE.js} +1 -1
- package/dist/client/assets/agent-app-Oq4eJczx.js +1 -0
- package/dist/client/assets/{agent-assets-CvHLRtfR.js → agent-assets-ZyzleI2d.js} +1 -1
- package/dist/client/assets/{agent-automation-DG660AlN.js → agent-automation-DHCAH1Ht.js} +1 -1
- package/dist/client/assets/{agent-automations-DkNZsDdV.js → agent-automations-1pmELJaR.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DFGjLsvu.js → agent-connect-sources-BR0EewUn.js} +1 -1
- package/dist/client/assets/agent-deck-CIKn9u0n.js +1 -0
- package/dist/client/assets/{agent-e2e-CTTKhY1C.js → agent-e2e-CniVqvBP.js} +1 -1
- package/dist/client/assets/{agent-experiments-B23reQrT.js → agent-experiments-BtOURaXM.js} +1 -1
- package/dist/client/assets/{agent-file-CFgK4Fqg.js → agent-file-mMm3oj12.js} +1 -1
- package/dist/client/assets/{agent-hosting-BL7RyxMT.js → agent-hosting-ad2iW-HQ.js} +1 -1
- package/dist/client/assets/{agent-icon-Bmu0Xuy8.js → agent-icon-IYZ6dMMm.js} +1 -1
- package/dist/client/assets/agent-library-Cwk-ahrq.js +1 -0
- package/dist/client/assets/agent-library-file-DFD1GRFs.js +1 -0
- package/dist/client/assets/{agent-monitor-Dxt5K5x_.js → agent-monitor-AJ6RJJFo.js} +1 -1
- package/dist/client/assets/{agent-overview-CAzScYJD.js → agent-overview-DUusPjxs.js} +1 -1
- package/dist/client/assets/{agent-releases-RSbZ96r7.js → agent-releases-mtwcaaQ0.js} +1 -1
- package/dist/client/assets/agent-settings-BdRr_yLn.js +1 -0
- package/dist/client/assets/{agent-site-editor-DFWKub_t.js → agent-site-editor-C0x401TL.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Dqg-zKcM.js +2 -0
- package/dist/client/assets/agent-site-editor-content-B2z3MWs5.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CV8VJTYA.js +1 -0
- package/dist/client/assets/agent-view-DB-tAcZk.js +1 -0
- package/dist/client/assets/{agent-view-guard-BwubZYi8.js → agent-view-guard-C-Qfr10T.js} +1 -1
- package/dist/client/assets/{agents-list-L7YgNFph.js → agents-list-Cpyf7LA_.js} +1 -1
- package/dist/client/assets/{ai-providers-DEeLkiCM.js → ai-providers-B1rkMM1N.js} +1 -1
- package/dist/client/assets/{alert-CnRQ3m-7.js → alert-CR7CEEq9.js} +1 -1
- package/dist/client/assets/{alert-dialog-BaBKldUA.js → alert-dialog-DvHapLNz.js} +1 -1
- package/dist/client/assets/{analytics-sections-BIEC86HP.js → analytics-sections-DQ4-ejvL.js} +1 -1
- package/dist/client/assets/api-keys-CquzZ0_l.js +1 -0
- package/dist/client/assets/{api-keys-CmpJo1Rr.js → api-keys-JCwVkxIe.js} +1 -1
- package/dist/client/assets/{app-editor-BqvAOKlk.js → app-editor-D8Q2zZIC.js} +1 -1
- package/dist/client/assets/{asset-utils--N2gsOKr.js → asset-utils-DmXj22NF.js} +1 -1
- package/dist/client/assets/{auth-BeK8rRbB.js → auth-BT8e81qV.js} +1 -1
- package/dist/client/assets/{auth-catchall-fFMHk_ps.js → auth-catchall-D6QLLgc6.js} +1 -1
- package/dist/client/assets/{auth-entry-C1_Znn_c.js → auth-entry-D9vS9bmZ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CocPnGfp.js → auth-split-layout-o3i94wga.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DJwJCiC8.js → authenticate-and-persist-oauth-DDvH_pYK.js} +1 -1
- package/dist/client/assets/{automation-list-row-3WI1rtPZ.js → automation-list-row-QE1B5QXY.js} +1 -1
- package/dist/client/assets/{automation-runs-dkpbdf4I.js → automation-runs-BM9Zsa76.js} +1 -1
- package/dist/client/assets/{automations-CaP79ol1.js → automations-BRu0MWXO.js} +1 -1
- package/dist/client/assets/{autosend-B-VPnrp2.js → autosend-1JvG61Q-.js} +1 -1
- package/dist/client/assets/{avatar-yCbsNNbw.js → avatar-C8v4_r4j.js} +1 -1
- package/dist/client/assets/{badge-Zdi_g359.js → badge-BHmZq84v.js} +1 -1
- package/dist/client/assets/{block-document-D4x1DRNW.js → block-document-Dv3941cI.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CMtVQxL8.js → blocks-preview-workspace-context-BH7NtGeu.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-B7_Q2Byx.js → blocks-tab-states-CLXySozn.js} +3 -3
- package/dist/client/assets/{blog-schema-D0r94Mwa.js → blog-schema-CrP5_bhz.js} +1 -1
- package/dist/client/assets/{board-analytics-DjFw48Ii.js → board-analytics-BmMawtQY.js} +1 -1
- package/dist/client/assets/{buckets-DmovZm0n.js → buckets-BtRFTIOK.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Cd4DLFMv.js → build-improve-prompt-doc-AWiYNzNL.js} +1 -1
- package/dist/client/assets/{calendar-aMW3a7Qx.js → calendar-COw0hUo6.js} +1 -1
- package/dist/client/assets/{capability-load-error-xmV40q_-.js → capability-load-error-DHrSQX5q.js} +1 -1
- package/dist/client/assets/{category-editor-BYf-_N2d.js → category-editor-kBX-zvr0.js} +1 -1
- package/dist/client/assets/{chart-D1eqwoYD.js → chart-CADE9lfF.js} +1 -1
- package/dist/client/assets/{chat-context-C4pDshj1.js → chat-context-BNjKw9LL.js} +1 -1
- package/dist/client/assets/{chat-draft-D5dlb_sl.js → chat-draft-CmtxpJQx.js} +1 -1
- package/dist/client/assets/{checkbox-C2l5tKo2.js → checkbox-xhw9TpJq.js} +1 -1
- package/dist/client/assets/{choose-editor-C_NzKjq2.js → choose-editor-CYHXDvEE.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DSx-mAhh.js → cli-auth-success-CrMi_RRg.js} +1 -1
- package/dist/client/assets/{client-icons-BasHQFnS.js → client-icons-CQ80KsiA.js} +1 -1
- package/dist/client/assets/cms-settings-editor-C8x3kSEg.js +1 -0
- package/dist/client/assets/{collapsible-CDZFoOK-.js → collapsible-BUt0IJaU.js} +1 -1
- package/dist/client/assets/{collection-detail-DkNCk0OQ.js → collection-detail-PY6wTFCT.js} +1 -1
- package/dist/client/assets/{collection-display-button--eCg5c5n.js → collection-display-button-Db8z9qRw.js} +1 -1
- package/dist/client/assets/{collection-search-sopr7ssV.js → collection-search-DKdVuGfx.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Cy3Cbckv.js → collection-table-wrapper-CxDEuoX_.js} +1 -1
- package/dist/client/assets/{collection-tabs-DU5QTifc.js → collection-tabs-DI6C6Bxt.js} +1 -1
- package/dist/client/assets/{column-rules-Z54WqqNc.js → column-rules-B1U9pPvU.js} +1 -1
- package/dist/client/assets/{combobox-C2hXpc1p.js → combobox-CSmA_Emy.js} +1 -1
- package/dist/client/assets/{command-BSGZ-TwS.js → command-0uhVFrEr.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-d9HGklIc.js → companion-mcps-section-Czlo0Gan.js} +1 -1
- package/dist/client/assets/{config-CddNRjRY.js → config-udwhxOLX.js} +1 -1
- package/dist/client/assets/{connect-BGfL3A9r.js → connect-BhG9hgu5.js} +1 -1
- package/dist/client/assets/{connect-layout-DoM7vuFX.js → connect-layout-CQqCd5zE.js} +1 -1
- package/dist/client/assets/{connection-card-BzTYJa6s.js → connection-card-s4hDH-AI.js} +1 -1
- package/dist/client/assets/{connection-detail-Cwz-qT82.js → connection-detail-BGuWCgDJ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-ChgreO5F.js → connection-form-helpers-DJ-magA7.js} +1 -1
- package/dist/client/assets/{connection-B0eFNfCu.js → connection-p3Yh3nCI.js} +1 -1
- package/dist/client/assets/{connections-CnirV_66.js → connections-CNGigt3T.js} +1 -1
- package/dist/client/assets/{content-tab-BIEsoSfa.js → content-tab-DgmmrNPY.js} +3 -3
- package/dist/client/assets/{context-DEuw9CjH.js → context-DncZ9emv.js} +1 -1
- package/dist/client/assets/{context-menu-CHrxflOD.js → context-menu-Cm6FmYv1.js} +1 -1
- package/dist/client/assets/{core.esm-CWXW2IWJ.js → core.esm-CMBApA4v.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Bci4qKSS.js → create-organization-dialog-DeVkEe6w.js} +1 -1
- package/dist/client/assets/{daily-pulse-CRZ8lDnm.js → daily-pulse-DCG3diGf.js} +1 -1
- package/dist/client/assets/{discover-C3iLTVFB.js → discover-CP7ZVhLA.js} +1 -1
- package/dist/client/assets/{domain-settings-DdY9W_8b.js → domain-settings-BjboDk3T.js} +1 -1
- package/dist/client/assets/{drawer-BpEasqMM.js → drawer-CLZ-xo2r.js} +1 -1
- package/dist/client/assets/{editor-DQK8Gbky.js → editor-D4HuZvrK.js} +1 -1
- package/dist/client/assets/{editor-classes-wKHzvXkJ.js → editor-classes-DKfC8vOr.js} +1 -1
- package/dist/client/assets/{empty-state-Ck0Y0zH4.js → empty-state-BsdKh2Ue.js} +1 -1
- package/dist/client/assets/{empty-state-GUv-DLNf.js → empty-state-CEoRSVYz.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CyaR6DQN.js → extract-connection-data-6U5via6T.js} +1 -1
- package/dist/client/assets/{feature-gate-Cd3TCuYG.js → feature-gate-BQX4xM-_.js} +1 -1
- package/dist/client/assets/{feature-paywall-HnwykYzM.js → feature-paywall-B0IDpilq.js} +1 -1
- package/dist/client/assets/{file-explorer-B8GvovSI.js → file-explorer-BusTYz3B.js} +1 -1
- package/dist/client/assets/{file-preview-KNDU2UhF.js → file-preview-oG-3SqEP.js} +1 -1
- package/dist/client/assets/file-share-button-D2ewghAx.js +3 -0
- package/dist/client/assets/{file-type-icon-C2WSm6EM.js → file-type-icon-CQ2NL6D0.js} +1 -1
- package/dist/client/assets/flat-project-BtG_ijLj.js +1 -0
- package/dist/client/assets/{folder-icon-DOSAeTvE.js → folder-icon-DfMLETlT.js} +1 -1
- package/dist/client/assets/{form-Dz-wry37.js → form-C-_Hq4Nf.js} +1 -1
- package/dist/client/assets/{general-lahSHdvs.js → general-CtDuoPb9.js} +1 -1
- package/dist/client/assets/{home-CfslMwmV.js → home-eTg8C9pV.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-D7K1BgAP.js → hosted-publish-feedback-CZlm71y1.js} +1 -1
- package/dist/client/assets/{icon-button-BbQESQAz.js → icon-button-kIcQhYLP.js} +1 -1
- package/dist/client/assets/{index-COyZFAVd.js → index-B3gavgHR.js} +1 -1
- package/dist/client/assets/{index-Fqg3dcpq.js → index-BDyDwqX9.js} +1 -1
- package/dist/client/assets/{index-CVeMcxNw.js → index-BRWw7SCJ.js} +1 -1
- package/dist/client/assets/{index-Cdsu1Nw_.js → index-Brahj_AH.js} +1 -1
- package/dist/client/assets/{index-mPiuZtAa.js → index-CRwuvzQo.js} +1 -1
- package/dist/client/assets/{index-BFWcpEys.js → index-CSynhSN3.js} +1 -1
- package/dist/client/assets/{index-qp2WMoaq.js → index-CaZ7Ta4-.js} +1 -1
- package/dist/client/assets/{index-DhnL-yRw.js → index-D1O0fnYk.js} +1 -1
- package/dist/client/assets/{index-CAsLc9Zw.js → index-D50nkpZu.js} +1 -1
- package/dist/client/assets/{index-BoB02eW2.js → index-DcwcoAG1.js} +2 -2
- package/dist/client/assets/{index-CD1O2KuY.js → index-DkaAdiWJ.js} +3 -3
- package/dist/client/assets/{index-BhuMySoe.js → index-Dxx153um.js} +1 -1
- package/dist/client/assets/{index-DuSo48nd.js → index-GIY94IfY.js} +1 -1
- package/dist/client/assets/{index-DSuQX-Dj.js → index-aLtOKeM_.js} +1 -1
- package/dist/client/assets/{index-BX4Ek3Q9.js → index-qdZ_M1Hs.js} +1 -1
- package/dist/client/assets/{index-redirect-LGC8XAQa.js → index-redirect-CqzQ7TtA.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BuOPvaCd.js → infiniteQueryObserver-OVT2IHZz.js} +1 -1
- package/dist/client/assets/{infra-billing-C7a9CxBG.js → infra-billing-Do0mVYGI.js} +1 -1
- package/dist/client/assets/{input-CC2XqVda.js → input-BSjpPhVN.js} +1 -1
- package/dist/client/assets/{input-Dx6Yl3YV.js → input-By0EUIH6.js} +3 -3
- package/dist/client/assets/{integration-icon-YHEiRLgT.js → integration-icon-DnkM_UL8.js} +1 -1
- package/dist/client/assets/{jira-icon-i9apovX2.js → jira-icon-CqLf84m8.js} +1 -1
- package/dist/client/assets/{label-CsyEQPG4.js → label-Dt5vzIMB.js} +1 -1
- package/dist/client/assets/{layout-BT112QdT.js → layout-BmodM2uM.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-HgU3c2Dz.js → legacy-agents-deep-CX4SclMd.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-jScx_XSf.js → legacy-main-redirect-Dts3nGWn.js} +1 -1
- package/dist/client/assets/library-CEn0n3Pq.js +1 -0
- package/dist/client/assets/{library-tab-9158ORpA.js → library-tab-Dk8jPHZc.js} +1 -1
- package/dist/client/assets/{login-OE28YT2s.js → login-CjyZJ1gl.js} +1 -1
- package/dist/client/assets/{markdown-TXCHEe-4.js → markdown-BqgEzNGE.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BAlCN3Lv.js → mcp-app-renderer-DA0a33zE.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BFqNJ-iQ.js → mcp-oauth-CX8fEmM9.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CuU6LL15.js → mcp-oauth-I5gBNKoS.js} +1 -1
- package/dist/client/assets/{members-CbEEa2ua.js → members-CevjnqyZ.js} +1 -1
- package/dist/client/assets/{memory-malk94i-.js → memory-XWobktLB.js} +1 -1
- package/dist/client/assets/{mini-report-page-Dhes7qGv.js → mini-report-page-C6BqmQaN.js} +1 -1
- package/dist/client/assets/{mock-board-B4GBU96k.js → mock-board-B4qV3A-E.js} +1 -1
- package/dist/client/assets/{monaco-editor-DIn5LVAo.js → monaco-editor-lQ9cAvUY.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CsXWM1-N.js → monitoring-stats-row-CLPgpAhH.js} +1 -1
- package/dist/client/assets/{multi-select-jv5l4gKB.js → multi-select-CZfN1PaQ.js} +1 -1
- package/dist/client/assets/{mustache-C3mAjW3w.js → mustache-DT_KuEhH.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DCPZVRuS.js → new-project-dialog-BKgvqK78.js} +1 -1
- package/dist/client/assets/{oauth-callback-C7bM7rgT.js → oauth-callback-SkwzSPfM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-maa6Zm5e.js → oauth-callback-ai-provider-NI3n642W.js} +1 -1
- package/dist/client/assets/{onboarding-ds1UbiQ9.js → onboarding-BMiRDMAb.js} +1 -1
- package/dist/client/assets/{openai-conversation-BSvbWT0F.js → openai-conversation-Ca5Fg4Y6.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-2rlAyeqj.js → optimistic-project-sidebar-views-DyvLQ80j.js} +1 -1
- package/dist/client/assets/{order-monitor-day-CZG8_Uqo.js → order-monitor-day-B9Ta2zIj.js} +1 -1
- package/dist/client/assets/{organization-choice-CGGV7pYx.js → organization-choice-D5hNbyJb.js} +1 -1
- package/dist/client/assets/{orgs-DSh5ncFV.js → orgs-BxK76duJ.js} +1 -1
- package/dist/client/assets/{page-seo-form-BPMiXtW-.js → page-seo-form-BmW8Z-0I.js} +1 -1
- package/dist/client/assets/{pair-C9IKm4JE.js → pair-DKv2U48Y.js} +1 -1
- package/dist/client/assets/{plan-ladder-DbkDT52b.js → plan-ladder-B1IxCH1B.js} +1 -1
- package/dist/client/assets/{popover-CzNTcDJM.js → popover-5CUWIQBk.js} +1 -1
- package/dist/client/assets/{post-calendar-DGIFZvru.js → post-calendar-DAa-Pjry.js} +1 -1
- package/dist/client/assets/{post-editor-BINaZa6q.js → post-editor-reaedGzn.js} +1 -1
- package/dist/client/assets/{preview-content-BjX4Mivy.js → preview-content-CshUlHqh.js} +1 -1
- package/dist/client/assets/{preview-dialog-C8Boj2eR.js → preview-dialog-DwCusxLT.js} +1 -1
- package/dist/client/assets/{preview-panel-BTtWNKn9.js → preview-panel-WzN8kpWO.js} +1 -1
- package/dist/client/assets/{preview-tab-BYhuHpLV.js → preview-tab-B_cUSkm2.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-qxyRXjlS.js → product-picker-dialog-DBjep5p4.js} +1 -1
- package/dist/client/assets/{profile-Cgb34CQu.js → profile-hRHOF5Gw.js} +1 -1
- package/dist/client/assets/{project-app-view-B5MD1o9B.js → project-app-view-DNVq8VkM.js} +1 -1
- package/dist/client/assets/{project-feed-DnDlefHV.js → project-feed-DlyqhO5P.js} +1 -1
- package/dist/client/assets/{project-icon-CP0m7tWm.js → project-icon-vLtBMI8z.js} +1 -1
- package/dist/client/assets/project-reports-qHjypV2b.js +1 -0
- package/dist/client/assets/project-tasks-BSdX2U8o.js +1 -0
- package/dist/client/assets/{projects-DmCmaniu.js → projects-B3I0DcRe.js} +1 -1
- package/dist/client/assets/{projects-empty-state-fIhR2Z5I.js → projects-empty-state-55RIN9Cj.js} +1 -1
- package/dist/client/assets/{prompts-CW5UUH65.js → prompts-CPLH0FnD.js} +1 -1
- package/dist/client/assets/record-editor-CbXWgwLJ.js +1 -0
- package/dist/client/assets/{redirect-editor-CxJl2CVJ.js → redirect-editor-B2bAFrEE.js} +1 -1
- package/dist/client/assets/{reports-BXGEiRjn.js → reports-CXN9h1H6.js} +1 -1
- package/dist/client/assets/reports-CzM2YmW4.js +1 -0
- package/dist/client/assets/{reports-onboarding-DNEAbZJV.js → reports-onboarding-nbmF0yv4.js} +1 -1
- package/dist/client/assets/{reports-tab-CwK-fp7x.js → reports-tab-CRtLPFDk.js} +2 -2
- package/dist/client/assets/{repositories-ClghJilC.js → repositories-D3qwKMJM.js} +1 -1
- package/dist/client/assets/{repository-binding-BYnKmLVI.js → repository-binding-CUxf8aX0.js} +1 -1
- package/dist/client/assets/{repository-import-picker-De4qAOck.js → repository-import-picker-C6OTix7e.js} +1 -1
- package/dist/client/assets/{repository-picker-B7BUYgB7.js → repository-picker-BXAw9AXK.js} +1 -1
- package/dist/client/assets/{require-capability-hn1SreP5.js → require-capability-CKHXR06K.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Mqzz7XgH.js → required-auth-layout-Cv45xJqA.js} +1 -1
- package/dist/client/assets/{reset-password-BOpvbCSW.js → reset-password-6g9qTAfh.js} +1 -1
- package/dist/client/assets/{resizable-DpCFVPH5.js → resizable-fCTJH5jh.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-8PRTNpAS.js → resolve-tab-icon-cz5Lal-I.js} +1 -1
- package/dist/client/assets/{review-settings-Bw0A1sn1.js → review-settings-BBWyrIPG.js} +1 -1
- package/dist/client/assets/{roles-BMCtr4MB.js → roles-DFY7MITG.js} +1 -1
- package/dist/client/assets/{route-DLSqOpoM.js → route-BgaA4a2x.js} +1 -1
- package/dist/client/assets/route-Czz5Bs8C.js +1 -0
- package/dist/client/assets/{route-DnP6JRb8.js → route-DoeOMPk8.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-Dg7K5ioC.js → sandbox-lifecycle-context-CaJAIY0Z.js} +1 -1
- package/dist/client/assets/{schema-D-qEbXZ-.js → schema-BSza6gHX.js} +1 -1
- package/dist/client/assets/{schema-zU96PUAb.js → schema-Dm_m9LVL.js} +1 -1
- package/dist/client/assets/{scroll-area-D_ro8hTm.js → scroll-area-CuMF5NiW.js} +1 -1
- package/dist/client/assets/{search-input-qNQGHbDh.js → search-input-BTzoOGtl.js} +1 -1
- package/dist/client/assets/{search-toggle-Dfh8XGYH.js → search-toggle-DqerdjGH.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-DkD2R7dc.js → secret-ciphertext-gn0fPABs.js} +1 -1
- package/dist/client/assets/{secret-picker-CmVVvqgZ.js → secret-picker-Ch2nVO3v.js} +1 -1
- package/dist/client/assets/{secrets-BDW-A1kb.js → secrets-B5r6P4-B.js} +1 -1
- package/dist/client/assets/{sections-editor-BKmXdadO.js → sections-editor-BMtYavHq.js} +1 -1
- package/dist/client/assets/{select-C4iThYr6.js → select-BcwZlsYZ.js} +1 -1
- package/dist/client/assets/{select-model-BND792Uy.js → select-model-BPZqELZd.js} +1 -1
- package/dist/client/assets/{seo-editor-ClpJZQda.js → seo-editor-DbdPsW8q.js} +1 -1
- package/dist/client/assets/{separator-DYHY_XVB.js → separator-D8OF4ezs.js} +1 -1
- package/dist/client/assets/{settings-tab-A8T1BHYG.js → settings-tab-vFTyot1Q.js} +1 -1
- package/dist/client/assets/{sheet-BXRHJIP3.js → sheet-Tquw41xW.js} +1 -1
- package/dist/client/assets/{shell-layout-BhM3Q_22.js → shell-layout-CRO_nANS.js} +1 -1
- package/dist/client/assets/site-editor-Ciqo201x.js +1 -0
- package/dist/client/assets/{site-editor-toast-DPPGE5LH.js → site-editor-toast-QZc2FiWC.js} +1 -1
- package/dist/client/assets/{skills-Kw1j3-7B.js → skills-Cy_1L7US.js} +1 -1
- package/dist/client/assets/{slider-CpU4rmfX.js → slider-DLdIHTHb.js} +1 -1
- package/dist/client/assets/{sortable.esm-CBSg5QWi.js → sortable.esm-B-1sTrpw.js} +1 -1
- package/dist/client/assets/{sso-GSEhvAQ2.js → sso-DntzhSMZ.js} +1 -1
- package/dist/client/assets/{suggestion-BPVDnpZj.js → suggestion-2eY-h_h6.js} +1 -1
- package/dist/client/assets/{switch-63WSXheM.js → switch-CXVVml8l.js} +1 -1
- package/dist/client/assets/{symbol-rviHpBrN.js → symbol-GV0fNX6l.js} +1 -1
- package/dist/client/assets/{synced-repos-D3YnOlYC.js → synced-repos-DA72w12p.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Dqe-yN6V.js → tab-icon-glyph-BebaLHRL.js} +1 -1
- package/dist/client/assets/{table-CLaOCONQ.js → table-D9xONBRn.js} +1 -1
- package/dist/client/assets/{tabs-BQUPeDjf.js → tabs-B41SM090.js} +1 -1
- package/dist/client/assets/{task-board-DxxiAR5A.js → task-board-CTuiBIsg.js} +1 -1
- package/dist/client/assets/{task-route-Ce6MTE8h.js → task-route-BKkIPiry.js} +1 -1
- package/dist/client/assets/{task-status-CMbp-PaL.js → task-status-B4XVkPYj.js} +1 -1
- package/dist/client/assets/taskboard-analytics-DqmyZkwS.js +1 -0
- package/dist/client/assets/{tasks-BarD4hla.js → tasks-BVB1PaAg.js} +1 -1
- package/dist/client/assets/tasks-Cp1quWcN.js +1 -0
- package/dist/client/assets/{textarea-CxYAsAPe.js → textarea-BqrbUXb-.js} +1 -1
- package/dist/client/assets/{thread-analytics-Cjx1orRq.js → thread-analytics-CPeiiA8I.js} +1 -1
- package/dist/client/assets/{thread-intent-DikZOwd-.js → thread-intent-DLDiaL9G.js} +1 -1
- package/dist/client/assets/{thread-route-ChugAIRh.js → thread-route-BmrY96Lm.js} +1 -1
- package/dist/client/assets/{thread-route-CRU_aqN9.js → thread-route-lxlAvBuV.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DfFj6DBB.js → thread-sheet-body-BDL2hItT.js} +1 -1
- package/dist/client/assets/{time-range-picker-Bf6M5ihN.js → time-range-picker-CvpfBHpe.js} +1 -1
- package/dist/client/assets/{toggle-group-DbSldXZX.js → toggle-group-DalyAtPg.js} +1 -1
- package/dist/client/assets/{tool-namespace-pIFYrei5.js → tool-namespace-B_k1k0fN.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-B24Twz-b.js → toolbar-icon-button-DpCNxe0K.js} +1 -1
- package/dist/client/assets/{tooltip-Bs0EJaD7.js → tooltip-B_25NPmf.js} +1 -1
- package/dist/client/assets/{tooltipContext-fXkDpiI8.js → tooltipContext-n2PgKNg2.js} +1 -1
- package/dist/client/assets/{track-BzGhLw1A.js → track-bhmAWi0b.js} +1 -1
- package/dist/client/assets/{types-IpdOmnYx.js → types-BUQqhAId.js} +1 -1
- package/dist/client/assets/{url-slug-CMCbwnaP.js → url-slug-CNFZ5XX5.js} +1 -1
- package/dist/client/assets/{usage-stats-DuvxTL2m.js → usage-stats-DvhuVEjC.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Becg3IYt.js → use-ai-providers-BPhJ1yF7.js} +1 -1
- package/dist/client/assets/{use-app-takeover-DFb1RzQs.js → use-app-takeover-CDJv15ZB.js} +1 -1
- package/dist/client/assets/{use-automations-Cp9pysoO.js → use-automations-DJ_ikQdz.js} +1 -1
- package/dist/client/assets/{use-autosave-C5CskRdQ.js → use-autosave-BoHkhP2m.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-BJSvg7rH.js → use-chat-navigation-DUbS_iPM.js} +1 -1
- package/dist/client/assets/{use-clock-tick-B1PaG9d4.js → use-clock-tick-as5oTZgN.js} +1 -1
- package/dist/client/assets/{use-connect-companion-ClLk9Ret.js → use-connect-companion-DqVGkDIM.js} +1 -1
- package/dist/client/assets/{use-connection-CLmhN_H7.js → use-connection-DY-WagAa.js} +1 -1
- package/dist/client/assets/{use-copy-T3xwaExj.js → use-copy-ClD4s_TM.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CVTk_yNo.js → use-create-virtual-mcp-Dohl0Zfh.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CYDYn543.js → use-date-fns-locale-Dz5rWTWI.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-8fEcHiWI.js → use-debounced-autosave-WFKR23sx.js} +1 -1
- package/dist/client/assets/{use-debounced-value-d254MtLc.js → use-debounced-value-Dp8C9zA0.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BJdkVUlJ.js → use-deco-credits-BnZ_gdH3.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D42PqykU.js → use-decopilot-events-DL9_5J0E.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bp41mUbu.js → use-delete-connection-tC-TfItZ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Cz36UM7j.js → use-deployment-admin-Zvs9DkeF.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-DV9pI0pa.js → use-ensure-project-folder-d3UBGQ7Q.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Dbj9pvCB.js → use-fast-preview-draft-url-hO7HQWlE.js} +1 -1
- package/dist/client/assets/{use-file-configs-D_kGDRPd.js → use-file-configs-BMy41NVN.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C47I-wuH.js → use-infinite-scroll-BPodZDx6.js} +1 -1
- package/dist/client/assets/{use-join-requests-Cy3hlZv5.js → use-join-requests-DuckoeAL.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DjhEbRyd.js → use-main-panel-tabs-BI77ol7M.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-5SUSMsp-.js → use-mcp-auth-status-CoEvprj1.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CEKqqblF.js → use-mcp-client-B5o4BaiL.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CwF-bqUg.js → use-mcp-prompts-BitxABIK.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-_07-mu_D.js → use-mcp-tools-Dz-ZY0cO.js} +1 -1
- package/dist/client/assets/{use-members-CFcpHrvE.js → use-members-DgrZSQ5N.js} +1 -1
- package/dist/client/assets/{use-mobile-CYsZ0F3X.js → use-mobile-59ztD2wt.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DNsHLJD8.js → use-navigate-to-agent-CZ4dW_nQ.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-C1m0KS6b.js → use-open-billing-url-BYy0ucSY.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-9ZqTxhaU.js → use-org-auth-client-BSKCTJ83.js} +1 -1
- package/dist/client/assets/{use-org-fs-Wo4_O8nn.js → use-org-fs-DFXSn92O.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-HjlHy8Rb.js → use-org-repo-syncs-BU7kIMDH.js} +1 -1
- package/dist/client/assets/{use-org-sso-BSkklN8h.js → use-org-sso-Bd_oapaS.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Dga2ANZJ.js → use-organization-roles-CqAArcm0.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DHSMN_14.js → use-organization-settings-C20lZFsL.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-62gIHptt.js → use-panel-navigate-B6CuCVz_.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-D12oGF6A.js → use-project-native-view-presence-CEzqnREe.js} +1 -1
- package/dist/client/assets/{use-project-scope-Dk4Q60O6.js → use-project-scope-M2K9oclq.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CCwo686W.js → use-recent-apps-CCygNwnl.js} +1 -1
- package/dist/client/assets/{use-releases-wK1mECcA.js → use-releases-S6PeIcAD.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CfPcDRof.js → use-reports-diagnostic-BffjEquQ.js} +1 -1
- package/dist/client/assets/{use-secrets-Cmhjz2bf.js → use-secrets-DpgJFxgU.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DJFgOhQZ.js → use-section-preview-base-DNUW6AnY.js} +1 -1
- package/dist/client/assets/{use-tags-D0LqZNOI.js → use-tags-D0wS2Sck.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BpQqtB1w.js → use-task-board-analytics-Cpw8ZqbL.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BrTJpTlj.js → use-task-board-events-St3hyfJR.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BHRZFWqk.js → use-task-board-item-prs-A3pxuCiu.js} +1 -1
- package/dist/client/assets/{use-task-board-items-CZjiF2uB.js → use-task-board-items-Cb7mJa2E.js} +1 -1
- package/dist/client/assets/{use-task-metadata-Bef5UioD.js → use-task-metadata-BvqNr1xh.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-CiJumHRj.js → use-thread-analytics-TrkPln87.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BVEM1vsy.js → use-thread-outputs-D7s2dcMd.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C4Z0Ecih.js +1 -0
- package/dist/client/assets/{useQueries-D52x651p.js → useQueries-DpIF9hue.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DgVkw039.js +1 -0
- package/dist/client/assets/{users-DfEzbgjc.js → users-BuGS3MO1.js} +1 -1
- package/dist/client/assets/{utils-DVs-Bhj-.js → utils-DjpuMjJB.js} +1 -1
- package/dist/client/assets/{variant-calendar-B4damr_G.js → variant-calendar-BzMHTyr7.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-BnxZeLy_.js → variant-draft-pointer-Blas_1gl.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DKlegHXH.js → view-mode-toggle-BIZQrhSv.js} +1 -1
- package/dist/client/assets/{virtual-mcp-UT0zZzHO.js → virtual-mcp-nLZqaKxm.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BdkzrgTO.js → watch-sse-pool-DVveSXgO.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DBSthuoA.js +0 -1
- package/dist/client/assets/agent-deck-DW69LMk-.js +0 -1
- package/dist/client/assets/agent-library-D9aAC92j.js +0 -1
- package/dist/client/assets/agent-library-file-Dlq-Vts6.js +0 -1
- package/dist/client/assets/agent-settings-5EOlZJW6.js +0 -1
- package/dist/client/assets/agent-site-editor-code-I8N3vaXE.js +0 -2
- package/dist/client/assets/agent-site-editor-content-uhd8Bnc-.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-CV5DbDBm.js +0 -1
- package/dist/client/assets/agent-view-QNUTYcIi.js +0 -1
- package/dist/client/assets/api-keys-BgtInlXe.js +0 -1
- package/dist/client/assets/cms-settings-editor-BB3l1bfM.js +0 -1
- package/dist/client/assets/file-share-button-BX7_JCXp.js +0 -3
- package/dist/client/assets/flat-project-XWFiDywx.js +0 -1
- package/dist/client/assets/library-CWV47kSp.js +0 -1
- package/dist/client/assets/project-reports-8XAuspn6.js +0 -1
- package/dist/client/assets/project-tasks-CGbl7DTy.js +0 -1
- package/dist/client/assets/record-editor--8X4AXV_.js +0 -1
- package/dist/client/assets/reports-eZ_It7qc.js +0 -1
- package/dist/client/assets/route-yiouOCXy.js +0 -1
- package/dist/client/assets/site-editor-LulM9jUZ.js +0 -1
- package/dist/client/assets/taskboard-analytics-_ZvfL2sj.js +0 -1
- package/dist/client/assets/tasks-DcunZstc.js +0 -1
- package/dist/client/assets/useInfiniteQuery-S3a_-GqY.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DiRI5XkI.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,b as j,r as E,j as x,l as q,ah as Tt,t as ue,aX as Xe,a2 as vt,m as At,K as Mt,b4 as St,h as Je}from"./index-BoB02eW2.js";import{a as Ct,n as Ye,E as ie,o as Rt,x as Et,y as P,z as $t,A as _t,B as et,C as N,G as Ee,H as Lt,I as It,J as $e,K as zt,L as Z,N as D,m as H,O as Y,T as tt,R as ke,Q as be,U as Pt,V as Ht,W as jt,X as Nt,Y as Ot,s as Bt,Z as Dt,u as Ft,b as qt}from"./usage-stats-DuvxTL2m.js";import{T as _,n as Wt,i as Ut,E as Gt}from"./editor-classes-wKHzvXkJ.js";import{a as Vt,e as nt,s as Zt,S as Kt}from"./suggestion-BPVDnpZj.js";import{B as Qt,c as Xt,t as Jt,C as rt,f as Yt,g as _e,s as en,m as Le,a as Ie,b as tn,d as ze,e as nn,h as rn,i as sn,j as an,k as on,l as ln,n as cn}from"./index-BFWcpEys.js";import{ag as un,ah as hn,aj as dn,L as pn,bd as fn,aV as gn}from"./agent-icon-Bmu0Xuy8.js";import{i as mn}from"./SwitchHorizontal01-KDjTaTLX.js";import{i as kn}from"./Link01-DNXOSsg9.js";import{s as bn}from"./Trash01-BzUZQR5Y.js";import{i as xn,b as wn}from"./use-org-fs-Wo4_O8nn.js";import{E as Pe,i as st,c as yn,d as Tn,A as vn,e as An,m as Mn,f as Sn,g as Cn}from"./markdown-TXCHEe-4.js";import{A as Rn}from"./avatar-yCbsNNbw.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-BSGZ-TwS.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-9ZqTxhaU.js";import{I as Hn}from"./icon-button-BbQESQAz.js";function jn(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=Wt(a);if(M===""){g();return}if(!Ut(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=x.jsx(kn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=x.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 b;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(b=s&&x.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md border bg-popover p-1 shadow-md",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[x.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")}),x.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:x.jsx(Tt,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.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]=b):b=e[26];let v;return e[27]!==T||e[28]!==b?(v=x.jsxs("div",{className:"relative",children:[T,b]}),e[27]=T,e[28]=b,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=x.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=x.jsx("span",{className:"text-[11px] font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},it=[1,2,3],Nn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function On(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:Bn},e[0]=n,e[1]=a):a=e[1];const l=Ct(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&&x.jsxs(Qt,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(un,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(hn,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(dn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(pn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(He,{children:`H${g}`})},g)),x.jsx(le,{}),x.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:x.jsx(mn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(He,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(fn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{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=x.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function Bn(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:it.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Dn=10,Fn=25,qn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function Wn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??qn[t.type]??""}function Un(){const t=$.c(4),e=j(),{upload:n}=xn(Pe),r=wn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Dn:Fn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?yn:Tn,c=`${crypto.randomUUID()}${Wn(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"),Gn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Rt({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 Vn(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,b,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,b)=>{T===l&&(m=b+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=Et.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Kn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Qn(t=!0){const e=j(),{uploadFile:n}=Un(),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,Vn(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=Kn(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 xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=xe();function at(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 Xn=(()=>{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)}}>`)},Jn=/^(?:[ \t]*(?:\n|$))+/,Yn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,er=/^ {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+|$)/,tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ot=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lt=A(ot).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(),nr=A(ot).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]+)*)/,rr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=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]*?(?:-->|$))/,ar=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(),ct=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(),or=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ct).getRegex(),Ae={blockquote:or,code:Yn,def:sr,fences:er,heading:tr,hr:K,html:ar,lheading:lt,list:ir,newline:Jn,paragraph:ct,table:O,text:rr},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(),lr={...Ae,lheading:nr,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()},cr={...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 x,l as q,ah as Tt,t as ue,aX as Xe,a2 as vt,m as At,K as Mt,b4 as St,h as Je}from"./index-DcwcoAG1.js";import{a as Ct,n as Ye,E as ie,o as Rt,x as Et,y as P,z as $t,A as _t,B as et,C as N,G as Ee,H as Lt,I as It,J as $e,K as zt,L as Z,N as D,m as H,O as Y,T as tt,R as ke,Q as be,U as Pt,V as Ht,W as jt,X as Nt,Y as Ot,s as Bt,Z as Dt,u as Ft,b as qt}from"./usage-stats-DvhuVEjC.js";import{T as _,n as Wt,i as Ut,E as Gt}from"./editor-classes-DKfC8vOr.js";import{a as Vt,e as nt,s as Zt,S as Kt}from"./suggestion-2eY-h_h6.js";import{B as Qt,c as Xt,t as Jt,C as rt,f as Yt,g as _e,s as en,m as Le,a as Ie,b as tn,d as ze,e as nn,h as rn,i as sn,j as an,k as on,l as ln,n as cn}from"./index-CSynhSN3.js";import{ag as un,ah as hn,aj as dn,L as pn,bd as fn,aV as gn}from"./agent-icon-IYZ6dMMm.js";import{i as mn}from"./SwitchHorizontal01-AcstXYg5.js";import{i as kn}from"./Link01-DQBTD3DQ.js";import{s as bn}from"./Trash01-Ck_X1vUa.js";import{i as xn,b as wn}from"./use-org-fs-DFXSn92O.js";import{E as Pe,i as st,c as yn,d as Tn,A as vn,e as An,m as Mn,f as Sn,g as Cn}from"./markdown-BqgEzNGE.js";import{A as Rn}from"./avatar-C8v4_r4j.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-0uhVFrEr.js";import{g as zn}from"./get-initials-D-f_fDFw.js";import{u as Pn}from"./use-org-auth-client-BSKCTJ83.js";import{I as Hn}from"./icon-button-kIcQhYLP.js";function jn(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=Wt(a);if(M===""){g();return}if(!Ut(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=x.jsx(kn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=x.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 b;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(b=s&&x.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md border bg-popover p-1 shadow-md",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[x.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")}),x.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:x.jsx(Tt,{size:14})}),h&&x.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:x.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]=b):b=e[26];let v;return e[27]!==T||e[28]!==b?(v=x.jsxs("div",{className:"relative",children:[T,b]}),e[27]=T,e[28]=b,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=x.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=x.jsx("span",{className:"text-[11px] font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},it=[1,2,3],Nn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function On(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:Bn},e[0]=n,e[1]=a):a=e[1];const l=Ct(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&&x.jsxs(Qt,{editor:n,shouldShow:Nn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[x.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:x.jsx(un,{size:14})}),x.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:x.jsx(hn,{size:14})}),x.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:x.jsx(dn,{size:14})}),x.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:x.jsx(pn,{size:14})}),x.jsx(le,{}),it.map((g,m)=>x.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:x.jsx(He,{children:`H${g}`})},g)),x.jsx(le,{}),x.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:x.jsx(mn,{size:14})}),x.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:x.jsx(He,{children:"1."})}),x.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:x.jsx(fn,{size:14})}),x.jsx(le,{}),x.jsx(jn,{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=x.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function Bn(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:it.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Dn=10,Fn=25,qn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function Wn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??qn[t.type]??""}function Un(){const t=$.c(4),e=j(),{upload:n}=xn(Pe),r=wn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Dn:Fn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?yn:Tn,c=`${crypto.randomUUID()}${Wn(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"),Gn=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Rt({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 Vn(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,b,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,b)=>{T===l&&(m=b+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=Et.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Kn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Qn(t=!0){const e=j(),{uploadFile:n}=Un(),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,Vn(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=Kn(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 xe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=xe();function at(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 Xn=(()=>{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)}}>`)},Jn=/^(?:[ \t]*(?:\n|$))+/,Yn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,er=/^ {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+|$)/,tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ot=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lt=A(ot).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(),nr=A(ot).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]+)*)/,rr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ir=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]*?(?:-->|$))/,ar=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(),ct=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(),or=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ct).getRegex(),Ae={blockquote:or,code:Yn,def:sr,fences:er,heading:tr,hr:K,html:ar,lheading:lt,list:ir,newline:Jn,paragraph:ct,table:O,text:rr},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(),lr={...Ae,lheading:nr,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()},cr={...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",lt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ur=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ut=/^( {2,}|\\)\n(?!\s*$)/,dr=/^(`+|[^`])(?:(?= {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,pr=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oe).getRegex(),ht=/(?!~)[\p{P}\p{S}]/u,fr=/(?!~)[\s\p{P}\p{S}]/u,gr=/(?:[^\s\p{P}\p{S}]|~)/u,mr=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),dt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,kr=A(dt,"u").replace(/punct/g,W).getRegex(),br=A(dt,"u").replace(/punct/g,ht).getRegex(),pt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xr=A(pt,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),wr=A(pt,"gu").replace(/notPunctSpace/g,gr).replace(/punctSpace/g,fr).replace(/punct/g,ht).getRegex(),yr=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(),Tr=A(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,W).getRegex(),vr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ar=A(vr,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Mr=A(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),Sr=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(),Cr=A(ve).replace("(?:-->|$)","-->").getRegex(),Rr=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",Cr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),te=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Er=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ft=A(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",Te).getRegex(),gt=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Te).getRegex(),$r=A("reflink|nolink(?!\\()","g").replace("reflink",ft).replace("nolink",gt).getRegex(),Ne=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Se={_backpedal:O,anyPunctuation:Mr,autolink:Sr,blockSkip:mr,br:ut,code:hr,del:O,delLDelim:O,delRDelim:O,emStrongLDelim:kr,emStrongRDelimAst:xr,emStrongRDelimUnd:yr,escape:ur,link:Er,nolink:gt,punctuation:pr,reflink:ft,reflinkSearch:$r,tag:Rr,text:dr,url:O},_r={...Se,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},de={...Se,emStrongRDelimAst:wr,emStrongLDelim:br,delLDelim:Tr,delRDelim:Ar,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()},Lr={...de,br:A(ut).replace("{2,}","*").getRegex(),text:A(de.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:Ae,gfm:lr,pedantic:cr},U={normal:Se,gfm:de,breaks:Lr,pedantic:_r},Ir={"&":"&","<":"<",">":">",'"':""","'":"'"},Oe=t=>Ir[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 zr(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 Pr(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 Hr(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,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,bx as ce,j as p,bD as _,bC as T,bA as C,bH as le,bw as de,bT as ue,bP as fe,bI as me}from"./index-
|
|
1
|
+
import{r as l,bx as ce,j as p,bD as _,bC as T,bA as C,bH as le,bw as de,bT as ue,bP as fe,bI as me}from"./index-DcwcoAG1.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",[z,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=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)}}),j=l.useRef(S);function B(x){const y=ye(S,x);K(x,y)}function se(x){K(x,f.current)}function ae(){const x=j.current[f.current];S[f.current]!==x&&d(S)}function K(x,y,{commit:k}={commit:!1}){const U=_e(c),H=Ce(Math.round((x-n)/c)*c+n,U),A=Y(H,[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(z.Provider,{scope:e.__scopeSlider,children:p.jsx(z.Slot,{scope:e.__scopeSlider,children:p.jsx(w,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,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 H=$.includes(x.key)||x.shiftKey&&X.includes(x.key)?10:1,A=f.current,E=S[A],P=c*H*y;K(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,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],B=O(I,f?[o,n]:[n,o]);return R.current=S,B(w-S.left)}return p.jsx(J,{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(J,{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=V(M,o);return p.jsx(T.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=V(ee,o);return p.jsx(T.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=V(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(T.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=V(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(z.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.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(T.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=q,Ae=te,Te=ne,Ve=oe;export{Te as R,Ae as T,Ke as a,Ve as b};
|