decocms 4.600.0 → 4.602.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/{AlertCircle-CShy6yDX.js → AlertCircle-B4BiejsA.js} +1 -1
- package/dist/client/assets/{AreaChart-BGct6q9f.js → AreaChart-KuZY2lVT.js} +1 -1
- package/dist/client/assets/{ArrowLeft-WKtVHs-Z.js → ArrowLeft-DpoZP_fX.js} +1 -1
- package/dist/client/assets/{ArrowRight-FtSbCfTm.js → ArrowRight-waHzto0g.js} +1 -1
- package/dist/client/assets/{ArrowUp-DEEf-mtS.js → ArrowUp-C2dE69W7.js} +1 -1
- package/dist/client/assets/{BookOpen01-2E_0y9OX.js → BookOpen01-Det9naRR.js} +1 -1
- package/dist/client/assets/{CartesianChart-UZ4xQJUQ.js → CartesianChart-BN-yZqL0.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CENUMi_W.js → CategoricalChart-D9Euwg-G.js} +1 -1
- package/dist/client/assets/{CheckCircle-DZKYp081.js → CheckCircle-BNEuJPHU.js} +1 -1
- package/dist/client/assets/{ChevronDown-DZmwX-ra.js → ChevronDown-_sr4up4D.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BBSQj61f.js → ChevronSelectorVertical-Ddl6sDao.js} +1 -1
- package/dist/client/assets/{ChevronUp-up6pfAf9.js → ChevronUp-CK7Ad_mD.js} +1 -1
- package/dist/client/assets/{CreditCard01-BPmia42q.js → CreditCard01-DaUYIK4F.js} +1 -1
- package/dist/client/assets/{Eye-BuU02LHf.js → Eye-CYtkFg_6.js} +1 -1
- package/dist/client/assets/{File02-C19wgG-g.js → File02-Dj9EXPDT.js} +1 -1
- package/dist/client/assets/{Fingerprint04-D5Hh-Z6T.js → Fingerprint04-kauf3nbZ.js} +1 -1
- package/dist/client/assets/{Globe04-BStLKLZ2.js → Globe04-YQZG_Qbl.js} +1 -1
- package/dist/client/assets/{Image01-DPsmXJM9.js → Image01-ChEwjYSJ.js} +1 -1
- package/dist/client/assets/{Key01-7I5yC-jW.js → Key01-DPAOwUET.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DUAhH4Wy.js → LayoutLeft-DUieRSDJ.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DGLo0pdz.js → LinkBroken01-jFeLEleD.js} +1 -1
- package/dist/client/assets/{MessageCircle01-BSvG5u-_.js → MessageCircle01-Cf5Qa_r1.js} +1 -1
- package/dist/client/assets/{Minus-BWHpZUKs.js → Minus-DVAnrb98.js} +1 -1
- package/dist/client/assets/{Monitor01-docIVUl5.js → Monitor01-D5to20Na.js} +1 -1
- package/dist/client/assets/{Play-2z1E087w.js → Play-DBG3GXxW.js} +1 -1
- package/dist/client/assets/{Plus-D8wmiIrv.js → Plus-BEFFoW2D.js} +1 -1
- package/dist/client/assets/{ReferenceLine-C2TsGNU_.js → ReferenceLine-B0MbZ3gg.js} +1 -1
- package/dist/client/assets/{SearchMd-DL0DTMXc.js → SearchMd-BVX4smTx.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BvzxucRv.js → ShoppingBag01-Bvm3sWvz.js} +1 -1
- package/dist/client/assets/{Sun-BiUlQLmT.js → Sun-D2fDzKM6.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-C2pVU_4J.js → SwitchHorizontal01-CgqtVqHH.js} +1 -1
- package/dist/client/assets/{Tool01-Cvtzb7gx.js → Tool01-B97c8idL.js} +1 -1
- package/dist/client/assets/{Tooltip-B1SzrgTJ.js → Tooltip-Dc_sC0mP.js} +1 -1
- package/dist/client/assets/{Trash01-9RQC1f5G.js → Trash01-Bi3fjf_i.js} +1 -1
- package/dist/client/assets/{Upload01-3Gw-mR9u.js → Upload01-B0N1cyeo.js} +1 -1
- package/dist/client/assets/{UserCheck01-BsbnQ5ut.js → UserCheck01-CjBhJIbn.js} +1 -1
- package/dist/client/assets/{UserSquare-B3Bg0K9g.js → UserSquare-D0WQA2_a.js} +1 -1
- package/dist/client/assets/{Users01-w98WkMA8.js → Users01-CNLWTh0g.js} +1 -1
- package/dist/client/assets/{XClose-rn7BTPbt.js → XClose-CUoBDo4j.js} +1 -1
- package/dist/client/assets/{Zap-DuqrcICg.js → Zap-D5Q1SF5c.js} +1 -1
- package/dist/client/assets/{access-gate-DW6dT6hG.js → access-gate-B0i3LdD3.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-41qDOna8.js → add-connection-dialog-QaQFm_sJ.js} +1 -1
- package/dist/client/assets/agent-app-CfZ2_qAg.js +1 -0
- package/dist/client/assets/{agent-assets-kUGQRLuY.js → agent-assets-Ci2UQ3kI.js} +1 -1
- package/dist/client/assets/{agent-automation-D56n8lJY.js → agent-automation-Nh9VJD4K.js} +3 -3
- package/dist/client/assets/{agent-automations-BAB9lGNM.js → agent-automations-BqhkNuFU.js} +1 -1
- package/dist/client/assets/agent-blog-Dqo7yXQe.js +2 -0
- package/dist/client/assets/agent-blog-post-DRqbdGm9.js +2 -0
- package/dist/client/assets/agent-business-case-CAQgqun2.js +1 -0
- package/dist/client/assets/{agent-calendar-Df_iHtIm.js → agent-calendar-C_2UFnlZ.js} +1 -1
- package/dist/client/assets/{agent-capabilities-DfwZEM8H.js → agent-capabilities-O4jivf-X.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DX3x7-FY.js → agent-connect-sources-e12r6R6U.js} +1 -1
- package/dist/client/assets/agent-deck-B7f0cKPF.js +1 -0
- package/dist/client/assets/{agent-e2e-Dcub2PY1.js → agent-e2e-JJXAQruo.js} +1 -1
- package/dist/client/assets/agent-experiments-BBLc6sXg.js +1 -0
- package/dist/client/assets/agent-file-D8sDhpVS.js +1 -0
- package/dist/client/assets/{agent-hosting-DOle-P9z.js → agent-hosting-_9l_P5l2.js} +1 -1
- package/dist/client/assets/{agent-icon-BmlBo_mr.js → agent-icon-y2SKybSP.js} +1 -1
- package/dist/client/assets/agent-library-DEBDdT7D.js +1 -0
- package/dist/client/assets/agent-library-file-DL3_cgBw.js +1 -0
- package/dist/client/assets/agent-overview-jQZh1dQH.js +1 -0
- package/dist/client/assets/{agent-releases-CVqZP5oT.js → agent-releases-DNsRG5FD.js} +2 -2
- package/dist/client/assets/agent-settings-C47TLRPM.js +1 -0
- package/dist/client/assets/{agent-site-editor-CloXRQ-i.js → agent-site-editor-B7tCcSvo.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DPz3ZIvH.js +2 -0
- package/dist/client/assets/agent-site-editor-content-COxClvme.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-CAin8bHi.js +1 -0
- package/dist/client/assets/agent-view-DkUvvSxM.js +1 -0
- package/dist/client/assets/{agent-view-guard-BsUiX4Ya.js → agent-view-guard-CHMCp4na.js} +1 -1
- package/dist/client/assets/ai-providers-DSfUDWX0.js +1 -0
- package/dist/client/assets/{alert-B0-bUkHo.js → alert-565fy8M1.js} +1 -1
- package/dist/client/assets/{analytics-sections-C_a4Zs81.js → analytics-sections-CEmkg_2B.js} +1 -1
- package/dist/client/assets/{api-keys-Drrcn4S1.js → api-keys-Bz1LryNm.js} +1 -1
- package/dist/client/assets/api-keys-dDDIaFES.js +1 -0
- package/dist/client/assets/app-editor-eBT6vuSI.js +1 -0
- package/dist/client/assets/{asset-utils-lEJDqLJA.js → asset-utils-BDk7TImr.js} +1 -1
- package/dist/client/assets/{auth-MiTZGjji.js → auth-D7Uu7n_e.js} +1 -1
- package/dist/client/assets/{auth-catchall-BrFXd0V5.js → auth-catchall-C_afKPwz.js} +1 -1
- package/dist/client/assets/{auth-entry-uafFmpu3.js → auth-entry-CrTd5O-K.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Cuozobog.js → auth-split-layout-n4Rc1SQ7.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BMCgWPAs.js → authenticate-and-persist-oauth-C7CYUnX8.js} +1 -1
- package/dist/client/assets/{automation-list-row-DjLl_-Ic.js → automation-list-row-CUaTcT3h.js} +1 -1
- package/dist/client/assets/{automation-runs-B1vurEol.js → automation-runs-C6tWYqF5.js} +1 -1
- package/dist/client/assets/{automations-DO8SymUj.js → automations-f99KCPWc.js} +1 -1
- package/dist/client/assets/{badge-PmwnY4hy.js → badge-CdntSWLw.js} +1 -1
- package/dist/client/assets/{block-document-C4GUR02r.js → block-document-dwVjY8ei.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CEy6ana7.js → blocks-preview-workspace-context-Dn_RDSoz.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-jg37ZdSd.js → blocks-tab-states-clMxtmY8.js} +1 -1
- package/dist/client/assets/{blog-preview-url-D3OQhPrj.js → blog-preview-url-BxEndwKO.js} +1 -1
- package/dist/client/assets/{blog-schema-LnsH0S5I.js → blog-schema-C2rs0u9l.js} +1 -1
- package/dist/client/assets/{blog-source-gate-votguItQ.js → blog-source-gate-BXEDNt3_.js} +1 -1
- package/dist/client/assets/{blog-view-gate-LkoX3aVt.js → blog-view-gate-BEqdtyeU.js} +1 -1
- package/dist/client/assets/{buckets-9o7-FCAF.js → buckets-CYYLsl9x.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DTfd4sR5.js → build-improve-prompt-doc-DkcwrW0T.js} +1 -1
- package/dist/client/assets/{calendar-Dw9g3jCh.js → calendar-CQCK8RMi.js} +1 -1
- package/dist/client/assets/{capability-load-error-DREzOdAI.js → capability-load-error-xI_9h3pT.js} +1 -1
- package/dist/client/assets/category-editor-C7K4UFzc.js +1 -0
- package/dist/client/assets/{category-tree-CT1N50Br.js → category-tree-k_En3Ghr.js} +1 -1
- package/dist/client/assets/{chart-Bv3hFD74.js → chart-ymFJV291.js} +2 -2
- package/dist/client/assets/chat-context-3o15fH-n.js +44 -0
- package/dist/client/assets/{chat-draft-9D8O6IhX.js → chat-draft-DkTLJIsD.js} +1 -1
- package/dist/client/assets/{checkbox-B1JBiKHt.js → checkbox-DG0VRyZt.js} +1 -1
- package/dist/client/assets/{choose-editor-DyATHiiR.js → choose-editor-BuYE419X.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BDHfhdbq.js → cli-auth-success-kFD_vr-8.js} +1 -1
- package/dist/client/assets/cms-settings-editor-CAjj_23i.js +1 -0
- package/dist/client/assets/{cms-store-drafts-46Bd4H4I.js → cms-store-drafts-JEUeezAR.js} +1 -1
- package/dist/client/assets/{collapsible-MMZS4bUW.js → collapsible-CUOhSps5.js} +1 -1
- package/dist/client/assets/collection-detail-BpgRZNNv.js +1 -0
- package/dist/client/assets/{collection-display-button-CNU2B9PT.js → collection-display-button-DmC5C_DJ.js} +1 -1
- package/dist/client/assets/{collection-search-RaF1TESZ.js → collection-search-gjXSkcT8.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DkHLZ70L.js → collection-table-wrapper-CzCDnwLo.js} +1 -1
- package/dist/client/assets/{collection-tabs-DQ1qcrf-.js → collection-tabs-COt6y1YG.js} +1 -1
- package/dist/client/assets/{combobox-1zkSCtBC.js → combobox-CH-LlA2d.js} +1 -1
- package/dist/client/assets/{command-lFozjt-f.js → command-BvXS_hwC.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-Cx6ucwDV.js → companion-mcps-section-hLgHegzh.js} +1 -1
- package/dist/client/assets/{config-ENUSei4z.js → config-Bn2m6WJs.js} +1 -1
- package/dist/client/assets/{connect-D5WcJbVU.js → connect-D3u8EgEX.js} +3 -3
- package/dist/client/assets/{connect-key-C6BV1Iwv.js → connect-key-txW2Hv5F.js} +1 -1
- package/dist/client/assets/{connect-layout-DjV0E6Nl.js → connect-layout-BkGodyIz.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-D2l3M31x.js → connect-source-dialog-Fx070D3z.js} +1 -1
- package/dist/client/assets/{connection-BjfhQTvi.js → connection-D4RX46wh.js} +1 -1
- package/dist/client/assets/{connection-card-CDIRX7rw.js → connection-card-DTpr3C0a.js} +1 -1
- package/dist/client/assets/{connection-detail-BIzjJxFf.js → connection-detail-CKts1Pg1.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-qS_yNMNY.js → connection-form-helpers-Bk5WpOzS.js} +1 -1
- package/dist/client/assets/{connection-slug-C1NpnAPZ.js → connection-slug-BuWfvd-P.js} +1 -1
- package/dist/client/assets/{connections-D27uBCQp.js → connections-qrxxtSxS.js} +1 -1
- package/dist/client/assets/{content-changes-D1-8LQ7K.js → content-changes-Dwsp4uvc.js} +1 -1
- package/dist/client/assets/{content-tab-7Dmz1NiK.js → content-tab-BoA46Vo_.js} +3 -3
- package/dist/client/assets/{context-DTrpa-1Y.js → context-D6GeU9Zr.js} +1 -1
- package/dist/client/assets/{context-menu-C3x16EIQ.js → context-menu-C28rrpwS.js} +1 -1
- package/dist/client/assets/{context-shell-BFCtTuzW.js → context-shell-BhsO74A1.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-D9cS-x9o.js → create-organization-dialog-WTgE1zLj.js} +1 -1
- package/dist/client/assets/{daily-pulse-Bi3n0TDe.js → daily-pulse-D5hqtiss.js} +1 -1
- package/dist/client/assets/{delete-copy-Bq1Zqo6Q.js → delete-copy-B6vUu2FZ.js} +1 -1
- package/dist/client/assets/{device-hint-DxfHiV8Q.js → device-hint-BDXdRFQX.js} +1 -1
- package/dist/client/assets/{discover-MaWSe6AZ.js → discover-BPJ5kKLU.js} +1 -1
- package/dist/client/assets/{domain-settings-RGqBkuzr.js → domain-settings-DAwNAh0_.js} +1 -1
- package/dist/client/assets/{drawer-BaaFg3R1.js → drawer-Co6CTMtJ.js} +1 -1
- package/dist/client/assets/{editor-BJ1E4lJs.js → editor-Dzcpm7rQ.js} +1 -1
- package/dist/client/assets/{editor-classes-BYet6QQd.js → editor-classes-BO4PtG02.js} +1 -1
- package/dist/client/assets/{empty-state-eYKU8nO4.js → empty-state-BfnU_rAm.js} +1 -1
- package/dist/client/assets/{empty-state-csW-GeIV.js → empty-state-BlV47Moy.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-C-ZtNaMR.js → experiments-tab-choice-BVnYtxf9.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D3bUe5Lp.js → extract-connection-data-CTwhrI6L.js} +1 -1
- package/dist/client/assets/{feature-gate-D1Gwsg7S.js → feature-gate-CRmt1R7b.js} +1 -1
- package/dist/client/assets/{feature-paywall-Cvsy56pL.js → feature-paywall-B2EmZsmT.js} +1 -1
- package/dist/client/assets/file-explorer-Bc2WuOJf.js +2 -0
- package/dist/client/assets/{file-preview-B4NZQa3r.js → file-preview-XajyFvxK.js} +1 -1
- package/dist/client/assets/{file-share-button-D_zlUria.js → file-share-button-DDpEu_Ts.js} +1 -1
- package/dist/client/assets/{file-type-icon-DH9FvqO6.js → file-type-icon-zloL09QV.js} +1 -1
- package/dist/client/assets/{folder-icon-CH-z3EGp.js → folder-icon-Cu1TcGzz.js} +1 -1
- package/dist/client/assets/{form-DoeHcF5c.js → form-CDXejFhy.js} +1 -1
- package/dist/client/assets/{frame-navigation-B-UfCzDd.js → frame-navigation-DKa5FPxb.js} +1 -1
- package/dist/client/assets/{gateway-client-CJDxmxSa.js → gateway-client-D6U4MBNC.js} +1 -1
- package/dist/client/assets/{general-DG60NVm4.js → general-CQTaUkvR.js} +1 -1
- package/dist/client/assets/{github-icon-Dv1ygj1J.js → github-icon-QoDNyjsW.js} +1 -1
- package/dist/client/assets/{held-block-view-BLxhK7ER.js → held-block-view-D9gMtmL4.js} +1 -1
- package/dist/client/assets/{home-C7A8b1LY.js → home--jqwm4Ku.js} +1 -1
- package/dist/client/assets/{home-overview-CnKi_Tkp.js → home-overview-CqfgDa-3.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-C0aDIUim.js → hosted-reconcile-Dgr_RAK2.js} +1 -1
- package/dist/client/assets/{icon-button-A0UAzKos.js → icon-button-BZOKf7Ue.js} +1 -1
- package/dist/client/assets/{index-CImiuf_8.js → index-0O8gsl-7.js} +1 -1
- package/dist/client/assets/{index-CymE2fVz.js → index-AYfJDRJw.js} +1 -1
- package/dist/client/assets/{index-D4jxMGCU.js → index-B26-jaFe.js} +1 -1
- package/dist/client/assets/{index-DigLw4F8.js → index-BcNAVbXw.js} +1 -1
- package/dist/client/assets/{index-Cs4d-rU4.js → index-C08yFDSB.js} +1 -1
- package/dist/client/assets/{index-CgEIJt8V.js → index-C75j3Sf-.js} +1 -1
- package/dist/client/assets/{index-B9iPbSrA.js → index-CGuDb95W.js} +1 -1
- package/dist/client/assets/{index-BDMu6bQ3.js → index-CMosAuta.js} +1 -1
- package/dist/client/assets/{index-Bm1kfakF.js → index-CUTEHf7n.js} +41 -41
- package/dist/client/assets/{index-PdC0-xb_.js → index-Cd1_o-mb.js} +1 -1
- package/dist/client/assets/{index-BMXIYEr-.js → index-CfzIzecT.js} +1 -1
- package/dist/client/assets/{index-DeObvrTG.js → index-CnTDG57D.js} +1 -1
- package/dist/client/assets/{index-I8YXcNLQ.js → index-Cu54PMEU.js} +1 -1
- package/dist/client/assets/{index-CJbm-bjr.js → index-D2ZLBdth.js} +1 -1
- package/dist/client/assets/{index-Cwm5p5sk.js → index-Dc3vpBAe.js} +1 -1
- package/dist/client/assets/index-DqzmkMvh.css +1 -0
- package/dist/client/assets/{index-QSfgjCsF.js → index-dYHd0KJA.js} +1 -1
- package/dist/client/assets/{index-redirect-DqxacVKg.js → index-redirect-CjNUMjXF.js} +1 -1
- package/dist/client/assets/{index-hXnS3gm2.js → index-teg9xGJw.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-DBJgsShk.js → infiniteQueryObserver-DN-l8Mqm.js} +1 -1
- package/dist/client/assets/{infra-billing-DWspnPMo.js → infra-billing-DJ_xLQlG.js} +1 -1
- package/dist/client/assets/{input-Cpkj1oOu.js → input-IAYjK7lR.js} +3 -3
- package/dist/client/assets/{input-Ml5iKJtl.js → input-e3Q-tVUa.js} +1 -1
- package/dist/client/assets/{integration-icon-BhUObfAr.js → integration-icon-BRVzdEXf.js} +1 -1
- package/dist/client/assets/{item-actions-SpeTllYG.js → item-actions-B4eKhNFa.js} +1 -1
- package/dist/client/assets/{jira-icon-Bq7voeGz.js → jira-icon-BnOlExTt.js} +1 -1
- package/dist/client/assets/{label-D53IaeZS.js → label-qad8ROdP.js} +1 -1
- package/dist/client/assets/{layout-WvgScUGb.js → layout-D0Rywy_R.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-CwPoX24t.js → legacy-admin-welcome-dialog-CXj5rtpz.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-jZOIaudw.js → legacy-agents-deep-JA5mOvHG.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BQJ5rRXx.js → legacy-main-redirect-BOQhVVaF.js} +1 -1
- package/dist/client/assets/{library-tab-C3WzWO1U.js → library-tab-LAu1Ggsf.js} +3 -3
- package/dist/client/assets/library-umU-1FuW.js +1 -0
- package/dist/client/assets/{login-C7zMUKPM.js → login-M7zYPzKO.js} +1 -1
- package/dist/client/assets/{markdown-CQMqqgOz.js → markdown-BhLg-Zjp.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BfqxDRa0.js → mcp-app-renderer-DrwYcKK7.js} +2 -2
- package/dist/client/assets/{mcp-oauth-B05XNx5F.js → mcp-oauth-CAZv4B3x.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CSRaHoLv.js → mcp-oauth-CqsxDqXO.js} +1 -1
- package/dist/client/assets/{members-BxAeAlCx.js → members-Bs-E2Sob.js} +1 -1
- package/dist/client/assets/{memory-Cg_NtjT-.js → memory-CSe1SzIo.js} +2 -2
- package/dist/client/assets/{mock-board-CYcWUp7f.js → mock-board-DVrSNZfW.js} +3 -3
- package/dist/client/assets/{monaco-editor-qCqkYYEk.js → monaco-editor-Cmq9PYT5.js} +1 -1
- package/dist/client/assets/{monitoring-DyDWdk8h.js → monitoring-D2aojvYm.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-DPFWESTC.js → monitoring-stats-row-BoP1mTEb.js} +1 -1
- package/dist/client/assets/{multi-select-CGtuxiXI.js → multi-select-C_FYq5kZ.js} +1 -1
- package/dist/client/assets/{mustache-BAZPoSXi.js → mustache-8wbk5neB.js} +1 -1
- package/dist/client/assets/{named-rule-step-DILtKyLq.js → named-rule-step-D4anrrdN.js} +1 -1
- package/dist/client/assets/{named-rule-view-QDNMCidz.js → named-rule-view-f0iw3ATx.js} +1 -1
- package/dist/client/assets/{new-project-dialog-D__ZumnI.js → new-project-dialog-CVc657qA.js} +1 -1
- package/dist/client/assets/{new-project-store-f5bwc2gs.js → new-project-store-ehAJK4hL.js} +1 -1
- package/dist/client/assets/{oauth-callback-ya17MbDE.js → oauth-callback-B9em2Y8Z.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BlkxqI4_.js → oauth-callback-ai-provider-Cb2kYh4X.js} +1 -1
- package/dist/client/assets/{oauth-consent-C3E6FGHS.js → oauth-consent-wow8JHEK.js} +1 -1
- package/dist/client/assets/{onboarding-DtaTP4Sy.js → onboarding-BHjqSyxW.js} +1 -1
- package/dist/client/assets/{openai-conversation-BIGlcpdW.js → openai-conversation-DQ21FiVA.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-ClE6sl2t.js → optimistic-project-sidebar-views-D735mKes.js} +1 -1
- package/dist/client/assets/{order-monitor-day-R_omMSFk.js → order-monitor-day-D8KmCDvZ.js} +1 -1
- package/dist/client/assets/{organization-choice-IgtHSfgl.js → organization-choice-e20yr5bu.js} +1 -1
- package/dist/client/assets/{orgs-BMnJ-Ls_.js → orgs-DC1K_oci.js} +1 -1
- package/dist/client/assets/{own-accounts-section-CpFPP6tw.js → own-accounts-section-DZjXH8uG.js} +1 -1
- package/dist/client/assets/{pair-CXG2-VJv.js → pair-B6XGEO8o.js} +1 -1
- package/dist/client/assets/{parse-sections-C11X_OB5.js → parse-sections-Cd3eqhNU.js} +2 -2
- package/dist/client/assets/plan-BG9a6OTV.js +1 -0
- package/dist/client/assets/{plan-ladder-CXooBnF6.js → plan-ladder-uOWkvedM.js} +1 -1
- package/dist/client/assets/plan-page-BxOjjyOQ.js +2 -0
- package/dist/client/assets/{plan-usage-card-kjpt_e_z.js → plan-usage-card-EE0IInE1.js} +2 -2
- package/dist/client/assets/{popover-BCGMbo55.js → popover-t4wJ-TtS.js} +1 -1
- package/dist/client/assets/post-calendar-VNdLJQb0.js +1 -0
- package/dist/client/assets/{post-editor-x_K_37Vg.js → post-editor-zOtVODsc.js} +2 -2
- package/dist/client/assets/{preview-content-awbhTKCR.js → preview-content-Bhl5Jk0E.js} +1 -1
- package/dist/client/assets/{preview-dialog-DOw3u2PH.js → preview-dialog-Denmgj-d.js} +1 -1
- package/dist/client/assets/{preview-panel-BpuuhbyF.js → preview-panel-JUqjzsve.js} +1 -1
- package/dist/client/assets/{preview-tab-DM5oCQbO.js → preview-tab-COr6U59M.js} +3 -3
- package/dist/client/assets/{primitives-DAv3J-jo.js → primitives-Dq7WtxY4.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-DDwjDVDo.js → product-picker-dialog-DkguIJb9.js} +1 -1
- package/dist/client/assets/{profile-ChH9A8z7.js → profile-Clqb7jMX.js} +1 -1
- package/dist/client/assets/project-app-view-CY3LztLj.js +1 -0
- package/dist/client/assets/{project-apps-DCKpFUfg.js → project-apps-BZHu6ziG.js} +1 -1
- package/dist/client/assets/{project-icon-CsOvQIQK.js → project-icon-4S0TtqeC.js} +1 -1
- package/dist/client/assets/{project-index-BaWNSq-B.js → project-index-CbwxAZlc.js} +1 -1
- package/dist/client/assets/project-reports-By6qiMKj.js +1 -0
- package/dist/client/assets/project-tasks-DhoozPsk.js +1 -0
- package/dist/client/assets/{projects-OuyJtgOF.js → projects-Df_L915V.js} +1 -1
- package/dist/client/assets/{projects-empty-state-shLgi5wv.js → projects-empty-state-Di4qGPL3.js} +1 -1
- package/dist/client/assets/{prompts-UYNIaDow.js → prompts-CCfcFfEL.js} +1 -1
- package/dist/client/assets/record-editor-BYF0WYdX.js +1 -0
- package/dist/client/assets/redirect-editor-CIZjHsWK.js +1 -0
- package/dist/client/assets/{reports-DaGALH9V.js → reports-C6sfy-vt.js} +1 -1
- package/dist/client/assets/reports-Dkc8wRTo.js +1 -0
- package/dist/client/assets/{reports-onboarding-p4RwpY5O.js → reports-onboarding-CvX7O5fR.js} +1 -1
- package/dist/client/assets/reports-tab-CqA9qzwy.js +2 -0
- package/dist/client/assets/repositories-B6GGh3Gl.js +1 -0
- package/dist/client/assets/{repositories-n9UiobdG.js → repositories-DwI8wNdv.js} +1 -1
- package/dist/client/assets/{repository-binding-BmnG5TxR.js → repository-binding-DyxjotEQ.js} +1 -1
- package/dist/client/assets/{repository-picker-De0GPaRE.js → repository-picker-Diifpqm3.js} +1 -1
- package/dist/client/assets/{require-capability-cZNhHutj.js → require-capability-GNq4582r.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BMBpLakt.js → required-auth-layout-CVH6Kpuo.js} +1 -1
- package/dist/client/assets/{reset-password-CCMxEq5y.js → reset-password-Cv2a-_UY.js} +1 -1
- package/dist/client/assets/{resizable-BkhiAkWq.js → resizable-DtQVeM4U.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-lwbzvlmp.js → resolve-tab-icon-Dd4QQOMZ.js} +1 -1
- package/dist/client/assets/{review-settings-DcjQ3GtR.js → review-settings-BFzl2biB.js} +1 -1
- package/dist/client/assets/{role-color-CfQEBoLM.js → role-color-DuywbXFk.js} +1 -1
- package/dist/client/assets/roles-BXlx9LX-.js +1 -0
- package/dist/client/assets/{route-BtgxUay9.js → route-BzAiKNmd.js} +1 -1
- package/dist/client/assets/{route-C1HkaVBq.js → route-CI04i3RU.js} +1 -1
- package/dist/client/assets/route-CiYCzoQC.js +1 -0
- package/dist/client/assets/{route-page-header-9bvdq0CA.js → route-page-header-Dyzw28fO.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-CvaJsg00.js → sandbox-git-api-BHkz0_nl.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-o-we4sh6.js → sandbox-lifecycle-context-D6WWTBdt.js} +1 -1
- package/dist/client/assets/{save-status-0_77vPF7.js → save-status-Cgw9Hlp4.js} +1 -1
- package/dist/client/assets/schema-AdvpV9XD.js +1 -0
- package/dist/client/assets/{schema-CYjzEKQK.js → schema-rfxhIdnI.js} +1 -1
- package/dist/client/assets/{scroll-area-BZSqU8Qg.js → scroll-area-CRlFqWco.js} +1 -1
- package/dist/client/assets/{search-input-CI2JAJKY.js → search-input-DaJb5UpE.js} +1 -1
- package/dist/client/assets/{search-toggle-6GIYvZRS.js → search-toggle-MXPrTy3O.js} +1 -1
- package/dist/client/assets/{secret-picker-k-Y5Do9o.js → secret-picker-Ct5n_id9.js} +1 -1
- package/dist/client/assets/{secrets-BRBBIxrl.js → secrets-DrDOFUSP.js} +1 -1
- package/dist/client/assets/{section-array-field-BQH3eI8l.js → section-array-field-ZEOag6le.js} +1 -1
- package/dist/client/assets/{sections-s9nF0BmL.js → sections-D3dG_Sv7.js} +1 -1
- package/dist/client/assets/sections-editor-DhtnmFJg.js +1 -0
- package/dist/client/assets/{select-UUQ-q9oo.js → select-CXHAcNGT.js} +1 -1
- package/dist/client/assets/{select-model-CpkygQiY.js → select-model-BGmlexh2.js} +1 -1
- package/dist/client/assets/{seo-editor-CQojRSno.js → seo-editor-D6SXZS-u.js} +1 -1
- package/dist/client/assets/{separator-fkDDGet3.js → separator-BmldSaZv.js} +1 -1
- package/dist/client/assets/{session-runtime-B0EpXuIX.js → session-runtime-DRkG9ReZ.js} +1 -1
- package/dist/client/assets/settings-tab-DLt79LWg.js +1 -0
- package/dist/client/assets/{sheet-DrryPrKH.js → sheet-DwYwF5Xe.js} +1 -1
- package/dist/client/assets/{shell-layout-Dtm12Wiy.js → shell-layout-bVoP9kOD.js} +1 -1
- package/dist/client/assets/{site-draft-actions-DA0WDizP.js → site-draft-actions-Dd2WZL1s.js} +1 -1
- package/dist/client/assets/{site-draft-view-C0I4KoVa.js → site-draft-view-CHYH9tQq.js} +1 -1
- package/dist/client/assets/site-editor-aI9Dau3o.js +1 -0
- package/dist/client/assets/{site-editor-toast-B7mzcNQB.js → site-editor-toast-BCn8hYHZ.js} +1 -1
- package/dist/client/assets/{skills-Cg9456cq.js → skills-CX729VjK.js} +1 -1
- package/dist/client/assets/{slider-DF5FWaon.js → slider-BdrBFFmy.js} +1 -1
- package/dist/client/assets/{sortable.esm-DRtCp0fn.js → sortable.esm-Dv7GaG48.js} +1 -1
- package/dist/client/assets/{sso-Bn1iRDvY.js → sso-CipUmxZh.js} +1 -1
- package/dist/client/assets/{suggestion-BoJJdGmd.js → suggestion-7L8A3fQy.js} +2 -2
- package/dist/client/assets/{super-agent-icon-7GRKjx3U.js → super-agent-icon-VCx3p9dd.js} +1 -1
- package/dist/client/assets/{switch-yJM06fNp.js → switch-CQr_229Y.js} +1 -1
- package/dist/client/assets/{synced-repos-BPhtaX5V.js → synced-repos-BdIctOIX.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BT3JJJNz.js → tab-icon-glyph-C6KuwbV2.js} +1 -1
- package/dist/client/assets/{table-BUt8Jhjr.js → table-5d9iQpdi.js} +1 -1
- package/dist/client/assets/{tabs-Ba6hhIKT.js → tabs-DEsdaVKa.js} +1 -1
- package/dist/client/assets/{task-board-DjHmGwky.js → task-board-ZELaPSpv.js} +1 -1
- package/dist/client/assets/{task-key-ftrd3J5s.js → task-key-ChxtLgH2.js} +2 -2
- package/dist/client/assets/{task-route-BdeGqsQi.js → task-route-hUi3-h4J.js} +1 -1
- package/dist/client/assets/{task-status-CovP2RlP.js → task-status-Dofkb2xp.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-Q6SzQXrL.js → taskboard-analytics-Bj-GjLdA.js} +1 -1
- package/dist/client/assets/tasks-BWiWGgqJ.js +1 -0
- package/dist/client/assets/{tasks-BIyvx17R.js → tasks-DsqIy_fY.js} +3 -3
- package/dist/client/assets/{textarea-CicBpiIo.js → textarea-J2V-aUg9.js} +1 -1
- package/dist/client/assets/thread-analytics-3idb3D-k.js +1 -0
- package/dist/client/assets/{thread-button-CJVwoCA8.js → thread-button-8lhq8YVG.js} +1 -1
- package/dist/client/assets/{thread-intent-DLUS-yM4.js → thread-intent-C-4a46Zs.js} +1 -1
- package/dist/client/assets/thread-route-BazgFB6Z.js +1 -0
- package/dist/client/assets/{thread-route-C6dcoLI6.js → thread-route-hABZCF2d.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-B4TTQtO5.js → thread-sheet-body-BeKCfAHB.js} +1 -1
- package/dist/client/assets/{time-range-picker-C-5Xj0CY.js → time-range-picker-Bs9UQrVS.js} +1 -1
- package/dist/client/assets/{toggle-group-Bu2eVQ6i.js → toggle-group-BSy9ppTS.js} +1 -1
- package/dist/client/assets/{tool-set-selector-DFPQZxq0.js → tool-set-selector-CtmnThz8.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CoaihmDC.js → toolbar-icon-button-C4Or2Ut1.js} +1 -1
- package/dist/client/assets/{tooltip-gcbYZwxC.js → tooltip-BtQY7me6.js} +1 -1
- package/dist/client/assets/{tooltipContext-BI8jp9W6.js → tooltipContext-BbkLIEo5.js} +1 -1
- package/dist/client/assets/{track-BGZHpowk.js → track-PksxcDl8.js} +1 -1
- package/dist/client/assets/{types-BKngmNWD.js → types-B29zOSVo.js} +1 -1
- package/dist/client/assets/{url-slug-CG2qSdoJ.js → url-slug-5tJR8vZd.js} +1 -1
- package/dist/client/assets/{usage-stats-DkZP-2zt.js → usage-stats-DJ1VHc0T.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BUfnZicu.js → use-ai-providers-Dya2oYuM.js} +1 -1
- package/dist/client/assets/{use-api-keys-426flCmW.js → use-api-keys-B_9Rq7TJ.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule--HLtI2IB.js → use-apply-named-rule-7lCiFUZu.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CuHn_eJY.js +1 -0
- package/dist/client/assets/{use-automations-C74OL6eb.js → use-automations-BpMr2z_i.js} +1 -1
- package/dist/client/assets/{use-autosave-CMUdyxJ4.js → use-autosave-Dg5clSHS.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-ovX-kkwX.js +1 -0
- package/dist/client/assets/use-blog-view-CpUCE6TS.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-DhGUOMf7.js → use-chat-layout-state-B6O7bs0d.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-DdLu6VIE.js → use-cms-publish-actions-B7gEo4o7.js} +1 -1
- package/dist/client/assets/{use-connect-companion-B4AtsSIo.js → use-connect-companion-DgHT9TTS.js} +1 -1
- package/dist/client/assets/{use-connection-C16q1hbs.js → use-connection-BAk2dsuv.js} +1 -1
- package/dist/client/assets/{use-content-sync-CMZxOD36.js → use-content-sync-4eASTxdJ.js} +1 -1
- package/dist/client/assets/{use-copy-thUFz6-q.js → use-copy-DPZUA7Gr.js} +1 -1
- package/dist/client/assets/{use-current-view-B8GTnEcc.js → use-current-view-SFKgOLYn.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BjihwHBG.js → use-date-fns-locale-Bd88zbns.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DjWPUIqZ.js → use-debounced-autosave-CQQwGbl2.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Ct5qlSK6.js → use-debounced-value-C75ZQTZG.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CITBTX5W.js → use-deco-credits-DzCgvsqG.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B21Nf-wv.js → use-decopilot-events-B93IJnco.js} +1 -1
- package/dist/client/assets/{use-delete-block-G59MfiPh.js → use-delete-block-CtnkMpgb.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BXABDK3t.js → use-delete-connection-B_EqAmPm.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CDJQzcvO.js → use-deployment-admin-DYC3wY2X.js} +1 -1
- package/dist/client/assets/{use-entitlements-BTRsFtoM.js → use-entitlements-DH1D5a0L.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CLjoICho.js → use-fast-preview-draft-url-CY0fb2LM.js} +1 -1
- package/dist/client/assets/{use-file-configs-BEgiTgol.js → use-file-configs-BiSZZuuf.js} +1 -1
- package/dist/client/assets/{use-id-selection-pbpvy7_O.js → use-id-selection-VNg6UPHp.js} +1 -1
- package/dist/client/assets/{use-in-settings-nBmDr90L.js → use-in-settings-Dv_cwy92.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BIxNjpZM.js → use-inbox-feed-Cdppe1Es.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll--ksdfdkO.js → use-infinite-scroll-BGl4Rgru.js} +1 -1
- package/dist/client/assets/{use-join-requests-CWuAJdLz.js → use-join-requests-CWbWtDgg.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-CCz7Ktbi.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-DisQ75Y2.js → use-mcp-auth-status-Ca77VI4X.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BRvedH7Y.js → use-mcp-client-BVU34o8K.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DR7oy3B2.js → use-mcp-prompts-CCB1WHsd.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DRmOHWPJ.js → use-mcp-tools-DagGRrIt.js} +1 -1
- package/dist/client/assets/{use-mobile-pXMsiqcl.js → use-mobile-LSpSJcPd.js} +1 -1
- package/dist/client/assets/{use-move-blocks-D3Ec5QNN.js → use-move-blocks-C_L5dYiU.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DBjH_n7x.js → use-navigate-to-agent-fspVUy0_.js} +1 -1
- package/dist/client/assets/{use-never-published-COSddoQh.js → use-never-published-Ch6taPxS.js} +1 -1
- package/dist/client/assets/{use-org-fs-oHVbnEW1.js → use-org-fs-CYycA4iA.js} +1 -1
- package/dist/client/assets/{use-org-notice-D-samRAE.js → use-org-notice-B0u21Cu1.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-ClN29sI7.js → use-org-repo-syncs-BHsdmb-p.js} +1 -1
- package/dist/client/assets/{use-org-sso-CjTvJs1C.js → use-org-sso-DZUFYVRN.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Cubqq6kD.js → use-organization-settings-C-YWM0uD.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-W20lHVA4.js → use-panel-navigate-Dcxy731-.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-hAPOMUof.js → use-project-native-view-presence-tfOMrkxo.js} +1 -1
- package/dist/client/assets/{use-project-scope-BN_bspzD.js → use-project-scope-3Q37Eln5.js} +1 -1
- package/dist/client/assets/{use-recent-apps-DjB0LrH3.js → use-recent-apps-BJuzSKH-.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DCVHCEGO.js → use-reports-diagnostic-C7haZBH4.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-Fh4ab2J1.js → use-sandbox-events-p6STSWE5.js} +1 -1
- package/dist/client/assets/{use-secrets-C96B2z29.js → use-secrets-GgVI8oKj.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BkoRzP8R.js → use-section-preview-base-M6_vC4eP.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CtO1E2x2.js → use-sidebar-collapsed-BjLeIURU.js} +1 -1
- package/dist/client/assets/{use-tags-ClTM1Evw.js → use-tags-B4229aWw.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-MV1dC8F0.js → use-task-board-analytics---dDdKFB.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BpzSYDBi.js → use-task-board-item-prs-WHlIf_av.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DPgZ__oW.js → use-task-board-items-BFsmDyZa.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-CVIyeU-9.js → use-task-board-prompts-Dwu6_vIJ.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BJWRQyNZ.js → use-task-metadata-CUi2_x3B.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DhPZgS9-.js → use-thread-outputs-DYau24LH.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-Bp1qVtwW.js → use-view-draft-kind-DECgwRep.js} +1 -1
- package/dist/client/assets/{use-voice-input-BpwMnzE1.js → use-voice-input-Ta8CFXyw.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dmz76p-1.js +1 -0
- package/dist/client/assets/{useQueries-YIrWWF7m.js → useQueries-CcshDhiG.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BnvO_4S5.js +1 -0
- package/dist/client/assets/{users-C0Fg7osF.js → users-BFBeKe01.js} +1 -1
- package/dist/client/assets/{utils-BdqUM1fA.js → utils-VRJjHnOC.js} +1 -1
- package/dist/client/assets/{variant-calendar-Crwy1Gij.js → variant-calendar-y7ldyxeY.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CiDkHVMl.js → variant-matcher-override-ZGKfLyll.js} +1 -1
- package/dist/client/assets/{view-header-Br4cuG1F.js → view-header-BZr0Ea-N.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BOnfjRXy.js → virtual-mcp-BNBTH_8N.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-hh2syLPB.js → watch-sse-pool-BqAScN4r.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +893 -862
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BE36cFAC.js +0 -1
- package/dist/client/assets/agent-blog-post-4NG_W-ic.js +0 -2
- package/dist/client/assets/agent-blog-wzJ7xZUr.js +0 -2
- package/dist/client/assets/agent-deck-CaQ-cUn9.js +0 -1
- package/dist/client/assets/agent-experiments-BIjkBrDb.js +0 -1
- package/dist/client/assets/agent-file-Dft8zwWy.js +0 -1
- package/dist/client/assets/agent-library-Bp6rWEFG.js +0 -1
- package/dist/client/assets/agent-library-file-CFX46C1f.js +0 -1
- package/dist/client/assets/agent-overview-Scs4YPy1.js +0 -1
- package/dist/client/assets/agent-settings-H4zJXShv.js +0 -1
- package/dist/client/assets/agent-site-editor-code-68kgy3y_.js +0 -2
- package/dist/client/assets/agent-site-editor-content-CBaeiU7Y.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Cao70n6T.js +0 -1
- package/dist/client/assets/agent-view-CqlrAct7.js +0 -1
- package/dist/client/assets/ai-providers-4GV0vhZ4.js +0 -1
- package/dist/client/assets/api-keys-B3ujQmM7.js +0 -1
- package/dist/client/assets/app-editor-COdhXw4U.js +0 -1
- package/dist/client/assets/category-editor-U2mE2Uq7.js +0 -1
- package/dist/client/assets/chat-context-B0mIAvmD.js +0 -44
- package/dist/client/assets/cms-settings-editor-BApbMHHr.js +0 -1
- package/dist/client/assets/collection-detail-DDWfF_wY.js +0 -1
- package/dist/client/assets/file-explorer-Dt6KMNM7.js +0 -2
- package/dist/client/assets/index-MLo7YobU.css +0 -1
- package/dist/client/assets/library-xWw2qc62.js +0 -1
- package/dist/client/assets/plan-CZZdqjy4.js +0 -1
- package/dist/client/assets/post-calendar-DgNCVo3o.js +0 -1
- package/dist/client/assets/project-app-view-pWp3ZiTC.js +0 -1
- package/dist/client/assets/project-reports-BFGfWfOY.js +0 -1
- package/dist/client/assets/project-tasks-B0qy6YyK.js +0 -1
- package/dist/client/assets/record-editor-tWo5ViDa.js +0 -1
- package/dist/client/assets/redirect-editor-BKqLWwnk.js +0 -1
- package/dist/client/assets/reports-CRTbYefZ.js +0 -1
- package/dist/client/assets/reports-tab-DHgzfmh-.js +0 -2
- package/dist/client/assets/repositories-D2EXyFhB.js +0 -1
- package/dist/client/assets/roles-BBqkj6Ec.js +0 -1
- package/dist/client/assets/route-COQ-KuwC.js +0 -1
- package/dist/client/assets/schema-BUUxEy3p.js +0 -1
- package/dist/client/assets/sections-editor-B3aKAu_5.js +0 -1
- package/dist/client/assets/settings-tab-CcZ_HjR5.js +0 -1
- package/dist/client/assets/site-editor-CyQYsqmX.js +0 -1
- package/dist/client/assets/tasks-D7SUrwDU.js +0 -1
- package/dist/client/assets/thread-analytics-CLjMgoaY.js +0 -1
- package/dist/client/assets/thread-route-Cj0uYV4E.js +0 -1
- package/dist/client/assets/use-ask-in-chat-CiVsfxtO.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BjtFyGqs.js +0 -1
- package/dist/client/assets/use-blog-view-C8xBHbun.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-BKwmMvsf.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DHgrT3Au.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BwwCJ1MU.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as C,c1 as y,j as i,c6 as P,c7 as O,
|
|
1
|
+
import{r as C,c1 as y,j as i,c6 as P,c7 as O,eU as v,g0 as B,c0 as U,g1 as q,g2 as R,ck as H,b_ as K,c as w,m as I}from"./index-CUTEHf7n.js";import{A as L,t as J}from"./active-indicator-CCMhAsc_.js";import{T as Q,a as W,c as X}from"./tooltip-BtQY7me6.js";var N="Toggle",A=C.forwardRef((o,e)=>{const{pressed:t,defaultPressed:n,onPressedChange:s,...r}=o,[a,l]=y({prop:t,onChange:s,defaultProp:n??!1,caller:N});return i.jsx(P.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":o.disabled?"":void 0,...r,ref:e,onClick:O(o.onClick,()=>{o.disabled||l(!a)})})});A.displayName=N;var m="ToggleGroup",[E]=H(m,[R]),V=R(),z=v.forwardRef((o,e)=>{const{type:t,...n}=o;if(t==="single"){const s=n;return i.jsx(Y,{...s,ref:e})}if(t==="multiple"){const s=n;return i.jsx(Z,{...s,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${m}\``)});z.displayName=m;var[S,M]=E(m),Y=v.forwardRef((o,e)=>{const{value:t,defaultValue:n,onValueChange:s=()=>{},...r}=o,[a,l]=y({prop:t,defaultProp:n??"",onChange:s,caller:m});return i.jsx(S,{scope:o.__scopeToggleGroup,type:"single",value:v.useMemo(()=>a?[a]:[],[a]),onItemActivate:l,onItemDeactivate:v.useCallback(()=>l(""),[l]),children:i.jsx($,{...r,ref:e})})}),Z=v.forwardRef((o,e)=>{const{value:t,defaultValue:n,onValueChange:s=()=>{},...r}=o,[a,l]=y({prop:t,defaultProp:n??[],onChange:s,caller:m}),d=v.useCallback(g=>l((c=[])=>[...c,g]),[l]),u=v.useCallback(g=>l((c=[])=>c.filter(p=>p!==g)),[l]);return i.jsx(S,{scope:o.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:d,onItemDeactivate:u,children:i.jsx($,{...r,ref:e})})});z.displayName=m;var[ee,te]=E(m),$=v.forwardRef((o,e)=>{const{__scopeToggleGroup:t,disabled:n=!1,rovingFocus:s=!0,orientation:r,dir:a,loop:l=!0,...d}=o,u=V(t),g=U(a),c={role:"group",dir:g,...d};return i.jsx(ee,{scope:t,rovingFocus:s,disabled:n,children:s?i.jsx(q,{asChild:!0,...u,orientation:r,dir:g,loop:l,children:i.jsx(P.div,{...c,ref:e})}):i.jsx(P.div,{...c,ref:e})})}),j="ToggleGroupItem",D=v.forwardRef((o,e)=>{const t=M(j,o.__scopeToggleGroup),n=te(j,o.__scopeToggleGroup),s=V(o.__scopeToggleGroup),r=t.value.includes(o.value),a=n.disabled||o.disabled,l={...o,pressed:r,disabled:a},d=v.useRef(null);return n.rovingFocus?i.jsx(B,{asChild:!0,...s,focusable:!a,active:r,ref:d,children:i.jsx(k,{...l,ref:e})}):i.jsx(k,{...l,ref:e})});D.displayName=j;var k=v.forwardRef((o,e)=>{const{__scopeToggleGroup:t,value:n,...s}=o,r=M(j,t),a={role:"radio","aria-checked":o.pressed,"aria-pressed":void 0},l=r.type==="single"?a:void 0;return i.jsx(A,{...l,...s,ref:e,onPressedChange:d=>{d?r.onItemActivate(n):r.onItemDeactivate(n)}})}),ae=z,oe=D;const ne=K("inline-flex items-center justify-center gap-2 rounded-full text-sm font-medium hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-muted data-[state=on]:hover:bg-secondary-hover data-[state=on]:text-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-ring outline-none transition-[color,background-color,box-shadow] whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"bg-card shadow-edge hover:bg-accent hover:text-accent-foreground",segmented:"text-muted-foreground hover:bg-transparent hover:text-foreground data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-[0_1px_2px_0_#0000000d] dark:data-[state=on]:bg-accent"},size:{default:"h-8 px-3 min-w-8",sm:"h-7 px-2.5 min-w-7",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),F=C.createContext({size:"default",variant:"default"}),re=J(':scope > [data-slot="toggle-group-item"][data-state="on"]');function ce(o){const e=w.c(24);let t,n,s,r,a;e[0]!==o?({className:n,variant:a,size:r,children:t,...s}=o,e[0]=o,e[1]=t,e[2]=n,e[3]=s,e[4]=r,e[5]=a):(t=e[1],n=e[2],s=e[3],r=e[4],a=e[5]);const l=a==="segmented"&&s.type==="single",d=l||void 0;let u;e[6]!==n?(u=I("group/toggle-group relative flex w-fit items-center rounded-full data-[variant=segmented]:bg-muted data-[variant=segmented]:gap-0.5 data-[variant=segmented]:p-0.5 data-[variant=outline]:after:pointer-events-none data-[variant=outline]:after:absolute data-[variant=outline]:after:inset-0 data-[variant=outline]:after:rounded-full data-[variant=outline]:after:shadow-edge data-[variant=outline]:bg-card data-[variant=outline]:after:content-['']",n),e[6]=n,e[7]=u):u=e[7];let g;e[8]!==l?(g=l&&i.jsx("span",{"aria-hidden":!0,ref:re,"data-slot":"toggle-group-indicator",className:I(L,"bg-background dark:bg-accent top-0.5 bottom-0.5 rounded-full shadow-[0_1px_2px_0_#0000000d] opacity-0 in-data-has-active:opacity-100")}),e[8]=l,e[9]=g):g=e[9];let c;e[10]!==r||e[11]!==a?(c={variant:a,size:r},e[10]=r,e[11]=a,e[12]=c):c=e[12];let p;e[13]!==t||e[14]!==c?(p=i.jsx(F.Provider,{value:c,children:t}),e[13]=t,e[14]=c,e[15]=p):p=e[15];let f;return e[16]!==s||e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==g||e[21]!==p||e[22]!==a?(f=i.jsxs(ae,{"data-slot":"toggle-group","data-variant":a,"data-size":r,"data-sliding":d,className:u,...s,children:[g,p]}),e[16]=s,e[17]=r,e[18]=d,e[19]=u,e[20]=g,e[21]=p,e[22]=a,e[23]=f):f=e[23],f}function se(o){const e=w.c(4);let t;if(e[0]!==o){const{"data-state":s,...r}=o;t=r,e[0]=o,e[1]=t}else t=e[1];let n;return e[2]!==t?(n=i.jsx(oe,{...t}),e[2]=t,e[3]=n):n=e[3],n}function ue(o){const e=w.c(30);let t,n,s,r,a,l;e[0]!==o?({className:n,children:t,variant:l,size:r,tooltip:a,...s}=o,e[0]=o,e[1]=t,e[2]=n,e[3]=s,e[4]=r,e[5]=a,e[6]=l):(t=e[1],n=e[2],s=e[3],r=e[4],a=e[5],l=e[6]);const d=C.useContext(F);let u;e[7]!==t?(u=C.isValidElement(t),e[7]=t,e[8]=u):u=e[8];const g=u,c=d.variant||l,p=d.size||r,f=g||void 0;let x;e[9]!==n||e[10]!==d.size||e[11]!==d.variant||e[12]!==r||e[13]!==l?(x=I(ne({variant:d.variant||l,size:d.size||r}),"relative z-10 min-w-0 flex-1 shrink-0 rounded-none first:rounded-l-full last:rounded-r-full focus:z-10 focus-visible:z-10 data-[icon-only]:aspect-square data-[icon-only]:px-0","data-[variant=segmented]:flex-none data-[variant=segmented]:rounded-full in-data-sliding:data-[state=on]:bg-transparent in-data-sliding:data-[state=on]:shadow-none","data-[variant=outline]:shadow-none data-[variant=outline]:border-hairline data-[variant=outline]:not-first:border-l",n),e[9]=n,e[10]=d.size,e[11]=d.variant,e[12]=r,e[13]=l,e[14]=x):x=e[14];let T;e[15]!==t||e[16]!==s||e[17]!==c||e[18]!==p||e[19]!==f||e[20]!==x||e[21]!==a?(T=i.jsx(se,{"data-slot":"toggle-group-item","data-variant":c,"data-size":p,"data-icon-only":f,"aria-label":a,className:x,...s,children:t}),e[15]=t,e[16]=s,e[17]=c,e[18]=p,e[19]=f,e[20]=x,e[21]=a,e[22]=T):T=e[22];const G=T;if(!a)return G;let h;e[23]!==G?(h=i.jsx(Q,{asChild:!0,children:G}),e[23]=G,e[24]=h):h=e[24];let b;e[25]!==a?(b=i.jsx(W,{children:a}),e[25]=a,e[26]=b):b=e[26];let _;return e[27]!==h||e[28]!==b?(_=i.jsxs(X,{children:[h,b]}),e[27]=h,e[28]=b,e[29]=_):_=e[29],_}export{ce as T,ue as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as re,r as T,a6 as ie,T as ce,K as ae,i as de,dQ as me,j as s,m as C,h as B,B as ue,c as R}from"./index-
|
|
1
|
+
import{b as re,r as T,a6 as ie,T as ce,K as ae,i as de,dQ as me,j as s,m as C,h as B,B as ue,c as R}from"./index-CUTEHf7n.js";import{I as K}from"./integration-icon-BRVzdEXf.js";import{u as fe}from"./use-infinite-scroll-BGl4Rgru.js";import{C as U}from"./checkbox-DG0VRyZt.js";import{i as xe}from"./ArrowLeft-DpoZP_fX.js";import{u as he}from"./useSuspenseInfiniteQuery-BnvO_4S5.js";import{u as pe}from"./use-mcp-client-BVU34o8K.js";import{C as ge}from"./collection-search-gjXSkcT8.js";import{p as Se}from"./connection-D4RX46wh.js";function be(i){const e=R.c(21),{connection:n,isSelected:m,hasToolsEnabled:l,activeToolsCount:h,totalToolsCount:b,onSelect:p,onToggle:j}=i,r=m?"bg-accent/50":"hover:bg-accent";let c;e[0]!==r?(c=C("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",r),e[0]=r,e[1]=c):c=e[1];let a;e[2]!==n.icon||e[3]!==n.title?(a=s.jsx(K,{icon:n.icon,name:n.title,size:"xs"}),e[2]=n.icon,e[3]=n.title,e[4]=a):a=e[4];let d;e[5]!==n.title?(d=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:n.title})}),e[5]=n.title,e[6]=d):d=e[6];let u;e[7]!==p||e[8]!==a||e[9]!==d?(u=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:p,children:[a,d]}),e[7]=p,e[8]=a,e[9]=d,e[10]=u):u=e[10];let f;e[11]!==h||e[12]!==n.tools||e[13]!==l||e[14]!==j||e[15]!==b?(f=n.tools&&n.tools.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[h,"/",b]}),s.jsx(U,{checked:l,onCheckedChange:j,onClick:je})]}),e[11]=h,e[12]=n.tools,e[13]=l,e[14]=j,e[15]=b,e[16]=f):f=e[16];let x;return e[17]!==c||e[18]!==u||e[19]!==f?(x=s.jsxs("div",{className:c,children:[u,f]}),e[17]=c,e[18]=u,e[19]=f,e[20]=x):x=e[20],x}function je(i){return i.stopPropagation()}function ve(i){const e=R.c(21),{connectionId:n,tool:m,isSelected:l,onToggle:h,badge:b}=i,p=`tool-${n}-${m.name}`,j=l?"text-foreground":"text-muted-foreground";let r;e[0]!==j?(r=C("text-sm font-medium",j),e[0]=j,e[1]=r):r=e[1];let c;e[2]!==r||e[3]!==m.name?(c=s.jsx("span",{className:r,children:m.name}),e[2]=r,e[3]=m.name,e[4]=c):c=e[4];let a;e[5]!==b||e[6]!==c?(a=s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c,b]}),e[5]=b,e[6]=c,e[7]=a):a=e[7];let d;e[8]!==m.description?(d=m.description&&s.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:m.description}),e[8]=m.description,e[9]=d):d=e[9];let u;e[10]!==a||e[11]!==d?(u=s.jsxs("div",{className:"flex-1 min-w-0",children:[a,d]}),e[10]=a,e[11]=d,e[12]=u):u=e[12];const f=`tool-${n}-${m.name}`;let x;e[13]!==l||e[14]!==h||e[15]!==f?(x=s.jsx("div",{className:"flex items-center shrink-0",children:s.jsx(U,{id:f,checked:l,onCheckedChange:h,onClick:Ne})}),e[13]=l,e[14]=h,e[15]=f,e[16]=x):x=e[16];let N;return e[17]!==p||e[18]!==u||e[19]!==x?(N=s.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-accent cursor-pointer group will-change-auto",htmlFor:p,children:[u,x]}),e[17]=p,e[18]=u,e[19]=x,e[20]=N):N=e[20],N}function Ne(i){return i.stopPropagation()}function Fe({toolSet:i,onToolSetChange:e,excludeVirtualMcpId:n,searchQuery:m}){const l=re(),[h,b]=T.useState(""),p=m!==void 0?m:h,j=T.useDeferredValue(p),[r,c]=T.useState("all"),[a,d]=T.useState(!1),u=T.useRef(new Set(Object.keys(i))),{org:f}=ie(),x=pe({connectionId:ce,orgId:f.id,orgSlug:f.slug}),N=100,P=j.trim(),I=P?{operator:"or",conditions:[{field:["title"],operator:"contains",value:P},{field:["description"],operator:"contains",value:P}]}:void 0,O=!!n,q={...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:N,offset:0,...O&&{include_virtual:!0}},V=JSON.stringify(q),{data:_,fetchNextPage:G,hasNextPage:J,isFetchingNextPage:F}=he({queryKey:ae.collectionListInfinite(x,f.id,"","CONNECTIONS",V),queryFn:async({pageParam:t=0})=>(await x.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:N,offset:t,...O&&{include_virtual:!0}}})).structuredContent,initialPageParam:0,getNextPageParam:(t,o)=>{if(t?.hasMore)return o.reduce((g,S)=>g+(S?.items?.length??0),0)},staleTime:3e4}),M=_?.pages.flatMap(t=>t?.items??[])??[],Y=fe(G,J??!1,F),A=n?M.filter(t=>t.connection_type!=="VIRTUAL"?!0:Se(t.connection_url)!==n):M,L=u.current,Z=[...L.values()].map(t=>A.find(o=>o.id===t)).filter(t=>t!==void 0),H=A.filter(t=>!L.has(t.id)),E=[...Z,...H],Q=t=>{const o=i[t];return o!==void 0&&o.length>0},z=E.filter(t=>{if(r==="all")return!0;const o=Q(t.id);return r==="selected"?o:r==="unselected"?!o:!0}),[y,D]=T.useState(E[0]?.id??null),v=y?E.find(t=>t.id===y)??null:null,{data:W,isFetching:X}=de({...me(f.id,"CONNECTIONS",y??void 0,x),enabled:!!y}),w=W?.item?.tools??[],ee=(t,o)=>i[t]?.includes(o)??!1,te=(t,o)=>{const g=i[t]??[],S=g.includes(o),k={...i};if(S){const $=g.filter(le=>le!==o);$.length===0?delete k[t]:k[t]=$}else k[t]=[...g,o];e(k)},se=t=>{if((i[t]??[]).length>0){const S={...i};delete S[t],e(S);return}const g=t===y?w:[];if(!g.length){D(t);return}e({...i,[t]:g.map(S=>S.name)})},oe=t=>{D(t),d(!0)},ne=()=>{d(!1)};return s.jsxs("div",{className:"flex h-full",children:[s.jsxs("div",{className:C("w-full md:w-80 border-r border-border flex flex-col",a&&"hidden md:flex"),children:[m===void 0&&s.jsx(ge,{value:h,onChange:b,placeholder:l("common.toolSetSelector.searchPlaceholder")}),s.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[s.jsx("button",{type:"button",onClick:()=>c("all"),className:C("flex-1 px-3 py-1.5 text-xs font-medium rounded-lg transition-colors border cursor-pointer",r==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:l("common.toolSetSelector.filterAll")}),s.jsx("button",{type:"button",onClick:()=>c("selected"),className:C("flex-1 px-3 py-1.5 text-xs font-medium rounded-lg transition-colors border cursor-pointer",r==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:l("common.toolSetSelector.filterSelected")}),s.jsx("button",{type:"button",onClick:()=>c("unselected"),className:C("flex-1 px-3 py-1.5 text-xs font-medium rounded-lg transition-colors border cursor-pointer",r==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:l("common.toolSetSelector.filterUnselected")})]}),s.jsx("div",{className:"flex-1 overflow-auto",children:z.length===0?s.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:l(p?"common.toolSetSelector.noConnectionsFound":r==="selected"?"common.toolSetSelector.noServersSelected":r==="unselected"?"common.toolSetSelector.noUnselectedServers":"common.toolSetSelector.noConnectionsAvailable")}):s.jsxs("div",{className:"p-2 space-y-1",children:[z.map(t=>{const o=y===t.id,g=o?w.length:0,S=i[t.id]?.length??0;return s.jsx(be,{connection:{...t,tools:o?w:t.tools},isSelected:o,hasToolsEnabled:Q(t.id),activeToolsCount:S,totalToolsCount:g,onSelect:()=>oe(t.id),onToggle:()=>se(t.id)},t.id)}),s.jsx("div",{ref:Y,className:"h-4"}),F&&s.jsx("div",{className:"flex justify-center py-3",children:s.jsx(B,{className:"size-4.5 text-muted-foreground"})})]})})]}),s.jsx("div",{className:C("flex-1 flex-col",a?"flex":"hidden md:flex"),children:v?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[s.jsx(ue,{variant:"ghost",size:"icon",onClick:ne,className:"shrink-0",children:s.jsx(xe,{size:20})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx(K,{icon:v.icon,name:v.title,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:v.title}),v.description&&s.jsx("p",{className:"text-sm text-muted-foreground truncate",children:v.description})]})]})]}),s.jsx("div",{className:"flex-1 overflow-auto p-4",children:X?s.jsx("div",{className:"flex justify-center py-8",children:s.jsx(B,{className:"size-4.5 text-muted-foreground"})}):w.length===0?s.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:l("common.toolSetSelector.noToolsAvailable")}):s.jsx("div",{className:"space-y-2",children:w.map(t=>s.jsx(ve,{connectionId:v.id,tool:t,isSelected:ee(v.id,t.name),onToggle:()=>te(v.id,t.name)},t.name))})})]}):s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("div",{className:"text-sm text-muted-foreground text-center",children:l("common.toolSetSelector.selectConnection")})})})]})}export{ve as T,Fe as a};
|
package/dist/client/assets/{toolbar-icon-button-CoaihmDC.js → toolbar-icon-button-C4Or2Ut1.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,m as u,j as b,B as d}from"./index-
|
|
1
|
+
import{c as f,m as u,j as b,B as d}from"./index-CUTEHf7n.js";const m="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function v(n){return u("[transition:background-color_180ms_ease,color_180ms_ease] hover:bg-sidebar-accent hover:text-sidebar-foreground dark:hover:bg-sidebar-accent",m,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60")}function p(n){const e=f.c(14);let o,s,t,i,c;e[0]!==n?({active:o,className:s,ref:i,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=i,e[5]=c):(o=e[1],s=e[2],t=e[3],i=e[4],c=e[5]);const l=c===void 0?"button":c;let r;e[6]!==o||e[7]!==s?(r=u("relative size-10 md:size-7","max-md:[&_svg:not([class*='size-'])]:size-5",v(o),s),e[6]=o,e[7]=s,e[8]=r):r=e[8];let a;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==l?(a=b.jsx(d,{ref:i,type:l,variant:"ghost",size:"icon-sm",className:r,...t}),e[9]=t,e[10]=i,e[11]=r,e[12]=l,e[13]=a):a=e[13],a}export{m as I,p as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c4 as H,j as c,c5 as K,c6 as W,c7 as C,e1 as S,c9 as J,c3 as Q,c1 as Z,c2 as ee,cb as $,cj as te,cm as oe,ck as re,e2 as ne,cn as se,c as j,m as ae}from"./index-
|
|
1
|
+
import{r as i,c4 as H,j as c,c5 as K,c6 as W,c7 as C,e1 as S,c9 as J,c3 as Q,c1 as Z,c2 as ee,cb as $,cj as te,cm as oe,ck as re,e2 as ne,cn as se,c as j,m as ae}from"./index-CUTEHf7n.js";import{R as ie}from"./index-C08yFDSB.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,k="tooltip.open",[ce,L]=O(G),F=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=G;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=L(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=Q(),f=i.useRef(0),h=l??a.disableHoverableContent,m=d??a.delayDuration,g=i.useRef(!1),[y,T]=Z({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(k))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(ee,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():E()},[a.isOpenDelayedRef,N,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};z.displayName=R;var A="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(A,t),s=L(A,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(K,{asChild:!0,...l,children:c.jsx(W.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=A;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(J,{asChild:!0,container:n,children:r})})})};U.displayName=M;var b="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=L(b,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,m)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},T=ge(y,g.getBoundingClientRect()),w=me(y,T),E=Te(m.getBoundingClientRect()),P=Ce([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),m=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",m),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",m)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},T=a?.contains(g)||u?.contains(g),w=!ye(y,l);T?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(Y,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(k,u),()=>document.removeEventListener(k,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=b;var q="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=q;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function me(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function Te(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ce(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),be(e)}function be(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=F,Ee=z,Pe=B,Re=U,_e=V,je=X;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Ae(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-lg px-2 py-1 text-xs font-medium text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Le as T,Me as a,Oe as b,Ae as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,fD as pe,d5 as De}from"./index-Bm1kfakF.js";import{af as Ie,ag as w,ah as L,N as $,ai as fe,B as _e,I as $e,aj as Ne,J as Re,ak as g,M as O,L as F,a2 as Ae,al as Le,am as ke,a5 as M,an as Ce,ao as Me,ap as qe}from"./CategoricalChart-CENUMi_W.js";const ve=Math.cos,T=Math.sin,f=Math.sqrt,S=Math.PI,I=2*S,q={draw(e,t){const r=f(t/S);e.moveTo(r,0),e.arc(0,0,r,0,I)}},We={draw(e,t){const r=f(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},me=f(1/3),Ke=me*2,Ue={draw(e,t){const r=f(t/Ke),n=r*me;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Be={draw(e,t){const r=f(t),n=-r/2;e.rect(n,n,r,r)}},Ge=.8908130915292852,ye=T(S/10)/T(7*S/10),He=T(I/10)*ye,Ve=-ve(I/10)*ye,Xe={draw(e,t){const r=f(t*Ge),n=He*r,i=Ve*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=I*a/5,l=ve(o),c=T(o);e.lineTo(c*r,-l*r),e.lineTo(l*n-c*i,c*n+l*i)}e.closePath()}},N=f(3),Ye={draw(e,t){const r=-f(t/(N*3));e.moveTo(0,r*2),e.lineTo(-N*r,-r),e.lineTo(N*r,-r),e.closePath()}},u=-.5,p=f(3)/2,k=1/f(12),Je=(k/2+1)*3,Ze={draw(e,t){const r=f(t/Je),n=r/2,i=r*k,a=n,o=r*k+r,l=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,c),e.lineTo(u*n-p*i,p*n+u*i),e.lineTo(u*a-p*o,p*a+u*o),e.lineTo(u*l-p*c,p*l+u*c),e.lineTo(u*n+p*i,u*i-p*n),e.lineTo(u*a+p*o,u*o-p*a),e.lineTo(u*l+p*c,u*c-p*l),e.closePath()}};function Fe(e,t){let r=null,n=Ie(i);e=typeof e=="function"?e:w(e||q),t=typeof t=="function"?t:w(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:w(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:w(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}var Qe=["type","size","sizeType"];function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(null,arguments)}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q(Object(r),!0).forEach(function(n){ze(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ze(e,t,r){return(t=xe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e){var t=er(e,"string");return typeof t=="symbol"?t:t+""}function er(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rr(e,t){if(e==null)return{};var r,n,i=tr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function tr(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var be={symbolCircle:q,symbolCross:We,symbolDiamond:Ue,symbolSquare:Be,symbolStar:Xe,symbolTriangle:Ye,symbolWye:Ze},nr=Math.PI/180,ar=e=>{var t="symbol".concat(fe(e));return be[t]||q},ir=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*nr;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},or=(e,t)=>{be["symbol".concat(fe(e))]=t},ge=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=rr(e,Qe),a=z(z({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var l=()=>{var m=ar(o),y=Fe().type(m).size(ir(r,n,o)),j=y();if(j!==null)return j},{className:c,cx:b,cy:d}=a,P=L(a);return $(b)&&$(d)&&$(r)?s.createElement("path",C({},P,{className:pe("recharts-symbols",c),transform:"translate(".concat(b,", ").concat(d,")"),d:l()})):null};ge.registerSymbol=or;var sr=e=>null;sr.displayName="Cell";var R={},x;function cr(){return x||(x=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(R)),R}var A,ee;function lr(){return ee||(ee=1,A=cr().isPlainObject),A}var ur=lr();const pr=De(ur);var re,te,ne,ae,ie;function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oe(Object(r),!0).forEach(function(n){fr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fr(e,t,r){return(t=vr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vr(e){var t=mr(e,"string");return typeof t=="symbol"?t:t+""}function mr(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(null,arguments)}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ce=(e,t,r,n,i)=>{var a=r-n,o;return o=g(re||(re=h(["M ",",",""])),e,t),o+=g(te||(te=h(["L ",",",""])),e+r,t),o+=g(ne||(ne=h(["L ",",",""])),e+r-a/2,t+i),o+=g(ae||(ae=h(["L ",",",""])),e+r-a/2-n,t+i),o+=g(ie||(ie=h(["L ",","," Z"])),e,t),o},yr={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},br=e=>{var t=_e(e,yr),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:l}=t,{animationEasing:c,animationDuration:b,animationBegin:d,isUpdateAnimationActive:P}=t,m=s.useRef(null),[y,j]=s.useState(-1),W=s.useRef(i),K=s.useRef(a),U=s.useRef(o),B=s.useRef(r),G=s.useRef(n),H=$e(e,"trapezoid-");if(s.useEffect(()=>{if(m.current&&m.current.getTotalLength)try{var v=m.current.getTotalLength();v&&j(v)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var V=pe("recharts-trapezoid",l);if(!P)return s.createElement("g",null,s.createElement("path",E({},L(t),{className:V,d:ce(r,n,i,a,o)})));var Oe=W.current,he=K.current,de=U.current,Pe=B.current,je=G.current,we="0px ".concat(y===-1?1:y,"px"),Te="".concat(y,"px ").concat(y,"px"),Se=Ne(["strokeDasharray"],b,c);return s.createElement(Re,{animationId:H,key:H,canBegin:y>0,duration:b,easing:c,isActive:P,begin:d},v=>{var _=O(Oe,i,v),X=O(he,a,v),Y=O(de,o,v),J=O(Pe,r,v),Z=O(je,n,v);m.current&&(W.current=_,K.current=X,U.current=Y,B.current=J,G.current=Z);var Ee=v>0?{transition:Se,strokeDasharray:Te}:{strokeDasharray:we};return s.createElement("path",E({},L(t),{className:V,d:ce(J,Z,_,X,Y),ref:m,style:se(se({},Ee),t.style)}))})},gr=["option","shapeType","activeClassName","inActiveClassName"];function Or(e,t){if(e==null)return{};var r,n,i=hr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function hr(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?le(Object(r),!0).forEach(function(n){dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dr(e,t,r){return(t=Pr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pr(e){var t=jr(e,"string");return typeof t=="symbol"?t:t+""}function jr(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wr(e,t){return D(D({},t),e)}function Tr(e,t){return e==="symbols"}function ue(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return s.createElement(ke,r);case"trapezoid":return s.createElement(br,r);case"sector":return s.createElement(Le,r);case"symbols":if(Tr(t))return s.createElement(ge,r);break;case"curve":return s.createElement(Ae,r);default:return null}}function Sr(e){return s.isValidElement(e)?e.props:e}function Ir(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,a=Or(e,gr),o;if(s.isValidElement(t))o=s.cloneElement(t,D(D({},a),Sr(t)));else if(typeof t=="function")o=t(a,a.index);else if(pr(t)&&typeof t!="boolean"){var l=wr(t,a);o=s.createElement(ue,{shapeType:r,elementProps:l})}else{var c=a;o=s.createElement(ue,{shapeType:r,elementProps:c})}return a.isActive?s.createElement(F,{className:n},o):s.createElement(F,{className:i},o)}var _r=(e,t,r)=>{var n=M();return(i,a)=>o=>{e?.(i,a,o),n(Ce({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},$r=e=>{var t=M();return(r,n)=>i=>{e?.(r,n,i),t(Me())}},Nr=(e,t,r)=>{var n=M();return(i,a)=>o=>{e?.(i,a,o),n(qe({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};export{sr as C,Ir as S,$r as a,Nr as b,ge as c,_r as u};
|
|
1
|
+
import{r as s,fE as pe,d5 as De}from"./index-CUTEHf7n.js";import{af as Ie,ag as w,ah as L,N as $,ai as fe,B as _e,I as $e,aj as Ne,J as Re,ak as g,M as O,L as F,a2 as Ae,al as Le,am as ke,a5 as M,an as Ce,ao as Me,ap as qe}from"./CategoricalChart-D9Euwg-G.js";const ve=Math.cos,T=Math.sin,f=Math.sqrt,S=Math.PI,I=2*S,q={draw(e,t){const r=f(t/S);e.moveTo(r,0),e.arc(0,0,r,0,I)}},We={draw(e,t){const r=f(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},me=f(1/3),Ke=me*2,Ue={draw(e,t){const r=f(t/Ke),n=r*me;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Be={draw(e,t){const r=f(t),n=-r/2;e.rect(n,n,r,r)}},Ge=.8908130915292852,ye=T(S/10)/T(7*S/10),He=T(I/10)*ye,Ve=-ve(I/10)*ye,Xe={draw(e,t){const r=f(t*Ge),n=He*r,i=Ve*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=I*a/5,l=ve(o),c=T(o);e.lineTo(c*r,-l*r),e.lineTo(l*n-c*i,c*n+l*i)}e.closePath()}},N=f(3),Ye={draw(e,t){const r=-f(t/(N*3));e.moveTo(0,r*2),e.lineTo(-N*r,-r),e.lineTo(N*r,-r),e.closePath()}},u=-.5,p=f(3)/2,k=1/f(12),Je=(k/2+1)*3,Ze={draw(e,t){const r=f(t/Je),n=r/2,i=r*k,a=n,o=r*k+r,l=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,c),e.lineTo(u*n-p*i,p*n+u*i),e.lineTo(u*a-p*o,p*a+u*o),e.lineTo(u*l-p*c,p*l+u*c),e.lineTo(u*n+p*i,u*i-p*n),e.lineTo(u*a+p*o,u*o-p*a),e.lineTo(u*l+p*c,u*c-p*l),e.closePath()}};function Fe(e,t){let r=null,n=Ie(i);e=typeof e=="function"?e:w(e||q),t=typeof t=="function"?t:w(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:w(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:w(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}var Qe=["type","size","sizeType"];function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(null,arguments)}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q(Object(r),!0).forEach(function(n){ze(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ze(e,t,r){return(t=xe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e){var t=er(e,"string");return typeof t=="symbol"?t:t+""}function er(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rr(e,t){if(e==null)return{};var r,n,i=tr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function tr(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var be={symbolCircle:q,symbolCross:We,symbolDiamond:Ue,symbolSquare:Be,symbolStar:Xe,symbolTriangle:Ye,symbolWye:Ze},nr=Math.PI/180,ar=e=>{var t="symbol".concat(fe(e));return be[t]||q},ir=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*nr;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},or=(e,t)=>{be["symbol".concat(fe(e))]=t},ge=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=rr(e,Qe),a=z(z({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var l=()=>{var m=ar(o),y=Fe().type(m).size(ir(r,n,o)),j=y();if(j!==null)return j},{className:c,cx:b,cy:d}=a,P=L(a);return $(b)&&$(d)&&$(r)?s.createElement("path",C({},P,{className:pe("recharts-symbols",c),transform:"translate(".concat(b,", ").concat(d,")"),d:l()})):null};ge.registerSymbol=or;var sr=e=>null;sr.displayName="Cell";var R={},x;function cr(){return x||(x=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(R)),R}var A,ee;function lr(){return ee||(ee=1,A=cr().isPlainObject),A}var ur=lr();const pr=De(ur);var re,te,ne,ae,ie;function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oe(Object(r),!0).forEach(function(n){fr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fr(e,t,r){return(t=vr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vr(e){var t=mr(e,"string");return typeof t=="symbol"?t:t+""}function mr(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(null,arguments)}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ce=(e,t,r,n,i)=>{var a=r-n,o;return o=g(re||(re=h(["M ",",",""])),e,t),o+=g(te||(te=h(["L ",",",""])),e+r,t),o+=g(ne||(ne=h(["L ",",",""])),e+r-a/2,t+i),o+=g(ae||(ae=h(["L ",",",""])),e+r-a/2-n,t+i),o+=g(ie||(ie=h(["L ",","," Z"])),e,t),o},yr={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},br=e=>{var t=_e(e,yr),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:l}=t,{animationEasing:c,animationDuration:b,animationBegin:d,isUpdateAnimationActive:P}=t,m=s.useRef(null),[y,j]=s.useState(-1),W=s.useRef(i),K=s.useRef(a),U=s.useRef(o),B=s.useRef(r),G=s.useRef(n),H=$e(e,"trapezoid-");if(s.useEffect(()=>{if(m.current&&m.current.getTotalLength)try{var v=m.current.getTotalLength();v&&j(v)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var V=pe("recharts-trapezoid",l);if(!P)return s.createElement("g",null,s.createElement("path",E({},L(t),{className:V,d:ce(r,n,i,a,o)})));var Oe=W.current,he=K.current,de=U.current,Pe=B.current,je=G.current,we="0px ".concat(y===-1?1:y,"px"),Te="".concat(y,"px ").concat(y,"px"),Se=Ne(["strokeDasharray"],b,c);return s.createElement(Re,{animationId:H,key:H,canBegin:y>0,duration:b,easing:c,isActive:P,begin:d},v=>{var _=O(Oe,i,v),X=O(he,a,v),Y=O(de,o,v),J=O(Pe,r,v),Z=O(je,n,v);m.current&&(W.current=_,K.current=X,U.current=Y,B.current=J,G.current=Z);var Ee=v>0?{transition:Se,strokeDasharray:Te}:{strokeDasharray:we};return s.createElement("path",E({},L(t),{className:V,d:ce(J,Z,_,X,Y),ref:m,style:se(se({},Ee),t.style)}))})},gr=["option","shapeType","activeClassName","inActiveClassName"];function Or(e,t){if(e==null)return{};var r,n,i=hr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function hr(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?le(Object(r),!0).forEach(function(n){dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dr(e,t,r){return(t=Pr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pr(e){var t=jr(e,"string");return typeof t=="symbol"?t:t+""}function jr(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wr(e,t){return D(D({},t),e)}function Tr(e,t){return e==="symbols"}function ue(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return s.createElement(ke,r);case"trapezoid":return s.createElement(br,r);case"sector":return s.createElement(Le,r);case"symbols":if(Tr(t))return s.createElement(ge,r);break;case"curve":return s.createElement(Ae,r);default:return null}}function Sr(e){return s.isValidElement(e)?e.props:e}function Ir(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,a=Or(e,gr),o;if(s.isValidElement(t))o=s.cloneElement(t,D(D({},a),Sr(t)));else if(typeof t=="function")o=t(a,a.index);else if(pr(t)&&typeof t!="boolean"){var l=wr(t,a);o=s.createElement(ue,{shapeType:r,elementProps:l})}else{var c=a;o=s.createElement(ue,{shapeType:r,elementProps:c})}return a.isActive?s.createElement(F,{className:n},o):s.createElement(F,{className:i},o)}var _r=(e,t,r)=>{var n=M();return(i,a)=>o=>{e?.(i,a,o),n(Ce({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},$r=e=>{var t=M();return(r,n)=>i=>{e?.(r,n,i),t(Me())}},Nr=(e,t,r)=>{var n=M();return(i,a)=>o=>{e?.(i,a,o),n(qe({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};export{sr as C,Ir as S,$r as a,Nr as b,ge as c,_r as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as m,a1 as _}from"./index-
|
|
1
|
+
import{G as m,a1 as _}from"./index-CUTEHf7n.js";const y="onepager",l="report:auth-attempt:",p=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${l}${e}`}function f(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function s(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>p?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function d(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function g(e){const t=s(e);if(t)return t;const n={attempt_id:f(),domain:e,gate_shown_at:Date.now(),...c()};return d(n),n}function R(e,t){const n={...g(e),...t};return d(n),n}function T(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function v(e){const t=s(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e,t,n){if(m())try{_.capture(e,{...c(),...t},n)}catch{}}export{y as R,T as a,S as b,I as c,g as d,v as e,h as r,R as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dz as l,dE as e,dA as h,aI as r,
|
|
1
|
+
import{dz as l,dE as e,dA as h,aI as r,gK as b,aH as t,cp as p,bC as d,bk as c,dy as m,dC as v,gL as E,gM as I,gN as w,d8 as x,er as T,gO as z,gP as C,gQ as D,cP as O,gR as B,dq as V,gS as W,gT as $,gU as K,gV as F,dl as J,d9 as j,di as Z,dj as Q,dk as Y,db as G,dh as X,da as ee,du as te}from"./index-CUTEHf7n.js";import{P as oe}from"./use-mcp-client-BVU34o8K.js";(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});class se extends oe{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(o,s){}_ensureEventSlot(o){let s=this._eventSlots.get(o);if(!s){let i=this.eventSchemas[o];if(!i)throw Error(`Unknown event: ${String(o)}`);s={listeners:[]},this._eventSlots.set(o,s);let a=i.shape.method.value;this._registeredMethods.add(a);let u=s;super.setNotificationHandler(i,g=>{let R=g.params;this.onEventDispatch(o,R),u.onHandler?.(R);for(let A of[...u.listeners])A(R)})}return s}setEventHandler(o,s){let i=this._ensureEventSlot(o);i.onHandler&&s&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),i.onHandler=s}getEventHandler(o){return this._eventSlots.get(o)?.onHandler}addEventListener(o,s){this._ensureEventSlot(o).listeners.push(s)}removeEventListener(o,s){let i=this._eventSlots.get(o);if(!i)return;let a=i.listeners.indexOf(s);a!==-1&&i.listeners.splice(a,1)}setRequestHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,s)};setNotificationHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,s)};warnIfRequestHandlerReplaced(o,s,i){s&&i&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(o,s)=>{let i=o.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(o,s)};_assertMethodNotRegistered(o,s){let i=o.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${s}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}}var L="2026-01-26",ie="ui/notifications/tool-input-partial",re=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),f=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ae=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ne=h(ae.describe(`Style variables for theming MCP apps.
|
|
2
2
|
|
|
3
3
|
Individual style keys are optional - hosts may provide any subset of these values.
|
|
4
4
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aI as s}from"./index-
|
|
1
|
+
import{aI as s}from"./index-CUTEHf7n.js";const n=2,t=64,i=/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/,r=new Set(["new","edit","settings","apps","projects","connections"]),o=s().min(n).max(t).regex(i,"Use lowercase letters, digits, and single hyphens between them").refine(e=>!e.includes("--"),"Use single hyphens").refine(e=>!r.has(e),"This slug is reserved");export{o as U};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as V,g2 as Sc,g3 as Xf,j as k,ca as Qf,eT as Kt,g4 as Zf,c as Yt,b as Co,m as er,aY as eh,E as th,aF as nh,h as rh,B as xl,aI as Sl,aH as sh,aG as ih,x as oh,w as lh,I as ah,y as ch,v as uh,D as dh,g5 as Cl}from"./index-Bm1kfakF.js";import{t as Ml}from"./utils-CVEq3hMx.js";import{a as fh,M as hh}from"./markdown-CQMqqgOz.js";import{u as ph}from"./use-copy-thUFz6-q.js";import{e as mh,j as gh}from"./agent-icon-BmlBo_mr.js";import{T as tr,a as nr,c as rr}from"./tooltip-gcbYZwxC.js";import{d as yh,g as bh}from"./gateway-client-CJDxmxSa.js";import{a as kh,F as xh,b as Sh,c as Ch,d as Mh,f as Th}from"./form-DoeHcF5c.js";import{b as Mo}from"./use-entitlements-BTRsFtoM.js";import{v as To}from"./chat-context-B0mIAvmD.js";var Tl=Object.defineProperty,Eh=(n,e)=>{let t={};for(var r in n)Tl(t,r,{get:n[r],enumerable:!0});return Tl(t,Symbol.toStringTag,{value:"Module"}),t};function ae(n){this.content=n}ae.prototype={constructor:ae,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,s=r.find(n),i=r.content.slice();return s==-1?i.push(t||n,e):(i[s+1]=e,t&&(i[s]=t)),new ae(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new ae(t)},addToStart:function(n,e){return new ae([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new ae(t)},addBefore:function(n,e,t){var r=this.remove(e),s=r.content.slice(),i=r.find(n);return s.splice(i==-1?s.length:i,0,e,t),new ae(s)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=ae.from(n),n.size?new ae(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=ae.from(n),n.size?new ae(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=ae.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};ae.from=function(n){if(n instanceof ae)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new ae(e)};function Cc(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let s=n.child(r),i=e.child(r);if(s==i){t+=s.nodeSize;continue}if(!s.sameMarkup(i))return t;if(s.isText&&s.text!=i.text){let o=s.text,l=i.text,a=0;for(;o[a]==l[a];a++)t++;return a&&a<o.length&&a<l.length&&Ec(o.charCodeAt(a-1))&&Tc(o.charCodeAt(a))&&t--,t}if(s.content.size||i.content.size){let o=Cc(s.content,i.content,t+1);if(o!=null)return o}t+=s.nodeSize}}function Mc(n,e,t,r){for(let s=n.childCount,i=e.childCount;;){if(s==0||i==0)return s==i?null:{a:t,b:r};let o=n.child(--s),l=e.child(--i),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let c=o.text,u=l.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d<c.length&&Ec(c.charCodeAt(d-1))&&Tc(c.charCodeAt(d))&&(t++,r++),{a:t,b:r}}if(o.content.size||l.content.size){let c=Mc(o.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}function Tc(n){return n>=56320&&n<57344}function Ec(n){return n>=55296&&n<56320}class S{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,s=0,i){for(let o=0,l=0;l<t;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,s+l,i||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,s+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,s){let i="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?s?typeof s=="function"?s(l):s:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,s=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(s[s.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)s.push(e.content[i]);return new S(s,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],s=0;if(t>e)for(let i=0,o=0;o<t;i++){let l=this.content[i],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),s+=l.nodeSize),o=a}return new S(r,s)}cutByIndex(e,t){return e==t?S.empty:e==0&&t==this.content.length?this:new S(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let s=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return s[e]=t,new S(s,i)}addToStart(e){return new S([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new S(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let s=this.content[t];e(s,r,t),r+=s.nodeSize}}findDiffStart(e,t=0){return Cc(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Mc(this,e,t,r)}findIndex(e){if(e==0)return vr(0,e);if(e==this.size)return vr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let s=this.child(t),i=r+s.nodeSize;if(i>=e)return i==e?vr(t+1,i):vr(t,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return S.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return S.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return S.empty;let t,r=0;for(let s=0;s<e.length;s++){let i=e[s];r+=i.nodeSize,s&&i.isText&&e[s-1].sameMarkup(i)?(t||(t=e.slice(0,s)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new S(t||e,r)}static from(e){if(!e)return S.empty;if(e instanceof S)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new S([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}S.empty=new S([],0);const ni={index:0,offset:0};function vr(n,e){return ni.index=n,ni.offset=e,ni}function Ur(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Ur(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Ur(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let F=class Ri{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let s=0;s<e.length;s++){let i=e[s];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,s));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,s)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Ur(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let s=r.create(t.attrs);return r.checkAttrs(s.attrs),s}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ri.none;if(e instanceof Ri)return[e];let t=e.slice();return t.sort((r,s)=>r.type.rank-s.type.rank),t}};F.none=[];class sr extends Error{}class E{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=vc(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new E(r,this.openStart,this.openEnd)}removeBetween(e,t){return new E(wc(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return E.empty;let r=t.openStart||0,s=t.openEnd||0;if(typeof r!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new E(S.fromJSON(e,t.content),r,s)}static maxOpen(e,t=!0){let r=0,s=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)s++;return new E(e,r,s)}}E.empty=new E(S.empty,0,0);function wc(n,e,t){let{index:r,offset:s}=n.findIndex(e),i=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(s==e||i.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(wc(i.content,e-s-1,t-s-1)))}function vc(n,e,t,r,s,i){let{index:o,offset:l}=n.findIndex(e),a=n.maybeChild(o);if(l==e||a.isText)return i&&r<=0&&s<=0&&!i.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=vc(a.content,e-l-1,t,o==0?r-1:0,o==n.childCount-1?s-1:0,a);return c&&n.replaceChild(o,a.copy(c))}function wh(n,e,t){if(t.openStart>n.depth)throw new sr("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new sr("Inconsistent open depths");return Nc(n,e,t,0)}function Nc(n,e,t,r){let s=n.index(r),i=n.node(r);if(s==e.index(r)&&r<n.depth-t.openStart){let o=Nc(n,e,t,r+1);return i.copy(i.content.replaceChild(s,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return Ft(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=vh(t,n);return Ft(i,Oc(n,o,l,e,r))}else return Ft(i,qr(n,e,r))}function Ac(n,e){if(!e.type.compatibleContent(n.type))throw new sr("Cannot join "+e.type.name+" onto "+n.type.name)}function Ii(n,e,t){let r=n.node(t);return Ac(r,e.node(t)),r}function Bt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function Fn(n,e,t,r){let s=(e||n).node(t),i=0,o=e?e.index(t):s.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(Bt(n.nodeAfter,r),i++));for(let l=i;l<o;l++)Bt(s.child(l),r);e&&e.depth==t&&e.textOffset&&Bt(e.nodeBefore,r)}function Ft(n,e){if(!n.type.validContent(e))throw new sr("Invalid content for node "+n.type.name);return n.copy(e)}function Oc(n,e,t,r,s){let i=n.depth>s&&Ii(n,e,s+1),o=r.depth>s&&Ii(t,r,s+1),l=[];return Fn(null,n,s,l),i&&o&&e.index(s)==t.index(s)?(Ac(i,o),Bt(Ft(i,Oc(n,e,t,r,s+1)),l)):(i&&Bt(Ft(i,qr(n,e,s+1)),l),Fn(e,t,s,l),o&&Bt(Ft(o,qr(t,r,s+1)),l)),Fn(r,null,s,l),new S(l)}function qr(n,e,t){let r=[];if(Fn(null,n,t,r),n.depth>t){let s=Ii(n,e,t+1);Bt(Ft(s,qr(n,e,t+1)),r)}return Fn(e,null,t,r),new S(r)}function vh(n,e){let t=e.depth-n.openStart,s=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)s=e.node(i).copy(S.from(s));return{start:s.resolveNoCache(n.openStart+t),end:s.resolveNoCache(s.content.size-n.openEnd-t)}}class ir{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],s=e.child(t);return r?e.child(t).cut(r):s}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],s=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)s+=r.child(i).nodeSize;return s}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return F.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),s=e.maybeChild(t);if(!r){let l=r;r=s,s=l}let i=r.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,s=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!s||!r[i].isInSet(s.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Jr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],s=0,i=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(i),c=i-a;if(r.push(o,l,s+a),!c||(o=o.child(l),o.isText))break;i=c-1,s+=a+1}return new ir(t,r,i)}static resolveCached(e,t){let r=El.get(e);if(r)for(let i=0;i<r.elts.length;i++){let o=r.elts[i];if(o.pos==t)return o}else El.set(e,r=new Nh);let s=r.elts[r.i]=ir.resolve(e,t);return r.i=(r.i+1)%Ah,s}}class Nh{constructor(){this.elts=[],this.i=0}}const Ah=12,El=new WeakMap;class Jr{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Oh=Object.create(null);let bt=class Pi{constructor(e,t,r,s=F.none){this.type=e,this.attrs=t,this.marks=s,this.content=r||S.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,s=0){this.content.nodesBetween(e,t,r,s,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,s){return this.content.textBetween(e,t,r,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&Ur(this.attrs,t||e.defaultAttrs||Oh)&&F.sameSet(this.marks,r||F.none)}copy(e=null){return e==this.content?this:new Pi(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Pi(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return E.empty;let s=this.resolve(e),i=this.resolve(t),o=r?0:s.sharedDepth(t),l=s.start(o),c=s.node(o).content.cut(s.pos-l,i.pos-l);return new E(c,s.depth-o,i.depth-o)}replace(e,t,r){return wh(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:s}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(s==e||t.isText)return t;e-=s+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let s=this.content.child(t-1);return{node:s,index:t-1,offset:r-s.nodeSize}}resolve(e){return ir.resolveCached(this,e)}resolveNoCache(e){return ir.resolve(this,e)}rangeHasMark(e,t,r){let s=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Dc(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=S.empty,s=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,s,i),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=s;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=F.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!F.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let s=S.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,s,r);return i.type.checkAttrs(i.attrs),i}};bt.prototype.text=void 0;class Gr extends bt{constructor(e,t,r,s){if(super(e,t,null,s),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Dc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Gr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Gr(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Dc(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Ut{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Dh(e,t);if(r.next==null)return Ut.empty;let s=Rc(r);r.next&&r.err("Unexpected trailing text");let i=Bh(zh(s));return Fh(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let s=this;for(let i=t;s&&i<r;i++)s=s.matchType(e.child(i).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let s=[this];function i(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return S.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&s.indexOf(d)==-1){s.push(d);let f=i(d,l.concat(u));if(f)return f}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let s=r.shift(),i=s.match;if(i.matchType(e)){let o=[];for(let l=s;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:l,next:a}=i.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!s.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:s}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let s=0;s<r.next.length;s++)e.indexOf(r.next[s].next)==-1&&t(r.next[s].next)}return t(this),e.map((r,s)=>{let i=s+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)i+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return i}).join(`
|
|
1
|
+
import{r as V,g3 as Sc,g4 as Xf,j as k,ca as Qf,eU as Kt,g5 as Zf,c as Yt,b as Co,m as er,aY as eh,E as th,aF as nh,h as rh,B as xl,aI as Sl,aH as sh,aG as ih,x as oh,w as lh,I as ah,y as ch,v as uh,D as dh,g6 as Cl}from"./index-CUTEHf7n.js";import{t as Ml}from"./utils-CVEq3hMx.js";import{a as fh,M as hh}from"./markdown-BhLg-Zjp.js";import{u as ph}from"./use-copy-DPZUA7Gr.js";import{e as mh,j as gh}from"./agent-icon-y2SKybSP.js";import{T as tr,a as nr,c as rr}from"./tooltip-BtQY7me6.js";import{d as yh,g as bh}from"./gateway-client-D6U4MBNC.js";import{a as kh,F as xh,b as Sh,c as Ch,d as Mh,f as Th}from"./form-CDXejFhy.js";import{b as Mo}from"./use-entitlements-DH1D5a0L.js";import{v as To}from"./chat-context-3o15fH-n.js";var Tl=Object.defineProperty,Eh=(n,e)=>{let t={};for(var r in n)Tl(t,r,{get:n[r],enumerable:!0});return Tl(t,Symbol.toStringTag,{value:"Module"}),t};function ae(n){this.content=n}ae.prototype={constructor:ae,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,s=r.find(n),i=r.content.slice();return s==-1?i.push(t||n,e):(i[s+1]=e,t&&(i[s]=t)),new ae(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new ae(t)},addToStart:function(n,e){return new ae([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new ae(t)},addBefore:function(n,e,t){var r=this.remove(e),s=r.content.slice(),i=r.find(n);return s.splice(i==-1?s.length:i,0,e,t),new ae(s)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=ae.from(n),n.size?new ae(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=ae.from(n),n.size?new ae(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=ae.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}};ae.from=function(n){if(n instanceof ae)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new ae(e)};function Cc(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let s=n.child(r),i=e.child(r);if(s==i){t+=s.nodeSize;continue}if(!s.sameMarkup(i))return t;if(s.isText&&s.text!=i.text){let o=s.text,l=i.text,a=0;for(;o[a]==l[a];a++)t++;return a&&a<o.length&&a<l.length&&Ec(o.charCodeAt(a-1))&&Tc(o.charCodeAt(a))&&t--,t}if(s.content.size||i.content.size){let o=Cc(s.content,i.content,t+1);if(o!=null)return o}t+=s.nodeSize}}function Mc(n,e,t,r){for(let s=n.childCount,i=e.childCount;;){if(s==0||i==0)return s==i?null:{a:t,b:r};let o=n.child(--s),l=e.child(--i),a=o.nodeSize;if(o==l){t-=a,r-=a;continue}if(!o.sameMarkup(l))return{a:t,b:r};if(o.isText&&o.text!=l.text){let c=o.text,u=l.text,d=c.length,f=u.length;for(;d>0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d<c.length&&Ec(c.charCodeAt(d-1))&&Tc(c.charCodeAt(d))&&(t++,r++),{a:t,b:r}}if(o.content.size||l.content.size){let c=Mc(o.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}function Tc(n){return n>=56320&&n<57344}function Ec(n){return n>=55296&&n<56320}class S{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,s=0,i){for(let o=0,l=0;l<t;o++){let a=this.content[o],c=l+a.nodeSize;if(c>e&&r(a,s+l,i||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,s+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,s){let i="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?s?typeof s=="function"?s(l):s:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,s=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(s[s.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)s.push(e.content[i]);return new S(s,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],s=0;if(t>e)for(let i=0,o=0;o<t;i++){let l=this.content[i],a=o+l.nodeSize;a>e&&((o<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),s+=l.nodeSize),o=a}return new S(r,s)}cutByIndex(e,t){return e==t?S.empty:e==0&&t==this.content.length?this:new S(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let s=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return s[e]=t,new S(s,i)}addToStart(e){return new S([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new S(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let s=this.content[t];e(s,r,t),r+=s.nodeSize}}findDiffStart(e,t=0){return Cc(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Mc(this,e,t,r)}findIndex(e){if(e==0)return vr(0,e);if(e==this.size)return vr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let s=this.child(t),i=r+s.nodeSize;if(i>=e)return i==e?vr(t+1,i):vr(t,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return S.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return S.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return S.empty;let t,r=0;for(let s=0;s<e.length;s++){let i=e[s];r+=i.nodeSize,s&&i.isText&&e[s-1].sameMarkup(i)?(t||(t=e.slice(0,s)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new S(t||e,r)}static from(e){if(!e)return S.empty;if(e instanceof S)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new S([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}S.empty=new S([],0);const ni={index:0,offset:0};function vr(n,e){return ni.index=n,ni.offset=e,ni}function Ur(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Ur(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Ur(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let F=class Ri{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let s=0;s<e.length;s++){let i=e[s];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,s));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,s)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Ur(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let s=r.create(t.attrs);return r.checkAttrs(s.attrs),s}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ri.none;if(e instanceof Ri)return[e];let t=e.slice();return t.sort((r,s)=>r.type.rank-s.type.rank),t}};F.none=[];class sr extends Error{}class E{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=vc(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new E(r,this.openStart,this.openEnd)}removeBetween(e,t){return new E(wc(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return E.empty;let r=t.openStart||0,s=t.openEnd||0;if(typeof r!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new E(S.fromJSON(e,t.content),r,s)}static maxOpen(e,t=!0){let r=0,s=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)s++;return new E(e,r,s)}}E.empty=new E(S.empty,0,0);function wc(n,e,t){let{index:r,offset:s}=n.findIndex(e),i=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(s==e||i.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(wc(i.content,e-s-1,t-s-1)))}function vc(n,e,t,r,s,i){let{index:o,offset:l}=n.findIndex(e),a=n.maybeChild(o);if(l==e||a.isText)return i&&r<=0&&s<=0&&!i.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=vc(a.content,e-l-1,t,o==0?r-1:0,o==n.childCount-1?s-1:0,a);return c&&n.replaceChild(o,a.copy(c))}function wh(n,e,t){if(t.openStart>n.depth)throw new sr("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new sr("Inconsistent open depths");return Nc(n,e,t,0)}function Nc(n,e,t,r){let s=n.index(r),i=n.node(r);if(s==e.index(r)&&r<n.depth-t.openStart){let o=Nc(n,e,t,r+1);return i.copy(i.content.replaceChild(s,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let o=n.parent,l=o.content;return Ft(o,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:o,end:l}=vh(t,n);return Ft(i,Oc(n,o,l,e,r))}else return Ft(i,qr(n,e,r))}function Ac(n,e){if(!e.type.compatibleContent(n.type))throw new sr("Cannot join "+e.type.name+" onto "+n.type.name)}function Ii(n,e,t){let r=n.node(t);return Ac(r,e.node(t)),r}function Bt(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function Fn(n,e,t,r){let s=(e||n).node(t),i=0,o=e?e.index(t):s.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(Bt(n.nodeAfter,r),i++));for(let l=i;l<o;l++)Bt(s.child(l),r);e&&e.depth==t&&e.textOffset&&Bt(e.nodeBefore,r)}function Ft(n,e){if(!n.type.validContent(e))throw new sr("Invalid content for node "+n.type.name);return n.copy(e)}function Oc(n,e,t,r,s){let i=n.depth>s&&Ii(n,e,s+1),o=r.depth>s&&Ii(t,r,s+1),l=[];return Fn(null,n,s,l),i&&o&&e.index(s)==t.index(s)?(Ac(i,o),Bt(Ft(i,Oc(n,e,t,r,s+1)),l)):(i&&Bt(Ft(i,qr(n,e,s+1)),l),Fn(e,t,s,l),o&&Bt(Ft(o,qr(t,r,s+1)),l)),Fn(r,null,s,l),new S(l)}function qr(n,e,t){let r=[];if(Fn(null,n,t,r),n.depth>t){let s=Ii(n,e,t+1);Bt(Ft(s,qr(n,e,t+1)),r)}return Fn(e,null,t,r),new S(r)}function vh(n,e){let t=e.depth-n.openStart,s=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)s=e.node(i).copy(S.from(s));return{start:s.resolveNoCache(n.openStart+t),end:s.resolveNoCache(s.content.size-n.openEnd-t)}}class ir{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],s=e.child(t);return r?e.child(t).cut(r):s}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],s=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)s+=r.child(i).nodeSize;return s}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return F.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),s=e.maybeChild(t);if(!r){let l=r;r=s,s=l}let i=r.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,s=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!s||!r[i].isInSet(s.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Jr(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],s=0,i=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(i),c=i-a;if(r.push(o,l,s+a),!c||(o=o.child(l),o.isText))break;i=c-1,s+=a+1}return new ir(t,r,i)}static resolveCached(e,t){let r=El.get(e);if(r)for(let i=0;i<r.elts.length;i++){let o=r.elts[i];if(o.pos==t)return o}else El.set(e,r=new Nh);let s=r.elts[r.i]=ir.resolve(e,t);return r.i=(r.i+1)%Ah,s}}class Nh{constructor(){this.elts=[],this.i=0}}const Ah=12,El=new WeakMap;class Jr{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Oh=Object.create(null);let bt=class Pi{constructor(e,t,r,s=F.none){this.type=e,this.attrs=t,this.marks=s,this.content=r||S.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,s=0){this.content.nodesBetween(e,t,r,s,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,s){return this.content.textBetween(e,t,r,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&Ur(this.attrs,t||e.defaultAttrs||Oh)&&F.sameSet(this.marks,r||F.none)}copy(e=null){return e==this.content?this:new Pi(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Pi(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return E.empty;let s=this.resolve(e),i=this.resolve(t),o=r?0:s.sharedDepth(t),l=s.start(o),c=s.node(o).content.cut(s.pos-l,i.pos-l);return new E(c,s.depth-o,i.depth-o)}replace(e,t,r){return wh(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:s}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(s==e||t.isText)return t;e-=s+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let s=this.content.child(t-1);return{node:s,index:t-1,offset:r-s.nodeSize}}resolve(e){return ir.resolveCached(this,e)}resolveNoCache(e){return ir.resolve(this,e)}rangeHasMark(e,t,r){let s=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Dc(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=S.empty,s=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,s,i),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=s;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=F.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!F.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let s=S.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,s,r);return i.type.checkAttrs(i.attrs),i}};bt.prototype.text=void 0;class Gr extends bt{constructor(e,t,r,s){if(super(e,t,null,s),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Dc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Gr(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Gr(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Dc(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Ut{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Dh(e,t);if(r.next==null)return Ut.empty;let s=Rc(r);r.next&&r.err("Unexpected trailing text");let i=Bh(zh(s));return Fh(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let s=this;for(let i=t;s&&i<r;i++)s=s.matchType(e.child(i).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let s=[this];function i(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return S.from(l.map(c=>c.createAndFill()));for(let c=0;c<o.next.length;c++){let{type:u,next:d}=o.next[c];if(!(u.isText||u.hasRequiredAttrs())&&s.indexOf(d)==-1){s.push(d);let f=i(d,l.concat(u));if(f)return f}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let s=r.shift(),i=s.match;if(i.matchType(e)){let o=[];for(let l=s;l.type;l=l.via)o.push(l.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:l,next:a}=i.next[o];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!s.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:s}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let s=0;s<r.next.length;s++)e.indexOf(r.next[s].next)==-1&&t(r.next[s].next)}return t(this),e.map((r,s)=>{let i=s+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)i+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return i}).join(`
|
|
2
2
|
`)}}Ut.empty=new Ut(!0);class Dh{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Rc(n){let e=[];do e.push(Rh(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Rh(n){let e=[];do e.push(Ih(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Ih(n){let e=$h(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=Ph(n,e);else break;return e}function wl(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Ph(n,e){let t=wl(n),r=t;return n.eat(",")&&(n.next!="}"?r=wl(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function Lh(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let s=[];for(let i in t){let o=t[i];o.isInGroup(e)&&s.push(o)}return s.length==0&&n.err("No node type or group '"+e+"' found"),s}function $h(n){if(n.eat("(")){let e=Rc(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=Lh(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function zh(n){let e=[[]];return s(i(n,0),t()),e;function t(){return e.push([])-1}function r(o,l,a){let c={term:a,to:l};return e[o].push(c),c}function s(o,l){o.forEach(a=>a.to=l)}function i(o,l){if(o.type=="choice")return o.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(o.type=="seq")for(let a=0;;a++){let c=i(o.exprs[a],l);if(a==o.exprs.length-1)return c;s(c,l=t())}else if(o.type=="star"){let a=t();return r(l,a),s(i(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=t();return s(i(o.expr,l),a),s(i(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(i(o.expr,l));if(o.type=="range"){let a=l;for(let c=0;c<o.min;c++){let u=t();s(i(o.expr,a),u),a=u}if(o.max==-1)s(i(o.expr,a),a);else for(let c=o.min;c<o.max;c++){let u=t();r(a,u),s(i(o.expr,a),u),a=u}return[r(a)]}else{if(o.type=="name")return[r(l,void 0,o.value)];throw new Error("Unknown expr type")}}}}function Ic(n,e){return e-n}function vl(n,e){let t=[];return r(e),t.sort(Ic);function r(s){let i=n[s];if(i.length==1&&!i[0].term)return r(i[0].to);t.push(s);for(let o=0;o<i.length;o++){let{term:l,to:a}=i[o];!l&&t.indexOf(a)==-1&&r(a)}}}function Bh(n){let e=Object.create(null);return t(vl(n,0));function t(r){let s=[];r.forEach(o=>{n[o].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<s.length;u++)s[u][0]==l&&(c=s[u][1]);vl(n,a).forEach(u=>{c||s.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[r.join(",")]=new Ut(r.indexOf(n.length-1)>-1);for(let o=0;o<s.length;o++){let l=s[o][1].sort(Ic);i.next.push({type:s[o][0],next:e[l.join(",")]||t(l)})}return i}}function Fh(n,e){for(let t=0,r=[n];t<r.length;t++){let s=r[t],i=!s.validEnd,o=[];for(let l=0;l<s.next.length;l++){let{type:a,next:c}=s.next[l];o.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Pc(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function Lc(n,e){let t=Object.create(null);for(let r in n){let s=e&&e[r];if(s===void 0){let i=n[r];if(i.hasDefault)s=i.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=s}return t}function $c(n,e,t,r){for(let s in e)if(!(s in n))throw new RangeError(`Unsupported attribute ${s} for ${t} of type ${r}`);for(let s in n)n[s].validate&&n[s].validate(e[s])}function zc(n,e){let t=Object.create(null);if(e)for(let r in e)t[r]=new Hh(n,r,e[r]);return t}let Nl=class Bc{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=zc(e,r.attrs),this.defaultAttrs=Pc(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ut.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Lc(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new bt(this,this.computeAttrs(e),S.from(t),F.setFrom(r))}createChecked(e=null,t,r){return t=S.from(t),this.checkContent(t),new bt(this,this.computeAttrs(e),t,F.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=S.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let s=this.contentMatch.matchFragment(t),i=s&&s.fillBefore(S.empty,!0);return i?new bt(this,e,t.append(i),F.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){$c(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:F.none:e}static compile(e,t){let r=Object.create(null);e.forEach((i,o)=>r[i]=new Bc(i,t,o));let s=t.spec.topNode||"doc";if(!r[s])throw new RangeError("Schema is missing its top node type ('"+s+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function jh(n,e,t){let r=t.split("|");return s=>{let i=s===null?"null":typeof s;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${i}`)}}class Hh{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?jh(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Fs{constructor(e,t,r,s){this.name=e,this.rank=t,this.schema=r,this.spec=s,this.attrs=zc(e,s.attrs),this.excluded=null;let i=Pc(this.attrs);this.instance=i?new F(this,i):null}create(e=null){return!e&&this.instance?this.instance:new F(this,Lc(this.attrs,e))}static compile(e,t){let r=Object.create(null),s=0;return e.forEach((i,o)=>r[i]=new Fs(i,s++,t,o)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){$c(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Fc{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let s in e)t[s]=e[s];t.nodes=ae.from(e.nodes),t.marks=ae.from(e.marks||{}),this.nodes=Nl.compile(this.spec.nodes,this),this.marks=Fs.compile(this.spec.marks,this);let r=Object.create(null);for(let s in this.nodes){if(s in this.marks)throw new RangeError(s+" can not be both a node and a mark");let i=this.nodes[s],o=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=r[o]||(r[o]=Ut.parse(o,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?Al(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let s in this.marks){let i=this.marks[s],o=i.spec.excludes;i.excluded=o==null?[i]:o==""?[]:Al(this,o.split(" "))}this.nodeFromJSON=s=>bt.fromJSON(this,s),this.markFromJSON=s=>F.fromJSON(this,s),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,s){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Nl){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,s)}text(e,t){let r=this.nodes.text;return new Gr(r,r.defaultAttrs,e,F.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Al(n,e){let t=[];for(let r=0;r<e.length;r++){let s=e[r],i=n.marks[s],o=i;if(i)t.push(i);else for(let l in n.marks){let a=n.marks[l];(s=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(s)>-1)&&t.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function Vh(n){return n.tag!=null}function _h(n){return n.style!=null}class He{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(s=>{if(Vh(s))this.tags.push(s);else if(_h(s)){let i=/[^=]*/.exec(s.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(s)}}),this.normalizeLists=!this.tags.some(s=>{if(!/^(ul|ol)\b/.test(s.tag)||!s.node)return!1;let i=e.nodes[s.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let r=new Dl(this,t,!1);return r.addAll(e,F.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Dl(this,t,!0);return r.addAll(e,F.none,t.from,t.to),E.maxOpen(r.finish())}matchTag(e,t,r){for(let s=r?this.tags.indexOf(r)+1:0;s<this.tags.length;s++){let i=this.tags[s];if(Uh(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let o=i.getAttrs(e);if(o===!1)continue;i.attrs=o||void 0}return i}}}matchStyle(e,t,r,s){for(let i=s?this.styles.indexOf(s)+1:0;i<this.styles.length;i++){let o=this.styles[i],l=o.style;if(!(l.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(o.getAttrs){let a=o.getAttrs(t);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let t=[];function r(s){let i=s.priority==null?50:s.priority,o=0;for(;o<t.length;o++){let l=t[o];if((l.priority==null?50:l.priority)<i)break}t.splice(o,0,s)}for(let s in e.marks){let i=e.marks[s].spec.parseDOM;i&&i.forEach(o=>{r(o=Rl(o)),o.mark||o.ignore||o.clearMark||(o.mark=s)})}for(let s in e.nodes){let i=e.nodes[s].spec.parseDOM;i&&i.forEach(o=>{r(o=Rl(o)),o.node||o.ignore||o.mark||(o.node=s)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new He(e,He.schemaRules(e)))}}const jc={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Wh={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Hc={ol:!0,ul:!0},or=1,Li=2,jn=4;function Ol(n,e,t){return e!=null?(e?or:0)|(e==="full"?Li:0):n&&n.whitespace=="pre"?or|Li:t&~jn}class Nr{constructor(e,t,r,s,i,o){this.type=e,this.attrs=t,this.marks=r,this.solid=s,this.options=o,this.content=[],this.activeMarks=F.none,this.match=i||(o&jn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(S.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,s;return(s=r.findWrapping(e.type))?(this.match=r,s):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&or)){let r=this.content[this.content.length-1],s;if(r&&r.isText&&(s=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==s[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-s[0].length))}}let t=S.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(S.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!jc.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Dl{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let s=t.topNode,i,o=Ol(null,t.preserveWhitespace,0)|(r?jn:0);s?i=new Nr(s.type,s.attrs,F.none,!0,t.topMatch||s.type.contentMatch,o):r?i=new Nr(null,null,F.none,!0,null,o):i=new Nr(e.schema.topNodeType,null,F.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,s=this.top,i=s.options&Li?"full":this.localPreserveWS||(s.options&or)>0,{schema:o}=this.parser;if(i==="full"||s.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
|
|
3
3
|
`);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a<l.length;a++)a&&this.insertNode(o.linebreakReplacement.create(),t,!0),l[a]&&this.insertNode(o.text(l[a]),t,!/\S/.test(l[a]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=s.content[s.content.length-1],a=e.previousSibling;(!l||a&&a.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let s=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),l;Hc.hasOwnProperty(o)&&this.parser.normalizeLists&&Kh(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:Wh.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let c,u=this.needsBlock;if(jc.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let d=a&&a.skip?t:this.readStyles(e,t);d&&this.addAll(e,d),c&&this.sync(i),this.needsBlock=u}else{let c=this.readStyles(e,t);c&&this.addElementByRule(e,a,c,a.consuming===!1?l:void 0)}this.localPreserveWS=s}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
4
4
|
`),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let s=0;s<this.parser.matchedStyles.length;s++){let i=this.parser.matchedStyles[s],o=r.getPropertyValue(i);if(o)for(let l=void 0;;){let a=this.parser.matchStyle(i,o,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?t=t.filter(c=>!a.clearMark(c)):t=t.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return t}addElementByRule(e,t,r,s){let i,o;if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(o,t.attrs||null,r,t.preserveWhitespace);a&&(i=!0,r=a)}else{let a=this.parser.schema.marks[t.mark];r=r.concat(a.create(t.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(s)this.addElement(e,r,s);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}i&&this.sync(l)&&this.open--}addAll(e,t,r,s){let i=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=s==null?null:e.childNodes[s];o!=l;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,r){let s,i;for(let o=this.open,l=0;o>=0;o--){let a=this.nodes[o],c=a.findWrapping(e);if(c&&(!s||s.length>c.length+l)&&(s=c,i=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!s)return null;this.sync(i);for(let o=0;o<s.length;o++)t=this.enterInner(s[o],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(t=this.enterInner(i,null,t))}let s=this.findPlace(e,t,r);if(s){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let o=F.none;for(let l of s.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):Il(l.type,e.type))&&(o=l.addToSet(o));return i.content.push(e.mark(o)),!0}return!1}enter(e,t,r,s){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,s)),i}enterInner(e,t,r,s=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let l=Ol(e,i,o.options);o.options&jn&&o.content.length==0&&(l|=jn);let a=F.none;return r=r.filter(c=>(o.type?o.type.allowsMarkType(c.type):Il(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new Nr(e,t,a,s,null,l)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=or)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let s=r.length-1;s>=0;s--)e+=r[s].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let s=0;s<this.find.length;s++)this.find[s].pos==null&&e.nodeType==1&&e.contains(this.find[s].node)&&t.compareDocumentPosition(this.find[s].node)&(r?2:4)&&(this.find[s].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,s=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(s?0:1),o=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=i;a--)if(o(l-1,a))return!0;return!1}else{let u=a>0||a==0&&s?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}}function Kh(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Hc.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Uh(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Rl(n){let e={};for(let t in n)e[t]=n[t];return e}function Il(n,e){let t=e.schema.nodes;for(let r in t){let s=t[r];if(!s.allowsMarkType(n))continue;let i=[],o=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||i.indexOf(u)<0&&o(u))return!0}};if(o(s.contentMatch))return!0}}class rt{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Ar(t).createDocumentFragment());let s=r,i=[];return e.forEach(o=>{if(i.length||o.marks.length){let l=0,a=0;for(;l<i.length&&a<o.marks.length;){let c=o.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<i.length;)s=i.pop()[1];for(;a<o.marks.length;){let c=o.marks[a++],u=this.serializeMark(c,o.isInline,t);u&&(i.push([c,s]),s.appendChild(u.dom),s=u.contentDOM||u.dom)}}s.appendChild(this.serializeNodeInner(o,t))}),r}serializeNodeInner(e,t){if(e.isText)return Ar(t).createTextNode(e.text);let{dom:r,contentDOM:s}=Hr(Ar(t),this.nodes[e.type.name](e),null,e.attrs);if(s){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,s)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let s=e.marks.length-1;s>=0;s--){let i=this.serializeMark(e.marks[s],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let s=this.marks[e.type.name];return s&&Hr(Ar(r),s(e,t),null,e.attrs)}static renderSpec(e,t,r=null,s){return typeof t=="string"?{dom:e.createTextNode(t)}:Hr(e,t,r,s)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new rt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Pl(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Pl(e.marks)}}function Pl(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Ar(n){return n.document||window.document}const Ll=new WeakMap;function qh(n){let e=Ll.get(n);return e===void 0&&Ll.set(n,e=Jh(n)),e}function Jh(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let s=0;s<r.length;s++)t(r[s]);else for(let s in r)t(r[s])}return t(n),e}function Hr(n,e,t,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let s=e[0],i;if(typeof s!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=qh(r))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=s.indexOf(" ");o>0&&(t=s.slice(0,o),s=s.slice(o+1));let l,a=t?n.createElementNS(t,s):n.createElement(s),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&a.style?a.style.cssText=c[d]:a.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let f=e[d];if(f===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(n.createTextNode(f));else{let{dom:h,contentDOM:p}=Hr(n,f,t,r);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const Vc=65535,_c=Math.pow(2,16);function Gh(n,e){return n+e*_c}function $l(n){return n&Vc}function Yh(n){return(n-(n&Vc))/_c}const Wc=1,Kc=2,Vr=4,Uc=8;class $i{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&Uc)>0}get deletedBefore(){return(this.delInfo&(Wc|Vr))>0}get deletedAfter(){return(this.delInfo&(Kc|Vr))>0}get deletedAcross(){return(this.delInfo&Vr)>0}}class Me{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Me.empty)return Me.empty}recover(e){let t=0,r=$l(e);if(!this.inverted)for(let s=0;s<r;s++)t+=this.ranges[s*3+2]-this.ranges[s*3+1];return this.ranges[r*3]+t+Yh(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let s=0,i=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?s:0);if(a>e)break;let c=this.ranges[l+i],u=this.ranges[l+o],d=a+c;if(e<=d){let f=c?e==a?-1:e==d?1:t:t,h=a+s+(f<0?0:u);if(r)return h;let p=e==(t<0?a:d)?null:Gh(l/3,e-a),g=e==a?Kc:e==d?Wc:Vr;return(t<0?e!=a:e!=d)&&(g|=Uc),new $i(h,g,p)}s+=u-c}return r?e+s:new $i(e+s,0,null)}touches(e,t){let r=0,s=$l(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let c=this.ranges[l+i],u=a+c;if(e<=u&&l==s*3)return!0;r+=this.ranges[l+o]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let s=0,i=0;s<this.ranges.length;s+=3){let o=this.ranges[s],l=o-(this.inverted?i:0),a=o+(this.inverted?0:i),c=this.ranges[s+t],u=this.ranges[s+r];e(l,l+c,a,a+u),i+=u-c}}invert(){return new Me(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Me.empty:new Me(e<0?[0,-e,0]:[0,0,e])}}Me.empty=new Me([]);class lr{constructor(e,t,r=0,s=e?e.length:0){this.mirror=t,this.from=r,this.to=s,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new lr(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let s=e.getMirror(t);this.appendMap(e._maps[t],s!=null&&s<t?r+s:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let s=e.getMirror(t);this.appendMap(e._maps[t].invert(),s!=null&&s>t?r-s-1:void 0)}}invert(){let e=new lr;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let s=0;for(let i=this.from;i<this.to;i++){let o=this._maps[i],l=o.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this._maps[a].recover(l.recover);continue}}s|=l.delInfo,e=l.pos}return r?e:new $i(e,s,null)}}const ri=Object.create(null);class pe{getMap(){return Me.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=ri[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in ri)throw new RangeError("Duplicate use of step JSON ID "+e);return ri[e]=t,t.prototype.jsonID=e,t}}class Z{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new Z(e,null)}static fail(e){return new Z(null,e)}static fromReplace(e,t,r,s){try{return Z.ok(e.replace(t,r,s))}catch(i){if(i instanceof sr)return Z.fail(i.message);throw i}}}function Eo(n,e,t){let r=[];for(let s=0;s<n.childCount;s++){let i=n.child(s);i.content.size&&(i=i.copy(Eo(i.content,e,i))),i.isInline&&(i=e(i,t,s)),r.push(i)}return S.fromArray(r)}class mt extends pe{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),s=r.node(r.sharedDepth(this.to)),i=new E(Eo(t.content,(o,l)=>!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),s),t.openStart,t.openEnd);return Z.fromReplace(e,this.from,this.to,i)}invert(){return new Ie(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new mt(t.pos,r.pos,this.mark)}merge(e){return e instanceof mt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new mt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new mt(t.from,t.to,e.markFromJSON(t.mark))}}pe.jsonID("addMark",mt);class Ie extends pe{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new E(Eo(t.content,s=>s.mark(this.mark.removeFromSet(s.marks)),e),t.openStart,t.openEnd);return Z.fromReplace(e,this.from,this.to,r)}invert(){return new mt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Ie(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ie&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ie(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ie(t.from,t.to,e.markFromJSON(t.mark))}}pe.jsonID("removeMark",Ie);class gt extends pe{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Z.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Z.fromReplace(e,this.pos,this.pos+1,new E(S.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let s=0;s<t.marks.length;s++)if(!t.marks[s].isInSet(r))return new gt(this.pos,t.marks[s]);return new gt(this.pos,this.mark)}}return new qt(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new gt(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new gt(t.pos,e.markFromJSON(t.mark))}}pe.jsonID("addNodeMark",gt);class qt extends pe{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Z.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Z.fromReplace(e,this.pos,this.pos+1,new E(S.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new gt(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new qt(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new qt(t.pos,e.markFromJSON(t.mark))}}pe.jsonID("removeNodeMark",qt);class X extends pe{constructor(e,t,r,s=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=s}apply(e){return this.structure&&zi(e,this.from,this.to)?Z.fail("Structure replace would overwrite content"):Z.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Me([this.from,this.to-this.from,this.slice.size])}invert(e){return new X(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&X.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new X(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof X)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?E.empty:new E(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new X(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?E.empty:new E(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new X(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new X(t.from,t.to,E.fromJSON(e,t.slice),!!t.structure)}}X.MAP_BIAS=1;pe.jsonID("replace",X);class se extends pe{constructor(e,t,r,s,i,o,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=s,this.slice=i,this.insert=o,this.structure=l}apply(e){if(this.structure&&(zi(e,this.from,this.gapFrom)||zi(e,this.gapTo,this.to)))return Z.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Z.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?Z.fromReplace(e,this.from,this.to,r):Z.fail("Content does not fit in gap")}getMap(){return new Me([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new se(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),s=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||s<t.pos||i>r.pos?null:new se(t.pos,r.pos,s,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new se(t.from,t.to,t.gapFrom,t.gapTo,E.fromJSON(e,t.slice),t.insert,!!t.structure)}}pe.jsonID("replaceAround",se);function zi(n,e,t){let r=n.resolve(e),s=t-e,i=r.depth;for(;s>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,s--;if(s>0){let o=r.node(i).maybeChild(r.indexAfter(i));for(;s>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,s--}}return!1}function Xh(n,e,t,r){let s=[],i=[],o,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+a.nodeSize,t),p=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(o&&o.to==f&&o.mark.eq(d[g])?o.to=h:s.push(o=new Ie(f,h,d[g])));l&&l.to==f?l.to=h:i.push(l=new mt(f,h,r))}}),s.forEach(a=>n.step(a)),i.forEach(a=>n.step(a))}function Qh(n,e,t,r){let s=[],i=0;n.doc.nodesBetween(e,t,(o,l)=>{if(!o.isInline)return;i++;let a=null;if(r instanceof Fs){let c=o.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(a=[r]):a=o.marks;if(a&&a.length){let c=Math.min(l+o.nodeSize,t);for(let u=0;u<a.length;u++){let d=a[u],f;for(let h=0;h<s.length;h++){let p=s[h];p.step==i-1&&d.eq(s[h].style)&&(f=p)}f?(f.to=c,f.step=i):s.push({style:d,from:Math.max(l,e),to:c,step:i})}}}),s.forEach(o=>n.step(new Ie(o.from,o.to,o.style)))}function wo(n,e,t,r=t.contentMatch,s=!0){let i=n.doc.nodeAt(e),o=[],l=e+1;for(let a=0;a<i.childCount;a++){let c=i.child(a),u=l+c.nodeSize,d=r.matchType(c.type);if(!d)o.push(new X(l,u,E.empty));else{r=d;for(let f=0;f<c.marks.length;f++)t.allowsMarkType(c.marks[f].type)||n.step(new Ie(l,u,c.marks[f]));if(s&&c.isText&&t.whitespace!="pre"){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(c.text);)p||(p=new E(S.from(t.schema.text(" ",t.allowedMarks(c.marks))),0,0)),o.push(new X(l+f.index,l+f.index+f[0].length,p))}}l=u}if(!r.validEnd){let a=r.fillBefore(S.empty,!0);n.replace(l,l,new E(a,0,0))}for(let a=o.length-1;a>=0;a--)n.step(o[a])}function Zh(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function En(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth,s=0,i=0;;--r){let o=n.$from.node(r),l=n.$from.index(r)+s,a=n.$to.indexAfter(r)-i;if(r<n.depth&&o.canReplace(l,a,t))return r;if(r==0||o.type.spec.isolating||!Zh(o,l,a))break;l&&(s=1),a<o.childCount&&(i=1)}return null}function ep(n,e,t){let{$from:r,$to:s,depth:i}=e,o=r.before(i+1),l=s.after(i+1),a=o,c=l,u=S.empty,d=0;for(let p=i,g=!1;p>t;p--)g||r.index(p)>0?(g=!0,u=S.from(r.node(p).copy(u)),d++):a--;let f=S.empty,h=0;for(let p=i,g=!1;p>t;p--)g||s.after(p+1)<s.end(p)?(g=!0,f=S.from(s.node(p).copy(f)),h++):c++;n.step(new se(a,c,o,l,new E(u.append(f),d,h),u.size-d,!0))}function vo(n,e,t=null,r=n){let s=tp(n,e),i=s&&np(r,e);return i?s.map(zl).concat({type:e,attrs:t}).concat(i.map(zl)):null}function zl(n){return{type:n,attrs:null}}function tp(n,e){let{parent:t,startIndex:r,endIndex:s}=n,i=t.contentMatchAt(r).findWrapping(e);if(!i)return null;let o=i.length?i[0]:e;return t.canReplaceWith(r,s,o)?i:null}function np(n,e){let{parent:t,startIndex:r,endIndex:s}=n,i=t.child(r),o=e.contentMatch.findWrapping(i.type);if(!o)return null;let a=(o.length?o[o.length-1]:e).contentMatch;for(let c=r;a&&c<s;c++)a=a.matchType(t.child(c).type);return!a||!a.validEnd?null:o}function rp(n,e,t){let r=S.empty;for(let o=t.length-1;o>=0;o--){if(r.size){let l=t[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=S.from(t[o].type.create(t[o].attrs,r))}let s=e.start,i=e.end;n.step(new se(s,i,s,i,new E(r,0,0),t.length,!0))}function sp(n,e,t,r,s){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(e,t,(o,l)=>{let a=typeof s=="function"?s(o):s;if(o.isTextblock&&!o.hasMarkup(r,a)&&ip(n.doc,n.mapping.slice(i).map(l),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&Jc(n,o,l,i),wo(n,n.mapping.slice(i).map(l,1),r,void 0,c===null);let u=n.mapping.slice(i),d=u.map(l,1),f=u.map(l+o.nodeSize,1);return n.step(new se(d,f,d+1,f-1,new E(S.from(r.create(a,null,o.marks)),0,0),1,!0)),c===!0&&qc(n,o,l,i),!1}})}function qc(n,e,t,r){e.forEach((s,i)=>{if(s.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(s.text);){let a=n.mapping.slice(r).map(t+1+i+o.index);n.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function Jc(n,e,t,r){e.forEach((s,i)=>{if(s.type==s.type.schema.linebreakReplacement){let o=n.mapping.slice(r).map(t+1+i);n.replaceWith(o,o+1,e.type.schema.text(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,a6 as h,am as R,K as g,i as y,V as S,an as P}from"./index-
|
|
1
|
+
import{c as p,a6 as h,am as R,K as g,i as y,V as S,an as P}from"./index-CUTEHf7n.js";const M=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],O=new Set(M);function A(i){return O.has(i)}const C=new Set(["anthropic","openrouter","deco"]);function B(i){return C.has(i)}function _(i){return i.capabilities?.includes("decisions")===!0}function G(i){const e=i.capabilities?.includes("image")===!0&&!i.capabilities.includes("text");return!_(i)&&i.asyncResearch!==!0&&!e}const L={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},v={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},T={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},w={openrouter:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],deco:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},x={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},K={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function I(i){return i.toLowerCase().replace(/[^a-z0-9]/g,"")}function b(i){return I(i).includes("deepresearch")}const q=["sonar","searchpreview","online"];function D(i){const e=I(i);return e.includes("deepresearch")?!1:q.some(o=>e.includes(o))}function F(i){return i.asyncResearch!==!0&&D(i.modelId)}function H(i){return i.asyncResearch===!0||b(i.modelId)||D(i.modelId)}function u(i,e,o,n){for(const t of o){const s=i.find(a=>a.modelId===t);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const t of o){const s=i.find(a=>a.modelId.includes(t));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const t=i.find(n);if(t)return{keyId:e,modelId:t.modelId,title:t.title}}return null}function N(i,e){const o={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of i){const t=(e[n.id]??[]).filter(a=>!_(a)),s=n.providerId;o.chat.fast||(o.chat.fast=u(t,n.id,L[s]??[])),o.chat.smart||(o.chat.smart=u(t,n.id,v[s]??[])),o.chat.thinking||(o.chat.thinking=u(t,n.id,T[s]??[])),o.image||(o.image=u(t,n.id,w[s]??[],a=>a.capabilities?.includes("image")===!0&&!a.modelId.startsWith("openrouter/auto"))),o.webSearch||(o.webSearch=u(t,n.id,x[s]??[],F)),o.deepResearch||(o.deepResearch=u(t,n.id,K[s]??[],H))}return o}function V(i,e){return{queryKey:g.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await P(i,"AI_PROVIDER_KEY_LIST",{})}}function U(){const i=p.c(7),{org:e}=h(),o=R();let n;i[0]!==e.id?(n=g.aiProviders(e.id),i[0]=e.id,i[1]=n):n=i[1];let t;i[2]!==o?(t=async()=>await o.call("AI_PROVIDERS_LIST",{}),i[2]=o,i[3]=t):t=i[3];let s;i[4]!==n||i[5]!==t?(s={queryKey:n,staleTime:1/0,queryFn:t},i[4]=n,i[5]=t,i[6]=s):s=i[6];const{data:a}=S(s);return a}function Q(){const i=p.c(5),{org:e}=h();let o;i[0]!==e.id||i[1]!==e.slug?(o=V(e.slug,e.id),i[0]=e.id,i[1]=e.slug,i[2]=o):o=i[2];const{data:n}=S(o);let t;return i[3]!==n?.keys?(t=n?.keys??[],i[3]=n?.keys,i[4]=t):t=i[4],t}function W(){const i=p.c(2),e=Q();let o;return i[0]!==e?(o=e.filter($),i[0]=e,i[1]=o):o=i[1],o}function $(i){return A(i.providerId)}function E(i){const e=p.c(15),{org:o}=h(),n=R();let t;e[0]!==i||e[1]!==o.id?(t=g.aiProviderModels(o.id,i??""),e[0]=i,e[1]=o.id,e[2]=t):t=e[2];const s=!!i;let a;e[3]!==i||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:i??""}),e[3]=i,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==t||e[7]!==s||e[8]!==a?(r={queryKey:t,enabled:s,staleTime:6e4,queryFn:a},e[6]=t,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const m=!!i&&c;let f;return e[12]!==d||e[13]!==m?(f={models:d,isLoading:m},e[12]=d,e[13]=m,e[14]=f):f=e[14],f}function Y(i){const e=p.c(8),o=i[0],n=i[1],t=i[2],{models:s}=E(o?.id),{models:a}=E(n?.id),{models:r}=E(t?.id);let l;if(e[0]!==o||e[1]!==n||e[2]!==t||e[3]!==i||e[4]!==s||e[5]!==a||e[6]!==r){const c={};o?.id&&(c[o.id]=s),n?.id&&(c[n.id]=a),t?.id&&(c[t.id]=r),l=N(i,c),e[0]=o,e[1]=n,e[2]=t,e[3]=i,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function j(i){const e=p.c(11),{org:o}=h(),n=R();let t;e[0]!==i||e[1]!==o.id?(t=g.aiProviderModels(o.id,i),e[0]=i,e[1]=o.id,e[2]=t):t=e[2];let s;e[3]!==i||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:i}),e[3]=i,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==t||e[7]!==s?(a={queryKey:t,staleTime:6e4,queryFn:s},e[6]=t,e[7]=s,e[8]=a):a=e[8];const{data:r}=S(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{E as a,H as b,G as c,Y as d,U as e,A as f,Q as g,j as h,F as i,N as p,B as s,W as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,a6 as d,T as g,K as y,i as K,q as I,e as E}from"./index-
|
|
1
|
+
import{c,a6 as d,T as g,K as y,i as K,q as I,e as E}from"./index-CUTEHf7n.js";import{u as f}from"./use-mcp-client-BVU34o8K.js";function m(e,t){if(e?.isError)throw new Error(e.content?.[0]?.text??t);if(!e.structuredContent)throw new Error(t);return e.structuredContent}function C(e){const t=c.c(11),{org:n}=d();let r;t[0]!==n.id||t[1]!==n.slug?(r={connectionId:g,orgId:n.id,orgSlug:n.slug},t[0]=n.id,t[1]=n.slug,t[2]=r):r=t[2];const l=f(r);let s;t[3]!==n.id?(s=y.apiKeysList(n.id),t[3]=n.id,t[4]=s):s=t[4];let i;t[5]!==l?(i=async()=>{const a=await l.callTool({name:"API_KEY_LIST",arguments:{}});return m(a,"Failed to list API keys").items},t[5]=l,t[6]=i):i=t[6];const o=e?.enabled??!0;let u;return t[7]!==s||t[8]!==i||t[9]!==o?(u={queryKey:s,queryFn:i,staleTime:3e4,enabled:o},t[7]=s,t[8]=i,t[9]=o,t[10]=u):u=t[10],K(u)}function P(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:g,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=f(n),l=I();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_CREATE",arguments:u});return m(a,"Failed to create API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==l?(i=()=>{l.invalidateQueries({queryKey:y.apiKeysList(t.id)})},e[5]=t.id,e[6]=l,e[7]=i):i=e[7];let o;return e[8]!==s||e[9]!==i?(o={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=o):o=e[10],E(o)}function S(){const e=c.c(11),{org:t}=d();let n;e[0]!==t.id||e[1]!==t.slug?(n={connectionId:g,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=n):n=e[2];const r=f(n),l=I();let s;e[3]!==r?(s=async u=>{const a=await r.callTool({name:"API_KEY_DELETE",arguments:{keyId:u}});return m(a,"Failed to delete API key")},e[3]=r,e[4]=s):s=e[4];let i;e[5]!==t.id||e[6]!==l?(i=()=>{l.invalidateQueries({queryKey:y.apiKeysList(t.id)})},e[5]=t.id,e[6]=l,e[7]=i):i=e[7];let o;return e[8]!==s||e[9]!==i?(o={mutationFn:s,onSuccess:i},e[8]=s,e[9]=i,e[10]=o):o=e[10],E(o)}export{P as a,S as b,C as u};
|
package/dist/client/assets/{use-apply-named-rule--HLtI2IB.js → use-apply-named-rule-7lCiFUZu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as
|
|
1
|
+
import{b as V,q as L,e as q,fY as U,fO as W,K as B,t as R,fN as Y,fM as v,ee as z,fP as J,hK as G,fU as X,hL as Z,fF as $}from"./index-CUTEHf7n.js";import{C as I,E as ee}from"./content-changes-Dwsp4uvc.js";import{u as te,v as ne,aA as D,ax as oe,X as se,Y as re,av as ae,aP as ce,aQ as S,aR as ie,aO as P,au as le,az as ue,aJ as fe,ay as de}from"./site-editor-toast-BCn8hYHZ.js";import{c as pe,b as ye,p as he,j as me,k as ke,l as be,f as Oe,m as we,d as Ce}from"./hosted-reconcile-Dgr_RAK2.js";import{k as Ee,a7 as je}from"./blocks-tab-states-clMxtmY8.js";import{a as ve}from"./use-move-blocks-C_L5dYiU.js";function ge(n,u){const d=(n.deletes??[]).filter(i=>!Object.hasOwn(n.writes,i)),p=[...Object.keys(n.writes),...d],o={},k=[];for(const i of p){const O=u(i);O===void 0?k.push(i):o[i]=O}return k.length>0?{kind:"unread",blockKeys:k}:{kind:"apply",patch:{set:n.writes,...d.length>0?{delete:d}:{}},ifMatch:o}}function Ke(n,u){const d=u.pointer.split("/").slice(1).map(k=>k.replaceAll("~1","/").replaceAll("~0","~")),p=je(d[0]),o=d[1];return!p||o===void 0?u:p==="experiments"?{...u,label:n("sectionsEditor.formConflict.ruleExperiment",{name:o}),phrase:n("sectionsEditor.formConflict.ruleExperimentPhrase",{name:o})}:{...u,label:n("sectionsEditor.formConflict.ruleCampaign",{name:o}),phrase:n("sectionsEditor.formConflict.ruleCampaignPhrase",{name:o}),mine:Q(u.mine,d.length),theirs:Q(u.theirs,d.length)}}function Q(n,u){return u===3?Z(n)??n:u===2&&n&&typeof n=="object"?$(n)??n:n}function Re(n){return{type:"object",properties:{experiments:{type:"object",title:n("thread.publishPopover.abTests")},campaigns:{type:"object",title:n("thread.publishPopover.campaignDates")}}}}function De(n){return new I(ee.Conflict,"not read yet",{entries:Object.fromEntries(n.map(u=>[u,{expected:null,actual:null}]))})}function Me({orgSlug:n,virtualMcpId:u,branch:d}){const p=V(),o=L(),k=te(u,d),i=k.kind==="protocol"?k:null,O=i?.source==="github",m=ne({orgSlug:n,virtualMcpId:u,branch:d}),w={orgSlug:n,virtualMcpId:u,branch:d},C=B.decofile(m),x=q({mutationKey:re(n,u,d),scope:se(n,u,d),mutationFn:async e=>{const r=[...Object.keys(e.writes),...e.deletes.filter(t=>!Object.hasOwn(e.writes,t))],a={};for(const t of r){const s=Object.hasOwn(e.pinned,t)?e.pinned[t]:D(o,m,t,i);a[t]=await _(s,t,e.copies)}const c=ge(e,t=>a[t]);if(c.kind==="unread")throw De(c.blockKeys);return oe(o,i,w,m,c.patch,c.ifMatch)}}),M=async(e,r)=>{for(const a of e)await de(o,i,w,m,a,r);return R.info(p("sectionsEditor.namedRules.changedMeanwhile"),{...P,description:p("sectionsEditor.namedRules.changedMeanwhileHint")}),{ok:!1,reason:"changed"}},g=async(e,r,a,c)=>{const t=await T(e,r,a,c);if(O&&!(!t.ok&&t.reason==="unavailable")){const s=pe(w),l=[...Object.keys(e.writes),...e.deletes];z.schedule(()=>{for(const y of l)ye(s,y)})}return t},T=async(e,r,a,c)=>{const t=[...Object.keys(e.writes),...e.deletes];if(a>=Ce||!J())return M(t,c);const s=i&&fe(o,i,m,c)?o.getQueryData(C)??{}:await K({blocks:t});if(!s)return R.info(p("sectionsEditor.namedRules.unavailable"),{...P,description:p("sectionsEditor.namedRules.unavailableHint")}),{ok:!1,reason:"unavailable"};const l=he(t,r,e,s),y=l.pointers.length===0?{}:await me(l,Re(p),{author:(()=>{const h=i?G(i,w):null,E=ke(l.pointers[0]??"");return h&&E?{draft:h,blockKey:E}:null})()},h=>Ke(p,h)),b=l.pointers.length===0?l.merged:X(l,y),f=be(t,b,s);return Oe(y)&&we(f,s)?{ok:!0,keptTheirs:!0}:A(f,a+1)},H=e=>A(e,0),A=async(e,r)=>{if(!i)return R.info(p("sectionsEditor.namedRules.unavailable"),{...P,description:p("sectionsEditor.namedRules.unavailableHint")}),{ok:!1,reason:"unavailable"};const a=i.source==="github"?e.writes:Y(e.writes),c=(e.deletes??[]).filter(f=>!Object.hasOwn(a,f)),t=[...Object.keys(a),...c];if(t.length===0)return{ok:!0};const s=o.getQueryData(C),l=O?N(e.basis,s):null;if(l)return g({writes:a,deletes:c},l,r);const y=await F(t,s);if(!y)return g({writes:a,deletes:c},s,r);const b=new Map;for(const f of t)s&&Object.hasOwn(s,f)&&b.set(f,s[f]);o.setQueryData(C,f=>ve(f,{writes:a,deletes:c})),o.cancelQueries({queryKey:C});try{const f={};for(const h of t)s&&Object.hasOwn(s,h)&&(f[h]=s[h]);return await x.mutateAsync({writes:a,deletes:c,pinned:y,copies:f}),{ok:!0}}catch(f){return o.setQueryData(C,h=>{if(!h)return h;const E={...h};for(const j of t)b.has(j)?E[j]=b.get(j):delete E[j];return E}),le(f)?g({writes:a,deletes:c},s,r,f):(ue(p,f instanceof Error?f:new Error(String(f)),i.source),{ok:!1,reason:"failed"})}},N=(e,r)=>{if(!e||!Object.keys(e).some(t=>v(e[t]??null)!==v(r?.[t]??null)))return null;const c={...r};for(const[t,s]of Object.entries(e))s===void 0?delete c[t]:c[t]=s;return c},_=async(e,r,a)=>!O||!Object.hasOwn(a,r)?e:U(e,a[r],W(o,m,r)),F=async(e,r)=>{const a=S(o,w),c={},t=[];for(const l of e){if(a.has(l))continue;const y=D(o,m,l,i);y===void 0?t.push(l):c[l]=y}if(t.length===0)return c;const s=await K({blocks:t});if(!s)return null;for(const l of t){const y=!!r&&Object.hasOwn(r,l);if(y!==Object.hasOwn(s,l)||y&&v(s[l])!==v(r[l]))return null;const b=D(o,m,l,i);if(b===void 0)return null;c[l]=b}return c},K=async(e={})=>{if(!i)return null;try{const r=await ae(o,i,w,m);if(!i.hosted)return r.blocks;const a=o.getQueryData(B.contentIndex(m));return await ce(o,i.hosted,m,[...Ee,...e.blocks??[]],S(o,w)),ie(a,o.getQueryData(C)??r.blocks)}catch{return null}};return{apply:H,reread:K,isPending:x.isPending,holdsCopy:O}}export{Me as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as r}from"./index-CUTEHf7n.js";import{b as a}from"./chat-context-3o15fH-n.js";import{u as i}from"./shell-layout-bVoP9kOD.js";function u(){const t=r.c(3),{sendMessage:s}=a(),{openSidePanel:o}=i();let e;return t[0]!==o||t[1]!==s?(e=n=>{o(),s({parts:[{type:"text",text:n}]})},t[0]=o,t[1]=s,t[2]=e):e=t[2],e}export{u};
|