decocms 4.459.0 → 4.459.2
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-Cnt3s3Qv.js → AlertCircle-BhLvKd51.js} +1 -1
- package/dist/client/assets/{AreaChart-Cds6XVCQ.js → AreaChart-BXdKk-Jh.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CVapKJeO.js → ArrowLeft-BGBmg7V7.js} +1 -1
- package/dist/client/assets/{ArrowUp-BlzOYA31.js → ArrowUp-BiSVkN3f.js} +1 -1
- package/dist/client/assets/{Building02-DEQgvDUF.js → Building02-Cn4v8u0T.js} +1 -1
- package/dist/client/assets/{CartesianChart-B_Fanzw9.js → CartesianChart-CaWYdC9u.js} +1 -1
- package/dist/client/assets/{Check-CzSx-ydY.js → Check-BIm8oPAI.js} +1 -1
- package/dist/client/assets/{CheckCircle-BWPfjhqr.js → CheckCircle-DtMOIYIN.js} +1 -1
- package/dist/client/assets/{ChevronUp-rUh9iEAD.js → ChevronUp-CW9NwQNu.js} +1 -1
- package/dist/client/assets/{Copy01-C2Yrgrxb.js → Copy01-CVhdu84v.js} +1 -1
- package/dist/client/assets/{CreditCard01-hJClrSeg.js → CreditCard01-YvQwrjsc.js} +1 -1
- package/dist/client/assets/{DotsVertical-3xNyBi9X.js → DotsVertical-D-FvZQn0.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-ByxxxsZC.js → ErrorBarContext-D3MulA5M.js} +1 -1
- package/dist/client/assets/{Image01-BB-fQuF8.js → Image01-CGBVFmAI.js} +1 -1
- package/dist/client/assets/{Key01-DcjI-nGA.js → Key01-CwVo9Cfv.js} +1 -1
- package/dist/client/assets/{Line-ZiYmGsuL.js → Line-C48uhTy3.js} +1 -1
- package/dist/client/assets/{Link01-BRPPP5SV.js → Link01-9k5oDSP-.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BkNFLcBO.js → LinkBroken01-CKAYv5Ws.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DGnJ7QLB.js → LinkExternal01-DNJF5sr3.js} +1 -1
- package/dist/client/assets/{Monitor01-CwkGnynm.js → Monitor01-emBSPIO-.js} +1 -1
- package/dist/client/assets/{Palette-vvvH2B7g.js → Palette-CbtdR6wJ.js} +1 -1
- package/dist/client/assets/{Plus-IBFVYt16.js → Plus-088McVZs.js} +1 -1
- package/dist/client/assets/{SearchMd-ma2pJckE.js → SearchMd-CRK8FN15.js} +1 -1
- package/dist/client/assets/{Sector-CR8YJj93.js → Sector-cSOsr2E-.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-D_1-HSzF.js → ShoppingBag01-BxQzf-9l.js} +1 -1
- package/dist/client/assets/{Sun-D8jVF5Xg.js → Sun-D6nY-Bb0.js} +1 -1
- package/dist/client/assets/{Tool01-BQ6YeSBp.js → Tool01-DQQGDcpr.js} +1 -1
- package/dist/client/assets/{Trash01-CFIg7T-4.js → Trash01-B3Mmvw35.js} +1 -1
- package/dist/client/assets/{Upload01-DR9ASh0y.js → Upload01-jQPNdEwy.js} +1 -1
- package/dist/client/assets/{User01-B1tXJtqS.js → User01-B-OC1WKF.js} +1 -1
- package/dist/client/assets/{UserSquare-Cx5Xiw2A.js → UserSquare-DAPHqKUt.js} +1 -1
- package/dist/client/assets/{Users01-Dnx31YPK.js → Users01-ClTO42s_.js} +1 -1
- package/dist/client/assets/{X-CgBe-4Jc.js → X-B8pJz_49.js} +1 -1
- package/dist/client/assets/{XAxis-O9p9WbIW.js → XAxis-D6VwqdrO.js} +1 -1
- package/dist/client/assets/{XClose-BUXY9lDw.js → XClose-BqnBpCCh.js} +1 -1
- package/dist/client/assets/{ZoomOut-1hnYerz5.js → ZoomOut-DsjWT-m0.js} +1 -1
- package/dist/client/assets/{access-gate-IfeDUCmD.js → access-gate-Bn9w-zIx.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Dq2YpbVF.js → add-connection-dialog-BhN1VUAm.js} +1 -1
- package/dist/client/assets/{agent-analytics-BxHEhXGJ.js → agent-analytics-DqtV4MPf.js} +1 -1
- package/dist/client/assets/agent-app-CwRJsLag.js +1 -0
- package/dist/client/assets/{agent-assets-De3wO9xX.js → agent-assets-BFqhddLD.js} +1 -1
- package/dist/client/assets/{agent-automation-DA8thEE9.js → agent-automation-C8klKvKY.js} +1 -1
- package/dist/client/assets/{agent-automations-B-eYvFiq.js → agent-automations-DqhEODAb.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-B4X91jM-.js → agent-connect-sources-C86EyOB5.js} +1 -1
- package/dist/client/assets/agent-deck-DGV-pK2t.js +1 -0
- package/dist/client/assets/{agent-e2e-D_bSHB2i.js → agent-e2e-DzJ9sAzc.js} +1 -1
- package/dist/client/assets/{agent-experiments-D9Hm886u.js → agent-experiments-VcqTmtZL.js} +1 -1
- package/dist/client/assets/{agent-file-C53RbwG4.js → agent-file-DI2wK--r.js} +1 -1
- package/dist/client/assets/{agent-hosting-Ck4H3tEL.js → agent-hosting-kfFKqM9r.js} +1 -1
- package/dist/client/assets/{agent-icon-CIGL1pZs.js → agent-icon-CP_Ce3vP.js} +1 -1
- package/dist/client/assets/agent-library-Dlz_4LiQ.js +1 -0
- package/dist/client/assets/agent-library-file-DPfP5s66.js +1 -0
- package/dist/client/assets/{agent-monitor-C8IHLMHD.js → agent-monitor-Cmsy40BX.js} +1 -1
- package/dist/client/assets/agent-overview-CmHeFyml.js +1 -0
- package/dist/client/assets/agent-settings-C7f7_N2z.js +1 -0
- package/dist/client/assets/{agent-site-editor-DaSW5uvn.js → agent-site-editor-Cn5duNcn.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CIrGs6m3.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-Bb1ejRxz.js → agent-site-editor-content-CbT525Tv.js} +5 -5
- package/dist/client/assets/{agent-site-editor-preview-CoQ_Kpp-.js → agent-site-editor-preview-CYb_d7vH.js} +3 -3
- package/dist/client/assets/agent-view-Be5hcLqc.js +1 -0
- package/dist/client/assets/{agent-view-guard-COCiOJT8.js → agent-view-guard-C1R2qCc9.js} +1 -1
- package/dist/client/assets/{agents-list-XUQd9rlP.js → agents-list-y-TIBGAq.js} +1 -1
- package/dist/client/assets/{ai-providers-0dAet6Ph.js → ai-providers-CRe_x6a5.js} +1 -1
- package/dist/client/assets/{alert-DrR2x4bd.js → alert-DtABAm9U.js} +1 -1
- package/dist/client/assets/{alert-dialog-CYGz7ldN.js → alert-dialog-DmVEYAb4.js} +1 -1
- package/dist/client/assets/{analytics-sections-BPEmvryR.js → analytics-sections-B7lS35B2.js} +1 -1
- package/dist/client/assets/{api-keys-DUUMIXcJ.js → api-keys-Cif1835z.js} +1 -1
- package/dist/client/assets/api-keys-Dwm2bo1Y.js +1 -0
- package/dist/client/assets/app-editor-C8_M7ADb.js +1 -0
- package/dist/client/assets/{asset-utils-BsDgokdc.js → asset-utils-CT4-E6TK.js} +1 -1
- package/dist/client/assets/{auth-CbP-I67u.js → auth-2OsbyFrK.js} +1 -1
- package/dist/client/assets/{auth-catchall-gXqx7jWL.js → auth-catchall-BzbXV9-m.js} +1 -1
- package/dist/client/assets/{auth-entry-CXFwVhZf.js → auth-entry-DGYmKia4.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DAiKWK3e.js → auth-split-layout-95LDkF8r.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DIDvxq7p.js → authenticate-and-persist-oauth-BGZheh1t.js} +1 -1
- package/dist/client/assets/{automation-list-row-C9x2-dqo.js → automation-list-row-DVowGYyJ.js} +1 -1
- package/dist/client/assets/{automation-runs-BFkUkwl_.js → automation-runs-C4ptawD5.js} +1 -1
- package/dist/client/assets/{automations-CMtFKDqu.js → automations-9sMoXMlz.js} +1 -1
- package/dist/client/assets/{autosend-DCU1n5eC.js → autosend-BL2q_s0u.js} +1 -1
- package/dist/client/assets/{avatar-B48LJY_f.js → avatar-BE-fSFZD.js} +1 -1
- package/dist/client/assets/{badge-CbK6PWVy.js → badge-CWkPL4_H.js} +1 -1
- package/dist/client/assets/{block-document-B78z-a3g.js → block-document-B5Nbhvq6.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-C85CoWqo.js → blocks-preview-workspace-context-BmQuZmk0.js} +1 -1
- package/dist/client/assets/{blog-schema-SRUdp3sd.js → blog-schema-C5vM1gTk.js} +1 -1
- package/dist/client/assets/{buckets-8RnICEdF.js → buckets-CSwPt34t.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CgZLsG1y.js → build-improve-prompt-doc-ztgqv-Z4.js} +1 -1
- package/dist/client/assets/{calendar-BLnb7Mll.js → calendar-BibeDh1C.js} +1 -1
- package/dist/client/assets/{capability-load-error-azaduCYQ.js → capability-load-error-Cifg-uxi.js} +1 -1
- package/dist/client/assets/category-editor-LUC4tS1v.js +1 -0
- package/dist/client/assets/{chart-DH7MfDo4.js → chart-Dtz_P3D3.js} +5 -5
- package/dist/client/assets/{chat-context-Dz_Vgbbo.js → chat-context-Blq_eRG7.js} +6 -6
- package/dist/client/assets/{chat-draft-BEcLQYcH.js → chat-draft-jYk7-XVU.js} +1 -1
- package/dist/client/assets/{checkbox-fg5Liawx.js → checkbox-D5Dxpou_.js} +1 -1
- package/dist/client/assets/{choose-editor-BwpCyTHb.js → choose-editor-db_FowHS.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-CFpL9K68.js → claim-phase-copy-8K3qgNLh.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DIWSlo4_.js → cli-auth-success-DjOImTaI.js} +1 -1
- package/dist/client/assets/{client-icons-BAQMv0Qg.js → client-icons-BkFbGfWa.js} +1 -1
- package/dist/client/assets/{collapsible-BbONBSMG.js → collapsible-DsS_PEhd.js} +1 -1
- package/dist/client/assets/{collection-detail-DLFQHJrO.js → collection-detail-DP9fd0Dw.js} +1 -1
- package/dist/client/assets/{collection-display-button-1HU6sh_z.js → collection-display-button-C2K7H_M_.js} +1 -1
- package/dist/client/assets/{collection-search-D8CVrsVV.js → collection-search-9MFDsQ6p.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-MT5DbxAL.js → collection-table-wrapper-SA5bpKVN.js} +1 -1
- package/dist/client/assets/{collection-tabs-0IVfLZGF.js → collection-tabs-jDuTyfYq.js} +1 -1
- package/dist/client/assets/{column-rules-CX7nbnH9.js → column-rules-D6JxKTRe.js} +1 -1
- package/dist/client/assets/{combobox-DhYfa0RQ.js → combobox-DF39TceE.js} +1 -1
- package/dist/client/assets/{command-D3dAN0q_.js → command-B4jGFd17.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-PzMGKTiF.js → companion-mcps-section-CVSn-aTg.js} +1 -1
- package/dist/client/assets/config-bg0vG3sC.js +1 -0
- package/dist/client/assets/{connect-CZqVU7B6.js → connect-D_b6-CyS.js} +1 -1
- package/dist/client/assets/{connect-layout-mdLHs13X.js → connect-layout-DDUc-hD-.js} +1 -1
- package/dist/client/assets/{connection-PwoIxFr1.js → connection-CwaA-4mr.js} +1 -1
- package/dist/client/assets/{connection-card-Bkip9U2_.js → connection-card-BtsAXkN4.js} +1 -1
- package/dist/client/assets/{connection-detail-B_oXBonF.js → connection-detail-QHFcVXMr.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-RxtiQen1.js → connection-form-helpers-BV0FZHte.js} +1 -1
- package/dist/client/assets/{connections-C8w4xaQ1.js → connections-CNadoE5b.js} +1 -1
- package/dist/client/assets/context-CFdmX9Xg.js +1 -0
- package/dist/client/assets/{context-menu-DGbccz2w.js → context-menu-BnfFPukJ.js} +1 -1
- package/dist/client/assets/core.esm-C5SAJNWk.js +5 -0
- package/dist/client/assets/{create-organization-dialog-D3pW5srr.js → create-organization-dialog-mc6cUsWg.js} +1 -1
- package/dist/client/assets/{daily-pulse-jsV2hysv.js → daily-pulse-DxbyF8Ez.js} +1 -1
- package/dist/client/assets/{decopilot--nY6-Nba.js → decopilot-NLRNUzMe.js} +1 -1
- package/dist/client/assets/{device-hint-CusD2WUe.js → device-hint-Bk3hM3wv.js} +1 -1
- package/dist/client/assets/{dialog-7XPFiysQ.js → dialog-BGB8jiGJ.js} +1 -1
- package/dist/client/assets/{discover-B2TNQgKF.js → discover-DTxiggmr.js} +1 -1
- package/dist/client/assets/{domain-settings-C_KSW-jG.js → domain-settings--d3mBGQt.js} +1 -1
- package/dist/client/assets/{download-app-dialog-DKnC1JBE.js → download-app-dialog-C1623CnU.js} +1 -1
- package/dist/client/assets/{drawer-Bw83CS61.js → drawer-CDzlciSr.js} +1 -1
- package/dist/client/assets/{editor-BGyR0Yu7.js → editor-CtDmuL7X.js} +3 -3
- package/dist/client/assets/{empty-state-BqrekKjc.js → empty-state-CjQyKZ-1.js} +1 -1
- package/dist/client/assets/{empty-state-BPSNY9Ff.js → empty-state-ClSZs1JG.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D2UmPaHV.js → extract-connection-data-BnK0gWOf.js} +1 -1
- package/dist/client/assets/{feature-gate-Dy49RHsY.js → feature-gate-cEqP5nQK.js} +1 -1
- package/dist/client/assets/{feature-paywall-Cq3ulvvn.js → feature-paywall-B0iudT_s.js} +1 -1
- package/dist/client/assets/{file-explorer-CpTAURot.js → file-explorer-CPmbjsZ0.js} +1 -1
- package/dist/client/assets/{file-preview-BzweKibR.js → file-preview-FOaYPomf.js} +1 -1
- package/dist/client/assets/{file-share-button-B0pm46tc.js → file-share-button-C99y-deU.js} +1 -1
- package/dist/client/assets/{file-type-icon-CLaHXnTs.js → file-type-icon-CaoQ1xmx.js} +1 -1
- package/dist/client/assets/flat-project-U_elHLQG.js +1 -0
- package/dist/client/assets/{folder-icon-mwp3RZsH.js → folder-icon-C189zm-A.js} +1 -1
- package/dist/client/assets/{form-Bq3zfSIW.js → form-Bc6DsBML.js} +1 -1
- package/dist/client/assets/{gateway-client-3IqhjEcP.js → gateway-client-C0zWKCU4.js} +1 -1
- package/dist/client/assets/{general-CEini4k1.js → general-BtREXR3p.js} +1 -1
- package/dist/client/assets/home-twE7M1iU.js +1 -0
- package/dist/client/assets/{icon-button-mN70eAbU.js → icon-button-DI_TQN14.js} +1 -1
- package/dist/client/assets/{index-ChVmLdHW.js → index-BDhW9xxN.js} +4 -4
- package/dist/client/assets/{index-CmiT1BjZ.js → index-BOGlzqxy.js} +1 -1
- package/dist/client/assets/{index-NzXgSYlC.js → index-BgnBPJ_k.js} +1 -1
- package/dist/client/assets/{index-CpaCFTVB.js → index-Bjctp948.js} +1 -1
- package/dist/client/assets/{index-Bw3vJovA.js → index-CKHLb67S.js} +5 -5
- package/dist/client/assets/{index-CvNCy3PN.js → index-CN7c5BIN.js} +1 -1
- package/dist/client/assets/{index-BqteJsv4.js → index-C_I69v1G.js} +1 -1
- package/dist/client/assets/{index-BGJh0fv3.js → index-CdXinK8k.js} +1 -1
- package/dist/client/assets/{index-BrjxbobA.js → index-ChB9J_RZ.js} +1 -1
- package/dist/client/assets/{index-DZa7kB0Z.js → index-DClhYi2n.js} +1 -1
- package/dist/client/assets/{index-4prK16Bx.js → index-DH9SXre1.js} +1 -1
- package/dist/client/assets/{index-Bf68wbQY.js → index-G3JSHUT3.js} +1 -1
- package/dist/client/assets/{index-BVoDvJqr.js → index-RmHD0J0J.js} +1 -1
- package/dist/client/assets/{index-D1n3DRPd.js → index-XEhCSGBE.js} +1 -1
- package/dist/client/assets/{index-IcPh7oEh.js → index-kogfMavo.js} +1 -1
- package/dist/client/assets/{index-redirect-DsKYJNmF.js → index-redirect-BVO0FWKk.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D1DafD0M.js → infiniteQueryObserver-8nco6j0l.js} +1 -1
- package/dist/client/assets/{infra-billing-zUiDiuZM.js → infra-billing-D_L2KNiI.js} +1 -1
- package/dist/client/assets/{input-BrPt5MZJ.js → input--BdO_-Si.js} +1 -1
- package/dist/client/assets/{input-C2Q29OSf.js → input-Bl8RoIF_.js} +3 -3
- package/dist/client/assets/{input-9ltBphX4.js → input-DrKcGYrl.js} +1 -1
- package/dist/client/assets/{integration-icon-d1AiAF22.js → integration-icon-BDP6F9Pj.js} +1 -1
- package/dist/client/assets/{label-llKCPsPO.js → label-uTNaIuWI.js} +1 -1
- package/dist/client/assets/{layout-EXCNCQSS.js → layout-wln6hIY8.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-eylzpiF_.js → legacy-agents-deep-CawwPAe9.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-D_lkF7FC.js → legacy-main-redirect-BRfxPgdK.js} +1 -1
- package/dist/client/assets/library-DvaCz1Wk.js +1 -0
- package/dist/client/assets/{library-tab-Lgm0ghP5.js → library-tab-CX8njRPr.js} +1 -1
- package/dist/client/assets/{login-DuFlqpvt.js → login-Ba7PbDUP.js} +1 -1
- package/dist/client/assets/{markdown-Dmr3MD7N.js → markdown-LIOti3qC.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BQm3KRIJ.js → mcp-app-renderer-Z11oKtDn.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BDj-ENs2.js → mcp-oauth-DdEBE0Y7.js} +1 -1
- package/dist/client/assets/{members-D2zsUYru.js → members-BpY2Uunx.js} +1 -1
- package/dist/client/assets/{memory-DCcCIE6E.js → memory-BOfe9xo8.js} +1 -1
- package/dist/client/assets/{mini-report-page-8E9sblcd.js → mini-report-page-CDObofTo.js} +1 -1
- package/dist/client/assets/{mock-board-BVxIfeR9.js → mock-board-DTiFXXEW.js} +1 -1
- package/dist/client/assets/{monaco-editor-k3tefZgc.js → monaco-editor-J-McljL4.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-pBlR6qWx.js → monitoring-stats-row-BuUSw5n9.js} +1 -1
- package/dist/client/assets/{multi-select-B2Ze7jsd.js → multi-select-YETcY4pN.js} +1 -1
- package/dist/client/assets/{mustache-DBD5y6DJ.js → mustache-B6NVLdGZ.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Cy-6meY2.js → new-project-dialog-C_qrCiK3.js} +1 -1
- package/dist/client/assets/{oauth-callback-BjmTr7x6.js → oauth-callback-CoY1dClF.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BkhAnS03.js → oauth-callback-ai-provider-DRzdFuFq.js} +1 -1
- package/dist/client/assets/{onboarding-NzhRXTjq.js → onboarding-ZdgIxalP.js} +1 -1
- package/dist/client/assets/{openai-conversation-B2eCHMd2.js → openai-conversation-D0z85aeO.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-bEyFOTpu.js → optimistic-project-sidebar-views-F9PSyz4u.js} +1 -1
- package/dist/client/assets/{org-file-open-context-GQ31bTUS.js → org-file-open-context-BMxi_LQF.js} +1 -1
- package/dist/client/assets/{organization-choice-j7iLLEc2.js → organization-choice-BByF2TD6.js} +1 -1
- package/dist/client/assets/{orgs-86mFN1bL.js → orgs-DNf-zQVQ.js} +1 -1
- package/dist/client/assets/{page-seo-form-ChqcYa8F.js → page-seo-form-D3EpRlka.js} +1 -1
- package/dist/client/assets/{pair-W1JkklHY.js → pair-DcQaouFq.js} +1 -1
- package/dist/client/assets/{plan-ladder-BcnPG8kD.js → plan-ladder-DCJHDLS1.js} +1 -1
- package/dist/client/assets/{popover-CqhYMlVn.js → popover-BeYdUP-7.js} +1 -1
- package/dist/client/assets/post-calendar-CWlL1qOv.js +1 -0
- package/dist/client/assets/{post-editor-BaU9SxKj.js → post-editor-BqiuLn6r.js} +2 -2
- package/dist/client/assets/{preview-content-HhS4fEPc.js → preview-content-wfTnwfYO.js} +1 -1
- package/dist/client/assets/{preview-dialog-dA-lxV4T.js → preview-dialog-BBD3jkZw.js} +1 -1
- package/dist/client/assets/{profile-BRC9Ss0Z.js → profile-C4Rt4NnT.js} +1 -1
- package/dist/client/assets/project-app-view-BSuJFE5I.js +1 -0
- package/dist/client/assets/project-feed-DmY6xTEa.js +1 -0
- package/dist/client/assets/{project-icon-C7Hu1tJm.js → project-icon-CtBv5qE9.js} +1 -1
- package/dist/client/assets/project-reports-DqdW9cvU.js +1 -0
- package/dist/client/assets/project-tasks-n0fjaerW.js +1 -0
- package/dist/client/assets/{projects-Dpuak2HA.js → projects-C5p0nBlq.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BURfBBvk.js → projects-empty-state-CTShW1Lx.js} +1 -1
- package/dist/client/assets/{prompts-CiBT8-NB.js → prompts-CQ9lRosC.js} +1 -1
- package/dist/client/assets/record-editor-CuQArctF.js +1 -0
- package/dist/client/assets/redirect-editor-BqLcv-Nb.js +1 -0
- package/dist/client/assets/{reports-B9whLNOW.js → reports-D1mTKUWD.js} +1 -1
- package/dist/client/assets/reports-eg7qCRZt.js +1 -0
- package/dist/client/assets/{reports-onboarding-OKRaptw7.js → reports-onboarding-Bhi9ZgPz.js} +1 -1
- package/dist/client/assets/reports-tab-CvuocIip.js +2 -0
- package/dist/client/assets/{repositories-heCfXdkU.js → repositories-BYsSTJU-.js} +1 -1
- package/dist/client/assets/{repository-binding-c-pt63EX.js → repository-binding-C6IRmj-B.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DRt0VM9d.js → repository-import-picker-COTFeOcQ.js} +1 -1
- package/dist/client/assets/{repository-picker-nqe38njd.js → repository-picker-sBc4_JWX.js} +1 -1
- package/dist/client/assets/{require-capability-Dir5VfBS.js → require-capability-BhFz_zS7.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CIIRb74R.js → required-auth-layout-CslXPG0m.js} +1 -1
- package/dist/client/assets/{reset-password-yOtTjadj.js → reset-password-D0bAgN3-.js} +1 -1
- package/dist/client/assets/{resizable-CfLbGzYc.js → resizable-DQ19gouy.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-C1JCYc8e.js → resolve-tab-icon-CY3X9f4_.js} +1 -1
- package/dist/client/assets/{review-settings-BdDEMD7G.js → review-settings-BV2AxARx.js} +1 -1
- package/dist/client/assets/rich-text-link-control-B1QtoX3z.js +1 -0
- package/dist/client/assets/{roles-bh3gMsHP.js → roles-BeG_4GHR.js} +1 -1
- package/dist/client/assets/route-BqiT-Ol6.js +1 -0
- package/dist/client/assets/route-CAFnuBNg.js +1 -0
- package/dist/client/assets/route-CHYkbxgn.js +1 -0
- package/dist/client/assets/{runnable-block-editor-CuWmi7BA.js → runnable-block-editor-DcMkYuUb.js} +4 -4
- package/dist/client/assets/{sandbox-lifecycle-context-IbJdCFZl.js → sandbox-lifecycle-context-DeQIS6JV.js} +1 -1
- package/dist/client/assets/{schema-D71rjoG0.js → schema-B4_xo1tD.js} +1 -1
- package/dist/client/assets/{scroll-area-C1A8PvHb.js → scroll-area-DCMK1tWu.js} +1 -1
- package/dist/client/assets/{search-input-Bt-TRqMJ.js → search-input-BSOQ3ySE.js} +1 -1
- package/dist/client/assets/{search-toggle-DJ_XCJbV.js → search-toggle-C-N7d4fN.js} +1 -1
- package/dist/client/assets/{secret-picker-CUh7CKpQ.js → secret-picker-DZTMfxXL.js} +1 -1
- package/dist/client/assets/{secrets-BdK4qu9r.js → secrets-Bx2QImFq.js} +1 -1
- package/dist/client/assets/sections-editor-BYNA13Qk.js +1 -0
- package/dist/client/assets/{select-6CFL7VEE.js → select-B6DzqJiH.js} +1 -1
- package/dist/client/assets/{select-model-DP5ItPif.js → select-model-bJPmmx5f.js} +1 -1
- package/dist/client/assets/seo-editor-qeEunz7R.js +1 -0
- package/dist/client/assets/{separator-Dv_2rMb4.js → separator-iMNYfJb7.js} +1 -1
- package/dist/client/assets/{settings-tab-BpJo_e5R.js → settings-tab-BhyiSM9Z.js} +1 -1
- package/dist/client/assets/{sheet-DMTbOlwp.js → sheet-CMNWdtKR.js} +1 -1
- package/dist/client/assets/{shell-layout-CK7wLTUx.js → shell-layout-CTITeNJr.js} +1 -1
- package/dist/client/assets/{skills-DTxnfNaS.js → skills-BsLVR3Vn.js} +1 -1
- package/dist/client/assets/{sso-BNxOATww.js → sso-Jw8gC2hK.js} +1 -1
- package/dist/client/assets/{suggestion-BsbxdlrF.js → suggestion-CRtEJ9La.js} +1 -1
- package/dist/client/assets/{switch-BYw3Xugd.js → switch-Ay_EsHPF.js} +1 -1
- package/dist/client/assets/{synced-repos-D8_WCeck.js → synced-repos-DMWgs820.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DboxqswS.js → tab-icon-glyph-C5LJrgle.js} +1 -1
- package/dist/client/assets/{table-Dvr7kYjd.js → table-BDAYwSIe.js} +1 -1
- package/dist/client/assets/{tabs-D3R4V_n3.js → tabs-QC_e18gg.js} +1 -1
- package/dist/client/assets/{task-board-jWDOqP6T.js → task-board-BpcFKojY.js} +1 -1
- package/dist/client/assets/task-route-CaaYbxyP.js +1 -0
- package/dist/client/assets/{task-status-B-SX0lAT.js → task-status-CtgvGjEg.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-3-5Zwbn5.js → taskboard-analytics-CkC7VEhH.js} +1 -1
- package/dist/client/assets/tasks-COTcKNjz.js +1 -0
- package/dist/client/assets/{tasks-CQz6Nviz.js → tasks-D-EA-uwO.js} +1 -1
- package/dist/client/assets/{textarea-BeITBKxj.js → textarea-MfQKTdum.js} +1 -1
- package/dist/client/assets/{thread-analytics-Chp53ll5.js → thread-analytics-xc71V_Jy.js} +1 -1
- package/dist/client/assets/{thread-button-CyealSYx.js → thread-button-RYt2155P.js} +1 -1
- package/dist/client/assets/{thread-intent-2EYthzbr.js → thread-intent-y4sFV6nC.js} +1 -1
- package/dist/client/assets/{thread-route-BJfF-e-7.js → thread-route-BRm6UAyi.js} +1 -1
- package/dist/client/assets/{thread-route-BAyYuLhg.js → thread-route-ZX2rkhqS.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BT9_vo3C.js → thread-sheet-body-B9fTAvbI.js} +1 -1
- package/dist/client/assets/{toggle-group-DqXAR_ku.js → toggle-group-B2CGQVNc.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-SXWkQtCo.js → toolbar-icon-button-CsZD8f-r.js} +1 -1
- package/dist/client/assets/{tooltip-Cd2NmgKf.js → tooltip-D555rgHk.js} +1 -1
- package/dist/client/assets/{track-BzIxBx0U.js → track-DQPZdUAl.js} +1 -1
- package/dist/client/assets/{types-Yj0uB20y.js → types-C1FT5lJw.js} +1 -1
- package/dist/client/assets/{usage-stats-CPgORe2K.js → usage-stats-cLtXqoaq.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DRajJwjA.js → use-ai-providers-cz2PnRt5.js} +1 -1
- package/dist/client/assets/{use-automations-C-4XQ4JO.js → use-automations-BITjz5uS.js} +1 -1
- package/dist/client/assets/{use-autosave-B_ASkdoT.js → use-autosave-CXwSXrBr.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-QjPc9oo9.js → use-chat-layout-state-C_QstcMu.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CDj388Wx.js → use-clock-tick-Dx4PkWs4.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CSdDEA_3.js → use-connect-companion-DdM71OKb.js} +1 -1
- package/dist/client/assets/{use-connection-C-VZ8w9P.js → use-connection-hMJ4m1KM.js} +1 -1
- package/dist/client/assets/{use-copy-DDBNqL1l.js → use-copy-D1Nm-kgX.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-KCSUU6WZ.js → use-create-virtual-mcp-CHjD7uCu.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-e4GZpEEu.js → use-date-fns-locale-Bp7nVQWs.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C5pQP1AE.js → use-debounced-autosave-SzIG02td.js} +1 -1
- package/dist/client/assets/{use-debounced-value-QxJhT0l9.js → use-debounced-value-DCwb28TF.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BOKw4P1d.js → use-deco-credits-3BarR1a3.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-e6tJ215a.js → use-decopilot-events-CY9KSVWJ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bl2-hIur.js → use-delete-connection-B4ggOZlI.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D-VzDuWZ.js → use-deployment-admin-D9OrJmDH.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-C0bfTg9j.js → use-fast-preview-draft-url-QLdWZwPZ.js} +1 -1
- package/dist/client/assets/{use-file-configs-5_tcNCEF.js → use-file-configs-Dk0C1WSo.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-3EQsEpEW.js → use-infinite-scroll-DoBJIre7.js} +1 -1
- package/dist/client/assets/{use-join-requests-C33UkUVi.js → use-join-requests-51xqIM_A.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BtITsfHw.js → use-main-panel-tabs-DmvkA1OF.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C63PL9mw.js → use-mcp-auth-status-CVLugyb-.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Q4rBo7vM.js → use-mcp-client-alN3BSuJ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BUsT36pj.js → use-mcp-prompts-C5SH_xGs.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BEIQB24m.js → use-mcp-tools-s04xKOM2.js} +1 -1
- package/dist/client/assets/{use-members-Up_i1D-k.js → use-members-DF7c1t5_.js} +1 -1
- package/dist/client/assets/{use-mobile-NUesfqlY.js → use-mobile-DEWonsbr.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D_jqZmcT.js → use-navigate-to-agent-MADN_glW.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-D6QRwqGF.js +1 -0
- package/dist/client/assets/{use-open-billing-url-XbJkJRvN.js → use-open-billing-url-CSK9y7YW.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BV6ZBK4X.js → use-org-auth-client-CoFPUjTd.js} +1 -1
- package/dist/client/assets/{use-org-fs-BbRMsy5S.js → use-org-fs-BQ9rCXmr.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BxJXCsWN.js → use-org-repo-syncs-CaR1Xa1F.js} +1 -1
- package/dist/client/assets/{use-org-sso-CMHVPcMz.js → use-org-sso-DzvTriO7.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C2vcpSSU.js → use-organization-roles-DGclowcu.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DOzB1VOw.js → use-organization-settings-BBoTt-lq.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-sve-S3VW.js → use-panel-navigate-yk7t3bcJ.js} +1 -1
- package/dist/client/assets/{use-project-scope-DiTyFpcQ.js → use-project-scope-BxM698pt.js} +1 -1
- package/dist/client/assets/{use-releases-f_VX5ISv.js → use-releases-BwrUbxxj.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Bv_isoDm.js → use-reports-diagnostic-CpCwaiXg.js} +1 -1
- package/dist/client/assets/{use-secrets-CskMGRW-.js → use-secrets-BebZ2nF0.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-A6-AQdBJ.js → use-section-preview-base-Z5lePfkA.js} +1 -1
- package/dist/client/assets/{use-session-runtime-bs_s_abt.js → use-session-runtime-Cgb0XGQC.js} +1 -1
- package/dist/client/assets/{use-tags-DkfNupSg.js → use-tags-D9QMq4tP.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-Ci_fmCxC.js → use-task-board-analytics-jg77_cwt.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CWmA4Ntk.js → use-task-board-events-gPs9mr0g.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CXgGKsKs.js → use-task-metadata-DhhvrkSV.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-jKD2KnkA.js → use-thread-analytics-DJFeqMXb.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-B2TafAgP.js → use-thread-outputs-CHJvnckm.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DWxFiM4L.js +1 -0
- package/dist/client/assets/{useQueries-Fm6fR85y.js → useQueries-Ckdgdjes.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cc2PctH-.js +1 -0
- package/dist/client/assets/{users-CcYYe1k1.js → users-BTZ7odtd.js} +1 -1
- package/dist/client/assets/{utils-BT5oy4Sg.js → utils-BFq73cJ1.js} +1 -1
- package/dist/client/assets/variant-calendar-KMXxLfQ4.js +1 -0
- package/dist/client/assets/{variant-matcher-override-BsWNx25m.js → variant-matcher-override-M6HMnoKw.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CvV4AEos.js → view-mode-toggle-Bed1vKIv.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C70ka1-l.js → virtual-mcp-DYlKBgbY.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BpQ0nl5-.js +0 -1
- package/dist/client/assets/agent-deck-DU6uai7B.js +0 -1
- package/dist/client/assets/agent-library-DLdV7bTC.js +0 -1
- package/dist/client/assets/agent-library-file-BjsBj-Wl.js +0 -1
- package/dist/client/assets/agent-overview-DKDtU5t3.js +0 -1
- package/dist/client/assets/agent-settings-DyDWo-xz.js +0 -1
- package/dist/client/assets/agent-site-editor-code-qfzxbq5A.js +0 -2
- package/dist/client/assets/agent-view-71ZLty7s.js +0 -1
- package/dist/client/assets/api-keys-C3d-u3vQ.js +0 -1
- package/dist/client/assets/app-editor-CNbrXrX0.js +0 -1
- package/dist/client/assets/category-editor-DSiP9f3W.js +0 -1
- package/dist/client/assets/config-ZWQ8i__D.js +0 -1
- package/dist/client/assets/context-BfKSfp0f.js +0 -1
- package/dist/client/assets/flat-project-DUFYT5xZ.js +0 -1
- package/dist/client/assets/home-EA-2hmK_.js +0 -1
- package/dist/client/assets/library-BItXalTV.js +0 -1
- package/dist/client/assets/post-calendar-13r69x6B.js +0 -1
- package/dist/client/assets/project-app-view-C5SpLJK1.js +0 -1
- package/dist/client/assets/project-feed-D6agmcc_.js +0 -1
- package/dist/client/assets/project-reports-C9IB-nYY.js +0 -1
- package/dist/client/assets/project-tasks-CvAFJHcK.js +0 -1
- package/dist/client/assets/record-editor-CxL_DRZu.js +0 -1
- package/dist/client/assets/redirect-editor-CiM0EDOs.js +0 -1
- package/dist/client/assets/reports-DJBFYttZ.js +0 -1
- package/dist/client/assets/reports-tab-DfvYoVqg.js +0 -2
- package/dist/client/assets/rich-text-link-control-VXQ4aFnS.js +0 -5
- package/dist/client/assets/route-CnkEGFJm.js +0 -1
- package/dist/client/assets/route-bQkBR-ir.js +0 -1
- package/dist/client/assets/route-lim1UvZz.js +0 -1
- package/dist/client/assets/sections-editor-N2UAgVVa.js +0 -1
- package/dist/client/assets/seo-editor-CbsyPDlr.js +0 -1
- package/dist/client/assets/task-route-B3N_Er49.js +0 -1
- package/dist/client/assets/tasks-B1EusHyh.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-D6-Yba00.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CwfMdk7l.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CmT1utOV.js +0 -1
- package/dist/client/assets/variant-calendar-BmYiEWSz.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-DuFlqpvt.js","assets/auth-entry-CXFwVhZf.js","assets/input-9ltBphX4.js","assets/use-is-desktop-app-BNujXJc_.js","assets/backoff-8mStPHYB.js","assets/auth-split-layout-DAiKWK3e.js","assets/cli-auth-success-DIWSlo4_.js","assets/reset-password-yOtTjadj.js","assets/oauth-callback-BjmTr7x6.js","assets/mcp-oauth-BDj-ENs2.js","assets/auth-CbP-I67u.js","assets/layout-EXCNCQSS.js","assets/required-auth-layout-CIIRb74R.js","assets/use-deployment-admin-D-VzDuWZ.js","assets/users-CcYYe1k1.js","assets/collection-table-wrapper-MT5DbxAL.js","assets/table-Dvr7kYjd.js","assets/ArrowUp-BlzOYA31.js","assets/empty-state-BPSNY9Ff.js","assets/search-input-Bt-TRqMJ.js","assets/SearchMd-ma2pJckE.js","assets/avatar-B48LJY_f.js","assets/User01-B1tXJtqS.js","assets/badge-CbK6PWVy.js","assets/use-debounced-value-QxJhT0l9.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-CjIPQhCN.js","assets/differenceInSeconds-C3x8sHUj.js","assets/get-initials-D-f_fDFw.js","assets/orgs-86mFN1bL.js","assets/label-llKCPsPO.js","assets/dialog-7XPFiysQ.js","assets/X-CgBe-4Jc.js","assets/select-6CFL7VEE.js","assets/index-CpaCFTVB.js","assets/Check-CzSx-ydY.js","assets/ChevronUp-rUh9iEAD.js","assets/switch-BYw3Xugd.js","assets/textarea-BeITBKxj.js","assets/schema-D71rjoG0.js","assets/site-slug-DebpOoQq.js","assets/prompts-CiBT8-NB.js","assets/shell-layout-CK7wLTUx.js","assets/Building02-DEQgvDUF.js","assets/UserSquare-Cx5Xiw2A.js","assets/agent-icon-CIGL1pZs.js","assets/AlertCircle-Cnt3s3Qv.js","assets/Tool01-BQ6YeSBp.js","assets/ArrowLeft-CVapKJeO.js","assets/LinkBroken01-BkNFLcBO.js","assets/ShoppingBag01-D_1-HSzF.js","assets/ZoomOut-1hnYerz5.js","assets/CheckCircle-BWPfjhqr.js","assets/Copy01-C2Yrgrxb.js","assets/CreditCard01-hJClrSeg.js","assets/DotsVertical-3xNyBi9X.js","assets/Image01-BB-fQuF8.js","assets/Palette-vvvH2B7g.js","assets/XClose-BUXY9lDw.js","assets/Key01-DcjI-nGA.js","assets/Link01-BRPPP5SV.js","assets/LinkExternal01-DGnJ7QLB.js","assets/Monitor01-CwkGnynm.js","assets/Sun-D8jVF5Xg.js","assets/Plus-IBFVYt16.js","assets/Trash01-CFIg7T-4.js","assets/Upload01-DR9ASh0y.js","assets/Users01-Dnx31YPK.js","assets/download-app-dialog-DKnC1JBE.js","assets/use-project-scope-DiTyFpcQ.js","assets/repository-binding-c-pt63EX.js","assets/use-mcp-client-Q4rBo7vM.js","assets/use-panel-navigate-sve-S3VW.js","assets/thread-route-BJfF-e-7.js","assets/use-clock-tick-CDj388Wx.js","assets/command-D3dAN0q_.js","assets/index-CmiT1BjZ.js","assets/integration-icon-d1AiAF22.js","assets/project-icon-C7Hu1tJm.js","assets/new-project-dialog-Cy-6meY2.js","assets/repository-import-picker-DRt0VM9d.js","assets/use-navigate-to-agent-D_jqZmcT.js","assets/thread-intent-2EYthzbr.js","assets/task-board-jWDOqP6T.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-nqe38njd.js","assets/tooltip-Cd2NmgKf.js","assets/useInfiniteQuery-CwfMdk7l.js","assets/infiniteQueryObserver-D1DafD0M.js","assets/collection-search-D8CVrsVV.js","assets/use-organization-settings-DOzB1VOw.js","assets/autosend-DCU1n5eC.js","assets/use-org-sso-CMHVPcMz.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-NzhRXTjq.js","assets/organization-choice-j7iLLEc2.js","assets/reports-onboarding-OKRaptw7.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-D3pW5srr.js","assets/alert-dialog-CYGz7ldN.js","assets/form-Bq3zfSIW.js","assets/companion-mcps-section-PzMGKTiF.js","assets/use-connect-companion-CSdDEA_3.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-Fm6fR85y.js","assets/authenticate-and-persist-oauth-DIDvxq7p.js","assets/track-BzIxBx0U.js","assets/extract-connection-data-D2UmPaHV.js","assets/connection-PwoIxFr1.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-BwpCyTHb.js","assets/reports-B9whLNOW.js","assets/reports-Dl0n8WK0.css","assets/route-bQkBR-ir.js","assets/thread-button-CyealSYx.js","assets/use-chat-layout-state-QjPc9oo9.js","assets/use-file-configs-5_tcNCEF.js","assets/use-mobile-NUesfqlY.js","assets/sheet-DMTbOlwp.js","assets/toolbar-icon-button-SXWkQtCo.js","assets/daily-pulse-jsV2hysv.js","assets/config-ZWQ8i__D.js","assets/use-task-board-events-CWmA4Ntk.js","assets/use-decopilot-events-e6tJ215a.js","assets/task-route-B3N_Er49.js","assets/popover-CqhYMlVn.js","assets/drawer-Bw83CS61.js","assets/use-join-requests-C33UkUVi.js","assets/use-org-auth-client-BV6ZBK4X.js","assets/use-organization-roles-C2vcpSSU.js","assets/use-deco-credits-BOKw4P1d.js","assets/use-ai-providers-DRajJwjA.js","assets/plan-ladder-BcnPG8kD.js","assets/scroll-area-C1A8PvHb.js","assets/use-thread-analytics-jKD2KnkA.js","assets/project-profile-Cc4MG3QN.js","assets/optimistic-project-sidebar-views-bEyFOTpu.js","assets/resolve-tab-icon-C1JCYc8e.js","assets/tab-icon-glyph-DboxqswS.js","assets/context-menu-DGbccz2w.js","assets/checkbox-fg5Liawx.js","assets/icon-button-mN70eAbU.js","assets/question-004-sINsf4GQ.js","assets/thread-route-BAyYuLhg.js","assets/chat-context-Dz_Vgbbo.js","assets/location-DPIrGNp7.js","assets/use-reports-diagnostic-Bv_isoDm.js","assets/connect-layout-mdLHs13X.js","assets/route-lim1UvZz.js","assets/index-IcPh7oEh.js","assets/gateway-client-3IqhjEcP.js","assets/use-mcp-prompts-BUsT36pj.js","assets/index-DZa7kB0Z.js","assets/utils-CVEq3hMx.js","assets/org-file-open-context-GQ31bTUS.js","assets/input-C2Q29OSf.js","assets/chat-draft-BEcLQYcH.js","assets/use-session-runtime-bs_s_abt.js","assets/usage-stats-CPgORe2K.js","assets/use-copy-DDBNqL1l.js","assets/markdown-Dmr3MD7N.js","assets/tabs-D3R4V_n3.js","assets/toggle-group-DqXAR_ku.js","assets/tool-namespace-DmnQIdtF.js","assets/use-open-billing-url-XbJkJRvN.js","assets/decopilot--nY6-Nba.js","assets/ai-providers-logos-DD3qZ33J.js","assets/index-CvNCy3PN.js","assets/input-BrPt5MZJ.js","assets/suggestion-BsbxdlrF.js","assets/use-org-fs-BbRMsy5S.js","assets/use-members-Up_i1D-k.js","assets/feature-paywall-Cq3ulvvn.js","assets/add-connection-dialog-Dq2YpbVF.js","assets/connection-card-Bkip9U2_.js","assets/connection-slug-CITJ0kGN.js","assets/use-connection-C-VZ8w9P.js","assets/connection-form-helpers-RxtiQen1.js","assets/collection-tabs-0IVfLZGF.js","assets/use-infinite-scroll-3EQsEpEW.js","assets/useSuspenseInfiniteQuery-CmT1utOV.js","assets/input-Bwd_JSM8.css","assets/pair-W1JkklHY.js","assets/collapsible-BbONBSMG.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-BQm3KRIJ.js","assets/types-Yj0uB20y.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-thread-outputs-B2TafAgP.js","assets/file-type-icon-CLaHXnTs.js","assets/use-releases-f_VX5ISv.js","assets/serial-task-queue-CGOeQgpr.js","assets/sandbox-lifecycle-context-IbJdCFZl.js","assets/sandbox-url-D3mC8qhT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/index-NzXgSYlC.js","assets/resizable-CfLbGzYc.js","assets/task-status-B-SX0lAT.js","assets/use-main-panel-tabs-BtITsfHw.js","assets/use-mcp-tools-BEIQB24m.js","assets/use-task-metadata-CXgGKsKs.js","assets/virtual-mcp-C70ka1-l.js","assets/legacy-main-redirect-D_lkF7FC.js","assets/preview-dialog-dA-lxV4T.js","assets/preview-content-HhS4fEPc.js","assets/file-preview-BzweKibR.js","assets/utils-BT5oy4Sg.js","assets/editor-BGyR0Yu7.js","assets/file-share-button-B0pm46tc.js","assets/blocks-preview-workspace-context-C85CoWqo.js","assets/home-EA-2hmK_.js","assets/chart-DH7MfDo4.js","assets/index-BGJh0fv3.js","assets/CartesianChart-B_Fanzw9.js","assets/AreaChart-Cds6XVCQ.js","assets/use-automations-C-4XQ4JO.js","assets/project-feed-D6agmcc_.js","assets/mini-report-page-8E9sblcd.js","assets/client-icons-BAQMv0Qg.js","assets/projects-empty-state-BURfBBvk.js","assets/flat-project-DUFYT5xZ.js","assets/view-mode-toggle-CvV4AEos.js","assets/index-Bw3vJovA.js","assets/rich-text-link-control-VXQ4aFnS.js","assets/use-task-board-analytics-Ci_fmCxC.js","assets/combobox-DhYfa0RQ.js","assets/column-rules-CX7nbnH9.js","assets/search-toggle-DJ_XCJbV.js","assets/use-tags-DkfNupSg.js","assets/calendar-BLnb7Mll.js","assets/alert-DrR2x4bd.js","assets/index-BVoDvJqr.js","assets/index-BqteJsv4.js","assets/thread-sheet-body-BT9_vo3C.js","assets/separator-Dv_2rMb4.js","assets/library-tab-Lgm0ghP5.js","assets/use-org-repo-syncs-BxJXCsWN.js","assets/folder-icon-mwp3RZsH.js","assets/skill-md-ChfVs4uF.js","assets/agent-overview-DKDtU5t3.js","assets/project-tasks-CvAFJHcK.js","assets/feature-gate-Dy49RHsY.js","assets/mock-board-BVxIfeR9.js","assets/project-reports-C9IB-nYY.js","assets/reports-tab-DfvYoVqg.js","assets/agent-site-editor-DaSW5uvn.js","assets/claim-phase-copy-CFpL9K68.js","assets/device-hint-CusD2WUe.js","assets/use-fast-preview-draft-url-C0bfTg9j.js","assets/section-preview-url-7zfngvgW.js","assets/sandbox-git-api-DTIjDZTr.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/agent-site-editor-preview-CoQ_Kpp-.js","assets/agent-view-guard-COCiOJT8.js","assets/runnable-block-editor-CuWmi7BA.js","assets/monaco-editor-k3tefZgc.js","assets/use-new-blocks-editor-D6-Yba00.js","assets/asset-utils-BsDgokdc.js","assets/variant-matcher-override-BsWNx25m.js","assets/agent-site-editor-content-Bb1ejRxz.js","assets/mustache-DBD5y6DJ.js","assets/empty-state-BqrekKjc.js","assets/agent-site-editor-code-qfzxbq5A.js","assets/agent-automations-B-eYvFiq.js","assets/automation-list-row-C9x2-dqo.js","assets/agent-automation-DA8thEE9.js","assets/select-model-DP5ItPif.js","assets/build-improve-prompt-doc-CgZLsG1y.js","assets/use-debounced-autosave-C5pQP1AE.js","assets/automation-runs-BFkUkwl_.js","assets/agent-settings-DyDWo-xz.js","assets/settings-tab-BpJo_e5R.js","assets/use-date-fns-locale-e4GZpEEu.js","assets/use-mcp-auth-status-C63PL9mw.js","assets/secret-picker-CUh7CKpQ.js","assets/use-secrets-CskMGRW-.js","assets/agent-library-DLdV7bTC.js","assets/agent-assets-De3wO9xX.js","assets/agent-hosting-Ck4H3tEL.js","assets/agent-e2e-D_bSHB2i.js","assets/agent-analytics-BxHEhXGJ.js","assets/XAxis-O9p9WbIW.js","assets/agent-experiments-D9Hm886u.js","assets/agent-monitor-C8IHLMHD.js","assets/Line-ZiYmGsuL.js","assets/ErrorBarContext-ByxxxsZC.js","assets/Sector-CR8YJj93.js","assets/agent-app-BpQ0nl5-.js","assets/project-app-view-C5SpLJK1.js","assets/agent-view-71ZLty7s.js","assets/agent-file-C53RbwG4.js","assets/agent-deck-DU6uai7B.js","assets/agent-library-file-BjsBj-Wl.js","assets/agent-connect-sources-B4X91jM-.js","assets/legacy-agents-deep-eylzpiF_.js","assets/tasks-B1EusHyh.js","assets/taskboard-analytics-3-5Zwbn5.js","assets/analytics-sections-BPEmvryR.js","assets/thread-analytics-Chp53ll5.js","assets/reports-DJBFYttZ.js","assets/library-BItXalTV.js","assets/discover-B2TNQgKF.js","assets/index-4prK16Bx.js","assets/route-CnkEGFJm.js","assets/index-redirect-DsKYJNmF.js","assets/capability-load-error-azaduCYQ.js","assets/connections-C8w4xaQ1.js","assets/collection-display-button-1HU6sh_z.js","assets/use-delete-connection-Bl2-hIur.js","assets/connection-detail-B_oXBonF.js","assets/index-Bf68wbQY.js","assets/index-BrjxbobA.js","assets/use-create-virtual-mcp-KCSUU6WZ.js","assets/monitoring-stats-row-pBlR6qWx.js","assets/collection-detail-DLFQHJrO.js","assets/index-D1n3DRPd.js","assets/require-capability-Dir5VfBS.js","assets/access-gate-IfeDUCmD.js","assets/multi-select-B2Ze7jsd.js","assets/general-CEini4k1.js","assets/review-settings-BdDEMD7G.js","assets/domain-settings-C_KSW-jG.js","assets/connect-CZqVU7B6.js","assets/api-keys-DUUMIXcJ.js","assets/ai-providers-0dAet6Ph.js","assets/infra-billing-zUiDiuZM.js","assets/secrets-BdK4qu9r.js","assets/api-keys-C3d-u3vQ.js","assets/buckets-8RnICEdF.js","assets/repositories-heCfXdkU.js","assets/synced-repos-D8_WCeck.js","assets/tasks-CQz6Nviz.js","assets/projects-Dpuak2HA.js","assets/members-D2zsUYru.js","assets/role-color-Dn2tXDDF.js","assets/roles-bh3gMsHP.js","assets/sso-BNxOATww.js","assets/profile-BRC9Ss0Z.js","assets/agents-list-XUQd9rlP.js","assets/automations-CMtFKDqu.js","assets/skills-DTxnfNaS.js","assets/memory-DCcCIE6E.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-Ba7PbDUP.js","assets/auth-entry-DGYmKia4.js","assets/input-DrKcGYrl.js","assets/use-is-desktop-app-BNujXJc_.js","assets/backoff-8mStPHYB.js","assets/auth-split-layout-95LDkF8r.js","assets/cli-auth-success-DjOImTaI.js","assets/reset-password-D0bAgN3-.js","assets/oauth-callback-CoY1dClF.js","assets/mcp-oauth-DdEBE0Y7.js","assets/auth-2OsbyFrK.js","assets/layout-wln6hIY8.js","assets/required-auth-layout-CslXPG0m.js","assets/use-deployment-admin-D9OrJmDH.js","assets/users-BTZ7odtd.js","assets/collection-table-wrapper-SA5bpKVN.js","assets/table-BDAYwSIe.js","assets/ArrowUp-BiSVkN3f.js","assets/empty-state-ClSZs1JG.js","assets/search-input-BSOQ3ySE.js","assets/SearchMd-CRK8FN15.js","assets/avatar-BE-fSFZD.js","assets/User01-B-OC1WKF.js","assets/badge-CWkPL4_H.js","assets/use-debounced-value-DCwb28TF.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-CjIPQhCN.js","assets/differenceInSeconds-C3x8sHUj.js","assets/get-initials-D-f_fDFw.js","assets/orgs-DNf-zQVQ.js","assets/label-uTNaIuWI.js","assets/dialog-BGB8jiGJ.js","assets/X-B8pJz_49.js","assets/select-B6DzqJiH.js","assets/index-Bjctp948.js","assets/Check-BIm8oPAI.js","assets/ChevronUp-CW9NwQNu.js","assets/switch-Ay_EsHPF.js","assets/textarea-MfQKTdum.js","assets/schema-B4_xo1tD.js","assets/site-slug-DebpOoQq.js","assets/prompts-CQ9lRosC.js","assets/shell-layout-CTITeNJr.js","assets/Building02-Cn4v8u0T.js","assets/UserSquare-DAPHqKUt.js","assets/agent-icon-CP_Ce3vP.js","assets/AlertCircle-BhLvKd51.js","assets/Tool01-DQQGDcpr.js","assets/ArrowLeft-BGBmg7V7.js","assets/LinkBroken01-CKAYv5Ws.js","assets/ShoppingBag01-BxQzf-9l.js","assets/ZoomOut-DsjWT-m0.js","assets/CheckCircle-DtMOIYIN.js","assets/Copy01-CVhdu84v.js","assets/CreditCard01-YvQwrjsc.js","assets/DotsVertical-D-FvZQn0.js","assets/Image01-CGBVFmAI.js","assets/Palette-CbtdR6wJ.js","assets/XClose-BqnBpCCh.js","assets/Key01-CwVo9Cfv.js","assets/Link01-9k5oDSP-.js","assets/LinkExternal01-DNJF5sr3.js","assets/Monitor01-emBSPIO-.js","assets/Sun-D6nY-Bb0.js","assets/Plus-088McVZs.js","assets/Trash01-B3Mmvw35.js","assets/Upload01-jQPNdEwy.js","assets/Users01-ClTO42s_.js","assets/download-app-dialog-C1623CnU.js","assets/use-project-scope-BxM698pt.js","assets/repository-binding-C6IRmj-B.js","assets/use-mcp-client-alN3BSuJ.js","assets/use-panel-navigate-yk7t3bcJ.js","assets/thread-route-BRm6UAyi.js","assets/use-clock-tick-Dx4PkWs4.js","assets/command-B4jGFd17.js","assets/index-BOGlzqxy.js","assets/integration-icon-BDP6F9Pj.js","assets/project-icon-CtBv5qE9.js","assets/new-project-dialog-C_qrCiK3.js","assets/repository-import-picker-COTFeOcQ.js","assets/use-navigate-to-agent-MADN_glW.js","assets/thread-intent-y4sFV6nC.js","assets/task-board-BpcFKojY.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-sBc4_JWX.js","assets/tooltip-D555rgHk.js","assets/useInfiniteQuery-DWxFiM4L.js","assets/infiniteQueryObserver-8nco6j0l.js","assets/collection-search-9MFDsQ6p.js","assets/use-organization-settings-BBoTt-lq.js","assets/autosend-BL2q_s0u.js","assets/use-org-sso-DzvTriO7.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-ZdgIxalP.js","assets/organization-choice-BByF2TD6.js","assets/reports-onboarding-Bhi9ZgPz.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-mc6cUsWg.js","assets/alert-dialog-DmVEYAb4.js","assets/form-Bc6DsBML.js","assets/companion-mcps-section-CVSn-aTg.js","assets/use-connect-companion-DdM71OKb.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-Ckdgdjes.js","assets/authenticate-and-persist-oauth-BGZheh1t.js","assets/track-DQPZdUAl.js","assets/extract-connection-data-BnK0gWOf.js","assets/connection-CwaA-4mr.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-db_FowHS.js","assets/reports-D1mTKUWD.js","assets/reports-Dl0n8WK0.css","assets/route-CAFnuBNg.js","assets/thread-button-RYt2155P.js","assets/use-chat-layout-state-C_QstcMu.js","assets/use-file-configs-Dk0C1WSo.js","assets/use-mobile-DEWonsbr.js","assets/sheet-CMNWdtKR.js","assets/toolbar-icon-button-CsZD8f-r.js","assets/daily-pulse-DxbyF8Ez.js","assets/config-bg0vG3sC.js","assets/use-task-board-events-gPs9mr0g.js","assets/use-decopilot-events-CY9KSVWJ.js","assets/core.esm-C5SAJNWk.js","assets/task-route-CaaYbxyP.js","assets/popover-BeYdUP-7.js","assets/drawer-CDzlciSr.js","assets/use-join-requests-51xqIM_A.js","assets/use-org-auth-client-CoFPUjTd.js","assets/use-organization-roles-DGclowcu.js","assets/use-deco-credits-3BarR1a3.js","assets/use-ai-providers-cz2PnRt5.js","assets/plan-ladder-DCJHDLS1.js","assets/scroll-area-DCMK1tWu.js","assets/use-thread-analytics-DJFeqMXb.js","assets/project-profile-Cc4MG3QN.js","assets/optimistic-project-sidebar-views-F9PSyz4u.js","assets/resolve-tab-icon-CY3X9f4_.js","assets/tab-icon-glyph-C5LJrgle.js","assets/context-menu-BnfFPukJ.js","assets/checkbox-D5Dxpou_.js","assets/icon-button-DI_TQN14.js","assets/question-004-sINsf4GQ.js","assets/thread-route-ZX2rkhqS.js","assets/chat-context-Blq_eRG7.js","assets/location-DPIrGNp7.js","assets/use-reports-diagnostic-CpCwaiXg.js","assets/connect-layout-DDUc-hD-.js","assets/route-CHYkbxgn.js","assets/index-kogfMavo.js","assets/gateway-client-C0zWKCU4.js","assets/use-mcp-prompts-C5SH_xGs.js","assets/index-DClhYi2n.js","assets/utils-CVEq3hMx.js","assets/org-file-open-context-BMxi_LQF.js","assets/input-Bl8RoIF_.js","assets/chat-draft-jYk7-XVU.js","assets/use-session-runtime-Cgb0XGQC.js","assets/usage-stats-cLtXqoaq.js","assets/use-copy-D1Nm-kgX.js","assets/markdown-LIOti3qC.js","assets/tabs-QC_e18gg.js","assets/toggle-group-B2CGQVNc.js","assets/tool-namespace-DmnQIdtF.js","assets/use-open-billing-url-CSK9y7YW.js","assets/decopilot-NLRNUzMe.js","assets/ai-providers-logos-DD3qZ33J.js","assets/index-CN7c5BIN.js","assets/input--BdO_-Si.js","assets/suggestion-CRtEJ9La.js","assets/use-org-fs-BQ9rCXmr.js","assets/use-members-DF7c1t5_.js","assets/feature-paywall-B0iudT_s.js","assets/add-connection-dialog-BhN1VUAm.js","assets/connection-card-BtsAXkN4.js","assets/connection-slug-CITJ0kGN.js","assets/use-connection-hMJ4m1KM.js","assets/connection-form-helpers-BV0FZHte.js","assets/collection-tabs-jDuTyfYq.js","assets/use-infinite-scroll-DoBJIre7.js","assets/useSuspenseInfiniteQuery-Cc2PctH-.js","assets/input-Bwd_JSM8.css","assets/pair-DcQaouFq.js","assets/collapsible-DsS_PEhd.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-Z11oKtDn.js","assets/types-C1FT5lJw.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-thread-outputs-CHJvnckm.js","assets/file-type-icon-CaoQ1xmx.js","assets/use-releases-BwrUbxxj.js","assets/serial-task-queue-CGOeQgpr.js","assets/sandbox-lifecycle-context-DeQIS6JV.js","assets/sandbox-url-D3mC8qhT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/index-BgnBPJ_k.js","assets/resizable-DQ19gouy.js","assets/task-status-CtgvGjEg.js","assets/use-main-panel-tabs-DmvkA1OF.js","assets/use-mcp-tools-s04xKOM2.js","assets/use-task-metadata-DhhvrkSV.js","assets/virtual-mcp-DYlKBgbY.js","assets/legacy-main-redirect-BRfxPgdK.js","assets/preview-dialog-BBD3jkZw.js","assets/preview-content-wfTnwfYO.js","assets/file-preview-FOaYPomf.js","assets/utils-BFq73cJ1.js","assets/editor-CtDmuL7X.js","assets/file-share-button-C99y-deU.js","assets/blocks-preview-workspace-context-BmQuZmk0.js","assets/home-twE7M1iU.js","assets/chart-Dtz_P3D3.js","assets/index-CdXinK8k.js","assets/CartesianChart-CaWYdC9u.js","assets/AreaChart-BXdKk-Jh.js","assets/use-automations-BITjz5uS.js","assets/project-feed-DmY6xTEa.js","assets/mini-report-page-CDObofTo.js","assets/client-icons-BkFbGfWa.js","assets/projects-empty-state-CTShW1Lx.js","assets/flat-project-U_elHLQG.js","assets/view-mode-toggle-Bed1vKIv.js","assets/index-CKHLb67S.js","assets/rich-text-link-control-B1QtoX3z.js","assets/use-task-board-analytics-jg77_cwt.js","assets/combobox-DF39TceE.js","assets/column-rules-D6JxKTRe.js","assets/search-toggle-C-N7d4fN.js","assets/use-tags-D9QMq4tP.js","assets/calendar-BibeDh1C.js","assets/alert-DtABAm9U.js","assets/index-RmHD0J0J.js","assets/index-C_I69v1G.js","assets/thread-sheet-body-B9fTAvbI.js","assets/separator-iMNYfJb7.js","assets/library-tab-CX8njRPr.js","assets/use-org-repo-syncs-CaR1Xa1F.js","assets/folder-icon-C189zm-A.js","assets/skill-md-ChfVs4uF.js","assets/agent-overview-CmHeFyml.js","assets/project-tasks-n0fjaerW.js","assets/feature-gate-cEqP5nQK.js","assets/mock-board-DTiFXXEW.js","assets/project-reports-DqdW9cvU.js","assets/reports-tab-CvuocIip.js","assets/agent-site-editor-Cn5duNcn.js","assets/claim-phase-copy-8K3qgNLh.js","assets/device-hint-Bk3hM3wv.js","assets/use-fast-preview-draft-url-QLdWZwPZ.js","assets/section-preview-url-7zfngvgW.js","assets/sandbox-git-api-DTIjDZTr.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/agent-site-editor-preview-CYb_d7vH.js","assets/agent-view-guard-C1R2qCc9.js","assets/runnable-block-editor-DcMkYuUb.js","assets/monaco-editor-J-McljL4.js","assets/use-new-blocks-editor-D6QRwqGF.js","assets/asset-utils-CT4-E6TK.js","assets/variant-matcher-override-M6HMnoKw.js","assets/agent-site-editor-content-CbT525Tv.js","assets/mustache-B6NVLdGZ.js","assets/empty-state-CjQyKZ-1.js","assets/agent-site-editor-code-CIrGs6m3.js","assets/agent-automations-DqhEODAb.js","assets/automation-list-row-DVowGYyJ.js","assets/agent-automation-C8klKvKY.js","assets/select-model-bJPmmx5f.js","assets/build-improve-prompt-doc-ztgqv-Z4.js","assets/use-debounced-autosave-SzIG02td.js","assets/automation-runs-C4ptawD5.js","assets/agent-settings-C7f7_N2z.js","assets/settings-tab-BhyiSM9Z.js","assets/use-date-fns-locale-Bp7nVQWs.js","assets/use-mcp-auth-status-CVLugyb-.js","assets/secret-picker-DZTMfxXL.js","assets/use-secrets-BebZ2nF0.js","assets/agent-library-Dlz_4LiQ.js","assets/agent-assets-BFqhddLD.js","assets/agent-hosting-kfFKqM9r.js","assets/agent-e2e-DzJ9sAzc.js","assets/agent-analytics-DqtV4MPf.js","assets/XAxis-D6VwqdrO.js","assets/agent-experiments-VcqTmtZL.js","assets/agent-monitor-Cmsy40BX.js","assets/Line-C48uhTy3.js","assets/ErrorBarContext-D3MulA5M.js","assets/Sector-cSOsr2E-.js","assets/agent-app-CwRJsLag.js","assets/project-app-view-BSuJFE5I.js","assets/agent-view-Be5hcLqc.js","assets/agent-file-DI2wK--r.js","assets/agent-deck-DGV-pK2t.js","assets/agent-library-file-DPfP5s66.js","assets/agent-connect-sources-C86EyOB5.js","assets/legacy-agents-deep-CawwPAe9.js","assets/tasks-COTcKNjz.js","assets/taskboard-analytics-CkC7VEhH.js","assets/analytics-sections-B7lS35B2.js","assets/thread-analytics-xc71V_Jy.js","assets/reports-eg7qCRZt.js","assets/library-DvaCz1Wk.js","assets/discover-DTxiggmr.js","assets/index-DH9SXre1.js","assets/route-BqiT-Ol6.js","assets/index-redirect-BVO0FWKk.js","assets/capability-load-error-Cifg-uxi.js","assets/connections-CNadoE5b.js","assets/collection-display-button-C2K7H_M_.js","assets/use-delete-connection-B4ggOZlI.js","assets/connection-detail-QHFcVXMr.js","assets/index-G3JSHUT3.js","assets/index-ChB9J_RZ.js","assets/use-create-virtual-mcp-CHjD7uCu.js","assets/monitoring-stats-row-BuUSw5n9.js","assets/collection-detail-DP9fd0Dw.js","assets/index-XEhCSGBE.js","assets/require-capability-BhFz_zS7.js","assets/access-gate-Bn9w-zIx.js","assets/multi-select-YETcY4pN.js","assets/general-BtREXR3p.js","assets/review-settings-BV2AxARx.js","assets/domain-settings--d3mBGQt.js","assets/connect-D_b6-CyS.js","assets/api-keys-Cif1835z.js","assets/ai-providers-CRe_x6a5.js","assets/infra-billing-D_L2KNiI.js","assets/secrets-Bx2QImFq.js","assets/api-keys-Dwm2bo1Y.js","assets/buckets-CSwPt34t.js","assets/repositories-BYsSTJU-.js","assets/synced-repos-DMWgs820.js","assets/tasks-D-EA-uwO.js","assets/projects-C5p0nBlq.js","assets/members-BpY2Uunx.js","assets/role-color-Dn2tXDDF.js","assets/roles-BeG_4GHR.js","assets/sso-Jw8gC2hK.js","assets/profile-C4Rt4NnT.js","assets/agents-list-y-TIBGAq.js","assets/automations-9sMoXMlz.js","assets/skills-BsLVR3Vn.js","assets/memory-BOfe9xo8.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function vz(e,t){for(var o=0;o<t.length;o++){const a=t[o];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();const bz="modulepreload",yz=function(e){return"/"+e},g1={},Fe=function(t,o,a){let n=Promise.resolve();if(o&&o.length>0){let l=function(p){return Promise.all(p.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");n=l(o.map(p=>{if(p=yz(p),p in g1)return;g1[p]=!0;const h=p.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${m}`))return;const f=document.createElement("link");if(f.rel=h?"stylesheet":bz,h||(f.as="script"),f.crossOrigin="",f.href=p,u&&f.setAttribute("nonce",u),document.head.appendChild(f),h)return new Promise((v,b)=>{f.addEventListener("load",v),f.addEventListener("error",()=>b(Error(`Unable to preload CSS for ${p}`)))})}))}function i(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return n.then(l=>{for(const c of l||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};var Vge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hS={exports:{}},xu={};var f1;function Sz(){if(f1)return xu;f1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(a,n,i){var l=null;if(i!==void 0&&(l=""+i),n.key!==void 0&&(l=""+n.key),"key"in n){i={};for(var c in n)c!=="key"&&(i[c]=n[c])}else i=n;return n=i.ref,{$$typeof:e,type:a,key:l,ref:n!==void 0?n:null,props:i}}return xu.Fragment=t,xu.jsx=o,xu.jsxs=o,xu}var v1;function wz(){return v1||(v1=1,hS.exports=Sz()),hS.exports}var w=wz(),gS={exports:{}},ct={};var b1;function Tz(){if(b1)return ct;b1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),f=Symbol.iterator;function v(N){return N===null||typeof N!="object"?null:(N=f&&N[f]||N["@@iterator"],typeof N=="function"?N:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function T(N,G,V){this.props=N,this.context=G,this.refs=x,this.updater=V||b}T.prototype.isReactComponent={},T.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,G,"setState")},T.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function _(){}_.prototype=T.prototype;function P(N,G,V){this.props=N,this.context=G,this.refs=x,this.updater=V||b}var k=P.prototype=new _;k.constructor=P,S(k,T.prototype),k.isPureReactComponent=!0;var E=Array.isArray;function R(){}var D={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function L(N,G,V){var I=V.ref;return{$$typeof:e,type:N,key:G,ref:I!==void 0?I:null,props:V}}function $(N,G){return L(N.type,G,N.props)}function B(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function U(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(V){return G[V]})}var j=/\/+/g;function W(N,G){return typeof N=="object"&&N!==null&&N.key!=null?U(""+N.key):G.toString(36)}function ne(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(R,R):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function H(N,G,V,I,z){var J=typeof N;(J==="undefined"||J==="boolean")&&(N=null);var pe=!1;if(N===null)pe=!0;else switch(J){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(N.$$typeof){case e:case t:pe=!0;break;case h:return pe=N._init,H(pe(N._payload),G,V,I,z)}}if(pe)return z=z(N),pe=I===""?"."+W(N,0):I,E(z)?(V="",pe!=null&&(V=pe.replace(j,"$&/")+"/"),H(z,G,V,"",function($e){return $e})):z!=null&&(B(z)&&(z=$(z,V+(z.key==null||N&&N.key===z.key?"":(""+z.key).replace(j,"$&/")+"/")+pe)),G.push(z)),1;pe=0;var he=I===""?".":I+":";if(E(N))for(var xe=0;xe<N.length;xe++)I=N[xe],J=he+W(I,xe),pe+=H(I,G,V,J,z);else if(xe=v(N),typeof xe=="function")for(N=xe.call(N),xe=0;!(I=N.next()).done;)I=I.value,J=he+W(I,xe++),pe+=H(I,G,V,J,z);else if(J==="object"){if(typeof N.then=="function")return H(ne(N),G,V,I,z);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return pe}function Z(N,G,V){if(N==null)return N;var I=[],z=0;return H(N,I,"","",function(J){return G.call(V,J,z++)}),I}function te(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(V){(N._status===0||N._status===-1)&&(N._status=1,N._result=V)},function(V){(N._status===0||N._status===-1)&&(N._status=2,N._result=V)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var le=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Q={map:Z,forEach:function(N,G,V){Z(N,function(){G.apply(this,arguments)},V)},count:function(N){var G=0;return Z(N,function(){G++}),G},toArray:function(N){return Z(N,function(G){return G})||[]},only:function(N){if(!B(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ct.Activity=m,ct.Children=Q,ct.Component=T,ct.Fragment=o,ct.Profiler=n,ct.PureComponent=P,ct.StrictMode=a,ct.Suspense=u,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,ct.__COMPILER_RUNTIME={__proto__:null,c:function(N){return D.H.useMemoCache(N)}},ct.cache=function(N){return function(){return N.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(N,G,V){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var I=S({},N.props),z=N.key;if(G!=null)for(J in G.key!==void 0&&(z=""+G.key),G)!O.call(G,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&G.ref===void 0||(I[J]=G[J]);var J=arguments.length-2;if(J===1)I.children=V;else if(1<J){for(var pe=Array(J),he=0;he<J;he++)pe[he]=arguments[he+2];I.children=pe}return L(N.type,z,I)},ct.createContext=function(N){return N={$$typeof:l,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:i,_context:N},N},ct.createElement=function(N,G,V){var I,z={},J=null;if(G!=null)for(I in G.key!==void 0&&(J=""+G.key),G)O.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(z[I]=G[I]);var pe=arguments.length-2;if(pe===1)z.children=V;else if(1<pe){for(var he=Array(pe),xe=0;xe<pe;xe++)he[xe]=arguments[xe+2];z.children=he}if(N&&N.defaultProps)for(I in pe=N.defaultProps,pe)z[I]===void 0&&(z[I]=pe[I]);return L(N,J,z)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(N){return{$$typeof:c,render:N}},ct.isValidElement=B,ct.lazy=function(N){return{$$typeof:h,_payload:{_status:-1,_result:N},_init:te}},ct.memo=function(N,G){return{$$typeof:p,type:N,compare:G===void 0?null:G}},ct.startTransition=function(N){var G=D.T,V={};D.T=V;try{var I=N(),z=D.S;z!==null&&z(V,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(R,le)}catch(J){le(J)}finally{G!==null&&V.types!==null&&(G.types=V.types),D.T=G}},ct.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},ct.use=function(N){return D.H.use(N)},ct.useActionState=function(N,G,V){return D.H.useActionState(N,G,V)},ct.useCallback=function(N,G){return D.H.useCallback(N,G)},ct.useContext=function(N){return D.H.useContext(N)},ct.useDebugValue=function(){},ct.useDeferredValue=function(N,G){return D.H.useDeferredValue(N,G)},ct.useEffect=function(N,G){return D.H.useEffect(N,G)},ct.useEffectEvent=function(N){return D.H.useEffectEvent(N)},ct.useId=function(){return D.H.useId()},ct.useImperativeHandle=function(N,G,V){return D.H.useImperativeHandle(N,G,V)},ct.useInsertionEffect=function(N,G){return D.H.useInsertionEffect(N,G)},ct.useLayoutEffect=function(N,G){return D.H.useLayoutEffect(N,G)},ct.useMemo=function(N,G){return D.H.useMemo(N,G)},ct.useOptimistic=function(N,G){return D.H.useOptimistic(N,G)},ct.useReducer=function(N,G,V){return D.H.useReducer(N,G,V)},ct.useRef=function(N){return D.H.useRef(N)},ct.useState=function(N){return D.H.useState(N)},ct.useSyncExternalStore=function(N,G,V){return D.H.useSyncExternalStore(N,G,V)},ct.useTransition=function(){return D.H.useTransition()},ct.version="19.2.6",ct}var y1;function Is(){return y1||(y1=1,gS.exports=Tz()),gS.exports}var A=Is();const X=Nl(A),f_=vz({__proto__:null,default:X},[A]);var fS={exports:{}},Cu={},vS={exports:{}},bS={};var S1;function _z(){return S1||(S1=1,(function(e){function t(H,Z){var te=H.length;H.push(Z);e:for(;0<te;){var le=te-1>>>1,Q=H[le];if(0<n(Q,Z))H[le]=Z,H[te]=Q,te=le;else break e}}function o(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var Z=H[0],te=H.pop();if(te!==Z){H[0]=te;e:for(var le=0,Q=H.length,N=Q>>>1;le<N;){var G=2*(le+1)-1,V=H[G],I=G+1,z=H[I];if(0>n(V,te))I<Q&&0>n(z,V)?(H[le]=z,H[I]=te,le=I):(H[le]=V,H[G]=te,le=G);else if(I<Q&&0>n(z,te))H[le]=z,H[I]=te,le=I;else break e}}return Z}function n(H,Z){var te=H.sortIndex-Z.sortIndex;return te!==0?te:H.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var u=[],p=[],h=1,m=null,f=3,v=!1,b=!1,S=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function k(H){for(var Z=o(p);Z!==null;){if(Z.callback===null)a(p);else if(Z.startTime<=H)a(p),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=o(p)}}function E(H){if(S=!1,k(H),!b)if(o(u)!==null)b=!0,R||(R=!0,U());else{var Z=o(p);Z!==null&&ne(E,Z.startTime-H)}}var R=!1,D=-1,O=5,L=-1;function $(){return x?!0:!(e.unstable_now()-L<O)}function B(){if(x=!1,R){var H=e.unstable_now();L=H;var Z=!0;try{e:{b=!1,S&&(S=!1,_(D),D=-1),v=!0;var te=f;try{t:{for(k(H),m=o(u);m!==null&&!(m.expirationTime>H&&$());){var le=m.callback;if(typeof le=="function"){m.callback=null,f=m.priorityLevel;var Q=le(m.expirationTime<=H);if(H=e.unstable_now(),typeof Q=="function"){m.callback=Q,k(H),Z=!0;break t}m===o(u)&&a(u),k(H)}else a(u);m=o(u)}if(m!==null)Z=!0;else{var N=o(p);N!==null&&ne(E,N.startTime-H),Z=!1}}break e}finally{m=null,f=te,v=!1}Z=void 0}}finally{Z?U():R=!1}}}var U;if(typeof P=="function")U=function(){P(B)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,W=j.port2;j.port1.onmessage=B,U=function(){W.postMessage(null)}}else U=function(){T(B,0)};function ne(H,Z){D=T(function(){H(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(H){switch(f){case 1:case 2:case 3:var Z=3;break;default:Z=f}var te=f;f=Z;try{return H()}finally{f=te}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=f;f=H;try{return Z()}finally{f=te}},e.unstable_scheduleCallback=function(H,Z,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,H){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=te+Q,H={id:h++,callback:Z,priorityLevel:H,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(H.sortIndex=te,t(p,H),o(u)===null&&H===o(p)&&(S?(_(D),D=-1):S=!0,ne(E,te-le))):(H.sortIndex=Q,t(u,H),b||v||(b=!0,R||(R=!0,U()))),H},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(H){var Z=f;return function(){var te=f;f=Z;try{return H.apply(this,arguments)}finally{f=te}}}})(bS)),bS}var w1;function xz(){return w1||(w1=1,vS.exports=_z()),vS.exports}var yS={exports:{}},Ra={};var T1;function Cz(){if(T1)return Ra;T1=1;var e=Is();function t(u){var p="https://react.dev/errors/"+u;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)p+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+u+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var a={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},n=Symbol.for("react.portal");function i(u,p,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:m==null?null:""+m,children:u,containerInfo:p,implementation:h}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,p){if(u==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ra.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ra.createPortal=function(u,p){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return i(u,p,null,h)},Ra.flushSync=function(u){var p=l.T,h=a.p;try{if(l.T=null,a.p=2,u)return u()}finally{l.T=p,a.p=h,a.d.f()}},Ra.preconnect=function(u,p){typeof u=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(u,p))},Ra.prefetchDNS=function(u){typeof u=="string"&&a.d.D(u)},Ra.preinit=function(u,p){if(typeof u=="string"&&p&&typeof p.as=="string"){var h=p.as,m=c(h,p.crossOrigin),f=typeof p.integrity=="string"?p.integrity:void 0,v=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;h==="style"?a.d.S(u,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:m,integrity:f,fetchPriority:v}):h==="script"&&a.d.X(u,{crossOrigin:m,integrity:f,fetchPriority:v,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ra.preinitModule=function(u,p){if(typeof u=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var h=c(p.as,p.crossOrigin);a.d.M(u,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(u)},Ra.preload=function(u,p){if(typeof u=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var h=p.as,m=c(h,p.crossOrigin);a.d.L(u,h,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ra.preloadModule=function(u,p){if(typeof u=="string")if(p){var h=c(p.as,p.crossOrigin);a.d.m(u,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(u)},Ra.requestFormReset=function(u){a.d.r(u)},Ra.unstable_batchedUpdates=function(u,p){return u(p)},Ra.useFormState=function(u,p,h){return l.H.useFormState(u,p,h)},Ra.useFormStatus=function(){return l.H.useHostTransitionStatus()},Ra.version="19.2.6",Ra}var _1;function Q2(){if(_1)return yS.exports;_1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yS.exports=Cz(),yS.exports}var x1;function kz(){if(x1)return Cu;x1=1;var e=xz(),t=Is(),o=Q2();function a(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)s+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function i(r){var s=r,d=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(d=s.return),r=s.return;while(r)}return s.tag===3?d:null}function l(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function c(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function u(r){if(i(r)!==r)throw Error(a(188))}function p(r){var s=r.alternate;if(!s){if(s=i(r),s===null)throw Error(a(188));return s!==r?null:r}for(var d=r,g=s;;){var y=d.return;if(y===null)break;var C=y.alternate;if(C===null){if(g=y.return,g!==null){d=g;continue}break}if(y.child===C.child){for(C=y.child;C;){if(C===d)return u(y),r;if(C===g)return u(y),s;C=C.sibling}throw Error(a(188))}if(d.return!==g.return)d=y,g=C;else{for(var M=!1,F=y.child;F;){if(F===d){M=!0,d=y,g=C;break}if(F===g){M=!0,g=y,d=C;break}F=F.sibling}if(!M){for(F=C.child;F;){if(F===d){M=!0,d=C,g=y;break}if(F===g){M=!0,g=C,d=y;break}F=F.sibling}if(!M)throw Error(a(189))}}if(d.alternate!==g)throw Error(a(190))}if(d.tag!==3)throw Error(a(188));return d.stateNode.current===d?r:s}function h(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=h(r),s!==null)return s;r=r.sibling}return null}var m=Object.assign,f=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),P=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function U(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var j=Symbol.for("react.client.reference");function W(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===j?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case T:return"Profiler";case x:return"StrictMode";case E:return"Suspense";case R:return"SuspenseList";case L:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case b:return"Portal";case P:return r.displayName||"Context";case _:return(r._context.displayName||"Context")+".Consumer";case k:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case D:return s=r.displayName||null,s!==null?s:W(r.type)||"Memo";case O:s=r._payload,r=r._init;try{return W(r(s))}catch{}}return null}var ne=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function N(r){return{current:r}}function G(r){0>Q||(r.current=le[Q],le[Q]=null,Q--)}function V(r,s){Q++,le[Q]=r.current,r.current=s}var I=N(null),z=N(null),J=N(null),pe=N(null);function he(r,s){switch(V(J,s),V(z,r),V(I,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?FP(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=FP(s),r=jP(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}G(I),V(I,r)}function xe(){G(I),G(z),G(J)}function $e(r){r.memoizedState!==null&&V(pe,r);var s=I.current,d=jP(s,r.type);s!==d&&(V(z,r),V(I,d))}function Y(r){z.current===r&&(G(I),G(z)),pe.current===r&&(G(pe),Su._currentValue=te)}var ae,ve;function ie(r){if(ae===void 0)try{throw Error()}catch(d){var s=d.stack.trim().match(/\n( *(at )?)/);ae=s&&s[1]||"",ve=-1<d.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ae+r+ve}var we=!1;function ke(r,s){if(!r||we)return"";we=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(s){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(fe){var me=fe}Reflect.construct(r,[],Te)}else{try{Te.call()}catch(fe){me=fe}r.call(Te.prototype)}}else{try{throw Error()}catch(fe){me=fe}(Te=r())&&typeof Te.catch=="function"&&Te.catch(function(){})}}catch(fe){if(fe&&me&&typeof fe.stack=="string")return[fe.stack,me.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=g.DetermineComponentFrameRoot(),M=C[0],F=C[1];if(M&&F){var ee=M.split(`
|
|
@@ -45,7 +45,7 @@ Error generating stack: `+g.message+`
|
|
|
45
45
|
|
|
46
46
|
`)}v.write("payload.value = newResult;"),v.write("return payload;");const _=v.compile();return(P,k)=>_(f,P,k)};let i;const l=Tp,c=!$M.jitless,p=c&&m8.value,h=t.catchall;let m;e._zod.parse=(f,v)=>{m??(m=a.value);const b=f.value;return l(b)?c&&p&&v?.async===!1&&v.jitless!==!0?(i||(i=n(t.shape)),f=i(f,v),h?nN([],b,f,v,m,e):f):o(f,v):(f.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),f)}});function gA(e,t,o,a){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const n=e.filter(i=>!Qc(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:o,errors:e.map(i=>i.issues.map(l=>Ms(l,a,Os())))}),t)}const rN=be("$ZodUnion",(e,t)=>{Ht.init(e,t),Dt(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Dt(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Dt(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Dt(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>M_(i.source)).join("|")})$`)}});const o=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(o)return a(n,i);let l=!1;const c=[];for(const u of t.options){const p=u._zod.run({value:n.value,issues:[]},i);if(p instanceof Promise)c.push(p),l=!0;else{if(p.issues.length===0)return p;c.push(p)}}return l?Promise.all(c).then(u=>gA(u,n,e,i)):gA(c,n,e,i)}}),c7=be("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,rN.init(e,t);const o=e._zod.parse;Dt(e._zod,"propValues",()=>{const n={};for(const i of t.options){const l=i._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[c,u]of Object.entries(l)){n[c]||(n[c]=new Set);for(const p of u)n[c].add(p)}}return n});const a=gv(()=>{const n=t.options,i=new Map;for(const l of n){const c=l._zod.propValues?.[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of c){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,l)}}return i});e._zod.parse=(n,i)=>{const l=n.value;if(!Tp(l))return n.issues.push({code:"invalid_type",expected:"object",input:l,inst:e}),n;const c=a.value.get(l?.[t.discriminator]);return c?c._zod.run(n,i):t.unionFallback?o(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:l,path:[t.discriminator],inst:e}),n)}}),d7=be("$ZodIntersection",(e,t)=>{Ht.init(e,t),e._zod.parse=(o,a)=>{const n=o.value,i=t.left._zod.run({value:n,issues:[]},a),l=t.right._zod.run({value:n,issues:[]},a);return i instanceof Promise||l instanceof Promise?Promise.all([i,l]).then(([u,p])=>fA(o,u,p)):fA(o,i,l)}});function Pw(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(fd(e)&&fd(t)){const o=Object.keys(t),a=Object.keys(e).filter(i=>o.indexOf(i)!==-1),n={...e,...t};for(const i of a){const l=Pw(e[i],t[i]);if(!l.valid)return{valid:!1,mergeErrorPath:[i,...l.mergeErrorPath]};n[i]=l.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let a=0;a<e.length;a++){const n=e[a],i=t[a],l=Pw(n,i);if(!l.valid)return{valid:!1,mergeErrorPath:[a,...l.mergeErrorPath]};o.push(l.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function fA(e,t,o){const a=new Map;let n;for(const c of t.issues)if(c.code==="unrecognized_keys"){n??(n=c);for(const u of c.keys)a.has(u)||a.set(u,{}),a.get(u).l=!0}else e.issues.push(c);for(const c of o.issues)if(c.code==="unrecognized_keys")for(const u of c.keys)a.has(u)||a.set(u,{}),a.get(u).r=!0;else e.issues.push(c);const i=[...a].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(i.length&&n&&e.issues.push({...n,keys:i}),Qc(e))return e;const l=Pw(t.value,o.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return e.value=l.data,e}const u7=be("$ZodTuple",(e,t)=>{Ht.init(e,t);const o=t.items;e._zod.parse=(a,n)=>{const i=a.value;if(!Array.isArray(i))return a.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];const l=[],c=[...o].reverse().findIndex(h=>h._zod.optin!=="optional"),u=c===-1?0:o.length-c;if(!t.rest){const h=i.length>o.length,m=i.length<u-1;if(h||m)return a.issues.push({...h?{code:"too_big",maximum:o.length,inclusive:!0}:{code:"too_small",minimum:o.length},input:i,inst:e,origin:"array"}),a}let p=-1;for(const h of o){if(p++,p>=i.length&&p>=u)continue;const m=h._zod.run({value:i[p],issues:[]},n);m instanceof Promise?l.push(m.then(f=>Ah(f,a,p))):Ah(m,a,p)}if(t.rest){const h=i.slice(o.length);for(const m of h){p++;const f=t.rest._zod.run({value:m,issues:[]},n);f instanceof Promise?l.push(f.then(v=>Ah(v,a,p))):Ah(f,a,p)}}return l.length?Promise.all(l).then(()=>a):a}});function Ah(e,t,o){e.issues.length&&t.issues.push(...Sl(o,e.issues)),t.value[o]=e.value}const p7=be("$ZodRecord",(e,t)=>{Ht.init(e,t),e._zod.parse=(o,a)=>{const n=o.value;if(!fd(n))return o.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),o;const i=[],l=t.keyType._zod.values;if(l){o.value={};const c=new Set;for(const p of l)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){c.add(typeof p=="number"?p.toString():p);const h=t.valueType._zod.run({value:n[p],issues:[]},a);h instanceof Promise?i.push(h.then(m=>{m.issues.length&&o.issues.push(...Sl(p,m.issues)),o.value[p]=m.value})):(h.issues.length&&o.issues.push(...Sl(p,h.issues)),o.value[p]=h.value)}let u;for(const p in n)c.has(p)||(u=u??[],u.push(p));u&&u.length>0&&o.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:u})}else{o.value={};for(const c of Reflect.ownKeys(n)){if(c==="__proto__")continue;let u=t.keyType._zod.run({value:c,issues:[]},a);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&QM.test(c)&&u.issues.length){const m=t.keyType._zod.run({value:Number(c),issues:[]},a);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(u=m)}if(u.issues.length){t.mode==="loose"?o.value[c]=n[c]:o.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(m=>Ms(m,a,Os())),input:c,path:[c],inst:e});continue}const h=t.valueType._zod.run({value:n[c],issues:[]},a);h instanceof Promise?i.push(h.then(m=>{m.issues.length&&o.issues.push(...Sl(c,m.issues)),o.value[u.value]=m.value})):(h.issues.length&&o.issues.push(...Sl(c,h.issues)),o.value[u.value]=h.value)}}return i.length?Promise.all(i).then(()=>o):o}}),m7=be("$ZodEnum",(e,t)=>{Ht.init(e,t);const o=qM(t.entries),a=new Set(o);e._zod.values=a,e._zod.pattern=new RegExp(`^(${o.filter(n=>h8.has(typeof n)).map(n=>typeof n=="string"?vd(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{const l=n.value;return a.has(l)||n.issues.push({code:"invalid_value",values:o,input:l,inst:e}),n}}),h7=be("$ZodLiteral",(e,t)=>{if(Ht.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const o=new Set(t.values);e._zod.values=o,e._zod.pattern=new RegExp(`^(${t.values.map(a=>typeof a=="string"?vd(a):a?vd(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,n)=>{const i=a.value;return o.has(i)||a.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),a}}),g7=be("$ZodFile",(e,t)=>{Ht.init(e,t),e._zod.parse=(o,a)=>{const n=o.value;return n instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),o}}),f7=be("$ZodTransform",(e,t)=>{Ht.init(e,t),e._zod.parse=(o,a)=>{if(a.direction==="backward")throw new UM(e.constructor.name);const n=t.transform(o.value,o);if(a.async)return(n instanceof Promise?n:Promise.resolve(n)).then(l=>(o.value=l,o));if(n instanceof Promise)throw new nd;return o.value=n,o}});function vA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const iN=be("$ZodOptional",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Dt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Dt(e._zod,"pattern",()=>{const o=t.innerType._zod.pattern;return o?new RegExp(`^(${M_(o.source)})?$`):void 0}),e._zod.parse=(o,a)=>{if(t.innerType._zod.optin==="optional"){const n=t.innerType._zod.run(o,a);return n instanceof Promise?n.then(i=>vA(i,o.value)):vA(n,o.value)}return o.value===void 0?o:t.innerType._zod.run(o,a)}}),v7=be("$ZodExactOptional",(e,t)=>{iN.init(e,t),Dt(e._zod,"values",()=>t.innerType._zod.values),Dt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(o,a)=>t.innerType._zod.run(o,a)}),b7=be("$ZodNullable",(e,t)=>{Ht.init(e,t),Dt(e._zod,"optin",()=>t.innerType._zod.optin),Dt(e._zod,"optout",()=>t.innerType._zod.optout),Dt(e._zod,"pattern",()=>{const o=t.innerType._zod.pattern;return o?new RegExp(`^(${M_(o.source)}|null)$`):void 0}),Dt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(o,a)=>o.value===null?o:t.innerType._zod.run(o,a)}),y7=be("$ZodDefault",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",Dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,a)=>{if(a.direction==="backward")return t.innerType._zod.run(o,a);if(o.value===void 0)return o.value=t.defaultValue,o;const n=t.innerType._zod.run(o,a);return n instanceof Promise?n.then(i=>bA(i,t)):bA(n,t)}});function bA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const S7=be("$ZodPrefault",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",Dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,a)=>(a.direction==="backward"||o.value===void 0&&(o.value=t.defaultValue),t.innerType._zod.run(o,a))}),w7=be("$ZodNonOptional",(e,t)=>{Ht.init(e,t),Dt(e._zod,"values",()=>{const o=t.innerType._zod.values;return o?new Set([...o].filter(a=>a!==void 0)):void 0}),e._zod.parse=(o,a)=>{const n=t.innerType._zod.run(o,a);return n instanceof Promise?n.then(i=>yA(i,e)):yA(n,e)}});function yA(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const T7=be("$ZodCatch",(e,t)=>{Ht.init(e,t),Dt(e._zod,"optin",()=>t.innerType._zod.optin),Dt(e._zod,"optout",()=>t.innerType._zod.optout),Dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(o,a)=>{if(a.direction==="backward")return t.innerType._zod.run(o,a);const n=t.innerType._zod.run(o,a);return n instanceof Promise?n.then(i=>(o.value=i.value,i.issues.length&&(o.value=t.catchValue({...o,error:{issues:i.issues.map(l=>Ms(l,a,Os()))},input:o.value}),o.issues=[]),o)):(o.value=n.value,n.issues.length&&(o.value=t.catchValue({...o,error:{issues:n.issues.map(i=>Ms(i,a,Os()))},input:o.value}),o.issues=[]),o)}}),_7=be("$ZodPipe",(e,t)=>{Ht.init(e,t),Dt(e._zod,"values",()=>t.in._zod.values),Dt(e._zod,"optin",()=>t.in._zod.optin),Dt(e._zod,"optout",()=>t.out._zod.optout),Dt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(o,a)=>{if(a.direction==="backward"){const i=t.out._zod.run(o,a);return i instanceof Promise?i.then(l=>Rh(l,t.in,a)):Rh(i,t.in,a)}const n=t.in._zod.run(o,a);return n instanceof Promise?n.then(i=>Rh(i,t.out,a)):Rh(n,t.out,a)}});function Rh(e,t,o){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},o)}const x7=be("$ZodReadonly",(e,t)=>{Ht.init(e,t),Dt(e._zod,"propValues",()=>t.innerType._zod.propValues),Dt(e._zod,"values",()=>t.innerType._zod.values),Dt(e._zod,"optin",()=>t.innerType?._zod?.optin),Dt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(o,a)=>{if(a.direction==="backward")return t.innerType._zod.run(o,a);const n=t.innerType._zod.run(o,a);return n instanceof Promise?n.then(SA):SA(n)}});function SA(e){return e.value=Object.freeze(e.value),e}const C7=be("$ZodLazy",(e,t)=>{Ht.init(e,t),Dt(e._zod,"innerType",()=>t.getter()),Dt(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Dt(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Dt(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Dt(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(o,a)=>e._zod.innerType._zod.run(o,a)}),k7=be("$ZodCustom",(e,t)=>{Ca.init(e,t),Ht.init(e,t),e._zod.parse=(o,a)=>o,e._zod.check=o=>{const a=o.value,n=t.fn(a);if(n instanceof Promise)return n.then(i=>wA(i,o,a,e));wA(n,o,a,e)}});function wA(e,t,o,a){if(!e){const n={code:"custom",input:o,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(n.params=a._zod.def.params),t.issues.push(_p(n))}}var TA;class E7{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...o){const a=o[0];return this._map.set(t,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const o=this._map.get(t);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(t),this}get(t){const o=t._zod.parent;if(o){const a={...this.get(o)??{}};delete a.id;const n={...a,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function P7(){return new E7}(TA=globalThis).__zod_globalRegistry??(TA.__zod_globalRegistry=P7());const Yu=globalThis.__zod_globalRegistry;function A7(e,t){return new e({type:"string",...Ve(t)})}function R7(e,t){return new e({type:"string",coerce:!0,...Ve(t)})}function D7(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ve(t)})}function _A(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ve(t)})}function O7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ve(t)})}function M7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ve(t)})}function N7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ve(t)})}function I7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ve(t)})}function sN(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ve(t)})}function L7(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ve(t)})}function B7(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ve(t)})}function F7(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ve(t)})}function j7(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ve(t)})}function z7(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ve(t)})}function U7(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ve(t)})}function $7(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ve(t)})}function q7(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ve(t)})}function V7(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ve(t)})}function H7(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ve(t)})}function G7(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ve(t)})}function W7(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ve(t)})}function K7(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ve(t)})}function Y7(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ve(t)})}function Z7(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ve(t)})}function Q7(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ve(t)})}function J7(e,t){return new e({type:"string",format:"date",check:"string_format",...Ve(t)})}function X7(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ve(t)})}function eV(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ve(t)})}function tV(e,t){return new e({type:"number",checks:[],...Ve(t)})}function oV(e,t){return new e({type:"number",coerce:!0,checks:[],...Ve(t)})}function aV(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ve(t)})}function nV(e,t){return new e({type:"boolean",...Ve(t)})}function rV(e,t){return new e({type:"boolean",coerce:!0,...Ve(t)})}function iV(e,t){return new e({type:"undefined",...Ve(t)})}function sV(e,t){return new e({type:"null",...Ve(t)})}function lV(e){return new e({type:"any"})}function cV(e){return new e({type:"unknown"})}function dV(e,t){return new e({type:"never",...Ve(t)})}function xA(e,t){return new XM({check:"less_than",...Ve(t),value:e,inclusive:!1})}function NS(e,t){return new XM({check:"less_than",...Ve(t),value:e,inclusive:!0})}function CA(e,t){return new eN({check:"greater_than",...Ve(t),value:e,inclusive:!1})}function IS(e,t){return new eN({check:"greater_than",...Ve(t),value:e,inclusive:!0})}function kA(e,t){return new uq({check:"multiple_of",...Ve(t),value:e})}function uV(e,t){return new mq({check:"max_size",...Ve(t),maximum:e})}function pV(e,t){return new hq({check:"min_size",...Ve(t),minimum:e})}function lN(e,t){return new gq({check:"max_length",...Ve(t),maximum:e})}function vf(e,t){return new fq({check:"min_length",...Ve(t),minimum:e})}function cN(e,t){return new vq({check:"length_equals",...Ve(t),length:e})}function mV(e,t){return new bq({check:"string_format",format:"regex",...Ve(t),pattern:e})}function hV(e){return new yq({check:"string_format",format:"lowercase",...Ve(e)})}function gV(e){return new Sq({check:"string_format",format:"uppercase",...Ve(e)})}function fV(e,t){return new wq({check:"string_format",format:"includes",...Ve(t),includes:e})}function vV(e,t){return new Tq({check:"string_format",format:"starts_with",...Ve(t),prefix:e})}function bV(e,t){return new _q({check:"string_format",format:"ends_with",...Ve(t),suffix:e})}function yV(e,t){return new xq({check:"mime_type",mime:e,...Ve(t)})}function Dd(e){return new Cq({check:"overwrite",tx:e})}function SV(e){return Dd(t=>t.normalize(e))}function wV(){return Dd(e=>e.trim())}function TV(){return Dd(e=>e.toLowerCase())}function _V(){return Dd(e=>e.toUpperCase())}function xV(){return Dd(e=>p8(e))}function CV(e,t,o){return new e({type:"array",element:t,...Ve(o)})}function kV(e,t){return new e({type:"file",...Ve(t)})}function EV(e,t,o){const a=Ve(o);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function PV(e,t,o){return new e({type:"custom",check:"custom",fn:t,...Ve(o)})}function AV(e){const t=RV(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(_p(a,o.value,t._zod.def));else{const n=a;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=o.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),o.issues.push(_p(n))}},e(o.value,o)));return t}function RV(e,t){const o=new Ca({check:"custom",...Ve(t)});return o._zod.check=e,o}function bf(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Yu,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function uo(e,t,o={path:[],schemaPath:[]}){var a;const n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,o.schemaPath.includes(e)&&(i.cycle=o.path),i.schema;const l={schema:{},count:1,cycle:void 0,path:o.path};t.seen.set(e,l);const c=e._zod.toJSONSchema?.();if(c)l.schema=c;else{const h={...o,schemaPath:[...o.schemaPath,e],path:o.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,h);else{const f=l.schema,v=t.processors[n.type];if(!v)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);v(e,t,f,h)}const m=e._zod.parent;m&&(l.ref||(l.ref=m),uo(m,t,h),t.seen.get(m).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(l.schema,u),t.io==="input"&&Va(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&l.schema._prefault&&((a=l.schema).default??(a.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function yf(e,t){const o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=new Map;for(const l of e.seen.entries()){const c=e.metadataRegistry.get(l[0])?.id;if(c){const u=a.get(c);if(u&&u!==l[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(c,l[0])}}const n=l=>{const c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(l[0])?.id,f=e.external.uri??(b=>b);if(m)return{ref:f(m)};const v=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=v,{defId:v,ref:`${f("__shared")}#/${c}/${v}`}}if(l[1]===o)return{ref:"#"};const p=`#/${c}/`,h=l[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:p+h}},i=l=>{if(l[1].schema.$ref)return;const c=l[1],{ref:u,defId:p}=n(l);c.def={...c.schema},p&&(c.defId=p);const h=c.schema;for(const m in h)delete h[m];h.$ref=u};if(e.cycles==="throw")for(const l of e.seen.entries()){const c=l[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
|
|
47
47
|
|
|
48
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const c=l[1];if(t===l[0]){i(l);continue}if(e.external){const p=e.external.registry.get(l[0])?.id;if(t!==l[0]&&p){i(l);continue}}if(e.metadataRegistry.get(l[0])?.id){i(l);continue}if(c.cycle){i(l);continue}if(c.count>1&&e.reused==="ref"){i(l);continue}}}function Sf(e,t){const o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=l=>{const c=e.seen.get(l);if(c.ref===null)return;const u=c.def??c.schema,p={...u},h=c.ref;if(c.ref=null,h){a(h);const f=e.seen.get(h),v=f.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(v)):Object.assign(u,v),Object.assign(u,p),l._zod.parent===h)for(const S in u)S==="$ref"||S==="allOf"||S in p||delete u[S];if(v.$ref&&f.def)for(const S in u)S==="$ref"||S==="allOf"||S in f.def&&JSON.stringify(u[S])===JSON.stringify(f.def[S])&&delete u[S]}const m=l._zod.parent;if(m&&m!==h){a(m);const f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(const v in u)v==="$ref"||v==="allOf"||v in f.def&&JSON.stringify(u[v])===JSON.stringify(f.def[v])&&delete u[v]}e.override({zodSchema:l,jsonSchema:u,path:c.path??[]})};for(const l of[...e.seen.entries()].reverse())a(l[0]);const n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(l)}Object.assign(n,o.def??o.schema);const i=e.external?.defs??{};for(const l of e.seen.entries()){const c=l[1];c.def&&c.defId&&(i[c.defId]=c.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{const l=JSON.parse(JSON.stringify(n));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:wf(t,"input",e.processors),output:wf(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function Va(e,t){const o=t??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return Va(a.element,o);if(a.type==="set")return Va(a.valueType,o);if(a.type==="lazy")return Va(a.getter(),o);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return Va(a.innerType,o);if(a.type==="intersection")return Va(a.left,o)||Va(a.right,o);if(a.type==="record"||a.type==="map")return Va(a.keyType,o)||Va(a.valueType,o);if(a.type==="pipe")return Va(a.in,o)||Va(a.out,o);if(a.type==="object"){for(const n in a.shape)if(Va(a.shape[n],o))return!0;return!1}if(a.type==="union"){for(const n of a.options)if(Va(n,o))return!0;return!1}if(a.type==="tuple"){for(const n of a.items)if(Va(n,o))return!0;return!!(a.rest&&Va(a.rest,o))}return!1}const DV=(e,t={})=>o=>{const a=bf({...o,processors:t});return uo(e,a),yf(a,e),Sf(a,e)},wf=(e,t,o={})=>a=>{const{libraryOptions:n,target:i}=a??{},l=bf({...n??{},target:i,io:t,processors:o});return uo(e,l),yf(l,e),Sf(l,e)},OV={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},dN=(e,t,o,a)=>{const n=o;n.type="string";const{minimum:i,maximum:l,format:c,patterns:u,contentEncoding:p}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof l=="number"&&(n.maxLength=l),c&&(n.format=OV[c]??c,n.format===""&&delete n.format,c==="time"&&delete n.format),p&&(n.contentEncoding=p),u&&u.size>0){const h=[...u];h.length===1?n.pattern=h[0].source:h.length>1&&(n.allOf=[...h.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},uN=(e,t,o,a)=>{const n=o,{minimum:i,maximum:l,format:c,multipleOf:u,exclusiveMaximum:p,exclusiveMinimum:h}=e._zod.bag;typeof c=="string"&&c.includes("int")?n.type="integer":n.type="number",typeof h=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=h,n.exclusiveMinimum=!0):n.exclusiveMinimum=h),typeof i=="number"&&(n.minimum=i,typeof h=="number"&&t.target!=="draft-04"&&(h>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=p,n.exclusiveMaximum=!0):n.exclusiveMaximum=p),typeof l=="number"&&(n.maximum=l,typeof p=="number"&&t.target!=="draft-04"&&(p<=l?delete n.maximum:delete n.exclusiveMaximum)),typeof u=="number"&&(n.multipleOf=u)},pN=(e,t,o,a)=>{o.type="boolean"},MV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},NV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},mN=(e,t,o,a)=>{t.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},hN=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},IV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},gN=(e,t,o,a)=>{o.not={}},fN=(e,t,o,a)=>{},vN=(e,t,o,a)=>{},LV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},bN=(e,t,o,a)=>{const n=e._zod.def,i=qM(n.entries);i.every(l=>typeof l=="number")&&(o.type="number"),i.every(l=>typeof l=="string")&&(o.type="string"),o.enum=i},yN=(e,t,o,a)=>{const n=e._zod.def,i=[];for(const l of n.values)if(l===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof l=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(l))}else i.push(l);if(i.length!==0)if(i.length===1){const l=i[0];o.type=l===null?"null":typeof l,t.target==="draft-04"||t.target==="openapi-3.0"?o.enum=[l]:o.const=l}else i.every(l=>typeof l=="number")&&(o.type="number"),i.every(l=>typeof l=="string")&&(o.type="string"),i.every(l=>typeof l=="boolean")&&(o.type="boolean"),i.every(l=>l===null)&&(o.type="null"),o.enum=i},BV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},FV=(e,t,o,a)=>{const n=o,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},SN=(e,t,o,a)=>{const n=o,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:l,maximum:c,mime:u}=e._zod.bag;l!==void 0&&(i.minLength=l),c!==void 0&&(i.maxLength=c),u?u.length===1?(i.contentMediaType=u[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=u.map(p=>({contentMediaType:p}))):Object.assign(n,i)},jV=(e,t,o,a)=>{o.type="boolean"},wN=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},zV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},TN=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},UV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},$V=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},_N=(e,t,o,a)=>{const n=o,i=e._zod.def,{minimum:l,maximum:c}=e._zod.bag;typeof l=="number"&&(n.minItems=l),typeof c=="number"&&(n.maxItems=c),n.type="array",n.items=uo(i.element,t,{...a,path:[...a.path,"items"]})},xN=(e,t,o,a)=>{const n=o,i=e._zod.def;n.type="object",n.properties={};const l=i.shape;for(const p in l)n.properties[p]=uo(l[p],t,{...a,path:[...a.path,"properties",p]});const c=new Set(Object.keys(l)),u=new Set([...c].filter(p=>{const h=i.shape[p]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));u.size>0&&(n.required=Array.from(u)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=uo(i.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},CN=(e,t,o,a)=>{const n=e._zod.def,i=n.inclusive===!1,l=n.options.map((c,u)=>uo(c,t,{...a,path:[...a.path,i?"oneOf":"anyOf",u]}));i?o.oneOf=l:o.anyOf=l},kN=(e,t,o,a)=>{const n=e._zod.def,i=uo(n.left,t,{...a,path:[...a.path,"allOf",0]}),l=uo(n.right,t,{...a,path:[...a.path,"allOf",1]}),c=p=>"allOf"in p&&Object.keys(p).length===1,u=[...c(i)?i.allOf:[i],...c(l)?l.allOf:[l]];o.allOf=u},EN=(e,t,o,a)=>{const n=o,i=e._zod.def;n.type="array";const l=t.target==="draft-2020-12"?"prefixItems":"items",c=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((f,v)=>uo(f,t,{...a,path:[...a.path,l,v]})),p=i.rest?uo(i.rest,t,{...a,path:[...a.path,c,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=u,p&&(n.items=p)):t.target==="openapi-3.0"?(n.items={anyOf:u},p&&n.items.anyOf.push(p),n.minItems=u.length,p||(n.maxItems=u.length)):(n.items=u,p&&(n.additionalItems=p));const{minimum:h,maximum:m}=e._zod.bag;typeof h=="number"&&(n.minItems=h),typeof m=="number"&&(n.maxItems=m)},PN=(e,t,o,a)=>{const n=o,i=e._zod.def;n.type="object";const l=i.keyType,u=l._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){const h=uo(i.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});n.patternProperties={};for(const m of u)n.patternProperties[m.source]=h}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=uo(i.keyType,t,{...a,path:[...a.path,"propertyNames"]})),n.additionalProperties=uo(i.valueType,t,{...a,path:[...a.path,"additionalProperties"]});const p=l._zod.values;if(p){const h=[...p].filter(m=>typeof m=="string"||typeof m=="number");h.length>0&&(n.required=h)}},AN=(e,t,o,a)=>{const n=e._zod.def,i=uo(n.innerType,t,a),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=n.innerType,o.nullable=!0):o.anyOf=[i,{type:"null"}]},RN=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType},DN=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType,o.default=JSON.parse(JSON.stringify(n.defaultValue))},ON=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},MN=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType;let l;try{l=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=l},NN=(e,t,o,a)=>{const n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;uo(i,t,a);const l=t.seen.get(e);l.ref=i},IN=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType,o.readOnly=!0},qV=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType},B_=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType},LN=(e,t,o,a)=>{const n=e._zod.innerType;uo(n,t,a);const i=t.seen.get(e);i.ref=n},EA={string:dN,number:uN,boolean:pN,bigint:MV,symbol:NV,null:mN,undefined:hN,void:IV,never:gN,any:fN,unknown:vN,date:LV,enum:bN,literal:yN,nan:BV,template_literal:FV,file:SN,success:jV,custom:wN,function:zV,transform:TN,map:UV,set:$V,array:_N,object:xN,union:CN,intersection:kN,tuple:EN,record:PN,nullable:AN,nonoptional:RN,default:DN,prefault:ON,catch:MN,pipe:NN,readonly:IN,promise:qV,optional:B_,lazy:LN};function Jge(e,t){if("_idmap"in e){const a=e,n=bf({...t,processors:EA}),i={};for(const u of a._idmap.entries()){const[p,h]=u;uo(h,n)}const l={},c={registry:a,uri:t?.uri,defs:i};n.external=c;for(const u of a._idmap.entries()){const[p,h]=u;yf(n,h),l[p]=Sf(n,h)}if(Object.keys(i).length>0){const u=n.target==="draft-2020-12"?"$defs":"definitions";l.__shared={[u]:i}}return{schemas:l}}const o=bf({...t,processors:EA});return uo(e,o),yf(o,e),Sf(o,e)}const VV=be("ZodISODateTime",(e,t)=>{jq.init(e,t),Po.init(e,t)});function BN(e){return Q7(VV,e)}const HV=be("ZodISODate",(e,t)=>{zq.init(e,t),Po.init(e,t)});function GV(e){return J7(HV,e)}const WV=be("ZodISOTime",(e,t)=>{Uq.init(e,t),Po.init(e,t)});function KV(e){return X7(WV,e)}const YV=be("ZodISODuration",(e,t)=>{$q.init(e,t),Po.init(e,t)});function ZV(e){return eV(YV,e)}const QV=(e,t)=>{I_.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>C8(e,o)},flatten:{value:o=>x8(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Ew,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Ew,2)}},isEmpty:{get(){return e.issues.length===0}}})},tr=be("ZodError",QV,{Parent:Error}),JV=vv(tr),XV=bv(tr),e9=yv(tr),t9=Sv(tr),o9=R8(tr),a9=D8(tr),n9=O8(tr),r9=M8(tr),i9=N8(tr),s9=I8(tr),l9=L8(tr),c9=B8(tr),Yt=be("ZodType",(e,t)=>(Ht.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:wf(e,"input"),output:wf(e,"output")}}),e.toJSONSchema=DV(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...o)=>e.clone(Bs(t,{checks:[...t.checks??[],...o.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(o,a)=>Di(e,o,a),e.brand=()=>e,e.register=((o,a)=>(o.add(e,a),e)),e.parse=(o,a)=>JV(e,o,a,{callee:e.parse}),e.safeParse=(o,a)=>e9(e,o,a),e.parseAsync=async(o,a)=>XV(e,o,a,{callee:e.parseAsync}),e.safeParseAsync=async(o,a)=>t9(e,o,a),e.spa=e.safeParseAsync,e.encode=(o,a)=>o9(e,o,a),e.decode=(o,a)=>a9(e,o,a),e.encodeAsync=async(o,a)=>n9(e,o,a),e.decodeAsync=async(o,a)=>r9(e,o,a),e.safeEncode=(o,a)=>i9(e,o,a),e.safeDecode=(o,a)=>s9(e,o,a),e.safeEncodeAsync=async(o,a)=>l9(e,o,a),e.safeDecodeAsync=async(o,a)=>c9(e,o,a),e.refine=(o,a)=>e.check(nH(o,a)),e.superRefine=o=>e.check(rH(o)),e.overwrite=o=>e.check(Dd(o)),e.optional=()=>Co(e),e.exactOptional=()=>V9(e),e.nullable=()=>RA(e),e.nullish=()=>Co(RA(e)),e.nonoptional=o=>Z9(e,o),e.array=()=>Be(e),e.or=o=>ro([e,o]),e.and=o=>j_(e,o),e.transform=o=>Rw(e,GN(o)),e.default=o=>W9(e,o),e.prefault=o=>Y9(e,o),e.catch=o=>J9(e,o),e.pipe=o=>Rw(e,o),e.readonly=()=>tH(e),e.describe=o=>{const a=e.clone();return Yu.add(a,{description:o}),a},Object.defineProperty(e,"description",{get(){return Yu.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Yu.get(e);const a=e.clone();return Yu.add(a,o[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=o=>o(e),e)),FN=be("_ZodString",(e,t)=>{L_.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(a,n,i)=>dN(e,a,n);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...a)=>e.check(mV(...a)),e.includes=(...a)=>e.check(fV(...a)),e.startsWith=(...a)=>e.check(vV(...a)),e.endsWith=(...a)=>e.check(bV(...a)),e.min=(...a)=>e.check(vf(...a)),e.max=(...a)=>e.check(lN(...a)),e.length=(...a)=>e.check(cN(...a)),e.nonempty=(...a)=>e.check(vf(1,...a)),e.lowercase=a=>e.check(hV(a)),e.uppercase=a=>e.check(gV(a)),e.trim=()=>e.check(wV()),e.normalize=(...a)=>e.check(SV(...a)),e.toLowerCase=()=>e.check(TV()),e.toUpperCase=()=>e.check(_V()),e.slugify=()=>e.check(xV())}),jN=be("ZodString",(e,t)=>{L_.init(e,t),FN.init(e,t),e.email=o=>e.check(D7(d9,o)),e.url=o=>e.check(sN(zN,o)),e.jwt=o=>e.check(Z7(k9,o)),e.emoji=o=>e.check(L7(p9,o)),e.guid=o=>e.check(_A(PA,o)),e.uuid=o=>e.check(O7(Dh,o)),e.uuidv4=o=>e.check(M7(Dh,o)),e.uuidv6=o=>e.check(N7(Dh,o)),e.uuidv7=o=>e.check(I7(Dh,o)),e.nanoid=o=>e.check(B7(m9,o)),e.guid=o=>e.check(_A(PA,o)),e.cuid=o=>e.check(F7(h9,o)),e.cuid2=o=>e.check(j7(g9,o)),e.ulid=o=>e.check(z7(f9,o)),e.base64=o=>e.check(W7(_9,o)),e.base64url=o=>e.check(K7(x9,o)),e.xid=o=>e.check(U7(v9,o)),e.ksuid=o=>e.check($7(b9,o)),e.ipv4=o=>e.check(q7(y9,o)),e.ipv6=o=>e.check(V7(S9,o)),e.cidrv4=o=>e.check(H7(w9,o)),e.cidrv6=o=>e.check(G7(T9,o)),e.e164=o=>e.check(Y7(C9,o)),e.datetime=o=>e.check(BN(o)),e.date=o=>e.check(GV(o)),e.time=o=>e.check(KV(o)),e.duration=o=>e.check(ZV(o))});function q(e){return A7(jN,e)}const Po=be("ZodStringFormat",(e,t)=>{wo.init(e,t),FN.init(e,t)}),d9=be("ZodEmail",(e,t)=>{Rq.init(e,t),Po.init(e,t)}),PA=be("ZodGUID",(e,t)=>{Pq.init(e,t),Po.init(e,t)}),Dh=be("ZodUUID",(e,t)=>{Aq.init(e,t),Po.init(e,t)}),zN=be("ZodURL",(e,t)=>{Dq.init(e,t),Po.init(e,t)});function u9(e){return sN(zN,e)}const p9=be("ZodEmoji",(e,t)=>{Oq.init(e,t),Po.init(e,t)}),m9=be("ZodNanoID",(e,t)=>{Mq.init(e,t),Po.init(e,t)}),h9=be("ZodCUID",(e,t)=>{Nq.init(e,t),Po.init(e,t)}),g9=be("ZodCUID2",(e,t)=>{Iq.init(e,t),Po.init(e,t)}),f9=be("ZodULID",(e,t)=>{Lq.init(e,t),Po.init(e,t)}),v9=be("ZodXID",(e,t)=>{Bq.init(e,t),Po.init(e,t)}),b9=be("ZodKSUID",(e,t)=>{Fq.init(e,t),Po.init(e,t)}),y9=be("ZodIPv4",(e,t)=>{qq.init(e,t),Po.init(e,t)}),S9=be("ZodIPv6",(e,t)=>{Vq.init(e,t),Po.init(e,t)}),w9=be("ZodCIDRv4",(e,t)=>{Hq.init(e,t),Po.init(e,t)}),T9=be("ZodCIDRv6",(e,t)=>{Gq.init(e,t),Po.init(e,t)}),_9=be("ZodBase64",(e,t)=>{Wq.init(e,t),Po.init(e,t)}),x9=be("ZodBase64URL",(e,t)=>{Yq.init(e,t),Po.init(e,t)}),C9=be("ZodE164",(e,t)=>{Zq.init(e,t),Po.init(e,t)}),k9=be("ZodJWT",(e,t)=>{Jq.init(e,t),Po.init(e,t)}),F_=be("ZodNumber",(e,t)=>{oN.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(a,n,i)=>uN(e,a,n),e.gt=(a,n)=>e.check(CA(a,n)),e.gte=(a,n)=>e.check(IS(a,n)),e.min=(a,n)=>e.check(IS(a,n)),e.lt=(a,n)=>e.check(xA(a,n)),e.lte=(a,n)=>e.check(NS(a,n)),e.max=(a,n)=>e.check(NS(a,n)),e.int=a=>e.check(AA(a)),e.safe=a=>e.check(AA(a)),e.positive=a=>e.check(CA(0,a)),e.nonnegative=a=>e.check(IS(0,a)),e.negative=a=>e.check(xA(0,a)),e.nonpositive=a=>e.check(NS(0,a)),e.multipleOf=(a,n)=>e.check(kA(a,n)),e.step=(a,n)=>e.check(kA(a,n)),e.finite=()=>e;const o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function Mt(e){return tV(F_,e)}const E9=be("ZodNumberFormat",(e,t)=>{Xq.init(e,t),F_.init(e,t)});function AA(e){return aV(E9,e)}const UN=be("ZodBoolean",(e,t)=>{e7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>pN(e,o,a)});function Ut(e){return nV(UN,e)}const P9=be("ZodUndefined",(e,t)=>{t7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>hN(e,o)});function Xge(e){return iV(P9,e)}const A9=be("ZodNull",(e,t)=>{o7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>mN(e,o,a)});function R9(e){return sV(A9,e)}const D9=be("ZodAny",(e,t)=>{a7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>fN()});function O9(){return lV(D9)}const M9=be("ZodUnknown",(e,t)=>{n7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>vN()});function ko(){return cV(M9)}const N9=be("ZodNever",(e,t)=>{r7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>gN(e,o,a)});function I9(e){return dV(N9,e)}const L9=be("ZodArray",(e,t)=>{i7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>_N(e,o,a,n),e.element=t.element,e.min=(o,a)=>e.check(vf(o,a)),e.nonempty=o=>e.check(vf(1,o)),e.max=(o,a)=>e.check(lN(o,a)),e.length=(o,a)=>e.check(cN(o,a)),e.unwrap=()=>e.element});function Be(e,t){return CV(L9,e,t)}const $N=be("ZodObject",(e,t)=>{l7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>xN(e,o,a,n),Dt(e,"shape",()=>t.shape),e.keyof=()=>Eo(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ko()}),e.loose=()=>e.clone({...e._zod.def,catchall:ko()}),e.strict=()=>e.clone({...e._zod.def,catchall:I9()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>y8(e,o),e.safeExtend=o=>S8(e,o),e.merge=o=>w8(e,o),e.pick=o=>v8(e,o),e.omit=o=>b8(e,o),e.partial=(...o)=>T8(WN,e,o[0]),e.required=(...o)=>_8(KN,e,o[0])});function _e(e,t){const o={type:"object",shape:e??{},...Ve(t)};return new $N(o)}function xa(e,t){return new $N({type:"object",shape:e,catchall:ko(),...Ve(t)})}const qN=be("ZodUnion",(e,t)=>{rN.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>CN(e,o,a,n),e.options=t.options});function ro(e,t){return new qN({type:"union",options:e,...Ve(t)})}const B9=be("ZodDiscriminatedUnion",(e,t)=>{qN.init(e,t),c7.init(e,t)});function VN(e,t,o){return new B9({type:"union",options:t,discriminator:e,...Ve(o)})}const F9=be("ZodIntersection",(e,t)=>{d7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>kN(e,o,a,n)});function j_(e,t){return new F9({type:"intersection",left:e,right:t})}const j9=be("ZodTuple",(e,t)=>{u7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>EN(e,o,a,n),e.rest=o=>e.clone({...e._zod.def,rest:o})});function efe(e,t,o){const a=t instanceof Ht,n=a?o:t,i=a?t:null;return new j9({type:"tuple",items:e,rest:i,...Ve(n)})}const HN=be("ZodRecord",(e,t)=>{p7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>PN(e,o,a,n),e.keyType=t.keyType,e.valueType=t.valueType});function vo(e,t,o){return new HN({type:"record",keyType:e,valueType:t,...Ve(o)})}function tfe(e,t,o){const a=Di(e);return a._zod.values=void 0,new HN({type:"record",keyType:a,valueType:t,...Ve(o)})}const Aw=be("ZodEnum",(e,t)=>{m7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(a,n,i)=>bN(e,a,n),e.enum=t.entries,e.options=Object.values(t.entries);const o=new Set(Object.keys(t.entries));e.extract=(a,n)=>{const i={};for(const l of a)if(o.has(l))i[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new Aw({...t,checks:[],...Ve(n),entries:i})},e.exclude=(a,n)=>{const i={...t.entries};for(const l of a)if(o.has(l))delete i[l];else throw new Error(`Key ${l} not found in enum`);return new Aw({...t,checks:[],...Ve(n),entries:i})}});function Eo(e,t){const o=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Aw({type:"enum",entries:o,...Ve(t)})}const z9=be("ZodLiteral",(e,t)=>{h7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>yN(e,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Ze(e,t){return new z9({type:"literal",values:Array.isArray(e)?e:[e],...Ve(t)})}const U9=be("ZodFile",(e,t)=>{g7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>SN(e,o,a),e.min=(o,a)=>e.check(pV(o,a)),e.max=(o,a)=>e.check(uV(o,a)),e.mime=(o,a)=>e.check(yV(Array.isArray(o)?o:[o],a))});function ofe(e){return kV(U9,e)}const $9=be("ZodTransform",(e,t)=>{f7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>TN(e,o),e._zod.parse=(o,a)=>{if(a.direction==="backward")throw new UM(e.constructor.name);o.addIssue=i=>{if(typeof i=="string")o.issues.push(_p(i,o.value,t));else{const l=i;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=o.value),l.inst??(l.inst=e),o.issues.push(_p(l))}};const n=t.transform(o.value,o);return n instanceof Promise?n.then(i=>(o.value=i,o)):(o.value=n,o)}});function GN(e){return new $9({type:"transform",transform:e})}const WN=be("ZodOptional",(e,t)=>{iN.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>B_(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function Co(e){return new WN({type:"optional",innerType:e})}const q9=be("ZodExactOptional",(e,t)=>{v7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>B_(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function V9(e){return new q9({type:"optional",innerType:e})}const H9=be("ZodNullable",(e,t)=>{b7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>AN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function RA(e){return new H9({type:"nullable",innerType:e})}const G9=be("ZodDefault",(e,t)=>{y7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>DN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function W9(e,t){return new G9({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():HM(t)}})}const K9=be("ZodPrefault",(e,t)=>{S7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>ON(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function Y9(e,t){return new K9({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():HM(t)}})}const KN=be("ZodNonOptional",(e,t)=>{w7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>RN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function Z9(e,t){return new KN({type:"nonoptional",innerType:e,...Ve(t)})}const Q9=be("ZodCatch",(e,t)=>{T7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>MN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function J9(e,t){return new Q9({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const X9=be("ZodPipe",(e,t)=>{_7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>NN(e,o,a,n),e.in=t.in,e.out=t.out});function Rw(e,t){return new X9({type:"pipe",in:e,out:t})}const eH=be("ZodReadonly",(e,t)=>{x7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>IN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function tH(e){return new eH({type:"readonly",innerType:e})}const oH=be("ZodLazy",(e,t)=>{C7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>LN(e,o,a,n),e.unwrap=()=>e._zod.def.getter()});function Gr(e){return new oH({type:"lazy",getter:e})}const z_=be("ZodCustom",(e,t)=>{k7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>wN(e,o)});function aH(e,t){return EV(z_,e??(()=>!0),t)}function nH(e,t={}){return PV(z_,e,t)}function rH(e){return AV(e)}function afe(e,t={}){const o=new z_({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...Ve(t)});return o._zod.bag.Class=e,o._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:o,path:[...o._zod.def.path??[]]})},o}function U_(e,t){return Rw(GN(e),t)}const iH={custom:"custom"};function Tv(e){return R7(jN,e)}function YN(e){return oV(F_,e)}function Dw(e){return rV(UN,e)}const sH="2025-11-25",nfe=[sH,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],lH="io.modelcontextprotocol/related-task",_v="2.0",ra=aH(e=>e!==null&&(typeof e=="object"||typeof e=="function")),ZN=ro([q(),Mt().int()]),QN=q();xa({ttl:Mt().optional(),pollInterval:Mt().optional()});const cH=_e({ttl:Mt().optional()}),dH=_e({taskId:q()}),$_=xa({progressToken:ZN.optional(),[lH]:dH.optional()}),Dn=_e({_meta:$_.optional()}),$p=Dn.extend({task:cH.optional()}),rfe=e=>$p.safeParse(e).success,ka=_e({method:q(),params:Dn.loose().optional()}),or=_e({_meta:$_.optional()}),ar=_e({method:q(),params:or.loose().optional()}),Ea=xa({_meta:$_.optional()}),xv=ro([q(),Mt().int()]),JN=_e({jsonrpc:Ze(_v),id:xv,...ka.shape}).strict(),ife=e=>JN.safeParse(e).success,XN=_e({jsonrpc:Ze(_v),...ar.shape}).strict(),sfe=e=>XN.safeParse(e).success,q_=_e({jsonrpc:Ze(_v),id:xv,result:Ea}).strict(),lfe=e=>q_.safeParse(e).success;var xp;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(xp||(xp={}));const V_=_e({jsonrpc:Ze(_v),id:xv.optional(),error:_e({code:Mt().int(),message:q(),data:ko().optional()})}).strict(),cfe=e=>V_.safeParse(e).success,dfe=ro([JN,XN,q_,V_]);ro([q_,V_]);const eI=Ea.strict(),uH=or.extend({requestId:xv.optional(),reason:q().optional()}),tI=ar.extend({method:Ze("notifications/cancelled"),params:uH}),pH=_e({src:q(),mimeType:q().optional(),sizes:Be(q()).optional(),theme:Eo(["light","dark"]).optional()}),qp=_e({icons:Be(pH).optional()}),bd=_e({name:q(),title:q().optional()}),oI=bd.extend({...bd.shape,...qp.shape,version:q(),websiteUrl:q().optional(),description:q().optional()}),mH=j_(_e({applyDefaults:Ut().optional()}),vo(q(),ko())),hH=U_(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,j_(_e({form:mH.optional(),url:ra.optional()}),vo(q(),ko()).optional())),gH=xa({list:ra.optional(),cancel:ra.optional(),requests:xa({sampling:xa({createMessage:ra.optional()}).optional(),elicitation:xa({create:ra.optional()}).optional()}).optional()}),fH=xa({list:ra.optional(),cancel:ra.optional(),requests:xa({tools:xa({call:ra.optional()}).optional()}).optional()}),vH=_e({experimental:vo(q(),ra).optional(),sampling:_e({context:ra.optional(),tools:ra.optional()}).optional(),elicitation:hH.optional(),roots:_e({listChanged:Ut().optional()}).optional(),tasks:gH.optional(),extensions:vo(q(),ra).optional()}),bH=Dn.extend({protocolVersion:q(),capabilities:vH,clientInfo:oI}),yH=ka.extend({method:Ze("initialize"),params:bH}),SH=_e({experimental:vo(q(),ra).optional(),logging:ra.optional(),completions:ra.optional(),prompts:_e({listChanged:Ut().optional()}).optional(),resources:_e({subscribe:Ut().optional(),listChanged:Ut().optional()}).optional(),tools:_e({listChanged:Ut().optional()}).optional(),tasks:fH.optional(),extensions:vo(q(),ra).optional()}),wH=Ea.extend({protocolVersion:q(),capabilities:SH,serverInfo:oI,instructions:q().optional()}),aI=ar.extend({method:Ze("notifications/initialized"),params:or.optional()}),ufe=e=>aI.safeParse(e).success,nI=ka.extend({method:Ze("ping"),params:Dn.optional()}),TH=_e({progress:Mt(),total:Co(Mt()),message:Co(q())}),_H=_e({...or.shape,...TH.shape,progressToken:ZN}),rI=ar.extend({method:Ze("notifications/progress"),params:_H}),xH=Dn.extend({cursor:QN.optional()}),Vp=ka.extend({params:xH.optional()}),Hp=Ea.extend({nextCursor:QN.optional()}),CH=Eo(["working","input_required","completed","failed","cancelled"]),Gp=_e({taskId:q(),status:CH,ttl:ro([Mt(),R9()]),createdAt:q(),lastUpdatedAt:q(),pollInterval:Co(Mt()),statusMessage:Co(q())}),iI=Ea.extend({task:Gp}),kH=or.merge(Gp),sI=ar.extend({method:Ze("notifications/tasks/status"),params:kH}),lI=ka.extend({method:Ze("tasks/get"),params:Dn.extend({taskId:q()})}),cI=Ea.merge(Gp),dI=ka.extend({method:Ze("tasks/result"),params:Dn.extend({taskId:q()})});Ea.loose();const uI=Vp.extend({method:Ze("tasks/list")}),pI=Hp.extend({tasks:Be(Gp)}),mI=ka.extend({method:Ze("tasks/cancel"),params:Dn.extend({taskId:q()})}),pfe=Ea.merge(Gp),hI=_e({uri:q(),mimeType:Co(q()),_meta:vo(q(),ko()).optional()}),gI=hI.extend({text:q()}),H_=q().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),fI=hI.extend({blob:H_}),Wp=Eo(["user","assistant"]),Od=_e({audience:Be(Wp).optional(),priority:Mt().min(0).max(1).optional(),lastModified:BN({offset:!0}).optional()}),vI=_e({...bd.shape,...qp.shape,uri:q(),description:Co(q()),mimeType:Co(q()),size:Co(Mt()),annotations:Od.optional(),_meta:Co(xa({}))}),EH=_e({...bd.shape,...qp.shape,uriTemplate:q(),description:Co(q()),mimeType:Co(q()),annotations:Od.optional(),_meta:Co(xa({}))}),PH=Vp.extend({method:Ze("resources/list")}),AH=Hp.extend({resources:Be(vI)}),RH=Vp.extend({method:Ze("resources/templates/list")}),DH=Hp.extend({resourceTemplates:Be(EH)}),G_=Dn.extend({uri:q()}),OH=G_,MH=ka.extend({method:Ze("resources/read"),params:OH}),NH=Ea.extend({contents:Be(ro([gI,fI]))}),IH=ar.extend({method:Ze("notifications/resources/list_changed"),params:or.optional()}),LH=G_,BH=ka.extend({method:Ze("resources/subscribe"),params:LH}),FH=G_,jH=ka.extend({method:Ze("resources/unsubscribe"),params:FH}),zH=or.extend({uri:q()}),UH=ar.extend({method:Ze("notifications/resources/updated"),params:zH}),$H=_e({name:q(),description:Co(q()),required:Co(Ut())}),qH=_e({...bd.shape,...qp.shape,description:Co(q()),arguments:Co(Be($H)),_meta:Co(xa({}))}),VH=Vp.extend({method:Ze("prompts/list")}),HH=Hp.extend({prompts:Be(qH)}),GH=Dn.extend({name:q(),arguments:vo(q(),q()).optional()}),WH=ka.extend({method:Ze("prompts/get"),params:GH}),W_=_e({type:Ze("text"),text:q(),annotations:Od.optional(),_meta:vo(q(),ko()).optional()}),K_=_e({type:Ze("image"),data:H_,mimeType:q(),annotations:Od.optional(),_meta:vo(q(),ko()).optional()}),Y_=_e({type:Ze("audio"),data:H_,mimeType:q(),annotations:Od.optional(),_meta:vo(q(),ko()).optional()}),KH=_e({type:Ze("tool_use"),name:q(),id:q(),input:vo(q(),ko()),_meta:vo(q(),ko()).optional()}),YH=_e({type:Ze("resource"),resource:ro([gI,fI]),annotations:Od.optional(),_meta:vo(q(),ko()).optional()}),ZH=vI.extend({type:Ze("resource_link")}),Z_=ro([W_,K_,Y_,ZH,YH]),QH=_e({role:Wp,content:Z_}),JH=Ea.extend({description:q().optional(),messages:Be(QH)}),XH=ar.extend({method:Ze("notifications/prompts/list_changed"),params:or.optional()}),eG=_e({title:q().optional(),readOnlyHint:Ut().optional(),destructiveHint:Ut().optional(),idempotentHint:Ut().optional(),openWorldHint:Ut().optional()}),tG=_e({taskSupport:Eo(["required","optional","forbidden"]).optional()}),bI=_e({...bd.shape,...qp.shape,description:q().optional(),inputSchema:_e({type:Ze("object"),properties:vo(q(),ra).optional(),required:Be(q()).optional()}).catchall(ko()),outputSchema:_e({type:Ze("object"),properties:vo(q(),ra).optional(),required:Be(q()).optional()}).catchall(ko()).optional(),annotations:eG.optional(),execution:tG.optional(),_meta:vo(q(),ko()).optional()}),oG=Vp.extend({method:Ze("tools/list")}),aG=Hp.extend({tools:Be(bI)}),yI=Ea.extend({content:Be(Z_).default([]),structuredContent:vo(q(),ko()).optional(),isError:Ut().optional()});yI.or(Ea.extend({toolResult:ko()}));const nG=$p.extend({name:q(),arguments:vo(q(),ko()).optional()}),rG=ka.extend({method:Ze("tools/call"),params:nG}),iG=ar.extend({method:Ze("notifications/tools/list_changed"),params:or.optional()}),mfe=_e({autoRefresh:Ut().default(!0),debounceMs:Mt().int().nonnegative().default(300)}),SI=Eo(["debug","info","notice","warning","error","critical","alert","emergency"]),sG=Dn.extend({level:SI}),lG=ka.extend({method:Ze("logging/setLevel"),params:sG}),cG=or.extend({level:SI,logger:q().optional(),data:ko()}),dG=ar.extend({method:Ze("notifications/message"),params:cG}),uG=_e({name:q().optional()}),pG=_e({hints:Be(uG).optional(),costPriority:Mt().min(0).max(1).optional(),speedPriority:Mt().min(0).max(1).optional(),intelligencePriority:Mt().min(0).max(1).optional()}),mG=_e({mode:Eo(["auto","required","none"]).optional()}),hG=_e({type:Ze("tool_result"),toolUseId:q().describe("The unique identifier for the corresponding tool call."),content:Be(Z_).default([]),structuredContent:_e({}).loose().optional(),isError:Ut().optional(),_meta:vo(q(),ko()).optional()}),gG=VN("type",[W_,K_,Y_]),Tf=VN("type",[W_,K_,Y_,KH,hG]),fG=_e({role:Wp,content:ro([Tf,Be(Tf)]),_meta:vo(q(),ko()).optional()}),vG=$p.extend({messages:Be(fG),modelPreferences:pG.optional(),systemPrompt:q().optional(),includeContext:Eo(["none","thisServer","allServers"]).optional(),temperature:Mt().optional(),maxTokens:Mt().int(),stopSequences:Be(q()).optional(),metadata:ra.optional(),tools:Be(bI).optional(),toolChoice:mG.optional()}),bG=ka.extend({method:Ze("sampling/createMessage"),params:vG}),yG=Ea.extend({model:q(),stopReason:Co(Eo(["endTurn","stopSequence","maxTokens"]).or(q())),role:Wp,content:gG}),SG=Ea.extend({model:q(),stopReason:Co(Eo(["endTurn","stopSequence","maxTokens","toolUse"]).or(q())),role:Wp,content:ro([Tf,Be(Tf)])}),wG=_e({type:Ze("boolean"),title:q().optional(),description:q().optional(),default:Ut().optional()}),TG=_e({type:Ze("string"),title:q().optional(),description:q().optional(),minLength:Mt().optional(),maxLength:Mt().optional(),format:Eo(["email","uri","date","date-time"]).optional(),default:q().optional()}),_G=_e({type:Eo(["number","integer"]),title:q().optional(),description:q().optional(),minimum:Mt().optional(),maximum:Mt().optional(),default:Mt().optional()}),xG=_e({type:Ze("string"),title:q().optional(),description:q().optional(),enum:Be(q()),default:q().optional()}),CG=_e({type:Ze("string"),title:q().optional(),description:q().optional(),oneOf:Be(_e({const:q(),title:q()})),default:q().optional()}),kG=_e({type:Ze("string"),title:q().optional(),description:q().optional(),enum:Be(q()),enumNames:Be(q()).optional(),default:q().optional()}),EG=ro([xG,CG]),PG=_e({type:Ze("array"),title:q().optional(),description:q().optional(),minItems:Mt().optional(),maxItems:Mt().optional(),items:_e({type:Ze("string"),enum:Be(q())}),default:Be(q()).optional()}),AG=_e({type:Ze("array"),title:q().optional(),description:q().optional(),minItems:Mt().optional(),maxItems:Mt().optional(),items:_e({anyOf:Be(_e({const:q(),title:q()}))}),default:Be(q()).optional()}),RG=ro([PG,AG]),DG=ro([kG,EG,RG]),OG=ro([DG,wG,TG,_G]),MG=$p.extend({mode:Ze("form").optional(),message:q(),requestedSchema:_e({type:Ze("object"),properties:vo(q(),OG),required:Be(q()).optional()})}),NG=$p.extend({mode:Ze("url"),message:q(),elicitationId:q(),url:q().url()}),IG=ro([MG,NG]),LG=ka.extend({method:Ze("elicitation/create"),params:IG}),BG=or.extend({elicitationId:q()}),FG=ar.extend({method:Ze("notifications/elicitation/complete"),params:BG}),jG=Ea.extend({action:Eo(["accept","decline","cancel"]),content:U_(e=>e===null?void 0:e,vo(q(),ro([q(),Mt(),Ut(),Be(q())])).optional())}),zG=_e({type:Ze("ref/resource"),uri:q()}),UG=_e({type:Ze("ref/prompt"),name:q()}),$G=Dn.extend({ref:ro([UG,zG]),argument:_e({name:q(),value:q()}),context:_e({arguments:vo(q(),q()).optional()}).optional()}),qG=ka.extend({method:Ze("completion/complete"),params:$G}),VG=Ea.extend({completion:xa({values:Be(q()).max(100),total:Co(Mt().int()),hasMore:Co(Ut())})}),HG=_e({uri:q().startsWith("file://"),name:q().optional(),_meta:vo(q(),ko()).optional()}),GG=ka.extend({method:Ze("roots/list"),params:Dn.optional()}),WG=Ea.extend({roots:Be(HG)}),KG=ar.extend({method:Ze("notifications/roots/list_changed"),params:or.optional()});ro([nI,yH,qG,lG,WH,VH,PH,RH,MH,BH,jH,rG,oG,lI,dI,uI,mI]);ro([tI,rI,aI,KG,sI]);ro([eI,yG,SG,jG,WG,cI,pI,iI]);ro([nI,bG,LG,GG,lI,dI,uI,mI]);ro([tI,rI,dG,UH,IH,iG,XH,sI,FG]);ro([eI,wH,VG,JH,HH,AH,DH,NH,yI,aG,cI,pI,iI]);class Cv extends Error{constructor(t,o,a){super(`MCP error ${t}: ${o}`),this.code=t,this.data=a,this.name="McpError"}static fromError(t,o,a){if(t===xp.UrlElicitationRequired&&a){const n=a;if(n.elicitations)return new YG(n.elicitations,o)}return new Cv(t,o,a)}}class YG extends Cv{constructor(t,o=`URL elicitation${t.length>1?"s":""} required`){super(xp.UrlElicitationRequired,o,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}}const hfe={SELF:e=>`${e}_self`,REGISTRY:e=>`${e}_registry`,COMMUNITY_REGISTRY:e=>`${e}_community-registry`,DEV_ASSETS:e=>`${e}_dev-assets`,SITE_DIAGNOSTICS:e=>`site-diagnostics_${e}`,REPORTS:e=>`${e}_commerce-discovery`},gfe="get_my_diagnostic",ffe="self";function Yn(e){return{is(t){return!t||!t.startsWith(e)?null:t.slice(e.length)||null},get(t){return`${e}${t}`}}}function ZG(e){return{id:e.id,organization_id:e.organizationId,title:e.title,description:e.description,icon:e.icon,status:"active",created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:"system",updated_by:void 0,metadata:{instructions:e.instructions??null,...e.ui?{ui:e.ui}:{}},pinned:!1,connections:[]}}const wI=Yn("decopilot_"),QG=wI.is,JG=wI.get,TI=Yn("dev_"),vfe=TI.get,bfe=TI.is,XG="https://assets.decocache.com/decocms/fd07a578-6b1c-40f1-bc05-88a3b981695d/f7fc4ffa81aec04e37ae670c3cd4936643a7b269.png",eW="#6366f1",yfe=`https://api.iconify.design/lucide:file-search.svg?color=${encodeURIComponent(eW)}`;function Sfe(e){return ZG({id:JG(e),organizationId:e,title:"Super Agent",description:"Default agent that aggregates all organization connections",icon:XG,ui:{layout:{defaultMainView:{type:"overview"},chatDefaultOpen:!0}}})}const tW=Yn("brand-context-setup_"),oW=tW.is,aW=Yn("site-diagnostics_"),nW=aW.is,_I=Yn("commerce-discovery_"),rW=_I.is,wfe=_I.get,gl={AUTOMATION_MANAGER:Yn("studio-automation-manager_"),CONNECTION_MANAGER:Yn("studio-connection-manager_"),API_KEY_MANAGER:Yn("studio-api-key-manager_"),STORE_MANAGER:Yn("studio-store-manager_"),BRAND_MANAGER:Yn("studio-brand-manager_"),USAGE_MANAGER:Yn("studio-usage-manager_")},Tfe={AUTOMATION_MANAGER:gl.AUTOMATION_MANAGER.get,CONNECTION_MANAGER:gl.CONNECTION_MANAGER.get,API_KEY_MANAGER:gl.API_KEY_MANAGER.get,STORE_MANAGER:gl.STORE_MANAGER.get,BRAND_MANAGER:gl.BRAND_MANAGER.get,USAGE_MANAGER:gl.USAGE_MANAGER.get};function iW(e){return e?Object.values(gl).some(t=>t.is(e)!==null):!1}const sW=["studio-agent-manager_","studio-task-manager_"],lW=sW.map(Yn);function cW(e){return e?lW.some(t=>t.is(e)!==null):!1}const dW={from({org:e,project:t}){return`${e}/${t}`},parse(e){e.startsWith("/")&&(e=e.slice(1));const[t,o]=e.split("/");if(!t||!o)throw new Error("Invalid locator");return{org:t,project:o}}},Q_=A.createContext(void 0),_fe=()=>A.useContext(Q_),Kp=()=>{const e=A.useContext(Q_);if(!e)throw new Error("useProjectContext must be used within a ProjectContextProvider");return e},xfe=()=>Kp().org,Cfe=e=>{const t=Le.c(10),{children:o,org:a,project:n}=e;let i;t[0]!==a.id||t[1]!==n.id?(i=dW.from({org:a.id,project:n.id}),t[0]=a.id,t[1]=n.id,t[2]=i):i=t[2];const l=i;let c;t[3]!==l||t[4]!==a||t[5]!==n?(c={org:a,project:n,locator:l},t[3]=l,t[4]=a,t[5]=n,t[6]=c):c=t[6];const u=c;let p;return t[7]!==o||t[8]!==u?(p=w.jsx(Q_.Provider,{value:u,children:o}),t[7]=o,t[8]=u,t[9]=p):p=t[9],p};function uW(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}const pW=e=>{switch(e){case"success":return gW;case"info":return vW;case"warning":return fW;case"error":return bW;default:return null}},mW=Array(12).fill(0),hW=({visible:e,className:t})=>X.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},X.createElement("div",{className:"sonner-spinner"},mW.map((o,a)=>X.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),gW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),fW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),vW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),bW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),yW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},X.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),SW=()=>{const[e,t]=X.useState(document.hidden);return X.useEffect(()=>{const o=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),e};let Ow=1;class wW{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const o=this.subscribers.indexOf(t);this.subscribers.splice(o,1)}),this.publish=t=>{this.subscribers.forEach(o=>o(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var o;const{message:a,...n}=t,i=typeof t?.id=="number"||((o=t.id)==null?void 0:o.length)>0?t.id:Ow++,l=this.toasts.find(u=>u.id===i),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(u=>u.id===i?(this.publish({...u,...t,id:i,title:a}),{...u,...t,id:i,dismissible:c,title:a}):u):this.addToast({title:a,...n,dismissible:c,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:t,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(a=>a({id:o.id,dismiss:!0}))}),t),this.message=(t,o)=>this.create({...o,message:t}),this.error=(t,o)=>this.create({...o,message:t,type:"error"}),this.success=(t,o)=>this.create({...o,type:"success",message:t}),this.info=(t,o)=>this.create({...o,type:"info",message:t}),this.warning=(t,o)=>this.create({...o,type:"warning",message:t}),this.loading=(t,o)=>this.create({...o,type:"loading",message:t}),this.promise=(t,o)=>{if(!o)return;let a;o.loading!==void 0&&(a=this.create({...o,promise:t,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const n=Promise.resolve(t instanceof Function?t():t);let i=a!==void 0,l;const c=n.then(async p=>{if(l=["resolve",p],X.isValidElement(p))i=!1,this.create({id:a,type:"default",message:p});else if(_W(p)&&!p.ok){i=!1;const m=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,f=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,b=typeof m=="object"&&!X.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:f,...b})}else if(p instanceof Error){i=!1;const m=typeof o.error=="function"?await o.error(p):o.error,f=typeof o.description=="function"?await o.description(p):o.description,b=typeof m=="object"&&!X.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:f,...b})}else if(o.success!==void 0){i=!1;const m=typeof o.success=="function"?await o.success(p):o.success,f=typeof o.description=="function"?await o.description(p):o.description,b=typeof m=="object"&&!X.isValidElement(m)?m:{message:m};this.create({id:a,type:"success",description:f,...b})}}).catch(async p=>{if(l=["reject",p],o.error!==void 0){i=!1;const h=typeof o.error=="function"?await o.error(p):o.error,m=typeof o.description=="function"?await o.description(p):o.description,v=typeof h=="object"&&!X.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:m,...v})}}).finally(()=>{i&&(this.dismiss(a),a=void 0),o.finally==null||o.finally.call(o)}),u=()=>new Promise((p,h)=>c.then(()=>l[0]==="reject"?h(l[1]):p(l[1])).catch(h));return typeof a!="string"&&typeof a!="number"?{unwrap:u}:Object.assign(a,{unwrap:u})},this.custom=(t,o)=>{const a=o?.id||Ow++;return this.create({jsx:t(a),id:a,...o}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const sn=new wW,TW=(e,t)=>{const o=t?.id||Ow++;return sn.addToast({title:e,...t,id:o}),o},_W=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",xW=TW,CW=()=>sn.toasts,kW=()=>sn.getActiveToasts(),Vr=Object.assign(xW,{success:sn.success,info:sn.info,warning:sn.warning,error:sn.error,custom:sn.custom,message:sn.message,promise:sn.promise,dismiss:sn.dismiss,loading:sn.loading},{getHistory:CW,getToasts:kW});uW("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Oh(e){return e.label!==void 0}const EW=3,PW="24px",AW="16px",DA=4e3,RW=356,DW=14,OW=45,MW=200;function Or(...e){return e.filter(Boolean).join(" ")}function NW(e){const[t,o]=e.split("-"),a=[];return t&&a.push(t),o&&a.push(o),a}const IW=e=>{var t,o,a,n,i,l,c,u,p;const{invert:h,toast:m,unstyled:f,interacting:v,setHeights:b,visibleToasts:S,heights:x,index:T,toasts:_,expanded:P,removeToast:k,defaultRichColors:E,closeButton:R,style:D,cancelButtonStyle:O,actionButtonStyle:L,className:$="",descriptionClassName:B="",duration:U,position:j,gap:W,expandByDefault:ne,classNames:H,icons:Z,closeButtonAriaLabel:te="Close toast"}=e,[le,Q]=X.useState(null),[N,G]=X.useState(null),[V,I]=X.useState(!1),[z,J]=X.useState(!1),[pe,he]=X.useState(!1),[xe,$e]=X.useState(!1),[Y,ae]=X.useState(!1),[ve,ie]=X.useState(0),[we,ke]=X.useState(0),it=X.useRef(m.duration||U||DA),lt=X.useRef(null),Ge=X.useRef(null),tt=T===0,De=T+1<=S,Re=m.type,He=m.dismissible!==!1,K=m.className||"",oe=m.descriptionClassName||"",se=X.useMemo(()=>x.findIndex(Qe=>Qe.toastId===m.id)||0,[x,m.id]),Ce=X.useMemo(()=>{var Qe;return(Qe=m.closeButton)!=null?Qe:R},[m.closeButton,R]),Pe=X.useMemo(()=>m.duration||U||DA,[m.duration,U]),Ae=X.useRef(0),Ne=X.useRef(0),at=X.useRef(0),nt=X.useRef(null),[St,Pt]=j.split("-"),wt=X.useMemo(()=>x.reduce((Qe,ht,oo)=>oo>=se?Qe:Qe+ht.height,0),[x,se]),qo=SW(),Jr=m.invert||h,nr=Re==="loading";Ne.current=X.useMemo(()=>se*W+wt,[se,wt]),X.useEffect(()=>{it.current=Pe},[Pe]),X.useEffect(()=>{I(!0)},[]),X.useEffect(()=>{const Qe=Ge.current;if(Qe){const ht=Qe.getBoundingClientRect().height;return ke(ht),b(oo=>[{toastId:m.id,height:ht,position:m.position},...oo]),()=>b(oo=>oo.filter(Zt=>Zt.toastId!==m.id))}},[b,m.id]),X.useLayoutEffect(()=>{if(!V)return;const Qe=Ge.current,ht=Qe.style.height;Qe.style.height="auto";const oo=Qe.getBoundingClientRect().height;Qe.style.height=ht,ke(oo),b(Zt=>Zt.find(Bt=>Bt.toastId===m.id)?Zt.map(Bt=>Bt.toastId===m.id?{...Bt,height:oo}:Bt):[{toastId:m.id,height:oo,position:m.position},...Zt])},[V,m.title,m.description,b,m.id,m.jsx,m.action,m.cancel]);const Xe=X.useCallback(()=>{J(!0),ie(Ne.current),b(Qe=>Qe.filter(ht=>ht.toastId!==m.id)),setTimeout(()=>{k(m)},MW)},[m,k,b,Ne]);X.useEffect(()=>{if(m.promise&&Re==="loading"||m.duration===1/0||m.type==="loading")return;let Qe;return P||v||qo?(()=>{if(at.current<Ae.current){const Zt=new Date().getTime()-Ae.current;it.current=it.current-Zt}at.current=new Date().getTime()})():it.current!==1/0&&(Ae.current=new Date().getTime(),Qe=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),Xe()},it.current)),()=>clearTimeout(Qe)},[P,v,m,Re,qo,Xe]),X.useEffect(()=>{m.delete&&(Xe(),m.onDismiss==null||m.onDismiss.call(m,m))},[Xe,m.delete]);function gt(){var Qe;if(Z?.loading){var ht;return X.createElement("div",{className:Or(H?.loader,m==null||(ht=m.classNames)==null?void 0:ht.loader,"sonner-loader"),"data-visible":Re==="loading"},Z.loading)}return X.createElement(hW,{className:Or(H?.loader,m==null||(Qe=m.classNames)==null?void 0:Qe.loader),visible:Re==="loading"})}const At=m.icon||Z?.[Re]||pW(Re);var dt,Lt;return X.createElement("li",{tabIndex:0,ref:Ge,className:Or($,K,H?.toast,m==null||(t=m.classNames)==null?void 0:t.toast,H?.default,H?.[Re],m==null||(o=m.classNames)==null?void 0:o[Re]),"data-sonner-toast":"","data-rich-colors":(dt=m.richColors)!=null?dt:E,"data-styled":!(m.jsx||m.unstyled||f),"data-mounted":V,"data-promise":!!m.promise,"data-swiped":Y,"data-removed":z,"data-visible":De,"data-y-position":St,"data-x-position":Pt,"data-index":T,"data-front":tt,"data-swiping":pe,"data-dismissible":He,"data-type":Re,"data-invert":Jr,"data-swipe-out":xe,"data-swipe-direction":N,"data-expanded":!!(P||ne&&V),"data-testid":m.testId,style:{"--index":T,"--toasts-before":T,"--z-index":_.length-T,"--offset":`${z?ve:Ne.current}px`,"--initial-height":ne?"auto":`${we}px`,...D,...m.style},onDragEnd:()=>{he(!1),Q(null),nt.current=null},onPointerDown:Qe=>{Qe.button!==2&&(nr||!He||(lt.current=new Date,ie(Ne.current),Qe.target.setPointerCapture(Qe.pointerId),Qe.target.tagName!=="BUTTON"&&(he(!0),nt.current={x:Qe.clientX,y:Qe.clientY})))},onPointerUp:()=>{var Qe,ht,oo;if(xe||!He)return;nt.current=null;const Zt=Number(((Qe=Ge.current)==null?void 0:Qe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Aa=Number(((ht=Ge.current)==null?void 0:ht.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bt=new Date().getTime()-((oo=lt.current)==null?void 0:oo.getTime()),po=le==="x"?Zt:Aa,Nn=Math.abs(po)/Bt;if(Math.abs(po)>=OW||Nn>.11){ie(Ne.current),m.onDismiss==null||m.onDismiss.call(m,m),G(le==="x"?Zt>0?"right":"left":Aa>0?"down":"up"),Xe(),$e(!0);return}else{var ma,Ka;(ma=Ge.current)==null||ma.style.setProperty("--swipe-amount-x","0px"),(Ka=Ge.current)==null||Ka.style.setProperty("--swipe-amount-y","0px")}ae(!1),he(!1),Q(null)},onPointerMove:Qe=>{var ht,oo,Zt;if(!nt.current||!He||((ht=window.getSelection())==null?void 0:ht.toString().length)>0)return;const Bt=Qe.clientY-nt.current.y,po=Qe.clientX-nt.current.x;var Nn;const ma=(Nn=e.swipeDirections)!=null?Nn:NW(j);!le&&(Math.abs(po)>1||Math.abs(Bt)>1)&&Q(Math.abs(po)>Math.abs(Bt)?"x":"y");let Ka={x:0,y:0};const ql=rr=>1/(1.5+Math.abs(rr)/20);if(le==="y"){if(ma.includes("top")||ma.includes("bottom"))if(ma.includes("top")&&Bt<0||ma.includes("bottom")&&Bt>0)Ka.y=Bt;else{const rr=Bt*ql(Bt);Ka.y=Math.abs(rr)<Math.abs(Bt)?rr:Bt}}else if(le==="x"&&(ma.includes("left")||ma.includes("right")))if(ma.includes("left")&&po<0||ma.includes("right")&&po>0)Ka.x=po;else{const rr=po*ql(po);Ka.x=Math.abs(rr)<Math.abs(po)?rr:po}(Math.abs(Ka.x)>0||Math.abs(Ka.y)>0)&&ae(!0),(oo=Ge.current)==null||oo.style.setProperty("--swipe-amount-x",`${Ka.x}px`),(Zt=Ge.current)==null||Zt.style.setProperty("--swipe-amount-y",`${Ka.y}px`)}},Ce&&!m.jsx&&Re!=="loading"?X.createElement("button",{"aria-label":te,"data-disabled":nr,"data-close-button":!0,onClick:nr||!He?()=>{}:()=>{Xe(),m.onDismiss==null||m.onDismiss.call(m,m)},className:Or(H?.closeButton,m==null||(a=m.classNames)==null?void 0:a.closeButton)},(Lt=Z?.close)!=null?Lt:yW):null,(Re||m.icon||m.promise)&&m.icon!==null&&(Z?.[Re]!==null||m.icon)?X.createElement("div",{"data-icon":"",className:Or(H?.icon,m==null||(n=m.classNames)==null?void 0:n.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||gt():null,m.type!=="loading"?At:null):null,X.createElement("div",{"data-content":"",className:Or(H?.content,m==null||(i=m.classNames)==null?void 0:i.content)},X.createElement("div",{"data-title":"",className:Or(H?.title,m==null||(l=m.classNames)==null?void 0:l.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?X.createElement("div",{"data-description":"",className:Or(B,oe,H?.description,m==null||(c=m.classNames)==null?void 0:c.description)},typeof m.description=="function"?m.description():m.description):null),X.isValidElement(m.cancel)?m.cancel:m.cancel&&Oh(m.cancel)?X.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||O,onClick:Qe=>{Oh(m.cancel)&&He&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,Qe),Xe())},className:Or(H?.cancelButton,m==null||(u=m.classNames)==null?void 0:u.cancelButton)},m.cancel.label):null,X.isValidElement(m.action)?m.action:m.action&&Oh(m.action)?X.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||L,onClick:Qe=>{Oh(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,Qe),!Qe.defaultPrevented&&Xe())},className:Or(H?.actionButton,m==null||(p=m.classNames)==null?void 0:p.actionButton)},m.action.label):null)};function OA(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function LW(e,t){const o={};return[e,t].forEach((a,n)=>{const i=n===1,l=i?"--mobile-offset":"--offset",c=i?AW:PW;function u(p){["top","right","bottom","left"].forEach(h=>{o[`${l}-${h}`]=typeof p=="number"?`${p}px`:p})}typeof a=="number"||typeof a=="string"?u(a):typeof a=="object"?["top","right","bottom","left"].forEach(p=>{a[p]===void 0?o[`${l}-${p}`]=c:o[`${l}-${p}`]=typeof a[p]=="number"?`${a[p]}px`:a[p]}):u(c)}),o}const BW=X.forwardRef(function(t,o){const{id:a,invert:n,position:i="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:u,className:p,offset:h,mobileOffset:m,theme:f="light",richColors:v,duration:b,style:S,visibleToasts:x=EW,toastOptions:T,dir:_=OA(),gap:P=DW,icons:k,containerAriaLabel:E="Notifications"}=t,[R,D]=X.useState([]),O=X.useMemo(()=>a?R.filter(V=>V.toasterId===a):R.filter(V=>!V.toasterId),[R,a]),L=X.useMemo(()=>Array.from(new Set([i].concat(O.filter(V=>V.position).map(V=>V.position)))),[O,i]),[$,B]=X.useState([]),[U,j]=X.useState(!1),[W,ne]=X.useState(!1),[H,Z]=X.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),te=X.useRef(null),le=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=X.useRef(null),N=X.useRef(!1),G=X.useCallback(V=>{D(I=>{var z;return(z=I.find(J=>J.id===V.id))!=null&&z.delete||sn.dismiss(V.id),I.filter(({id:J})=>J!==V.id)})},[]);return X.useEffect(()=>sn.subscribe(V=>{if(V.dismiss){requestAnimationFrame(()=>{D(I=>I.map(z=>z.id===V.id?{...z,delete:!0}:z))});return}setTimeout(()=>{SM.flushSync(()=>{D(I=>{const z=I.findIndex(J=>J.id===V.id);return z!==-1?[...I.slice(0,z),{...I[z],...V},...I.slice(z+1)]:[V,...I]})})})}),[R]),X.useEffect(()=>{if(f!=="system"){Z(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window>"u")return;const V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:I})=>{Z(I?"dark":"light")})}catch{V.addListener(({matches:z})=>{try{Z(z?"dark":"light")}catch(J){console.error(J)}})}},[f]),X.useEffect(()=>{R.length<=1&&j(!1)},[R]),X.useEffect(()=>{const V=I=>{var z;if(l.every(he=>I[he]||I.code===he)){var pe;j(!0),(pe=te.current)==null||pe.focus()}I.code==="Escape"&&(document.activeElement===te.current||(z=te.current)!=null&&z.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[l]),X.useEffect(()=>{if(te.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,N.current=!1)}},[te.current]),X.createElement("section",{ref:o,"aria-label":`${E} ${le}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((V,I)=>{var z;const[J,pe]=V.split("-");return O.length?X.createElement("ol",{key:V,dir:_==="auto"?OA():_,tabIndex:-1,ref:te,className:p,"data-sonner-toaster":!0,"data-sonner-theme":H,"data-y-position":J,"data-x-position":pe,style:{"--front-toast-height":`${((z=$[0])==null?void 0:z.height)||0}px`,"--width":`${RW}px`,"--gap":`${P}px`,...S,...LW(h,m)},onBlur:he=>{N.current&&!he.currentTarget.contains(he.relatedTarget)&&(N.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||N.current||(N.current=!0,Q.current=he.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{W||j(!1)},onDragEnd:()=>j(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||ne(!0)},onPointerUp:()=>ne(!1)},O.filter(he=>!he.position&&I===0||he.position===V).map((he,xe)=>{var $e,Y;return X.createElement(IW,{key:he.id,icons:k,index:xe,toast:he,defaultRichColors:v,duration:($e=T?.duration)!=null?$e:b,className:T?.className,descriptionClassName:T?.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Y=T?.closeButton)!=null?Y:u,interacting:W,position:V,style:T?.style,unstyled:T?.unstyled,classNames:T?.classNames,cancelButtonStyle:T?.cancelButtonStyle,actionButtonStyle:T?.actionButtonStyle,closeButtonAriaLabel:T?.closeButtonAriaLabel,removeToast:G,toasts:O.filter(ae=>ae.position==he.position),heights:$.filter(ae=>ae.position==he.position),setHeights:B,expandByDefault:c,gap:P,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),On={registryApp:(e,t)=>["registry-app",e,t],publicConfig:()=>["publicConfig"],appVersionCheck:()=>["appVersionCheck"],organizations:()=>["organizations"],members:e=>[e,"members"],mentionMembers:e=>[e,"mention-members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],myCapabilities:e=>[e,"my-capabilities"],taskBoardItems:e=>[e,"task-board-items"],taskBoardItemPrs:(e,t)=>[e,"task-board-item-prs",t],previewProbe:(e,t)=>[e,"preview-probe",t],taskBoardActivity:(e,t)=>[e,"task-board-activity",t],taskBoardAdminOrgs:e=>[e,"task-board-admin-orgs"],taskBoardAnalytics:(e,t,o,a,n)=>[e,"task-board-analytics",t,o,a,n],threadAnalyticsOrgs:e=>[e,"thread-analytics-orgs"],threadAnalytics:(e,t,o,a)=>[e,"thread-analytics",t,o,a],notifications:e=>[e,"notifications"],notificationSubscribers:(e,t)=>[e,"notification-subscribers",t],taskBoardComments:(e,t)=>[e,"task-board-comments",t],report:(e,t)=>["report",e,t??""],reportAll:e=>["report",e],reportsConnection:(e,t)=>["reports","connection",e,t],reportsDiagnostic:(e,t)=>["reports","diagnostic",e,t],reportsVirtualMcp:(e,t)=>["reports","virtual-mcp",e,t],reportsCompanionSchema:(e,t)=>["reports","companion-schema",e,t],reportsCompanionConnections:(e,t)=>["reports","companion-connections",e,t],reportsCompanionConnectionsPrefix:e=>["reports","companion-connections",e],reportsCompanionRegistry:(e,t)=>["reports","companion-registry",e,t],reportsCompanionOAuthStatus:(e,t)=>["reports","companion-oauth-status",e,t],reportsCompanionGaProperties:(e,t)=>["reports","companion-ga-properties",e,t],reportsCompanionGscSites:(e,t)=>["reports","companion-gsc-sites",e,t],reportsCompanionGithubRepos:(e,t,o)=>["reports","companion-github-repos",e,t,o],reportsCompanionGithubSelected:(e,t)=>["reports","companion-github-selected",e,t],reportsConnectionStatus:(e,t)=>["reports","connection-status",e,t],connectionActivity:(e,t,o)=>["monitoring","activity",e,t,o],connectionActivityErrors:(e,t,o)=>["monitoring","activity","errors",e,t,o],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpClient:(e,t,o,a)=>["mcp","client",e,t,o,a],mcpToolsList:e=>["mcp","client",e,"tools"],mcpResourcesList:e=>["mcp","client",e,"resources"],mcpPromptsList:e=>["mcp","client",e,"prompts"],mcpReadResource:(e,t)=>["mcp","client",e,"resource",t],mcpUiResourceHtml:(e,t,o)=>["mcp","ui-resource-html",e,t,o],mcpToolCall:(e,t,o)=>["mcp","client",e,"tool-call",t,o],mcpClientPrefix:()=>["mcp","client"],virtualMcpLastUsed:(e,t)=>["virtual-mcp","last-used",e,t],optimisticProjectSidebarViews:(e,t)=>["virtual-mcp","optimistic-sidebar-views",e,t],githubPrState:(e,t,o,a,n)=>["github-pr-state",e,t,o,a,n],githubLastPublishedPr:(e,t,o,a,n)=>["github-last-published-pr",e,t,o,a,n],githubOpenPrs:(e,t,o,a)=>["github-open-prs",e,t,o,a],githubBranchSearch:(e,t,o,a,n,i)=>["github-branch-search",e,t,o,a,n,i],organizationSettings:e=>["organization-settings",e],infraBillingSites:e=>["infra-billing-sites",e],orgHasSite:e=>["org-has-site",e],infraBilling:(e,t,o)=>["infra-billing",e,t,o],userModelPreferences:e=>["user-model-preferences",e],projectSidebar:e=>["project-sidebar",e],apiKeysList:e=>["api-keys",e],activeOrganization:e=>["activeOrganization",e],orgAccessStatus:e=>["org-access-status",e],homeNextActions:e=>["home-next-actions",e],projectSearch:(e,t)=>["project-search",e,t],toolCall:(e,t,o)=>["tool-call",e,t,o],collection:(e,t,o)=>[e,t,"collection",o],collectionItem:(e,t,o,a,n)=>[e,t,o,"collection",a,n],collectionList:(e,t,o,a,n)=>[e,t,o,"collection",a,"list",n],collectionListInfinite:(e,t,o,a,n)=>[e,t,o,"collection",a,"list-infinite",n],monitoringStatsToolCalls:(e,t)=>["MONITORING_STATS",e,"tool-calls",t],monitoringStatsLlm:(e,t)=>["MONITORING_STATS",e,"llm",t],monitoringHeatmap:(e,t)=>["MONITORING_HEATMAP",e,t],monitoringThreadUsage:(e,t)=>["MONITORING_THREAD_USAGE",e,t],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringLogDetail:e=>["monitoring","log-detail",e],ensureTask:(e,t)=>["ensure-task",e,t],viewedThreadMetadataRefresh:(e,t)=>["viewed-thread-metadata-refresh",e,t],globalSearch:(e,t,o,a)=>["global-search",e,t,o,a?[...a].sort():null],threadsInfinite:(e,t)=>["threads","list-infinite",e,t],threadMessages:(e,t)=>["threads","messages",e,t],threadOutputs:e=>["thread-outputs",e],fileText:e=>["file-text",e],csvThumb:e=>["csv-thumb",e],toolDefinitionLookup:(e,t,o)=>["virtual-mcp",t,e??"default","tools","lookup",o],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,o)=>[...e,t,o],user:e=>["user",e],tags:e=>[e,"tags"],experiments:(e,t)=>[e,"experiments",t],experimentResults:(e,t,o)=>[e,"experiments",t,o,"results"],memberTags:(e,t)=>[e,"member-tags",t],taskBoardPrompts:e=>["task-board-prompts",e],taskBoardColumnAutomations:e=>["task-board-column-automations",e],automationsAll:e=>["automations",e],automations:(e,t)=>["automations",e,t??null],automation:(e,t)=>["automation",e,t],automationRuns:(e,t,o)=>["automation-runs",e,t,...[...o??[]].sort()],automationRunStats:(e,t,o)=>["automation-run-stats",e,t,o],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t],aiProviders:e=>["ai-providers",e],aiProviderModels:(e,t)=>["ai-provider-models",e,t],aiProviderKeys:e=>["ai-provider-keys",e],claudeSubscription:e=>["claude-subscription",e],aiProviderKeyPreview:e=>["ai-provider-key-preview",e],secrets:e=>["secrets",e],fileConfigs:e=>["file-configs",e],orgFsVolume:(e,t)=>["org-fs",e,t],orgFsList:(e,t,o)=>["org-fs",e,t,"list",o],orgFsUsage:(e,t)=>["org-fs",e,t,"usage"],orgFsStat:(e,t,o)=>["org-fs",e,t,"stat",o],orgFsText:(e,t,o,a)=>["org-fs",e,t,"text",o,a],orgFsPublicSets:e=>["org-fs-public-sets",e],userAvatars:()=>["user-avatars"],orgRepoSyncs:e=>["org-repo-syncs",e],gitProviderCapabilities:e=>["git-provider-capabilities",e],githubConnectFlow:(e,t)=>["github-connect-flow",e,t],githubConnectRepositories:(e,t,o,a)=>["github-connect-repositories",e,t,o,a],gitAccounts:e=>["git-accounts",e],repositories:(e,t)=>t?["repositories",e,t]:["repositories",e],providerRepoSearch:(e,t,o)=>["provider-repo-search-pages",e,t,o],jiraIntegration:e=>["jira-integration",e],jiraBoards:e=>["jira-boards",e],jiraBoardColumns:(e,t)=>["jira-board-columns",e,t],jiraAutomations:e=>["jira-automations",e],orgFsRecent:e=>["org-fs-recent",e],orgFsSearchRoot:e=>["org-fs-search",e],orgFsSearch:(e,t,o,a)=>["org-fs-search",e,t,o,a],orgFsSkills:e=>["org-fs-skills",e],slashSkills:e=>["slash-skills",e],filePickerObjects:(e,t,o,a)=>["file-picker-objects",e,t,o??"",a??!1],filePickerObjectsByConfig:(e,t)=>["file-picker-objects",e,t],aiPlanEntitlements:e=>["ai-plan-entitlements",e],aiPlanCatalog:e=>["ai-plan-catalog",e],checkoutReturnPoll:e=>["checkout-return-poll",e],aiPlanPrices:()=>["ai-plan-prices"],orgBillingAccount:e=>["org-billing-account",e],aiProviderCredits:(e,t)=>["ai-provider-credits",e,t],orgSsoConfig:e=>["org-sso-config",e],orgSsoStatus:e=>["org-sso-status",e],orgNotice:e=>["org-notice",e],storeDiscovery:(e,t)=>["store-discovery",e,t],organizationDomains:e=>["organization-domains",e],organizationJoinRequests:e=>["organization-join-requests",e],domainLookup:e=>["domain-lookup",e],deploymentAdminMe:()=>["deployment-admin","me"],deploymentAdminUsers:e=>["deployment-admin","users",e],deploymentAdminOrgs:e=>["deployment-admin","orgs",e],deploymentAdminOrgsList:()=>["deployment-admin","orgs"],deploymentAdminPrompts:()=>["deployment-admin","prompts"],deploymentAdminOrgFlags:e=>["deployment-admin","orgs",e,"flags"],deploymentAdminOrgNotice:e=>["deployment-admin","orgs",e,"notice"],deploymentAdminOrgSites:e=>["deployment-admin","orgs",e,"sites"],deploymentAdminOrgProjects:e=>["deployment-admin","orgs",e,"projects"],defaultBrand:e=>["brand-context",e,"default"],decoSites:e=>["deco-sites",e],decoApps:()=>["deco-apps"],hostingAccess:(e,t)=>["hosting",e,t,"access"],hostingDeployments:(e,t)=>["hosting",e,t,"deployments"],hostingDeploymentHistory:(e,t)=>["hosting",e,t,"deployment-history"],hostingBuildLogs:(e,t,o,a)=>["hosting",e,t,"build-logs",o,a],hostingEnv:(e,t)=>["hosting",e,t,"env"],hostingRedirects:(e,t)=>["hosting",e,t,"redirects"],hostingDomains:(e,t)=>["hosting",e,t,"domains"],hostingSecrets:(e,t)=>["hosting",e,t,"secrets"],e2eRuns:(e,t)=>["hosting",e,t,"e2e-runs"],e2eChecks:(e,t)=>["hosting",e,t,"e2e-checks"],e2eTypes:(e,t)=>["hosting",e,t,"e2e-types"],e2eRun:(e,t,o)=>["hosting",e,t,"e2e-run",o],analyticsStatus:(e,t)=>["hosting",e,t,"analytics-status"],analyticsData:(e,t,o,a)=>["hosting",e,t,"analytics-data",o,a],cdnData:(e,t,o)=>["monitor",e,"cdn-data",t,o],editorResolve:e=>["editor-resolve",e],webSearchBlob:e=>["web-search-blob",e],decofile:e=>["decofile",e],decofileDraft:e=>["decofile-draft",e],liveMeta:(...e)=>["live-meta",...e],sandboxInvoke:(e,t)=>["sandbox-invoke",e,t],sandboxRepoDir:(e,t,o,a)=>["sandbox-repo-dir",e,t,o,a],sandboxSprite:e=>["sandbox-sprite",e],localAgentCapabilities:()=>["local-agent-capabilities"],desktopAuthStatus:()=>["desktop","auth-status"]};function kfe(e,t){e.invalidateQueries({predicate:o=>{const a=o.queryKey;return(!t||a[1]===t)&&a[3]==="collection"&&a[4]==="VIRTUAL_MCP"}})}const xI={itemCreatedSuccessfully:"Item created successfully",itemUpdatedSuccessfully:"Item updated successfully",itemDeletedSuccessfully:"Item deleted successfully",createItemFailed:"Failed to create item: {error}",updateItemFailed:"Failed to update item: {error}",deleteItemFailed:"Failed to delete item: {error}"};function FW(e){Object.assign(xI,e)}function rd(e,t){const o=xI[e];return typeof o=="function"?o(t??{}):typeof o=="string"&&t?o.replace(/\{(\w+)\}/g,(a,n)=>String(t[n]??"")):o??e}function jW(e,t,o){const a=[];if(e?.trim()){const n=e.trim(),i=o.map(l=>({field:[String(l)],operator:"contains",value:n}));i.length===1&&i[0]?a.push(i[0]):i.length>1&&a.push({operator:"or",conditions:i})}if(t&&t.length>0)for(const n of t)a.push({field:[n.column],operator:"eq",value:n.value});if(a.length!==0)return a.length===1?a[0]:{operator:"and",conditions:a}}function zW(e,t,o){const a=e??o,n=t??"desc";return[{field:[String(a)],direction:n}]}function Cl(e){if(!e||typeof e!="object")throw new Error("Invalid result");if("isError"in e&&e.isError)throw new Error("content"in e&&Array.isArray(e.content)&&e.content[0]?.type==="text"?e.content[0].text:"Unknown error");if("structuredContent"in e)return e.structuredContent;throw new Error("No structured content found")}function UW(e,t,o,a){const n=t.toUpperCase(),i=`COLLECTION_${n}_GET`;return{queryKey:On.collectionItem(a,e,"",n,o??""),queryFn:async()=>{if(!o||!a)return{item:null};const l=await a.callTool({name:i,arguments:{id:o}});return Cl(l)},staleTime:6e4}}function Efe(e,t,o,a){const n=Le.c(5);let i;n[0]!==a||n[1]!==t||n[2]!==o||n[3]!==e?(i=UW(e,t,o,a),n[0]=a,n[1]=t,n[2]=o,n[3]=e,n[4]=i):i=n[4];const{data:l}=Ll(i);return l?.item??null}const $W={structuredContent:{items:[]},isError:!1};function CI(e,t,o,a={}){const{searchTerm:n,filters:i,sortKey:l,sortDirection:c,searchFields:u=["title","description"],defaultSortKey:p="updated_at",pageSize:h=100,additionalToolArgs:m}=a,f=t.toUpperCase(),v=`COLLECTION_${f}_LIST`,b=jW(n,i,u),S=zW(l,c,p),x={...b&&{where:b},...S&&{orderBy:S},limit:h,offset:0,...m},T=JSON.stringify(x);return{queryKey:On.collectionList(o,e,"",f,T),queryFn:async()=>{if(!o)return $W;const P=await o.callTool({name:v,arguments:x});return Cl(P),P},staleTime:3e4,retry:!1,select:P=>Cl(P??{})?.items??[]}}function Pfe(e,t,o,a={}){return{...CI(e,t,o,a),select:i=>{const l=Cl(i??{});return{items:l?.items??[],totalCount:l?.totalCount,hasMore:l?.hasMore}}}}function Afe(e,t,o,a){const n=Le.c(7);let i;n[0]!==a?(i=a===void 0?{}:a,n[0]=a,n[1]=i):i=n[1];const l=i;let c;n[2]!==o||n[3]!==t||n[4]!==l||n[5]!==e?(c=CI(e,t,o,l),n[2]=o,n[3]=t,n[4]=l,n[5]=e,n[6]=c):c=n[6];const{data:u}=Ll(c);return u}function Rfe(e,t,o){const a=Le.c(34),n=hv();let i;a[0]!==t?(i=t.toUpperCase(),a[0]=t,a[1]=i):i=a[1];const l=i,c=`COLLECTION_${l}_CREATE`,u=`COLLECTION_${l}_UPDATE`,p=`COLLECTION_${l}_DELETE`;let h;a[2]!==n||a[3]!==e||a[4]!==l?(h=()=>{n.invalidateQueries({predicate:L=>{const $=L.queryKey;return $[1]===e&&$[3]==="collection"&&$[4]===l}})},a[2]=n,a[3]=e,a[4]=l,a[5]=h):h=a[5];const m=h;let f;a[6]!==o||a[7]!==c?(f=async L=>{const $=await o.callTool({name:c,arguments:{data:L}});if($.isError)throw new Error(Array.isArray($.content)?$.content[0]?.text:String($.content));return Cl($).item},a[6]=o,a[7]=c,a[8]=f):f=a[8];let v;a[9]!==m?(v=()=>{m(),Vr.success(rd("itemCreatedSuccessfully"))},a[9]=m,a[10]=v):v=a[10];let b;a[11]!==f||a[12]!==v?(b={mutationFn:f,onSuccess:v,onError:HW},a[11]=f,a[12]=v,a[13]=b):b=a[13];const S=sp(b);let x;a[14]!==o||a[15]!==u?(x=async L=>{const{id:$,data:B}=L,U=await o.callTool({name:u,arguments:{id:$,data:B}});return Cl(U).item},a[14]=o,a[15]=u,a[16]=x):x=a[16];let T;a[17]!==m?(T=()=>{m(),Vr.success(rd("itemUpdatedSuccessfully"))},a[17]=m,a[18]=T):T=a[18];let _;a[19]!==x||a[20]!==T?(_={mutationFn:x,onSuccess:T,onError:VW},a[19]=x,a[20]=T,a[21]=_):_=a[21];const P=sp(_);let k;a[22]!==o||a[23]!==p?(k=async L=>{const $=await o.callTool({name:p,arguments:{id:L}});return Cl($).item.id},a[22]=o,a[23]=p,a[24]=k):k=a[24];let E;a[25]!==m?(E=()=>{m(),Vr.success(rd("itemDeletedSuccessfully"))},a[25]=m,a[26]=E):E=a[26];let R;a[27]!==k||a[28]!==E?(R={mutationFn:k,onSuccess:E,onError:qW},a[27]=k,a[28]=E,a[29]=R):R=a[29];const D=sp(R);let O;return a[30]!==S||a[31]!==D||a[32]!==P?(O={create:S,update:P,delete:D},a[30]=S,a[31]=D,a[32]=P,a[33]=O):O=a[33],O}function qW(e){const t=e instanceof Error?e.message:String(e);Vr.error(rd("deleteItemFailed",{error:t}))}function VW(e){const t=e instanceof Error?e.message:String(e);Vr.error(rd("updateItemFailed",{error:t}))}function HW(e){const t=e instanceof Error?e.message:String(e);Vr.error(rd("createItemFailed",{error:t}))}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var Mh={exports:{}},LS={},vi={},rl={},BS={},FS={},jS={},MA;function _f(){return MA||(MA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class o extends t{constructor(_){if(super(),!e.IDENTIFIER.test(_))throw new Error("CodeGen: name must be a valid identifier");this.str=_}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=o;class a extends t{constructor(_){super(),this._items=typeof _=="string"?[_]:_}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const _=this._items[0];return _===""||_==='""'}get str(){var _;return(_=this._str)!==null&&_!==void 0?_:this._str=this._items.reduce((P,k)=>`${P}${k}`,"")}get names(){var _;return(_=this._names)!==null&&_!==void 0?_:this._names=this._items.reduce((P,k)=>(k instanceof o&&(P[k.str]=(P[k.str]||0)+1),P),{})}}e._Code=a,e.nil=new a("");function n(T,..._){const P=[T[0]];let k=0;for(;k<_.length;)c(P,_[k]),P.push(T[++k]);return new a(P)}e._=n;const i=new a("+");function l(T,..._){const P=[v(T[0])];let k=0;for(;k<_.length;)P.push(i),c(P,_[k]),P.push(i,v(T[++k]));return u(P),new a(P)}e.str=l;function c(T,_){_ instanceof a?T.push(..._._items):_ instanceof o?T.push(_):T.push(m(_))}e.addCodeArg=c;function u(T){let _=1;for(;_<T.length-1;){if(T[_]===i){const P=p(T[_-1],T[_+1]);if(P!==void 0){T.splice(_-1,3,P);continue}T[_++]="+"}_++}}function p(T,_){if(_==='""')return T;if(T==='""')return _;if(typeof T=="string")return _ instanceof o||T[T.length-1]!=='"'?void 0:typeof _!="string"?`${T.slice(0,-1)}${_}"`:_[0]==='"'?T.slice(0,-1)+_.slice(1):void 0;if(typeof _=="string"&&_[0]==='"'&&!(T instanceof o))return`"${T}${_.slice(1)}`}function h(T,_){return _.emptyStr()?T:T.emptyStr()?_:l`${T}${_}`}e.strConcat=h;function m(T){return typeof T=="number"||typeof T=="boolean"||T===null?T:v(Array.isArray(T)?T.join(","):T)}function f(T){return new a(v(T))}e.stringify=f;function v(T){return JSON.stringify(T).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=v;function b(T){return typeof T=="string"&&e.IDENTIFIER.test(T)?new a(`.${T}`):n`[${T}]`}e.getProperty=b;function S(T){if(typeof T=="string"&&e.IDENTIFIER.test(T))return new a(`${T}`);throw new Error(`CodeGen: invalid export name: ${T}, use explicit $id name mapping`)}e.getEsmExportName=S;function x(T){return new a(T.toString())}e.regexpCode=x})(jS)),jS}var zS={},NA;function IA(){return NA||(NA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=_f();class o extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var a;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(a||(e.UsedValueState=a={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class n{constructor({prefixes:p,parent:h}={}){this._names={},this._prefixes=p,this._parent=h}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const h=this._names[p]||this._nameGroup(p);return`${p}${h.index++}`}_nameGroup(p){var h,m;if(!((m=(h=this._parent)===null||h===void 0?void 0:h._prefixes)===null||m===void 0)&&m.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=n;class i extends t.Name{constructor(p,h){super(h),this.prefix=p}setValue(p,{property:h,itemIndex:m}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(h)}[${m}]`}}e.ValueScopeName=i;const l=(0,t._)`\n`;class c extends n{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?l:t.nil}}get(){return this._scope}name(p){return new i(p,this._newName(p))}value(p,h){var m;if(h.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(p),{prefix:v}=f,b=(m=h.key)!==null&&m!==void 0?m:h.ref;let S=this._values[v];if(S){const _=S.get(b);if(_)return _}else S=this._values[v]=new Map;S.set(b,f);const x=this._scope[v]||(this._scope[v]=[]),T=x.length;return x[T]=h.ref,f.setValue(h,{property:v,itemIndex:T}),f}getValue(p,h){const m=this._values[p];if(m)return m.get(h)}scopeRefs(p,h=this._values){return this._reduceValues(h,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${p}${m.scopePath}`})}scopeCode(p=this._values,h,m){return this._reduceValues(p,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},h,m)}_reduceValues(p,h,m={},f){let v=t.nil;for(const b in p){const S=p[b];if(!S)continue;const x=m[b]=m[b]||new Map;S.forEach(T=>{if(x.has(T))return;x.set(T,a.Started);let _=h(T);if(_){const P=this.opts.es5?e.varKinds.var:e.varKinds.const;v=(0,t._)`${v}${P} ${T} = ${_};${this.opts._n}`}else if(_=f?.(T))v=(0,t._)`${v}${_}${this.opts._n}`;else throw new o(T);x.set(T,a.Completed)})}return v}}e.ValueScope=c})(zS)),zS}var LA;function bt(){return LA||(LA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=_f(),o=IA();var a=_f();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var n=IA();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class i{optimizeNodes(){return this}optimizeNames(I,z){return this}}class l extends i{constructor(I,z,J){super(),this.varKind=I,this.name=z,this.rhs=J}render({es5:I,_n:z}){const J=I?o.varKinds.var:this.varKind,pe=this.rhs===void 0?"":` = ${this.rhs}`;return`${J} ${this.name}${pe};`+z}optimizeNames(I,z){if(I[this.name.str])return this.rhs&&(this.rhs=W(this.rhs,I,z)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends i{constructor(I,z,J){super(),this.lhs=I,this.rhs=z,this.sideEffects=J}render({_n:I}){return`${this.lhs} = ${this.rhs};`+I}optimizeNames(I,z){if(!(this.lhs instanceof t.Name&&!I[this.lhs.str]&&!this.sideEffects))return this.rhs=W(this.rhs,I,z),this}get names(){const I=this.lhs instanceof t.Name?{}:{...this.lhs.names};return j(I,this.rhs)}}class u extends c{constructor(I,z,J,pe){super(I,J,pe),this.op=z}render({_n:I}){return`${this.lhs} ${this.op}= ${this.rhs};`+I}}class p extends i{constructor(I){super(),this.label=I,this.names={}}render({_n:I}){return`${this.label}:`+I}}class h extends i{constructor(I){super(),this.label=I,this.names={}}render({_n:I}){return`break${this.label?` ${this.label}`:""};`+I}}class m extends i{constructor(I){super(),this.error=I}render({_n:I}){return`throw ${this.error};`+I}get names(){return this.error.names}}class f extends i{constructor(I){super(),this.code=I}render({_n:I}){return`${this.code};`+I}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(I,z){return this.code=W(this.code,I,z),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class v extends i{constructor(I=[]){super(),this.nodes=I}render(I){return this.nodes.reduce((z,J)=>z+J.render(I),"")}optimizeNodes(){const{nodes:I}=this;let z=I.length;for(;z--;){const J=I[z].optimizeNodes();Array.isArray(J)?I.splice(z,1,...J):J?I[z]=J:I.splice(z,1)}return I.length>0?this:void 0}optimizeNames(I,z){const{nodes:J}=this;let pe=J.length;for(;pe--;){const he=J[pe];he.optimizeNames(I,z)||(ne(I,he.names),J.splice(pe,1))}return J.length>0?this:void 0}get names(){return this.nodes.reduce((I,z)=>U(I,z.names),{})}}class b extends v{render(I){return"{"+I._n+super.render(I)+"}"+I._n}}class S extends v{}class x extends b{}x.kind="else";class T extends b{constructor(I,z){super(z),this.condition=I}render(I){let z=`if(${this.condition})`+super.render(I);return this.else&&(z+="else "+this.else.render(I)),z}optimizeNodes(){super.optimizeNodes();const I=this.condition;if(I===!0)return this.nodes;let z=this.else;if(z){const J=z.optimizeNodes();z=this.else=Array.isArray(J)?new x(J):J}if(z)return I===!1?z instanceof T?z:z.nodes:this.nodes.length?this:new T(H(I),z instanceof T?[z]:z.nodes);if(!(I===!1||!this.nodes.length))return this}optimizeNames(I,z){var J;if(this.else=(J=this.else)===null||J===void 0?void 0:J.optimizeNames(I,z),!!(super.optimizeNames(I,z)||this.else))return this.condition=W(this.condition,I,z),this}get names(){const I=super.names;return j(I,this.condition),this.else&&U(I,this.else.names),I}}T.kind="if";class _ extends b{}_.kind="for";class P extends _{constructor(I){super(),this.iteration=I}render(I){return`for(${this.iteration})`+super.render(I)}optimizeNames(I,z){if(super.optimizeNames(I,z))return this.iteration=W(this.iteration,I,z),this}get names(){return U(super.names,this.iteration.names)}}class k extends _{constructor(I,z,J,pe){super(),this.varKind=I,this.name=z,this.from=J,this.to=pe}render(I){const z=I.es5?o.varKinds.var:this.varKind,{name:J,from:pe,to:he}=this;return`for(${z} ${J}=${pe}; ${J}<${he}; ${J}++)`+super.render(I)}get names(){const I=j(super.names,this.from);return j(I,this.to)}}class E extends _{constructor(I,z,J,pe){super(),this.loop=I,this.varKind=z,this.name=J,this.iterable=pe}render(I){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(I)}optimizeNames(I,z){if(super.optimizeNames(I,z))return this.iterable=W(this.iterable,I,z),this}get names(){return U(super.names,this.iterable.names)}}class R extends b{constructor(I,z,J){super(),this.name=I,this.args=z,this.async=J}render(I){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(I)}}R.kind="func";class D extends v{render(I){return"return "+super.render(I)}}D.kind="return";class O extends b{render(I){let z="try"+super.render(I);return this.catch&&(z+=this.catch.render(I)),this.finally&&(z+=this.finally.render(I)),z}optimizeNodes(){var I,z;return super.optimizeNodes(),(I=this.catch)===null||I===void 0||I.optimizeNodes(),(z=this.finally)===null||z===void 0||z.optimizeNodes(),this}optimizeNames(I,z){var J,pe;return super.optimizeNames(I,z),(J=this.catch)===null||J===void 0||J.optimizeNames(I,z),(pe=this.finally)===null||pe===void 0||pe.optimizeNames(I,z),this}get names(){const I=super.names;return this.catch&&U(I,this.catch.names),this.finally&&U(I,this.finally.names),I}}class L extends b{constructor(I){super(),this.error=I}render(I){return`catch(${this.error})`+super.render(I)}}L.kind="catch";class $ extends b{render(I){return"finally"+super.render(I)}}$.kind="finally";class B{constructor(I,z={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...z,_n:z.lines?`
|
|
48
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const c=l[1];if(t===l[0]){i(l);continue}if(e.external){const p=e.external.registry.get(l[0])?.id;if(t!==l[0]&&p){i(l);continue}}if(e.metadataRegistry.get(l[0])?.id){i(l);continue}if(c.cycle){i(l);continue}if(c.count>1&&e.reused==="ref"){i(l);continue}}}function Sf(e,t){const o=e.seen.get(t);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=l=>{const c=e.seen.get(l);if(c.ref===null)return;const u=c.def??c.schema,p={...u},h=c.ref;if(c.ref=null,h){a(h);const f=e.seen.get(h),v=f.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(v)):Object.assign(u,v),Object.assign(u,p),l._zod.parent===h)for(const S in u)S==="$ref"||S==="allOf"||S in p||delete u[S];if(v.$ref&&f.def)for(const S in u)S==="$ref"||S==="allOf"||S in f.def&&JSON.stringify(u[S])===JSON.stringify(f.def[S])&&delete u[S]}const m=l._zod.parent;if(m&&m!==h){a(m);const f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(const v in u)v==="$ref"||v==="allOf"||v in f.def&&JSON.stringify(u[v])===JSON.stringify(f.def[v])&&delete u[v]}e.override({zodSchema:l,jsonSchema:u,path:c.path??[]})};for(const l of[...e.seen.entries()].reverse())a(l[0]);const n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(l)}Object.assign(n,o.def??o.schema);const i=e.external?.defs??{};for(const l of e.seen.entries()){const c=l[1];c.def&&c.defId&&(i[c.defId]=c.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{const l=JSON.parse(JSON.stringify(n));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:wf(t,"input",e.processors),output:wf(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function Va(e,t){const o=t??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return Va(a.element,o);if(a.type==="set")return Va(a.valueType,o);if(a.type==="lazy")return Va(a.getter(),o);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return Va(a.innerType,o);if(a.type==="intersection")return Va(a.left,o)||Va(a.right,o);if(a.type==="record"||a.type==="map")return Va(a.keyType,o)||Va(a.valueType,o);if(a.type==="pipe")return Va(a.in,o)||Va(a.out,o);if(a.type==="object"){for(const n in a.shape)if(Va(a.shape[n],o))return!0;return!1}if(a.type==="union"){for(const n of a.options)if(Va(n,o))return!0;return!1}if(a.type==="tuple"){for(const n of a.items)if(Va(n,o))return!0;return!!(a.rest&&Va(a.rest,o))}return!1}const DV=(e,t={})=>o=>{const a=bf({...o,processors:t});return uo(e,a),yf(a,e),Sf(a,e)},wf=(e,t,o={})=>a=>{const{libraryOptions:n,target:i}=a??{},l=bf({...n??{},target:i,io:t,processors:o});return uo(e,l),yf(l,e),Sf(l,e)},OV={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},dN=(e,t,o,a)=>{const n=o;n.type="string";const{minimum:i,maximum:l,format:c,patterns:u,contentEncoding:p}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof l=="number"&&(n.maxLength=l),c&&(n.format=OV[c]??c,n.format===""&&delete n.format,c==="time"&&delete n.format),p&&(n.contentEncoding=p),u&&u.size>0){const h=[...u];h.length===1?n.pattern=h[0].source:h.length>1&&(n.allOf=[...h.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},uN=(e,t,o,a)=>{const n=o,{minimum:i,maximum:l,format:c,multipleOf:u,exclusiveMaximum:p,exclusiveMinimum:h}=e._zod.bag;typeof c=="string"&&c.includes("int")?n.type="integer":n.type="number",typeof h=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=h,n.exclusiveMinimum=!0):n.exclusiveMinimum=h),typeof i=="number"&&(n.minimum=i,typeof h=="number"&&t.target!=="draft-04"&&(h>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=p,n.exclusiveMaximum=!0):n.exclusiveMaximum=p),typeof l=="number"&&(n.maximum=l,typeof p=="number"&&t.target!=="draft-04"&&(p<=l?delete n.maximum:delete n.exclusiveMaximum)),typeof u=="number"&&(n.multipleOf=u)},pN=(e,t,o,a)=>{o.type="boolean"},MV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},NV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},mN=(e,t,o,a)=>{t.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},hN=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},IV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},gN=(e,t,o,a)=>{o.not={}},fN=(e,t,o,a)=>{},vN=(e,t,o,a)=>{},LV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},bN=(e,t,o,a)=>{const n=e._zod.def,i=qM(n.entries);i.every(l=>typeof l=="number")&&(o.type="number"),i.every(l=>typeof l=="string")&&(o.type="string"),o.enum=i},yN=(e,t,o,a)=>{const n=e._zod.def,i=[];for(const l of n.values)if(l===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof l=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(l))}else i.push(l);if(i.length!==0)if(i.length===1){const l=i[0];o.type=l===null?"null":typeof l,t.target==="draft-04"||t.target==="openapi-3.0"?o.enum=[l]:o.const=l}else i.every(l=>typeof l=="number")&&(o.type="number"),i.every(l=>typeof l=="string")&&(o.type="string"),i.every(l=>typeof l=="boolean")&&(o.type="boolean"),i.every(l=>l===null)&&(o.type="null"),o.enum=i},BV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},FV=(e,t,o,a)=>{const n=o,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},SN=(e,t,o,a)=>{const n=o,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:l,maximum:c,mime:u}=e._zod.bag;l!==void 0&&(i.minLength=l),c!==void 0&&(i.maxLength=c),u?u.length===1?(i.contentMediaType=u[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=u.map(p=>({contentMediaType:p}))):Object.assign(n,i)},jV=(e,t,o,a)=>{o.type="boolean"},wN=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},zV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},TN=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},UV=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},$V=(e,t,o,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},_N=(e,t,o,a)=>{const n=o,i=e._zod.def,{minimum:l,maximum:c}=e._zod.bag;typeof l=="number"&&(n.minItems=l),typeof c=="number"&&(n.maxItems=c),n.type="array",n.items=uo(i.element,t,{...a,path:[...a.path,"items"]})},xN=(e,t,o,a)=>{const n=o,i=e._zod.def;n.type="object",n.properties={};const l=i.shape;for(const p in l)n.properties[p]=uo(l[p],t,{...a,path:[...a.path,"properties",p]});const c=new Set(Object.keys(l)),u=new Set([...c].filter(p=>{const h=i.shape[p]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));u.size>0&&(n.required=Array.from(u)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=uo(i.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},CN=(e,t,o,a)=>{const n=e._zod.def,i=n.inclusive===!1,l=n.options.map((c,u)=>uo(c,t,{...a,path:[...a.path,i?"oneOf":"anyOf",u]}));i?o.oneOf=l:o.anyOf=l},kN=(e,t,o,a)=>{const n=e._zod.def,i=uo(n.left,t,{...a,path:[...a.path,"allOf",0]}),l=uo(n.right,t,{...a,path:[...a.path,"allOf",1]}),c=p=>"allOf"in p&&Object.keys(p).length===1,u=[...c(i)?i.allOf:[i],...c(l)?l.allOf:[l]];o.allOf=u},EN=(e,t,o,a)=>{const n=o,i=e._zod.def;n.type="array";const l=t.target==="draft-2020-12"?"prefixItems":"items",c=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((f,v)=>uo(f,t,{...a,path:[...a.path,l,v]})),p=i.rest?uo(i.rest,t,{...a,path:[...a.path,c,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=u,p&&(n.items=p)):t.target==="openapi-3.0"?(n.items={anyOf:u},p&&n.items.anyOf.push(p),n.minItems=u.length,p||(n.maxItems=u.length)):(n.items=u,p&&(n.additionalItems=p));const{minimum:h,maximum:m}=e._zod.bag;typeof h=="number"&&(n.minItems=h),typeof m=="number"&&(n.maxItems=m)},PN=(e,t,o,a)=>{const n=o,i=e._zod.def;n.type="object";const l=i.keyType,u=l._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){const h=uo(i.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});n.patternProperties={};for(const m of u)n.patternProperties[m.source]=h}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=uo(i.keyType,t,{...a,path:[...a.path,"propertyNames"]})),n.additionalProperties=uo(i.valueType,t,{...a,path:[...a.path,"additionalProperties"]});const p=l._zod.values;if(p){const h=[...p].filter(m=>typeof m=="string"||typeof m=="number");h.length>0&&(n.required=h)}},AN=(e,t,o,a)=>{const n=e._zod.def,i=uo(n.innerType,t,a),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=n.innerType,o.nullable=!0):o.anyOf=[i,{type:"null"}]},RN=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType},DN=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType,o.default=JSON.parse(JSON.stringify(n.defaultValue))},ON=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},MN=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType;let l;try{l=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=l},NN=(e,t,o,a)=>{const n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;uo(i,t,a);const l=t.seen.get(e);l.ref=i},IN=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType,o.readOnly=!0},qV=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType},B_=(e,t,o,a)=>{const n=e._zod.def;uo(n.innerType,t,a);const i=t.seen.get(e);i.ref=n.innerType},LN=(e,t,o,a)=>{const n=e._zod.innerType;uo(n,t,a);const i=t.seen.get(e);i.ref=n},EA={string:dN,number:uN,boolean:pN,bigint:MV,symbol:NV,null:mN,undefined:hN,void:IV,never:gN,any:fN,unknown:vN,date:LV,enum:bN,literal:yN,nan:BV,template_literal:FV,file:SN,success:jV,custom:wN,function:zV,transform:TN,map:UV,set:$V,array:_N,object:xN,union:CN,intersection:kN,tuple:EN,record:PN,nullable:AN,nonoptional:RN,default:DN,prefault:ON,catch:MN,pipe:NN,readonly:IN,promise:qV,optional:B_,lazy:LN};function Jge(e,t){if("_idmap"in e){const a=e,n=bf({...t,processors:EA}),i={};for(const u of a._idmap.entries()){const[p,h]=u;uo(h,n)}const l={},c={registry:a,uri:t?.uri,defs:i};n.external=c;for(const u of a._idmap.entries()){const[p,h]=u;yf(n,h),l[p]=Sf(n,h)}if(Object.keys(i).length>0){const u=n.target==="draft-2020-12"?"$defs":"definitions";l.__shared={[u]:i}}return{schemas:l}}const o=bf({...t,processors:EA});return uo(e,o),yf(o,e),Sf(o,e)}const VV=be("ZodISODateTime",(e,t)=>{jq.init(e,t),Po.init(e,t)});function BN(e){return Q7(VV,e)}const HV=be("ZodISODate",(e,t)=>{zq.init(e,t),Po.init(e,t)});function GV(e){return J7(HV,e)}const WV=be("ZodISOTime",(e,t)=>{Uq.init(e,t),Po.init(e,t)});function KV(e){return X7(WV,e)}const YV=be("ZodISODuration",(e,t)=>{$q.init(e,t),Po.init(e,t)});function ZV(e){return eV(YV,e)}const QV=(e,t)=>{I_.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>C8(e,o)},flatten:{value:o=>x8(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,Ew,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,Ew,2)}},isEmpty:{get(){return e.issues.length===0}}})},tr=be("ZodError",QV,{Parent:Error}),JV=vv(tr),XV=bv(tr),e9=yv(tr),t9=Sv(tr),o9=R8(tr),a9=D8(tr),n9=O8(tr),r9=M8(tr),i9=N8(tr),s9=I8(tr),l9=L8(tr),c9=B8(tr),Yt=be("ZodType",(e,t)=>(Ht.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:wf(e,"input"),output:wf(e,"output")}}),e.toJSONSchema=DV(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...o)=>e.clone(Bs(t,{checks:[...t.checks??[],...o.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(o,a)=>Di(e,o,a),e.brand=()=>e,e.register=((o,a)=>(o.add(e,a),e)),e.parse=(o,a)=>JV(e,o,a,{callee:e.parse}),e.safeParse=(o,a)=>e9(e,o,a),e.parseAsync=async(o,a)=>XV(e,o,a,{callee:e.parseAsync}),e.safeParseAsync=async(o,a)=>t9(e,o,a),e.spa=e.safeParseAsync,e.encode=(o,a)=>o9(e,o,a),e.decode=(o,a)=>a9(e,o,a),e.encodeAsync=async(o,a)=>n9(e,o,a),e.decodeAsync=async(o,a)=>r9(e,o,a),e.safeEncode=(o,a)=>i9(e,o,a),e.safeDecode=(o,a)=>s9(e,o,a),e.safeEncodeAsync=async(o,a)=>l9(e,o,a),e.safeDecodeAsync=async(o,a)=>c9(e,o,a),e.refine=(o,a)=>e.check(nH(o,a)),e.superRefine=o=>e.check(rH(o)),e.overwrite=o=>e.check(Dd(o)),e.optional=()=>Co(e),e.exactOptional=()=>V9(e),e.nullable=()=>RA(e),e.nullish=()=>Co(RA(e)),e.nonoptional=o=>Z9(e,o),e.array=()=>Be(e),e.or=o=>ro([e,o]),e.and=o=>j_(e,o),e.transform=o=>Rw(e,GN(o)),e.default=o=>W9(e,o),e.prefault=o=>Y9(e,o),e.catch=o=>J9(e,o),e.pipe=o=>Rw(e,o),e.readonly=()=>tH(e),e.describe=o=>{const a=e.clone();return Yu.add(a,{description:o}),a},Object.defineProperty(e,"description",{get(){return Yu.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Yu.get(e);const a=e.clone();return Yu.add(a,o[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=o=>o(e),e)),FN=be("_ZodString",(e,t)=>{L_.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(a,n,i)=>dN(e,a,n);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...a)=>e.check(mV(...a)),e.includes=(...a)=>e.check(fV(...a)),e.startsWith=(...a)=>e.check(vV(...a)),e.endsWith=(...a)=>e.check(bV(...a)),e.min=(...a)=>e.check(vf(...a)),e.max=(...a)=>e.check(lN(...a)),e.length=(...a)=>e.check(cN(...a)),e.nonempty=(...a)=>e.check(vf(1,...a)),e.lowercase=a=>e.check(hV(a)),e.uppercase=a=>e.check(gV(a)),e.trim=()=>e.check(wV()),e.normalize=(...a)=>e.check(SV(...a)),e.toLowerCase=()=>e.check(TV()),e.toUpperCase=()=>e.check(_V()),e.slugify=()=>e.check(xV())}),jN=be("ZodString",(e,t)=>{L_.init(e,t),FN.init(e,t),e.email=o=>e.check(D7(d9,o)),e.url=o=>e.check(sN(zN,o)),e.jwt=o=>e.check(Z7(k9,o)),e.emoji=o=>e.check(L7(p9,o)),e.guid=o=>e.check(_A(PA,o)),e.uuid=o=>e.check(O7(Dh,o)),e.uuidv4=o=>e.check(M7(Dh,o)),e.uuidv6=o=>e.check(N7(Dh,o)),e.uuidv7=o=>e.check(I7(Dh,o)),e.nanoid=o=>e.check(B7(m9,o)),e.guid=o=>e.check(_A(PA,o)),e.cuid=o=>e.check(F7(h9,o)),e.cuid2=o=>e.check(j7(g9,o)),e.ulid=o=>e.check(z7(f9,o)),e.base64=o=>e.check(W7(_9,o)),e.base64url=o=>e.check(K7(x9,o)),e.xid=o=>e.check(U7(v9,o)),e.ksuid=o=>e.check($7(b9,o)),e.ipv4=o=>e.check(q7(y9,o)),e.ipv6=o=>e.check(V7(S9,o)),e.cidrv4=o=>e.check(H7(w9,o)),e.cidrv6=o=>e.check(G7(T9,o)),e.e164=o=>e.check(Y7(C9,o)),e.datetime=o=>e.check(BN(o)),e.date=o=>e.check(GV(o)),e.time=o=>e.check(KV(o)),e.duration=o=>e.check(ZV(o))});function q(e){return A7(jN,e)}const Po=be("ZodStringFormat",(e,t)=>{wo.init(e,t),FN.init(e,t)}),d9=be("ZodEmail",(e,t)=>{Rq.init(e,t),Po.init(e,t)}),PA=be("ZodGUID",(e,t)=>{Pq.init(e,t),Po.init(e,t)}),Dh=be("ZodUUID",(e,t)=>{Aq.init(e,t),Po.init(e,t)}),zN=be("ZodURL",(e,t)=>{Dq.init(e,t),Po.init(e,t)});function u9(e){return sN(zN,e)}const p9=be("ZodEmoji",(e,t)=>{Oq.init(e,t),Po.init(e,t)}),m9=be("ZodNanoID",(e,t)=>{Mq.init(e,t),Po.init(e,t)}),h9=be("ZodCUID",(e,t)=>{Nq.init(e,t),Po.init(e,t)}),g9=be("ZodCUID2",(e,t)=>{Iq.init(e,t),Po.init(e,t)}),f9=be("ZodULID",(e,t)=>{Lq.init(e,t),Po.init(e,t)}),v9=be("ZodXID",(e,t)=>{Bq.init(e,t),Po.init(e,t)}),b9=be("ZodKSUID",(e,t)=>{Fq.init(e,t),Po.init(e,t)}),y9=be("ZodIPv4",(e,t)=>{qq.init(e,t),Po.init(e,t)}),S9=be("ZodIPv6",(e,t)=>{Vq.init(e,t),Po.init(e,t)}),w9=be("ZodCIDRv4",(e,t)=>{Hq.init(e,t),Po.init(e,t)}),T9=be("ZodCIDRv6",(e,t)=>{Gq.init(e,t),Po.init(e,t)}),_9=be("ZodBase64",(e,t)=>{Wq.init(e,t),Po.init(e,t)}),x9=be("ZodBase64URL",(e,t)=>{Yq.init(e,t),Po.init(e,t)}),C9=be("ZodE164",(e,t)=>{Zq.init(e,t),Po.init(e,t)}),k9=be("ZodJWT",(e,t)=>{Jq.init(e,t),Po.init(e,t)}),F_=be("ZodNumber",(e,t)=>{oN.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(a,n,i)=>uN(e,a,n),e.gt=(a,n)=>e.check(CA(a,n)),e.gte=(a,n)=>e.check(IS(a,n)),e.min=(a,n)=>e.check(IS(a,n)),e.lt=(a,n)=>e.check(xA(a,n)),e.lte=(a,n)=>e.check(NS(a,n)),e.max=(a,n)=>e.check(NS(a,n)),e.int=a=>e.check(AA(a)),e.safe=a=>e.check(AA(a)),e.positive=a=>e.check(CA(0,a)),e.nonnegative=a=>e.check(IS(0,a)),e.negative=a=>e.check(xA(0,a)),e.nonpositive=a=>e.check(NS(0,a)),e.multipleOf=(a,n)=>e.check(kA(a,n)),e.step=(a,n)=>e.check(kA(a,n)),e.finite=()=>e;const o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function Mt(e){return tV(F_,e)}const E9=be("ZodNumberFormat",(e,t)=>{Xq.init(e,t),F_.init(e,t)});function AA(e){return aV(E9,e)}const UN=be("ZodBoolean",(e,t)=>{e7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>pN(e,o,a)});function Ut(e){return nV(UN,e)}const P9=be("ZodUndefined",(e,t)=>{t7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>hN(e,o)});function Xge(e){return iV(P9,e)}const A9=be("ZodNull",(e,t)=>{o7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>mN(e,o,a)});function R9(e){return sV(A9,e)}const D9=be("ZodAny",(e,t)=>{a7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>fN()});function O9(){return lV(D9)}const M9=be("ZodUnknown",(e,t)=>{n7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>vN()});function ko(){return cV(M9)}const N9=be("ZodNever",(e,t)=>{r7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>gN(e,o,a)});function I9(e){return dV(N9,e)}const L9=be("ZodArray",(e,t)=>{i7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>_N(e,o,a,n),e.element=t.element,e.min=(o,a)=>e.check(vf(o,a)),e.nonempty=o=>e.check(vf(1,o)),e.max=(o,a)=>e.check(lN(o,a)),e.length=(o,a)=>e.check(cN(o,a)),e.unwrap=()=>e.element});function Be(e,t){return CV(L9,e,t)}const $N=be("ZodObject",(e,t)=>{l7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>xN(e,o,a,n),Dt(e,"shape",()=>t.shape),e.keyof=()=>Eo(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ko()}),e.loose=()=>e.clone({...e._zod.def,catchall:ko()}),e.strict=()=>e.clone({...e._zod.def,catchall:I9()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>y8(e,o),e.safeExtend=o=>S8(e,o),e.merge=o=>w8(e,o),e.pick=o=>v8(e,o),e.omit=o=>b8(e,o),e.partial=(...o)=>T8(WN,e,o[0]),e.required=(...o)=>_8(KN,e,o[0])});function _e(e,t){const o={type:"object",shape:e??{},...Ve(t)};return new $N(o)}function xa(e,t){return new $N({type:"object",shape:e,catchall:ko(),...Ve(t)})}const qN=be("ZodUnion",(e,t)=>{rN.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>CN(e,o,a,n),e.options=t.options});function ro(e,t){return new qN({type:"union",options:e,...Ve(t)})}const B9=be("ZodDiscriminatedUnion",(e,t)=>{qN.init(e,t),c7.init(e,t)});function VN(e,t,o){return new B9({type:"union",options:t,discriminator:e,...Ve(o)})}const F9=be("ZodIntersection",(e,t)=>{d7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>kN(e,o,a,n)});function j_(e,t){return new F9({type:"intersection",left:e,right:t})}const j9=be("ZodTuple",(e,t)=>{u7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>EN(e,o,a,n),e.rest=o=>e.clone({...e._zod.def,rest:o})});function efe(e,t,o){const a=t instanceof Ht,n=a?o:t,i=a?t:null;return new j9({type:"tuple",items:e,rest:i,...Ve(n)})}const HN=be("ZodRecord",(e,t)=>{p7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>PN(e,o,a,n),e.keyType=t.keyType,e.valueType=t.valueType});function vo(e,t,o){return new HN({type:"record",keyType:e,valueType:t,...Ve(o)})}function tfe(e,t,o){const a=Di(e);return a._zod.values=void 0,new HN({type:"record",keyType:a,valueType:t,...Ve(o)})}const Aw=be("ZodEnum",(e,t)=>{m7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(a,n,i)=>bN(e,a,n),e.enum=t.entries,e.options=Object.values(t.entries);const o=new Set(Object.keys(t.entries));e.extract=(a,n)=>{const i={};for(const l of a)if(o.has(l))i[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new Aw({...t,checks:[],...Ve(n),entries:i})},e.exclude=(a,n)=>{const i={...t.entries};for(const l of a)if(o.has(l))delete i[l];else throw new Error(`Key ${l} not found in enum`);return new Aw({...t,checks:[],...Ve(n),entries:i})}});function Eo(e,t){const o=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Aw({type:"enum",entries:o,...Ve(t)})}const z9=be("ZodLiteral",(e,t)=>{h7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>yN(e,o,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Ze(e,t){return new z9({type:"literal",values:Array.isArray(e)?e:[e],...Ve(t)})}const U9=be("ZodFile",(e,t)=>{g7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>SN(e,o,a),e.min=(o,a)=>e.check(pV(o,a)),e.max=(o,a)=>e.check(uV(o,a)),e.mime=(o,a)=>e.check(yV(Array.isArray(o)?o:[o],a))});function ofe(e){return kV(U9,e)}const $9=be("ZodTransform",(e,t)=>{f7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>TN(e,o),e._zod.parse=(o,a)=>{if(a.direction==="backward")throw new UM(e.constructor.name);o.addIssue=i=>{if(typeof i=="string")o.issues.push(_p(i,o.value,t));else{const l=i;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=o.value),l.inst??(l.inst=e),o.issues.push(_p(l))}};const n=t.transform(o.value,o);return n instanceof Promise?n.then(i=>(o.value=i,o)):(o.value=n,o)}});function GN(e){return new $9({type:"transform",transform:e})}const WN=be("ZodOptional",(e,t)=>{iN.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>B_(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function Co(e){return new WN({type:"optional",innerType:e})}const q9=be("ZodExactOptional",(e,t)=>{v7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>B_(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function V9(e){return new q9({type:"optional",innerType:e})}const H9=be("ZodNullable",(e,t)=>{b7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>AN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function RA(e){return new H9({type:"nullable",innerType:e})}const G9=be("ZodDefault",(e,t)=>{y7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>DN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function W9(e,t){return new G9({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():HM(t)}})}const K9=be("ZodPrefault",(e,t)=>{S7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>ON(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function Y9(e,t){return new K9({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():HM(t)}})}const KN=be("ZodNonOptional",(e,t)=>{w7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>RN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function Z9(e,t){return new KN({type:"nonoptional",innerType:e,...Ve(t)})}const Q9=be("ZodCatch",(e,t)=>{T7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>MN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function J9(e,t){return new Q9({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const X9=be("ZodPipe",(e,t)=>{_7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>NN(e,o,a,n),e.in=t.in,e.out=t.out});function Rw(e,t){return new X9({type:"pipe",in:e,out:t})}const eH=be("ZodReadonly",(e,t)=>{x7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>IN(e,o,a,n),e.unwrap=()=>e._zod.def.innerType});function tH(e){return new eH({type:"readonly",innerType:e})}const oH=be("ZodLazy",(e,t)=>{C7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>LN(e,o,a,n),e.unwrap=()=>e._zod.def.getter()});function Gr(e){return new oH({type:"lazy",getter:e})}const z_=be("ZodCustom",(e,t)=>{k7.init(e,t),Yt.init(e,t),e._zod.processJSONSchema=(o,a,n)=>wN(e,o)});function aH(e,t){return EV(z_,e??(()=>!0),t)}function nH(e,t={}){return PV(z_,e,t)}function rH(e){return AV(e)}function afe(e,t={}){const o=new z_({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...Ve(t)});return o._zod.bag.Class=e,o._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:o,path:[...o._zod.def.path??[]]})},o}function U_(e,t){return Rw(GN(e),t)}const iH={custom:"custom"};function Tv(e){return R7(jN,e)}function YN(e){return oV(F_,e)}function Dw(e){return rV(UN,e)}const sH="2025-11-25",nfe=[sH,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],lH="io.modelcontextprotocol/related-task",_v="2.0",ra=aH(e=>e!==null&&(typeof e=="object"||typeof e=="function")),ZN=ro([q(),Mt().int()]),QN=q();xa({ttl:Mt().optional(),pollInterval:Mt().optional()});const cH=_e({ttl:Mt().optional()}),dH=_e({taskId:q()}),$_=xa({progressToken:ZN.optional(),[lH]:dH.optional()}),Dn=_e({_meta:$_.optional()}),$p=Dn.extend({task:cH.optional()}),rfe=e=>$p.safeParse(e).success,ka=_e({method:q(),params:Dn.loose().optional()}),or=_e({_meta:$_.optional()}),ar=_e({method:q(),params:or.loose().optional()}),Ea=xa({_meta:$_.optional()}),xv=ro([q(),Mt().int()]),JN=_e({jsonrpc:Ze(_v),id:xv,...ka.shape}).strict(),ife=e=>JN.safeParse(e).success,XN=_e({jsonrpc:Ze(_v),...ar.shape}).strict(),sfe=e=>XN.safeParse(e).success,q_=_e({jsonrpc:Ze(_v),id:xv,result:Ea}).strict(),lfe=e=>q_.safeParse(e).success;var xp;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(xp||(xp={}));const V_=_e({jsonrpc:Ze(_v),id:xv.optional(),error:_e({code:Mt().int(),message:q(),data:ko().optional()})}).strict(),cfe=e=>V_.safeParse(e).success,dfe=ro([JN,XN,q_,V_]);ro([q_,V_]);const eI=Ea.strict(),uH=or.extend({requestId:xv.optional(),reason:q().optional()}),tI=ar.extend({method:Ze("notifications/cancelled"),params:uH}),pH=_e({src:q(),mimeType:q().optional(),sizes:Be(q()).optional(),theme:Eo(["light","dark"]).optional()}),qp=_e({icons:Be(pH).optional()}),bd=_e({name:q(),title:q().optional()}),oI=bd.extend({...bd.shape,...qp.shape,version:q(),websiteUrl:q().optional(),description:q().optional()}),mH=j_(_e({applyDefaults:Ut().optional()}),vo(q(),ko())),hH=U_(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,j_(_e({form:mH.optional(),url:ra.optional()}),vo(q(),ko()).optional())),gH=xa({list:ra.optional(),cancel:ra.optional(),requests:xa({sampling:xa({createMessage:ra.optional()}).optional(),elicitation:xa({create:ra.optional()}).optional()}).optional()}),fH=xa({list:ra.optional(),cancel:ra.optional(),requests:xa({tools:xa({call:ra.optional()}).optional()}).optional()}),vH=_e({experimental:vo(q(),ra).optional(),sampling:_e({context:ra.optional(),tools:ra.optional()}).optional(),elicitation:hH.optional(),roots:_e({listChanged:Ut().optional()}).optional(),tasks:gH.optional(),extensions:vo(q(),ra).optional()}),bH=Dn.extend({protocolVersion:q(),capabilities:vH,clientInfo:oI}),yH=ka.extend({method:Ze("initialize"),params:bH}),SH=_e({experimental:vo(q(),ra).optional(),logging:ra.optional(),completions:ra.optional(),prompts:_e({listChanged:Ut().optional()}).optional(),resources:_e({subscribe:Ut().optional(),listChanged:Ut().optional()}).optional(),tools:_e({listChanged:Ut().optional()}).optional(),tasks:fH.optional(),extensions:vo(q(),ra).optional()}),wH=Ea.extend({protocolVersion:q(),capabilities:SH,serverInfo:oI,instructions:q().optional()}),aI=ar.extend({method:Ze("notifications/initialized"),params:or.optional()}),ufe=e=>aI.safeParse(e).success,nI=ka.extend({method:Ze("ping"),params:Dn.optional()}),TH=_e({progress:Mt(),total:Co(Mt()),message:Co(q())}),_H=_e({...or.shape,...TH.shape,progressToken:ZN}),rI=ar.extend({method:Ze("notifications/progress"),params:_H}),xH=Dn.extend({cursor:QN.optional()}),Vp=ka.extend({params:xH.optional()}),Hp=Ea.extend({nextCursor:QN.optional()}),CH=Eo(["working","input_required","completed","failed","cancelled"]),Gp=_e({taskId:q(),status:CH,ttl:ro([Mt(),R9()]),createdAt:q(),lastUpdatedAt:q(),pollInterval:Co(Mt()),statusMessage:Co(q())}),iI=Ea.extend({task:Gp}),kH=or.merge(Gp),sI=ar.extend({method:Ze("notifications/tasks/status"),params:kH}),lI=ka.extend({method:Ze("tasks/get"),params:Dn.extend({taskId:q()})}),cI=Ea.merge(Gp),dI=ka.extend({method:Ze("tasks/result"),params:Dn.extend({taskId:q()})});Ea.loose();const uI=Vp.extend({method:Ze("tasks/list")}),pI=Hp.extend({tasks:Be(Gp)}),mI=ka.extend({method:Ze("tasks/cancel"),params:Dn.extend({taskId:q()})}),pfe=Ea.merge(Gp),hI=_e({uri:q(),mimeType:Co(q()),_meta:vo(q(),ko()).optional()}),gI=hI.extend({text:q()}),H_=q().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),fI=hI.extend({blob:H_}),Wp=Eo(["user","assistant"]),Od=_e({audience:Be(Wp).optional(),priority:Mt().min(0).max(1).optional(),lastModified:BN({offset:!0}).optional()}),vI=_e({...bd.shape,...qp.shape,uri:q(),description:Co(q()),mimeType:Co(q()),size:Co(Mt()),annotations:Od.optional(),_meta:Co(xa({}))}),EH=_e({...bd.shape,...qp.shape,uriTemplate:q(),description:Co(q()),mimeType:Co(q()),annotations:Od.optional(),_meta:Co(xa({}))}),PH=Vp.extend({method:Ze("resources/list")}),AH=Hp.extend({resources:Be(vI)}),RH=Vp.extend({method:Ze("resources/templates/list")}),DH=Hp.extend({resourceTemplates:Be(EH)}),G_=Dn.extend({uri:q()}),OH=G_,MH=ka.extend({method:Ze("resources/read"),params:OH}),NH=Ea.extend({contents:Be(ro([gI,fI]))}),IH=ar.extend({method:Ze("notifications/resources/list_changed"),params:or.optional()}),LH=G_,BH=ka.extend({method:Ze("resources/subscribe"),params:LH}),FH=G_,jH=ka.extend({method:Ze("resources/unsubscribe"),params:FH}),zH=or.extend({uri:q()}),UH=ar.extend({method:Ze("notifications/resources/updated"),params:zH}),$H=_e({name:q(),description:Co(q()),required:Co(Ut())}),qH=_e({...bd.shape,...qp.shape,description:Co(q()),arguments:Co(Be($H)),_meta:Co(xa({}))}),VH=Vp.extend({method:Ze("prompts/list")}),HH=Hp.extend({prompts:Be(qH)}),GH=Dn.extend({name:q(),arguments:vo(q(),q()).optional()}),WH=ka.extend({method:Ze("prompts/get"),params:GH}),W_=_e({type:Ze("text"),text:q(),annotations:Od.optional(),_meta:vo(q(),ko()).optional()}),K_=_e({type:Ze("image"),data:H_,mimeType:q(),annotations:Od.optional(),_meta:vo(q(),ko()).optional()}),Y_=_e({type:Ze("audio"),data:H_,mimeType:q(),annotations:Od.optional(),_meta:vo(q(),ko()).optional()}),KH=_e({type:Ze("tool_use"),name:q(),id:q(),input:vo(q(),ko()),_meta:vo(q(),ko()).optional()}),YH=_e({type:Ze("resource"),resource:ro([gI,fI]),annotations:Od.optional(),_meta:vo(q(),ko()).optional()}),ZH=vI.extend({type:Ze("resource_link")}),Z_=ro([W_,K_,Y_,ZH,YH]),QH=_e({role:Wp,content:Z_}),JH=Ea.extend({description:q().optional(),messages:Be(QH)}),XH=ar.extend({method:Ze("notifications/prompts/list_changed"),params:or.optional()}),eG=_e({title:q().optional(),readOnlyHint:Ut().optional(),destructiveHint:Ut().optional(),idempotentHint:Ut().optional(),openWorldHint:Ut().optional()}),tG=_e({taskSupport:Eo(["required","optional","forbidden"]).optional()}),bI=_e({...bd.shape,...qp.shape,description:q().optional(),inputSchema:_e({type:Ze("object"),properties:vo(q(),ra).optional(),required:Be(q()).optional()}).catchall(ko()),outputSchema:_e({type:Ze("object"),properties:vo(q(),ra).optional(),required:Be(q()).optional()}).catchall(ko()).optional(),annotations:eG.optional(),execution:tG.optional(),_meta:vo(q(),ko()).optional()}),oG=Vp.extend({method:Ze("tools/list")}),aG=Hp.extend({tools:Be(bI)}),yI=Ea.extend({content:Be(Z_).default([]),structuredContent:vo(q(),ko()).optional(),isError:Ut().optional()});yI.or(Ea.extend({toolResult:ko()}));const nG=$p.extend({name:q(),arguments:vo(q(),ko()).optional()}),rG=ka.extend({method:Ze("tools/call"),params:nG}),iG=ar.extend({method:Ze("notifications/tools/list_changed"),params:or.optional()}),mfe=_e({autoRefresh:Ut().default(!0),debounceMs:Mt().int().nonnegative().default(300)}),SI=Eo(["debug","info","notice","warning","error","critical","alert","emergency"]),sG=Dn.extend({level:SI}),lG=ka.extend({method:Ze("logging/setLevel"),params:sG}),cG=or.extend({level:SI,logger:q().optional(),data:ko()}),dG=ar.extend({method:Ze("notifications/message"),params:cG}),uG=_e({name:q().optional()}),pG=_e({hints:Be(uG).optional(),costPriority:Mt().min(0).max(1).optional(),speedPriority:Mt().min(0).max(1).optional(),intelligencePriority:Mt().min(0).max(1).optional()}),mG=_e({mode:Eo(["auto","required","none"]).optional()}),hG=_e({type:Ze("tool_result"),toolUseId:q().describe("The unique identifier for the corresponding tool call."),content:Be(Z_).default([]),structuredContent:_e({}).loose().optional(),isError:Ut().optional(),_meta:vo(q(),ko()).optional()}),gG=VN("type",[W_,K_,Y_]),Tf=VN("type",[W_,K_,Y_,KH,hG]),fG=_e({role:Wp,content:ro([Tf,Be(Tf)]),_meta:vo(q(),ko()).optional()}),vG=$p.extend({messages:Be(fG),modelPreferences:pG.optional(),systemPrompt:q().optional(),includeContext:Eo(["none","thisServer","allServers"]).optional(),temperature:Mt().optional(),maxTokens:Mt().int(),stopSequences:Be(q()).optional(),metadata:ra.optional(),tools:Be(bI).optional(),toolChoice:mG.optional()}),bG=ka.extend({method:Ze("sampling/createMessage"),params:vG}),yG=Ea.extend({model:q(),stopReason:Co(Eo(["endTurn","stopSequence","maxTokens"]).or(q())),role:Wp,content:gG}),SG=Ea.extend({model:q(),stopReason:Co(Eo(["endTurn","stopSequence","maxTokens","toolUse"]).or(q())),role:Wp,content:ro([Tf,Be(Tf)])}),wG=_e({type:Ze("boolean"),title:q().optional(),description:q().optional(),default:Ut().optional()}),TG=_e({type:Ze("string"),title:q().optional(),description:q().optional(),minLength:Mt().optional(),maxLength:Mt().optional(),format:Eo(["email","uri","date","date-time"]).optional(),default:q().optional()}),_G=_e({type:Eo(["number","integer"]),title:q().optional(),description:q().optional(),minimum:Mt().optional(),maximum:Mt().optional(),default:Mt().optional()}),xG=_e({type:Ze("string"),title:q().optional(),description:q().optional(),enum:Be(q()),default:q().optional()}),CG=_e({type:Ze("string"),title:q().optional(),description:q().optional(),oneOf:Be(_e({const:q(),title:q()})),default:q().optional()}),kG=_e({type:Ze("string"),title:q().optional(),description:q().optional(),enum:Be(q()),enumNames:Be(q()).optional(),default:q().optional()}),EG=ro([xG,CG]),PG=_e({type:Ze("array"),title:q().optional(),description:q().optional(),minItems:Mt().optional(),maxItems:Mt().optional(),items:_e({type:Ze("string"),enum:Be(q())}),default:Be(q()).optional()}),AG=_e({type:Ze("array"),title:q().optional(),description:q().optional(),minItems:Mt().optional(),maxItems:Mt().optional(),items:_e({anyOf:Be(_e({const:q(),title:q()}))}),default:Be(q()).optional()}),RG=ro([PG,AG]),DG=ro([kG,EG,RG]),OG=ro([DG,wG,TG,_G]),MG=$p.extend({mode:Ze("form").optional(),message:q(),requestedSchema:_e({type:Ze("object"),properties:vo(q(),OG),required:Be(q()).optional()})}),NG=$p.extend({mode:Ze("url"),message:q(),elicitationId:q(),url:q().url()}),IG=ro([MG,NG]),LG=ka.extend({method:Ze("elicitation/create"),params:IG}),BG=or.extend({elicitationId:q()}),FG=ar.extend({method:Ze("notifications/elicitation/complete"),params:BG}),jG=Ea.extend({action:Eo(["accept","decline","cancel"]),content:U_(e=>e===null?void 0:e,vo(q(),ro([q(),Mt(),Ut(),Be(q())])).optional())}),zG=_e({type:Ze("ref/resource"),uri:q()}),UG=_e({type:Ze("ref/prompt"),name:q()}),$G=Dn.extend({ref:ro([UG,zG]),argument:_e({name:q(),value:q()}),context:_e({arguments:vo(q(),q()).optional()}).optional()}),qG=ka.extend({method:Ze("completion/complete"),params:$G}),VG=Ea.extend({completion:xa({values:Be(q()).max(100),total:Co(Mt().int()),hasMore:Co(Ut())})}),HG=_e({uri:q().startsWith("file://"),name:q().optional(),_meta:vo(q(),ko()).optional()}),GG=ka.extend({method:Ze("roots/list"),params:Dn.optional()}),WG=Ea.extend({roots:Be(HG)}),KG=ar.extend({method:Ze("notifications/roots/list_changed"),params:or.optional()});ro([nI,yH,qG,lG,WH,VH,PH,RH,MH,BH,jH,rG,oG,lI,dI,uI,mI]);ro([tI,rI,aI,KG,sI]);ro([eI,yG,SG,jG,WG,cI,pI,iI]);ro([nI,bG,LG,GG,lI,dI,uI,mI]);ro([tI,rI,dG,UH,IH,iG,XH,sI,FG]);ro([eI,wH,VG,JH,HH,AH,DH,NH,yI,aG,cI,pI,iI]);class Cv extends Error{constructor(t,o,a){super(`MCP error ${t}: ${o}`),this.code=t,this.data=a,this.name="McpError"}static fromError(t,o,a){if(t===xp.UrlElicitationRequired&&a){const n=a;if(n.elicitations)return new YG(n.elicitations,o)}return new Cv(t,o,a)}}class YG extends Cv{constructor(t,o=`URL elicitation${t.length>1?"s":""} required`){super(xp.UrlElicitationRequired,o,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}}const hfe={SELF:e=>`${e}_self`,REGISTRY:e=>`${e}_registry`,COMMUNITY_REGISTRY:e=>`${e}_community-registry`,DEV_ASSETS:e=>`${e}_dev-assets`,SITE_DIAGNOSTICS:e=>`site-diagnostics_${e}`,REPORTS:e=>`${e}_commerce-discovery`},gfe="get_my_diagnostic",ffe="self";function Yn(e){return{is(t){return!t||!t.startsWith(e)?null:t.slice(e.length)||null},get(t){return`${e}${t}`}}}function ZG(e){return{id:e.id,organization_id:e.organizationId,title:e.title,description:e.description,icon:e.icon,status:"active",created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:"system",updated_by:void 0,metadata:{instructions:e.instructions??null,...e.ui?{ui:e.ui}:{}},pinned:!1,connections:[]}}const wI=Yn("decopilot_"),QG=wI.is,JG=wI.get,TI=Yn("dev_"),vfe=TI.get,bfe=TI.is,XG="https://assets.decocache.com/decocms/fd07a578-6b1c-40f1-bc05-88a3b981695d/f7fc4ffa81aec04e37ae670c3cd4936643a7b269.png",eW="#6366f1",yfe=`https://api.iconify.design/lucide:file-search.svg?color=${encodeURIComponent(eW)}`;function Sfe(e){return ZG({id:JG(e),organizationId:e,title:"Super Agent",description:"Default agent that aggregates all organization connections",icon:XG,ui:{layout:{defaultMainView:{type:"overview"},chatDefaultOpen:!0}}})}const tW=Yn("brand-context-setup_"),oW=tW.is,aW=Yn("site-diagnostics_"),nW=aW.is,_I=Yn("commerce-discovery_"),rW=_I.is,wfe=_I.get,gl={AUTOMATION_MANAGER:Yn("studio-automation-manager_"),CONNECTION_MANAGER:Yn("studio-connection-manager_"),API_KEY_MANAGER:Yn("studio-api-key-manager_"),STORE_MANAGER:Yn("studio-store-manager_"),BRAND_MANAGER:Yn("studio-brand-manager_"),USAGE_MANAGER:Yn("studio-usage-manager_")},Tfe={AUTOMATION_MANAGER:gl.AUTOMATION_MANAGER.get,CONNECTION_MANAGER:gl.CONNECTION_MANAGER.get,API_KEY_MANAGER:gl.API_KEY_MANAGER.get,STORE_MANAGER:gl.STORE_MANAGER.get,BRAND_MANAGER:gl.BRAND_MANAGER.get,USAGE_MANAGER:gl.USAGE_MANAGER.get};function iW(e){return e?Object.values(gl).some(t=>t.is(e)!==null):!1}const sW=["studio-agent-manager_","studio-task-manager_"],lW=sW.map(Yn);function cW(e){return e?lW.some(t=>t.is(e)!==null):!1}const dW={from({org:e,project:t}){return`${e}/${t}`},parse(e){e.startsWith("/")&&(e=e.slice(1));const[t,o]=e.split("/");if(!t||!o)throw new Error("Invalid locator");return{org:t,project:o}}},Q_=A.createContext(void 0),_fe=()=>A.useContext(Q_),Kp=()=>{const e=A.useContext(Q_);if(!e)throw new Error("useProjectContext must be used within a ProjectContextProvider");return e},xfe=()=>Kp().org,Cfe=e=>{const t=Le.c(10),{children:o,org:a,project:n}=e;let i;t[0]!==a.id||t[1]!==n.id?(i=dW.from({org:a.id,project:n.id}),t[0]=a.id,t[1]=n.id,t[2]=i):i=t[2];const l=i;let c;t[3]!==l||t[4]!==a||t[5]!==n?(c={org:a,project:n,locator:l},t[3]=l,t[4]=a,t[5]=n,t[6]=c):c=t[6];const u=c;let p;return t[7]!==o||t[8]!==u?(p=w.jsx(Q_.Provider,{value:u,children:o}),t[7]=o,t[8]=u,t[9]=p):p=t[9],p};function uW(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}const pW=e=>{switch(e){case"success":return gW;case"info":return vW;case"warning":return fW;case"error":return bW;default:return null}},mW=Array(12).fill(0),hW=({visible:e,className:t})=>X.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},X.createElement("div",{className:"sonner-spinner"},mW.map((o,a)=>X.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),gW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),fW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),vW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),bW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},X.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),yW=X.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},X.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),X.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),SW=()=>{const[e,t]=X.useState(document.hidden);return X.useEffect(()=>{const o=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),e};let Ow=1;class wW{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const o=this.subscribers.indexOf(t);this.subscribers.splice(o,1)}),this.publish=t=>{this.subscribers.forEach(o=>o(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var o;const{message:a,...n}=t,i=typeof t?.id=="number"||((o=t.id)==null?void 0:o.length)>0?t.id:Ow++,l=this.toasts.find(u=>u.id===i),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(u=>u.id===i?(this.publish({...u,...t,id:i,title:a}),{...u,...t,id:i,dismissible:c,title:a}):u):this.addToast({title:a,...n,dismissible:c,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:t,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(a=>a({id:o.id,dismiss:!0}))}),t),this.message=(t,o)=>this.create({...o,message:t}),this.error=(t,o)=>this.create({...o,message:t,type:"error"}),this.success=(t,o)=>this.create({...o,type:"success",message:t}),this.info=(t,o)=>this.create({...o,type:"info",message:t}),this.warning=(t,o)=>this.create({...o,type:"warning",message:t}),this.loading=(t,o)=>this.create({...o,type:"loading",message:t}),this.promise=(t,o)=>{if(!o)return;let a;o.loading!==void 0&&(a=this.create({...o,promise:t,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const n=Promise.resolve(t instanceof Function?t():t);let i=a!==void 0,l;const c=n.then(async p=>{if(l=["resolve",p],X.isValidElement(p))i=!1,this.create({id:a,type:"default",message:p});else if(_W(p)&&!p.ok){i=!1;const m=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,f=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,b=typeof m=="object"&&!X.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:f,...b})}else if(p instanceof Error){i=!1;const m=typeof o.error=="function"?await o.error(p):o.error,f=typeof o.description=="function"?await o.description(p):o.description,b=typeof m=="object"&&!X.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:f,...b})}else if(o.success!==void 0){i=!1;const m=typeof o.success=="function"?await o.success(p):o.success,f=typeof o.description=="function"?await o.description(p):o.description,b=typeof m=="object"&&!X.isValidElement(m)?m:{message:m};this.create({id:a,type:"success",description:f,...b})}}).catch(async p=>{if(l=["reject",p],o.error!==void 0){i=!1;const h=typeof o.error=="function"?await o.error(p):o.error,m=typeof o.description=="function"?await o.description(p):o.description,v=typeof h=="object"&&!X.isValidElement(h)?h:{message:h};this.create({id:a,type:"error",description:m,...v})}}).finally(()=>{i&&(this.dismiss(a),a=void 0),o.finally==null||o.finally.call(o)}),u=()=>new Promise((p,h)=>c.then(()=>l[0]==="reject"?h(l[1]):p(l[1])).catch(h));return typeof a!="string"&&typeof a!="number"?{unwrap:u}:Object.assign(a,{unwrap:u})},this.custom=(t,o)=>{const a=o?.id||Ow++;return this.create({jsx:t(a),id:a,...o}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const sn=new wW,TW=(e,t)=>{const o=t?.id||Ow++;return sn.addToast({title:e,...t,id:o}),o},_W=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",xW=TW,CW=()=>sn.toasts,kW=()=>sn.getActiveToasts(),Vr=Object.assign(xW,{success:sn.success,info:sn.info,warning:sn.warning,error:sn.error,custom:sn.custom,message:sn.message,promise:sn.promise,dismiss:sn.dismiss,loading:sn.loading},{getHistory:CW,getToasts:kW});uW("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Oh(e){return e.label!==void 0}const EW=3,PW="24px",AW="16px",DA=4e3,RW=356,DW=14,OW=45,MW=200;function Or(...e){return e.filter(Boolean).join(" ")}function NW(e){const[t,o]=e.split("-"),a=[];return t&&a.push(t),o&&a.push(o),a}const IW=e=>{var t,o,a,n,i,l,c,u,p;const{invert:h,toast:m,unstyled:f,interacting:v,setHeights:b,visibleToasts:S,heights:x,index:T,toasts:_,expanded:P,removeToast:k,defaultRichColors:E,closeButton:R,style:D,cancelButtonStyle:O,actionButtonStyle:L,className:$="",descriptionClassName:B="",duration:U,position:j,gap:W,expandByDefault:ne,classNames:H,icons:Z,closeButtonAriaLabel:te="Close toast"}=e,[le,Q]=X.useState(null),[N,G]=X.useState(null),[V,I]=X.useState(!1),[z,J]=X.useState(!1),[pe,he]=X.useState(!1),[xe,$e]=X.useState(!1),[Y,ae]=X.useState(!1),[ve,ie]=X.useState(0),[we,ke]=X.useState(0),it=X.useRef(m.duration||U||DA),lt=X.useRef(null),Ge=X.useRef(null),tt=T===0,De=T+1<=S,Re=m.type,He=m.dismissible!==!1,K=m.className||"",oe=m.descriptionClassName||"",se=X.useMemo(()=>x.findIndex(Qe=>Qe.toastId===m.id)||0,[x,m.id]),Ce=X.useMemo(()=>{var Qe;return(Qe=m.closeButton)!=null?Qe:R},[m.closeButton,R]),Pe=X.useMemo(()=>m.duration||U||DA,[m.duration,U]),Ae=X.useRef(0),Ne=X.useRef(0),at=X.useRef(0),nt=X.useRef(null),[St,Pt]=j.split("-"),wt=X.useMemo(()=>x.reduce((Qe,ht,oo)=>oo>=se?Qe:Qe+ht.height,0),[x,se]),qo=SW(),Jr=m.invert||h,nr=Re==="loading";Ne.current=X.useMemo(()=>se*W+wt,[se,wt]),X.useEffect(()=>{it.current=Pe},[Pe]),X.useEffect(()=>{I(!0)},[]),X.useEffect(()=>{const Qe=Ge.current;if(Qe){const ht=Qe.getBoundingClientRect().height;return ke(ht),b(oo=>[{toastId:m.id,height:ht,position:m.position},...oo]),()=>b(oo=>oo.filter(Zt=>Zt.toastId!==m.id))}},[b,m.id]),X.useLayoutEffect(()=>{if(!V)return;const Qe=Ge.current,ht=Qe.style.height;Qe.style.height="auto";const oo=Qe.getBoundingClientRect().height;Qe.style.height=ht,ke(oo),b(Zt=>Zt.find(Bt=>Bt.toastId===m.id)?Zt.map(Bt=>Bt.toastId===m.id?{...Bt,height:oo}:Bt):[{toastId:m.id,height:oo,position:m.position},...Zt])},[V,m.title,m.description,b,m.id,m.jsx,m.action,m.cancel]);const Xe=X.useCallback(()=>{J(!0),ie(Ne.current),b(Qe=>Qe.filter(ht=>ht.toastId!==m.id)),setTimeout(()=>{k(m)},MW)},[m,k,b,Ne]);X.useEffect(()=>{if(m.promise&&Re==="loading"||m.duration===1/0||m.type==="loading")return;let Qe;return P||v||qo?(()=>{if(at.current<Ae.current){const Zt=new Date().getTime()-Ae.current;it.current=it.current-Zt}at.current=new Date().getTime()})():it.current!==1/0&&(Ae.current=new Date().getTime(),Qe=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),Xe()},it.current)),()=>clearTimeout(Qe)},[P,v,m,Re,qo,Xe]),X.useEffect(()=>{m.delete&&(Xe(),m.onDismiss==null||m.onDismiss.call(m,m))},[Xe,m.delete]);function gt(){var Qe;if(Z?.loading){var ht;return X.createElement("div",{className:Or(H?.loader,m==null||(ht=m.classNames)==null?void 0:ht.loader,"sonner-loader"),"data-visible":Re==="loading"},Z.loading)}return X.createElement(hW,{className:Or(H?.loader,m==null||(Qe=m.classNames)==null?void 0:Qe.loader),visible:Re==="loading"})}const At=m.icon||Z?.[Re]||pW(Re);var dt,Lt;return X.createElement("li",{tabIndex:0,ref:Ge,className:Or($,K,H?.toast,m==null||(t=m.classNames)==null?void 0:t.toast,H?.default,H?.[Re],m==null||(o=m.classNames)==null?void 0:o[Re]),"data-sonner-toast":"","data-rich-colors":(dt=m.richColors)!=null?dt:E,"data-styled":!(m.jsx||m.unstyled||f),"data-mounted":V,"data-promise":!!m.promise,"data-swiped":Y,"data-removed":z,"data-visible":De,"data-y-position":St,"data-x-position":Pt,"data-index":T,"data-front":tt,"data-swiping":pe,"data-dismissible":He,"data-type":Re,"data-invert":Jr,"data-swipe-out":xe,"data-swipe-direction":N,"data-expanded":!!(P||ne&&V),"data-testid":m.testId,style:{"--index":T,"--toasts-before":T,"--z-index":_.length-T,"--offset":`${z?ve:Ne.current}px`,"--initial-height":ne?"auto":`${we}px`,...D,...m.style},onDragEnd:()=>{he(!1),Q(null),nt.current=null},onPointerDown:Qe=>{Qe.button!==2&&(nr||!He||(lt.current=new Date,ie(Ne.current),Qe.target.setPointerCapture(Qe.pointerId),Qe.target.tagName!=="BUTTON"&&(he(!0),nt.current={x:Qe.clientX,y:Qe.clientY})))},onPointerUp:()=>{var Qe,ht,oo;if(xe||!He)return;nt.current=null;const Zt=Number(((Qe=Ge.current)==null?void 0:Qe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Aa=Number(((ht=Ge.current)==null?void 0:ht.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Bt=new Date().getTime()-((oo=lt.current)==null?void 0:oo.getTime()),po=le==="x"?Zt:Aa,Nn=Math.abs(po)/Bt;if(Math.abs(po)>=OW||Nn>.11){ie(Ne.current),m.onDismiss==null||m.onDismiss.call(m,m),G(le==="x"?Zt>0?"right":"left":Aa>0?"down":"up"),Xe(),$e(!0);return}else{var ma,Ka;(ma=Ge.current)==null||ma.style.setProperty("--swipe-amount-x","0px"),(Ka=Ge.current)==null||Ka.style.setProperty("--swipe-amount-y","0px")}ae(!1),he(!1),Q(null)},onPointerMove:Qe=>{var ht,oo,Zt;if(!nt.current||!He||((ht=window.getSelection())==null?void 0:ht.toString().length)>0)return;const Bt=Qe.clientY-nt.current.y,po=Qe.clientX-nt.current.x;var Nn;const ma=(Nn=e.swipeDirections)!=null?Nn:NW(j);!le&&(Math.abs(po)>1||Math.abs(Bt)>1)&&Q(Math.abs(po)>Math.abs(Bt)?"x":"y");let Ka={x:0,y:0};const ql=rr=>1/(1.5+Math.abs(rr)/20);if(le==="y"){if(ma.includes("top")||ma.includes("bottom"))if(ma.includes("top")&&Bt<0||ma.includes("bottom")&&Bt>0)Ka.y=Bt;else{const rr=Bt*ql(Bt);Ka.y=Math.abs(rr)<Math.abs(Bt)?rr:Bt}}else if(le==="x"&&(ma.includes("left")||ma.includes("right")))if(ma.includes("left")&&po<0||ma.includes("right")&&po>0)Ka.x=po;else{const rr=po*ql(po);Ka.x=Math.abs(rr)<Math.abs(po)?rr:po}(Math.abs(Ka.x)>0||Math.abs(Ka.y)>0)&&ae(!0),(oo=Ge.current)==null||oo.style.setProperty("--swipe-amount-x",`${Ka.x}px`),(Zt=Ge.current)==null||Zt.style.setProperty("--swipe-amount-y",`${Ka.y}px`)}},Ce&&!m.jsx&&Re!=="loading"?X.createElement("button",{"aria-label":te,"data-disabled":nr,"data-close-button":!0,onClick:nr||!He?()=>{}:()=>{Xe(),m.onDismiss==null||m.onDismiss.call(m,m)},className:Or(H?.closeButton,m==null||(a=m.classNames)==null?void 0:a.closeButton)},(Lt=Z?.close)!=null?Lt:yW):null,(Re||m.icon||m.promise)&&m.icon!==null&&(Z?.[Re]!==null||m.icon)?X.createElement("div",{"data-icon":"",className:Or(H?.icon,m==null||(n=m.classNames)==null?void 0:n.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||gt():null,m.type!=="loading"?At:null):null,X.createElement("div",{"data-content":"",className:Or(H?.content,m==null||(i=m.classNames)==null?void 0:i.content)},X.createElement("div",{"data-title":"",className:Or(H?.title,m==null||(l=m.classNames)==null?void 0:l.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?X.createElement("div",{"data-description":"",className:Or(B,oe,H?.description,m==null||(c=m.classNames)==null?void 0:c.description)},typeof m.description=="function"?m.description():m.description):null),X.isValidElement(m.cancel)?m.cancel:m.cancel&&Oh(m.cancel)?X.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||O,onClick:Qe=>{Oh(m.cancel)&&He&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,Qe),Xe())},className:Or(H?.cancelButton,m==null||(u=m.classNames)==null?void 0:u.cancelButton)},m.cancel.label):null,X.isValidElement(m.action)?m.action:m.action&&Oh(m.action)?X.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||L,onClick:Qe=>{Oh(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,Qe),!Qe.defaultPrevented&&Xe())},className:Or(H?.actionButton,m==null||(p=m.classNames)==null?void 0:p.actionButton)},m.action.label):null)};function OA(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function LW(e,t){const o={};return[e,t].forEach((a,n)=>{const i=n===1,l=i?"--mobile-offset":"--offset",c=i?AW:PW;function u(p){["top","right","bottom","left"].forEach(h=>{o[`${l}-${h}`]=typeof p=="number"?`${p}px`:p})}typeof a=="number"||typeof a=="string"?u(a):typeof a=="object"?["top","right","bottom","left"].forEach(p=>{a[p]===void 0?o[`${l}-${p}`]=c:o[`${l}-${p}`]=typeof a[p]=="number"?`${a[p]}px`:a[p]}):u(c)}),o}const BW=X.forwardRef(function(t,o){const{id:a,invert:n,position:i="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:u,className:p,offset:h,mobileOffset:m,theme:f="light",richColors:v,duration:b,style:S,visibleToasts:x=EW,toastOptions:T,dir:_=OA(),gap:P=DW,icons:k,containerAriaLabel:E="Notifications"}=t,[R,D]=X.useState([]),O=X.useMemo(()=>a?R.filter(V=>V.toasterId===a):R.filter(V=>!V.toasterId),[R,a]),L=X.useMemo(()=>Array.from(new Set([i].concat(O.filter(V=>V.position).map(V=>V.position)))),[O,i]),[$,B]=X.useState([]),[U,j]=X.useState(!1),[W,ne]=X.useState(!1),[H,Z]=X.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),te=X.useRef(null),le=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=X.useRef(null),N=X.useRef(!1),G=X.useCallback(V=>{D(I=>{var z;return(z=I.find(J=>J.id===V.id))!=null&&z.delete||sn.dismiss(V.id),I.filter(({id:J})=>J!==V.id)})},[]);return X.useEffect(()=>sn.subscribe(V=>{if(V.dismiss){requestAnimationFrame(()=>{D(I=>I.map(z=>z.id===V.id?{...z,delete:!0}:z))});return}setTimeout(()=>{SM.flushSync(()=>{D(I=>{const z=I.findIndex(J=>J.id===V.id);return z!==-1?[...I.slice(0,z),{...I[z],...V},...I.slice(z+1)]:[V,...I]})})})}),[R]),X.useEffect(()=>{if(f!=="system"){Z(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z("dark"):Z("light")),typeof window>"u")return;const V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:I})=>{Z(I?"dark":"light")})}catch{V.addListener(({matches:z})=>{try{Z(z?"dark":"light")}catch(J){console.error(J)}})}},[f]),X.useEffect(()=>{R.length<=1&&j(!1)},[R]),X.useEffect(()=>{const V=I=>{var z;if(l.every(he=>I[he]||I.code===he)){var pe;j(!0),(pe=te.current)==null||pe.focus()}I.code==="Escape"&&(document.activeElement===te.current||(z=te.current)!=null&&z.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[l]),X.useEffect(()=>{if(te.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,N.current=!1)}},[te.current]),X.createElement("section",{ref:o,"aria-label":`${E} ${le}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((V,I)=>{var z;const[J,pe]=V.split("-");return O.length?X.createElement("ol",{key:V,dir:_==="auto"?OA():_,tabIndex:-1,ref:te,className:p,"data-sonner-toaster":!0,"data-sonner-theme":H,"data-y-position":J,"data-x-position":pe,style:{"--front-toast-height":`${((z=$[0])==null?void 0:z.height)||0}px`,"--width":`${RW}px`,"--gap":`${P}px`,...S,...LW(h,m)},onBlur:he=>{N.current&&!he.currentTarget.contains(he.relatedTarget)&&(N.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||N.current||(N.current=!0,Q.current=he.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{W||j(!1)},onDragEnd:()=>j(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||ne(!0)},onPointerUp:()=>ne(!1)},O.filter(he=>!he.position&&I===0||he.position===V).map((he,xe)=>{var $e,Y;return X.createElement(IW,{key:he.id,icons:k,index:xe,toast:he,defaultRichColors:v,duration:($e=T?.duration)!=null?$e:b,className:T?.className,descriptionClassName:T?.descriptionClassName,invert:n,visibleToasts:x,closeButton:(Y=T?.closeButton)!=null?Y:u,interacting:W,position:V,style:T?.style,unstyled:T?.unstyled,classNames:T?.classNames,cancelButtonStyle:T?.cancelButtonStyle,actionButtonStyle:T?.actionButtonStyle,closeButtonAriaLabel:T?.closeButtonAriaLabel,removeToast:G,toasts:O.filter(ae=>ae.position==he.position),heights:$.filter(ae=>ae.position==he.position),setHeights:B,expandByDefault:c,gap:P,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),On={registryApp:(e,t)=>["registry-app",e,t],publicConfig:()=>["publicConfig"],appVersionCheck:()=>["appVersionCheck"],organizations:()=>["organizations"],members:e=>[e,"members"],mentionMembers:e=>[e,"mention-members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],myCapabilities:e=>[e,"my-capabilities"],taskBoardItems:e=>[e,"task-board-items"],taskBoardItemPrs:(e,t)=>[e,"task-board-item-prs",t],previewProbe:(e,t)=>[e,"preview-probe",t],taskBoardActivity:(e,t)=>[e,"task-board-activity",t],taskBoardAdminOrgs:e=>[e,"task-board-admin-orgs"],taskBoardAnalytics:(e,t,o,a,n)=>[e,"task-board-analytics",t,o,a,n],threadAnalyticsOrgs:e=>[e,"thread-analytics-orgs"],threadAnalytics:(e,t,o,a)=>[e,"thread-analytics",t,o,a],notifications:e=>[e,"notifications"],notificationSubscribers:(e,t)=>[e,"notification-subscribers",t],taskBoardComments:(e,t)=>[e,"task-board-comments",t],report:(e,t)=>["report",e,t??""],reportAll:e=>["report",e],reportsConnection:(e,t)=>["reports","connection",e,t],reportsDiagnostic:(e,t)=>["reports","diagnostic",e,t],reportsVirtualMcp:(e,t)=>["reports","virtual-mcp",e,t],reportsCompanionSchema:(e,t)=>["reports","companion-schema",e,t],reportsCompanionConnections:(e,t)=>["reports","companion-connections",e,t],reportsCompanionConnectionsPrefix:e=>["reports","companion-connections",e],reportsCompanionRegistry:(e,t)=>["reports","companion-registry",e,t],reportsCompanionOAuthStatus:(e,t)=>["reports","companion-oauth-status",e,t],reportsCompanionGaProperties:(e,t)=>["reports","companion-ga-properties",e,t],reportsCompanionGscSites:(e,t)=>["reports","companion-gsc-sites",e,t],reportsCompanionGithubRepos:(e,t,o)=>["reports","companion-github-repos",e,t,o],reportsCompanionGithubSelected:(e,t)=>["reports","companion-github-selected",e,t],reportsConnectionStatus:(e,t)=>["reports","connection-status",e,t],connectionActivity:(e,t,o)=>["monitoring","activity",e,t,o],connectionActivityErrors:(e,t,o)=>["monitoring","activity","errors",e,t,o],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpClient:(e,t,o,a)=>["mcp","client",e,t,o,a],mcpToolsList:e=>["mcp","client",e,"tools"],mcpResourcesList:e=>["mcp","client",e,"resources"],mcpPromptsList:e=>["mcp","client",e,"prompts"],mcpReadResource:(e,t)=>["mcp","client",e,"resource",t],mcpUiResourceHtml:(e,t,o)=>["mcp","ui-resource-html",e,t,o],mcpToolCall:(e,t,o)=>["mcp","client",e,"tool-call",t,o],mcpClientPrefix:()=>["mcp","client"],agentEntryThreads:(e,t,o)=>["agent-entry-threads",e,t,o],virtualMcpLastUsed:(e,t)=>["virtual-mcp","last-used",e,t],optimisticProjectSidebarViews:(e,t)=>["virtual-mcp","optimistic-sidebar-views",e,t],githubPrState:(e,t,o,a,n)=>["github-pr-state",e,t,o,a,n],githubLastPublishedPr:(e,t,o,a,n)=>["github-last-published-pr",e,t,o,a,n],githubOpenPrs:(e,t,o,a)=>["github-open-prs",e,t,o,a],githubBranchSearch:(e,t,o,a,n,i)=>["github-branch-search",e,t,o,a,n,i],organizationSettings:e=>["organization-settings",e],infraBillingSites:e=>["infra-billing-sites",e],orgHasSite:e=>["org-has-site",e],infraBilling:(e,t,o)=>["infra-billing",e,t,o],userModelPreferences:e=>["user-model-preferences",e],projectSidebar:e=>["project-sidebar",e],apiKeysList:e=>["api-keys",e],activeOrganization:e=>["activeOrganization",e],orgAccessStatus:e=>["org-access-status",e],homeNextActions:e=>["home-next-actions",e],projectSearch:(e,t)=>["project-search",e,t],toolCall:(e,t,o)=>["tool-call",e,t,o],collection:(e,t,o)=>[e,t,"collection",o],collectionItem:(e,t,o,a,n)=>[e,t,o,"collection",a,n],collectionList:(e,t,o,a,n)=>[e,t,o,"collection",a,"list",n],collectionListInfinite:(e,t,o,a,n)=>[e,t,o,"collection",a,"list-infinite",n],monitoringStatsToolCalls:(e,t)=>["MONITORING_STATS",e,"tool-calls",t],monitoringStatsLlm:(e,t)=>["MONITORING_STATS",e,"llm",t],monitoringHeatmap:(e,t)=>["MONITORING_HEATMAP",e,t],monitoringThreadUsage:(e,t)=>["MONITORING_THREAD_USAGE",e,t],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringLogDetail:e=>["monitoring","log-detail",e],ensureTask:(e,t)=>["ensure-task",e,t],viewedThreadMetadataRefresh:(e,t)=>["viewed-thread-metadata-refresh",e,t],globalSearch:(e,t,o,a)=>["global-search",e,t,o,a?[...a].sort():null],threadsInfinite:(e,t)=>["threads","list-infinite",e,t],threadMessages:(e,t)=>["threads","messages",e,t],threadOutputs:e=>["thread-outputs",e],fileText:e=>["file-text",e],csvThumb:e=>["csv-thumb",e],toolDefinitionLookup:(e,t,o)=>["virtual-mcp",t,e??"default","tools","lookup",o],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,o)=>[...e,t,o],user:e=>["user",e],tags:e=>[e,"tags"],experiments:(e,t)=>[e,"experiments",t],experimentResults:(e,t,o)=>[e,"experiments",t,o,"results"],memberTags:(e,t)=>[e,"member-tags",t],taskBoardPrompts:e=>["task-board-prompts",e],taskBoardColumnAutomations:e=>["task-board-column-automations",e],automationsAll:e=>["automations",e],automations:(e,t)=>["automations",e,t??null],automation:(e,t)=>["automation",e,t],automationRuns:(e,t,o)=>["automation-runs",e,t,...[...o??[]].sort()],automationRunStats:(e,t,o)=>["automation-run-stats",e,t,o],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t],aiProviders:e=>["ai-providers",e],aiProviderModels:(e,t)=>["ai-provider-models",e,t],aiProviderKeys:e=>["ai-provider-keys",e],claudeSubscription:e=>["claude-subscription",e],aiProviderKeyPreview:e=>["ai-provider-key-preview",e],secrets:e=>["secrets",e],fileConfigs:e=>["file-configs",e],orgFsVolume:(e,t)=>["org-fs",e,t],orgFsList:(e,t,o)=>["org-fs",e,t,"list",o],orgFsUsage:(e,t)=>["org-fs",e,t,"usage"],orgFsStat:(e,t,o)=>["org-fs",e,t,"stat",o],orgFsText:(e,t,o,a)=>["org-fs",e,t,"text",o,a],orgFsPublicSets:e=>["org-fs-public-sets",e],userAvatars:()=>["user-avatars"],orgRepoSyncs:e=>["org-repo-syncs",e],gitProviderCapabilities:e=>["git-provider-capabilities",e],githubConnectFlow:(e,t)=>["github-connect-flow",e,t],githubConnectRepositories:(e,t,o,a)=>["github-connect-repositories",e,t,o,a],gitAccounts:e=>["git-accounts",e],repositories:(e,t)=>t?["repositories",e,t]:["repositories",e],providerRepoSearch:(e,t,o)=>["provider-repo-search-pages",e,t,o],jiraIntegration:e=>["jira-integration",e],jiraBoards:e=>["jira-boards",e],jiraBoardColumns:(e,t)=>["jira-board-columns",e,t],jiraAutomations:e=>["jira-automations",e],orgFsRecent:e=>["org-fs-recent",e],orgFsSearchRoot:e=>["org-fs-search",e],orgFsSearch:(e,t,o,a)=>["org-fs-search",e,t,o,a],orgFsSkills:e=>["org-fs-skills",e],slashSkills:e=>["slash-skills",e],filePickerObjects:(e,t,o,a)=>["file-picker-objects",e,t,o??"",a??!1],filePickerObjectsByConfig:(e,t)=>["file-picker-objects",e,t],aiPlanEntitlements:e=>["ai-plan-entitlements",e],aiPlanCatalog:e=>["ai-plan-catalog",e],checkoutReturnPoll:e=>["checkout-return-poll",e],aiPlanPrices:()=>["ai-plan-prices"],orgBillingAccount:e=>["org-billing-account",e],aiProviderCredits:(e,t)=>["ai-provider-credits",e,t],orgSsoConfig:e=>["org-sso-config",e],orgSsoStatus:e=>["org-sso-status",e],orgNotice:e=>["org-notice",e],storeDiscovery:(e,t)=>["store-discovery",e,t],organizationDomains:e=>["organization-domains",e],organizationJoinRequests:e=>["organization-join-requests",e],domainLookup:e=>["domain-lookup",e],deploymentAdminMe:()=>["deployment-admin","me"],deploymentAdminUsers:e=>["deployment-admin","users",e],deploymentAdminOrgs:e=>["deployment-admin","orgs",e],deploymentAdminOrgsList:()=>["deployment-admin","orgs"],deploymentAdminPrompts:()=>["deployment-admin","prompts"],deploymentAdminOrgFlags:e=>["deployment-admin","orgs",e,"flags"],deploymentAdminOrgNotice:e=>["deployment-admin","orgs",e,"notice"],deploymentAdminOrgSites:e=>["deployment-admin","orgs",e,"sites"],deploymentAdminOrgProjects:e=>["deployment-admin","orgs",e,"projects"],defaultBrand:e=>["brand-context",e,"default"],decoSites:e=>["deco-sites",e],decoApps:()=>["deco-apps"],hostingAccess:(e,t)=>["hosting",e,t,"access"],hostingDeployments:(e,t)=>["hosting",e,t,"deployments"],hostingDeploymentHistory:(e,t)=>["hosting",e,t,"deployment-history"],hostingBuildLogs:(e,t,o,a)=>["hosting",e,t,"build-logs",o,a],hostingEnv:(e,t)=>["hosting",e,t,"env"],hostingRedirects:(e,t)=>["hosting",e,t,"redirects"],hostingDomains:(e,t)=>["hosting",e,t,"domains"],hostingSecrets:(e,t)=>["hosting",e,t,"secrets"],e2eRuns:(e,t)=>["hosting",e,t,"e2e-runs"],e2eChecks:(e,t)=>["hosting",e,t,"e2e-checks"],e2eTypes:(e,t)=>["hosting",e,t,"e2e-types"],e2eRun:(e,t,o)=>["hosting",e,t,"e2e-run",o],analyticsStatus:(e,t)=>["hosting",e,t,"analytics-status"],analyticsData:(e,t,o,a)=>["hosting",e,t,"analytics-data",o,a],cdnData:(e,t,o)=>["monitor",e,"cdn-data",t,o],editorResolve:e=>["editor-resolve",e],webSearchBlob:e=>["web-search-blob",e],decofile:e=>["decofile",e],decofileDraft:e=>["decofile-draft",e],liveMeta:(...e)=>["live-meta",...e],sandboxInvoke:(e,t)=>["sandbox-invoke",e,t],sandboxRepoDir:(e,t,o,a)=>["sandbox-repo-dir",e,t,o,a],sandboxSprite:e=>["sandbox-sprite",e],localAgentCapabilities:()=>["local-agent-capabilities"],desktopAuthStatus:()=>["desktop","auth-status"]};function kfe(e,t){e.invalidateQueries({predicate:o=>{const a=o.queryKey;return(!t||a[1]===t)&&a[3]==="collection"&&a[4]==="VIRTUAL_MCP"}})}const xI={itemCreatedSuccessfully:"Item created successfully",itemUpdatedSuccessfully:"Item updated successfully",itemDeletedSuccessfully:"Item deleted successfully",createItemFailed:"Failed to create item: {error}",updateItemFailed:"Failed to update item: {error}",deleteItemFailed:"Failed to delete item: {error}"};function FW(e){Object.assign(xI,e)}function rd(e,t){const o=xI[e];return typeof o=="function"?o(t??{}):typeof o=="string"&&t?o.replace(/\{(\w+)\}/g,(a,n)=>String(t[n]??"")):o??e}function jW(e,t,o){const a=[];if(e?.trim()){const n=e.trim(),i=o.map(l=>({field:[String(l)],operator:"contains",value:n}));i.length===1&&i[0]?a.push(i[0]):i.length>1&&a.push({operator:"or",conditions:i})}if(t&&t.length>0)for(const n of t)a.push({field:[n.column],operator:"eq",value:n.value});if(a.length!==0)return a.length===1?a[0]:{operator:"and",conditions:a}}function zW(e,t,o){const a=e??o,n=t??"desc";return[{field:[String(a)],direction:n}]}function Cl(e){if(!e||typeof e!="object")throw new Error("Invalid result");if("isError"in e&&e.isError)throw new Error("content"in e&&Array.isArray(e.content)&&e.content[0]?.type==="text"?e.content[0].text:"Unknown error");if("structuredContent"in e)return e.structuredContent;throw new Error("No structured content found")}function UW(e,t,o,a){const n=t.toUpperCase(),i=`COLLECTION_${n}_GET`;return{queryKey:On.collectionItem(a,e,"",n,o??""),queryFn:async()=>{if(!o||!a)return{item:null};const l=await a.callTool({name:i,arguments:{id:o}});return Cl(l)},staleTime:6e4}}function Efe(e,t,o,a){const n=Le.c(5);let i;n[0]!==a||n[1]!==t||n[2]!==o||n[3]!==e?(i=UW(e,t,o,a),n[0]=a,n[1]=t,n[2]=o,n[3]=e,n[4]=i):i=n[4];const{data:l}=Ll(i);return l?.item??null}const $W={structuredContent:{items:[]},isError:!1};function CI(e,t,o,a={}){const{searchTerm:n,filters:i,sortKey:l,sortDirection:c,searchFields:u=["title","description"],defaultSortKey:p="updated_at",pageSize:h=100,additionalToolArgs:m}=a,f=t.toUpperCase(),v=`COLLECTION_${f}_LIST`,b=jW(n,i,u),S=zW(l,c,p),x={...b&&{where:b},...S&&{orderBy:S},limit:h,offset:0,...m},T=JSON.stringify(x);return{queryKey:On.collectionList(o,e,"",f,T),queryFn:async()=>{if(!o)return $W;const P=await o.callTool({name:v,arguments:x});return Cl(P),P},staleTime:3e4,retry:!1,select:P=>Cl(P??{})?.items??[]}}function Pfe(e,t,o,a={}){return{...CI(e,t,o,a),select:i=>{const l=Cl(i??{});return{items:l?.items??[],totalCount:l?.totalCount,hasMore:l?.hasMore}}}}function Afe(e,t,o,a){const n=Le.c(7);let i;n[0]!==a?(i=a===void 0?{}:a,n[0]=a,n[1]=i):i=n[1];const l=i;let c;n[2]!==o||n[3]!==t||n[4]!==l||n[5]!==e?(c=CI(e,t,o,l),n[2]=o,n[3]=t,n[4]=l,n[5]=e,n[6]=c):c=n[6];const{data:u}=Ll(c);return u}function Rfe(e,t,o){const a=Le.c(34),n=hv();let i;a[0]!==t?(i=t.toUpperCase(),a[0]=t,a[1]=i):i=a[1];const l=i,c=`COLLECTION_${l}_CREATE`,u=`COLLECTION_${l}_UPDATE`,p=`COLLECTION_${l}_DELETE`;let h;a[2]!==n||a[3]!==e||a[4]!==l?(h=()=>{n.invalidateQueries({predicate:L=>{const $=L.queryKey;return $[1]===e&&$[3]==="collection"&&$[4]===l}})},a[2]=n,a[3]=e,a[4]=l,a[5]=h):h=a[5];const m=h;let f;a[6]!==o||a[7]!==c?(f=async L=>{const $=await o.callTool({name:c,arguments:{data:L}});if($.isError)throw new Error(Array.isArray($.content)?$.content[0]?.text:String($.content));return Cl($).item},a[6]=o,a[7]=c,a[8]=f):f=a[8];let v;a[9]!==m?(v=()=>{m(),Vr.success(rd("itemCreatedSuccessfully"))},a[9]=m,a[10]=v):v=a[10];let b;a[11]!==f||a[12]!==v?(b={mutationFn:f,onSuccess:v,onError:HW},a[11]=f,a[12]=v,a[13]=b):b=a[13];const S=sp(b);let x;a[14]!==o||a[15]!==u?(x=async L=>{const{id:$,data:B}=L,U=await o.callTool({name:u,arguments:{id:$,data:B}});return Cl(U).item},a[14]=o,a[15]=u,a[16]=x):x=a[16];let T;a[17]!==m?(T=()=>{m(),Vr.success(rd("itemUpdatedSuccessfully"))},a[17]=m,a[18]=T):T=a[18];let _;a[19]!==x||a[20]!==T?(_={mutationFn:x,onSuccess:T,onError:VW},a[19]=x,a[20]=T,a[21]=_):_=a[21];const P=sp(_);let k;a[22]!==o||a[23]!==p?(k=async L=>{const $=await o.callTool({name:p,arguments:{id:L}});return Cl($).item.id},a[22]=o,a[23]=p,a[24]=k):k=a[24];let E;a[25]!==m?(E=()=>{m(),Vr.success(rd("itemDeletedSuccessfully"))},a[25]=m,a[26]=E):E=a[26];let R;a[27]!==k||a[28]!==E?(R={mutationFn:k,onSuccess:E,onError:qW},a[27]=k,a[28]=E,a[29]=R):R=a[29];const D=sp(R);let O;return a[30]!==S||a[31]!==D||a[32]!==P?(O={create:S,update:P,delete:D},a[30]=S,a[31]=D,a[32]=P,a[33]=O):O=a[33],O}function qW(e){const t=e instanceof Error?e.message:String(e);Vr.error(rd("deleteItemFailed",{error:t}))}function VW(e){const t=e instanceof Error?e.message:String(e);Vr.error(rd("updateItemFailed",{error:t}))}function HW(e){const t=e instanceof Error?e.message:String(e);Vr.error(rd("createItemFailed",{error:t}))}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var Mh={exports:{}},LS={},vi={},rl={},BS={},FS={},jS={},MA;function _f(){return MA||(MA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class o extends t{constructor(_){if(super(),!e.IDENTIFIER.test(_))throw new Error("CodeGen: name must be a valid identifier");this.str=_}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=o;class a extends t{constructor(_){super(),this._items=typeof _=="string"?[_]:_}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const _=this._items[0];return _===""||_==='""'}get str(){var _;return(_=this._str)!==null&&_!==void 0?_:this._str=this._items.reduce((P,k)=>`${P}${k}`,"")}get names(){var _;return(_=this._names)!==null&&_!==void 0?_:this._names=this._items.reduce((P,k)=>(k instanceof o&&(P[k.str]=(P[k.str]||0)+1),P),{})}}e._Code=a,e.nil=new a("");function n(T,..._){const P=[T[0]];let k=0;for(;k<_.length;)c(P,_[k]),P.push(T[++k]);return new a(P)}e._=n;const i=new a("+");function l(T,..._){const P=[v(T[0])];let k=0;for(;k<_.length;)P.push(i),c(P,_[k]),P.push(i,v(T[++k]));return u(P),new a(P)}e.str=l;function c(T,_){_ instanceof a?T.push(..._._items):_ instanceof o?T.push(_):T.push(m(_))}e.addCodeArg=c;function u(T){let _=1;for(;_<T.length-1;){if(T[_]===i){const P=p(T[_-1],T[_+1]);if(P!==void 0){T.splice(_-1,3,P);continue}T[_++]="+"}_++}}function p(T,_){if(_==='""')return T;if(T==='""')return _;if(typeof T=="string")return _ instanceof o||T[T.length-1]!=='"'?void 0:typeof _!="string"?`${T.slice(0,-1)}${_}"`:_[0]==='"'?T.slice(0,-1)+_.slice(1):void 0;if(typeof _=="string"&&_[0]==='"'&&!(T instanceof o))return`"${T}${_.slice(1)}`}function h(T,_){return _.emptyStr()?T:T.emptyStr()?_:l`${T}${_}`}e.strConcat=h;function m(T){return typeof T=="number"||typeof T=="boolean"||T===null?T:v(Array.isArray(T)?T.join(","):T)}function f(T){return new a(v(T))}e.stringify=f;function v(T){return JSON.stringify(T).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=v;function b(T){return typeof T=="string"&&e.IDENTIFIER.test(T)?new a(`.${T}`):n`[${T}]`}e.getProperty=b;function S(T){if(typeof T=="string"&&e.IDENTIFIER.test(T))return new a(`${T}`);throw new Error(`CodeGen: invalid export name: ${T}, use explicit $id name mapping`)}e.getEsmExportName=S;function x(T){return new a(T.toString())}e.regexpCode=x})(jS)),jS}var zS={},NA;function IA(){return NA||(NA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=_f();class o extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var a;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(a||(e.UsedValueState=a={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class n{constructor({prefixes:p,parent:h}={}){this._names={},this._prefixes=p,this._parent=h}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const h=this._names[p]||this._nameGroup(p);return`${p}${h.index++}`}_nameGroup(p){var h,m;if(!((m=(h=this._parent)===null||h===void 0?void 0:h._prefixes)===null||m===void 0)&&m.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=n;class i extends t.Name{constructor(p,h){super(h),this.prefix=p}setValue(p,{property:h,itemIndex:m}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(h)}[${m}]`}}e.ValueScopeName=i;const l=(0,t._)`\n`;class c extends n{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?l:t.nil}}get(){return this._scope}name(p){return new i(p,this._newName(p))}value(p,h){var m;if(h.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(p),{prefix:v}=f,b=(m=h.key)!==null&&m!==void 0?m:h.ref;let S=this._values[v];if(S){const _=S.get(b);if(_)return _}else S=this._values[v]=new Map;S.set(b,f);const x=this._scope[v]||(this._scope[v]=[]),T=x.length;return x[T]=h.ref,f.setValue(h,{property:v,itemIndex:T}),f}getValue(p,h){const m=this._values[p];if(m)return m.get(h)}scopeRefs(p,h=this._values){return this._reduceValues(h,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${p}${m.scopePath}`})}scopeCode(p=this._values,h,m){return this._reduceValues(p,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},h,m)}_reduceValues(p,h,m={},f){let v=t.nil;for(const b in p){const S=p[b];if(!S)continue;const x=m[b]=m[b]||new Map;S.forEach(T=>{if(x.has(T))return;x.set(T,a.Started);let _=h(T);if(_){const P=this.opts.es5?e.varKinds.var:e.varKinds.const;v=(0,t._)`${v}${P} ${T} = ${_};${this.opts._n}`}else if(_=f?.(T))v=(0,t._)`${v}${_}${this.opts._n}`;else throw new o(T);x.set(T,a.Completed)})}return v}}e.ValueScope=c})(zS)),zS}var LA;function bt(){return LA||(LA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=_f(),o=IA();var a=_f();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var n=IA();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class i{optimizeNodes(){return this}optimizeNames(I,z){return this}}class l extends i{constructor(I,z,J){super(),this.varKind=I,this.name=z,this.rhs=J}render({es5:I,_n:z}){const J=I?o.varKinds.var:this.varKind,pe=this.rhs===void 0?"":` = ${this.rhs}`;return`${J} ${this.name}${pe};`+z}optimizeNames(I,z){if(I[this.name.str])return this.rhs&&(this.rhs=W(this.rhs,I,z)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends i{constructor(I,z,J){super(),this.lhs=I,this.rhs=z,this.sideEffects=J}render({_n:I}){return`${this.lhs} = ${this.rhs};`+I}optimizeNames(I,z){if(!(this.lhs instanceof t.Name&&!I[this.lhs.str]&&!this.sideEffects))return this.rhs=W(this.rhs,I,z),this}get names(){const I=this.lhs instanceof t.Name?{}:{...this.lhs.names};return j(I,this.rhs)}}class u extends c{constructor(I,z,J,pe){super(I,J,pe),this.op=z}render({_n:I}){return`${this.lhs} ${this.op}= ${this.rhs};`+I}}class p extends i{constructor(I){super(),this.label=I,this.names={}}render({_n:I}){return`${this.label}:`+I}}class h extends i{constructor(I){super(),this.label=I,this.names={}}render({_n:I}){return`break${this.label?` ${this.label}`:""};`+I}}class m extends i{constructor(I){super(),this.error=I}render({_n:I}){return`throw ${this.error};`+I}get names(){return this.error.names}}class f extends i{constructor(I){super(),this.code=I}render({_n:I}){return`${this.code};`+I}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(I,z){return this.code=W(this.code,I,z),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class v extends i{constructor(I=[]){super(),this.nodes=I}render(I){return this.nodes.reduce((z,J)=>z+J.render(I),"")}optimizeNodes(){const{nodes:I}=this;let z=I.length;for(;z--;){const J=I[z].optimizeNodes();Array.isArray(J)?I.splice(z,1,...J):J?I[z]=J:I.splice(z,1)}return I.length>0?this:void 0}optimizeNames(I,z){const{nodes:J}=this;let pe=J.length;for(;pe--;){const he=J[pe];he.optimizeNames(I,z)||(ne(I,he.names),J.splice(pe,1))}return J.length>0?this:void 0}get names(){return this.nodes.reduce((I,z)=>U(I,z.names),{})}}class b extends v{render(I){return"{"+I._n+super.render(I)+"}"+I._n}}class S extends v{}class x extends b{}x.kind="else";class T extends b{constructor(I,z){super(z),this.condition=I}render(I){let z=`if(${this.condition})`+super.render(I);return this.else&&(z+="else "+this.else.render(I)),z}optimizeNodes(){super.optimizeNodes();const I=this.condition;if(I===!0)return this.nodes;let z=this.else;if(z){const J=z.optimizeNodes();z=this.else=Array.isArray(J)?new x(J):J}if(z)return I===!1?z instanceof T?z:z.nodes:this.nodes.length?this:new T(H(I),z instanceof T?[z]:z.nodes);if(!(I===!1||!this.nodes.length))return this}optimizeNames(I,z){var J;if(this.else=(J=this.else)===null||J===void 0?void 0:J.optimizeNames(I,z),!!(super.optimizeNames(I,z)||this.else))return this.condition=W(this.condition,I,z),this}get names(){const I=super.names;return j(I,this.condition),this.else&&U(I,this.else.names),I}}T.kind="if";class _ extends b{}_.kind="for";class P extends _{constructor(I){super(),this.iteration=I}render(I){return`for(${this.iteration})`+super.render(I)}optimizeNames(I,z){if(super.optimizeNames(I,z))return this.iteration=W(this.iteration,I,z),this}get names(){return U(super.names,this.iteration.names)}}class k extends _{constructor(I,z,J,pe){super(),this.varKind=I,this.name=z,this.from=J,this.to=pe}render(I){const z=I.es5?o.varKinds.var:this.varKind,{name:J,from:pe,to:he}=this;return`for(${z} ${J}=${pe}; ${J}<${he}; ${J}++)`+super.render(I)}get names(){const I=j(super.names,this.from);return j(I,this.to)}}class E extends _{constructor(I,z,J,pe){super(),this.loop=I,this.varKind=z,this.name=J,this.iterable=pe}render(I){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(I)}optimizeNames(I,z){if(super.optimizeNames(I,z))return this.iterable=W(this.iterable,I,z),this}get names(){return U(super.names,this.iterable.names)}}class R extends b{constructor(I,z,J){super(),this.name=I,this.args=z,this.async=J}render(I){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(I)}}R.kind="func";class D extends v{render(I){return"return "+super.render(I)}}D.kind="return";class O extends b{render(I){let z="try"+super.render(I);return this.catch&&(z+=this.catch.render(I)),this.finally&&(z+=this.finally.render(I)),z}optimizeNodes(){var I,z;return super.optimizeNodes(),(I=this.catch)===null||I===void 0||I.optimizeNodes(),(z=this.finally)===null||z===void 0||z.optimizeNodes(),this}optimizeNames(I,z){var J,pe;return super.optimizeNames(I,z),(J=this.catch)===null||J===void 0||J.optimizeNames(I,z),(pe=this.finally)===null||pe===void 0||pe.optimizeNames(I,z),this}get names(){const I=super.names;return this.catch&&U(I,this.catch.names),this.finally&&U(I,this.finally.names),I}}class L extends b{constructor(I){super(),this.error=I}render(I){return`catch(${this.error})`+super.render(I)}}L.kind="catch";class $ extends b{render(I){return"finally"+super.render(I)}}$.kind="finally";class B{constructor(I,z={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...z,_n:z.lines?`
|
|
49
49
|
`:""},this._extScope=I,this._scope=new o.Scope({parent:I}),this._nodes=[new S]}toString(){return this._root.render(this.opts)}name(I){return this._scope.name(I)}scopeName(I){return this._extScope.name(I)}scopeValue(I,z){const J=this._extScope.value(I,z);return(this._values[J.prefix]||(this._values[J.prefix]=new Set)).add(J),J}getScopeValue(I,z){return this._extScope.getValue(I,z)}scopeRefs(I){return this._extScope.scopeRefs(I,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(I,z,J,pe){const he=this._scope.toName(z);return J!==void 0&&pe&&(this._constants[he.str]=J),this._leafNode(new l(I,he,J)),he}const(I,z,J){return this._def(o.varKinds.const,I,z,J)}let(I,z,J){return this._def(o.varKinds.let,I,z,J)}var(I,z,J){return this._def(o.varKinds.var,I,z,J)}assign(I,z,J){return this._leafNode(new c(I,z,J))}add(I,z){return this._leafNode(new u(I,e.operators.ADD,z))}code(I){return typeof I=="function"?I():I!==t.nil&&this._leafNode(new f(I)),this}object(...I){const z=["{"];for(const[J,pe]of I)z.length>1&&z.push(","),z.push(J),(J!==pe||this.opts.es5)&&(z.push(":"),(0,t.addCodeArg)(z,pe));return z.push("}"),new t._Code(z)}if(I,z,J){if(this._blockNode(new T(I)),z&&J)this.code(z).else().code(J).endIf();else if(z)this.code(z).endIf();else if(J)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(I){return this._elseNode(new T(I))}else(){return this._elseNode(new x)}endIf(){return this._endBlockNode(T,x)}_for(I,z){return this._blockNode(I),z&&this.code(z).endFor(),this}for(I,z){return this._for(new P(I),z)}forRange(I,z,J,pe,he=this.opts.es5?o.varKinds.var:o.varKinds.let){const xe=this._scope.toName(I);return this._for(new k(he,xe,z,J),()=>pe(xe))}forOf(I,z,J,pe=o.varKinds.const){const he=this._scope.toName(I);if(this.opts.es5){const xe=z instanceof t.Name?z:this.var("_arr",z);return this.forRange("_i",0,(0,t._)`${xe}.length`,$e=>{this.var(he,(0,t._)`${xe}[${$e}]`),J(he)})}return this._for(new E("of",pe,he,z),()=>J(he))}forIn(I,z,J,pe=this.opts.es5?o.varKinds.var:o.varKinds.const){if(this.opts.ownProperties)return this.forOf(I,(0,t._)`Object.keys(${z})`,J);const he=this._scope.toName(I);return this._for(new E("in",pe,he,z),()=>J(he))}endFor(){return this._endBlockNode(_)}label(I){return this._leafNode(new p(I))}break(I){return this._leafNode(new h(I))}return(I){const z=new D;if(this._blockNode(z),this.code(I),z.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(D)}try(I,z,J){if(!z&&!J)throw new Error('CodeGen: "try" without "catch" and "finally"');const pe=new O;if(this._blockNode(pe),this.code(I),z){const he=this.name("e");this._currNode=pe.catch=new L(he),z(he)}return J&&(this._currNode=pe.finally=new $,this.code(J)),this._endBlockNode(L,$)}throw(I){return this._leafNode(new m(I))}block(I,z){return this._blockStarts.push(this._nodes.length),I&&this.code(I).endBlock(z),this}endBlock(I){const z=this._blockStarts.pop();if(z===void 0)throw new Error("CodeGen: not in self-balancing block");const J=this._nodes.length-z;if(J<0||I!==void 0&&J!==I)throw new Error(`CodeGen: wrong number of nodes: ${J} vs ${I} expected`);return this._nodes.length=z,this}func(I,z=t.nil,J,pe){return this._blockNode(new R(I,z,J)),pe&&this.code(pe).endFunc(),this}endFunc(){return this._endBlockNode(R)}optimize(I=1){for(;I-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(I){return this._currNode.nodes.push(I),this}_blockNode(I){this._currNode.nodes.push(I),this._nodes.push(I)}_endBlockNode(I,z){const J=this._currNode;if(J instanceof I||z&&J instanceof z)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${z?`${I.kind}/${z.kind}`:I.kind}"`)}_elseNode(I){const z=this._currNode;if(!(z instanceof T))throw new Error('CodeGen: "else" without "if"');return this._currNode=z.else=I,this}get _root(){return this._nodes[0]}get _currNode(){const I=this._nodes;return I[I.length-1]}set _currNode(I){const z=this._nodes;z[z.length-1]=I}}e.CodeGen=B;function U(V,I){for(const z in I)V[z]=(V[z]||0)+(I[z]||0);return V}function j(V,I){return I instanceof t._CodeOrName?U(V,I.names):V}function W(V,I,z){if(V instanceof t.Name)return J(V);if(!pe(V))return V;return new t._Code(V._items.reduce((he,xe)=>(xe instanceof t.Name&&(xe=J(xe)),xe instanceof t._Code?he.push(...xe._items):he.push(xe),he),[]));function J(he){const xe=z[he.str];return xe===void 0||I[he.str]!==1?he:(delete I[he.str],xe)}function pe(he){return he instanceof t._Code&&he._items.some(xe=>xe instanceof t.Name&&I[xe.str]===1&&z[xe.str]!==void 0)}}function ne(V,I){for(const z in I)V[z]=(V[z]||0)-(I[z]||0)}function H(V){return typeof V=="boolean"||typeof V=="number"||V===null?!V:(0,t._)`!${G(V)}`}e.not=H;const Z=N(e.operators.AND);function te(...V){return V.reduce(Z)}e.and=te;const le=N(e.operators.OR);function Q(...V){return V.reduce(le)}e.or=Q;function N(V){return(I,z)=>I===t.nil?z:z===t.nil?I:(0,t._)`${G(I)} ${V} ${G(z)}`}function G(V){return V instanceof t.Name?V:(0,t._)`(${V})`}})(FS)),FS}var ft={},BA;function It(){if(BA)return ft;BA=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.checkStrictMode=ft.getErrorPath=ft.Type=ft.useFunc=ft.setEvaluated=ft.evaluatedPropsToName=ft.mergeEvaluated=ft.eachItem=ft.unescapeJsonPointer=ft.escapeJsonPointer=ft.escapeFragment=ft.unescapeFragment=ft.schemaRefOrVal=ft.schemaHasRulesButRef=ft.schemaHasRules=ft.checkUnknownRules=ft.alwaysValidSchema=ft.toHash=void 0;const e=bt(),t=_f();function o(E){const R={};for(const D of E)R[D]=!0;return R}ft.toHash=o;function a(E,R){return typeof R=="boolean"?R:Object.keys(R).length===0?!0:(n(E,R),!i(R,E.self.RULES.all))}ft.alwaysValidSchema=a;function n(E,R=E.schema){const{opts:D,self:O}=E;if(!D.strictSchema||typeof R=="boolean")return;const L=O.RULES.keywords;for(const $ in R)L[$]||k(E,`unknown keyword: "${$}"`)}ft.checkUnknownRules=n;function i(E,R){if(typeof E=="boolean")return!E;for(const D in E)if(R[D])return!0;return!1}ft.schemaHasRules=i;function l(E,R){if(typeof E=="boolean")return!E;for(const D in E)if(D!=="$ref"&&R.all[D])return!0;return!1}ft.schemaHasRulesButRef=l;function c({topSchemaRef:E,schemaPath:R},D,O,L){if(!L){if(typeof D=="number"||typeof D=="boolean")return D;if(typeof D=="string")return(0,e._)`${D}`}return(0,e._)`${E}${R}${(0,e.getProperty)(O)}`}ft.schemaRefOrVal=c;function u(E){return m(decodeURIComponent(E))}ft.unescapeFragment=u;function p(E){return encodeURIComponent(h(E))}ft.escapeFragment=p;function h(E){return typeof E=="number"?`${E}`:E.replace(/~/g,"~0").replace(/\//g,"~1")}ft.escapeJsonPointer=h;function m(E){return E.replace(/~1/g,"/").replace(/~0/g,"~")}ft.unescapeJsonPointer=m;function f(E,R){if(Array.isArray(E))for(const D of E)R(D);else R(E)}ft.eachItem=f;function v({mergeNames:E,mergeToName:R,mergeValues:D,resultToName:O}){return(L,$,B,U)=>{const j=B===void 0?$:B instanceof e.Name?($ instanceof e.Name?E(L,$,B):R(L,$,B),B):$ instanceof e.Name?(R(L,B,$),$):D($,B);return U===e.Name&&!(j instanceof e.Name)?O(L,j):j}}ft.mergeEvaluated={props:v({mergeNames:(E,R,D)=>E.if((0,e._)`${D} !== true && ${R} !== undefined`,()=>{E.if((0,e._)`${R} === true`,()=>E.assign(D,!0),()=>E.assign(D,(0,e._)`${D} || {}`).code((0,e._)`Object.assign(${D}, ${R})`))}),mergeToName:(E,R,D)=>E.if((0,e._)`${D} !== true`,()=>{R===!0?E.assign(D,!0):(E.assign(D,(0,e._)`${D} || {}`),S(E,D,R))}),mergeValues:(E,R)=>E===!0?!0:{...E,...R},resultToName:b}),items:v({mergeNames:(E,R,D)=>E.if((0,e._)`${D} !== true && ${R} !== undefined`,()=>E.assign(D,(0,e._)`${R} === true ? true : ${D} > ${R} ? ${D} : ${R}`)),mergeToName:(E,R,D)=>E.if((0,e._)`${D} !== true`,()=>E.assign(D,R===!0?!0:(0,e._)`${D} > ${R} ? ${D} : ${R}`)),mergeValues:(E,R)=>E===!0?!0:Math.max(E,R),resultToName:(E,R)=>E.var("items",R)})};function b(E,R){if(R===!0)return E.var("props",!0);const D=E.var("props",(0,e._)`{}`);return R!==void 0&&S(E,D,R),D}ft.evaluatedPropsToName=b;function S(E,R,D){Object.keys(D).forEach(O=>E.assign((0,e._)`${R}${(0,e.getProperty)(O)}`,!0))}ft.setEvaluated=S;const x={};function T(E,R){return E.scopeValue("func",{ref:R,code:x[R.code]||(x[R.code]=new t._Code(R.code))})}ft.useFunc=T;var _;(function(E){E[E.Num=0]="Num",E[E.Str=1]="Str"})(_||(ft.Type=_={}));function P(E,R,D){if(E instanceof e.Name){const O=R===_.Num;return D?O?(0,e._)`"[" + ${E} + "]"`:(0,e._)`"['" + ${E} + "']"`:O?(0,e._)`"/" + ${E}`:(0,e._)`"/" + ${E}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return D?(0,e.getProperty)(E).toString():"/"+h(E)}ft.getErrorPath=P;function k(E,R,D=E.opts.strictSchema){if(D){if(R=`strict mode: ${R}`,D===!0)throw new Error(R);E.self.logger.warn(R)}}return ft.checkStrictMode=k,ft}var Nh={},FA;function Fs(){if(FA)return Nh;FA=1,Object.defineProperty(Nh,"__esModule",{value:!0});const e=bt(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Nh.default=t,Nh}var jA;function kv(){return jA||(jA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=bt(),o=It(),a=Fs();e.keywordError={message:({keyword:x})=>(0,t.str)`must pass "${x}" keyword validation`},e.keyword$DataError={message:({keyword:x,schemaType:T})=>T?(0,t.str)`"${x}" keyword must be ${T} ($data)`:(0,t.str)`"${x}" keyword is invalid ($data)`};function n(x,T=e.keywordError,_,P){const{it:k}=x,{gen:E,compositeRule:R,allErrors:D}=k,O=m(x,T,_);P??(R||D)?u(E,O):p(k,(0,t._)`[${O}]`)}e.reportError=n;function i(x,T=e.keywordError,_){const{it:P}=x,{gen:k,compositeRule:E,allErrors:R}=P,D=m(x,T,_);u(k,D),E||R||p(P,a.default.vErrors)}e.reportExtraError=i;function l(x,T){x.assign(a.default.errors,T),x.if((0,t._)`${a.default.vErrors} !== null`,()=>x.if(T,()=>x.assign((0,t._)`${a.default.vErrors}.length`,T),()=>x.assign(a.default.vErrors,null)))}e.resetErrorsCount=l;function c({gen:x,keyword:T,schemaValue:_,data:P,errsCount:k,it:E}){if(k===void 0)throw new Error("ajv implementation error");const R=x.name("err");x.forRange("i",k,a.default.errors,D=>{x.const(R,(0,t._)`${a.default.vErrors}[${D}]`),x.if((0,t._)`${R}.instancePath === undefined`,()=>x.assign((0,t._)`${R}.instancePath`,(0,t.strConcat)(a.default.instancePath,E.errorPath))),x.assign((0,t._)`${R}.schemaPath`,(0,t.str)`${E.errSchemaPath}/${T}`),E.opts.verbose&&(x.assign((0,t._)`${R}.schema`,_),x.assign((0,t._)`${R}.data`,P))})}e.extendErrors=c;function u(x,T){const _=x.const("err",T);x.if((0,t._)`${a.default.vErrors} === null`,()=>x.assign(a.default.vErrors,(0,t._)`[${_}]`),(0,t._)`${a.default.vErrors}.push(${_})`),x.code((0,t._)`${a.default.errors}++`)}function p(x,T){const{gen:_,validateName:P,schemaEnv:k}=x;k.$async?_.throw((0,t._)`new ${x.ValidationError}(${T})`):(_.assign((0,t._)`${P}.errors`,T),_.return(!1))}const h={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function m(x,T,_){const{createErrors:P}=x.it;return P===!1?(0,t._)`{}`:f(x,T,_)}function f(x,T,_={}){const{gen:P,it:k}=x,E=[v(k,_),b(x,_)];return S(x,T,E),P.object(...E)}function v({errorPath:x},{instancePath:T}){const _=T?(0,t.str)`${x}${(0,o.getErrorPath)(T,o.Type.Str)}`:x;return[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,_)]}function b({keyword:x,it:{errSchemaPath:T}},{schemaPath:_,parentSchema:P}){let k=P?T:(0,t.str)`${T}/${x}`;return _&&(k=(0,t.str)`${k}${(0,o.getErrorPath)(_,o.Type.Str)}`),[h.schemaPath,k]}function S(x,{params:T,message:_},P){const{keyword:k,data:E,schemaValue:R,it:D}=x,{opts:O,propertyName:L,topSchemaRef:$,schemaPath:B}=D;P.push([h.keyword,k],[h.params,typeof T=="function"?T(x):T||(0,t._)`{}`]),O.messages&&P.push([h.message,typeof _=="function"?_(x):_]),O.verbose&&P.push([h.schema,R],[h.parentSchema,(0,t._)`${$}${B}`],[a.default.data,E]),L&&P.push([h.propertyName,L])}})(BS)),BS}var zA;function GW(){if(zA)return rl;zA=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.boolOrEmptySchema=rl.topBoolOrEmptySchema=void 0;const e=kv(),t=bt(),o=Fs(),a={message:"boolean schema is false"};function n(c){const{gen:u,schema:p,validateName:h}=c;p===!1?l(c,!1):typeof p=="object"&&p.$async===!0?u.return(o.default.data):(u.assign((0,t._)`${h}.errors`,null),u.return(!0))}rl.topBoolOrEmptySchema=n;function i(c,u){const{gen:p,schema:h}=c;h===!1?(p.var(u,!1),l(c)):p.var(u,!0)}rl.boolOrEmptySchema=i;function l(c,u){const{gen:p,data:h}=c,m={gen:p,keyword:"false schema",data:h,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(m,a,void 0,u)}return rl}var ya={},il={},UA;function kI(){if(UA)return il;UA=1,Object.defineProperty(il,"__esModule",{value:!0}),il.getRules=il.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function o(n){return typeof n=="string"&&t.has(n)}il.isJSONType=o;function a(){const n={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...n,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},n.number,n.string,n.array,n.object],post:{rules:[]},all:{},keywords:{}}}return il.getRules=a,il}var bi={},$A;function EI(){if($A)return bi;$A=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.shouldUseRule=bi.shouldUseGroup=bi.schemaHasRulesForType=void 0;function e({schema:a,self:n},i){const l=n.RULES.types[i];return l&&l!==!0&&t(a,l)}bi.schemaHasRulesForType=e;function t(a,n){return n.rules.some(i=>o(a,i))}bi.shouldUseGroup=t;function o(a,n){var i;return a[n.keyword]!==void 0||((i=n.definition.implements)===null||i===void 0?void 0:i.some(l=>a[l]!==void 0))}return bi.shouldUseRule=o,bi}var qA;function xf(){if(qA)return ya;qA=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.reportTypeError=ya.checkDataTypes=ya.checkDataType=ya.coerceAndCheckDataType=ya.getJSONTypes=ya.getSchemaTypes=ya.DataType=void 0;const e=kI(),t=EI(),o=kv(),a=bt(),n=It();var i;(function(_){_[_.Correct=0]="Correct",_[_.Wrong=1]="Wrong"})(i||(ya.DataType=i={}));function l(_){const P=c(_.type);if(P.includes("null")){if(_.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!P.length&&_.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');_.nullable===!0&&P.push("null")}return P}ya.getSchemaTypes=l;function c(_){const P=Array.isArray(_)?_:_?[_]:[];if(P.every(e.isJSONType))return P;throw new Error("type must be JSONType or JSONType[]: "+P.join(","))}ya.getJSONTypes=c;function u(_,P){const{gen:k,data:E,opts:R}=_,D=h(P,R.coerceTypes),O=P.length>0&&!(D.length===0&&P.length===1&&(0,t.schemaHasRulesForType)(_,P[0]));if(O){const L=b(P,E,R.strictNumbers,i.Wrong);k.if(L,()=>{D.length?m(_,P,D):x(_)})}return O}ya.coerceAndCheckDataType=u;const p=new Set(["string","number","integer","boolean","null"]);function h(_,P){return P?_.filter(k=>p.has(k)||P==="array"&&k==="array"):[]}function m(_,P,k){const{gen:E,data:R,opts:D}=_,O=E.let("dataType",(0,a._)`typeof ${R}`),L=E.let("coerced",(0,a._)`undefined`);D.coerceTypes==="array"&&E.if((0,a._)`${O} == 'object' && Array.isArray(${R}) && ${R}.length == 1`,()=>E.assign(R,(0,a._)`${R}[0]`).assign(O,(0,a._)`typeof ${R}`).if(b(P,R,D.strictNumbers),()=>E.assign(L,R))),E.if((0,a._)`${L} !== undefined`);for(const B of k)(p.has(B)||B==="array"&&D.coerceTypes==="array")&&$(B);E.else(),x(_),E.endIf(),E.if((0,a._)`${L} !== undefined`,()=>{E.assign(R,L),f(_,L)});function $(B){switch(B){case"string":E.elseIf((0,a._)`${O} == "number" || ${O} == "boolean"`).assign(L,(0,a._)`"" + ${R}`).elseIf((0,a._)`${R} === null`).assign(L,(0,a._)`""`);return;case"number":E.elseIf((0,a._)`${O} == "boolean" || ${R} === null
|
|
50
50
|
|| (${O} == "string" && ${R} && ${R} == +${R})`).assign(L,(0,a._)`+${R}`);return;case"integer":E.elseIf((0,a._)`${O} === "boolean" || ${R} === null
|
|
51
51
|
|| (${O} === "string" && ${R} && ${R} == +${R} && !(${R} % 1))`).assign(L,(0,a._)`+${R}`);return;case"boolean":E.elseIf((0,a._)`${R} === "false" || ${R} === 0 || ${R} === null`).assign(L,!1).elseIf((0,a._)`${R} === "true" || ${R} === 1`).assign(L,!0);return;case"null":E.elseIf((0,a._)`${R} === "" || ${R} === 0 || ${R} === false`),E.assign(L,null);return;case"array":E.elseIf((0,a._)`${O} === "string" || ${O} === "number"
|
|
@@ -165,7 +165,7 @@ Este site ainda não reporta sections de post — quando reportar, cite elas aqu
|
|
|
165
165
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
166
166
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
167
167
|
`)},koe=0,Ic=[];function Eoe(e){var t=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(koe++)[0],i=A.useState(mB)[0],l=A.useRef(e);A.useEffect(function(){l.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var S=Kte([e.lockRef.current],(e.shards||[]).map(zD),!0).filter(Boolean);return S.forEach(function(x){return x.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),S.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var c=A.useCallback(function(S,x){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var T=Ag(S),_=o.current,P="deltaX"in S?S.deltaX:_[0]-T[0],k="deltaY"in S?S.deltaY:_[1]-T[1],E,R=S.target,D=Math.abs(P)>Math.abs(k)?"h":"v";if("touches"in S&&D==="h"&&R.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,$=L?L===R||L.contains(R):!1;if($)return!1;var B=FD(D,R);if(!B)return!0;if(B?E=D:(E=D==="v"?"h":"v",B=FD(D,R)),!B)return!1;if(!a.current&&"changedTouches"in S&&(P||k)&&(a.current=E),!E)return!0;var U=a.current||E;return _oe(U,x,S,U==="h"?P:k)},[]),u=A.useCallback(function(S){var x=S;if(!(!Ic.length||Ic[Ic.length-1]!==i)){var T="deltaY"in x?jD(x):Ag(x),_=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&xoe(E.delta,T)})[0];if(_&&_.should){x.cancelable&&x.preventDefault();return}if(!_){var P=(l.current.shards||[]).map(zD).filter(Boolean).filter(function(E){return E.contains(x.target)}),k=P.length>0?c(x,P[0]):!l.current.noIsolation;k&&x.cancelable&&x.preventDefault()}}},[]),p=A.useCallback(function(S,x,T,_){var P={name:S,delta:x,target:T,should:_,shadowParent:Poe(T)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(k){return k!==P})},1)},[]),h=A.useCallback(function(S){o.current=Ag(S),a.current=void 0},[]),m=A.useCallback(function(S){p(S.type,jD(S),S.target,c(S,e.lockRef.current))},[]),f=A.useCallback(function(S){p(S.type,Ag(S),S.target,c(S,e.lockRef.current))},[]);A.useEffect(function(){return Ic.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Nc),document.addEventListener("touchmove",u,Nc),document.addEventListener("touchstart",h,Nc),function(){Ic=Ic.filter(function(S){return S!==i}),document.removeEventListener("wheel",u,Nc),document.removeEventListener("touchmove",u,Nc),document.removeEventListener("touchstart",h,Nc)}},[]);var v=e.removeScrollBar,b=e.inert;return A.createElement(A.Fragment,null,b?A.createElement(i,{styles:Coe(n)}):null,v?A.createElement(foe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Poe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Aoe=aoe(pB,Eoe);var xx=A.forwardRef(function(e,t){return A.createElement(Nv,zr({},e,{ref:t,sideCar:Aoe}))});xx.classNames=Nv.classNames;var lT=["Enter"," "],Roe=["ArrowDown","PageUp","Home"],vB=["ArrowUp","PageDown","End"],Doe=[...Roe,...vB],Ooe={ltr:[...lT,"ArrowRight"],rtl:[...lT,"ArrowLeft"]},Moe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},em="Menu",[Ep,Noe,Ioe]=xL(em),[Ul,bB]=zl(em,[Ioe,GL,aB]),tm=GL(),yB=aB(),[SB,zs]=Ul(em),[Loe,om]=Ul(em),wB=e=>{const{__scopeMenu:t,open:o=!1,children:a,dir:n,onOpenChange:i,modal:l=!0}=e,c=tm(t),[u,p]=A.useState(null),h=A.useRef(!1),m=Sr(i),f=CL(n);return A.useEffect(()=>{const v=()=>{h.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>h.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),w.jsx(tB,{...c,children:w.jsx(SB,{scope:t,open:o,onOpenChange:m,content:u,onContentChange:p,children:w.jsx(Loe,{scope:t,onClose:A.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:h,dir:f,modal:l,children:a})})})};wB.displayName=em;var Boe="MenuAnchor",Cx=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=tm(o);return w.jsx(kte,{...n,...a,ref:t})});Cx.displayName=Boe;var kx="MenuPortal",[Foe,TB]=Ul(kx,{forceMount:void 0}),_B=e=>{const{__scopeMenu:t,forceMount:o,children:a,container:n}=e,i=zs(kx,t);return w.jsx(Foe,{scope:t,forceMount:o,children:w.jsx(Mi,{present:o||i.open,children:w.jsx(_x,{asChild:!0,container:n,children:a})})})};_B.displayName=kx;var Jn="MenuContent",[joe,Ex]=Ul(Jn),xB=A.forwardRef((e,t)=>{const o=TB(Jn,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,i=zs(Jn,e.__scopeMenu),l=om(Jn,e.__scopeMenu);return w.jsx(Ep.Provider,{scope:e.__scopeMenu,children:w.jsx(Mi,{present:a||i.open,children:w.jsx(Ep.Slot,{scope:e.__scopeMenu,children:l.modal?w.jsx(zoe,{...n,ref:t}):w.jsx(Uoe,{...n,ref:t})})})})}),zoe=A.forwardRef((e,t)=>{const o=zs(Jn,e.__scopeMenu),a=A.useRef(null),n=sa(t,a);return A.useEffect(()=>{const i=a.current;if(i)return cB(i)},[]),w.jsx(Px,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),Uoe=A.forwardRef((e,t)=>{const o=zs(Jn,e.__scopeMenu);return w.jsx(Px,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),$oe=Cp("MenuContent.ScrollLock"),Px=A.forwardRef((e,t)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:f,onDismiss:v,disableOutsideScroll:b,...S}=e,x=zs(Jn,o),T=om(Jn,o),_=tm(o),P=yB(o),k=Noe(o),[E,R]=A.useState(null),D=A.useRef(null),O=sa(t,D,x.onContentChange),L=A.useRef(0),$=A.useRef(""),B=A.useRef(0),U=A.useRef(null),j=A.useRef("right"),W=A.useRef(0),ne=b?xx:A.Fragment,H=b?{as:$oe,allowPinchZoom:!0}:void 0,Z=le=>{const Q=$.current+le,N=k().filter(pe=>!pe.disabled),G=document.activeElement,V=N.find(pe=>pe.ref.current===G)?.textValue,I=N.map(pe=>pe.textValue),z=eae(I,Q,V),J=N.find(pe=>pe.textValue===z)?.ref.current;(function pe(he){$.current=he,window.clearTimeout(L.current),he!==""&&(L.current=window.setTimeout(()=>pe(""),1e3))})(Q),J&&setTimeout(()=>J.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),PL();const te=A.useCallback(le=>j.current===U.current?.side&&oae(le,U.current?.area),[]);return w.jsx(joe,{scope:o,searchRef:$,onItemEnter:A.useCallback(le=>{te(le)&&le.preventDefault()},[te]),onItemLeave:A.useCallback(le=>{te(le)||(D.current?.focus(),R(null))},[te]),onTriggerLeave:A.useCallback(le=>{te(le)&&le.preventDefault()},[te]),pointerGraceTimerRef:B,onPointerGraceIntentChange:A.useCallback(le=>{U.current=le},[]),children:w.jsx(ne,{...H,children:w.jsx(mx,{asChild:!0,trapped:n,onMountAutoFocus:mt(i,le=>{le.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:w.jsx(px,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:f,onDismiss:v,children:w.jsx(qte,{asChild:!0,...P,dir:T.dir,orientation:"vertical",loop:a,currentTabStopId:E,onCurrentTabStopIdChange:R,onEntryFocus:mt(u,le=>{T.isUsingKeyboardRef.current||le.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(Ete,{role:"menu","aria-orientation":"vertical","data-state":UB(x.open),"data-radix-menu-content":"",dir:T.dir,..._,...S,ref:O,style:{outline:"none",...S.style},onKeyDown:mt(S.onKeyDown,le=>{const N=le.target.closest("[data-radix-menu-content]")===le.currentTarget,G=le.ctrlKey||le.altKey||le.metaKey,V=le.key.length===1;N&&(le.key==="Tab"&&le.preventDefault(),!G&&V&&Z(le.key));const I=D.current;if(le.target!==I||!Doe.includes(le.key))return;le.preventDefault();const J=k().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);vB.includes(le.key)&&J.reverse(),Joe(J)}),onBlur:mt(e.onBlur,le=>{le.currentTarget.contains(le.target)||(window.clearTimeout(L.current),$.current="")}),onPointerMove:mt(e.onPointerMove,Pp(le=>{const Q=le.target,N=W.current!==le.clientX;if(le.currentTarget.contains(Q)&&N){const G=le.clientX>W.current?"right":"left";j.current=G,W.current=le.clientX}}))})})})})})})});xB.displayName=Jn;var qoe="MenuGroup",Ax=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return w.jsx(Ao.div,{role:"group",...a,ref:t})});Ax.displayName=qoe;var Voe="MenuLabel",CB=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return w.jsx(Ao.div,{...a,ref:t})});CB.displayName=Voe;var Df="MenuItem",UD="menu.itemSelect",Iv=A.forwardRef((e,t)=>{const{disabled:o=!1,onSelect:a,...n}=e,i=A.useRef(null),l=om(Df,e.__scopeMenu),c=Ex(Df,e.__scopeMenu),u=sa(t,i),p=A.useRef(!1),h=()=>{const m=i.current;if(!o&&m){const f=new CustomEvent(UD,{bubbles:!0,cancelable:!0});m.addEventListener(UD,v=>a?.(v),{once:!0}),_L(m,f),f.defaultPrevented?p.current=!1:l.onClose()}};return w.jsx(kB,{...n,ref:u,disabled:o,onClick:mt(e.onClick,h),onPointerDown:m=>{e.onPointerDown?.(m),p.current=!0},onPointerUp:mt(e.onPointerUp,m=>{p.current||m.currentTarget?.click()}),onKeyDown:mt(e.onKeyDown,m=>{const f=c.searchRef.current!=="";o||f&&m.key===" "||lT.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Iv.displayName=Df;var kB=A.forwardRef((e,t)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...i}=e,l=Ex(Df,o),c=yB(o),u=A.useRef(null),p=sa(t,u),[h,m]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const b=u.current;b&&v((b.textContent??"").trim())},[i.children]),w.jsx(Ep.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:w.jsx(Vte,{asChild:!0,...c,focusable:!a,children:w.jsx(Ao.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:p,onPointerMove:mt(e.onPointerMove,Pp(b=>{a?l.onItemLeave(b):(l.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(e.onPointerLeave,Pp(b=>l.onItemLeave(b))),onFocus:mt(e.onFocus,()=>m(!0)),onBlur:mt(e.onBlur,()=>m(!1))})})})}),Hoe="MenuCheckboxItem",EB=A.forwardRef((e,t)=>{const{checked:o=!1,onCheckedChange:a,...n}=e;return w.jsx(OB,{scope:e.__scopeMenu,checked:o,children:w.jsx(Iv,{role:"menuitemcheckbox","aria-checked":Of(o)?"mixed":o,...n,ref:t,"data-state":Ox(o),onSelect:mt(n.onSelect,()=>a?.(Of(o)?!0:!o),{checkForDefaultPrevented:!1})})})});EB.displayName=Hoe;var PB="MenuRadioGroup",[Goe,Woe]=Ul(PB,{value:void 0,onValueChange:()=>{}}),AB=A.forwardRef((e,t)=>{const{value:o,onValueChange:a,...n}=e,i=Sr(a);return w.jsx(Goe,{scope:e.__scopeMenu,value:o,onValueChange:i,children:w.jsx(Ax,{...n,ref:t})})});AB.displayName=PB;var RB="MenuRadioItem",DB=A.forwardRef((e,t)=>{const{value:o,...a}=e,n=Woe(RB,e.__scopeMenu),i=o===n.value;return w.jsx(OB,{scope:e.__scopeMenu,checked:i,children:w.jsx(Iv,{role:"menuitemradio","aria-checked":i,...a,ref:t,"data-state":Ox(i),onSelect:mt(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});DB.displayName=RB;var Rx="MenuItemIndicator",[OB,Koe]=Ul(Rx,{checked:!1}),MB=A.forwardRef((e,t)=>{const{__scopeMenu:o,forceMount:a,...n}=e,i=Koe(Rx,o);return w.jsx(Mi,{present:a||Of(i.checked)||i.checked===!0,children:w.jsx(Ao.span,{...n,ref:t,"data-state":Ox(i.checked)})})});MB.displayName=Rx;var Yoe="MenuSeparator",NB=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return w.jsx(Ao.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});NB.displayName=Yoe;var Zoe="MenuArrow",IB=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=tm(o);return w.jsx(Pte,{...n,...a,ref:t})});IB.displayName=Zoe;var Dx="MenuSub",[Qoe,LB]=Ul(Dx),BB=e=>{const{__scopeMenu:t,children:o,open:a=!1,onOpenChange:n}=e,i=zs(Dx,t),l=tm(t),[c,u]=A.useState(null),[p,h]=A.useState(null),m=Sr(n);return A.useEffect(()=>(i.open===!1&&m(!1),()=>m(!1)),[i.open,m]),w.jsx(tB,{...l,children:w.jsx(SB,{scope:t,open:a,onOpenChange:m,content:p,onContentChange:h,children:w.jsx(Qoe,{scope:t,contentId:As(),triggerId:As(),trigger:c,onTriggerChange:u,children:o})})})};BB.displayName=Dx;var Ju="MenuSubTrigger",FB=A.forwardRef((e,t)=>{const o=zs(Ju,e.__scopeMenu),a=om(Ju,e.__scopeMenu),n=LB(Ju,e.__scopeMenu),i=Ex(Ju,e.__scopeMenu),l=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=i,p={__scopeMenu:e.__scopeMenu},h=A.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return A.useEffect(()=>h,[h]),A.useEffect(()=>{const m=c.current;return()=>{window.clearTimeout(m),u(null)}},[c,u]),w.jsx(Cx,{asChild:!0,...p,children:w.jsx(kB,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":UB(o.open),...e,ref:Zp(t,n.onTriggerChange),onClick:m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mt(e.onPointerMove,Pp(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!o.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{o.onOpenChange(!0),h()},100))})),onPointerLeave:mt(e.onPointerLeave,Pp(m=>{h();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,b=v==="right",S=b?-5:5,x=f[b?"left":"right"],T=f[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+S,y:m.clientY},{x,y:f.top},{x:T,y:f.top},{x:T,y:f.bottom},{x,y:f.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:mt(e.onKeyDown,m=>{const f=i.searchRef.current!=="";e.disabled||f&&m.key===" "||Ooe[a.dir].includes(m.key)&&(o.onOpenChange(!0),o.content?.focus(),m.preventDefault())})})})});FB.displayName=Ju;var jB="MenuSubContent",zB=A.forwardRef((e,t)=>{const o=TB(Jn,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,i=zs(Jn,e.__scopeMenu),l=om(Jn,e.__scopeMenu),c=LB(jB,e.__scopeMenu),u=A.useRef(null),p=sa(t,u);return w.jsx(Ep.Provider,{scope:e.__scopeMenu,children:w.jsx(Mi,{present:a||i.open,children:w.jsx(Ep.Slot,{scope:e.__scopeMenu,children:w.jsx(Px,{id:c.contentId,"aria-labelledby":c.triggerId,...n,ref:p,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:h=>{l.isUsingKeyboardRef.current&&u.current?.focus(),h.preventDefault()},onCloseAutoFocus:h=>h.preventDefault(),onFocusOutside:mt(e.onFocusOutside,h=>{h.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:mt(e.onEscapeKeyDown,h=>{l.onClose(),h.preventDefault()}),onKeyDown:mt(e.onKeyDown,h=>{const m=h.currentTarget.contains(h.target),f=Moe[l.dir].includes(h.key);m&&f&&(i.onOpenChange(!1),c.trigger?.focus(),h.preventDefault())})})})})})});zB.displayName=jB;function UB(e){return e?"open":"closed"}function Of(e){return e==="indeterminate"}function Ox(e){return Of(e)?"indeterminate":e?"checked":"unchecked"}function Joe(e){const t=document.activeElement;for(const o of e)if(o===t||(o.focus(),document.activeElement!==t))return}function Xoe(e,t){return e.map((o,a)=>e[(t+a)%e.length])}function eae(e,t,o){const n=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,i=o?e.indexOf(o):-1;let l=Xoe(e,Math.max(i,0));n.length===1&&(l=l.filter(p=>p!==o));const u=l.find(p=>p.toLowerCase().startsWith(n.toLowerCase()));return u!==o?u:void 0}function tae(e,t){const{x:o,y:a}=e;let n=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],u=t[l],p=c.x,h=c.y,m=u.x,f=u.y;h>a!=f>a&&o<(m-p)*(a-h)/(f-h)+p&&(n=!n)}return n}function oae(e,t){if(!t)return!1;const o={x:e.clientX,y:e.clientY};return tae(o,t)}function Pp(e){return t=>t.pointerType==="mouse"?e(t):void 0}var aae=wB,nae=Cx,rae=_B,iae=xB,sae=Ax,lae=CB,cae=Iv,dae=EB,uae=AB,pae=DB,mae=MB,hae=NB,gae=IB,fae=BB,vae=FB,bae=zB,Lv="DropdownMenu",[yae]=zl(Lv,[bB]),ja=bB(),[Sae,$B]=yae(Lv),qB=e=>{const{__scopeDropdownMenu:t,children:o,dir:a,open:n,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,u=ja(t),p=A.useRef(null),[h,m]=Qp({prop:n,defaultProp:i??!1,onChange:l,caller:Lv});return w.jsx(Sae,{scope:t,triggerId:As(),triggerRef:p,contentId:As(),open:h,onOpenChange:m,onOpenToggle:A.useCallback(()=>m(f=>!f),[m]),modal:c,children:w.jsx(aae,{...u,open:h,onOpenChange:m,dir:a,modal:c,children:o})})};qB.displayName=Lv;var VB="DropdownMenuTrigger",HB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=e,i=$B(VB,o),l=ja(o);return w.jsx(nae,{asChild:!0,...l,children:w.jsx(Ao.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...n,ref:Zp(t,i.triggerRef),onPointerDown:mt(e.onPointerDown,c=>{!a&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:mt(e.onKeyDown,c=>{a||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});HB.displayName=VB;var wae="DropdownMenuPortal",GB=e=>{const{__scopeDropdownMenu:t,...o}=e,a=ja(t);return w.jsx(rae,{...a,...o})};GB.displayName=wae;var WB="DropdownMenuContent",KB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=$B(WB,o),i=ja(o),l=A.useRef(!1);return w.jsx(iae,{id:n.contentId,"aria-labelledby":n.triggerId,...i,...a,ref:t,onCloseAutoFocus:mt(e.onCloseAutoFocus,c=>{l.current||n.triggerRef.current?.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:mt(e.onInteractOutside,c=>{const u=c.detail.originalEvent,p=u.button===0&&u.ctrlKey===!0,h=u.button===2||p;(!n.modal||h)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});KB.displayName=WB;var Tae="DropdownMenuGroup",_ae=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(sae,{...n,...a,ref:t})});_ae.displayName=Tae;var xae="DropdownMenuLabel",YB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(lae,{...n,...a,ref:t})});YB.displayName=xae;var Cae="DropdownMenuItem",ZB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(cae,{...n,...a,ref:t})});ZB.displayName=Cae;var kae="DropdownMenuCheckboxItem",Eae=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(dae,{...n,...a,ref:t})});Eae.displayName=kae;var Pae="DropdownMenuRadioGroup",QB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(uae,{...n,...a,ref:t})});QB.displayName=Pae;var Aae="DropdownMenuRadioItem",JB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(pae,{...n,...a,ref:t})});JB.displayName=Aae;var Rae="DropdownMenuItemIndicator",XB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(mae,{...n,...a,ref:t})});XB.displayName=Rae;var Dae="DropdownMenuSeparator",eF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(hae,{...n,...a,ref:t})});eF.displayName=Dae;var Oae="DropdownMenuArrow",Mae=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(gae,{...n,...a,ref:t})});Mae.displayName=Oae;var Nae=e=>{const{__scopeDropdownMenu:t,children:o,open:a,onOpenChange:n,defaultOpen:i}=e,l=ja(t),[c,u]=Qp({prop:a,defaultProp:i??!1,onChange:n,caller:"DropdownMenuSub"});return w.jsx(fae,{...l,open:c,onOpenChange:u,children:o})},Iae="DropdownMenuSubTrigger",tF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(vae,{...n,...a,ref:t})});tF.displayName=Iae;var Lae="DropdownMenuSubContent",oF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return w.jsx(bae,{...n,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});oF.displayName=Lae;var aF=qB,nF=HB,rF=GB,iF=KB,Bae=YB,sF=ZB,Fae=QB,jae=JB,zae=XB,Uae=eF,$ae=Nae,qae=tF,Vae=oF;const Mx=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));Mx.displayName="AlertTriangle";const lF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M4 7.997a2.295 2.295 0 0 1-.39-.035A2 2 0 0 1 2.038 6.39C2 6.197 2 5.965 2 5.5s0-.697.038-.89A2 2 0 0 1 3.61 3.038C3.803 3 4.035 3 4.5 3h15c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89s0 .697-.038.89a2 2 0 0 1-1.572 1.572c-.107.02-.226.03-.39.035M10 13h4M4 8h16v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2V8Z"}));lF.displayName="Archive";const cF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));cF.displayName="ArrowUpRight";const Nx=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"m9 18 6-6-6-6"}));Nx.displayName="ChevronRight";const dF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));dF.displayName="Circle";const uF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M9 2v2m6-2v2M9 20v2m6-2v2m5-13h2m-2 5h2M2 9h2m-2 5h2m4.8 6h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 17.72 20 16.88 20 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 4 16.88 4 15.2 4H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 6.28 4 7.12 4 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 20 7.12 20 8.8 20Zm1.8-5h2.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C15 14.24 15 13.96 15 13.4v-2.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 9 13.96 9 13.4 9h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 9.76 9 10.04 9 10.6v2.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C9.76 15 10.04 15 10.6 15Z"}));uF.displayName="CpuChip01";const pF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));pF.displayName="DotsHorizontal";const mF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));mF.displayName="GitBranch01";const hF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M2.5 12h19M6 16h4M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));hF.displayName="HardDrive";const gF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));gF.displayName="Lock01";const fF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));fF.displayName="RefreshCw01";const vF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M6 6h.01M6 18h.01m-.81-8h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 8.48 22 7.92 22 6.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 2 19.92 2 18.8 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 10 4.08 10 5.2 10Zm0 12h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-1.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 14 19.92 14 18.8 14H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 15.52 2 16.08 2 17.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));vF.displayName="Server01";const bF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M11.302 21.615c.221.129.332.194.488.227.122.026.298.026.42 0 .156-.034.267-.098.488-.227C14.646 20.478 20 16.908 20 12V7.217c0-.799 0-1.199-.13-1.542a2 2 0 0 0-.548-.79c-.275-.243-.65-.383-1.398-.664l-5.362-2.01c-.208-.078-.312-.117-.419-.133a1 1 0 0 0-.286 0c-.107.016-.21.055-.419.133L6.076 4.22c-.748.28-1.122.421-1.398.664a2 2 0 0 0-.547.79C4 6.018 4 6.418 4 7.217V12c0 4.908 5.354 8.478 7.302 9.615Z"}));bF.displayName="Shield01";const yF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M18 15.837c1.456.731 2.704 1.905 3.615 3.373.18.29.27.436.302.637.063.409-.216.912-.597 1.073-.188.08-.398.08-.82.08M16 11.532a4.5 4.5 0 0 0 0-8.064M14 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM2.56 18.938C4.153 16.545 6.67 15 9.5 15s5.346 1.545 6.94 3.938c.35.525.525.787.505 1.122-.016.26-.187.58-.396.738-.267.202-.635.202-1.371.202H3.822c-.736 0-1.104 0-1.372-.202a1.109 1.109 0 0 1-.395-.738c-.02-.335.155-.597.504-1.122Z"}));yF.displayName="Users03";function Hae(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=w.jsx(aF,{"data-slot":"dropdown-menu",...o}),t[2]=o,t[3]=a):a=t[3],a}function Gae(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=w.jsx(nF,{"data-slot":"dropdown-menu-trigger",...o}),t[2]=o,t[3]=a):a=t[3],a}function Wae(e){const t=Le.c(10);let o,a,n;t[0]!==e?({className:o,sideOffset:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const i=n===void 0?4:n;let l;t[4]!==o?(l=qt("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border p-1 shadow-md",o),t[4]=o,t[5]=l):l=t[5];let c;return t[6]!==a||t[7]!==i||t[8]!==l?(c=w.jsx(rF,{children:w.jsx(iF,{"data-slot":"dropdown-menu-content",sideOffset:i,translate:"no",className:l,...a})}),t[6]=a,t[7]=i,t[8]=l,t[9]=c):c=t[9],c}function Kae(e){const t=Le.c(12);let o,a,n,i;t[0]!==e?({className:o,inset:a,variant:i,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);const l=i===void 0?"default":i;let c;t[5]!==o?(c=qt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),t[5]=o,t[6]=c):c=t[6];let u;return t[7]!==a||t[8]!==n||t[9]!==c||t[10]!==l?(u=w.jsx(sF,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":l,className:c,...n}),t[7]=a,t[8]=n,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function tve(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=w.jsx(Fae,{"data-slot":"dropdown-menu-radio-group",...o}),t[2]=o,t[3]=a):a=t[3],a}function ove(e){const t=Le.c(11);let o,a,n;t[0]!==e?({className:a,children:o,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let i;t[4]!==a?(i=qt("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),t[4]=a,t[5]=i):i=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=w.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:w.jsx(zae,{children:w.jsx(dF,{className:"size-2 fill-current"})})}),t[6]=l):l=t[6];let c;return t[7]!==o||t[8]!==n||t[9]!==i?(c=w.jsxs(jae,{"data-slot":"dropdown-menu-radio-item",className:i,...n,children:[l,o]}),t[7]=o,t[8]=n,t[9]=i,t[10]=c):c=t[10],c}function ave(e){const t=Le.c(10);let o,a,n;t[0]!==e?({className:o,inset:a,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let i;t[4]!==o?(i=qt("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",o),t[4]=o,t[5]=i):i=t[5];let l;return t[6]!==a||t[7]!==n||t[8]!==i?(l=w.jsx(Bae,{"data-slot":"dropdown-menu-label","data-inset":a,className:i,...n}),t[6]=a,t[7]=n,t[8]=i,t[9]=l):l=t[9],l}function nve(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("bg-border -mx-1 my-1 h-px",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=w.jsx(Uae,{"data-slot":"dropdown-menu-separator",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function rve(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=w.jsx($ae,{"data-slot":"dropdown-menu-sub",...o}),t[2]=o,t[3]=a):a=t[3],a}function ive(e){const t=Le.c(13);let o,a,n,i;t[0]!==e?({className:a,inset:n,children:o,...i}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);let l;t[5]!==a?(l=qt("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),t[5]=a,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=w.jsx(Nx,{className:"ml-auto size-4"}),t[7]=c):c=t[7];let u;return t[8]!==o||t[9]!==n||t[10]!==i||t[11]!==l?(u=w.jsxs(qae,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:l,...i,children:[o,c]}),t[8]=o,t[9]=n,t[10]=i,t[11]=l,t[12]=u):u=t[12],u}function sve(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=w.jsx(Vae,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function Yae(){const e=Le.c(3),[t,o]=A.useState(-1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l=>{if(!l)return;const c=()=>o(l.clientWidth);c();const u=new ResizeObserver(c);return u.observe(l),()=>u.disconnect()},e[0]=a):a=e[0];const n=a;let i;return e[1]!==t?(i=[t,n],e[1]=t,e[2]=i):i=e[2],i}function Zae(){let e=new Map;const t=new Set,o=()=>t.forEach(a=>a());return{getSnapshot:()=>e,subscribe(a){return t.add(a),()=>{t.delete(a)}},register(a){if(e.has(a.after))throw new Error(`Two components extend breadcrumb: ${a.after}`);return e=new Map(e).set(a.after,a),o(),()=>{if(e.get(a.after)!==a)return;const n=new Map(e);n.delete(a.after),e=n,o()}}}}const SF=A.createContext(null);function Qae(e){const t=Le.c(3),{children:o}=e,[a]=A.useState(Zae);let n;return t[0]!==o||t[1]!==a?(n=w.jsx(SF,{value:a,children:o}),t[0]=o,t[1]=a,t[2]=n):n=t[2],n}function Bv(){return A.use(SF)}function wF(e){const t=Le.c(3),o=Bv();if(!o)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let a;return t[0]!==e||t[1]!==o?(a=w.jsx("span",{hidden:!0,ref:n=>n?o.register(e):void 0}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function Jae(e,t){const o=new Set,a=n=>{if(o.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);o.add(n.key);const i=t.get(n.key);return[{...n,...i?.parent},...i?.items?.flatMap(a)??[]]};return e.flatMap(a)}function Xae(e,t){const o=e.map(a=>a.label).filter(a=>typeof a=="string").reverse();return t&&o.push(t),o.map(a=>a.trim()).filter(Boolean).join(" · ")}const TF=5;function ene(e,t=!1,o=TF){const a=e.map(l=>({type:"item",item:l}));if(e.length<=(t?1:o))return a;const n=t?0:1,i=e.length-(t?1:2);return a.splice(n,i-n,{type:"menu",items:e.slice(n,i)}),a}const _F=o$(function(t){return w.jsx("a",{...t,"aria-current":void 0})});function tne(e){const t=Le.c(12),{items:o}=e,a=kr();let n;t[0]!==a?(n=a("page.breadcrumbMenu"),t[0]=a,t[1]=n):n=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=w.jsx(pF,{"aria-hidden":"true",className:"size-4"}),t[2]=i):i=t[2];let l;t[3]!==n?(l=w.jsx(Gae,{asChild:!0,children:w.jsx(Al,{variant:"ghost",size:"icon-sm",className:"size-6 shrink-0","aria-label":n,children:i})}),t[3]=n,t[4]=l):l=t[4];let c;t[5]!==o?(c=o.map(one),t[5]=o,t[6]=c):c=t[6];let u;t[7]!==c?(u=w.jsx(Wae,{align:"start",children:c}),t[7]=c,t[8]=u):u=t[8];let p;return t[9]!==l||t[10]!==u?(p=w.jsxs(Hae,{children:[l,u]}),t[9]=l,t[10]=u,t[11]=p):p=t[11],p}function one(e){const t=w.jsx("span",{className:"max-w-64 truncate",title:typeof e.label=="string"?e.label:void 0,children:e.label});return w.jsx(Kae,{asChild:!!e.link&&!e.onSelect,onSelect:e.onSelect,disabled:!e.onSelect&&!e.link,children:e.link&&!e.onSelect?w.jsx(_F,{...e.link,children:t}):t},e.key)}function ane(e){const t=Le.c(14),{item:o,current:a}=e,n=typeof o.label=="string"?o.label:void 0;if(a){let l;return t[0]!==o.label||t[1]!==n?(l=w.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:o.label}),t[0]=o.label,t[1]=n,t[2]=l):l=t[2],l}if(o.onSelect){let l;return t[3]!==o.label||t[4]!==o.onSelect||t[5]!==n?(l=w.jsx("button",{type:"button",onClick:o.onSelect,title:n,className:"block max-w-40 truncate rounded-lg hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:o.label}),t[3]=o.label,t[4]=o.onSelect,t[5]=n,t[6]=l):l=t[6],l}if(o.link){let l;return t[7]!==o.label||t[8]!==o.link||t[9]!==n?(l=w.jsx(_F,{...o.link,title:n,className:"block max-w-40 truncate rounded-lg hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:o.label}),t[7]=o.label,t[8]=o.link,t[9]=n,t[10]=l):l=t[10],l}let i;return t[11]!==o.label||t[12]!==n?(i=w.jsx("span",{title:n,className:"block max-w-40 truncate",children:o.label}),t[11]=o.label,t[12]=n,t[13]=i):i=t[13],i}function xF(e){const t=Le.c(21),{items:o}=e,a=kr(),[n,i]=Yae();let l,c,u,p,h,m;if(t[0]!==o||t[1]!==i||t[2]!==a||t[3]!==n){const b=ene(o,n>=0&&n<320,TF);p=i,t[10]!==a?(h=a("page.breadcrumbs"),t[10]=a,t[11]=h):h=t[11],m="min-w-0 flex-1",l="page-breadcrumbs",c="flex min-w-0 items-center gap-2 text-sm text-muted-foreground",u=b.map((S,x)=>w.jsxs("li",{className:qt("flex min-w-0 items-center gap-2",x>0&&"min-w-5",S.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[x>0&&w.jsx(Nx,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),S.type==="item"?w.jsx(ane,{item:S.item,current:x===b.length-1}):w.jsx(tne,{items:S.items})]},S.type==="item"?`item:${S.item.key}`:"menu")),t[0]=o,t[1]=i,t[2]=a,t[3]=n,t[4]=l,t[5]=c,t[6]=u,t[7]=p,t[8]=h,t[9]=m}else l=t[4],c=t[5],u=t[6],p=t[7],h=t[8],m=t[9];let f;t[12]!==l||t[13]!==c||t[14]!==u?(f=w.jsx("ol",{"data-slot":l,className:c,children:u}),t[12]=l,t[13]=c,t[14]=u,t[15]=f):f=t[15];let v;return t[16]!==p||t[17]!==h||t[18]!==m||t[19]!==f?(v=w.jsx("nav",{ref:p,"aria-label":h,className:m,children:f}),t[16]=p,t[17]=h,t[18]=m,t[19]=f,t[20]=v):v=t[20],v}function nne(e){const t=Le.c(12),{items:o,scope:a}=e,n=Bv();if(!n)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const i=A.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);let l,c;t[0]!==i||t[1]!==o||t[2]!==a?(l=Jae(o,i),c=Xae(l,a),t[0]=i,t[1]=o,t[2]=a,t[3]=l,t[4]=c):(l=t[3],c=t[4]);const u=c;let p;t[5]!==u?(p=u&&w.jsx("title",{children:u}),t[5]=u,t[6]=p):p=t[6];let h;t[7]!==l?(h=w.jsx(xF,{items:l}),t[7]=l,t[8]=h):h=t[8];let m;return t[9]!==p||t[10]!==h?(m=w.jsxs(w.Fragment,{children:[p,h]}),t[9]=p,t[10]=h,t[11]=m):m=t[11],m}function rne(e){const t=Le.c(3),o=Bv();let a;return t[0]!==e||t[1]!==o?(a=o?w.jsx(wF,{...e}):w.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:w.jsx(xF,{items:e.items??[]})}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}const ine=Object.assign(rne,{Provider:Qae});function sne(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=w.jsx("div",{...a,"data-slot":"page",className:n}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function lne(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("min-h-0 min-w-0 flex-1 overflow-auto",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=w.jsx("div",{...a,"data-slot":"page-content",className:n}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}const cne={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"};function dne(e){const t=Le.c(11);let o,a,n;t[0]!==e?({className:o,width:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const i=n===void 0?"wide":n,l=cne[i];let c;t[4]!==o||t[5]!==l?(c=qt("mx-auto w-full px-4 py-6 md:px-8 md:py-8",l,o),t[4]=o,t[5]=l,t[6]=c):c=t[6];let u;return t[7]!==a||t[8]!==c||t[9]!==i?(u=w.jsx("div",{...a,"data-slot":"page-container","data-width":i,className:c}),t[7]=a,t[8]=c,t[9]=i,t[10]=u):u=t[10],u}function une(e){const t=Le.c(9),{children:o,actions:a,className:n}=e,i=Bv();let l;t[0]!==o||t[1]!==n||t[2]!==i?(l=i?w.jsx(wF,{after:"page",parent:{label:o}}):w.jsx("div",{"data-slot":"page-title",className:qt("flex flex-wrap items-center justify-between gap-3",n),children:w.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o})}),t[0]=o,t[1]=n,t[2]=i,t[3]=l):l=t[3];let c;t[4]!==a?(c=a&&w.jsx(CF,{children:a}),t[4]=a,t[5]=c):c=t[5];let u;return t[6]!==l||t[7]!==c?(u=w.jsxs(w.Fragment,{children:[l,c]}),t[6]=l,t[7]=c,t[8]=u):u=t[8],u}function CF(e){const t=Le.c(3),{children:o,secondary:a}=e;let n;if(t[0]!==o||t[1]!==a){const i=w.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]});n=w.jsx(nn.Topbar.Right.Portal,{fallback:i,children:i}),t[0]=o,t[1]=a,t[2]=n}else n=t[2];return n}function pne(e){const t=Le.c(28),{breadcrumbs:o,scope:a,leading:n,actions:i,navigation:l,trailingActions:c}=e;let u;t[0]!==o||t[1]!==a?(u=w.jsx(nne,{items:o,scope:a}),t[0]=o,t[1]=a,t[2]=u):u=t[2];let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=w.jsx(nn.Topbar.Left.Target,{}),t[3]=p):p=t[3];let h;t[4]!==n||t[5]!==u?(h=w.jsxs(nn.Topbar.Left,{className:"flex-1 gap-2",children:[n,u,p]}),t[4]=n,t[5]=u,t[6]=h):h=t[6];let m;t[7]!==i?(m=w.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:i}),t[7]=i,t[8]=m):m=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=w.jsx(nn.Topbar.Right.Target,{className:"flex items-center gap-2 before:hidden before:h-4 before:w-px before:shrink-0 before:bg-border peer-[:not(:empty)]:before:block"}),t[9]=f):f=t[9];let v;t[10]!==m||t[11]!==c?(v=w.jsxs(nn.Topbar.Right,{className:"shrink-0 gap-2",children:[m,f,c]}),t[10]=m,t[11]=c,t[12]=v):v=t[12];let b;t[13]!==h||t[14]!==v?(b=w.jsxs(nn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[h,v]}),t[13]=h,t[14]=v,t[15]=b):b=t[15];let S;t[16]!==l?(S=w.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:l}),t[16]=l,t[17]=S):S=t[17];let x;t[18]===Symbol.for("react.memo_cache_sentinel")?(x=w.jsx(nn.Toolbar.Left.Target,{}),t[18]=x):x=t[18];let T;t[19]!==S?(T=w.jsxs(nn.Toolbar.Left,{children:[S,x]}),t[19]=S,t[20]=T):T=t[20];let _;t[21]===Symbol.for("react.memo_cache_sentinel")?(_=w.jsx(nn.Toolbar.Center,{className:"@max-xl/panel-toolbar:order-last @max-xl/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:w.jsx(nn.Toolbar.Center.Target,{})}),t[21]=_):_=t[21];let P;t[22]===Symbol.for("react.memo_cache_sentinel")?(P=w.jsx(nn.Toolbar.Right,{children:w.jsx(nn.Toolbar.Right.Target,{})}),t[22]=P):P=t[22];let k;t[23]!==T?(k=w.jsxs(nn.Toolbar,{children:[T,_,P]}),t[23]=T,t[24]=k):k=t[24];let E;return t[25]!==k||t[26]!==b?(E=w.jsxs(w.Fragment,{children:[b,k]}),t[25]=k,t[26]=b,t[27]=E):E=t[27],E}function mne(e){const t=Le.c(11);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);const n=kr();let i;t[3]!==n?(i=n("page.views"),t[3]=n,t[4]=i):i=t[4];let l;t[5]!==o?(l=qt("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",o),t[5]=o,t[6]=l):l=t[6];let c;return t[7]!==a||t[8]!==i||t[9]!==l?(c=w.jsx("nav",{"aria-label":i,...a,"data-slot":"page-tabs",className:l}),t[7]=a,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function hne(e){const t=Le.c(14);let o,a,n,i;t[0]!==e?({active:o,asChild:i,className:a,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);const l=i===void 0?!1:i,c=l?void 0:"button",u=l&&o?"page":void 0,p=l?void 0:o;let h;t[5]!==a?(h=qt("shrink-0",a),t[5]=a,t[6]=h):h=t[6];let m;return t[7]!==l||t[8]!==n||t[9]!==c||t[10]!==u||t[11]!==p||t[12]!==h?(m=w.jsx(Al,{asChild:l,variant:"tab",size:"sm",...n,type:c,"aria-current":u,"aria-pressed":p,"data-slot":"page-tab",className:h}),t[7]=l,t[8]=n,t[9]=c,t[10]=u,t[11]=p,t[12]=h,t[13]=m):m=t[13],m}const ld=Object.assign(sne,{Header:pne,Tabs:mne,Tab:hne,Actions:CF,Content:lne,Container:dne,Title:une,Breadcrumbs:ine});var ge=typeof window<"u"?window:void 0,ia=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(ia.self=ia),typeof File>"u"&&(ia.File=function(){});var En=ia?.navigator,ze=ia?.document,wa=ia?.location,cT=ia?.fetch,dT=ia!=null&&ia.XMLHttpRequest&&"withCredentials"in new ia.XMLHttpRequest?ia.XMLHttpRequest:void 0,$D=ia?.AbortController,gne=ia?.CompressionStream,rn=En?.userAgent,et=ge??{},qD="1.372.3",Ga={DEBUG:!1,LIB_VERSION:qD,LIB_NAME:"web",JS_SDK_VERSION:qD};function VD(e,t,o,a,n,i,l){try{var c=e[i](l),u=c.value}catch(p){return void o(p)}c.done?t(u):Promise.resolve(u).then(a,n)}function Kn(e){return function(){var t=this,o=arguments;return new Promise((function(a,n){var i=e.apply(t,o);function l(u){VD(i,a,n,l,c,"next",u)}function c(u){VD(i,a,n,l,c,"throw",u)}l(void 0)}))}}function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var o=arguments[t];for(var a in o)({}).hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Oe.apply(null,arguments)}function kF(e,t){if(e==null)return{};var o={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;o[a]=e[a]}return o}function uT(){return uT=Kn((function*(e,t,o){t===void 0&&(t=!0);try{var a=new CompressionStream("gzip"),n=a.writable.getWriter(),i=n.write(new TextEncoder().encode(e)).then((()=>n.close())).catch((function(){var u=Kn((function*(p){try{yield n.abort(p)}catch{}throw p}));return function(p){return u.apply(this,arguments)}})()),l=new Response(a.readable).blob(),[c]=yield Promise.all([l,i]);return c}catch(u){if(o!=null&&o.rethrow)throw u;return t&&console.error("Failed to gzip compress data",u),null}})),uT.apply(this,arguments)}var fne=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],HD=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var o=e.toLowerCase();return fne.concat(t).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},vne=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function xt(e,t){return e.indexOf(t)!==-1}var Fv=function(e){return e.trim()},pT=function(e){return e.replace(/^\$/,"")},EF=Object.prototype,PF=EF.hasOwnProperty,jv=EF.toString,Nt=Array.isArray||function(e){return jv.call(e)==="[object Array]"},xi=e=>typeof e=="function",Bo=e=>e===Object(e)&&!Nt(e),Xc=e=>{if(Bo(e)){for(var t in e)if(PF.call(e,t))return!1;return!0}return!1},qe=e=>e===void 0,xo=e=>jv.call(e)=="[object String]",ef=e=>xo(e)&&e.trim().length===0,Ni=e=>e===null,Ct=e=>qe(e)||Ni(e),er=e=>jv.call(e)=="[object Number]"&&e==e,Gc=e=>er(e)&&e>0,$r=e=>jv.call(e)==="[object Boolean]",bne=e=>e instanceof FormData,yne=e=>xt(vne,e);function AF(e){return e===null||typeof e!="object"}function Mf(e,t){return{}.toString.call(e)==="[object "+t+"]"}function Ix(e){return typeof Event<"u"&&(function(t,o){try{return t instanceof o}catch{return!1}})(e,Event)}var Sne=[!0,"true",1,"1","yes"],m0=e=>xt(Sne,e),wne=[!1,"false",0,"0","no"];function qr(e,t,o,a,n){return t>o&&(a.warn("min cannot be greater than max."),t=o),er(e)?e>o?(a.warn(" cannot be greater than max: "+o+". Using max value instead."),o):t>e?(a.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(a.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+n),qr(n||o,t,o,a))}let Tne=class{constructor(t){this.$t={},this.zt=t.zt,this.Ut=qr(t.bucketSize,0,100,t.Gt),this.Wt=qr(t.refillRate,0,this.Ut,t.Gt),this.Xt=qr(t.refillInterval,0,864e5,t.Gt)}Jt(t,o){var a=Math.floor((o-t.lastAccess)/this.Xt);a>0&&(t.tokens=Math.min(t.tokens+a*this.Wt,this.Ut),t.lastAccess=t.lastAccess+a*this.Xt)}consumeRateLimit(t){var o,a=Date.now(),n=String(t),i=this.$t[n];return i?this.Jt(i,a):this.$t[n]=i={tokens:this.Ut,lastAccess:a},i.tokens===0||(i.tokens--,i.tokens===0&&((o=this.zt)==null||o.call(this,t)),i.tokens===0)}stop(){this.$t={}}};var Rg,GD,h0,An="Mobile",Nf="iOS",Pi="Android",wd="Tablet",RF=Pi+" "+wd,DF="iPad",OF="Apple",MF=OF+" Watch",cp="Safari",Td="BlackBerry",NF="Samsung",IF=NF+"Browser",LF=NF+" Internet",kl="Chrome",_ne=kl+" OS",BF=kl+" "+Nf,Lx="Internet Explorer",FF=Lx+" "+An,Bx="Opera",xne=Bx+" Mini",Fx="Edge",jF="Microsoft "+Fx,cd="Firefox",zF=cd+" "+Nf,Ap="Nintendo",Rp="PlayStation",dd="Xbox",UF=Pi+" "+An,$F=An+" "+cp,Xu="Windows",mT=Xu+" Phone",WD="Nokia",hT="Ouya",qF="Generic",Cne=qF+" "+An.toLowerCase(),VF=qF+" "+wd.toLowerCase(),gT="Konqueror",Ha="(\\d+(\\.\\d+)?)",g0=new RegExp("Version/"+Ha),kne=new RegExp(dd,"i"),Ene=new RegExp(Rp+" \\w+","i"),Pne=new RegExp(Ap+" \\w+","i"),jx=new RegExp(Td+"|PlayBook|BB10","i"),Ane={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},HF=function(e,t){return t=t||"",xt(e," OPR/")&&xt(e,"Mini")?xne:xt(e," OPR/")?Bx:jx.test(e)?Td:xt(e,"IE"+An)||xt(e,"WPDesktop")?FF:xt(e,IF)?LF:xt(e,Fx)||xt(e,"Edg/")?jF:xt(e,"FBIOS")?"Facebook "+An:xt(e,"UCWEB")||xt(e,"UCBrowser")?"UC Browser":xt(e,"CriOS")?BF:xt(e,"CrMo")||xt(e,kl)?kl:xt(e,Pi)&&xt(e,cp)?UF:xt(e,"FxiOS")?zF:xt(e.toLowerCase(),gT.toLowerCase())?gT:((o,a)=>a&&xt(a,OF)||(function(n){return xt(n,cp)&&!xt(n,kl)&&!xt(n,Pi)})(o))(e,t)?xt(e,An)?$F:cp:xt(e,cd)?cd:xt(e,"MSIE")||xt(e,"Trident/")?Lx:xt(e,"Gecko")?cd:""},Rne={[FF]:[new RegExp("rv:"+Ha)],[jF]:[new RegExp(Fx+"?\\/"+Ha)],[kl]:[new RegExp("("+kl+"|CrMo)\\/"+Ha)],[BF]:[new RegExp("CriOS\\/"+Ha)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Ha)],[cp]:[g0],[$F]:[g0],[Bx]:[new RegExp("(Opera|OPR)\\/"+Ha)],[cd]:[new RegExp(cd+"\\/"+Ha)],[zF]:[new RegExp("FxiOS\\/"+Ha)],[gT]:[new RegExp("Konqueror[:/]?"+Ha,"i")],[Td]:[new RegExp(Td+" "+Ha),g0],[UF]:[new RegExp("android\\s"+Ha,"i")],[LF]:[new RegExp(IF+"\\/"+Ha)],[Lx]:[new RegExp("(rv:|MSIE )"+Ha)],Mozilla:[new RegExp("rv:"+Ha)]},Dne=function(e,t){var o=HF(e,t),a=Rne[o];if(qe(a))return null;for(var n=0;a.length>n;n++){var i=e.match(a[n]);if(i)return parseFloat(i[i.length-2])}return null},KD=[[new RegExp(dd+"; "+dd+" (.*?)[);]","i"),e=>[dd,e&&e[1]||""]],[new RegExp(Ap,"i"),[Ap,""]],[new RegExp(Rp,"i"),[Rp,""]],[jx,[Td,""]],[new RegExp(Xu,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[mT,""];if(new RegExp(An).test(t)&&!/IEMobile\b/.test(t))return[Xu+" "+An,""];var o=/Windows NT ([0-9.]+)/i.exec(t);if(o&&o[1]){var a=Ane[o[1]]||"";return/arm/i.test(t)&&(a="RT"),[Xu,a]}return[Xu,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[Nf,[e[3],e[4],e[5]||"0"].join(".")]:[Nf,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=qe(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Pi+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Pi+")","i"),e=>e&&e[2]?[Pi,[e[2],e[3],e[4]||"0"].join(".")]:[Pi,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[_ne,""]],[/Linux|debian/i,["Linux",""]]],YD=function(e){return Pne.test(e)?Ap:Ene.test(e)?Rp:kne.test(e)?dd:new RegExp(hT,"i").test(e)?hT:new RegExp("("+mT+"|WPDesktop)","i").test(e)?mT:/iPad/.test(e)?DF:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?MF:jx.test(e)?Td:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(WD,"i").test(e)?WD:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(An).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Pi:RF:new RegExp("(pda|"+An+")","i").test(e)?Cne:new RegExp(wd,"i").test(e)&&!new RegExp(wd+" pc","i").test(e)?VF:""},One=e=>e instanceof Error,GF={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},Mne=GF.info;function WF(e){if($r(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Nt(e))return{arrayValue:{values:e.map((t=>WF(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function ZD(e){var t=[];for(var o in e){var a=e[o];Ni(a)||qe(a)||t.push({key:o,value:WF(a)})}return t}function Nne(e){var t=globalThis._posthogChunkIds;if(t){var o=Object.keys(t);return h0&&o.length===GD||(GD=o.length,h0=o.reduce(((a,n)=>{Rg||(Rg={});var i=Rg[n];if(i)a[i[0]]=i[1];else for(var l=e(n),c=l.length-1;c>=0;c--){var u=l[c],p=u?.filename,h=t[n];if(p&&h){a[p]=h,Rg[n]=[p,h];break}}return a}),{})),h0}}class Ine{constructor(t,o,a){a===void 0&&(a=[]),this.coercers=t,this.stackParser=o,this.modifiers=a}buildFromUnknown(t,o){o===void 0&&(o={});var a=o&&o.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(a,o,0).apply(t),i=this.buildParsingContext(o),l=this.parseStacktrace(n,i);return{$exception_list:this.convertToExceptionList(l,a),$exception_level:"error"}}modifyFrames(t){var o=this;return Kn((function*(){for(var a of t)a.stacktrace&&a.stacktrace.frames&&Nt(a.stacktrace.frames)&&(a.stacktrace.frames=yield o.applyModifiers(a.stacktrace.frames));return t}))()}coerceFallback(t){var o;return{type:"Error",value:"Unknown error",stack:(o=t.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(t,o){var a,n;return t.cause!=null&&(a=this.parseStacktrace(t.cause,o)),t.stack!=""&&t.stack!=null&&(n=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Oe({},t,{cause:a,stack:n})}applyChunkIds(t,o){return t.map((a=>(a.filename&&o&&(a.chunk_id=o[a.filename]),a)))}applyCoercers(t,o){for(var a of this.coercers)if(a.match(t))return a.coerce(t,o);return this.coerceFallback(o)}applyModifiers(t){var o=this;return Kn((function*(){var a=t;for(var n of o.modifiers)a=yield n(a);return a}))()}convertToExceptionList(t,o){var a,n,i,l={type:t.type,value:t.value,mechanism:{type:(a=o.type)!==null&&a!==void 0?a:"generic",handled:(n=o.handled)===null||n===void 0||n,synthetic:(i=t.synthetic)!==null&&i!==void 0&&i}};t.stack&&(l.stacktrace={type:"raw",frames:t.stack});var c=[l];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Oe({},o,{handled:!0}))),c}buildParsingContext(t){var o;return{chunkIdMap:Nne(this.stackParser),skipFirstLines:(o=t.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(t,o,a){a===void 0&&(a=0);var n=(i,l)=>{if(4>=l){var c=this.buildCoercingContext(t,o,l);return this.applyCoercers(i,c)}};return Oe({},o,{syntheticException:a==0?o.syntheticException:void 0,mechanism:t,apply:i=>n(i,a),next:i=>n(i,a+1)})}}var _d="?";function fT(e,t,o,a,n){var i={platform:e,filename:t,function:o==="<anonymous>"?_d:o,in_app:!0};return qe(a)||(i.lineno=a),qe(n)||(i.colno=n),i}var KF=(e,t)=>{var o=e.indexOf("safari-extension")!==-1,a=e.indexOf("safari-web-extension")!==-1;return o||a?[e.indexOf("@")!==-1?e.split("@")[0]:_d,o?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},Lne=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Bne=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Fne=/\((\S*)(?::(\d+))(?::(\d+))\)/,jne=(e,t)=>{var o=Lne.exec(e);if(o){var[,a,n,i]=o;return fT(t,a,_d,+n,+i)}var l=Bne.exec(e);if(l){if(l[2]&&l[2].indexOf("eval")===0){var c=Fne.exec(l[2]);c&&(l[2]=c[1],l[3]=c[2],l[4]=c[3])}var[u,p]=KF(l[1]||_d,l[2]);return fT(t,p,u,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},zne=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Une=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$ne=(e,t)=>{var o=zne.exec(e);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=Une.exec(o[3]);a&&(o[1]=o[1]||"eval",o[3]=a[1],o[4]=a[2],o[5]="")}var n=o[3],i=o[1]||_d;return[i,n]=KF(i,n),fT(t,n,i,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},QD=/\(error: (.*)\)/;let qne=class{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,o){var a=xo(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:a?t.stack:void 0,cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var o=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?o+": "+t.message:o}isDOMException(t){return Mf(t,"DOMException")}isDOMError(t){return Mf(t,"DOMError")}};class Vne{match(t){return(o=>o instanceof Error)(t)}coerce(t,o){return{type:this.getType(t),value:this.getMessage(t,o),stack:this.getStack(t),cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,o){var a=t.message;return String(a.error&&typeof a.error.message=="string"?a.error.message:a)}getStack(t){return t.stacktrace||t.stack||void 0}}let Hne=class{constructor(){}match(t){return Mf(t,"ErrorEvent")&&t.error!=null}coerce(t,o){var a;return o.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}};var Gne=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let Wne=class{match(t){return typeof t=="string"}coerce(t,o){var a,[n,i]=this.getInfos(t);return{type:n??"Error",value:i??t,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}getInfos(t){var o="Error",a=t,n=t.match(Gne);return n&&(o=n[1],a=n[2]),[o,a]}};var Kne=["fatal","error","warning","log","info","debug"];function YF(e,t){t===void 0&&(t=40);var o=Object.keys(e);if(o.sort(),!o.length)return"[object has no keys]";for(var a=o.length;a>0;a--){var n=o.slice(0,a).join(", ");if(t>=n.length)return a===o.length?n:n.length>t?n.slice(0,t)+"...":n}return""}let Yne=class{match(t){return typeof t=="object"&&t!==null}coerce(t,o){var a,n=this.getErrorPropertyFromObject(t);return n?o.apply(n):{type:this.getType(t),value:this.getValue(t),stack:(a=o.syntheticException)==null?void 0:a.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return Ix(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var o="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(o+=" with message: '"+t.message+"'"),o}if("message"in t&&typeof t.message=="string")return t.message;var a=this.getObjectClassName(t);return(a&&a!=="Object"?"'"+a+"'":"Object")+" captured as exception with keys: "+YF(t)}isSeverityLevel(t){return xo(t)&&!ef(t)&&Kne.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var o in t)if({}.hasOwnProperty.call(t,o)){var a=t[o];if(One(a))return a}}getObjectClassName(t){try{var o=Object.getPrototypeOf(t);return o?o.constructor.name:void 0}catch{return}}},Zne=class{match(t){return Ix(t)}coerce(t,o){var a,n=t.constructor.name;return{type:n,value:n+" captured as exception with keys: "+YF(t),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Qne=class{match(t){return AF(t)}coerce(t,o){var a;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Jne=class{match(t){return Mf(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!Ix(t))return!1;try{var o=t.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(t,o){var a,n=this.getUnhandledRejectionReason(t);return AF(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}:o.apply(n)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}};var If="$message",Lf="$timestamp",Xne=new Set([If,Lf]),f0={enabled:!0,max_bytes:32768};function Bf(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:f0.enabled,max_bytes:tre(e.max_bytes,f0.max_bytes)}:Oe({},f0)}let ere=class{constructor(t){this.Kt=[],this.Qt=0,this.Bt=Bf(t)}setConfig(t){this.Bt=Bf(t),this.er()}add(t){var o=(function(n){var i=(function(h){var m=new WeakSet;try{return JSON.stringify(h,((f,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(m.has(v))return"[Circular]";m.add(v)}return v}}))}catch{return}})(n);if(i)try{var l=JSON.parse(i);if(!Bo(l))return;var c=l,u=c[If],p=c[Lf];return!xo(u)||u.trim().length===0||!xo(p)&&!er(p)?void 0:{step:c,json:i}}catch{return}})(t);if(o){var a=(function(n){if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length;for(var i=encodeURIComponent(n),l=0,c=0;i.length>c;c++)i[c]==="%"?(l+=1,c+=2):l+=1;return l})(o.json);a>this.Bt.max_bytes||(this.Kt.push({step:o.step,bytes:a}),this.Qt+=a,this.er())}}getAttachable(){return this.Kt.map((t=>t.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}};function tre(e,t){if(!er(e)||e===1/0||e===-1/0)return t;var o=Math.floor(e);return 0>o?t:o}var ZF=function(e,t){var{debugEnabled:o}=t===void 0?{}:t,a={C(n){if(ge&&(Ga.DEBUG||et.POSTHOG_DEBUG||o)&&!qe(ge.console)&&ge.console){for(var i=("__rrweb_original__"in ge.console[n])?ge.console[n].__rrweb_original__:ge.console[n],l=arguments.length,c=new Array(l>1?l-1:0),u=1;l>u;u++)c[u-1]=arguments[u];i(e,...c)}},info(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];a.C("log",...i)},warn(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];a.C("warn",...i)},error(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];a.C("error",...i)},critical(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];console.error(e,...i)},uninitializedWarning(n){a.error("You must initialize PostHog before calling "+n)},createLogger:(n,i)=>ZF(e+" "+n,i)};return a},Ue=ZF("[PostHog.js]"),So=Ue.createLogger,ore=So("[ExternalScriptsLoader]"),v0=(e,t,o)=>{if(e.config.disable_external_dependency_loading)return ore.warn(t+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var a=ze?.querySelectorAll("script");if(a){for(var n,i=function(){if(a[l].src===t){var u=a[l];return u.__posthog_loading_callback_fired?{v:o()}:(u.addEventListener("load",(p=>{u.__posthog_loading_callback_fired=!0,o(void 0,p)})),u.onerror=p=>o(p),{v:void 0})}},l=0;a.length>l;l++)if(n=i())return n.v}var c=()=>{if(!ze)return o("document not found");var u=ze.createElement("script");if(u.type="text/javascript",u.crossOrigin="anonymous",u.src=t,u.onload=m=>{u.__posthog_loading_callback_fired=!0,o(void 0,m)},u.onerror=m=>o(m),e.config.prepare_external_dependency_script&&(u=e.config.prepare_external_dependency_script(u)),!u)return o("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")ze.head.appendChild(u);else{var p,h=ze.querySelectorAll("body > script");h.length>0?(p=h[0].parentNode)==null||p.insertBefore(u,h[0]):ze.body.appendChild(u)}};ze!=null&&ze.body?c():ze?.addEventListener("DOMContentLoaded",c)};et.__PosthogExtensions__=et.__PosthogExtensions__||{},et.__PosthogExtensions__.loadExternalDependency=(e,t,o)=>{if(t!=="remote-config"){var a;if(e.config.__preview_external_dependency_versioned_paths)a=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var n="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var i=3e5;n=n+"&t="+Math.floor(Date.now()/i)*i}a=e.requestRouter.endpointFor("assets",n)}v0(e,a,o)}else{var l=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");v0(e,l,o)}},et.__PosthogExtensions__.loadSiteApp=(e,t,o)=>{var a=e.requestRouter.endpointFor("api",t);v0(e,a,o)};var QF="$people_distinct_id",Ff="$device_id",ep="__alias",tp="__timers",vT="$autocapture_disabled_server_side",bT="$heatmaps_enabled_server_side",yT="$exception_capture_enabled_server_side",ST="$error_tracking_suppression_rules",wT="$error_tracking_capture_extension_exceptions",TT="$web_vitals_enabled_server_side",zx="$dead_clicks_enabled_server_side",_T="$product_tours_enabled_server_side",xT="$web_vitals_allowed_metrics",op="$session_recording_remote_config",JF="$replay_override_sampling",XF="$replay_override_linked_flag",ej="$replay_override_url_trigger",tj="$replay_override_event_trigger",jf="$sesid",Ux="$session_is_sampled",ed="$enabled_feature_flags",tf="$active_feature_flags",ap="$early_access_features",CT="$feature_flag_details",kT="$feature_flag_payloads",ET="$feature_flag_request_id",_i="$override_feature_flags",Wc="$override_feature_flag_payloads",np="$stored_person_properties",fl="$stored_group_properties",PT="$surveys",AT="$surveys_activated",of="ph_product_tours",dp="$flag_call_reported",RT="$flag_call_reported_session_id",DT="$feature_flag_errors",zf="$feature_flag_evaluated_at",pr="$user_state",OT="$client_session_props",MT="$capture_rate_limit",NT="$initial_campaign_params",IT="$initial_referrer_info",Uf="$initial_person_info",$f="$epp",oj="__POSTHOG_TOOLBAR__",Dg="$posthog_cookieless",aj="$sdk_debug_extensions_init_method",nj="$sdk_debug_extensions_init_time_ms",rj="$sdk_debug_recording_script_not_loaded",$x="PostHog loadExternalDependency extension not found.",vl="on_reject",Ci="always",Lc="anonymous",Bc="identified",LT="identified_only",qf="visibilitychange",Vf="beforeunload",Kc="$pageview",b0="$pageleave",y0="$identify",JD="$groupidentify";function Og(e,t){Nt(e)&&e.forEach(t)}function go(e,t){if(!Ct(e))if(Nt(e))e.forEach(t);else if(bne(e))e.forEach(((a,n)=>t(a,n)));else for(var o in e)PF.call(e,o)&&t(e[o],o)}var Oo=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;t>a;a++)o[a-1]=arguments[a];for(var n of o)for(var i in n)n[i]!==void 0&&(e[i]=n[i]);return e};function af(e){for(var t=Object.keys(e),o=t.length,a=new Array(o);o--;)a[o]=[t[o],e[t[o]]];return a}var XD=function(e){try{return e()}catch{return}},are=function(e){return function(){try{for(var t=arguments.length,o=new Array(t),a=0;t>a;a++)o[a]=arguments[a];return e.apply(this,o)}catch(n){Ue.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ue.critical(n)}}},qx=function(e){var t={};return go(e,(function(o,a){(xo(o)&&o.length>0||er(o))&&(t[a]=o)})),t},nre=["herokuapp.com","vercel.app","netlify.app"];function rre(e){var t=e?.hostname;if(!xo(t))return!1;var o=t.split(".").slice(-2).join(".");for(var a of nre)if(o===a)return!1;return!0}function Zo(e,t,o,a){var{capture:n=!1,passive:i=!0}=a??{};e?.addEventListener(t,o,{capture:n,passive:i})}function ij(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return er(e)&&isFinite(e)&&Math.floor(e)===e});class Hf{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,o,a,n){if(!Number.isInteger(t)||!Number.isInteger(o)||!Number.isInteger(a)||!Number.isInteger(n)||0>t||0>o||0>a||0>n||t>0xffffffffffff||o>4095||a>1073741823||n>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=t/Math.pow(2,40),i[1]=t/Math.pow(2,32),i[2]=t/Math.pow(2,24),i[3]=t/Math.pow(2,16),i[4]=t/Math.pow(2,8),i[5]=t,i[6]=112|o>>>8,i[7]=o,i[8]=128|a>>>24,i[9]=a>>>16,i[10]=a>>>8,i[11]=a,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,new Hf(i)}toString(){for(var t="",o=0;this.bytes.length>o;o++)t=t+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Hf(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var o=0;16>o;o++){var a=this.bytes[o]-t.bytes[o];if(a!==0)return Math.sign(a)}return 0}}class ire{constructor(){this.I=0,this.S=0,this.k=new sre}generate(){var t=this.generateOrAbort();if(qe(t)){this.I=0;var o=this.generateOrAbort();if(qe(o))throw new Error("Could not generate UUID after timestamp reset");return o}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return Hf.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var eO,sj=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};ge&&!qe(ge.crypto)&&crypto.getRandomValues&&(sj=e=>crypto.getRandomValues(e));class sre{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(sj(this.T),this.N=0),this.T[this.N++]}}var ws=()=>lre().toString(),lre=()=>(eO||(eO=new ire)).generate(),Lu="",cre=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Ur={R:()=>!!ze,B(e){Ue.error("cookieStore error: "+e)},O(e){if(ze){try{for(var t=e+"=",o=ze.cookie.split(";").filter((i=>i.length)),a=0;o.length>a;a++){for(var n=o[a];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(t)===0)return decodeURIComponent(n.substring(t.length,n.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(Ur.O(e))||{}}catch{}return t},M(e,t,o,a,n){if(ze)try{var i="",l="",c=(function(h,m){if(m){var f=(function(b,S){if(S===void 0&&(S=ze),Lu)return Lu;if(!S||["localhost","127.0.0.1"].includes(b))return"";for(var x=b.split("."),T=Math.min(x.length,8),_="dmn_chk_"+ws();!Lu&&T--;){var P=x.slice(T).join("."),k=_+"=1;domain=."+P+";path=/";S.cookie=k+";max-age=3",S.cookie.includes(_)&&(S.cookie=k+";max-age=0",Lu=P)}return Lu})(h);if(!f){var v=(b=>{var S=b.match(cre);return S?S[0]:""})(h);v!==f&&Ue.info("Warning: cookie subdomain discovery mismatch",v,f),f=v}return f?"; domain=."+f:""}return""})(ze.location.hostname,a);if(o){var u=new Date;u.setTime(u.getTime()+864e5*o),i="; expires="+u.toUTCString()}n&&(l="; secure");var p=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+c+l;return p.length>3686.4&&Ue.warn("cookieStore warning: large cookie, len="+p.length),ze.cookie=p,p}catch{return}},F(e,t){if(ze!=null&&ze.cookie)try{Ur.M(e,"",-1,t)}catch{return}}},S0=null,_o={R(){if(!Ni(S0))return S0;var e=!0;if(qe(ge))e=!1;else try{var t="__mplssupport__";_o.M(t,"xyz"),_o.O(t)!=='"xyz"'&&(e=!1),_o.F(t)}catch{e=!1}return e||Ue.error("localStorage unsupported; falling back to cookie store"),S0=e,e},B(e){Ue.error("localStorage error: "+e)},O(e){try{return ge?.localStorage.getItem(e)}catch(t){_o.B(t)}return null},Z(e){try{return JSON.parse(_o.O(e))||{}}catch{}return null},M(e,t){try{ge?.localStorage.setItem(e,JSON.stringify(t))}catch(o){_o.B(o)}},F(e){try{ge?.localStorage.removeItem(e)}catch(t){_o.B(t)}}},dre=[Ff,"distinct_id",jf,Ux,$f,Uf,pr],Mg={},ure={R:()=>!0,B(e){Ue.error("memoryStorage error: "+e)},O:e=>Mg[e]||null,Z:e=>Mg[e]||null,M(e,t){Mg[e]=t},F(e){delete Mg[e]}},dl=null,Ta={R(){if(!Ni(dl))return dl;if(dl=!0,qe(ge))dl=!1;else try{var e="__support__";Ta.M(e,"xyz"),Ta.O(e)!=='"xyz"'&&(dl=!1),Ta.F(e)}catch{dl=!1}return dl},B(e){Ue.error("sessionStorage error: ",e)},O(e){try{return ge?.sessionStorage.getItem(e)}catch(t){Ta.B(t)}return null},Z(e){try{return JSON.parse(Ta.O(e))||null}catch{}return null},M(e,t){try{ge?.sessionStorage.setItem(e,JSON.stringify(t))}catch(o){Ta.B(o)}},F(e){try{ge?.sessionStorage.removeItem(e)}catch(t){Ta.B(t)}}};class pre{constructor(t){this._instance=t}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===Ci||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===vl}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(t){this.nr.M(this.sr,t?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:o,consent_persistence_name:a}=this._instance.config;return a||(o?o+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return m0(t)?1:xt(wne,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,o=t==="localStorage"?_o:Ur;if(!this.ar||this.ar!==o){this.ar=o;var a=t==="localStorage"?Ur:_o;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(m0(a.O(this.sr))),a.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[En?.doNotTrack,En?.msDoNotTrack,et.doNotTrack].some((t=>m0(t)))}}var Ng=So("[Dead Clicks]"),mre=()=>!0,hre=e=>{var t,o=!((t=e.instance.persistence)==null||!t.get_property(zx)),a=e.instance.config.capture_dead_clicks;return $r(a)?a:!!Bo(a)||o};class tO{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,o,a){this.instance=t,this.isEnabled=o,this.onCapture=a,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[zx]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var o,a;(o=et.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&t(),(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?Ng.error("failed to load script",n):t()}))}hr(){var t;if(ze){if(!this.lr&&(t=et.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var o=Bo(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=et.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(ze),Ng.info("starting...")}}else Ng.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Ng.info("stopping..."))}}var w0=So("[SegmentIntegration]"),lj="posthog-js";function cj(e,t){var{organization:o,projectId:a,prefix:n,severityAllowList:i=["error"],sendExceptionsToPostHog:l=!0}=t===void 0?{}:t;return c=>{var u,p,h,m,f;if(i!=="*"&&!i.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var b,S=((u=c.exception)==null?void 0:u.values)||[],x=S.map((_=>Oe({},_,{stacktrace:_.stacktrace?Oe({},_.stacktrace,{type:"raw",frames:(_.stacktrace.frames||[]).map((P=>Oe({},P,{platform:"web:javascript"})))}):void 0}))),T={$exception_message:((p=S[0])==null?void 0:p.value)||c.message,$exception_type:(h=S[0])==null?void 0:h.type,$exception_level:c.level,$exception_list:x,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((m=S[0])==null?void 0:m.value)||c.message,$sentry_exception_type:(f=S[0])==null?void 0:f.type,$sentry_tags:c.tags};return o&&a&&(T.$sentry_url=(n||"https://sentry.io/organizations/")+o+"/issues/?project="+a+"&query="+c.event_id),l&&((b=e.exceptions)==null||b.sendExceptionEvent(T)),c}}class gre{constructor(t,o,a,n,i,l){this.name=lj,this.setupOnce=function(c){c(cj(t,{organization:o,projectId:a,prefix:n,severityAllowList:i,sendExceptionsToPostHog:l==null||l}))}}}class oO{constructor(t){this.cr=(o,a,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(Ue.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,o){var a,n=this.gr(t,o);return this.dr={pathname:(a=ge?.location.pathname)!==null&&a!==void 0?a:"",pageViewId:o,timestamp:t},this._instance.scrollManager.resetContext(),n}doPageLeave(t){var o;return this.gr(t,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,o){var a=this.dr;if(!a)return{$pageview_id:o};var n={$pageview_id:o,$prev_pageview_id:a.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:l,lastScrollY:c,maxScrollY:u,maxContentHeight:p,lastContentY:h,maxContentY:m}=i;if(!(qe(l)||qe(c)||qe(u)||qe(p)||qe(h)||qe(m))){l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u),p=Math.ceil(p),h=Math.ceil(h),m=Math.ceil(m);var f=l>1?qr(c/l,0,1,Ue):1,v=l>1?qr(u/l,0,1,Ue):1,b=p>1?qr(h/p,0,1,Ue):1,S=p>1?qr(m/p,0,1,Ue):1;n=Oo(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:u,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:h,$prev_pageview_last_content_percentage:b,$prev_pageview_max_content:m,$prev_pageview_max_content_percentage:S})}}return a.pathname&&(n.$prev_pageview_pathname=a.pathname),a.timestamp&&(n.$prev_pageview_duration=(t.getTime()-a.timestamp.getTime())/1e3),n}}var fre={[QF]:{exposure:"hidden"},[ep]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[tp]:{exposure:"hidden"},[vT]:{exposure:"event"},[bT]:{exposure:"hidden"},[yT]:{exposure:"event"},[ST]:{exposure:"hidden"},[wT]:{exposure:"event"},[TT]:{exposure:"event"},[zx]:{exposure:"event"},[_T]:{exposure:"hidden"},[xT]:{exposure:"event"},[op]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[jf]:{exposure:"hidden"},[Ux]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[ed]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Bo(e))return{};for(var t={},o=Object.keys(e),a=0;o.length>a;a++)t["$feature/"+o[a]]=e[o[a]];return t}},[tf]:{exposure:"event"},[ap]:{exposure:"hidden"},[CT]:{exposure:"hidden"},[kT]:{exposure:"event"},[ET]:{exposure:"event"},[_i]:{exposure:"event"},[Wc]:{exposure:"hidden"},[np]:{exposure:"hidden"},[fl]:{exposure:"hidden"},[PT]:{exposure:"hidden"},[AT]:{exposure:"event"},[of]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[dp]:{exposure:"hidden"},[RT]:{exposure:"hidden"},[DT]:{exposure:"hidden"},[zf]:{exposure:"hidden"},[pr]:{exposure:"hidden"},[OT]:{exposure:"hidden"},[MT]:{exposure:"hidden"},[NT]:{exposure:"hidden"},[IT]:{exposure:"hidden"},[Uf]:{exposure:"hidden"},[$f]:{exposure:"hidden"},[JF]:{exposure:"event"},[XF]:{exposure:"event"},[ej]:{exposure:"event"},[tj]:{exposure:"event"},[aj]:{exposure:"event"},[nj]:{exposure:"event"},[rj]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},vre=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Gf=e=>{var t=ze?.createElement("a");return qe(t)?null:(t.href=e,t)},Wf=function(e,t){for(var o,a=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;a.length>n;n++){var i=a[n].split("=");if(i[0]===t){o=i;break}}if(!Nt(o)||2>o.length)return"";var l=o[1];try{l=decodeURIComponent(l)}catch{Ue.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},Dp=function(e,t,o){if(!e||!t||!t.length)return e;for(var a=e.split("#"),n=a[1],i=(a[0]||"").split("?"),l=i[1],c=i[0],u=(l||"").split("&"),p=[],h=0;u.length>h;h++){var m=u[h].split("=");Nt(m)&&(t.includes(m[0])?p.push(m[0]+"="+o):p.push(u[h]))}var f=c;return l!=null&&(f+="?"+p.join("&")),n!=null&&(f+="#"+n),f},Kf=function(e,t){var o=e.match(new RegExp(t+"=([^&]*)"));return o?o[1]:null},Ig="https?://(.*)",xd=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],bre=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...xd],Op="<masked>",yre=["li_fat_id"];function dj(e,t,o){if(!ze)return{};var a,n=t?[...xd,...o||[]]:[],i=uj(Dp(ze.URL,n,Op),e),l=(a={},go(yre,(function(c){var u=Ur.O(c);a[c]=u||null})),a);return Oo(l,i)}function uj(e,t){var o=bre.concat(t||[]),a={};return go(o,(function(n){var i=Wf(e,n);a[n]=i||null})),a}function pj(e){var t=(function(i){return i?i.search(Ig+"google.([^/?]*)")===0?"google":i.search(Ig+"bing.com")===0?"bing":i.search(Ig+"yahoo.com")===0?"yahoo":i.search(Ig+"duckduckgo.com")===0?"duckduckgo":null:null})(e),o=t!="yahoo"?"q":"p",a={};if(!Ni(t)){a.$search_engine=t;var n=ze?Wf(ze.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function aO(){return navigator.language||navigator.userLanguage}var Yf="$direct";function mj(){return ze?.referrer||Yf}function hj(e,t){var o=e?[...xd,...t||[]]:[],a=wa?.href.substring(0,1e3);return{r:mj().substring(0,1e3),u:a?Dp(a,o,Op):void 0}}function gj(e){var t,{r:o,u:a}=e,n={$referrer:o,$referring_domain:o==null?void 0:o==Yf?Yf:(t=Gf(o))==null?void 0:t.host};if(a){n.$current_url=a;var i=Gf(a);n.$host=i?.host,n.$pathname=i?.pathname;var l=uj(a);Oo(n,l)}if(o){var c=pj(o);Oo(n,c)}return n}function fj(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function Sre(){try{return new Date().getTimezoneOffset()}catch{return}}var wre=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class T0{constructor(t,o){this.Bt=t,this.props={},this.mr=!1,this.yr=(a=>{var n="";return a.token&&(n=a.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),a.persistence_name?"ph_"+a.persistence_name:"ph_"+n+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&Ue.info("Persistence loaded",t.persistence,Oe({},this.props)),this.update_config(t,t,o),this.save()}isDisabled(){return!!this._r}br(t){wre.indexOf(t.persistence.toLowerCase())===-1&&(Ue.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var o=(function(n){n===void 0&&(n=[]);var i=[...dre,...n];return Oe({},_o,{Z(l){try{var c={};try{c=Ur.Z(l)||{}}catch{}var u=Oo(c,JSON.parse(_o.O(l)||"{}"));return _o.M(l,u),u}catch{}return null},M(l,c,u,p,h,m){try{_o.M(l,c,void 0,void 0,m);var f={};i.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Ur.M(l,f,u,p,h,m)}catch(v){_o.B(v)}},F(l,c){try{ge?.localStorage.removeItem(l),Ur.F(l,c)}catch(u){_o.B(u)}}})})(t.cookie_persisted_properties||[]),a=t.persistence.toLowerCase();return a==="localstorage"&&_o.R()?_o:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&Ta.R()?Ta:a==="memory"?ure:a==="cookie"?Ur:o.R()?o:Ur}wr(t){var o=t??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[zf];return!a||typeof a!="number"||Date.now()-a>o}properties(){var t={};return go(this.props,((o,a)=>{var n=(i=>{var l=fre[i];if(l)return l;for(var[c,u]of vre)if(i.indexOf(c)===0)return u})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===ed?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Oo(t,n.transformToEventProperties(o))}else n&&n.exposure!=="event"||(t[a]=o)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=Oo({},t))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,o,a){if(Bo(t)){qe(o)&&(o="None"),this.Ir=qe(a)?this.kr:a;var n=!1;if(go(t,((i,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==o||(this.Tr(l,i),n=!0)})),n)return this.save(),!0}return!1}register(t,o){if(Bo(t)){this.Ir=qe(o)?this.kr:o;var a=!1;if(go(t,((n,i)=>{t.hasOwnProperty(i)&&this.props[i]!==n&&(this.Tr(i,n),a=!0)})),a)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=dj(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);Xc(qx(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=ze?.referrer)?pj(t):{})}update_referrer_info(){var t;this.register_once({$referrer:mj(),$referring_domain:ze!=null&&ze.referrer&&((t=Gf(ze.referrer))==null?void 0:t.host)||Yf},void 0)}set_initial_person_info(){this.props[NT]||this.props[IT]||this.register_once({[Uf]:hj(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};go([IT,NT],(l=>{var c=this.props[l];c&&go(c,(function(u,p){t["$initial_"+pT(p)]=u}))}));var o,a,n=this.props[Uf];if(n){var i=(o=gj(n),a={},go(o,(function(l,c){a["$initial_"+pT(c)]=l})),a);Oo(t,i)}return t}safe_merge(t){return go(this.props,(function(o,a){a in t||(t[a]=o)})),t}update_config(t,o,a){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!a),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==o.persistence||!((l,c)=>{if(l.length!==c.length)return!1;var u=[...l].sort(),p=[...c].sort();return u.every(((h,m)=>h===p[m]))})(t.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var n=this.br(t),i=this.props;this.clear(),this.nr=n,this.props=i,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,o){var a=this.props[tp]||{};a[t]=o,this.Tr(tp,a),this.save()}remove_event_timer(t){var o=this.props[tp]||{},a=o[t];return qe(a)||(delete o[t],this.Tr(tp,o),this.save()),a}get_property(t){return this.props[t]}set_property(t,o){this.Tr(t,o),this.save()}Tr(t,o){this.props[t]=o}Ar(t){delete this.props[t]}}var Bu={Activation:"events",Cancellation:"cancelEvents"},_0={Popover:"popover",API:"api",Widget:"widget"},rp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},x0={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},BT={Popover:"popover",Inline:"inline"},Tre={SHOWN:"product tour shown"},nO={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},rO=So("[RateLimiter]");class _re{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var a=o.text;if(a&&a.length)try{(JSON.parse(a).quota_limited||[]).forEach((n=>{rO.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void rO.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:a})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var o,a,n;t===void 0&&(t=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:l}=this,c=new Date().getTime(),u=(o=(a=this.instance.persistence)==null?void 0:a.get_property(MT))!==null&&o!==void 0?o:{tokens:i,last:c};u.tokens+=(c-u.last)/1e3*l,u.last=c,u.tokens>i&&(u.tokens=i);var p=1>u.tokens;return p||t||(u.tokens=Math.max(0,u.tokens-1)),!p||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+l+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=p,(n=this.instance.persistence)==null||n.set_property(MT,u),{isRateLimited:p,remainingTokens:u.tokens}}isServerRateLimited(t){var o=this.serverLimits[t||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var Fu=So("[RemoteConfig]");class vj{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=et._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var o,a;(o=et.__PosthogExtensions__)!=null&&o.loadExternalDependency?(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){t(o.json)}})}load(){try{if(this.remoteConfig)return Fu.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void Fu.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return Fu.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){Fu.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||ze?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var o=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(t){var o;t||Fu.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var Br={GZipJS:"gzip-js",Base64:"base64"},Xn=Uint8Array,cn=Uint16Array,Cd=Uint32Array,Vx=new Xn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Hx=new Xn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),iO=new Xn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bj=function(e,t){for(var o=new cn(31),a=0;31>a;++a)o[a]=t+=1<<e[a-1];var n=new Cd(o[30]);for(a=1;30>a;++a)for(var i=o[a];o[a+1]>i;++i)n[i]=i-o[a]<<5|a;return[o,n]},yj=bj(Vx,2),FT=yj[1];yj[0][28]=258,FT[258]=28;for(var sO=bj(Hx,0)[1],Sj=new cn(32768),fo=0;32768>fo;++fo){var Fc=(43690&fo)>>>1|(21845&fo)<<1;Sj[fo]=((65280&(Fc=(61680&(Fc=(52428&Fc)>>>2|(13107&Fc)<<2))>>>4|(3855&Fc)<<4))>>>8|(255&Fc)<<8)>>>1}var up=function(e,t,o){for(var a=e.length,n=0,i=new cn(t);a>n;++n)++i[e[n]-1];var l,c=new cn(t);for(n=0;t>n;++n)c[n]=c[n-1]+i[n-1]<<1;for(l=new cn(a),n=0;a>n;++n)l[n]=Sj[c[e[n]-1]++]>>>15-e[n];return l},Dl=new Xn(288);for(fo=0;144>fo;++fo)Dl[fo]=8;for(fo=144;256>fo;++fo)Dl[fo]=9;for(fo=256;280>fo;++fo)Dl[fo]=7;for(fo=280;288>fo;++fo)Dl[fo]=8;var Zf=new Xn(32);for(fo=0;32>fo;++fo)Zf[fo]=5;var xre=up(Dl,9),Cre=up(Zf,5),wj=function(e){return(e/8>>0)+(7&e&&1)},Tj=function(e,t,o){(o==null||o>e.length)&&(o=e.length);var a=new(e instanceof cn?cn:e instanceof Cd?Cd:Xn)(o-t);return a.set(e.subarray(t,o)),a},wi=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8},ju=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8,e[a+2]|=o>>>16},C0=function(e,t){for(var o=[],a=0;e.length>a;++a)e[a]&&o.push({s:a,f:e[a]});var n=o.length,i=o.slice();if(!n)return[new Xn(0),0];if(n==1){var l=new Xn(o[0].s+1);return l[o[0].s]=1,[l,1]}o.sort((function(E,R){return E.f-R.f})),o.push({s:-1,f:25001});var c=o[0],u=o[1],p=0,h=1,m=2;for(o[0]={s:-1,f:c.f+u.f,l:c,r:u};h!=n-1;)c=o[o[m].f>o[p].f?p++:m++],u=o[p!=h&&o[m].f>o[p].f?p++:m++],o[h++]={s:-1,f:c.f+u.f,l:c,r:u};var f=i[0].s;for(a=1;n>a;++a)i[a].s>f&&(f=i[a].s);var v=new cn(f+1),b=jT(o[h-1],v,0);if(b>t){a=0;var S=0,x=b-t,T=1<<x;for(i.sort((function(E,R){return v[R.s]-v[E.s]||E.f-R.f}));n>a;++a){var _=i[a].s;if(t>=v[_])break;S+=T-(1<<b-v[_]),v[_]=t}for(S>>>=x;S>0;){var P=i[a].s;t>v[P]?S-=1<<t-v[P]++-1:++a}for(;a>=0&&S;--a){var k=i[a].s;v[k]==t&&(--v[k],++S)}b=t}return[new Xn(v),b]},jT=function(e,t,o){return e.s==-1?Math.max(jT(e.l,t,o+1),jT(e.r,t,o+1)):t[e.s]=o},lO=function(e){for(var t=e.length;t&&!e[--t];);for(var o=new cn(++t),a=0,n=e[0],i=1,l=function(u){o[a++]=u},c=1;t>=c;++c)if(e[c]==n&&c!=t)++i;else{if(!n&&i>2){for(;i>138;i-=138)l(32754);i>2&&(l(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(l(n),--i;i>6;i-=6)l(8304);i>2&&(l(i-3<<5|8208),i=0)}for(;i--;)l(n);i=1,n=e[c]}return[o.subarray(0,a),t]},zu=function(e,t){for(var o=0,a=0;t.length>a;++a)o+=e[a]*t[a];return o},zT=function(e,t,o){var a=o.length,n=wj(t+2);e[n]=255&a,e[n+1]=a>>>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var i=0;a>i;++i)e[n+i+4]=o[i];return 8*(n+4+a)},cO=function(e,t,o,a,n,i,l,c,u,p,h){wi(t,h++,o),++n[256];for(var m=C0(n,15),f=m[0],v=m[1],b=C0(i,15),S=b[0],x=b[1],T=lO(f),_=T[0],P=T[1],k=lO(S),E=k[0],R=k[1],D=new cn(19),O=0;_.length>O;++O)D[31&_[O]]++;for(O=0;E.length>O;++O)D[31&E[O]]++;for(var L=C0(D,7),$=L[0],B=L[1],U=19;U>4&&!$[iO[U-1]];--U);var j,W,ne,H,Z=p+5<<3,te=zu(n,Dl)+zu(i,Zf)+l,le=zu(n,f)+zu(i,S)+l+14+3*U+zu(D,$)+(2*D[16]+3*D[17]+7*D[18]);if(te>=Z&&le>=Z)return zT(t,h,e.subarray(u,u+p));if(wi(t,h,1+(te>le)),h+=2,te>le){j=up(f,v),W=f,ne=up(S,x),H=S;var Q=up($,B);for(wi(t,h,P-257),wi(t,h+5,R-1),wi(t,h+10,U-4),h+=14,O=0;U>O;++O)wi(t,h+3*O,$[iO[O]]);h+=3*U;for(var N=[_,E],G=0;2>G;++G){var V=N[G];for(O=0;V.length>O;++O)wi(t,h,Q[I=31&V[O]]),h+=$[I],I>15&&(wi(t,h,V[O]>>>5&127),h+=V[O]>>>12)}}else j=xre,W=Dl,ne=Cre,H=Zf;for(O=0;c>O;++O)if(a[O]>255){var I;ju(t,h,j[257+(I=a[O]>>>18&31)]),h+=W[I+257],I>7&&(wi(t,h,a[O]>>>23&31),h+=Vx[I]);var z=31&a[O];ju(t,h,ne[z]),h+=H[z],z>3&&(ju(t,h,a[O]>>>5&8191),h+=Hx[z])}else ju(t,h,j[a[O]]),h+=W[a[O]];return ju(t,h,j[256]),h+W[256]},kre=new Cd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ere=(function(){for(var e=new Cd(256),t=0;256>t;++t){for(var o=t,a=9;--a;)o=(1&o&&3988292384)^o>>>1;e[t]=o}return e})(),k0=function(e,t,o){for(;o;++t)e[t]=o,o>>>=8};function Pre(e,t){t===void 0&&(t={});var o=(function(){var m=4294967295;return{p(f){for(var v=m,b=0;f.length>b;++b)v=Ere[255&v^f[b]]^v>>>8;m=v},d(){return 4294967295^m}}})(),a=e.length;o.p(e);var n,i,l,c,u,p=(c=10+((n=t).filename&&n.filename.length+1||0),u=8,(function(m,f,v,b,S,x){var T=m.length,_=new Xn(b+T+5*(1+Math.floor(T/7e3))+S),P=_.subarray(b,_.length-S),k=0;if(!f||8>T)for(var E=0;T>=E;E+=65535){var R=E+65535;T>R?k=zT(P,k,m.subarray(E,R)):(P[E]=!0,k=zT(P,k,m.subarray(E,T)))}else{for(var D=kre[f-1],O=D>>>13,L=8191&D,$=(1<<v)-1,B=new cn(32768),U=new cn($+1),j=Math.ceil(v/3),W=2*j,ne=function(He){return(m[He]^m[He+1]<<j^m[He+2]<<W)&$},H=new Cd(25e3),Z=new cn(288),te=new cn(32),le=0,Q=0,N=(E=0,0),G=0,V=0;T>E;++E){var I=ne(E),z=32767&E,J=U[I];if(B[z]=J,U[I]=z,E>=G){var pe=T-E;if((le>7e3||N>24576)&&pe>423){k=cO(m,P,0,H,Z,te,Q,N,V,E-V,k),N=le=Q=0,V=E;for(var he=0;286>he;++he)Z[he]=0;for(he=0;30>he;++he)te[he]=0}var xe=2,$e=0,Y=L,ae=z-J&32767;if(pe>2&&I==ne(E-ae))for(var ve=Math.min(O,pe)-1,ie=Math.min(32767,E),we=Math.min(258,pe);ie>=ae&&--Y&&z!=J;){if(m[E+xe]==m[E+xe-ae]){for(var ke=0;we>ke&&m[E+ke]==m[E+ke-ae];++ke);if(ke>xe){if(xe=ke,$e=ae,ke>ve)break;var it=Math.min(ae,ke-2),lt=0;for(he=0;it>he;++he){var Ge=E-ae+he+32768&32767,tt=Ge-B[Ge]+32768&32767;tt>lt&&(lt=tt,J=Ge)}}}ae+=(z=J)-(J=B[z])+32768&32767}if($e){H[N++]=268435456|FT[xe]<<18|sO[$e];var De=31&FT[xe],Re=31&sO[$e];Q+=Vx[De]+Hx[Re],++Z[257+De],++te[Re],G=E+xe,++le}else H[N++]=m[E],++Z[m[E]]}}k=cO(m,P,!0,H,Z,te,Q,N,V,E-V,k)}return Tj(_,0,b+wj(k)+S)})(i=e,(l=t).level==null?6:l.level,l.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+l.mem,c,u)),h=p.length;return(function(m,f){var v=f.filename;if(m[0]=31,m[1]=139,m[2]=8,m[8]=2>f.level?4:f.level==9?2:0,m[9]=3,f.mtime!=0&&k0(m,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),v){m[3]=8;for(var b=0;v.length>=b;++b)m[b+10]=v.charCodeAt(b)}})(p,t),k0(p,h-8,o.d()),k0(p,h-4,a),p}var Are=!!dT||!!cT,_j="text/plain",dO=!1,zv=function(e,t,o){var a;o===void 0&&(o=!0);var[n,i]=e.split("?"),l=Oe({},t),c=(a=i?.split("&").map((p=>{var h,[m,f]=p.split("="),v=o&&(h=l[m])!==null&&h!==void 0?h:f;return delete l[m],m+"="+v})))!==null&&a!==void 0?a:[],u=(function(p,h){var m,f;h===void 0&&(h="&");var v=[];return go(p,(function(b,S){qe(b)||qe(S)||S==="undefined"||(m=encodeURIComponent((x=>x instanceof File)(b)?b.name:b.toString()),f=encodeURIComponent(S),v[v.length]=f+"="+m)})),v.join(h)})(l);return u&&c.push(u),n+"?"+c.join("&")},td=(e,t)=>JSON.stringify(e,((o,a)=>typeof a=="bigint"?a.toString():a),t),E0=e=>{if(e.tr)return e.tr;var{data:t,compression:o}=e;if(t){if(o===Br.GZipJS){var a=Pre((function(c,u){var p=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var h=new Xn(c.length+(c.length>>>1)),m=0,f=function(x){h[m++]=x},v=0;p>v;++v){if(m+5>h.length){var b=new Xn(m+8+(p-v<<1));b.set(h),h=b}var S=c.charCodeAt(v);128>S?f(S):2048>S?(f(192|S>>>6),f(128|63&S)):S>55295&&57344>S?(f(240|(S=65536+(1047552&S)|1023&c.charCodeAt(++v))>>>18),f(128|S>>>12&63),f(128|S>>>6&63),f(128|63&S)):(f(224|S>>>12),f(128|S>>>6&63),f(128|63&S))}return Tj(h,0,m)})(td(t)),{mtime:0});return{contentType:_j,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===Br.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((u,p)=>String.fromCharCode(parseInt(p,16)))))})(td(t)),i=(c=>"data="+encodeURIComponent(typeof c=="string"?c:td(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var l=td(t);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},Rre=(function(){var e=Kn((function*(t){var o=td(t.data),a=yield(function(i,l,c){return uT.apply(this,arguments)})(o,Ga.DEBUG,{rethrow:!0});if(!a)return t;var n=yield a.arrayBuffer();return Oe({},t,{tr:{contentType:_j,body:n,estimatedSize:n.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),uO=(e,t)=>zv(e,{_:new Date().getTime().toString(),ver:Ga.JS_SDK_VERSION,compression:t}),nf=[];cT&&nf.push({transport:"fetch",method(e){var t,o,{contentType:a,body:n,estimatedSize:i}=(t=E0(e))!==null&&t!==void 0?t:{},l=new Headers;go(e.headers,(function(h,m){l.append(m,h)})),a&&l.append("Content-Type",a);var c=e.url,u=null;if($D){var p=new $D;u={signal:p.signal,timeout:setTimeout((()=>p.abort()),e.timeout)}}cT(c,Oe({method:e?.method||"GET",headers:l,keepalive:e.method==="POST"&&52428.8>(i||0),body:n,signal:(o=u)==null?void 0:o.signal},e.fetchOptions)).then((h=>h.text().then((m=>{var f={statusCode:h.status,text:m};if(h.status===200)try{f.json=JSON.parse(m)}catch(v){Ue.error(v)}e.callback==null||e.callback(f)})))).catch((h=>{Ue.error(h),e.callback==null||e.callback({statusCode:0,error:h})})).finally((()=>u?clearTimeout(u.timeout):null))}}),dT&&nf.push({transport:"XHR",method(e){var t,o=new dT;o.open(e.method||"GET",e.url,!0);var{contentType:a,body:n}=(t=E0(e))!==null&&t!==void 0?t:{};go(e.headers,(function(i,l){o.setRequestHeader(l,i)})),a&&o.setRequestHeader("Content-Type",a),e.timeout&&(o.timeout=e.timeout),e.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var i={statusCode:o.status,text:o.responseText};if(o.status===200)try{i.json=JSON.parse(o.responseText)}catch{}e.callback==null||e.callback(i)}},o.send(n)}}),En!=null&&En.sendBeacon&&nf.push({transport:"sendBeacon",method(e){var t=zv(e.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=E0(e))!==null&&o!==void 0?o:{};if(!n)return;var i=n instanceof Blob?n:new Blob([n],{type:a});En.sendBeacon(t,i)}catch{}}});var UT=3e3;class Dre{constructor(t,o){this.Pr=!0,this.Lr=[],this.Dr=qr(o?.flush_interval_ms||UT,250,5e3,Ue.createLogger("flush interval"),UT),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},o=Object.values(t);[...o.filter((a=>a.url.indexOf("/e")===0)),...o.filter((a=>a.url.indexOf("/e")!==0))].map((a=>{this.Br(Oe({},a,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var t=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),a=function(){var i=o[n],l=new Date().getTime();i.data&&Nt(i.data)&&go(i.data,(c=>{c.offset=Math.abs(c.timestamp-l),delete c.timestamp})),t.Br(i)};for(var n in o)a()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return go(this.Lr,(o=>{var a,n=o,i=(n?n.batchKey:null)||n.url;qe(t[i])&&(t[i]=Oe({},n,{data:[]})),(a=t[i].data)==null||a.push(n.data)})),this.Lr=[],t}}var Ore=["retriesPerformedSoFar"];class Mre{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!qe(ge)&&"onLine"in ge.navigator&&(this.zr=ge.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Zo(ge,"online",this.Ur),Zo(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:o}=t,a=kF(t,Ore);Gc(o)&&(a.url=zv(a.url,{retry_count:o})),this._instance._send_request(Oe({},a,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(o??0)>=10?a.callback==null||a.callback(n):this.Wr(Oe({retriesPerformedSoFar:o},a))}}))}Wr(t){var o=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=o+1;var a=(function(l){var c=3e3*Math.pow(2,l),u=c/2,p=Math.min(18e5,c),h=Math.random()-.5;return Math.ceil(p+h*(p-u))})(o),n=Date.now()+a;this.Lr.push({retryAt:n,requestOptions:t});var i="Enqueued failed request for retry in "+a;navigator.onLine||(i+=" (Browser is offline)"),Ue.warn(i),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var t=Date.now(),o=[],a=this.Lr.filter((i=>t>i.retryAt||(o.push(i),!1)));if(this.Lr=o,a.length>0)for(var{requestOptions:n}of a)this.retriableRequest(n)}unload(){for(var{requestOptions:t}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,qe(ge)||(this.Ur&&(ge.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(ge.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Oe({},t,{transport:"sendBeacon"}))}catch(o){Ue.error(o)}this.Lr=[]}}class Nre{constructor(t){this.Kr=()=>{var o,a,n,i;this.Qr||(this.Qr={});var l=this.scrollElement(),c=this.scrollY(),u=l?Math.max(0,l.scrollHeight-l.clientHeight):0,p=c+(l?.clientHeight||0),h=l?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(o=this.Qr.maxScrollY)!==null&&o!==void 0?o:0),this.Qr.maxScrollHeight=Math.max(u,(a=this.Qr.maxScrollHeight)!==null&&a!==void 0?a:0),this.Qr.lastContentY=p,this.Qr.maxContentY=Math.max(p,(n=this.Qr.maxContentY)!==null&&n!==void 0?n:0),this.Qr.maxContentHeight=Math.max(h,(i=this.Qr.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var t=this.Qr;return setTimeout(this.Kr,0),t}startMeasuringScrollPosition(){Zo(ge,"scroll",this.Kr,{capture:!0}),Zo(ge,"scrollend",this.Kr,{capture:!0}),Zo(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var t=Nt(this.ei)?this.ei:[this.ei];for(var o of t){var a=ge?.document.querySelector(o);if(a)return a}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var Ire=e=>hj(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class pO{constructor(t,o,a,n){this.ti=i=>{var l=this.ri();if(!l||l.sessionId!==i){var c={sessionId:i,props:this.ii(this._instance)};this.ni.register({[OT]:c})}},this._instance=t,this.si=o,this.ni=a,this.ii=n||Ire,this.si.onSessionId(this.ti)}ri(){return this.ni.props[OT]}getSetOnceProps(){var t,o=(t=this.ri())==null?void 0:t.props;return o?"r"in o?gj(o):{$referring_domain:o.referringDomain,$pathname:o.initialPathName,utm_source:o.utm_source,utm_campaign:o.utm_campaign,utm_medium:o.utm_medium,utm_content:o.utm_content,utm_term:o.utm_term}:{}}getSessionProps(){var t={};return go(qx(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),t["$session_entry_"+pT(a)]=o})),t}}class Gx{constructor(){this.oi={}}on(t,o){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(o),()=>{this.oi[t]=this.oi[t].filter((a=>a!==o))}}emit(t,o){for(var a of this.oi[t]||[])a(o);for(var n of this.oi["*"]||[])n(t,o)}}var P0=So("[SessionId]");class mO{on(t,o){return this.ai.on(t,o)}constructor(t,o,a){var n;if(this.li=[],this.ui=void 0,this.ai=new Gx,this.hi=(p,h)=>!(!Gc(p)||!Gc(h))&&Math.abs(p-h)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===Ci)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||ws,this.fi=a||ws;var i=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*qr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,P0.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+i+"_window_id",this.mi="ph_"+i+"_primary_window_exists",this.yi()){var l=Ta.Z(this.gi),c=Ta.Z(this.mi);l&&!c?this.ci=l:Ta.F(this.gi),Ta.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var u=(p=>{var h=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(h.length!==32)throw new Error("Not a valid UUID");if(h[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(h.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),u)}catch(p){P0.error("Invalid sessionID in bootstrap",p)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return qe(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&Ta.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&Ta.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?Ta.Z(this.gi):null}bi(t,o,a){t===this.di&&o===this._sessionActivityTimestamp&&a===this._sessionStartTimestamp||(this._sessionStartTimestamp=a,this._sessionActivityTimestamp=o,this.di=t,this.ni.register({[jf]:[o,t,a]}))}Si(){var t=this.ni.props[jf];return Nt(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&ge&&(ge.removeEventListener(Vf,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Ta.F(this.mi)},Zo(ge,Vf,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,o){if(t===void 0&&(t=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===Ci)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var a=o||new Date().getTime(),[n,i,l]=this.Si(),c=this.Ci(),u=Gc(l)&&Math.abs(a-l)>864e5,p=!1,h=!i,m=!h&&!t&&this.hi(a,n);h||m||u?(i=this.vi(),c=this.fi(),P0.info("new session ID generated",{sessionId:i,windowId:c,changeReason:{noSessionId:h,activityTimeout:m,sessionPastMaximumLength:u}}),l=a,p=!0):c||(c=this.fi(),p=!0);var f=Gc(n)&&t&&!u?n:a,v=Gc(l)?l:new Date().getTime();return this.Ii(c),this.bi(i,f,v),t||this.pi(),p&&this.li.forEach((b=>b(i,c,p?{noSessionId:h,activityTimeout:m,sessionPastMaximumLength:u}:void 0))),{sessionId:i,windowId:c,sessionStartTimestamp:v,changeReason:p?{noSessionId:h,activityTimeout:m,sessionPastMaximumLength:u}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var xj=function(e,t){if(!e)return!1;var o=e.userAgent;if(o&&HD(o,t))return!0;try{var a=e?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>HD(n?.brand,t))))return!0}catch{}return!!e.webdriver},Qf=function(e,t){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function hO(e,t,o){return td({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:o})}var Cj={exact:(e,t)=>t.some((o=>e.some((a=>o===a)))),is_not:(e,t)=>t.every((o=>e.every((a=>o!==a)))),regex:(e,t)=>t.some((o=>e.some((a=>Qf(o,a))))),not_regex:(e,t)=>t.every((o=>e.every((a=>!Qf(o,a))))),icontains:(e,t)=>t.map(Lg).some((o=>e.map(Lg).some((a=>o.includes(a))))),not_icontains:(e,t)=>t.map(Lg).every((o=>e.map(Lg).every((a=>!o.includes(a))))),gt:(e,t)=>t.some((o=>{var a=parseFloat(o);return!isNaN(a)&&e.some((n=>a>parseFloat(n)))})),lt:(e,t)=>t.some((o=>{var a=parseFloat(o);return!isNaN(a)&&e.some((n=>a<parseFloat(n)))}))},Lg=e=>e.toLowerCase();function kj(e,t){return!e||Object.entries(e).every((o=>{var[a,n]=o,i=t?.[a];if(qe(i)||Ni(i))return!1;var l=[String(i)],c=Cj[n.operator];return!!c&&c(n.values,l)}))}var $T="custom",gO="i.posthog.com",Lre=/^\/static\//;class Bre{constructor(t){this.ki={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,o=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+gO,".posthog.com")),o==="https://app.posthog.com"?"https://us.posthog.com":o}get region(){return this.ki[this.apiHost]||(this.ki[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":$T),this.ki[this.apiHost]}Ti(t){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&Lre.test(t))return o.trim().replace(/\/$/,"")||void 0}endpointFor(t,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),t==="ui")return this.uiHost+o;if(t==="flags")return this.flagsApiHost+o;if(t==="assets"){var a=this.Ti(o);if(a)return""+a+o}if(this.region===$T)return this.apiHost+o;var n=gO+o;switch(t){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var eo=So("[Surveys]"),qT="seenSurvey_",Fre=[_0.Popover,_0.Widget,_0.API],jre={ignoreConditions:!1,ignoreDelay:!1,displayType:BT.Popover},zre=So("[PostHog ExternalIntegrations]"),Ure={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class $re{constructor(t){this._instance=t}ur(t,o){var a;(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,t,(n=>{if(n)return zre.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var t=this,o=function(l){var c,u,p;!n||(c=et.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]||t.ur(Ure[l],(()=>{var h;(h=et.__PosthogExtensions__)==null||(h=h.integrations)==null||(h=h[l])==null||h.start(t._instance)})),!n&&(u=et.__PosthogExtensions__)!=null&&(u=u.integrations)!=null&&u[l]&&((p=et.__PosthogExtensions__)==null||(p=p.integrations)==null||(p=p[l])==null||p.stop())};for(var[a,n]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;o(a)}}}var jc,pp={},A0=0,VT=()=>{},fO='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Uu="Surveys module not available",vO="sanitize_properties is deprecated. Use before_send instead",Ej="Invalid value for property_denylist config: ",Yc="posthog",Pj=!Are&&rn?.indexOf("MSIE")===-1&&rn?.indexOf("Mozilla")===-1,bO=e=>{var t;return Oe({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:rre(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:VT,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:wa&&xo(wa?.search)&&wa.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(ge==null||(t=ge.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(o){Ue.error("Bad HTTP status: "+o.statusCode+" "+o.text)},get_device_id:o=>o,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:LT,before_send:void 0,request_queue_config:{flush_interval_ms:UT},error_tracking:{},_onCapture:VT,__preview_eager_load_replay:!1},(o=>({rageclick:!o||"2025-11-30">o||{content_ignorelist:!0},capture_pageview:!o||"2025-05-24">o||"history_change",session_recording:o&&o>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:o&&o>="2026-01-30"?"head":"body",internal_or_test_user_hostname:o&&o>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},qre=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],yO=e=>{var t={};for(var[o,a]of qre)qe(e[o])||(t[a]=e[o]);var n=Oo({},t,e);return Nt(e.property_blacklist)&&(qe(e.property_denylist)?n.property_denylist=e.property_blacklist:Nt(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:Ue.error(Ej+e.property_denylist)),n};class Vre{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){Ue.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Zn{Ei(t,o){if(t){var a=this.Ri.indexOf(t);a!==-1&&this.Ri.splice(a,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===Ci||this.config.cookieless_mode===vl&&this.consent.isRejected()}get decideEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Vre,this.Mi=!1,this.version=Ga.LIB_VERSION,this.Fi=new Gx,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=bO(),this.SentryIntegration=gre,this.sentryIntegration=a=>(function(n,i){var l=cj(n,i);return{name:lj,processEvent:c=>l(c)}})(this,a),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new Nre(this),this.pageViewManager=new oO(this),this.rateLimiter=new _re(this),this.requestRouter=new Bre(this),this.consent=new pre(this),this.externalIntegrations=new $re(this);var o=(t=Zn.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=o.featureFlags&&new o.featureFlags(this),this.toolbar=o.toolbar&&new o.toolbar(this),this.surveys=o.surveys&&new o.surveys(this),this.conversations=o.conversations&&new o.conversations(this),this.logs=o.logs&&new o.logs(this),this.experiments=o.experiments&&new o.experiments(this),this.exceptions=o.exceptions&&new o.exceptions(this),this.people={set:(a,n,i)=>{var l=xo(a)?{[a]:n}:a;this.setPersonProperties(l),i?.({})},set_once:(a,n,i)=>{var l=xo(a)?{[a]:n}:a;this.setPersonProperties(void 0,l),i?.({})}},this.on("eventCaptured",(a=>Ue.info('send "'+a?.event+'"',a)))}init(t,o,a){if(a&&a!==Yc){var n,i=(n=pp[a])!==null&&n!==void 0?n:new Zn;return i._init(t,o,a),pp[a]=i,pp[Yc][a]=i,i}return this._init(t,o,a)}_init(t,o,a){var n,i;if(o===void 0&&(o={}),qe(t)||ef(t))return Ue.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},o.debug=this.Bi(o.debug),this.ji=o,this.$i=[],o.person_profiles?this.Li=o.person_profiles:o.process_person&&(this.Li=o.process_person),this.set_config(Oo({},bO(o.defaults),yO(o),{name:a,token:t})),this.config.on_xhr_error&&Ue.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:Br.GZipJS;var l=this.qi();this.persistence=new T0(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new T0(Oe({},this.config,{persistence:"sessionStorage"}),l);var c=Oe({},this.persistence.props),u=Oe({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new Dre((x=>this.Vi(x)),this.config.request_queue_config),this.Hi=new Mre(this),this.__request_queue=[];var p=this.Ni();if(p||(this.sessionManager=new mO(this),this.sessionPropsManager=new pO(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ue.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(p)}),0)):(Ue.info("Initializing extensions synchronously"),this.zi(p)),Ga.DEBUG=Ga.DEBUG||this.config.debug,Ga.DEBUG&&Ue.info("Starting in debug mode",{this:this,config:o,thisC:Oe({},this.config),p:c,s:u}),!this.config.identity_distinct_id||(n=o.bootstrap)!=null&&n.distinctID||(o.bootstrap=Oe({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((i=o.bootstrap)==null?void 0:i.distinctID)!==void 0){var h=o.bootstrap.distinctID,m=this.get_distinct_id(),f=this.persistence.get_property(pr);if(o.bootstrap.isIdentifiedID&&m!=null&&m!==h&&f===Lc)this.identify(h);else if(o.bootstrap.isIdentifiedID&&m!=null&&m!==h&&f===Bc)Ue.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(ws()),b=o.bootstrap.isIdentifiedID?v:h;this.persistence.set_property(pr,o.bootstrap.isIdentifiedID?Bc:Lc),this.register({distinct_id:h,$device_id:b})}}if(p)this.register_once({distinct_id:Dg,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(ws());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(pr,Lc)}return Zo(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(x,T){var _=x.config.segment;if(!_)return T();(function(P,k){var E=P.config.segment;if(!E)return k();var R=O=>{var L=()=>O.anonymousId()||ws();P.config.get_device_id=L,O.id()&&(P.register({distinct_id:O.id(),$device_id:L()}),P.persistence.set_property(pr,Bc)),k()},D=E.user();"then"in D&&xi(D.then)?D.then(R):R(D)})(x,(()=>{_.register((P=>{Promise&&Promise.resolve||w0.warn("This browser does not have Promise support, and can not use the segment integration");var k=(E,R)=>{if(!R)return E;E.event.userId||E.event.anonymousId===P.get_distinct_id()||(w0.info("No userId set, resetting PostHog"),P.reset()),E.event.userId&&E.event.userId!==P.get_distinct_id()&&(w0.info("UserId set, identifying with PostHog"),P.identify(E.event.userId));var D=P.calculateEventProperties(R,E.event.properties);return E.event.properties=Object.assign({},D,E.event.properties),E};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:E=>k(E,E.event.event),page:E=>k(E,Kc),identify:E=>k(E,y0),screen:E=>k(E,"$screen")}})(x)).then((()=>{T()}))}))})(this,(()=>this.Ui())):this.Ui(),xi(this.config._onCapture)&&this.config._onCapture!==VT&&(Ue.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(x=>this.config._onCapture(x.event,x)))),this.config.ip&&Ue.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(t){var o,a,n,i,l,c,u,p=performance.now(),h=Oe({},Zn.__defaultExtensionClasses,this.config.__extensionClasses),m=[];h.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new h.featureFlags(this)),h.exceptions&&this.Ri.push(this.exceptions=(a=this.exceptions)!==null&&a!==void 0?a:new h.exceptions(this)),h.historyAutocapture&&this.Ri.push(this.historyAutocapture=new h.historyAutocapture(this)),h.tracingHeaders&&this.Ri.push(new h.tracingHeaders(this)),h.siteApps&&this.Ri.push(this.siteApps=new h.siteApps(this)),h.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new h.sessionRecording(this)),this.config.disable_scroll_properties||m.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),h.autocapture&&this.Ri.push(this.autocapture=new h.autocapture(this)),h.surveys&&this.Ri.push(this.surveys=(n=this.surveys)!==null&&n!==void 0?n:new h.surveys(this)),h.logs&&this.Ri.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new h.logs(this)),h.conversations&&this.Ri.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new h.conversations(this)),h.productTours&&this.Ri.push(this.productTours=new h.productTours(this)),h.heatmaps&&this.Ri.push(this.heatmaps=new h.heatmaps(this)),h.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new h.webVitalsAutocapture(this)),h.exceptionObserver&&this.Ri.push(this.exceptionObserver=new h.exceptionObserver(this)),h.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new h.deadClicksAutocapture(this,hre)),h.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new h.toolbar(this)),h.experiments&&this.Ri.push(this.experiments=(u=this.experiments)!==null&&u!==void 0?u:new h.experiments(this)),this.Ri.forEach((f=>{f.initialize&&m.push((()=>{f.initialize==null||f.initialize()}))})),m.push((()=>{if(this.Yi){var f=this.Yi;this.Yi=void 0,this.Nr(f)}})),this.Gi(m,p)}Gi(t,o){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,o)}),0);var a=t.shift();if(a)try{a()}catch(i){Ue.error("Error initializing extension:",i)}}var n=Math.round(performance.now()-o);this.register_for_session({[aj]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[nj]:n}),this.config.__preview_deferred_init_extensions&&Ue.info("PostHog extensions initialized ("+n+"ms)")}Nr(t){var o;if(!ze||!ze.body)return Ue.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=xt(t.supportedCompression,Br.GZipJS)?Br.GZipJS:xt(t.supportedCompression,Br.Base64)?Br.Base64:void 0),(o=t.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:LT}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(a){Ue.critical("`loaded` function failed",a)}if(this.Xi(),this.config.internal_or_test_user_hostname&&wa!=null&&wa.hostname){var t=wa.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?t===o:o.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new vj(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Og(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,o,a,n;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(b0),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(b0,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(Pj?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=zv(t.url,{ip:this.config.ip?1:0}),t.headers=Oe({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(o=>{var a,n,i,l=Oe({},o);l.timeout=l.timeout||6e4,l.url=uO(l.url,l.compression);var c=(a=l.transport)!==null&&a!==void 0?a:"fetch",u=nf.filter((h=>!l.disableTransport||!h.transport||!l.disableTransport.includes(h.transport))),p=(n=(i=(function(h,m){for(var f=0;h.length>f;f++)if(h[f].transport===c)return h[f]})(u))==null?void 0:i.method)!==null&&n!==void 0?n:u[0].method;if(!p)throw new Error("No available transport method");c!=="sendBeacon"&&l.data&&l.compression===Br.GZipJS&&gne&&!dO?Rre(l).then((h=>{p(h)})).catch((h=>{if((m=>!(!m||typeof m!="object")&&("name"in m?String(m.name):"")==="NotReadableError")(h))return dO=!0,void p(Oe({},l,{compression:void 0,url:uO(o.url,void 0)}));p(l)})):p(l)})(Oe({},t,{callback:o=>{var a,n;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(a=(n=this.config).on_request_error)==null||a.call(n,o),t.callback==null||t.callback(o)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){A0++;try{var o,a=[],n=[],i=[];Og(t,(c=>{c&&(Nt(o=c[0])?i.push(c):xi(c)?c.call(this):Nt(c)&&o==="alias"?a.push(c):Nt(c)&&o.indexOf("capture")!==-1&&xi(this[o])?i.push(c):n.push(c))}));var l=function(c,u){Og(c,(function(p){if(Nt(p[0])){var h=u;go(p,(function(m){h=h[m[0]].apply(h,m.slice(1))}))}else u[p[0]].apply(u,p.slice(1))}))};l(a,this),l(n,this),l(i,this)}finally{A0--}}push(t){if(A0>0&&Nt(t)&&xo(t[0])){var o=Zn.prototype[t[0]];xi(o)&&o.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,o,a){var n,i,l,c,u;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!qe(t)&&xo(t)){var p=!this.config.opt_out_useragent_filter&&this._is_bot();if(!p||this.config.__preview_capture_bot_pageviews){var h=a!=null&&a.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(h==null||!h.isRateLimited){o!=null&&o.$current_url&&!xo(o?.$current_url)&&(Ue.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),t!=="$exception"||a!=null&&a.en||Ue.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var m=new Date,f=a?.timestamp||m,v=ws(),b={uuid:v,event:t,properties:this.calculateEventProperties(t,o||{},f,v)};t===Kc&&this.config.__preview_capture_bot_pageviews&&p&&(b.event="$bot_pageview",b.properties.$browser_type="bot"),h&&(b.properties.$lib_rate_limit_remaining_tokens=h.remainingTokens),a?.$set&&(b.$set=a?.$set);var S,x,T,_=this.tn(a?.$set_once,t!==JD,t===y0);if(_&&(b.$set_once=_),a!=null&&a._noTruncate||(i=this.config.properties_string_max_length,l=b,c=L=>xo(L)?L.slice(0,i):L,u=new Set,b=(function L($,B){return $!==Object($)?c?c($):$:u.has($)?void 0:(u.add($),Nt($)?(U=[],Og($,(j=>{U.push(L(j))}))):(U={},go($,((j,W)=>{u.has(j)||(U[W]=L(j))}))),U);var U})(l)),b.timestamp=f,qe(a?.timestamp)||(b.properties.$event_time_override_provided=!0,b.properties.$event_time_override_system_time=m),t===rp.DISMISSED||t===rp.SENT){var P=o?.[x0.SURVEY_ID],k=o?.[x0.SURVEY_ITERATION];(L=>{try{var $=(B=>((U,j)=>{var W=""+qT+j.id;return j.current_iteration&&j.current_iteration>0&&(W=""+qT+j.id+"_"+j.current_iteration),W})(0,B))(L);if(localStorage.getItem($))return;localStorage.setItem($,"true")}catch(B){eo.error("Failed to persist survey seen state",B)}})({id:P,current_iteration:k}),b.$set=Oe({},b.$set,{[(S={id:P,current_iteration:k},x=t===rp.SENT?"responded":"dismissed",T="$survey_"+x+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(T="$survey_"+x+"/"+S.id+"/"+S.current_iteration),T)]:!0})}else t===rp.SHOWN&&(b.$set=Oe({},b.$set,{[x0.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===Tre.SHOWN){var E=o?.[nO.TOUR_TYPE];E&&(b.$set=Oe({},b.$set,{[nO.TOUR_LAST_SEEN_DATE+"/"+E]:new Date().toISOString()}))}var R=Oe({},b.properties.$set,b.$set);if(Xc(R)||this.setPersonPropertiesForFlags(R),!Ct(this.config.before_send)){var D=this.rn(b);if(!D)return;b=D}this.Fi.emit("eventCaptured",b);var O={method:"POST",url:(n=a?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:b,compression:"best-available",batchKey:a?._batchKey};return!this.config.request_batching||a&&(a==null||!a._batchKey)||a!=null&&a.send_instantly?this.Vi(O):this.Zi.enqueue(O),b}Ue.critical("This capture call is ignored due to client rate limiting.")}}else Ue.error("No event name provided to posthog.capture")}else Ue.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(o=>t(o.event,o)))}calculateEventProperties(t,o,a,n,i){if(a=a||new Date,!this.persistence||!this.sessionPersistence)return o;var l=i?void 0:this.persistence.remove_event_timer(t),c=Oe({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var u=Oe({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=u.distinct_id,(!xo(c.distinct_id)&&!er(c.distinct_id)||ef(c.distinct_id))&&Ue.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var p,h=(function(T,_){var P,k,E,R;if(!rn)return{};var D,O,L,$,B,U,j,W,ne=T?[...xd,..._||[]]:[],[H,Z]=(function(te){for(var le=0;KD.length>le;le++){var[Q,N]=KD[le],G=Q.exec(te),V=G&&(xi(N)?N(G,te):N);if(V)return V}return["",""]})(rn);return Oo(qx({$os:H,$os_version:Z,$browser:HF(rn,navigator.vendor),$device:YD(rn),$device_type:(O=rn,L={userAgentDataPlatform:(P=navigator)==null||(P=P.userAgentData)==null?void 0:P.platform,maxTouchPoints:(k=navigator)==null?void 0:k.maxTouchPoints,screenWidth:ge==null||(E=ge.screen)==null?void 0:E.width,screenHeight:ge==null||(R=ge.screen)==null?void 0:R.height,devicePixelRatio:ge?.devicePixelRatio},W=YD(O),W===DF||W===RF||W==="Kobo"||W==="Kindle Fire"||W===VF?wd:W===Ap||W===dd||W===Rp||W===hT?"Console":W===MF?"Wearable":W?An:L?.userAgentDataPlatform==="Android"&&(($=L?.maxTouchPoints)!==null&&$!==void 0?$:0)>0?600>Math.min((B=L?.screenWidth)!==null&&B!==void 0?B:0,(U=L?.screenHeight)!==null&&U!==void 0?U:0)/((j=L?.devicePixelRatio)!==null&&j!==void 0?j:1)?An:wd:"Desktop"),$timezone:fj(),$timezone_offset:Sre()}),{$current_url:Dp(wa?.href,ne,Op),$host:wa?.host,$pathname:wa?.pathname,$raw_user_agent:rn.length>1e3?rn.substring(0,997)+"...":rn,$browser_version:Dne(rn,navigator.vendor),$browser_language:aO(),$browser_language_prefix:(D=aO(),typeof D=="string"?D.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:Ga.LIB_NAME,$lib_version:Ga.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:m,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(i,a.getTime());c.$session_id=m,c.$window_id=f}this.sessionPropsManager&&Oo(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Oo(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(T){c.$sdk_debug_error_capturing_properties=String(T)}if(this.requestRouter.region===$T&&(c.$lib_custom_api_host=this.config.api_host),p=t!==Kc||i?t!==b0||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Oo(c,p),t===Kc&&ze&&(c.title=ze.title),!qe(l)){var b=a.getTime()-l;c.$duration=parseFloat((b/1e3).toFixed(3))}rn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Oo({},h,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Nt(this.config.property_denylist)?go(this.config.property_denylist,(function(T){delete c[T]})):Ue.error(Ej+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(Ue.error(vO),c=S(c,t));var x=this.nn();return c.$process_person_profile=x,x&&!i&&this.sn("_calculate_event_properties"),c}tn(t,o,a){var n;if(o===void 0&&(o=!0),a===void 0&&(a=!1),!this.persistence||!this.nn()||this.Mi&&!a)return t;var i=this.persistence.get_initial_props(),l=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Oo({},i,l||{},t||{}),u=this.config.sanitize_properties;return u&&(Ue.error(vO),c=u(c,"$set_once")),o&&(this.Mi=!0),Xc(c)?void 0:c}register(t,o){var a;(a=this.persistence)==null||a.register(t,o)}register_once(t,o,a){var n;(n=this.persistence)==null||n.register_once(t,o,a)}register_for_session(t){var o;(o=this.sessionPersistence)==null||o.register(t)}unregister(t){var o;(o=this.persistence)==null||o.unregister(t)}unregister_for_session(t){var o;(o=this.sessionPersistence)==null||o.unregister(t)}an(t,o){this.register({[t]:o})}getFeatureFlag(t,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlag(t,o)}getFeatureFlagPayload(t){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(t)}getFeatureFlagResult(t,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagResult(t,o)}isFeatureEnabled(t,o){var a;return(a=this.featureFlags)==null?void 0:a.isFeatureEnabled(t,o)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,o,a){var n;(n=this.featureFlags)==null||n.updateFlags(t,o,a)}updateEarlyAccessFeatureEnrollment(t,o,a){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(t,o,a)}getEarlyAccessFeatures(t,o,a){var n;return o===void 0&&(o=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(t,o,a)}on(t,o){return this.Fi.on(t,o)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:Uu}),()=>{})}onSessionId(t){var o,a;return(o=(a=this.sessionManager)==null?void 0:a.onSessionId(t))!==null&&o!==void 0?o:()=>{}}getSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(t,o):t([],{isLoaded:!1,error:Uu})}getActiveMatchingSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,o):t([],{isLoaded:!1,error:Uu})}renderSurvey(t,o){var a;(a=this.surveys)==null||a.renderSurvey(t,o)}displaySurvey(t,o){var a;o===void 0&&(o=jre),(a=this.surveys)==null||a.displaySurvey(t,o)}cancelPendingSurvey(t){var o;(o=this.surveys)==null||o.cancelPendingSurvey(t)}canRenderSurvey(t){var o,a;return(o=(a=this.surveys)==null?void 0:a.canRenderSurvey(t))!==null&&o!==void 0?o:{visible:!1,disabledReason:Uu}}canRenderSurveyAsync(t,o){var a,n;return o===void 0&&(o=!1),(a=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(t,o))!==null&&a!==void 0?a:Promise.resolve({visible:!1,disabledReason:Uu})}ln(t){return!t||ef(t)?(Ue.critical("Unique user id has not been set in posthog.identify"),!1):t===Dg?(Ue.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(Ue.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,o,a){if(!this.__loaded||!this.persistence)return Ue.uninitializedWarning("posthog.identify");if(er(t)&&(t=t.toString(),Ue.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(t)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:t}),this.get_property(Ff)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),t!==n&&t!==this.get_property(ep)&&(this.unregister(ep),this.register({distinct_id:t}));var i,l=(this.persistence.get_property(pr)||Lc)===Lc;t!==n&&l?(this.persistence.set_property(pr,Bc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(y0,{distinct_id:t,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=hO(t,o,a),(i=this.featureFlags)==null||i.setAnonymousDistinctId(n)):(o||a)&&this.setPersonProperties(o,a),t!==n&&(this.reloadFeatureFlags(),this.unregister(dp))}}setPersonProperties(t,o){if((t||o)&&this.sn("posthog.setPersonProperties")){var a=hO(this.get_distinct_id(),t,o);this.Di!==a?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:o||{}},!0),this.capture("$set",{$set:t||{},$set_once:o||{}}),this.Di=a):Ue.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,o,a){if(t&&o){var n=this.getGroups(),i=n[t]!==o;if(i&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Oe({},n,{[t]:o})}),i||a){var l={$group_type:t,$group_key:o};a&&(l.$group_set=a),this.capture(JD,l)}a&&this.setGroupPropertiesForFlags({[t]:a}),i&&!a&&this.reloadFeatureFlags()}else Ue.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,o){var a;o===void 0&&(o=!0),(a=this.featureFlags)==null||a.setPersonPropertiesForFlags(t,o)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,o){var a;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((a=this.featureFlags)==null||a.setGroupPropertiesForFlags(t,o))}resetGroupPropertiesForFlags(t){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(t)}reset(t){var o,a,n,i,l,c,u,p;if(Ue.info("reset"),!this.__loaded)return Ue.uninitializedWarning("posthog.reset");var h=this.get_property(Ff);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(a=this.sessionPersistence)==null||a.clear(),(n=this.surveys)==null||n.reset(),(i=this.Ki)==null||i.stop(),(l=this.featureFlags)==null||l.reset(),(c=this.conversations)==null||c.reset(),(u=this.persistence)==null||u.set_property(pr,Lc),(p=this.sessionManager)==null||p.resetSessionId(),this.Di=null,this.config.cookieless_mode===Ci)this.register_once({distinct_id:Dg,$device_id:null},"");else{var m=this.config.get_device_id(ws());this.register_once({distinct_id:m,$device_id:t?m:h},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,o){var a;this.config.identity_distinct_id=t,this.config.identity_hash=o,this.alias(t),(a=this.conversations)==null||a.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,o;return(t=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:o,sessionStartTimestamp:a}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+o);if(t!=null&&t.withTimestamp&&a){var i,l=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!a)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-a)/1e3)-l,0)}return n}alias(t,o){return t===this.get_property(QF)?(Ue.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(qe(o)&&(o=this.get_distinct_id()),t!==o?(this.an(ep,t),this.capture("$create_alias",{alias:t,distinct_id:o})):(Ue.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var o=Oe({},this.config);if(Bo(t)){var a,n,i,l,c,u,p,h,m,f;Oo(this.config,yO(t));var v=this.qi();(a=this.persistence)==null||a.update_config(this.config,o,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new T0(Oe({},this.config,{persistence:"sessionStorage"}),v);var b=this.Bi(this.config.debug);$r(b)&&(this.config.debug=b),$r(this.config.debug)&&(this.config.debug?(Ga.DEBUG=!0,_o.R()&&_o.M("ph_debug",!0),Ue.info("set_config",{config:t,oldConfig:o,newConfig:Oe({},this.config)})):(Ga.DEBUG=!1,_o.R()&&_o.F("ph_debug"))),(n=this.exceptionObserver)==null||n.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(l=this.sessionRecording)==null||l.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(u=this.heatmaps)==null||u.startIfEnabled(),(p=this.exceptionObserver)==null||p.startIfEnabledOrStop(),(h=this.deadClicksAutocapture)==null||h.startIfEnabledOrStop(),(m=this.surveys)==null||m.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(t,o){Ga.LIB_NAME=t,Ga.LIB_VERSION=o}startSessionRecording(t){var o,a,n,i,l,c=t===!0,u={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.event_trigger)};Object.values(u).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),u.sampling&&((a=this.sessionRecording)==null||a.overrideSampling()),u.linked_flag&&((n=this.sessionRecording)==null||n.overrideLinkedFlag()),u.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),u.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,o){if(this.exceptions){var a=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(t,{handled:!0,syntheticException:a});return this.exceptions.sendExceptionEvent(Oe({},n,o))}}addExceptionStep(t,o){var a;(a=this.exceptions)==null||a.addExceptionStep(t,o)}captureLog(t){var o;(o=this.logs)==null||o.captureLog(t)}get logger(){var t,o;return(t=(o=this.logs)==null?void 0:o.logger)!==null&&t!==void 0?t:Zn.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var o,a;return(o=(a=this.toolbar)==null?void 0:a.loadToolbar(t))!==null&&o!==void 0&&o}get_property(t){var o;return(o=this.persistence)==null?void 0:o.props[t]}getSessionProperty(t){var o;return(o=this.sessionPersistence)==null?void 0:o.props[t]}toString(){var t,o=(t=this.config.name)!==null&&t!==void 0?t:Yc;return o!==Yc&&(o=Yc+"."+o),o}_isIdentified(){var t,o;return((t=this.persistence)==null?void 0:t.get_property(pr))===Bc||((o=this.sessionPersistence)==null?void 0:o.get_property(pr))===Bc}nn(){var t,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===LT&&!this._isIdentified()&&Xc(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[ep])&&((o=this.persistence)==null||(o=o.props)==null||!o[$f]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(Ue.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an($f,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==vl)}cn(){var t,o,a,n,i=this.qi();return((t=this.persistence)==null?void 0:t._r)!==i&&((a=this.persistence)==null||a.set_disabled(i)),((o=this.sessionPersistence)==null?void 0:o._r)!==i&&((n=this.sessionPersistence)==null||n.set_disabled(i)),i}opt_in_capturing(t){var o;if(this.config.cookieless_mode!==Ci){if(this.Ni()){var a,n,i,l,c;this.reset(!0),(a=this.sessionManager)==null||a.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new mO(this),this.pageViewManager=new oO(this),this.persistence&&(this.sessionPropsManager=new pO(this,this.sessionManager,this.persistence));var u,p=(i=(l=this.config.__extensionClasses)==null?void 0:l.sessionRecording)!==null&&i!==void 0?i:(c=Zn.__defaultExtensionClasses)==null?void 0:c.sessionRecording;p&&(this.sessionRecording=this.Ei(this.sessionRecording,new p(this)),this.Wi&&((u=this.sessionRecording)==null||u.onRemoteConfig==null||u.onRemoteConfig(this.Wi)))}var h,m;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==vl&&((h=this.surveys)==null||h.loadIfEnabled()),(qe(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((m=t?.captureEventName)!==null&&m!==void 0?m:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Ue.warn(fO)}opt_out_capturing(){var t,o,a;this.config.cookieless_mode!==Ci?(this.config.cookieless_mode===vl&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===vl&&(this.register({distinct_id:Dg,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(a=this.sessionRecording)==null||a.stopRecording(),this.sessionRecording=void 0,this.Ji())):Ue.warn(fO)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Ci||(this.config.cookieless_mode===vl?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return En?xj(En,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(Kc,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(qf,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Zo(ze,qf,this.Pi)))}debug(t){t===!1?(ge?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ge?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var t,o,a,n,i,l,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Ue.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(a="advanced_disable_decide",n=Ue,i=(o="advanced_disable_flags")in(t=c)&&!Ct(t[o]),l=a in t&&!Ct(t[a]),i?t[o]:!!l&&(n&&n.warn("Config field '"+a+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),t[a]))}rn(t){if(Ct(this.config.before_send))return t;var o=Nt(this.config.before_send)?this.config.before_send:[this.config.before_send],a=t;for(var n of o){if(a=n(a),Ct(a)){var i="Event '"+t.event+"' was rejected in beforeSend function";return yne(t.event)?Ue.warn(i+". This can cause unexpected behavior."):Ue.info(i),null}a.properties&&!Xc(a.properties)||Ue.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return a}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,o){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:o})}captureTraceMetric(t,o,a){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:o,$ai_metric_value:String(a)})}Bi(t){var o=$r(t)&&!t,a=_o.R()&&_o.O("ph_debug")==="true";return!o&&(!!a||t)}}function SO(e){return e instanceof Element&&(e.id===oj||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Uv(e){return!!e&&e.nodeType===1}function Rs(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Aj(e){return!!e&&e.nodeType===3}function Rj(e){return!!e&&e.nodeType===11}function Wx(e){return e?Fv(e).split(/\s+/):[]}function wO(e){var t=ge?.location.href;return!!(t&&e&&e.some((o=>t.match(o))))}function Jf(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Wx(t)}function Dj(e){return Ct(e)?null:Fv(e).split(/(\s+)/).filter((t=>mp(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Mp(e){var t="";return GT(e)&&!Mj(e)&&e.childNodes&&e.childNodes.length&&go(e.childNodes,(function(o){var a;Aj(o)&&o.textContent&&(t+=(a=Dj(o.textContent))!==null&&a!==void 0?a:"")})),Fv(t)}function TO(e){return qe(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}Zn.__defaultExtensionClasses={},Zn.dn={trace:jc=()=>{},debug:jc,info:jc,warn:jc,error:jc,fatal:jc},(function(e,t){for(var o=0;t.length>o;o++)e.prototype[t[o]]=are(e.prototype[t[o]])})(Zn,["identify"]);var Kx=["a","button","form","input","select","textarea","label"];function _O(e,t){if(qe(t))return!0;var o,a=function(i){if(t.some((l=>i.matches(l))))return{v:!0}};for(var n of e)if(o=a(n))return o.v;return!1}function Oj(e){var t=e.parentNode;return!(!t||!Uv(t))&&t}var Hre=["next","previous","prev",">","<"],xO=[".ph-no-rageclick",".ph-no-capture"],HT=e=>!e||Rs(e,"html")||!Uv(e),CO=(e,t)=>{if(!ge||HT(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[e],n=e;n.parentNode&&!Rs(n,"body");)if(Rj(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var i=Oj(n);if(!i)break;if(t||Kx.indexOf(i.tagName.toLowerCase())>-1)o=!0;else{var l=ge.getComputedStyle(i);l&&l.getPropertyValue("cursor")==="pointer"&&(o=!0)}a.push(i),n=i}return{parentIsUsefulElement:o,targetElementList:a}};function GT(e){for(var t=e;t.parentNode&&!Rs(t,"body");t=t.parentNode){var o=Jf(t);if(xt(o,"ph-sensitive")||xt(o,"ph-no-capture"))return!1}if(xt(Jf(e),"ph-include"))return!0;var a=e.type||"";if(xo(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=e.name||e.id||"";return!xo(n)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,""))}function Mj(e){return!!(Rs(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Rs(e,"select")||Rs(e,"textarea")||e.getAttribute("contenteditable")==="true")}var Nj="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Gre=new RegExp("^(?:"+Nj+")$"),Wre=new RegExp(Nj),Ij="\\d{3}-?\\d{2}-?\\d{4}",Kre=new RegExp("^("+Ij+")$"),Yre=new RegExp("("+Ij+")");function mp(e,t){return t===void 0&&(t=!0),!(Ct(e)||xo(e)&&(e=Fv(e),(t?Gre:Wre).test((e||"").replace(/[- ]/g,""))||(t?Kre:Yre).test(e)))}function kO(e){var t=Mp(e);return mp(t=(t+" "+Lj(e)).trim())?t:""}function Lj(e){var t="";return e&&e.childNodes&&e.childNodes.length&&go(e.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Mp(o);t=(t+" "+n).trim(),o.childNodes&&o.childNodes.length&&(t=(t+" "+Lj(o)).trim())}catch(i){Ue.error("[AutoCapture]",i)}})),t}function EO(e){return e.replace(/"|\\"/g,'\\"')}function Zre(e){var t=e.attr__class;return t?Nt(t)?t:Wx(t):void 0}class PO{constructor(t){this.disabled=t===!1;var o=Bo(t)?t:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(t,o,a){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(t-n.x)+Math.abs(o-n.y)<this.thresholdPx&&this.timeoutMs>a-n.timestamp){if(this.clicks.push({x:t,y:o,timestamp:a}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:o,timestamp:a}];return!1}}var R0="$copy_autocapture",AO=So("[AutoCapture]");function D0(e,t){return t.length>e?t.slice(0,e)+"...":t}function Qre(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Uv(t));return t}function Jre(e,t){for(var o,a,{e:n,maskAllElementAttributes:i,maskAllText:l,elementAttributeIgnoreList:c,elementsChainAsString:u}=t,p=[e],h=e;h.parentNode&&!Rs(h,"body");)Rj(h.parentNode)?(p.push(h.parentNode.host),h=h.parentNode.host):(p.push(h.parentNode),h=h.parentNode);var m,f,v=[],b={},S=!1,x=!1;if(go(p,(E=>{var R=GT(E);E.tagName.toLowerCase()==="a"&&(S=E.getAttribute("href"),S=R&&S&&mp(S)&&S),xt(Jf(E),"ph-no-capture")&&(x=!0),v.push((function(O,L,$,B){var U=O.tagName.toLowerCase(),j={tag_name:U};Kx.indexOf(U)>-1&&!$&&(j.$el_text=U.toLowerCase()==="a"||U.toLowerCase()==="button"?D0(1024,kO(O)):D0(1024,Mp(O)));var W=Jf(O);W.length>0&&(j.classes=W.filter((function(te){return te!==""}))),go(O.attributes,(function(te){var le;if((!Mj(O)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&(B==null||!B.includes(te.name))&&!L&&mp(te.value)&&(!xo(le=te.name)||le.substring(0,10)!=="_ngcontent"&&le.substring(0,7)!=="_nghost")){var Q=te.value;te.name==="class"&&(Q=Wx(Q).join(" ")),j["attr__"+te.name]=D0(1024,Q)}}));for(var ne=1,H=1,Z=O;Z=Qre(Z);)ne++,Z.tagName===O.tagName&&H++;return j.nth_child=ne,j.nth_of_type=H,j})(E,i,l,c));var D=(function(O){if(!GT(O))return{};var L={};return go(O.attributes,(function($){if($.name&&$.name.indexOf("data-ph-capture-attribute")===0){var B=$.name.replace("data-ph-capture-attribute-",""),U=$.value;B&&U&&mp(U)&&(L[B]=U)}})),L})(E);Oo(b,D)})),x)return{props:{},explicitNoCapture:x};if(l||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?kO(e):Mp(e)),S){var T,_;v[0].attr__href=S;var P=(T=Gf(S))==null?void 0:T.host,k=ge==null||(_=ge.location)==null?void 0:_.host;P&&k&&P!==k&&(m=S)}return{props:Oo({$event_type:n.type,$ce_version:1},u?{}:{$elements:v},{$elements_chain:(f=v,(function(E){return E.map((R=>{var D,O,L="";if(R.tag_name&&(L+=R.tag_name),R.attr_class)for(var $ of(R.attr_class.sort(),R.attr_class))L+="."+$.replace(/"/g,"");var B=Oe({},R.text?{text:R.text}:{},{"nth-child":(D=R.nth_child)!==null&&D!==void 0?D:0,"nth-of-type":(O=R.nth_of_type)!==null&&O!==void 0?O:0},R.href?{href:R.href}:{},R.attr_id?{attr_id:R.attr_id}:{},R.attributes),U={};return af(B).sort(((j,W)=>{var[ne]=j,[H]=W;return ne.localeCompare(H)})).forEach((j=>{var[W,ne]=j;return U[EO(W.toString())]=EO(ne.toString())})),(L+=":")+af(U).map((j=>{var[W,ne]=j;return W+'="'+ne+'"'})).join("")})).join(";")})((function(E){return E.map((R=>{var D,O,L={text:(D=R.$el_text)==null?void 0:D.slice(0,400),tag_name:R.tag_name,href:(O=R.attr__href)==null?void 0:O.slice(0,2048),attr_class:Zre(R),attr_id:R.attr__id,nth_child:R.nth_child,nth_of_type:R.nth_of_type,attributes:{}};return af(R).filter(($=>{var[B]=$;return B.indexOf("attr__")===0})).forEach(($=>{var[B,U]=$;return L.attributes[B]=U})),L}))})(f)))},(o=v[0])!=null&&o.$el_text?{$el_text:(a=v[0])==null?void 0:a.$el_text}:{},m&&n.type==="click"?{$external_click_url:m}:{},b)}}var $u=So("[ExceptionAutocapture]");function RO(e,t,o){try{if(!(t in e))return()=>{};var a=e[t],n=o(a);return xi(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=n,()=>{e[t]=a}}catch{return()=>{}}}var Xre=So("[TracingHeaders]"),us=So("[Web Vitals]"),DO=9e5,OO="disabled",MO="lazy_loading",qu="awaiting_config",Bg="missing_config";So("[SessionRecording]"),So("[SessionRecording]");var WT="[SessionRecording]",ps=So(WT),eie=So("[Heatmaps]");function NO(e){return Bo(e)&&"clientX"in e&&"clientY"in e&&er(e.clientX)&&er(e.clientY)}var IO=So("[Product Tours]"),tie=["$set_once","$set"],ms=So("[SiteApps]"),LO="Error while initializing PostHog app with config id ";function zc(e,t,o){if(Ct(e))return!1;switch(o){case"exact":return e===t;case"contains":var a=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(a,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class oie{constructor(t){this.vn=new Gx,this.fn=(o,a)=>this.pn(o,a)&&this.gn(o,a)&&this.mn(o,a)&&this.yn(o,a),this.pn=(o,a)=>a==null||!a.event||o?.event===a?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,o;qe((t=this._instance)==null?void 0:t._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((a,n)=>{this.on(a,n)}))}register(t){var o,a;if(!qe((o=this._instance)==null?void 0:o._addCaptureHook)&&(t.forEach((l=>{var c,u;(c=this._n)==null||c.add(l),(u=l.steps)==null||u.forEach((p=>{var h;(h=this.bn)==null||h.add(p?.event||"")}))})),(a=this._instance)!=null&&a.autocapture)){var n,i=new Set;t.forEach((l=>{var c;(c=l.steps)==null||c.forEach((u=>{u!=null&&u.selector&&i.add(u?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(i)}}on(t,o){var a;o!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(o?.event))&&this._n&&((a=this._n)==null?void 0:a.size)>0&&this._n.forEach((n=>{this.wn(o,n)&&this.vn.emit("actionCaptured",n.name)}))}In(t){this.onAction("actionCaptured",(o=>t(o)))}wn(t,o){if(o?.steps==null)return!1;for(var a of o.steps)if(this.fn(t,a))return!0;return!1}onAction(t,o){return this.vn.on(t,o)}gn(t,o){if(o!=null&&o.url){var a,n=t==null||(a=t.properties)==null?void 0:a.$current_url;if(!n||typeof n!="string"||!zc(n,o.url,o.url_matching||"contains"))return!1}return!0}mn(t,o){return!!this.Cn(t,o)&&!!this.Sn(t,o)&&!!this.xn(t,o)}Cn(t,o){var a;if(o==null||!o.href)return!0;var n=this.kn(t);if(n.length>0)return n.some((c=>zc(c.href,o.href,o.href_matching||"exact")));var i,l=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!l&&zc((i=l.match(/(?::|")href="(.*?)"/))?i[1]:"",o.href,o.href_matching||"exact")}Sn(t,o){var a;if(o==null||!o.text)return!0;var n=this.kn(t);if(n.length>0)return n.some((p=>zc(p.text,o.text,o.text_matching||"exact")||zc(p.$el_text,o.text,o.text_matching||"exact")));var i,l,c,u=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!u&&(i=(function(p){for(var h,m=[],f=/(?::|")text="(.*?)"/g;!Ct(h=f.exec(p));)m.includes(h[1])||m.push(h[1]);return m})(u),l=o.text,c=o.text_matching||"exact",i.some((p=>zc(p,l,c))))}xn(t,o){var a,n;if(o==null||!o.selector)return!0;var i=t==null||(a=t.properties)==null?void 0:a.$element_selectors;if(i!=null&&i.includes(o.selector))return!0;var l=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";if(o.selector_regex&&l)try{return new RegExp(o.selector_regex).test(l)}catch{return!1}return!1}kn(t){var o;return(t==null||(o=t.properties)==null?void 0:o.$elements)==null?[]:t?.properties.$elements}yn(t,o){return o==null||!o.properties||o.properties.length===0||kj(o.properties.reduce(((a,n)=>{var i=Nt(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return a[n.key]={values:i,operator:n.operator||"exact"},a}),{}),t?.properties)}}class aie{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,o){return!!t&&kj(t.propertyFilters,o?.properties)}Nn(t,o){var a=new Map;return t.forEach((n=>{var i;(i=n.conditions)==null||(i=i[o])==null||(i=i.values)==null||i.forEach((l=>{if(l!=null&&l.name){var c=a.get(l.name)||[];c.push(n.id),a.set(l.name,c)}}))})),a}Mn(t,o,a){var n=(a===Bu.Activation?this.Tn:this.An).get(t),i=[];return this.Fn((l=>{i=l.filter((c=>n?.includes(c.id)))})),i.filter((l=>{var c,u=(c=l.conditions)==null||(c=c[a])==null||(c=c.values)==null?void 0:c.find((p=>p.name===t));return this.Rn(u,o)}))}register(t){var o;qe((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var o=t.filter((a=>{var n,i;return((n=a.conditions)==null?void 0:n.actions)&&((i=a.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new oie(this._instance),this.Ln.init(),this.Ln.In((a=>{this.onAction(a)}))),o.forEach((a=>{var n,i,l,c,u;a.conditions&&(n=a.conditions)!=null&&n.actions&&(i=a.conditions)!=null&&(i=i.actions)!=null&&i.values&&((l=a.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0&&((c=this.Ln)==null||c.register(a.conditions.actions.values),(u=a.conditions)==null||(u=u.actions)==null||(u=u.values)==null||u.forEach((p=>{if(p&&p.name){var h=this.En.get(p.name);h&&h.push(a.id),this.En.set(p.name,h||[a.id])}})))})))}On(t){var o,a=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.events)&&((c=i.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),n=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.cancelEvents)&&((c=i.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));a.length===0&&n.length===0||((o=this._instance)==null||o._addCaptureHook(((i,l)=>{this.onEvent(i,l)})),this.Tn=this.Nn(t,Bu.Activation),this.An=this.Nn(t,Bu.Cancellation))}onEvent(t,o){var a,n=this.le(),i=this.Dn(),l=this.Bn(),c=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[i])||[];if(l===t&&o&&c.length>0){var u,p;n.info("event matched, removing item from activated items",{event:t,eventPayload:o,existingActivatedItems:c});var h=(o==null||(u=o.properties)==null?void 0:u.$survey_id)||(o==null||(p=o.properties)==null?void 0:p.$product_tour_id);if(h){var m=c.indexOf(h);0>m||(c.splice(m,1),this.jn(c))}}else{if(this.An.has(t)){var f=this.Mn(t,o,Bu.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:f.map((b=>b.id))}),f.forEach((b=>{var S=c.indexOf(b.id);0>S||c.splice(S,1),this.$n(b.id)})),this.jn(c))}if(this.Tn.has(t)){n.info("event name matched",{event:t,eventPayload:o,items:this.Tn.get(t)});var v=this.Mn(t,o,Bu.Activation);this.jn(c.concat(v.map((b=>b.id))||[]))}}}onAction(t){var o,a=this.Dn(),n=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[a])||[];this.En.has(t)&&this.jn(n.concat(this.En.get(t)||[]))}jn(t){var o=this.le(),a=[...new Set(t)].filter((n=>!this.qn(n)));o.info("updating activated items",{activatedItems:a}),this.Zn(a)}getActivatedIds(){var t,o=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class nie extends aie{constructor(t){super(t)}Dn(){return AT}Bn(){return rp.SHOWN}Fn(t){var o;(o=this._instance)==null||o.getSurveys(t)}$n(t){var o;(o=this._instance)==null||o.cancelPendingSurvey(t)}le(){return eo}Zn(t){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[AT]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var O0="SDK is not enabled or survey functionality is not yet loaded",BO="Disabled. Not loading surveys.",rie=ge!=null&&ge.location?Kf(ge.location.hash,"__posthog")||Kf(location.hash,"state"):null,FO="_postHogToolbarParams",jO=So("[Toolbar]"),qa=So("[FeatureFlags]"),ul=So("[FeatureFlags]",{debugEnabled:!0}),M0=`" failed. Feature flags didn't load in time.`,zO=e=>{for(var t={},o=0;e.length>o;o++)t[e[o]]=!0;return t},UO=e=>{var t={};for(var[o,a]of af(e||{}))a&&(t[o]=a);return t},Ti=So("[Error tracking]"),$O="Refusing to render web experiment since the viewer is a likely bot",iie={icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!ge&&Qf(t.href,e),not_regex:(e,t)=>!!ge&&!Qf(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Oa{get Bt(){return this._instance.config}constructor(t){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(a){a===void 0&&(a=!1),o.getWebExperiments((n=>{Oa.Hn("retrieved web experiments from the server"),o.zn=new Map,n.forEach((i=>{if(i.feature_flag_key){var l;o.zn&&(Oa.Hn("setting flag key ",i.feature_flag_key," to web experiment ",i),(l=o.zn)==null||l.set(i.feature_flag_key,i));var c=o._instance.getFeatureFlag(i.feature_flag_key);xo(c)&&i.variants[c]&&o.Un(i.name,c,i.variants[c].transforms)}else if(i.variants)for(var u in i.variants){var p=i.variants[u];Oa.Yn(p)&&o.Un(i.name,u,p.transforms)}}))}),a)},this._instance=t,this._instance.onFeatureFlags((a=>{this.onFeatureFlags(a)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Oa.Hn($O);else if(!this.Bt.disable_web_experiments){if(Ct(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Oa.Hn("applying feature flags",t),t.forEach((o=>{var a;if(this.zn&&(a=this.zn)!=null&&a.has(o)){var n,i=this._instance.getFeatureFlag(o),l=(n=this.zn)==null?void 0:n.get(o);i&&l!=null&&l.variants[i]&&this.Un(l.name,i,l.variants[i].transforms)}}))}}previewWebExperiment(){var t=Oa.getWindowLocation();if(t!=null&&t.search){var o=Wf(t?.search,"__experiment_id"),a=Wf(t?.search,"__experiment_variant");o&&a&&(Oa.Hn("previewing web experiments "+o+" && "+a),this.getWebExperiments((n=>{this.Gn(parseInt(o),a,n)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,o,a){if(this.Bt.disable_web_experiments&&!a)return t([]);var n=this._instance.get_property("$web_experiments");if(n&&!o)return t(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:i=>t(i.statusCode===200&&i.json&&i.json.experiments||[])})}Gn(t,o,a){var n=a.filter((i=>i.id===t));n&&n.length>0&&(Oa.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+o+"]"),this.Un(n[0].name,o,n[0].variants[o].transforms))}static Yn(t){return!Ct(t.conditions)&&Oa.Wn(t)&&Oa.Xn(t)}static Wn(t){var o;if(Ct(t.conditions)||Ct((o=t.conditions)==null?void 0:o.url))return!0;var a,n,i,l=Oa.getWindowLocation();return!!l&&((a=t.conditions)==null||!a.url||iie[(n=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&n!==void 0?n:"icontains"](t.conditions.url,l))}static getWindowLocation(){return ge?.location}static Xn(t){var o;if(Ct(t.conditions)||Ct((o=t.conditions)==null?void 0:o.utm))return!0;var a=dj();if(a.utm_source){var n,i,l,c,u,p,h,m,f=(n=t.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==a.utm_campaign,v=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==a.utm_source,b=(u=t.conditions)==null||(u=u.utm)==null||!u.utm_medium||((p=t.conditions)==null||(p=p.utm)==null?void 0:p.utm_medium)==a.utm_medium,S=(h=t.conditions)==null||(h=h.utm)==null||!h.utm_term||((m=t.conditions)==null||(m=m.utm)==null?void 0:m.utm_term)==a.utm_term;return f&&b&&S&&v}return!1}static Hn(t){for(var o=arguments.length,a=new Array(o>1?o-1:0),n=1;o>n;n++)a[n-1]=arguments[n];Ue.info("[WebExperiments] "+t,a)}Un(t,o,a){this._is_bot()?Oa.Hn($O):o!=="control"?a.forEach((n=>{if(n.selector){var i;Oa.Hn("applying transform of variant "+o+" for experiment "+t+" ",n);var l=(i=document)==null?void 0:i.querySelectorAll(n.selector);l?.forEach((c=>{var u=c;n.html&&(u.innerHTML=n.html),n.css&&u.setAttribute("style",n.css)}))}})):Oa.Hn("Control variants leave the page unmodified.")}_is_bot(){return En&&this._instance?xj(En,this.Bt.custom_blocked_useragents):void 0}}var Hn=So("[Conversations]"),pl="Conversations not available yet.",$v={featureFlags:class{constructor(e){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,qa.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(qa.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((o=>{var a=o&&typeof o=="string"&&o.trim().length>0;return a||qa.error("Invalid evaluation context found:",o,"Expected non-empty string"),a})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:o}=this._instance,a=(e=(t=o.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(a).length){var n,i,l=(n=(i=o.bootstrap)==null?void 0:i.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(a).filter((p=>!!a[p])).reduce(((p,h)=>(p[h]=a[h]||!1,p)),{}),u=Object.keys(l).filter((p=>c[p])).reduce(((p,h)=>(l[h]&&(p[h]=l[h]),p)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:u})}}updateFlags(e,t,o){var a=o!=null&&o.merge?this.getFlagVariants():{},n=o!=null&&o.merge?this.getFlagPayloads():{},i=Oe({},a,e),l=Oe({},n,t),c={};for(var[u,p]of Object.entries(i)){var h=typeof p=="string";c[u]={key:u,enabled:!!h||!!p,variant:h?p:void 0,reason:void 0,metadata:qe(l?.[u])?void 0:{id:0,version:void 0,description:void 0,payload:l[u]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(CT),t=this.os(_i),o=this.os(Wc);if(!o&&!t)return e||{};var a=Oo({},e||{}),n=[...new Set([...Object.keys(o||{}),...Object.keys(t||{})])];for(var i of n){var l,c,u=a[i],p=t?.[i],h=qe(p)?(l=u?.enabled)!==null&&l!==void 0&&l:!!p,m=qe(p)?u.variant:typeof p=="string"?p:void 0,f=o?.[i],v=Oe({},u,{enabled:h,variant:h?m??u?.variant:void 0});h!==u?.enabled&&(v.original_enabled=u?.enabled),m!==u?.variant&&(v.original_variant=u?.variant),f&&(v.metadata=Oe({},u?.metadata,{payload:f,original_payload:u==null||(c=u.metadata)==null?void 0:c.payload})),a[i]=v}return this.Jn||(qa.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:o,finalDetails:a}),this.Jn=!0),a}getFlagVariants(){var e=this.os(ed),t=this.os(_i);if(!t)return e||{};for(var o=Oo({},e),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||(qa.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var e=this.os(kT),t=this.os(Wc);if(!t)return e||{};for(var o=Oo({},e||{}),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||(qa.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:o}),this.Jn=!0),o}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,a=this.os(Ff),n={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Oe({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(np)||{}),group_properties:this.os(fl),timezone:fj()};Ni(a)||qe(a)||(n.$device_id=a),(e!=null&&e.disableFlags||this.Bt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.cs()&&(n.evaluation_contexts=this.hs());var i=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:i,data:n,compression:this.Bt.disable_compression?void 0:Br.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:l=>{var c,u,p,h=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),h=!1),this.Qn=!1,!n.disable_flags||this.ts){this.rs=!h;var m=[];l.error?l.error instanceof Error?m.push(l.error.name==="AbortError"?"timeout":"connection_error"):m.push("unknown_error"):l.statusCode!==200&&m.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&m.push("errors_while_computing_flags");var f,v=!((u=l.json)==null||(u=u.quotaLimited)==null||!u.includes("feature_flags"));v&&m.push("quota_limited"),(p=this.ni)==null||p.register({[DT]:m}),v?qa.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(n.disable_flags||this.receivedFeatureFlags((f=l.json)!==null&&f!==void 0?f:{},h,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var o;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFeatureFlagResult(e,t);return(o=a?.variant)!==null&&o!==void 0?o:a?.enabled}}else qa.warn('getFeatureFlag for key "'+e+M0)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),a=e in o,n=o[e],i=this.getFlagPayloads()[e],l=String(n),c=this.os(ET)||void 0,u=this.os(zf)||void 0,p=this.os(dp)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var h,m=this._instance.get_session_id(),f=this.os(RT);m&&m!==f&&(p={},(h=this.ni)==null||h.register({[dp]:p,[RT]:m}))}if((t.send_event||!("send_event"in t))&&(!(e in p)||!p[e].includes(l))){var v,b,S,x,T,_,P,k,E,R;Nt(p[e])?p[e].push(l):p[e]=[l],(v=this.ni)==null||v.register({[dp]:p});var D=this.getFeatureFlagDetails(e),O=[...(b=this.os(DT))!==null&&b!==void 0?b:[]];qe(n)&&O.push("flag_missing");var L={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:i||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:u,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[e])||null,$feature_flag_bootstrapped_payload:((x=this.Bt.bootstrap)==null||(x=x.featureFlagPayloads)==null?void 0:x[e])||null,$used_bootstrap_value:!this.rs};qe(D==null||(T=D.metadata)==null?void 0:T.version)||(L.$feature_flag_version=D.metadata.version);var $,B=(_=D==null||(P=D.reason)==null?void 0:P.description)!==null&&_!==void 0?_:D==null||(k=D.reason)==null?void 0:k.code;B&&(L.$feature_flag_reason=B),D!=null&&(E=D.metadata)!=null&&E.id&&(L.$feature_flag_id=D.metadata.id),qe(D?.original_variant)&&qe(D?.original_enabled)||(L.$feature_flag_original_response=qe(D.original_variant)?D.original_enabled:D.original_variant),D!=null&&(R=D.metadata)!=null&&R.original_payload&&(L.$feature_flag_original_payload=D==null||($=D.metadata)==null?void 0:$.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(a){var U=i;if(!qe(i))try{U=JSON.parse(i)}catch{}return{key:e,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:U}}}}else qa.warn('getFeatureFlagResult for key "'+e+M0)}getRemoteConfigPayload(e,t){var o=this.Bt.token,a={distinct_id:this._instance.get_distinct_id(),token:o};this.cs()&&(a.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:a,compression:this.Bt.disable_compression?void 0:Br.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var i,l=(i=n.json)==null?void 0:i.featureFlagPayloads;t(l?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(e,t);return qe(o)?void 0:!!o}qa.warn('isFeatureEnabled for key "'+e+M0)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,o){if(this.ni){this.Kn=!0;var a=this.getFlagVariants(),n=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(l,c,u,p,h,m){u===void 0&&(u={}),p===void 0&&(p={}),h===void 0&&(h={});var f=(O=>{var L=O.flags;return L?(O.featureFlags=Object.fromEntries(Object.keys(L).map(($=>{var B;return[$,(B=L[$].variant)!==null&&B!==void 0?B:L[$].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter(($=>L[$].enabled)).filter(($=>{var B;return(B=L[$].metadata)==null?void 0:B.payload})).map(($=>{var B;return[$,(B=L[$].metadata)==null?void 0:B.payload]})))):qa.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(l),v=f.flags,b=f.featureFlags,S=f.featureFlagPayloads;if(b){var x=l.requestId,T=l.evaluatedAt;if(Nt(b)){qa.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var _={};if(b)for(var P=0;b.length>P;P++)_[b[P]]=!0;c&&c.register({[tf]:b,[ed]:_})}else{var k=b,E=S,R=v;if(m!=null&&m.partialResponse)k=Oe({},u,k),E=Oe({},p,E),R=Oe({},h,R);else if(l.errorsWhileComputingFlags)if(v){var D=new Set(Object.keys(v).filter((O=>{var L;return!((L=v[O])!=null&&L.failed)})));k=Oe({},u,Object.fromEntries(Object.entries(k).filter((O=>{var[L]=O;return D.has(L)})))),E=Oe({},p,Object.fromEntries(Object.entries(E||{}).filter((O=>{var[L]=O;return D.has(L)})))),R=Oe({},h,Object.fromEntries(Object.entries(R||{}).filter((O=>{var[L]=O;return D.has(L)}))))}else k=Oe({},u,k),E=Oe({},p,E),R=Oe({},h,R);c&&c.register(Oe({[tf]:Object.keys(UO(k)),[ed]:k||{},[kT]:E||{},[CT]:R||{}},x?{[ET]:x}:{},T?{[zf]:T}:{}))}}})(e,this.ni,a,n,i,o),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),qa.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return qa.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(_i),this.ni.unregister(Wc),this.ps(),ul.info("All overrides cleared");if(Nt(e)){var t=zO(e);return this.ni.register({[_i]:t}),this.ps(),ul.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var o,a=e;if(this.Jn=!!((o=a.suppressWarning)!==null&&o!==void 0&&o),"flags"in a){if(a.flags===!1)this.ni.unregister(_i),ul.info("Flag overrides cleared");else if(a.flags){if(Nt(a.flags)){var n=zO(a.flags);this.ni.register({[_i]:n})}else this.ni.register({[_i]:a.flags});ul.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(Wc),ul.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[Wc]:a.payloads}),ul.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[_i]:e}),this.ps(),ul.info("Flag overrides set",{flags:e});qa.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:o}=this.gs();e(t,o)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,o){var a,n=(this.os(ap)||[]).find((u=>u.flagKey===e)),i={["$feature_enrollment/"+e]:t},l={$feature_flag:e,$feature_enrollment:t,$set:i};n&&(l.$early_access_feature_name=n.name),o&&(l.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(i,!1);var c=Oe({},this.getFlagVariants(),{[e]:t});(a=this.ni)==null||a.register({[tf]:Object.keys(UO(c)),[ed]:c}),this.ps()}getEarlyAccessFeatures(e,t,o){t===void 0&&(t=!1);var a=this.os(ap),n=o?"&"+o.map((i=>"stage="+i)).join("&"):"";if(a&&!t)return e(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+n),method:"GET",callback:i=>{var l,c;if(i.json){var u=i.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(ap),(c=this.ni)==null||c.register({[ap]:u}),e(u)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((o=>t[o])),flagVariants:Object.keys(t).filter((o=>t[o])).reduce(((o,a)=>(o[a]=t[a],o)),{})}}ps(e){var{flags:t,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((a=>a(t,o,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(np)||{},a=e?.$set||(e!=null&&e.$set_once?{}:e),n=e?.$set_once,i={};if(n)for(var l in n)({}).hasOwnProperty.call(n,l)&&(l in o||(i[l]=n[l]));this._instance.register({[np]:Oe({},o,i,a)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(np)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(fl)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Oe({},o[a],e[a]),delete e[a]})),this._instance.register({[fl]:Oe({},o,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(fl)||{};this._instance.register({[fl]:Oe({},t,{[e]:{}})})}else this._instance.unregister(fl)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},sie={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===qu||this.bs===Bg?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=OO,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw ps.error("started without valid sessionManager"),new Error(WT+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Ci)throw new Error(WT+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(op))==null||!e.enabled),o=!this.Bt.disable_session_recording,a=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&t&&o&&!a}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var o=!qe(Object.assign)&&!qe(Array.from);this.ws&&o?(this.Is(e),ps.info("starting")):(this.bs=OO,this.stopRecording())}}Is(e){var t,o,a;this.ws&&(this.bs!==qu&&this.bs!==Bg&&(this.bs=MO),et!=null&&(t=et.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(o=et.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(e):(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return ps.error("could not load recorder",n);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister(Ux)}Ts(e,t){if(Ct(e))return null;var o,a=er(e)?e:parseFloat(e);return typeof(o=a)!="number"||!Number.isFinite(o)||0>o||o>1?(ps.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):a}As(e){if(this.ni){var t,o,a=this.ni,n=()=>{var i,l=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.Ts((i=this.Bt.session_recording)==null?void 0:i.sampleRate,"session_recording.sampleRate"),u=this.Ts(l?.sampleRate,"remote config sampleRate"),p=c??u;Ct(p)&&this.ks();var h=l?.minimumDurationMilliseconds;a.register({[op]:Oe({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:Oe({capturePerformance:e.capturePerformance},l?.networkPayloadCapture),canvasRecording:{enabled:l?.recordCanvas,fps:l?.canvasFps,quality:l?.canvasQuality},sampleRate:p,minimumDurationMilliseconds:qe(h)?null:h,endpoint:l?.endpoint,triggerMatchType:l?.triggerMatchType,masking:l?.masking,urlTriggers:l?.urlTriggers,version:l?.version,triggerGroups:l?.triggerGroups})})};n(),(t=this._s)==null||t.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(n)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===qu&&(this.bs=Bg,ps.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var o;t===void 0&&(t="log"),(o=this.ys)!=null&&o.log?this.ys.log(e,t):ps.warn("log called before recorder was ready")}get Ss(){var e,t,o=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(op);return(o==null||(t=o.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(op);if(!t)return!1;var o=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-o}Cs(e){var t,o;if((t=et.__PosthogExtensions__)==null||!t.initSessionRecording)return ps.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[rj]:!0});if(this.ys||(this.ys=(o=et.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===Bg||this.bs===qu?void 0:(this.bs=qu,ps.info("persisted remote config is stale, requesting fresh config before starting"),void new vj(this._instance).load());this.bs=MO,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[XF]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[JF]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,o;this.ys||(o=this.ni)==null||o.register({[e==="url"?ej:tj]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(e,t))}}},lie={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new PO(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,o=Bo(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(e=o.url_allowlist)==null?void 0:e.map((a=>new RegExp(a))),o.url_ignorelist=(t=o.url_ignorelist)==null?void 0:t.map((a=>new RegExp(a))),o}Os(){if(this.isBrowserSupported()){if(ge&&ze){var e=o=>{o=o||ge?.event;try{this.Ps(o)}catch(a){AO.error("Failed to capture event",a)}};if(Zo(ze,"submit",e,{capture:!0}),Zo(ze,"change",e,{capture:!0}),Zo(ze,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=o=>{this.Ps(o=o||ge?.event,R0)};Zo(ze,"copy",t,{capture:!0}),Zo(ze,"cut",t,{capture:!0})}}}else AO.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Ms=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[vT]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,o=[];return(t=this.Fs)==null||t.forEach((a=>{var n=ze?.querySelectorAll(a);n?.forEach((i=>{e===i&&o.push(a)}))})),o}get isEnabled(){var e,t,o=(e=this.instance.persistence)==null?void 0:e.props[vT];if(Ni(this.Ns)&&!$r(o)&&!this.instance.Fr())return!1;var a=(t=this.Ns)!==null&&t!==void 0?t:!!o;return!!this.instance.config.autocapture&&!a}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var o,a=TO(e);Aj(a)&&(a=a.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(m,f){if(!ge||HT(m))return!1;var v,b,S;if($r(f)?(v=!!f&&xO,b=void 0):(v=(S=f?.css_selector_ignorelist)!==null&&S!==void 0?S:xO,b=f?.content_ignorelist),v===!1)return!1;var{targetElementList:x}=CO(m,!1);return!(function(T,_){if(T===!1||qe(T))return!1;var P;if(T===!0)P=Hre;else{if(!Nt(T))return!1;if(T.length>10)return Ue.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;P=T.map((k=>k.toLowerCase()))}return _.some((k=>{var{safeText:E,ariaLabel:R}=k;return P.some((D=>E.includes(D)||R.includes(D)))}))})(b,x.map((T=>{var _;return{safeText:Mp(T).toLowerCase(),ariaLabel:((_=T.getAttribute("aria-label"))==null?void 0:_.toLowerCase().trim())||""}})))&&!_O(x,v)})(a,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var n=t===R0;if(a&&(function(m,f,v,b,S){var x,T,_,P;if(v===void 0&&(v=void 0),!ge||HT(m)||(x=v)!=null&&x.url_allowlist&&!wO(v.url_allowlist)||(T=v)!=null&&T.url_ignorelist&&wO(v.url_ignorelist))return!1;if((_=v)!=null&&_.dom_event_allowlist){var k=v.dom_event_allowlist;if(k&&!k.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:E,targetElementList:R}=CO(m,b);if(!(function(L,$){var B=$?.element_allowlist;if(qe(B))return!0;var U,j=function(ne){if(B.some((H=>ne.tagName.toLowerCase()===H)))return{v:!0}};for(var W of L)if(U=j(W))return U.v;return!1})(R,v)||!_O(R,(P=v)==null?void 0:P.css_selector_allowlist))return!1;var D=ge.getComputedStyle(m);if(D&&D.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var O=m.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(S||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(f.type)>=0;default:return E?(S||["click"]).indexOf(f.type)>=0:(S||["click"]).indexOf(f.type)>=0&&(Kx.indexOf(O)>-1||m.getAttribute("contenteditable")==="true")}})(a,e,this.Bt,n,n?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:l}=Jre(a,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(l)return!1;var c=this.getElementSelectors(a);if(c&&c.length>0&&(i.$element_selectors=c),t===R0){var u,p=Dj(ge==null||(u=ge.getSelection())==null?void 0:u.toString()),h=e.type||"clipboard";if(!p)return!1;i.$selected_content=p,i.$copy_type=h}return this.instance.capture(t,i),!0}}}isBrowserSupported(){return xi(ze?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(ge==null||(t=ge.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ue.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,Ue.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(ge&&ge.history){var o=this;(e=ge.history.pushState)!=null&&e.__posthog_wrapped__||RO(ge.history,"pushState",(a=>function(n,i,l){a.call(this,n,i,l),o.Bs("pushState")})),(t=ge.history.replaceState)!=null&&t.__posthog_wrapped__||RO(ge.history,"replaceState",(a=>function(n,i,l){a.call(this,n,i,l),o.Bs("replaceState")})),this.js()}}Bs(e){try{var t,o=ge==null||(t=ge.location)==null?void 0:t.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(Kc,{navigation_type:e}),this.Ls=o}catch(a){Ue.error("Error capturing "+e+" pageview",a)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};Zo(ge,"popstate",e),this.Ds=()=>{ge&&ge.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[bT]),this.rageclicks=new PO(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Bo(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Ct(this.Bt.capture_heatmaps)?Ct(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;eie.info("starting..."),this.Zs(),this.Ft()}else{var e;clearInterval((e=this.qs)!==null&&e!==void 0?e:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[bT]:t}),this.$s=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.T;return this.T=void 0,e}Hs(e){this.Tt(e.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=ze?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){ge&&ze&&(this.zs=this.Yr.bind(this),Zo(ge,Vf,this.zs),this.Us=e=>this.Tt(e||ge?.event),Zo(ze,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||ge?.event),Zo(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new tO(this.instance,mre,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Zo(ze,qf,this.Xs),this.Rs=!0)}Vs(){var e;ge&&ze&&(this.zs&&ge.removeEventListener(Vf,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(qf,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){var o=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),i=(function(l,c,u){for(var p=l;p&&Uv(p)&&!Rs(p,"body");){if(p===u)return!1;if(xt(c,ge?.getComputedStyle(p).position))return!0;p=Oj(p)}return!1})(TO(e),["fixed","sticky"],n);return{x:e.clientX+(i?0:a),y:e.clientY+(i?0:o),target_fixed:i,type:t}}Tt(e,t){var o;if(t===void 0&&(t="click"),!SO(e.target)&&NO(e)){var a=this.Ks(e,t);(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Oe({},a,{type:"rageclick"})),this.Qs(a)}}Gs(e){!SO(e.target)&&NO(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(ge){var t=ge.location.href,o=this.Bt.custom_personal_data_properties,a=this.Bt.mask_personal_data_properties?[...xd,...o||[]]:[],n=Dp(t,a,Op);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(e)}}Yr(){this.T&&!Xc(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:tO,webVitalsAutocapture:class{constructor(e){var t;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((o,a)=>Oe({},o,{["$web_vitals_"+a.name+"_event"]:Oe({},a),["$web_vitals_"+a.name+"_value"]:a.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=o=>{var a,n=(a=this._instance.sessionManager)==null?void 0:a.checkAndGetSessionAndWindowId(!0);if(qe(n))us.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.io();qe(i)||(Ct(o?.name)||Ct(o?.value)?us.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),qe(this.T.url)&&(this.T.url=i),this.T.firstMetricTimestamp=qe(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Oe({},o,{$current_url:i,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):us.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,a,n,i,l=et.__PosthogExtensions__;qe(l)||qe(l.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:a,onFCP:n,onINP:i}=l.postHogWebVitalsCallbacks),o&&a&&n&&i?(this.allowedMetrics.indexOf("LCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&a(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this.ht.bind(this)),this.Rs=!0):us.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[TT]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,o=Bo(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Ct(o)?((t=this._instance.persistence)==null?void 0:t.props[xT])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Bo(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Bo(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Bo(this.oo)&&er(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:DO;return e>0&&6e4>=e?DO:e}get isEnabled(){var e=wa?.protocol;if(e!=="http:"&&e!=="https:")return us.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Bo(this.oo)?this.oo.web_vitals:$r(this.oo)?this.oo:void 0;return $r(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(us.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Bo(e.capturePerformance)&&!!e.capturePerformance.web_vitals,o=Bo(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[TT]:t}),this._instance.persistence.register({[xT]:o})),this.$s=t,this.startIfEnabled()}}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(a=>{a?us.error("failed to load script",a):e()}))}io(){var e=ge?ge.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...xd,...t||[]]:[];return Dp(e,o,Op)}us.error("Could not determine current URL")}}},cie={exceptionObserver:class{constructor(e){var t,o,a;this.so=()=>{var n;if(ge&&this.isEnabled&&(n=et.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var i=et.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=et.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=et.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=i(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=l(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(u){$u.error("failed to start",u),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[yT]),this.do=new Tne({refillRate:(o=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&o!==void 0?o:1,bucketSize:(a=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&a!==void 0?a:10,refillInterval:1e4,Gt:$u}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Bo(e)?t=Oe({},t,e):(qe(e)?this.co:e)&&(t=Oe({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?($u.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(a=>{if(a)return $u.error("failed to load script",a);e()}))}ho(){var e,t,o;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[yT]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,o,a,n=(t=e==null||(o=e.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(n)?$u.info("Skipping exception capture because of client rate limiting.",{exception:n}):(a=this._instance.exceptions)==null||a.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,o;this.fo=[],this.po=new Ine([new qne,new Jne,new Hne,new Vne,new Zne,new Yne,new Wne,new Qne],(function(a){for(var n=arguments.length,i=new Array(n>1?n-1:0),l=1;n>l;l++)i[l-1]=arguments[l];return function(c,u){u===void 0&&(u=0);for(var p=[],h=c.split(`
|
|
168
|
-
`),m=u;h.length>m;m++){var f=h[m];if(1024>=f.length){var v=QD.test(f)?f.replace(QD,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of i){var S=b(v,a);if(S){p.push(S);break}}if(p.length>=50)break}}}return(function(x){if(!x.length)return[];var T=Array.from(x);return T.reverse(),T.slice(0,50).map((_=>{return Oe({},_,{filename:_.filename||(P=T,P[P.length-1]||{}).filename,function:_.function||_d});var P}))})(p)}})("web:javascript",jne,$ne)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(ST))!==null&&t!==void 0?t:[],this.mo=Bf(this.yo()),this.bo=new ere(this.mo)}onConfigChange(){this.mo=Bf(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,a;if("errorTracking"in e){var n=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(a=e.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[ST]:this.fo,[wT]:i})}}get _o(){var e,t=!!this._instance.get_property(wT),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!xo(e)||e.trim().length===0)return void Ti.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:a,droppedKeys:n}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,u)=>Xne.has(u)?(l.push(u),c):(c[u]=i[u],c)),{}),droppedKeys:l}})(o);n.length>0&&Ti.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Oe({[If]:e,[Lf]:new Date().toISOString()},a))}catch(i){Ti.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Ti.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Ti.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Ti.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Ct(e.$exception_steps)?this.To(e):e;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return Ti.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Ti.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Oe({},e,{$exception_steps:t})}catch(o){return Ti.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[If]:e,[Lf]:new Date().toISOString()})}wo(e){return Bo(e)?Oe({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,a)=>{var{type:n,value:i}=a;return xo(n)&&n.length>0&&o.$exception_types.push(n),xo(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var i,l=Cj[n.operator],c=Nt(n.value)?n.value:[n.value],u=(i=t[n.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,u)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,a;return(o=(a=t.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,a,n,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(a=l==null||(n=l.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(e){return!Ct(e)&&Nt(e)}}},die=Oe({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[_T]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(_T)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?IO.error("Could not load product tours script",a):e()}))}Ro(){var e;!this.Ao&&(e=et.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=et.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Nt(this.Eo)||t){var o=this.ni;if(o){var a=o.props[of];if(Nt(a)&&!t)return this.Eo=a,void e(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var i=n.statusCode;if(i!==200||!n.json){var l="Product Tours API could not be loaded, status: "+i;return IO.error(l),void e([],{isLoaded:!1,error:l})}var c=Nt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[of]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Ct(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(of)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},$v),uie={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=et._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,a,n,i,l,c;if(!e)throw new Error("Event payload is required");var u={},p=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[m,f]of Object.entries(h))u[m]={id:p[m],type:m,properties:f};var{$set_once:v,$set:b}=e;return{event:Oe({},kF(e,tie),{properties:Oe({},e.properties,b?{$set:Oe({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Oe({},(a=(n=e.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(ms.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},a=!1,n=l=>{t.errored=!l,t.loaded=!0,ms.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),a&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){n(l)}});i&&(t.processEvent=i),a=!0}catch(l){ms.error(LO+e.id,l),n(!1)}if(a&&t.loaded)try{o()}catch(l){ms.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(a){ms.error("Error while processing event "+e.event+" for site app "+o.id,a)}}}onRemoteConfig(e){var t,o,a,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(u=>this.Po(u)))):void ms.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=e.siteApps)!=null&&a.length)if(this.isEnabled){var i=function(u){var p;et["__$$ph_site_app_"+u]=n._instance,(p=et.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(n._instance,c,(h=>{if(h)return ms.error(LO+u,h)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else ms.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},pie={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];qe(this.Lo)&&((t=et.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),qe(this.Do)&&((o=et.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Xre.error("failed to load script",a);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},mie=Oe({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Ct(t))return eo.warn("Flags not loaded yet. Not loading surveys.");var o=Nt(t);this.jo=o?t.length>0:t,eo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(qT)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)eo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)eo.info(BO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())eo.info("Not loading surveys in cookieless mode without consent.");else{var e=et?.__PosthogExtensions__;if(e){if(!qe(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var a=e.loadExternalDependency;if(!a)return void this.Ho($x);a(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else eo.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new nie(this._instance),eo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){eo.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return eo.info(BO),e([]);var o,a=this._instance.get_property(PT);if(a&&!t)return e(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:i,context:l}=n;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var i;this.Zo=null;var l=n.statusCode;if(l!==200||!n.json){var c="Surveys API could not be loaded, status: "+l;eo.error(c);var u={isLoaded:!1,error:c};return e([],u),void(o==null||o({surveys:[],context:u}))}var p,h=n.json.surveys||[],m=h.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var S;return!((S=b.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(b){var S;return!((S=b.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));m.length>0&&((p=this._surveyEventReceiver)==null||p.register(m)),(i=this._instance.persistence)==null||i.register({[PT]:h});var f={isLoaded:!0};e(h,f),o?.({surveys:h,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){eo.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Ct(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);eo.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var a;t=(a=o.find((n=>n.id===e)))!==null&&a!==void 0?a:null})),t}Yo(e){if(Ct(this._surveyManager))return{eligible:!1,reason:O0};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Ct(this._surveyManager))return eo.warn("init was not called"),{visible:!1,disabledReason:O0};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Ct(this._surveyManager)?(eo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:O0})):new Promise((o=>{this.getSurveys((a=>{var n,i=(n=a.find((c=>c.id===e)))!==null&&n!==void 0?n:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var a;if(Ct(this._surveyManager))eo.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(Fre.includes(n.type)){var i=ze?.querySelector(t);if(i)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(eo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;eo.info("Rendering survey "+n.id+" with delay of "+((l=n.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,i,o),eo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i,o);eo.warn("Survey element not found")}else eo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else eo.warn("Survey not found")}}displaySurvey(e,t){var o;if(Ct(this._surveyManager))eo.warn("init was not called");else{var a=this.Uo(e);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Oe({},a,{appearance:Oe({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==BT.Popover&&t.initialResponses&&eo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(a);if(!i.visible)return void eo.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==BT.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else eo.warn("Survey not found")}}cancelPendingSurvey(e){Ct(this._surveyManager)?eo.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},$v),hie={toolbar:class{constructor(e){this.instance=e}Go(e){et.ph_toolbar_state=e}Wo(){var e;return(e=et.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),ij(this.instance.config)||!ge||!ze)return!1;e=e??ge.location,o=o??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var a,n=rie||Kf(e.hash,"__posthog")||Kf(e.hash,"state"),i=n?XD((()=>JSON.parse(atob(decodeURIComponent(n)))))||XD((()=>JSON.parse(decodeURIComponent(n)))):null;return i&&i.action==="ph_authorize"?((a=i).source="url",a&&Object.keys(a).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((a=JSON.parse(t.getItem(FO)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(e){var t=et.ph_load_toolbar||et.ph_load_editor;!Ct(t)&&xi(t)?t(e,this.instance):jO.warn("No toolbar load function found")}loadToolbar(e){var t=!(ze==null||!ze.getElementById(oj));if(!ge||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Oe({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(FO,JSON.stringify(Oe({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return jO.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(a)})),Zo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},gie=Oe({experiments:Oa},$v),fie={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Ct(t)||($r(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||ij(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=et?.__PosthogExtensions__;if(e&&!qe(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra($x);o(this._instance,"conversations",(a=>{a||!e.initConversations?this.ra("Could not load conversations script",a):this.ta(e.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Hn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Hn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Hn.error("Cannot complete initialization: remote config is null")}ra(e,t){Hn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Hn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Ni(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var a=this;return Kn((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(e,t,o):(Hn.warn(pl),null)}))()}getMessages(e,t){var o=this;return Kn((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Hn.warn(pl),null)}))()}markAsRead(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Hn.warn(pl),null)}))()}getTickets(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Hn.warn(pl),null)}))()}requestRestoreLink(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Hn.warn(pl),null)}))()}restoreFromToken(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Hn.warn(pl),null)}))()}restoreFromUrlToken(){var e=this;return Kn((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Hn.warn(pl),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},vie={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=So("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Ct(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=et?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var a;o||(a=e.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error($x)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,a,n,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,u=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,p=Date.now();if(c>p-this.aa||(this.aa=p,this.oa=0,this.la=!1),u>this.oa){this.oa++;var h=(function(m,f){var v=m.level||"info",{text:b,number:S}=GF[v]||Mne,x=String(Date.now())+"000000",T={};f.distinctId&&(T.posthogDistinctId=f.distinctId),f.sessionId&&(T.sessionId=f.sessionId),f.currentUrl&&(T["url.full"]=f.currentUrl),f.screenName&&(T["screen.name"]=f.screenName),f.appState&&(T["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(T.feature_flags=f.activeFeatureFlags);var _=Oe({},T,m.attributes||{}),P={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:S,severityText:b,body:{stringValue:m.body},attributes:ZD(_)};return m.trace_id&&(P.traceId=m.trace_id),m.span_id&&(P.spanId=m.span_id),qe(m.trace_flags)||(P.flags=m.trace_flags),P})(e,this.ua());this.sa.push({record:h}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+u+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,a=Oe({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(l,c,u,p){return{resourceLogs:[{resource:{attributes:ZD(c)},scopeLogs:[{scope:{name:u,version:p},logRecords:l}]}]}})(t.map((l=>l.record)),a,Ga.LIB_NAME,Ga.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:n,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(et!=null&&(e=et.location)!=null&&e.href&&(t.currentUrl=et.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},bie=Oe({},$v,sie,lie,cie,die,uie,mie,pie,hie,gie,fie,vie);Zn.__defaultExtensionClasses=Oe({},bie);var qO,Ii=(qO=pp[Yc]=new Zn,(function(){function e(){e.done||(e.done=!0,Pj=!1,go(pp,(function(t){t._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?e():Zo(ze,"DOMContentLoaded",e,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),qO);const yie="studio-ui-resources",Xf="html",Sie=10080*60*1e3,wie=50,Tie=16*1024*1024;function _ie(e){return e[0]==="mcp"&&e[1]===NI}function qv(){return new Promise((e,t)=>{const o=indexedDB.open(yie,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Xf)||o.result.createObjectStore(Xf)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function kd(e,t){return e.transaction(Xf,t).objectStore(Xf)}function KT(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function xie(e){if(!(typeof indexedDB>"u"))try{const t=await qv(),o=kd(t,"readonly"),a=await KT(o.getAllKeys()),n=await KT(o.getAll()),i=Date.now(),l=a.map((p,h)=>({key:p,value:n[h]})).sort((p,h)=>(h.value?.updatedAt??0)-(p.value?.updatedAt??0)),c=[];let u=0;for(const{key:p,value:h}of l){if(!h||i-h.updatedAt>Sie||u>=wie){c.push(p);continue}u++;try{const f=JSON.parse(String(p));e.getQueryData(f)===void 0&&e.setQueryData(f,h.html,{updatedAt:0})}catch{c.push(p)}}if(c.length>0){const p=kd(t,"readwrite");for(const h of c)p.delete(h)}}catch{}}function Cie(e){if(typeof indexedDB>"u")return()=>{};const t=qv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!_ie(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>Tie||t.then(i=>{if(i)try{kd(i,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function kie(){typeof indexedDB>"u"||qv().then(e=>kd(e,"readwrite").clear()).catch(()=>{})}async function vve(e){if(!(typeof indexedDB>"u"))try{const t=await qv(),o=await KT(kd(t,"readonly").getAllKeys()),a=kd(t,"readwrite");for(const n of o)try{const i=JSON.parse(String(n));i[1]===NI&&i[3]===e&&a.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Yx=1440*60*1e3,Eie=1e3,Pie=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),Aie=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let Bj=!1,Fj=!1;function Rie(e){const t=e[0];return typeof t=="string"&&Pie.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&Aie.has(e[4])}function Die(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(ev);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>Yx;if(o.buster!=="4.459.0"||a||!o.state){window.localStorage.removeItem(ev);return}$$(e,o.state),e.invalidateQueries({queryKey:On.publicConfig(),refetchType:"none"}),Bj=!0}catch{Iie()}}function Oie(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const i=U$(e,{shouldDehydrateQuery:l=>l.state.status==="success"&&Rie(l.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.459.0",timestamp:Date.now(),state:i}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,Eie))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const jj="studio:org-cache:",Mie=20;function Nie(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=Yx);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>Mie;)o.shift();return Object.fromEntries(o)}function zj(e){return`${jj}${e}`}function bve(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(zj(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>Yx?null:(Fj=!0,a)}catch{return null}}function yve(e,t,o){if(!(typeof window>"u"))try{const a=zj(e),n=window.localStorage.getItem(a),i=n?JSON.parse(n):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(Nie(i)))}catch{}}function Iie(){if(kie(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(jj)&&window.localStorage.removeItem(t)}}catch{}}function Lie(){return Bj}function Bie(){return Fj}let Ri=!1,YT=null,VO=!1;const Zx="studio:lp-distinct-id",Uj="mesh:lp-distinct-id",N0="/api/_reports/link-token/",Fie=1440*60*1e3;function $j(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),a=e.startsWith("//");try{const n=new URL(e,t);let i=!1;for(const l of["key","d"])n.searchParams.has(l)&&(n.searchParams.delete(l),i=!0);return n.pathname.startsWith(N0)&&n.pathname!==N0&&(n.pathname=`${N0}redacted`,i=!0),i?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function I0(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?$j(o):o]))}const jie=e=>e?(e.properties=I0(e.properties),e.$set&&(e.$set=I0(e.$set)),e.$set_once&&(e.$set_once=I0(e.$set_once)),e):null;function qj(){try{const e=window.localStorage.getItem(Zx)??window.localStorage.getItem(Uj);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=Fie?t:void 0}catch{return}}function zie(){try{window.localStorage.removeItem(Zx),window.localStorage.removeItem(Uj)}catch{}}function Uie(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(Zx,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??qj();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function $ie(e){const t=qj();if(t&&(zie(),t!==e))try{Ii.alias(t)}catch{}}function qie(e,t){if(Ri||typeof window>"u")return;const o=Uie();Ii.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:jie,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:a=>({...a,...typeof a.name=="string"?{name:$j(a.name)}:{}})},person_profiles:"identified_only"}),Ri=!0}function Vie(e,t){Ri&&(Ii.identify(e,t),$ie(e))}function Hie(){Ri&&(Ii.reset(),YT=null)}function Vj(e,t){Ri&&Ii.capture(e,t)}function Sve(){return Ri}function wve(){if(!Ri||VO||typeof performance>"u")return;VO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};Vj("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Lie(),org_cache_restored:Bie()})}function Tve(e,t){Ri&&e!==YT&&(Ii.group("organization",e,t),YT=e)}function Hj(e,t){if(Ri)try{Ii.captureException(e,t)}catch{}}const Gie=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function Wie(e){const t=Le.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=w.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Gie}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=w.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,w.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=n):n=t[2],n}function Gj(e){const t=Le.c(20),{orgName:o}=e,a=kr(),n=Kie;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=w.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:w.jsx(lF,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==a?(l=a("common.archivedOrgScreen.orgUnavailable"),t[1]=a,t[2]=l):l=t[2];let c;t[3]!==l?(c=w.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let u;t[5]!==o||t[6]!==a?(u=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=u):u=t[7];let p;t[8]!==u?(p=w.jsx("p",{className:"text-sm text-muted-foreground",children:u}),t[8]=u,t[9]=p):p=t[9];let h;t[10]!==c||t[11]!==p?(h=w.jsxs("div",{className:"space-y-2",children:[c,p]}),t[10]=c,t[11]=p,t[12]=h):h=t[12];let m;t[13]!==a?(m=a("common.goHome"),t[13]=a,t[14]=m):m=t[14];let f;t[15]!==m?(f=w.jsx(Al,{onClick:n,children:m}),t[15]=m,t[16]=f):f=t[16];let v;return t[17]!==h||t[18]!==f?(v=w.jsxs(Wie,{children:[i,h,f]}),t[17]=h,t[18]=f,t[19]=v):v=t[19],v}function Kie(){window.location.href="/"}function Yie(){const e=Le.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=jp(t);let a;return e[1]!==o?(a=w.jsx(Al,{variant:"outline",size:"sm",asChild:!0,children:w.jsx(Il,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Zie(e){const t=Le.c(13),{area:o,description:a,action:n}=e,i=o?`No access to ${o}`:"No access",l=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=w.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:w.jsx(gF,{size:28})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=w.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==l?(p=w.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=p):p=t[4];let h;t[5]!==u||t[6]!==p?(h=w.jsxs("div",{className:"space-y-1",children:[u,p]}),t[5]=u,t[6]=p,t[7]=h):h=t[7];let m;t[8]!==n?(m=n??w.jsx(Yie,{}),t[8]=n,t[9]=m):m=t[9];let f;return t[10]!==h||t[11]!==m?(f=w.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,h,m]}),t[10]=h,t[11]=m,t[12]=f):f=t[12],f}const HO="__studio_chunk_reload_ts";function Wj(e){return e?.message===jZ}function Qie(e){return!!e?.message?.includes("Access denied")}function GO(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Jie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),Hj(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:Wj(this.state.error)?w.jsx(Gj,{}):Qie(this.state.error)?w.jsx(Zie,{}):w.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:w.jsx(Mx,{className:"h-6 w-6 text-destructive"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),w.jsx(Al,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Xie(e){const t=Le.c(3),o=kr();let a;return t[0]!==e||t[1]!==o?(a=w.jsx(Jie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class ese extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const a=GO(t);if(Hj(t,{boundary:"chunk_root",is_chunk_load_error:a,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(HO),i=Date.now();(!n||i-Number(n)>1e4)&&(sessionStorage.setItem(HO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&GO(this.state.error)?w.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:w.jsx(fF,{className:"h-6 w-6 text-primary"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),w.jsx(Al,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?Wj(this.state.error)?w.jsx(Gj,{}):w.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:w.jsx(Mx,{className:"h-6 w-6 text-destructive"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),w.jsx(Al,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function tse(e){const t=Le.c(3),o=kr();let a;return t[0]!==e||t[1]!==o?(a=w.jsx(ese,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function ose(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("surface flex flex-col gap-6",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=w.jsx("div",{"data-slot":"card",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function _ve(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=w.jsx("div",{"data-slot":"card-content",...o}),t[2]=o,t[3]=a):a=t[3],a}function xve(e){const t=Le.c(12),{title:o,description:a,docsHref:n,actions:i,className:l,headerClassName:c,children:u}=e;let p;t[0]!==l?(p=qt("flex flex-col gap-3",l),t[0]=l,t[1]=p):p=t[1];let h;t[2]!==i||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(h=(o||a||n||i)&&w.jsxs("div",{className:qt("flex items-center justify-between gap-3 px-4",c),children:[w.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&w.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:o}),(a||n)&&w.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&w.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",w.jsx(cF,{size:12})]})]})]}),i&&w.jsx("div",{className:"shrink-0",children:i})]}),t[2]=i,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=h):h=t[7];let m;return t[8]!==u||t[9]!==p||t[10]!==h?(m=w.jsxs("section",{className:p,children:[h,u]}),t[8]=u,t[9]=p,t[10]=h,t[11]=m):m=t[11],m}function Cve(e){const t=Le.c(11),{className:o,children:a}=e;let n,i,l;if(t[0]!==a||t[1]!==o){const u=A.Children.toArray(a).filter(A.isValidElement);n=ose,t[5]!==o?(i=qt("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=i):i=t[6],l=u.map(ase),t[0]=a,t[1]=o,t[2]=n,t[3]=i,t[4]=l}else n=t[2],i=t[3],l=t[4];let c;return t[7]!==n||t[8]!==i||t[9]!==l?(c=w.jsx(n,{className:i,children:l}),t[7]=n,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function ase(e,t){return w.jsxs("div",{children:[t>0&&w.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function kve(e){const t=Le.c(27),{icon:o,title:a,description:n,action:i,onClick:l,className:c,children:u}=e,p=u?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",h=l&&"hover:bg-muted/50 cursor-pointer";let m;t[0]!==c||t[1]!==p||t[2]!==h?(m=qt(p,h,c),t[0]=c,t[1]=p,t[2]=h,t[3]=m):m=t[3];const f=l?"button":void 0,v=l?0:void 0;let b;t[4]!==l?(b=l?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),l())}:void 0,t[4]=l,t[5]=b):b=t[5];let S;t[6]!==o?(S=o&&w.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),t[6]=o,t[7]=S):S=t[7];let x;t[8]!==a?(x=w.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=x):x=t[9];let T;t[10]!==n?(T=n&&w.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=T):T=t[11];let _;t[12]!==u||t[13]!==x||t[14]!==T?(_=w.jsxs("div",{className:"flex-1 min-w-0",children:[x,T,u]}),t[12]=u,t[13]=x,t[14]=T,t[15]=_):_=t[15];let P;t[16]!==i?(P=i&&w.jsx("div",{className:"shrink-0",onClick:nse,children:i}),t[16]=i,t[17]=P):P=t[17];let k;return t[18]!==l||t[19]!==_||t[20]!==P||t[21]!==m||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==S?(k=w.jsxs("div",{className:m,onClick:l,role:f,tabIndex:v,onKeyDown:b,children:[S,_,P]}),t[18]=l,t[19]=_,t[20]=P,t[21]=m,t[22]=f,t[23]=v,t[24]=b,t[25]=S,t[26]=k):k=t[26],k}function nse(e){return e.stopPropagation()}function Eve(e){const t=Le.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=qt("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=w.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}function Pve(e){const t=Le.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=qt("flex items-center justify-end gap-2 px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let i;return t[2]!==o||t[3]!==n?(i=w.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=i):i=t[4],i}function rse(e){const t=Le.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=qt("flex flex-col gap-10",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=w.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}const Vv={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:yF,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:bF,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:uF,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:vF,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:hF,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:mF,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function Ave(e){const t=Vv[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function Rve(e){return Vv[e].tabs.length>0}const ise=new Set(["owner","admin"]);function Kj(){const e=Le.c(11),{org:t,locator:o}=Kp();let a;e[0]!==o?(a=On.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const h=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!h.ok)throw new Error(`my-capabilities request failed: ${h.status}`);return await h.json()},e[2]=t,e[3]=n):n=e[3];let i;e[4]!==a||e[5]!==n?(i={queryKey:a,queryFn:n,staleTime:3e4,retry:2},e[4]=a,e[5]=n,e[6]=i):i=e[6];const{data:l,isLoading:c,isError:u}=Rd(i);let p;return e[7]!==l||e[8]!==u||e[9]!==c?(p={data:l,loading:c,error:u},e[7]=l,e[8]=u,e[9]=c,e[10]=p):p=e[10],p}function Dve(e){const t=Le.c(8),{data:o,loading:a,error:n}=Kj();if(a){let p;return t[0]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=p):p=t[0],p}if(n){let p;return t[1]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=p):p=t[1],p}const i=o?.role??null;if(!i){let p;return t[2]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=p):p=t[2],p}if(i==="owner"){let p;return t[3]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=p):p=t[3],p}if(i==="admin"){let p;return t[4]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=p):p=t[4],p}const l=o?.capabilities?.[e]===!0,c=l?"role":"denied";let u;return t[5]!==l||t[6]!==c?(u={granted:l,loading:!1,error:!1,reason:c},t[5]=l,t[6]=c,t[7]=u):u=t[7],u}function Yj(){const e=Le.c(10),{data:t,loading:o,error:a}=Kj(),n=t?.role??void 0;let i;e[0]!==n?(i=n?ise.has(n):!1,e[0]=n,e[1]=i):i=e[1];const l=i;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const u=c;let p;return e[4]!==a||e[5]!==l||e[6]!==o||e[7]!==n||e[8]!==u?(p={capabilities:u,loading:o,error:a,isPrivileged:l,roleSlug:n},e[4]=a,e[5]=l,e[6]=o,e[7]=n,e[8]=u,e[9]=p):p=e[9],p}function sse(){const e=Le.c(13),{org:t}=Kp(),o=ox(),{capabilities:a,isPrivileged:n}=Yj(),i=n||!!a["members:manage"];let l;e[0]!==t.id?(l=On.infraBillingSites(t.id),e[0]=t.id,e[1]=l):l=e[1];const c=!!t.id&&i;let u;e[2]!==o?(u=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=u):u=e[3];let p;e[4]!==l||e[5]!==c||e[6]!==u?(p={queryKey:l,staleTime:3e5,enabled:c,queryFn:u},e[4]=l,e[5]=c,e[6]=u,e[7]=p):p=e[7];const{data:h,isLoading:m}=Rd(p);let f;e[8]!==h?.sites?(f=h?.sites.map(lse)??[],e[8]=h?.sites,e[9]=f):f=e[9];let v;return e[10]!==m||e[11]!==f?(v={sites:f,isLoading:m},e[10]=m,e[11]=f,e[12]=v):v=e[12],v}function lse(e){return e.slug}function Ove(){const e=Le.c(7),t=ox(),o=kr();let a;e[0]!==t?(a=l=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:l}),e[0]=t,e[1]=a):a=e[1];let n;e[2]!==o?(n=l=>Vr.error(o("settings.infraBilling.portalError",{message:l.message})),e[2]=o,e[3]=n):n=e[3];let i;return e[4]!==a||e[5]!==n?(i={mutationFn:a,onSuccess:cse,onError:n},e[4]=a,e[5]=n,e[6]=i):i=e[6],sp(i)}function cse(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function Mve(e,t){const o=Le.c(14),{org:a}=Kp(),n=ox();let i,l,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(i=[...e].sort(),c=Rd,l=On.infraBilling(a.id,i.join(","),t),o[0]=a.id,o[1]=t,o[2]=e,o[3]=i,o[4]=l,o[5]=c):(i=o[3],l=o[4],c=o[5]);const u=i.length>0;let p;o[6]!==t||o[7]!==i||o[8]!==n?(p=()=>n.call("INFRA_BILLING_GET",{siteSlugs:i,period:t}),o[6]=t,o[7]=i,o[8]=n,o[9]=p):p=o[9];let h;return o[10]!==l||o[11]!==u||o[12]!==p?(h={queryKey:l,enabled:u,staleTime:6e4,queryFn:p},o[10]=l,o[11]=u,o[12]=p,o[13]=h):h=o[13],c(h)}function dse(){const e=Le.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=Yj(),{sites:i,isLoading:l}=sse(),c=i.length>0;let u;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==l){const p=h=>h.requiresOwnedSites&&!c&&!l?!1:a||n?!0:h.privilegedOnly?o:h.requires?o||t[h.requires]:!0;u=Object.fromEntries(Object.values(Vv).map(h=>[h.key,h.tabs.filter(p)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=l,e[6]=u}else u=e[6];return u}function use(e){const t=Le.c(16),{group:o}=e,a=kr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:i}=jp(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:pse},t[1]=l):l=t[1];const c=E_(l),u=dse()[o],{titleKey:p}=Vv[o];let h;t[2]!==a||t[3]!==p?(h=a(p),t[2]=a,t[3]=p,t[4]=h):h=t[4];let m;t[5]!==h?(m=w.jsx(ld.Title,{children:h}),t[5]=h,t[6]=m):m=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==u?(f=u.length>1&&w.jsx(nn.Toolbar.Left.Portal,{children:w.jsx(ld.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:u.map(b=>{const S=b.to.replace("$org",i),x=c===S||c.startsWith(`${S}/`);return w.jsx(ld.Tab,{active:x,asChild:!0,children:w.jsx(Il,{to:b.to,params:{org:i},onClick:()=>Vj("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),t[7]=o,t[8]=i,t[9]=c,t[10]=a,t[11]=u,t[12]=f):f=t[12];let v;return t[13]!==m||t[14]!==f?(v=w.jsxs(w.Fragment,{children:[m,f]}),t[13]=m,t[14]=f,t[15]=v):v=t[15],v}function pse(e){return e.location.pathname}function Zj(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=w.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[w.jsx(hD,{className:"h-32 w-full"}),w.jsx(hD,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function mse(e){const t=Le.c(14),{group:o,fallback:a,errorFallback:n,className:i,children:l}=e;let c;t[0]!==o?(c=w.jsx(use,{group:o}),t[0]=o,t[1]=c):c=t[1];let u;t[2]!==a?(u=a??w.jsx(Zj,{}),t[2]=a,t[3]=u):u=t[3];let p;t[4]!==l||t[5]!==u?(p=w.jsx(A.Suspense,{fallback:u,children:l}),t[4]=l,t[5]=u,t[6]=p):p=t[6];let h;t[7]!==n||t[8]!==p?(h=w.jsx(Xie,{fallback:n,children:p}),t[7]=n,t[8]=p,t[9]=h):h=t[9];let m;return t[10]!==i||t[11]!==c||t[12]!==h?(m=w.jsx(ld,{children:w.jsx(ld.Content,{children:w.jsx(ld.Container,{children:w.jsxs(rse,{className:i,children:[c,h]})})})}),t[10]=i,t[11]=c,t[12]=h,t[13]=m):m=t[13],m}function Li(e){return function(){return w.jsx(mse,{group:e,children:w.jsx(Zj,{})})}}function hse(e){try{localStorage.setItem(Fl.lastLocation(),JSON.stringify(e))}catch{}}function gse(){try{const e=localStorage.getItem(Fl.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function Nve(){try{localStorage.removeItem(Fl.lastLocation())}catch{}}const Ot={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",orgIndex:"/$org/"},rt={root:Ot.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",monitor:"/$org/projects/$agentId/cdn"};function Ive(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:fse},e[0]=t):t=e[0],E_(t)}function fse(e){return e.matches.at(-1)?.fullPath??""}const vse=new Map([[Ot.reports,"project-only"],[Ot.library,"org-only"],[Ot.threadAnalytics,"org-only"]]);function Lve(e,t){const o=vse.get(e);return o===void 0?!0:o==="project-only"?t!==null:t===null}function Bve(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:bse},e[0]=t):t=e[0],E_(t)}function bse(e){return e.matches.findLast(yse)?.staticData.mainView}function yse(e){return e.staticData.mainView}function rf(e){return`agent-view:${encodeURIComponent(e)}`}function Sse(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function Qj(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function Qx(e,t){return`app:${e}:${t}`}function wse(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),o=t.indexOf(":");if(o<=0)return null;const a=t.slice(0,o),n=t.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function Jj(e){return`deck:${encodeURIComponent(e)}`}function Tse(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function Xj(e){return`file:${encodeURIComponent(e)}`}function _se(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function e3(e){return`library-file:${encodeURIComponent(e)}`}function xse(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function t3(e){return`code:${encodeURIComponent(e)}`}function Cse(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const o3=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],kse=new Set(o3),a3=new Set(["hosting","e2e","analytics","cdn"]),Ese=new Set(["board","files","connect-sources","reports"]);function Fve(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const Pse=new Map([["preview","site-editor"],["git","site-editor"]]);function Hv(e){return Pse.get(e)??e}const Jx=new Set(["instructions","connections","layout","settings"]);function Ase(e){return!!e&&Jx.has(e)}const Rse=new Set(["overview","board","reports"]);function jve(e){const t=e?.defaultMainView??null;if(!(!t||t.type==="chat"))return n3(e??null)}function n3(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Hv(t.type);if(Jx.has(o))return"settings";if(kse.has(o)||Rse.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return Qx(t.id,t.toolName);const n=e?.tabs?.map(i=>i.id)??[];return t.id&&n.includes(t.id)?rf(t.id):n[0]?rf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?rf(a):"settings"}function zve(e){const t=e.routeDefaultMain||n3(e.metadata),o=e.panelTabId&&Jx.has(e.panelTabId)?"settings":e.panelTabId?Hv(e.panelTabId):e.panelTabId,a=e.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:e.mainPanelParam??(!!o||!!e.routeDefaultMain||!n),activeTab:o??t}}function Uve(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function $ve(e){return e.mainOpen?e.activeTab==="automations"?!0:Qj(e.activeTab)!==null:!1}const Dse=new Set([...o3.filter(e=>!a3.has(e)),...Ese,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Ose(e){return!!e&&Dse.has(e)}function Mse(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?Qx(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?Xj(t.key):void 0;case"deck":return t.deck?Jj(t.deck):void 0;case"library-file":return t.path?e3(t.path):void 0;case"code":return t.file?t3(t.file):"code";default:{const o=Hv(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function qve(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?t3(o.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?Qx(t.connectionId,t.toolName):void 0;case"view":return t.viewId?rf(t.viewId):void 0;case"file":return o.key?Xj(o.key):void 0;case"deck":return o.path?Jj(o.path):void 0;case"library-file":return o.path?e3(o.path):void 0;default:return e.mainView}}const Nse={files:"library",discover:"discover"},Ise={board:"tasks",reports:"reports"},Lse={settings:"settings",assets:"assets",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",cdn:"monitor"};function r3(e){const t=Sse(e);if(t)return{kind:"agent-view",viewId:t.id};const o=wse(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=Qj(e);if(a)return{kind:"automations",automationId:a.id};const n=_se(e);if(n)return{kind:"output-file",key:n.key};const i=Tse(e);if(i)return{kind:"output-deck",path:i.path};const l=xse(e);if(l)return{kind:"library-file",path:l.path};const c=Cse(e);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(Ase(e))return{kind:"agent-section",section:"settings"};const u=Hv(e);if(u==="overview")return{kind:"agent-overview"};if(u==="site-editor")return{kind:"site-editor",view:"preview"};if(u==="content")return{kind:"site-editor",view:"content"};if(u==="automations")return{kind:"automations"};if(u==="connect-sources")return{kind:"connect-sources"};const p=Ise[u];if(p)return{kind:"project-destination",destination:p};const h=Nse[u];if(h)return{kind:"org-destination",destination:h};const m=Lse[u];return m?{kind:"agent-section",section:m}:{kind:"agent-view",viewId:u}}function Ol(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=r3(e.tabId);switch(n.kind){case"project-destination":return e.destinationScope==="organization"?n.destination==="tasks"?{to:Ot.tasks,params:{org:t,taskKey:e.taskKey},search:{}}:{to:Ot.reports,params:{org:t},search:{}}:n.destination==="tasks"?{to:rt.tasks,params:{...a,taskKey:e.taskKey},search:{}}:{to:rt.reports,params:a,search:{}};case"org-destination":switch(n.destination){case"home":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};case"library":return{to:Ot.library,params:{org:t},search:{}}}case"agent-overview":return{to:rt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:rt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:rt.siteEditorCode,params:a,search:{file:n.file}}:{to:rt.siteEditor,params:a,search:{}};case"agent-section":return{to:rt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:rt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:rt.automations,params:a,search:{}};case"app":return{to:rt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:rt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:rt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:rt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:rt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:rt.connectSources,params:a,search:{}}}}function Vve(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ot.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&r3(t).kind==="org-destination"?"overview":t;return Ol({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Bse(e,t,o={}){const a=i=>({...o.search?.(i)??{},...t.search}),n=o.replace??!0;switch(t.to){case Ot.tasks:e({to:Ot.tasks,params:t.params,search:a,replace:n});return;case Ot.home:e({to:Ot.home,params:t.params,search:a,replace:n});return;case Ot.reports:e({to:Ot.reports,params:t.params,search:a,replace:n});return;case Ot.discover:e({to:Ot.discover,params:t.params,search:a,replace:n});return;case Ot.library:e({to:Ot.library,params:t.params,search:a,replace:n});return;case rt.root:e({to:rt.root,params:t.params,search:a,replace:n});return;case rt.tasks:e({to:rt.tasks,params:t.params,search:a,replace:n});return;case rt.reports:e({to:rt.reports,params:t.params,search:a,replace:n});return;case rt.siteEditor:e({to:rt.siteEditor,params:t.params,search:a,replace:n});return;case rt.siteEditorContent:e({to:rt.siteEditorContent,params:t.params,search:a,replace:n});return;case rt.siteEditorCode:e({to:rt.siteEditorCode,params:t.params,search:a,replace:n});return;case rt.automations:e({to:rt.automations,params:t.params,search:a,replace:n});return;case rt.automation:e({to:rt.automation,params:t.params,search:a,replace:n});return;case rt.app:e({to:rt.app,params:t.params,search:a,replace:n});return;case rt.view:e({to:rt.view,params:t.params,search:a,replace:n});return;case rt.outputFile:e({to:rt.outputFile,params:t.params,search:a,replace:n});return;case rt.outputDeck:e({to:rt.outputDeck,params:t.params,search:a,replace:n});return;case rt.libraryFile:e({to:rt.libraryFile,params:t.params,search:a,replace:n});return;case rt.connectSources:e({to:rt.connectSources,params:t.params,search:a,replace:n});return;case rt.settings:case rt.assets:case rt.hosting:case rt.e2e:case rt.analytics:case rt.experiments:case rt.monitor:e({to:t.to,params:t.params,search:a,replace:n})}}function Hve(e,t){Bse(e,Ol(t),t)}function Fse(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function jse(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const zse=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),i3=new Set(["main"]),Use=new Set(["virtualmcpid"]);function Gv(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function El(e,t){return{...Gv(e,zse),...t.search}}function $se(e){return Gv(e,Use)}function Gve(e){if(e.search.virtualmcpid===void 0)return null;const t=br(e.search.virtualmcpid);if(t){const o=e.routePath===Ot.tasks?"board":e.routePath===Ot.reports?"reports":null;if(e.routePath===Ot.home||o){const a=o?Ol({org:e.org,agentId:t,tabId:o}):Ed(e.org,t);return{kind:"canonical",route:a,search:El(e.search,a)}}}return e.routePath===Ot.home||e.routePath===Ot.tasks||e.routePath===Ot.reports||e.routePath===Ot.library?{kind:"same-route",search:$se(e.search)}:null}function br(e){return e?.trim()||void 0}function s3(e){return Ose(e)||e!==void 0&&a3.has(e)}function l3(e){const t=br(e);return t?t.startsWith("vir_")&&t.length>4||QG(t)!==null||oW(t)!==null||nW(t)!==null||rW(t)!==null||iW(t)||cW(t):!1}function qse(e){const t=br(e.agentIdParam),o=s3(t);return t&&!o?t:br(e.virtualMcpIdSearch)??br(e.fallbackAgentId)}function Wve(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const l=ZT({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return l?.kind==="canonical"?{route:l.route,search:l.search}:null}if(!t||jse(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!l3(t);if(!(s3(t)||o))return null;const n=qse({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),i=ZT({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}function Vse(e,t,o,a){const n=br(a);switch(e){case"board":return n?Ol({org:t,agentId:n,tabId:"board"}):{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const i=bs(o.path);return{to:Ot.library,params:{org:t},search:i?{path:i}:{}}}case"reports":return n?Ol({org:t,agentId:n,tabId:"reports"}):{to:Ot.reports,params:{org:t},search:{}};case"overview":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};default:return null}}function Np(e){const t=Vse(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return Ed(e.org,e.agentId);const o=br(e.agentId);return o?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:rt.root,params:{org:e.org,agentId:o},search:{}}:Ol({org:e.org,agentId:o,tabId:e.tabId}):null}function Ed(e,t){const o=br(t);return o?{to:rt.root,params:{org:e,agentId:o},search:{}}:{to:Ot.home,params:{org:e},search:{}}}function Hse(e){const{main:t}=e;if(t===void 0)return null;const o=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Gv(o,i3),mainpanel:!1}};if(t==="chat"){const n=Ed(e.org,e.agentId);return{kind:"canonical",route:n,search:{...El(o,n),sidepanel:!0,mainpanel:!1}}}const a=Np({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:El(o,a)}:null}function bs(e){return typeof e=="string"&&e.length>0?e:void 0}function ZT(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const l=ZT({...e,search:Gv(t,i3)});return l?.kind!=="canonical"?l:{...l,search:{...l.search,mainpanel:!1}}}if(t.main!==void 0)return Hse({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=br(e.agentId),a=e.panel;if(!a){const l=Ed(e.org,o);return{kind:"canonical",route:l,search:El(t,l)}}const n=Mse(a,{file:bs(t.file),key:bs(t.key),deck:bs(t.deck),path:bs(t.path),connection:bs(t.connection),tool:bs(t.tool),automation:bs(t.automation)}),i=n?e.source==="project-first"&&n==="overview"&&o?Ol({org:e.org,agentId:o,tabId:n}):Np({org:e.org,agentId:o,tabId:n,search:t}):Np({org:e.org,agentId:o,tabId:"",search:t});return i?{kind:"canonical",route:i,search:n==="chat"?{...El(t,i),sidepanel:!0,mainpanel:!1}:El(t,i)}:null}function Kve(e){const t=e.search??{},o=br(t.virtualmcpid),a=br(e.fallbackAgentId),n=t.main;let i;if(n==="chat")i=Ed(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const l=Np({org:e.org,agentId:o,tabId:n,search:t}),c=!l&&n.trim().length>0&&a?Np({org:e.org,agentId:a,tabId:n,search:t}):null;i=l??c??{to:Ot.home,params:{org:e.org},search:{}}}else i=Ed(e.org,o);return{route:i,search:{...El(t,i),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function c3(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const Gse={contentPageId:q().optional(),contentPath:q().optional(),contentPathTemplate:q().optional(),contentCollection:q().optional(),contentItem:q().optional()},d3=Gse,Xx={view:q().optional(),group:q().optional(),subgroup:q().optional(),sort:q().optional(),dir:q().optional(),q:q().optional(),assignee:q().optional(),priority:q().optional(),due:q().optional(),tags:q().optional(),repo:q().optional(),boardOrg:q().optional()},tv={fileView:Eo(["all","documents","media"]).catch("all").optional(),layout:Eo(["list","grid"]).catch("list").optional(),sort:Eo(["name","updated","size"]).catch("name").optional(),path:q().optional(),preview:q().optional(),skill:q().optional(),brand:q().optional()},Wse={file:q().optional(),key:q().optional(),deck:q().optional(),path:q().optional(),connection:q().optional(),tool:q().optional(),automation:q().optional(),section:q().optional(),preview:q().optional(),autosend:q().optional(),connect:Tv().optional(),siteUrl:q().optional(),...d3},u3={...Wse,task:q().optional(),project:q().optional(),...Xx,skill:tv.skill,brand:tv.brand},am=_e(u3),pn=s$({component:()=>w.jsx(tse,{children:w.jsx(k_,{})})}),Kse=Me({getParentRoute:()=>pn,path:"/login",component:je(()=>Fe(()=>import("./login-DuFlqpvt.js"),__vite__mapDeps([0,1,2,3,4,5]))),validateSearch:Gr(()=>_e({next:q().optional(),client_id:q().optional(),redirect_uri:q().optional(),response_type:q().optional(),state:q().optional(),scope:q().optional(),code_challenge:q().optional(),code_challenge_method:q().optional(),src:q().optional(),ref:q().optional()}))}),Yse=Me({getParentRoute:()=>pn,path:"/cli/auth-success",component:je(()=>Fe(()=>import("./cli-auth-success-DIWSlo4_.js"),__vite__mapDeps([6,5])))}),Zse=Me({getParentRoute:()=>pn,path:"/reset-password",component:je(()=>Fe(()=>import("./reset-password-yOtTjadj.js"),__vite__mapDeps([7,2]))),validateSearch:Gr(()=>_e({token:q().optional(),error:q().optional()}))}),Qse=Me({getParentRoute:()=>pn,path:"/auth/$pathname",component:je(()=>Fe(()=>import("./auth-catchall-gXqx7jWL.js"),[]))}),Jse=Me({getParentRoute:()=>pn,path:"/oauth/callback",component:je(()=>Fe(()=>import("./oauth-callback-BjmTr7x6.js"),__vite__mapDeps([8,9,10])))}),Xse=Me({getParentRoute:()=>pn,path:"/oauth/callback/ai-provider",component:je(()=>Fe(()=>import("./oauth-callback-ai-provider-BkhAnS03.js"),[]))}),nm=Me({getParentRoute:()=>pn,path:"/_admin",component:je(()=>Fe(()=>import("./layout-EXCNCQSS.js"),__vite__mapDeps([11,12,13])))}),ele=Me({getParentRoute:()=>nm,path:"/",beforeLoad:()=>{throw Jo({to:"/_admin/users"})}}),tle=Me({getParentRoute:()=>nm,path:"/users",component:je(()=>Fe(()=>import("./users-CcYYe1k1.js"),__vite__mapDeps([14,15,16,17,18,19,20,21,22,23,24,25,26,27,28])))}),ole=Me({getParentRoute:()=>nm,path:"/orgs",component:je(()=>Fe(()=>import("./orgs-86mFN1bL.js"),__vite__mapDeps([29,15,16,17,18,19,20,2,30,24,31,32,33,34,35,36,37,38,23,39,40,25,26,27])))}),ale=Me({getParentRoute:()=>nm,path:"/prompts",component:je(()=>Fe(()=>import("./prompts-CiBT8-NB.js"),__vite__mapDeps([41,18,2,30,38,25])))}),nle=nm.addChildren([ele,tle,ole,ale]),eC=Me({getParentRoute:()=>pn,id:"shell",component:je(()=>Fe(()=>import("./shell-layout-CK7wLTUx.js").then(e=>e.e),__vite__mapDeps([42,21,22,43,44,45,46,47,17,48,49,50,51,52,35,36,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,67,32,68,31,69,70,71,10,72,73,74,75,76,77,78,79,2,30,80,81,82,4,83,39,84,85,86,34,87,88,89,24,90,3,12,91,92,93])))}),rle=Me({getParentRoute:()=>eC,path:"/",beforeLoad:async()=>{const e=gse();if(e)throw Jo({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Fl.lastOrgSlug());if(t)throw Jo({to:"/$org",params:{org:t}});const{data:o}=await QI();if(!o)return;const a=o[0];throw Jo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),ile=Me({getParentRoute:()=>pn,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await QI();if(e&&e.length>0)throw Jo({to:"/"})},component:je(()=>Fe(()=>import("./onboarding-NzhRXTjq.js"),__vite__mapDeps([94,12,5,95,21,22,64,2,30,37,43,52,57,66])))}),p3=Gr(()=>_e({org:q().optional(),siteUrl:q().optional(),fix:q().optional()})),sle=Me({getParentRoute:()=>pn,path:"/reports-onboarding",component:je(()=>Fe(()=>import("./reports-onboarding-OKRaptw7.js"),__vite__mapDeps([96,97,1,2,3,4,5,95,21,22,64,98,99,100,30,101,71,10,102,77,49,45,46,47,17,48,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,20,65,66,67,32,31,86,34,103,104,105,24,106,107,108,9,109,110,111,112,113]))),validateSearch:p3}),lle=Me({getParentRoute:()=>pn,path:"/commerce-onboarding",validateSearch:p3,beforeLoad:({search:e})=>{throw Jo({to:"/reports-onboarding",search:e})}}),cle=Me({getParentRoute:()=>pn,path:"/choose-editor",component:je(()=>Fe(()=>import("./choose-editor-BwpCyTHb.js"),__vite__mapDeps([114,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,12]))),validateSearch:Gr(()=>_e({site:q().optional(),domain:q().optional(),pageId:q().optional(),path:q().optional(),pathTemplate:q().optional()}))}),dle=Me({getParentRoute:()=>pn,path:"/report/$domain",component:je(()=>Fe(()=>import("./reports-B9whLNOW.js"),__vite__mapDeps([115,109,4,1,2,3,116])))}),Wv=Me({getParentRoute:()=>eC,path:"/$org",beforeLoad:({params:e})=>{hse({org:e.org})},component:je(()=>Fe(()=>import("./route-bQkBR-ir.js"),__vite__mapDeps([117,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,121,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,98,99,100,124,125,126,127,128,129,130,13,131,33,38,132,133,134,135,136,137,28,26,27,138,139,140,141,142,143,144,145,37,146])))}),Kv=Me({getParentRoute:()=>Wv,id:"org-shell",pendingComponent:Md,component:je(()=>Fe(()=>import("./thread-route-BAyYuLhg.js"),__vite__mapDeps([147,148,72,73,69,70,71,10,91,82,4,83,39,84,3,127,135,149,90,97,31,32,150,103,104,105,49,101,102,77,45,46,47,17,48,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,86,34,100,30,2,24,106,107,108,9,109,110,111,151,112])))}),ule=_e({sidepanel:bL,mainpanel:yL,main:ro([q(),Ze(0)]).optional(),thread:q().optional(),autosend:q().optional(),preview:q().optional(),virtualmcpid:q().optional()}),Mn=Me({getParentRoute:()=>Kv,id:"agent-shell",validateSearch:ule,search:{middlewares:[DU(["sidepanel"])]},pendingComponent:Md,component:je(()=>Fe(()=>import("./route-lim1UvZz.js"),__vite__mapDeps([152,46,45,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,118,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,121,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,153,148,127,135,149,154,130,155,156,100,157,158,159,160,161,33,162,163,164,26,27,165,134,166,167,168,169,144,170,129,171,172,173,174,146,175,132,176,136,177,110,104,111,178,179,38,180,181,108,9,182,23,183,184,126,185,186,187,188,189,190,191,192,193,194,195,196,197,198,18,199,200,145,99,201,202,203,141,204,205,142,206,207,208,209,210,211,212,213])))}),ple=am.extend({virtualmcpid:q().optional()}),mle=Me({getParentRoute:()=>Mn,path:"/$taskId",validateSearch:ple,component:()=>null}),io=je(()=>Fe(()=>import("./index-NzXgSYlC.js").then(e=>e.i),__vite__mapDeps([199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145])),"ChatLayoutPending"),to=je(()=>Fe(()=>import("./index-NzXgSYlC.js").then(e=>e.i),__vite__mapDeps([199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145])),"ChatLayoutError"),hle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:_e({connect:Tv().optional(),siteUrl:q().optional(),view:Eo(["agents"]).optional()}),component:je(()=>Fe(()=>import("./home-EA-2hmK_.js"),__vite__mapDeps([214,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,125,126,127,124,128,215,216,217,218,219,159,156,154,100,157,158,160,161,148,135,149,33,162,163,164,26,27,165,134,166,167,168,169,144,170,129,130,171,172,173,155,174,146,175,132,176,136,177,110,104,111,178,179,38,180,181,108,9,182,23,183,184,185,220,150,103,105,221,28,222,139,223,18])))}),gle=Me({getParentRoute:()=>Mn,path:"/projects",staticData:{pageTitle:"projects.settings.title",defaultMain:"board"},validateSearch:am.extend({files:Dw().optional().catch(void 0)}),component:je(()=>Fe(()=>import("./flat-project-DUFYT5xZ.js"),__vite__mapDeps([224,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,225,86,34,199,121,118,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,223,226,227,228,229,129,156,154,100,157,158,173,230,23,37,38,174,28,231,125,126,127,175,132,26,27,232,128,233,234,187,163,164,149,235,236,198,180,105,237,184,186,162,148,135,188,189,190,191,167,155,192,193,183,201,168,160,238,239,99,240,212,207,208,209,210,211,241,242,16]))),beforeLoad:({params:e,search:t})=>{if(t.project?.trim())return;const o=t.virtualmcpid?.trim();throw Jo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0}:{to:"/$org/home",params:{org:e.org},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0})}}),Mo=Me({errorComponent:to,getParentRoute:()=>Mn,path:"/projects/$agentId",validateSearch:am,component:k_}),fle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:je(()=>Fe(()=>import("./agent-overview-DKDtU5t3.js"),__vite__mapDeps([243,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,220,150,103,104,105,221,125,126,127,128,28,175,132,26,27,244,226,227,228,229,129,156,154,100,157,158,173,230,23,37,38,174,231,232,233,234,187,163,164,149,235,236,198,180,237,184,186,162,148,135,188,189,190,191,167,155,192,193,183,201,168,160,238,245,176,136,246])))}),vle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:q().optional(),...Xx}),beforeLoad:({params:e,search:t})=>{const o=c3(e.taskKey,t);if(o)throw Jo({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:o?.taskKey??e.taskKey},search:o.search,hash:!0,replace:!0})},component:je(()=>Fe(()=>import("./project-tasks-CvAFJHcK.js"),__vite__mapDeps([244,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,226,227,228,229,129,156,154,100,157,158,173,230,23,37,38,174,28,231,125,126,127,175,132,26,27,232,128,233,234,187,163,164,149,235,236,198,180,105,237,184,186,162,148,135,188,189,190,191,167,155,192,193,183,201,168,160,238,245,176,136,246])))}),ble=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:Tv().optional(),siteUrl:q().optional()}),component:je(()=>Fe(()=>import("./project-reports-C9IB-nYY.js"),__vite__mapDeps([247,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,248,97,150,103,104,105,221,112,113,223,139])))}),Yv=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:_e({autosend:q().optional(),...d3}),component:je(()=>Fe(()=>import("./agent-site-editor-DaSW5uvn.js"),__vite__mapDeps([249,238,148,72,73,69,70,71,10,91,82,4,83,39,84,3,127,135,149,90,42,21,22,43,44,45,46,47,17,48,49,50,51,52,35,36,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,67,32,68,31,74,75,76,77,78,79,2,30,80,81,85,86,34,87,88,89,24,12,92,93,123,129,99,165,194,195,175,132,250,205,161,251,196,197,198,252,253,153,154,130,121,155,156,100,157,158,159,160,33,162,163,164,26,27,134,166,167,168,169,144,170,171,172,173,174,146,176,136,177,110,104,111,178,179,38,180,181,108,9,182,23,183,184,126,119,120,40,185,186,187,188,189,190,191,122,192,193,254,210,211,255,199,118,200,145,256])))}),yle=Me({getParentRoute:()=>Yv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:je(()=>Fe(()=>import("./agent-site-editor-preview-CoQ_Kpp-.js"),__vite__mapDeps([257,258,202,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,180,203,190,157,153,148,91,3,127,135,149,154,86,34,31,130,89,121,155,156,100,30,2,158,159,42,21,68,74,75,76,77,78,79,80,81,85,87,88,24,12,92,93,160,161,33,162,163,164,26,27,165,134,166,167,168,169,144,170,129,171,172,173,174,146,175,132,176,136,177,110,104,111,178,179,38,181,108,9,182,23,183,184,126,185,186,187,188,189,191,122,192,193,196,197,198,141,204,205,245,250,123,259,210,137,260,211,233,261,227,37,229,99,19,262,254,263,253,252,251,107,213,18,200])))}),Sle=Me({getParentRoute:()=>Yv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:je(()=>Fe(()=>import("./agent-site-editor-content-Bb1ejRxz.js").then(e=>e.ag),__vite__mapDeps([264,258,202,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,180,203,190,157,153,148,91,3,127,135,149,154,86,34,31,130,89,121,155,156,100,30,2,158,159,42,21,68,74,75,76,77,78,79,80,81,85,87,88,24,12,92,93,160,161,33,162,163,164,26,27,165,134,166,167,168,169,144,170,129,171,172,173,174,146,175,132,176,136,177,110,104,111,178,179,38,181,108,9,182,23,183,184,126,185,186,187,188,189,191,122,192,193,196,197,198,141,204,205,245,99,137,259,250,210,260,211,233,261,227,37,229,19,262,254,265,266,18])))}),wle=Me({getParentRoute:()=>Yv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:_e({file:q().optional()}),component:je(()=>Fe(()=>import("./agent-site-editor-code-qfzxbq5A.js"),__vite__mapDeps([267,258,202,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,180,203,190,157,153,148,91,3,127,135,149,154,86,34,31,130,89,121,155,156,100,30,2,158,159,42,21,68,74,75,76,77,78,79,80,81,85,87,88,24,12,92,93,160,161,33,162,163,164,26,27,165,134,166,167,168,169,144,170,129,171,172,173,174,146,175,132,176,136,177,110,104,111,178,179,38,181,108,9,182,23,183,184,126,185,186,187,188,189,191,122,192,193,196,197,198,141,204,205,245,18])))}),Tle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw Jo({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:je(()=>Fe(()=>import("./agent-automations-B-eYvFiq.js"),__vite__mapDeps([268,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,19,18,219,269,99])))}),_le=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:_e({automationView:Eo(["settings","runs"]).optional()}),component:je(()=>Fe(()=>import("./agent-automation-DA8thEE9.js"),__vite__mapDeps([270,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,23,144,37,129,154,180,203,271,130,148,127,135,149,169,33,170,171,272,219,187,273,172,173,156,100,157,158,155,174,165,260,211,99,274,16,18,183,175,132,201,237,184,186,26,27,163,162,164,188,189,190,191,167,192,193,182])))}),xle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:je(()=>Fe(()=>import("./agent-settings-DyDWo-xz.js"),__vite__mapDeps([275,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,276,110,104,111,148,127,135,149,272,18,277,27,180,9,99,38,273,177,178,179,130,100,33,181,108,182,23,183,184,193,174,144,19,278,190,203,155,157,37,129,137,140,205,197,279,280,191,195])))}),Cle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:_e(tv),component:je(()=>Fe(()=>import("./agent-library-DLdV7bTC.js"),__vite__mapDeps([281,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,239,231,99,149,174,240,38,164,158,212,129,207,208,209,210,211,193,241,242,26,27,16])))}),kle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:je(()=>Fe(()=>import("./agent-assets-De3wO9xX.js"),__vite__mapDeps([282,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,258,202,180,203,190,157,153,148,127,135,149,154,130,155,156,100,158,159,160,161,33,162,163,164,26,27,165,134,166,167,168,169,144,170,129,171,172,173,174,146,175,132,176,136,177,110,104,111,178,179,38,181,108,9,182,23,183,184,126,185,186,187,188,189,191,192,193,196,197,198,141,204,205,99,19,262])))}),Ele=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:je(()=>Fe(()=>import("./agent-hosting-Ck4H3tEL.js"),__vite__mapDeps([283,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,23,266,99,16,187,33,276,110,104,111,148,127,135,149,272,18,277,27,180,9,38,273,177,178,179,130,100,181,108,182,183,184,193,174,144,19,278,190,203,155,157,37,129,137,140,205,197,279,280,191,195])))}),Ple=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:je(()=>Fe(()=>import("./agent-e2e-D_bSHB2i.js"),__vite__mapDeps([284,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,23,99,33,16,266,187,165,276,110,104,111,148,127,135,149,272,18,277,27,180,9,38,273,177,178,179,130,100,181,108,182,183,184,193,174,144,19,278,190,203,155,157,37,129,137,140,205,197,279,280,191,195])))}),Ale=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},component:je(()=>Fe(()=>import("./agent-analytics-BxHEhXGJ.js"),__vite__mapDeps([285,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,23,144,16,215,216,217,99,266,218,286,276,110,104,111,148,127,135,149,272,18,277,27,180,9,38,273,177,178,179,130,100,33,181,108,182,183,184,193,174,19,278,190,203,155,157,37,129,137,140,205,197,279,280,191,195])))}),Rle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},component:je(()=>Fe(()=>import("./agent-experiments-D9Hm886u.js"),__vite__mapDeps([287,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,23,16,33,266,276,110,104,111,148,127,135,149,272,18,277,27,180,9,99,38,273,177,178,179,130,100,181,108,182,183,184,193,174,144,19,278,190,203,155,157,37,129,137,140,205,197,279,280,191,195])))}),Dle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:je(()=>Fe(()=>import("./agent-monitor-C8IHLMHD.js"),__vite__mapDeps([288,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,215,216,217,266,129,218,286,289,290,291,276,110,104,111,148,127,135,149,272,18,277,27,180,9,99,38,273,177,178,179,130,100,33,181,108,182,23,183,184,193,174,144,19,278,190,203,155,157,37,137,140,205,197,279,280,191,195,245,176,136])))}),Ole=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/apps/$connectionId/$toolName",staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:je(()=>Fe(()=>import("./agent-app-BpQ0nl5-.js"),__vite__mapDeps([292,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,204,293,154,167,203,196,161,148,127,135,149,197,198,188,189,190,128,97,102,103,104,105,100,106,107,108,9,109,110,111])))}),Mle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/views/$viewId",staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:je(()=>Fe(()=>import("./agent-view-71ZLty7s.js"),__vite__mapDeps([294,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,293,154,167,203,196,161,148,127,135,149,197,198,188,189,190,128,97,102,103,104,105,100,106,107,108,9,109,110,111,276,272,18,277,27,180,99,38,273,177,178,179,130,33,181,182,23,183,184,193,174,144,19,278,155,157,37,129,137,140,205,279,280,191,195])))}),Nle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:_e({key:q().optional()}),component:je(()=>Fe(()=>import("./agent-file-C53RbwG4.js"),__vite__mapDeps([295,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,193,209,174,210,211,164,149,158,192,148,127,135,276,110,104,111,272,18,277,27,180,9,99,38,273,177,178,179,130,100,33,181,108,182,23,183,184,144,19,278,190,203,155,157,37,129,137,140,205,197,279,280,191,195])))}),Ile=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:_e({path:q().optional()}),component:je(()=>Fe(()=>import("./agent-deck-DU6uai7B.js"),__vite__mapDeps([296,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,212,174,129,276,110,104,111,148,127,135,149,272,18,277,27,180,9,99,38,273,177,178,179,130,100,33,181,108,182,23,183,184,193,144,19,278,190,203,155,157,37,137,140,205,197,279,280,191,195])))}),Lle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:_e({path:q().optional()}),component:je(()=>Fe(()=>import("./agent-library-file-BjsBj-Wl.js"),__vite__mapDeps([297,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,208,209,174,210,211,193,164,149,158,212,129,276,110,104,111,148,127,135,272,18,277,27,180,9,99,38,273,177,178,179,130,100,33,181,108,182,23,183,184,144,19,278,190,203,155,157,37,137,140,205,197,279,280,191,195])))}),Ble=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:je(()=>Fe(()=>import("./agent-connect-sources-B4X91jM-.js"),__vite__mapDeps([298,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,101,97,102,103,104,105,100,106,107,108,9,109,110,111,151,112])))}),Fle=Me({getParentRoute:()=>Mo,path:"/$legacyView",component:()=>null}),jle=Me({getParentRoute:()=>Mn,path:"/agents",validateSearch:am,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Jo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:a=>a,hash:!0,replace:!0})}}),zle=Me({getParentRoute:()=>Mn,path:"/agents/$",validateSearch:am,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!l3(o))return;const a=Fse(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw Jo({href:`${a}${t.searchStr}${n}`,replace:!0})},component:je(()=>Fe(()=>import("./legacy-agents-deep-eylzpiF_.js"),__vite__mapDeps([299,206,73])))}),Ule=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:q().optional(),...Xx}),beforeLoad:({params:e,search:t})=>{const o=c3(e.taskKey,t);if(o)throw Jo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:je(()=>Fe(()=>import("./tasks-B1EusHyh.js"),__vite__mapDeps([300,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,226,227,228,229,129,156,154,100,157,158,173,230,23,37,38,174,28,231,125,126,127,175,132,26,27,232,128,233,234,187,163,164,149,235,236,198,180,105,237,184,186,162,148,135,188,189,190,191,167,155,192,193,183,201,168,160,238,245,176,136,246])))}),$le=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:je(()=>Fe(()=>import("./taskboard-analytics-3-5Zwbn5.js"),__vite__mapDeps([301,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,302,215,216,217,16,289,290,291,286,228,229,129,33,165])))}),qle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:je(()=>Fe(()=>import("./thread-analytics-Chp53ll5.js"),__vite__mapDeps([303,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,302,215,216,217,16,289,290,291,286,138,23,229,129,33,165,237,184,186,26,27,187,163,162,164,149,158,127,148,135,188,189,190,191,154,167,157,180,155,156,100,192,193,183,201])))}),Vle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:Tv().optional(),siteUrl:q().optional()}),component:je(()=>Fe(()=>import("./reports-DJBFYttZ.js"),__vite__mapDeps([304,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,248,97,150,103,104,105,221,112,113,223,139])))}),Hle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:_e(tv),component:je(()=>Fe(()=>import("./library-BItXalTV.js"),__vite__mapDeps([305,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,239,231,99,149,174,240,38,164,158,212,129,207,208,209,210,211,193,241,242,26,27,16])))}),Gle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:je(()=>Fe(()=>import("./discover-B2TNQgKF.js"),__vite__mapDeps([306,199,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145,180,175,132,205])))}),Wle=Me({getParentRoute:()=>Wv,path:"/members",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/members",params:{org:e.org}})}}),Kle=_e({main:ro([q(),Ze(0)]).optional(),virtualmcpid:q().optional(),...u3,sidepanel:bL,mainpanel:yL,thread:q().optional()}),Yle=Me({getParentRoute:()=>Kv,path:"/",validateSearch:Kle,pendingComponent:Md,component:je(()=>Fe(()=>import("./index-4prK16Bx.js"),__vite__mapDeps([307,206,73])))}),Zle=Me({getParentRoute:()=>Kv,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw Jo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),so=Me({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Wv,path:"/settings",pendingComponent:Md,component:je(()=>Fe(()=>import("./route-CnkEGFJm.js"),__vite__mapDeps([308,121,199,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,200,145])))}),Qle=Me({getParentRoute:()=>so,path:"/",component:je(()=>Fe(()=>import("./index-redirect-DsKYJNmF.js"),__vite__mapDeps([309,310])))}),Jle=Me({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>so,path:"/connections",component:je(()=>Fe(()=>import("./connections-C8w4xaQ1.js"),__vite__mapDeps([311,110,104,111,312,17,35,58,86,34,225,23,19,20,182,178,87,88,179,84,77,49,45,46,47,48,50,51,43,52,36,44,53,54,55,56,57,59,60,61,62,63,64,65,66,22,67,32,18,313,99,183,121,31,130,100,30,2,33,38,180,71,10,70,190,69,181,108,9,144]))),validateSearch:Gr(()=>_e({action:Eo(["create"]).optional(),tab:Eo(["all","connected"]).optional()}))}),Xle=Me({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>so,path:"/connections/$appSlug",component:je(()=>Fe(()=>import("./connection-detail-B_oXBonF.js"),__vite__mapDeps([314,110,104,111,18,181,2,64,65,315,71,10,203,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,20,66,22,67,32,180,33,34,216,316,76,129,86,70,121,317,81,82,4,83,39,84,278,23,190,9,175,132,21,155,77,122,100,30,313,99,318,215,217,286,218,290,291,165,179,189,89]))),validateSearch:Gr(()=>_e({tab:q().optional()}))}),ece=Me({staticData:{pageTitle:"page.item"},getParentRoute:()=>so,path:"/connections/$appSlug/$collectionName/$itemId",component:je(()=>Fe(()=>import("./collection-detail-DLFQHJrO.js"),__vite__mapDeps([319,18,71,10,100,30,2,38,315,203,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,180,110,104,111,33,34,216,316,76,129,86,70,121,317,81,82,4,83,39,84,189,190,234,179,278,23,9,188,77,148,72,73,69,91,3,127,135,149,90,42,21,68,31,74,75,78,79,80,85,87,88,89,24,12,92,93,260,211,266]))),validateSearch:Gr(()=>_e({replayId:q().optional()}))}),tce=Me({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>so,path:"/monitor",component:je(()=>Fe(()=>import("./index-D1n3DRPd.js"),__vite__mapDeps([320,19,20,18,321,322,310,186,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,65,66,22,67,32,26,27,187,163,162,164,31,149,158,121,72,73,69,70,71,10,86,34,127,82,4,83,39,84,148,91,3,135,90,74,188,189,190,191,154,167,157,42,21,68,75,76,77,78,79,2,30,80,81,85,87,88,89,24,12,92,93,122,180,155,156,100,192,193,179,23,129,260,211,175,132,323,144,33,137,233,38,182,37,234,318,215,216,217,286,218,290,291,237,184,183,201,16,274,219]))),validateSearch:Gr(()=>_e({tab:Eo(["overview","audit","dashboards","threads","automations"]).default("threads"),from:q().default("now-24h"),to:q().default("now"),connectionId:Be(q()).optional().default([]),virtualMcpId:Be(q()).optional().default([]),tool:q().default(""),status:Eo(["all","success","errors"]).default("all"),search:q().default(""),page:Mt().optional(),streaming:Ut().default(!0),propertyFilters:q().default(""),hideSystem:Ut().default(!1)}))}),oce=Me({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>so,path:"/general",component:je(()=>Fe(()=>import("./general-CEini4k1.js"),__vite__mapDeps([324,132,273,21,22,2,325,37,44,90,39,83,261,180,71,10,326,23,33,34,35,36,99,310])))}),ace=Me({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>so,path:"/connect",pendingComponent:Li("connect"),component:je(()=>Fe(()=>import("./connect-CZqVU7B6.js"),__vite__mapDeps([327,234,33,34,35,36,165,163,53,59,60,222,328,46,64,65,99,31,32,2,30,71,10,321,322,310])))}),nce=Me({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/ai-providers",pendingComponent:Li("billing"),component:je(()=>Fe(()=>import("./ai-providers-0dAet6Ph.js"),__vite__mapDeps([329,46,135,52,90,39,83,271,31,32,130,121,148,72,73,69,70,71,10,91,82,4,84,3,127,149,169,144,35,2,33,34,36,48,47,59,20,170,62,21,22,56,68,53,171,273,166,99,168,136,64,65,277,27,321,322,310])))}),rce=Me({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/billing",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),ice=Me({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/infra-billing",pendingComponent:Li("billing"),component:je(()=>Fe(()=>import("./infra-billing-zUiDiuZM.js"),__vite__mapDeps([330,54,61,23,323,144,35,36,75,76,31,32,20,129,33,34,16,217,216,286,291,218,321,322,310])))}),sce=Me({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>so,path:"/secrets",component:je(()=>Fe(()=>import("./secrets-BdK4qu9r.js"),__vite__mapDeps([331,46,64,22,67,31,32,2,30,33,34,35,36,38,280,321,322,310])))}),lce=Me({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>so,path:"/api-keys",pendingComponent:Li("connect"),component:je(()=>Fe(()=>import("./api-keys-C3d-u3vQ.js"),__vite__mapDeps([332,328,46,53,59,64,65,99,31,32,2,30,71,10,321,322,310])))}),cce=Me({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>so,path:"/buckets",pendingComponent:Li("storage"),component:je(()=>Fe(()=>import("./buckets-8RnICEdF.js"),__vite__mapDeps([333,46,64,65,99,31,32,2,30,33,34,35,36,37,38,120,321,322,310])))}),dce=Me({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>so,path:"/repositories",validateSearch:_e({git_error:q().optional().catch(void 0),git_flow:q().uuid().optional().catch(void 0),git_installation:Mt().int().positive().safe().optional().catch(void 0),git_return:Ut().optional().catch(void 0)}),pendingComponent:Li("repositories"),component:je(()=>Fe(()=>import("./repositories-heCfXdkU.js"),__vite__mapDeps([334,85,48,61,64,86,34,31,32,2,30,87,88,89,20,50,21,22,24,90,39,83,49,144,35,67,99,23,234,145,33,36,38,65,279,280,321,322,310])))}),uce=Me({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>so,path:"/synced-repos",pendingComponent:Li("storage"),component:je(()=>Fe(()=>import("./synced-repos-D8_WCeck.js"),__vite__mapDeps([335,64,99,31,32,2,85,48,61,86,34,30,87,88,89,20,50,21,22,24,90,39,83,240,26,27,321,322,310])))}),pce=Me({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>so,path:"/task-board",component:je(()=>Fe(()=>import("./tasks-CQz6Nviz.js"),__vite__mapDeps([336,144,35,2,38,47,63,64,65,229,75,76,31,32,20,129,323,23,36,33,34,37,172,173,156,154,100,30,157,158,121,72,73,69,70,71,10,86,45,46,17,48,49,50,51,43,52,44,53,54,55,56,57,58,59,60,61,62,66,22,67,148,91,82,4,83,39,84,3,127,135,149,90,169,170,21,68,155,174,242,99,325,261,180,230,145,122,321,322,310])))}),mce=Me({getParentRoute:()=>so,path:"/tasks",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/task-board",params:{org:e.org}})}}),hce=Me({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>so,path:"/projects",component:je(()=>Fe(()=>import("./projects-Dpuak2HA.js"),__vite__mapDeps([337,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,23,19,79,31,2,30,80,71,10,81,70,82,4,83,39,84,85,86,34,87,88,89,21,24,90,223,277,27,150,103,104,105,139,69,180])))}),gce=Me({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>so,path:"/members",pendingComponent:Li("members"),component:je(()=>Fe(()=>import("./members-D2zsUYru.js"),__vite__mapDeps([338,312,17,35,58,86,34,225,23,19,20,15,16,18,131,31,32,100,30,33,36,38,132,133,21,22,26,27,28,175,339,99,55,59,65,144,75,76,129,64,232,321,322,310])))}),fce=Me({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>so,path:"/roles",pendingComponent:Li("members"),component:je(()=>Fe(()=>import("./roles-bh3gMsHP.js"),__vite__mapDeps([340,133,132,339,23,99,55,64,65,15,16,17,18,19,20,170,77,49,45,46,47,48,50,51,43,52,35,36,44,53,54,56,57,58,59,60,61,62,63,66,22,67,32,183,144,184,88,71,10,89,111,175,28,180,70,135,21,37,86,34,78,69,322,310]))),validateSearch:Gr(()=>_e({role:q().optional()}))}),vce=Me({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>so,path:"/sso",component:je(()=>Fe(()=>import("./sso-BNxOATww.js"),__vite__mapDeps([341,326,23,2,33,34,35,36,99,37,92,65,321,322,310])))}),bce=Me({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>so,path:"/profile",component:je(()=>Fe(()=>import("./profile-BRC9Ss0Z.js"),__vite__mapDeps([342,21,22,31,32,316,33,34,35,36,65,66,37,166,2,62,63,273,146])))}),yce=Me({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>so,path:"/agents",component:je(()=>Fe(()=>import("./agents-list-XUQd9rlP.js"),__vite__mapDeps([343,70,71,10,55,47,65,45,46,17,48,49,50,51,43,52,35,36,44,53,54,56,57,58,59,60,61,62,63,64,20,66,22,67,32,277,27,81,82,4,83,39,84,90,18,317,180,108,9,110,104,111,85,86,34,31,2,30,87,88,89,21,24,105,106,99,19,80])))}),Sce=Me({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>so,path:"/automations",component:je(()=>Fe(()=>import("./automations-CMtFKDqu.js"),__vite__mapDeps([344,64,51,19,20,18,219,71,10,81,70,82,4,83,39,84,269,99,45,46,47,17,48,49,50,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,65,66,22,67,32,321,322,310])))}),wce=Me({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>so,path:"/skills",component:je(()=>Fe(()=>import("./skills-DTxnfNaS.js"),__vite__mapDeps([345,55,51,65,66,19,20,99,18,182,23,241,31,32,164,35,53,56,149,158,121,72,73,69,70,71,10,209,174,210,211,193,242])))}),Tce=Me({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>so,path:"/memory",component:je(()=>Fe(()=>import("./memory-DCcCIE6E.js"),__vite__mapDeps([346,43,22,234,86,34,182,23,18,74,174]))),validateSearch:Gr(()=>_e({scope:Eo(["user"]).optional()}))}),_ce=so.addChildren([Qle,Jle,Xle,ece,yce,Sce,wce,Tce,tce,oce,ace,nce,rce,ice,sce,lce,cce,dce,uce,pce,mce,hce,gce,fce,vce,bce]),xce=Yv.addChildren([yle,Sle,wle]),Cce=Mo.addChildren([fle,vle,ble,xce,Tle,_le,xle,Cle,kle,Ele,Ple,Ale,Rle,Dle,Ole,Mle,Nle,Ile,Lle,Ble,Fle]),kce=Mn.addChildren([mle,hle,gle,Cce,jle,zle,Ule,$le,qle,Vle,Hle,Gle]),Ece=Kv.addChildren([Yle,Zle,kce]),Pce=Wv.addChildren([Ece,Wle,_ce]),Ace=eC.addChildren([rle,Pce]),Rce=pn.addChildren([Ace,nle,ile,sle,lle,cle,dle,Kse,Yse,Zse,Qse,Jse,Xse]);function Dce(){const e=Le.c(16),t=kr();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==o?(a=w.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=a):a=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let i;e[6]!==n?(i=w.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=w.jsx("button",{type:"button",onClick:Oce,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let u;return e[12]!==a||e[13]!==i||e[14]!==c?(u=w.jsx("div",{className:"flex h-full items-center justify-center",children:w.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,i,c]})}),e[12]=a,e[13]=i,e[14]=c,e[15]=u):u=e[15],u}function Oce(){return window.history.back()}const Zv=b$({routeTree:Rce,defaultPendingComponent:Md,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:Dce});function Ee(...e){return vL(sx(e))}function Mce(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function $o({error:e,localization:t,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return e?.message?e.message:(a=e?.error)!=null&&a.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const i=e.error.code;if(t?.[i])return t[i]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function $l(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function QT(e,t){for(const o in e)if(e[o]===t)return o}function Ip(e,t){let o=q().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var Nce={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},Ice={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Lce={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Bce={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Fce={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},jce={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},zce={...Fce,...jce},Uce={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},$ce={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},qce={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Vce={INVALID_SESSION_TOKEN:"Invalid session token"},Hce={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Gce={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},Wce={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},Kce={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Yce={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},Zce={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},Qce={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},Jce={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Bce,...Nce,...Ice,...Lce,...zce,...Uce,...$ce,...qce,...Vce,...Hce,...Gce,...Wce,...Kce,...Yce,...Zce,...Qce},Xce={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},WO={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},KO={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const m3=A.createContext({});function h3(){return A.useContext(m3)}var L0,YO;function ede(){if(YO)return L0;YO=1;var e=function(){};return L0=e,L0}var tde=ede();const ode=Nl(tde);function ade({async:e,appendTo:t,defer:o,id:a,nonce:n,src:i}){const l=document.createElement("script");e!==void 0&&(l.async=e),o!==void 0&&(l.defer=o),a&&(l.id=a),n&&l.setAttribute("nonce",n),l.src=i,(t==="head"?document.head:document.body).appendChild(l)}var nde=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o};let hp=null,Lp=!1;const ov=new Set,av=new Set,rde=typeof window<"u",ud="___grecaptcha_cfg",g3=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function ide(){if(!rde)return;function e(o){if(Lp)o();else{window[ud]||(window[ud]={});const a=window[ud];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){Lp=!0;for(const o of av)o();av.clear()}window[g3]=t}function sde({language:e,onLoadCallbackName:t,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const i=n?"recaptcha.net":"google.com",l=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${i}/recaptcha/${l}?${c.toString()}`}function lde({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const i={id:"google-recaptcha-v3"},l=sde({language:e,onLoadCallbackName:g3,render:t,useEnterprise:a,useRecaptchaNet:n});if(hp){if(hp!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}hp=l,ade(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function cde(e){if(!window[ud])return;const t=window[ud];t.clients&&delete t.clients[e]}function dde(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=nde(t,["onLoadCallback","onLoadCallbackName"]);if(ov.size===0&&ide(),lde(n),ov.add(e),o&&(Lp?o():av.add(o)),a){let i=function(){if(!a)return;const l=window[a];typeof l=="function"&&l()};Lp?i():av.add(i)}}function ude(e){var t,o,a;ov.delete(e),ov.size===0&&(window.grecaptcha=void 0,window[ud]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${hp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),hp=null,Lp=!1)}let ZO=!1;function pde({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:i,useRecaptchaNet:l}){var c,u,p,h,m,f,v;const b=A.useId(),[S,x]=A.useState(null),[T,_]=A.useState(null),P=A.useRef(!1);A.useEffect(()=>{function D(){var O;const L=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{x(L)})}return dde(b,{language:o,onLoadCallback:D,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:i,useRecaptchaNet:l}),()=>{ude(b),x(null)}},[e?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,i,l]),A.useEffect(()=>{var D,O,L;if(!e?.element||!S?.render)return;const $={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((D=e.parameters)===null||D===void 0?void 0:D.badge)||"inline",callback:e.parameters.callback,sitekey:a,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const U=S.render(B,$);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(ZO||(ode(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),ZO=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),_(U),P.current=!0,()=>{_(null),P.current=!1,cde(U),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(u=e?.parameters)===null||u===void 0?void 0:u.hidden,(p=e?.parameters)===null||p===void 0?void 0:p.callback,(h=e?.parameters)===null||h===void 0?void 0:h.errorCallback,(m=e?.parameters)===null||m===void 0?void 0:m.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const k=!!e?.element,E=k?T:a,R=A.useMemo(()=>E!==null&&S?.execute?D=>{if(E===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return k&&!P.current?(console.warn("Client ID not mounted"),null):S.execute(E,{action:D})}:void 0,[E,S,k]);return w.jsx(m3.Provider,{value:{container:e?.element,executeRecaptcha:R,reCaptchaInstance:S},children:t})}var mde=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const a of o)a()}}},Gn=new mde;function hde(){return()=>{}}function Bi(){return A.useSyncExternalStore(hde,()=>!0,()=>!1)}function f3(){const[e,t]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");t(n??void 0)};o();const a=new MutationObserver(n=>{for(const i of n)i.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:e}}function tC(){const[e,t]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const i=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));t(i?"dark":"light")};o();const a=new MutationObserver(n=>{for(const i of n)(i.attributeName==="style"||i.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:e}}function gde({children:e}){const t=Bi(),{captcha:o}=A.useContext(yt);return o?.provider!=="google-recaptcha-v3"?e:w.jsxs(pde,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&w.jsx("style",{children:`
|
|
168
|
+
`),m=u;h.length>m;m++){var f=h[m];if(1024>=f.length){var v=QD.test(f)?f.replace(QD,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of i){var S=b(v,a);if(S){p.push(S);break}}if(p.length>=50)break}}}return(function(x){if(!x.length)return[];var T=Array.from(x);return T.reverse(),T.slice(0,50).map((_=>{return Oe({},_,{filename:_.filename||(P=T,P[P.length-1]||{}).filename,function:_.function||_d});var P}))})(p)}})("web:javascript",jne,$ne)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(ST))!==null&&t!==void 0?t:[],this.mo=Bf(this.yo()),this.bo=new ere(this.mo)}onConfigChange(){this.mo=Bf(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,a;if("errorTracking"in e){var n=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(a=e.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[ST]:this.fo,[wT]:i})}}get _o(){var e,t=!!this._instance.get_property(wT),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!xo(e)||e.trim().length===0)return void Ti.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:a,droppedKeys:n}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,u)=>Xne.has(u)?(l.push(u),c):(c[u]=i[u],c)),{}),droppedKeys:l}})(o);n.length>0&&Ti.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Oe({[If]:e,[Lf]:new Date().toISOString()},a))}catch(i){Ti.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Ti.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Ti.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Ti.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Ct(e.$exception_steps)?this.To(e):e;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return Ti.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Ti.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Oe({},e,{$exception_steps:t})}catch(o){return Ti.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[If]:e,[Lf]:new Date().toISOString()})}wo(e){return Bo(e)?Oe({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,a)=>{var{type:n,value:i}=a;return xo(n)&&n.length>0&&o.$exception_types.push(n),xo(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var i,l=Cj[n.operator],c=Nt(n.value)?n.value:[n.value],u=(i=t[n.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,u)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,a;return(o=(a=t.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,a,n,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(a=l==null||(n=l.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(e){return!Ct(e)&&Nt(e)}}},die=Oe({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[_T]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(_T)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?IO.error("Could not load product tours script",a):e()}))}Ro(){var e;!this.Ao&&(e=et.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=et.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Nt(this.Eo)||t){var o=this.ni;if(o){var a=o.props[of];if(Nt(a)&&!t)return this.Eo=a,void e(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var i=n.statusCode;if(i!==200||!n.json){var l="Product Tours API could not be loaded, status: "+i;return IO.error(l),void e([],{isLoaded:!1,error:l})}var c=Nt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[of]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Ct(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(of)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},$v),uie={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=et._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,a,n,i,l,c;if(!e)throw new Error("Event payload is required");var u={},p=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[m,f]of Object.entries(h))u[m]={id:p[m],type:m,properties:f};var{$set_once:v,$set:b}=e;return{event:Oe({},kF(e,tie),{properties:Oe({},e.properties,b?{$set:Oe({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Oe({},(a=(n=e.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(ms.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},a=!1,n=l=>{t.errored=!l,t.loaded=!0,ms.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),a&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){n(l)}});i&&(t.processEvent=i),a=!0}catch(l){ms.error(LO+e.id,l),n(!1)}if(a&&t.loaded)try{o()}catch(l){ms.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(a){ms.error("Error while processing event "+e.event+" for site app "+o.id,a)}}}onRemoteConfig(e){var t,o,a,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(u=>this.Po(u)))):void ms.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=e.siteApps)!=null&&a.length)if(this.isEnabled){var i=function(u){var p;et["__$$ph_site_app_"+u]=n._instance,(p=et.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(n._instance,c,(h=>{if(h)return ms.error(LO+u,h)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else ms.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},pie={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];qe(this.Lo)&&((t=et.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),qe(this.Do)&&((o=et.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Xre.error("failed to load script",a);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},mie=Oe({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Ct(t))return eo.warn("Flags not loaded yet. Not loading surveys.");var o=Nt(t);this.jo=o?t.length>0:t,eo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(qT)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)eo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)eo.info(BO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())eo.info("Not loading surveys in cookieless mode without consent.");else{var e=et?.__PosthogExtensions__;if(e){if(!qe(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var a=e.loadExternalDependency;if(!a)return void this.Ho($x);a(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else eo.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new nie(this._instance),eo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){eo.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return eo.info(BO),e([]);var o,a=this._instance.get_property(PT);if(a&&!t)return e(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:i,context:l}=n;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var i;this.Zo=null;var l=n.statusCode;if(l!==200||!n.json){var c="Surveys API could not be loaded, status: "+l;eo.error(c);var u={isLoaded:!1,error:c};return e([],u),void(o==null||o({surveys:[],context:u}))}var p,h=n.json.surveys||[],m=h.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var S;return!((S=b.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(b){var S;return!((S=b.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));m.length>0&&((p=this._surveyEventReceiver)==null||p.register(m)),(i=this._instance.persistence)==null||i.register({[PT]:h});var f={isLoaded:!0};e(h,f),o?.({surveys:h,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){eo.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Ct(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);eo.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var a;t=(a=o.find((n=>n.id===e)))!==null&&a!==void 0?a:null})),t}Yo(e){if(Ct(this._surveyManager))return{eligible:!1,reason:O0};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Ct(this._surveyManager))return eo.warn("init was not called"),{visible:!1,disabledReason:O0};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Ct(this._surveyManager)?(eo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:O0})):new Promise((o=>{this.getSurveys((a=>{var n,i=(n=a.find((c=>c.id===e)))!==null&&n!==void 0?n:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var a;if(Ct(this._surveyManager))eo.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(Fre.includes(n.type)){var i=ze?.querySelector(t);if(i)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(eo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;eo.info("Rendering survey "+n.id+" with delay of "+((l=n.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,i,o),eo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i,o);eo.warn("Survey element not found")}else eo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else eo.warn("Survey not found")}}displaySurvey(e,t){var o;if(Ct(this._surveyManager))eo.warn("init was not called");else{var a=this.Uo(e);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Oe({},a,{appearance:Oe({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==BT.Popover&&t.initialResponses&&eo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(a);if(!i.visible)return void eo.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==BT.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else eo.warn("Survey not found")}}cancelPendingSurvey(e){Ct(this._surveyManager)?eo.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},$v),hie={toolbar:class{constructor(e){this.instance=e}Go(e){et.ph_toolbar_state=e}Wo(){var e;return(e=et.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),ij(this.instance.config)||!ge||!ze)return!1;e=e??ge.location,o=o??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var a,n=rie||Kf(e.hash,"__posthog")||Kf(e.hash,"state"),i=n?XD((()=>JSON.parse(atob(decodeURIComponent(n)))))||XD((()=>JSON.parse(decodeURIComponent(n)))):null;return i&&i.action==="ph_authorize"?((a=i).source="url",a&&Object.keys(a).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((a=JSON.parse(t.getItem(FO)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(e){var t=et.ph_load_toolbar||et.ph_load_editor;!Ct(t)&&xi(t)?t(e,this.instance):jO.warn("No toolbar load function found")}loadToolbar(e){var t=!(ze==null||!ze.getElementById(oj));if(!ge||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Oe({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(FO,JSON.stringify(Oe({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return jO.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(a)})),Zo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},gie=Oe({experiments:Oa},$v),fie={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Ct(t)||($r(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||ij(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=et?.__PosthogExtensions__;if(e&&!qe(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra($x);o(this._instance,"conversations",(a=>{a||!e.initConversations?this.ra("Could not load conversations script",a):this.ta(e.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Hn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Hn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Hn.error("Cannot complete initialization: remote config is null")}ra(e,t){Hn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Hn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Ni(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var a=this;return Kn((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(e,t,o):(Hn.warn(pl),null)}))()}getMessages(e,t){var o=this;return Kn((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Hn.warn(pl),null)}))()}markAsRead(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Hn.warn(pl),null)}))()}getTickets(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Hn.warn(pl),null)}))()}requestRestoreLink(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Hn.warn(pl),null)}))()}restoreFromToken(e){var t=this;return Kn((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Hn.warn(pl),null)}))()}restoreFromUrlToken(){var e=this;return Kn((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Hn.warn(pl),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},vie={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=So("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Ct(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=et?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var a;o||(a=e.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error($x)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,a,n,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,u=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,p=Date.now();if(c>p-this.aa||(this.aa=p,this.oa=0,this.la=!1),u>this.oa){this.oa++;var h=(function(m,f){var v=m.level||"info",{text:b,number:S}=GF[v]||Mne,x=String(Date.now())+"000000",T={};f.distinctId&&(T.posthogDistinctId=f.distinctId),f.sessionId&&(T.sessionId=f.sessionId),f.currentUrl&&(T["url.full"]=f.currentUrl),f.screenName&&(T["screen.name"]=f.screenName),f.appState&&(T["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(T.feature_flags=f.activeFeatureFlags);var _=Oe({},T,m.attributes||{}),P={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:S,severityText:b,body:{stringValue:m.body},attributes:ZD(_)};return m.trace_id&&(P.traceId=m.trace_id),m.span_id&&(P.spanId=m.span_id),qe(m.trace_flags)||(P.flags=m.trace_flags),P})(e,this.ua());this.sa.push({record:h}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+u+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,a=Oe({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(l,c,u,p){return{resourceLogs:[{resource:{attributes:ZD(c)},scopeLogs:[{scope:{name:u,version:p},logRecords:l}]}]}})(t.map((l=>l.record)),a,Ga.LIB_NAME,Ga.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:n,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(et!=null&&(e=et.location)!=null&&e.href&&(t.currentUrl=et.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},bie=Oe({},$v,sie,lie,cie,die,uie,mie,pie,hie,gie,fie,vie);Zn.__defaultExtensionClasses=Oe({},bie);var qO,Ii=(qO=pp[Yc]=new Zn,(function(){function e(){e.done||(e.done=!0,Pj=!1,go(pp,(function(t){t._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?e():Zo(ze,"DOMContentLoaded",e,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),qO);const yie="studio-ui-resources",Xf="html",Sie=10080*60*1e3,wie=50,Tie=16*1024*1024;function _ie(e){return e[0]==="mcp"&&e[1]===NI}function qv(){return new Promise((e,t)=>{const o=indexedDB.open(yie,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Xf)||o.result.createObjectStore(Xf)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function kd(e,t){return e.transaction(Xf,t).objectStore(Xf)}function KT(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function xie(e){if(!(typeof indexedDB>"u"))try{const t=await qv(),o=kd(t,"readonly"),a=await KT(o.getAllKeys()),n=await KT(o.getAll()),i=Date.now(),l=a.map((p,h)=>({key:p,value:n[h]})).sort((p,h)=>(h.value?.updatedAt??0)-(p.value?.updatedAt??0)),c=[];let u=0;for(const{key:p,value:h}of l){if(!h||i-h.updatedAt>Sie||u>=wie){c.push(p);continue}u++;try{const f=JSON.parse(String(p));e.getQueryData(f)===void 0&&e.setQueryData(f,h.html,{updatedAt:0})}catch{c.push(p)}}if(c.length>0){const p=kd(t,"readwrite");for(const h of c)p.delete(h)}}catch{}}function Cie(e){if(typeof indexedDB>"u")return()=>{};const t=qv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!_ie(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>Tie||t.then(i=>{if(i)try{kd(i,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function kie(){typeof indexedDB>"u"||qv().then(e=>kd(e,"readwrite").clear()).catch(()=>{})}async function vve(e){if(!(typeof indexedDB>"u"))try{const t=await qv(),o=await KT(kd(t,"readonly").getAllKeys()),a=kd(t,"readwrite");for(const n of o)try{const i=JSON.parse(String(n));i[1]===NI&&i[3]===e&&a.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Yx=1440*60*1e3,Eie=1e3,Pie=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),Aie=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let Bj=!1,Fj=!1;function Rie(e){const t=e[0];return typeof t=="string"&&Pie.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&Aie.has(e[4])}function Die(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(ev);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>Yx;if(o.buster!=="4.459.2"||a||!o.state){window.localStorage.removeItem(ev);return}$$(e,o.state),e.invalidateQueries({queryKey:On.publicConfig(),refetchType:"none"}),Bj=!0}catch{Iie()}}function Oie(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const i=U$(e,{shouldDehydrateQuery:l=>l.state.status==="success"&&Rie(l.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.459.2",timestamp:Date.now(),state:i}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,Eie))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const jj="studio:org-cache:",Mie=20;function Nie(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=Yx);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>Mie;)o.shift();return Object.fromEntries(o)}function zj(e){return`${jj}${e}`}function bve(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(zj(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>Yx?null:(Fj=!0,a)}catch{return null}}function yve(e,t,o){if(!(typeof window>"u"))try{const a=zj(e),n=window.localStorage.getItem(a),i=n?JSON.parse(n):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(Nie(i)))}catch{}}function Iie(){if(kie(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(jj)&&window.localStorage.removeItem(t)}}catch{}}function Lie(){return Bj}function Bie(){return Fj}let Ri=!1,YT=null,VO=!1;const Zx="studio:lp-distinct-id",Uj="mesh:lp-distinct-id",N0="/api/_reports/link-token/",Fie=1440*60*1e3;function $j(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),a=e.startsWith("//");try{const n=new URL(e,t);let i=!1;for(const l of["key","d"])n.searchParams.has(l)&&(n.searchParams.delete(l),i=!0);return n.pathname.startsWith(N0)&&n.pathname!==N0&&(n.pathname=`${N0}redacted`,i=!0),i?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function I0(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?$j(o):o]))}const jie=e=>e?(e.properties=I0(e.properties),e.$set&&(e.$set=I0(e.$set)),e.$set_once&&(e.$set_once=I0(e.$set_once)),e):null;function qj(){try{const e=window.localStorage.getItem(Zx)??window.localStorage.getItem(Uj);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=Fie?t:void 0}catch{return}}function zie(){try{window.localStorage.removeItem(Zx),window.localStorage.removeItem(Uj)}catch{}}function Uie(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(Zx,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??qj();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function $ie(e){const t=qj();if(t&&(zie(),t!==e))try{Ii.alias(t)}catch{}}function qie(e,t){if(Ri||typeof window>"u")return;const o=Uie();Ii.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:jie,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:a=>({...a,...typeof a.name=="string"?{name:$j(a.name)}:{}})},person_profiles:"identified_only"}),Ri=!0}function Vie(e,t){Ri&&(Ii.identify(e,t),$ie(e))}function Hie(){Ri&&(Ii.reset(),YT=null)}function Vj(e,t){Ri&&Ii.capture(e,t)}function Sve(){return Ri}function wve(){if(!Ri||VO||typeof performance>"u")return;VO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};Vj("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Lie(),org_cache_restored:Bie()})}function Tve(e,t){Ri&&e!==YT&&(Ii.group("organization",e,t),YT=e)}function Hj(e,t){if(Ri)try{Ii.captureException(e,t)}catch{}}const Gie=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function Wie(e){const t=Le.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=w.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Gie}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=w.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,w.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=n):n=t[2],n}function Gj(e){const t=Le.c(20),{orgName:o}=e,a=kr(),n=Kie;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=w.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:w.jsx(lF,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==a?(l=a("common.archivedOrgScreen.orgUnavailable"),t[1]=a,t[2]=l):l=t[2];let c;t[3]!==l?(c=w.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let u;t[5]!==o||t[6]!==a?(u=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=u):u=t[7];let p;t[8]!==u?(p=w.jsx("p",{className:"text-sm text-muted-foreground",children:u}),t[8]=u,t[9]=p):p=t[9];let h;t[10]!==c||t[11]!==p?(h=w.jsxs("div",{className:"space-y-2",children:[c,p]}),t[10]=c,t[11]=p,t[12]=h):h=t[12];let m;t[13]!==a?(m=a("common.goHome"),t[13]=a,t[14]=m):m=t[14];let f;t[15]!==m?(f=w.jsx(Al,{onClick:n,children:m}),t[15]=m,t[16]=f):f=t[16];let v;return t[17]!==h||t[18]!==f?(v=w.jsxs(Wie,{children:[i,h,f]}),t[17]=h,t[18]=f,t[19]=v):v=t[19],v}function Kie(){window.location.href="/"}function Yie(){const e=Le.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=jp(t);let a;return e[1]!==o?(a=w.jsx(Al,{variant:"outline",size:"sm",asChild:!0,children:w.jsx(Il,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Zie(e){const t=Le.c(13),{area:o,description:a,action:n}=e,i=o?`No access to ${o}`:"No access",l=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=w.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:w.jsx(gF,{size:28})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=w.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==l?(p=w.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=p):p=t[4];let h;t[5]!==u||t[6]!==p?(h=w.jsxs("div",{className:"space-y-1",children:[u,p]}),t[5]=u,t[6]=p,t[7]=h):h=t[7];let m;t[8]!==n?(m=n??w.jsx(Yie,{}),t[8]=n,t[9]=m):m=t[9];let f;return t[10]!==h||t[11]!==m?(f=w.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,h,m]}),t[10]=h,t[11]=m,t[12]=f):f=t[12],f}const HO="__studio_chunk_reload_ts";function Wj(e){return e?.message===jZ}function Qie(e){return!!e?.message?.includes("Access denied")}function GO(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Jie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),Hj(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:Wj(this.state.error)?w.jsx(Gj,{}):Qie(this.state.error)?w.jsx(Zie,{}):w.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:w.jsx(Mx,{className:"h-6 w-6 text-destructive"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),w.jsx(Al,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Xie(e){const t=Le.c(3),o=kr();let a;return t[0]!==e||t[1]!==o?(a=w.jsx(Jie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class ese extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const a=GO(t);if(Hj(t,{boundary:"chunk_root",is_chunk_load_error:a,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(HO),i=Date.now();(!n||i-Number(n)>1e4)&&(sessionStorage.setItem(HO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&GO(this.state.error)?w.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:w.jsx(fF,{className:"h-6 w-6 text-primary"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),w.jsx(Al,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?Wj(this.state.error)?w.jsx(Gj,{}):w.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[w.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:w.jsx(Mx,{className:"h-6 w-6 text-destructive"})}),w.jsxs("div",{className:"space-y-2",children:[w.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),w.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),w.jsx(Al,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function tse(e){const t=Le.c(3),o=kr();let a;return t[0]!==e||t[1]!==o?(a=w.jsx(ese,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function ose(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("surface flex flex-col gap-6",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=w.jsx("div",{"data-slot":"card",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function _ve(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=w.jsx("div",{"data-slot":"card-content",...o}),t[2]=o,t[3]=a):a=t[3],a}function xve(e){const t=Le.c(12),{title:o,description:a,docsHref:n,actions:i,className:l,headerClassName:c,children:u}=e;let p;t[0]!==l?(p=qt("flex flex-col gap-3",l),t[0]=l,t[1]=p):p=t[1];let h;t[2]!==i||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(h=(o||a||n||i)&&w.jsxs("div",{className:qt("flex items-center justify-between gap-3 px-4",c),children:[w.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&w.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:o}),(a||n)&&w.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&w.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",w.jsx(cF,{size:12})]})]})]}),i&&w.jsx("div",{className:"shrink-0",children:i})]}),t[2]=i,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=h):h=t[7];let m;return t[8]!==u||t[9]!==p||t[10]!==h?(m=w.jsxs("section",{className:p,children:[h,u]}),t[8]=u,t[9]=p,t[10]=h,t[11]=m):m=t[11],m}function Cve(e){const t=Le.c(11),{className:o,children:a}=e;let n,i,l;if(t[0]!==a||t[1]!==o){const u=A.Children.toArray(a).filter(A.isValidElement);n=ose,t[5]!==o?(i=qt("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=i):i=t[6],l=u.map(ase),t[0]=a,t[1]=o,t[2]=n,t[3]=i,t[4]=l}else n=t[2],i=t[3],l=t[4];let c;return t[7]!==n||t[8]!==i||t[9]!==l?(c=w.jsx(n,{className:i,children:l}),t[7]=n,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function ase(e,t){return w.jsxs("div",{children:[t>0&&w.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function kve(e){const t=Le.c(27),{icon:o,title:a,description:n,action:i,onClick:l,className:c,children:u}=e,p=u?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",h=l&&"hover:bg-muted/50 cursor-pointer";let m;t[0]!==c||t[1]!==p||t[2]!==h?(m=qt(p,h,c),t[0]=c,t[1]=p,t[2]=h,t[3]=m):m=t[3];const f=l?"button":void 0,v=l?0:void 0;let b;t[4]!==l?(b=l?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),l())}:void 0,t[4]=l,t[5]=b):b=t[5];let S;t[6]!==o?(S=o&&w.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),t[6]=o,t[7]=S):S=t[7];let x;t[8]!==a?(x=w.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=x):x=t[9];let T;t[10]!==n?(T=n&&w.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=T):T=t[11];let _;t[12]!==u||t[13]!==x||t[14]!==T?(_=w.jsxs("div",{className:"flex-1 min-w-0",children:[x,T,u]}),t[12]=u,t[13]=x,t[14]=T,t[15]=_):_=t[15];let P;t[16]!==i?(P=i&&w.jsx("div",{className:"shrink-0",onClick:nse,children:i}),t[16]=i,t[17]=P):P=t[17];let k;return t[18]!==l||t[19]!==_||t[20]!==P||t[21]!==m||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==S?(k=w.jsxs("div",{className:m,onClick:l,role:f,tabIndex:v,onKeyDown:b,children:[S,_,P]}),t[18]=l,t[19]=_,t[20]=P,t[21]=m,t[22]=f,t[23]=v,t[24]=b,t[25]=S,t[26]=k):k=t[26],k}function nse(e){return e.stopPropagation()}function Eve(e){const t=Le.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=qt("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=w.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}function Pve(e){const t=Le.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=qt("flex items-center justify-end gap-2 px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let i;return t[2]!==o||t[3]!==n?(i=w.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=i):i=t[4],i}function rse(e){const t=Le.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=qt("flex flex-col gap-10",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=w.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}const Vv={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:yF,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:bF,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:uF,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:vF,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:hF,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:mF,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function Ave(e){const t=Vv[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function Rve(e){return Vv[e].tabs.length>0}const ise=new Set(["owner","admin"]);function Kj(){const e=Le.c(11),{org:t,locator:o}=Kp();let a;e[0]!==o?(a=On.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const h=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!h.ok)throw new Error(`my-capabilities request failed: ${h.status}`);return await h.json()},e[2]=t,e[3]=n):n=e[3];let i;e[4]!==a||e[5]!==n?(i={queryKey:a,queryFn:n,staleTime:3e4,retry:2},e[4]=a,e[5]=n,e[6]=i):i=e[6];const{data:l,isLoading:c,isError:u}=Rd(i);let p;return e[7]!==l||e[8]!==u||e[9]!==c?(p={data:l,loading:c,error:u},e[7]=l,e[8]=u,e[9]=c,e[10]=p):p=e[10],p}function Dve(e){const t=Le.c(8),{data:o,loading:a,error:n}=Kj();if(a){let p;return t[0]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=p):p=t[0],p}if(n){let p;return t[1]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=p):p=t[1],p}const i=o?.role??null;if(!i){let p;return t[2]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=p):p=t[2],p}if(i==="owner"){let p;return t[3]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=p):p=t[3],p}if(i==="admin"){let p;return t[4]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=p):p=t[4],p}const l=o?.capabilities?.[e]===!0,c=l?"role":"denied";let u;return t[5]!==l||t[6]!==c?(u={granted:l,loading:!1,error:!1,reason:c},t[5]=l,t[6]=c,t[7]=u):u=t[7],u}function Yj(){const e=Le.c(10),{data:t,loading:o,error:a}=Kj(),n=t?.role??void 0;let i;e[0]!==n?(i=n?ise.has(n):!1,e[0]=n,e[1]=i):i=e[1];const l=i;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const u=c;let p;return e[4]!==a||e[5]!==l||e[6]!==o||e[7]!==n||e[8]!==u?(p={capabilities:u,loading:o,error:a,isPrivileged:l,roleSlug:n},e[4]=a,e[5]=l,e[6]=o,e[7]=n,e[8]=u,e[9]=p):p=e[9],p}function sse(){const e=Le.c(13),{org:t}=Kp(),o=ox(),{capabilities:a,isPrivileged:n}=Yj(),i=n||!!a["members:manage"];let l;e[0]!==t.id?(l=On.infraBillingSites(t.id),e[0]=t.id,e[1]=l):l=e[1];const c=!!t.id&&i;let u;e[2]!==o?(u=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=u):u=e[3];let p;e[4]!==l||e[5]!==c||e[6]!==u?(p={queryKey:l,staleTime:3e5,enabled:c,queryFn:u},e[4]=l,e[5]=c,e[6]=u,e[7]=p):p=e[7];const{data:h,isLoading:m}=Rd(p);let f;e[8]!==h?.sites?(f=h?.sites.map(lse)??[],e[8]=h?.sites,e[9]=f):f=e[9];let v;return e[10]!==m||e[11]!==f?(v={sites:f,isLoading:m},e[10]=m,e[11]=f,e[12]=v):v=e[12],v}function lse(e){return e.slug}function Ove(){const e=Le.c(7),t=ox(),o=kr();let a;e[0]!==t?(a=l=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:l}),e[0]=t,e[1]=a):a=e[1];let n;e[2]!==o?(n=l=>Vr.error(o("settings.infraBilling.portalError",{message:l.message})),e[2]=o,e[3]=n):n=e[3];let i;return e[4]!==a||e[5]!==n?(i={mutationFn:a,onSuccess:cse,onError:n},e[4]=a,e[5]=n,e[6]=i):i=e[6],sp(i)}function cse(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function Mve(e,t){const o=Le.c(14),{org:a}=Kp(),n=ox();let i,l,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(i=[...e].sort(),c=Rd,l=On.infraBilling(a.id,i.join(","),t),o[0]=a.id,o[1]=t,o[2]=e,o[3]=i,o[4]=l,o[5]=c):(i=o[3],l=o[4],c=o[5]);const u=i.length>0;let p;o[6]!==t||o[7]!==i||o[8]!==n?(p=()=>n.call("INFRA_BILLING_GET",{siteSlugs:i,period:t}),o[6]=t,o[7]=i,o[8]=n,o[9]=p):p=o[9];let h;return o[10]!==l||o[11]!==u||o[12]!==p?(h={queryKey:l,enabled:u,staleTime:6e4,queryFn:p},o[10]=l,o[11]=u,o[12]=p,o[13]=h):h=o[13],c(h)}function dse(){const e=Le.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=Yj(),{sites:i,isLoading:l}=sse(),c=i.length>0;let u;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==l){const p=h=>h.requiresOwnedSites&&!c&&!l?!1:a||n?!0:h.privilegedOnly?o:h.requires?o||t[h.requires]:!0;u=Object.fromEntries(Object.values(Vv).map(h=>[h.key,h.tabs.filter(p)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=l,e[6]=u}else u=e[6];return u}function use(e){const t=Le.c(16),{group:o}=e,a=kr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:i}=jp(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:pse},t[1]=l):l=t[1];const c=E_(l),u=dse()[o],{titleKey:p}=Vv[o];let h;t[2]!==a||t[3]!==p?(h=a(p),t[2]=a,t[3]=p,t[4]=h):h=t[4];let m;t[5]!==h?(m=w.jsx(ld.Title,{children:h}),t[5]=h,t[6]=m):m=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==u?(f=u.length>1&&w.jsx(nn.Toolbar.Left.Portal,{children:w.jsx(ld.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:u.map(b=>{const S=b.to.replace("$org",i),x=c===S||c.startsWith(`${S}/`);return w.jsx(ld.Tab,{active:x,asChild:!0,children:w.jsx(Il,{to:b.to,params:{org:i},onClick:()=>Vj("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),t[7]=o,t[8]=i,t[9]=c,t[10]=a,t[11]=u,t[12]=f):f=t[12];let v;return t[13]!==m||t[14]!==f?(v=w.jsxs(w.Fragment,{children:[m,f]}),t[13]=m,t[14]=f,t[15]=v):v=t[15],v}function pse(e){return e.location.pathname}function Zj(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=w.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[w.jsx(hD,{className:"h-32 w-full"}),w.jsx(hD,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function mse(e){const t=Le.c(14),{group:o,fallback:a,errorFallback:n,className:i,children:l}=e;let c;t[0]!==o?(c=w.jsx(use,{group:o}),t[0]=o,t[1]=c):c=t[1];let u;t[2]!==a?(u=a??w.jsx(Zj,{}),t[2]=a,t[3]=u):u=t[3];let p;t[4]!==l||t[5]!==u?(p=w.jsx(A.Suspense,{fallback:u,children:l}),t[4]=l,t[5]=u,t[6]=p):p=t[6];let h;t[7]!==n||t[8]!==p?(h=w.jsx(Xie,{fallback:n,children:p}),t[7]=n,t[8]=p,t[9]=h):h=t[9];let m;return t[10]!==i||t[11]!==c||t[12]!==h?(m=w.jsx(ld,{children:w.jsx(ld.Content,{children:w.jsx(ld.Container,{children:w.jsxs(rse,{className:i,children:[c,h]})})})}),t[10]=i,t[11]=c,t[12]=h,t[13]=m):m=t[13],m}function Li(e){return function(){return w.jsx(mse,{group:e,children:w.jsx(Zj,{})})}}function hse(e){try{localStorage.setItem(Fl.lastLocation(),JSON.stringify(e))}catch{}}function gse(){try{const e=localStorage.getItem(Fl.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function Nve(){try{localStorage.removeItem(Fl.lastLocation())}catch{}}const Ot={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",orgIndex:"/$org/"},rt={root:Ot.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",monitor:"/$org/projects/$agentId/cdn"};function Ive(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:fse},e[0]=t):t=e[0],E_(t)}function fse(e){return e.matches.at(-1)?.fullPath??""}const vse=new Map([[Ot.reports,"project-only"],[Ot.library,"org-only"],[Ot.threadAnalytics,"org-only"]]);function Lve(e,t){const o=vse.get(e);return o===void 0?!0:o==="project-only"?t!==null:t===null}function Bve(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:bse},e[0]=t):t=e[0],E_(t)}function bse(e){return e.matches.findLast(yse)?.staticData.mainView}function yse(e){return e.staticData.mainView}function rf(e){return`agent-view:${encodeURIComponent(e)}`}function Sse(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function Qj(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function Qx(e,t){return`app:${e}:${t}`}function wse(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),o=t.indexOf(":");if(o<=0)return null;const a=t.slice(0,o),n=t.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function Jj(e){return`deck:${encodeURIComponent(e)}`}function Tse(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function Xj(e){return`file:${encodeURIComponent(e)}`}function _se(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function e3(e){return`library-file:${encodeURIComponent(e)}`}function xse(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function t3(e){return`code:${encodeURIComponent(e)}`}function Cse(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const o3=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],kse=new Set(o3),a3=new Set(["hosting","e2e","analytics","cdn"]),Ese=new Set(["board","files","connect-sources","reports"]);function Fve(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const Pse=new Map([["preview","site-editor"],["git","site-editor"]]);function Hv(e){return Pse.get(e)??e}const Jx=new Set(["instructions","connections","layout","settings"]);function Ase(e){return!!e&&Jx.has(e)}const Rse=new Set(["overview","board","reports"]);function jve(e){const t=e?.defaultMainView??null;if(!(!t||t.type==="chat"))return n3(e??null)}function n3(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Hv(t.type);if(Jx.has(o))return"settings";if(kse.has(o)||Rse.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return Qx(t.id,t.toolName);const n=e?.tabs?.map(i=>i.id)??[];return t.id&&n.includes(t.id)?rf(t.id):n[0]?rf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?rf(a):"settings"}function zve(e){const t=e.routeDefaultMain||n3(e.metadata),o=e.panelTabId&&Jx.has(e.panelTabId)?"settings":e.panelTabId?Hv(e.panelTabId):e.panelTabId,a=e.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:e.mainPanelParam??(!!o||!!e.routeDefaultMain||!n),activeTab:o??t}}function Uve(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function $ve(e){return e.mainOpen?e.activeTab==="automations"?!0:Qj(e.activeTab)!==null:!1}const Dse=new Set([...o3.filter(e=>!a3.has(e)),...Ese,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Ose(e){return!!e&&Dse.has(e)}function Mse(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?Qx(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?Xj(t.key):void 0;case"deck":return t.deck?Jj(t.deck):void 0;case"library-file":return t.path?e3(t.path):void 0;case"code":return t.file?t3(t.file):"code";default:{const o=Hv(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function qve(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?t3(o.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?Qx(t.connectionId,t.toolName):void 0;case"view":return t.viewId?rf(t.viewId):void 0;case"file":return o.key?Xj(o.key):void 0;case"deck":return o.path?Jj(o.path):void 0;case"library-file":return o.path?e3(o.path):void 0;default:return e.mainView}}const Nse={files:"library",discover:"discover"},Ise={board:"tasks",reports:"reports"},Lse={settings:"settings",assets:"assets",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",cdn:"monitor"};function r3(e){const t=Sse(e);if(t)return{kind:"agent-view",viewId:t.id};const o=wse(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=Qj(e);if(a)return{kind:"automations",automationId:a.id};const n=_se(e);if(n)return{kind:"output-file",key:n.key};const i=Tse(e);if(i)return{kind:"output-deck",path:i.path};const l=xse(e);if(l)return{kind:"library-file",path:l.path};const c=Cse(e);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(Ase(e))return{kind:"agent-section",section:"settings"};const u=Hv(e);if(u==="overview")return{kind:"agent-overview"};if(u==="site-editor")return{kind:"site-editor",view:"preview"};if(u==="content")return{kind:"site-editor",view:"content"};if(u==="automations")return{kind:"automations"};if(u==="connect-sources")return{kind:"connect-sources"};const p=Ise[u];if(p)return{kind:"project-destination",destination:p};const h=Nse[u];if(h)return{kind:"org-destination",destination:h};const m=Lse[u];return m?{kind:"agent-section",section:m}:{kind:"agent-view",viewId:u}}function Ol(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=r3(e.tabId);switch(n.kind){case"project-destination":return e.destinationScope==="organization"?n.destination==="tasks"?{to:Ot.tasks,params:{org:t,taskKey:e.taskKey},search:{}}:{to:Ot.reports,params:{org:t},search:{}}:n.destination==="tasks"?{to:rt.tasks,params:{...a,taskKey:e.taskKey},search:{}}:{to:rt.reports,params:a,search:{}};case"org-destination":switch(n.destination){case"home":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};case"library":return{to:Ot.library,params:{org:t},search:{}}}case"agent-overview":return{to:rt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:rt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:rt.siteEditorCode,params:a,search:{file:n.file}}:{to:rt.siteEditor,params:a,search:{}};case"agent-section":return{to:rt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:rt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:rt.automations,params:a,search:{}};case"app":return{to:rt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:rt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:rt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:rt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:rt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:rt.connectSources,params:a,search:{}}}}function Vve(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ot.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&r3(t).kind==="org-destination"?"overview":t;return Ol({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Bse(e,t,o={}){const a=i=>({...o.search?.(i)??{},...t.search}),n=o.replace??!0;switch(t.to){case Ot.tasks:e({to:Ot.tasks,params:t.params,search:a,replace:n});return;case Ot.home:e({to:Ot.home,params:t.params,search:a,replace:n});return;case Ot.reports:e({to:Ot.reports,params:t.params,search:a,replace:n});return;case Ot.discover:e({to:Ot.discover,params:t.params,search:a,replace:n});return;case Ot.library:e({to:Ot.library,params:t.params,search:a,replace:n});return;case rt.root:e({to:rt.root,params:t.params,search:a,replace:n});return;case rt.tasks:e({to:rt.tasks,params:t.params,search:a,replace:n});return;case rt.reports:e({to:rt.reports,params:t.params,search:a,replace:n});return;case rt.siteEditor:e({to:rt.siteEditor,params:t.params,search:a,replace:n});return;case rt.siteEditorContent:e({to:rt.siteEditorContent,params:t.params,search:a,replace:n});return;case rt.siteEditorCode:e({to:rt.siteEditorCode,params:t.params,search:a,replace:n});return;case rt.automations:e({to:rt.automations,params:t.params,search:a,replace:n});return;case rt.automation:e({to:rt.automation,params:t.params,search:a,replace:n});return;case rt.app:e({to:rt.app,params:t.params,search:a,replace:n});return;case rt.view:e({to:rt.view,params:t.params,search:a,replace:n});return;case rt.outputFile:e({to:rt.outputFile,params:t.params,search:a,replace:n});return;case rt.outputDeck:e({to:rt.outputDeck,params:t.params,search:a,replace:n});return;case rt.libraryFile:e({to:rt.libraryFile,params:t.params,search:a,replace:n});return;case rt.connectSources:e({to:rt.connectSources,params:t.params,search:a,replace:n});return;case rt.settings:case rt.assets:case rt.hosting:case rt.e2e:case rt.analytics:case rt.experiments:case rt.monitor:e({to:t.to,params:t.params,search:a,replace:n})}}function Hve(e,t){Bse(e,Ol(t),t)}function Fse(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function jse(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const zse=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),i3=new Set(["main"]),Use=new Set(["virtualmcpid"]);function Gv(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function El(e,t){return{...Gv(e,zse),...t.search}}function $se(e){return Gv(e,Use)}function Gve(e){if(e.search.virtualmcpid===void 0)return null;const t=br(e.search.virtualmcpid);if(t){const o=e.routePath===Ot.tasks?"board":e.routePath===Ot.reports?"reports":null;if(e.routePath===Ot.home||o){const a=o?Ol({org:e.org,agentId:t,tabId:o}):Ed(e.org,t);return{kind:"canonical",route:a,search:El(e.search,a)}}}return e.routePath===Ot.home||e.routePath===Ot.tasks||e.routePath===Ot.reports||e.routePath===Ot.library?{kind:"same-route",search:$se(e.search)}:null}function br(e){return e?.trim()||void 0}function s3(e){return Ose(e)||e!==void 0&&a3.has(e)}function l3(e){const t=br(e);return t?t.startsWith("vir_")&&t.length>4||QG(t)!==null||oW(t)!==null||nW(t)!==null||rW(t)!==null||iW(t)||cW(t):!1}function qse(e){const t=br(e.agentIdParam),o=s3(t);return t&&!o?t:br(e.virtualMcpIdSearch)??br(e.fallbackAgentId)}function Wve(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const l=ZT({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return l?.kind==="canonical"?{route:l.route,search:l.search}:null}if(!t||jse(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!l3(t);if(!(s3(t)||o))return null;const n=qse({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),i=ZT({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}function Vse(e,t,o,a){const n=br(a);switch(e){case"board":return n?Ol({org:t,agentId:n,tabId:"board"}):{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const i=bs(o.path);return{to:Ot.library,params:{org:t},search:i?{path:i}:{}}}case"reports":return n?Ol({org:t,agentId:n,tabId:"reports"}):{to:Ot.reports,params:{org:t},search:{}};case"overview":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};default:return null}}function Np(e){const t=Vse(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return Ed(e.org,e.agentId);const o=br(e.agentId);return o?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:rt.root,params:{org:e.org,agentId:o},search:{}}:Ol({org:e.org,agentId:o,tabId:e.tabId}):null}function Ed(e,t){const o=br(t);return o?{to:rt.root,params:{org:e,agentId:o},search:{}}:{to:Ot.home,params:{org:e},search:{}}}function Hse(e){const{main:t}=e;if(t===void 0)return null;const o=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Gv(o,i3),mainpanel:!1}};if(t==="chat"){const n=Ed(e.org,e.agentId);return{kind:"canonical",route:n,search:{...El(o,n),sidepanel:!0,mainpanel:!1}}}const a=Np({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:El(o,a)}:null}function bs(e){return typeof e=="string"&&e.length>0?e:void 0}function ZT(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const l=ZT({...e,search:Gv(t,i3)});return l?.kind!=="canonical"?l:{...l,search:{...l.search,mainpanel:!1}}}if(t.main!==void 0)return Hse({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=br(e.agentId),a=e.panel;if(!a){const l=Ed(e.org,o);return{kind:"canonical",route:l,search:El(t,l)}}const n=Mse(a,{file:bs(t.file),key:bs(t.key),deck:bs(t.deck),path:bs(t.path),connection:bs(t.connection),tool:bs(t.tool),automation:bs(t.automation)}),i=n?e.source==="project-first"&&n==="overview"&&o?Ol({org:e.org,agentId:o,tabId:n}):Np({org:e.org,agentId:o,tabId:n,search:t}):Np({org:e.org,agentId:o,tabId:"",search:t});return i?{kind:"canonical",route:i,search:n==="chat"?{...El(t,i),sidepanel:!0,mainpanel:!1}:El(t,i)}:null}function Kve(e){const t=e.search??{},o=br(t.virtualmcpid),a=br(e.fallbackAgentId),n=t.main;let i;if(n==="chat")i=Ed(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const l=Np({org:e.org,agentId:o,tabId:n,search:t}),c=!l&&n.trim().length>0&&a?Np({org:e.org,agentId:a,tabId:n,search:t}):null;i=l??c??{to:Ot.home,params:{org:e.org},search:{}}}else i=Ed(e.org,o);return{route:i,search:{...El(t,i),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function c3(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const Gse={contentPageId:q().optional(),contentPath:q().optional(),contentPathTemplate:q().optional(),contentCollection:q().optional(),contentItem:q().optional()},d3=Gse,Xx={view:q().optional(),group:q().optional(),subgroup:q().optional(),sort:q().optional(),dir:q().optional(),q:q().optional(),assignee:q().optional(),priority:q().optional(),due:q().optional(),tags:q().optional(),repo:q().optional(),boardOrg:q().optional()},tv={fileView:Eo(["all","documents","media"]).catch("all").optional(),layout:Eo(["list","grid"]).catch("list").optional(),sort:Eo(["name","updated","size"]).catch("name").optional(),path:q().optional(),preview:q().optional(),skill:q().optional(),brand:q().optional()},Wse={file:q().optional(),key:q().optional(),deck:q().optional(),path:q().optional(),connection:q().optional(),tool:q().optional(),automation:q().optional(),section:q().optional(),preview:q().optional(),autosend:q().optional(),connect:Tv().optional(),siteUrl:q().optional(),...d3},u3={...Wse,task:q().optional(),project:q().optional(),...Xx,skill:tv.skill,brand:tv.brand},am=_e(u3),pn=s$({component:()=>w.jsx(tse,{children:w.jsx(k_,{})})}),Kse=Me({getParentRoute:()=>pn,path:"/login",component:je(()=>Fe(()=>import("./login-Ba7PbDUP.js"),__vite__mapDeps([0,1,2,3,4,5]))),validateSearch:Gr(()=>_e({next:q().optional(),client_id:q().optional(),redirect_uri:q().optional(),response_type:q().optional(),state:q().optional(),scope:q().optional(),code_challenge:q().optional(),code_challenge_method:q().optional(),src:q().optional(),ref:q().optional()}))}),Yse=Me({getParentRoute:()=>pn,path:"/cli/auth-success",component:je(()=>Fe(()=>import("./cli-auth-success-DjOImTaI.js"),__vite__mapDeps([6,5])))}),Zse=Me({getParentRoute:()=>pn,path:"/reset-password",component:je(()=>Fe(()=>import("./reset-password-D0bAgN3-.js"),__vite__mapDeps([7,2]))),validateSearch:Gr(()=>_e({token:q().optional(),error:q().optional()}))}),Qse=Me({getParentRoute:()=>pn,path:"/auth/$pathname",component:je(()=>Fe(()=>import("./auth-catchall-BzbXV9-m.js"),[]))}),Jse=Me({getParentRoute:()=>pn,path:"/oauth/callback",component:je(()=>Fe(()=>import("./oauth-callback-CoY1dClF.js"),__vite__mapDeps([8,9,10])))}),Xse=Me({getParentRoute:()=>pn,path:"/oauth/callback/ai-provider",component:je(()=>Fe(()=>import("./oauth-callback-ai-provider-DRzdFuFq.js"),[]))}),nm=Me({getParentRoute:()=>pn,path:"/_admin",component:je(()=>Fe(()=>import("./layout-wln6hIY8.js"),__vite__mapDeps([11,12,13])))}),ele=Me({getParentRoute:()=>nm,path:"/",beforeLoad:()=>{throw Jo({to:"/_admin/users"})}}),tle=Me({getParentRoute:()=>nm,path:"/users",component:je(()=>Fe(()=>import("./users-BTZ7odtd.js"),__vite__mapDeps([14,15,16,17,18,19,20,21,22,23,24,25,26,27,28])))}),ole=Me({getParentRoute:()=>nm,path:"/orgs",component:je(()=>Fe(()=>import("./orgs-DNf-zQVQ.js"),__vite__mapDeps([29,15,16,17,18,19,20,2,30,24,31,32,33,34,35,36,37,38,23,39,40,25,26,27])))}),ale=Me({getParentRoute:()=>nm,path:"/prompts",component:je(()=>Fe(()=>import("./prompts-CQ9lRosC.js"),__vite__mapDeps([41,18,2,30,38,25])))}),nle=nm.addChildren([ele,tle,ole,ale]),eC=Me({getParentRoute:()=>pn,id:"shell",component:je(()=>Fe(()=>import("./shell-layout-CTITeNJr.js").then(e=>e.e),__vite__mapDeps([42,21,22,43,44,45,46,47,17,48,49,50,51,52,35,36,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,67,32,68,31,69,70,71,10,72,73,74,75,76,77,78,79,2,30,80,81,82,4,83,39,84,85,86,34,87,88,89,24,90,3,12,91,92,93])))}),rle=Me({getParentRoute:()=>eC,path:"/",beforeLoad:async()=>{const e=gse();if(e)throw Jo({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Fl.lastOrgSlug());if(t)throw Jo({to:"/$org",params:{org:t}});const{data:o}=await QI();if(!o)return;const a=o[0];throw Jo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),ile=Me({getParentRoute:()=>pn,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await QI();if(e&&e.length>0)throw Jo({to:"/"})},component:je(()=>Fe(()=>import("./onboarding-ZdgIxalP.js"),__vite__mapDeps([94,12,5,95,21,22,64,2,30,37,43,52,57,66])))}),p3=Gr(()=>_e({org:q().optional(),siteUrl:q().optional(),fix:q().optional()})),sle=Me({getParentRoute:()=>pn,path:"/reports-onboarding",component:je(()=>Fe(()=>import("./reports-onboarding-Bhi9ZgPz.js"),__vite__mapDeps([96,97,1,2,3,4,5,95,21,22,64,98,99,100,30,101,71,10,102,77,49,45,46,47,17,48,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,20,65,66,67,32,31,86,34,103,104,105,24,106,107,108,9,109,110,111,112,113]))),validateSearch:p3}),lle=Me({getParentRoute:()=>pn,path:"/commerce-onboarding",validateSearch:p3,beforeLoad:({search:e})=>{throw Jo({to:"/reports-onboarding",search:e})}}),cle=Me({getParentRoute:()=>pn,path:"/choose-editor",component:je(()=>Fe(()=>import("./choose-editor-db_FowHS.js"),__vite__mapDeps([114,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,12]))),validateSearch:Gr(()=>_e({site:q().optional(),domain:q().optional(),pageId:q().optional(),path:q().optional(),pathTemplate:q().optional()}))}),dle=Me({getParentRoute:()=>pn,path:"/report/$domain",component:je(()=>Fe(()=>import("./reports-D1mTKUWD.js"),__vite__mapDeps([115,109,4,1,2,3,116])))}),Wv=Me({getParentRoute:()=>eC,path:"/$org",beforeLoad:({params:e})=>{hse({org:e.org})},component:je(()=>Fe(()=>import("./route-CAFnuBNg.js"),__vite__mapDeps([117,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,121,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,98,99,100,124,125,126,127,128,129,130,131,13,132,33,38,133,134,135,136,137,138,28,26,27,139,140,141,142,143,144,145,146,37,147])))}),Kv=Me({getParentRoute:()=>Wv,id:"org-shell",pendingComponent:Md,component:je(()=>Fe(()=>import("./thread-route-ZX2rkhqS.js"),__vite__mapDeps([148,149,72,73,69,70,71,10,91,82,4,83,39,84,3,127,136,150,90,97,31,32,151,103,104,105,49,101,102,77,45,46,47,17,48,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,86,34,100,30,2,24,106,107,108,9,109,110,111,152,112])))}),ule=_e({sidepanel:bL,mainpanel:yL,main:ro([q(),Ze(0)]).optional(),thread:q().optional(),autosend:q().optional(),preview:q().optional(),virtualmcpid:q().optional()}),Mn=Me({getParentRoute:()=>Kv,id:"agent-shell",validateSearch:ule,search:{middlewares:[DU(["sidepanel"])]},pendingComponent:Md,component:je(()=>Fe(()=>import("./route-CHYkbxgn.js"),__vite__mapDeps([153,46,45,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,118,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,121,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,154,149,127,136,150,155,131,156,157,100,158,159,160,161,162,33,163,164,165,26,27,166,135,167,168,169,170,145,171,130,172,173,174,175,147,176,133,177,137,178,110,104,111,179,180,38,181,182,108,9,183,23,184,185,126,186,187,188,189,190,191,192,193,194,195,196,197,198,199,18,200,201,146,99,202,203,204,142,205,206,143,207,208,209,210,211,212,213,214])))}),ple=am.extend({virtualmcpid:q().optional()}),mle=Me({getParentRoute:()=>Mn,path:"/$taskId",validateSearch:ple,component:()=>null}),io=je(()=>Fe(()=>import("./index-BgnBPJ_k.js").then(e=>e.i),__vite__mapDeps([200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146])),"ChatLayoutPending"),to=je(()=>Fe(()=>import("./index-BgnBPJ_k.js").then(e=>e.i),__vite__mapDeps([200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146])),"ChatLayoutError"),hle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:_e({connect:Tv().optional(),siteUrl:q().optional(),view:Eo(["agents"]).optional()}),component:je(()=>Fe(()=>import("./home-twE7M1iU.js"),__vite__mapDeps([215,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,125,126,127,128,124,129,216,217,218,219,220,160,157,155,100,158,159,161,162,149,136,150,33,163,164,165,26,27,166,135,167,168,169,170,145,171,130,131,172,173,174,156,175,147,176,133,177,137,178,110,104,111,179,180,38,181,182,108,9,183,23,184,185,186,221,151,103,105,222,28,223,140,224,18])))}),gle=Me({getParentRoute:()=>Mn,path:"/projects",staticData:{pageTitle:"projects.settings.title",defaultMain:"board"},validateSearch:am.extend({files:Dw().optional().catch(void 0)}),component:je(()=>Fe(()=>import("./flat-project-U_elHLQG.js"),__vite__mapDeps([225,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,226,86,34,200,121,118,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,224,227,128,228,229,230,130,157,155,100,158,159,174,231,23,37,38,175,28,232,125,126,127,176,133,26,27,233,129,234,235,188,164,165,150,236,237,199,181,105,238,185,187,163,149,136,189,190,191,192,168,156,193,194,184,202,169,161,239,240,99,241,213,208,209,210,211,212,242,243,16]))),beforeLoad:({params:e,search:t})=>{if(t.project?.trim())return;const o=t.virtualmcpid?.trim();throw Jo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0}:{to:"/$org/home",params:{org:e.org},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0})}}),Mo=Me({errorComponent:to,getParentRoute:()=>Mn,path:"/projects/$agentId",validateSearch:am,component:k_}),fle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:je(()=>Fe(()=>import("./agent-overview-CmHeFyml.js"),__vite__mapDeps([244,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,221,151,103,104,105,222,125,126,127,128,129,28,176,133,26,27,245,227,228,229,230,130,157,155,100,158,159,174,231,23,37,38,175,232,233,234,235,188,164,165,150,236,237,199,181,238,185,187,163,149,136,189,190,191,192,168,156,193,194,184,202,169,161,239,246,177,137,247])))}),vle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:q().optional(),...Xx}),beforeLoad:({params:e,search:t})=>{const o=c3(e.taskKey,t);if(o)throw Jo({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:o?.taskKey??e.taskKey},search:o.search,hash:!0,replace:!0})},component:je(()=>Fe(()=>import("./project-tasks-n0fjaerW.js"),__vite__mapDeps([245,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,227,128,228,229,230,130,157,155,100,158,159,174,231,23,37,38,175,28,232,125,126,127,176,133,26,27,233,129,234,235,188,164,165,150,236,237,199,181,105,238,185,187,163,149,136,189,190,191,192,168,156,193,194,184,202,169,161,239,246,177,137,247])))}),ble=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:Tv().optional(),siteUrl:q().optional()}),component:je(()=>Fe(()=>import("./project-reports-DqdW9cvU.js"),__vite__mapDeps([248,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,249,97,151,103,104,105,222,112,113,224,140])))}),Yv=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:_e({autosend:q().optional(),...d3}),component:je(()=>Fe(()=>import("./agent-site-editor-Cn5duNcn.js"),__vite__mapDeps([250,239,149,72,73,69,70,71,10,91,82,4,83,39,84,3,127,136,150,90,42,21,22,43,44,45,46,47,17,48,49,50,51,52,35,36,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,67,32,68,31,74,75,76,77,78,79,2,30,80,81,85,86,34,87,88,89,24,12,92,93,123,130,99,166,195,196,176,133,251,206,162,252,197,198,199,253,254,154,155,131,121,156,157,100,158,159,160,161,33,163,164,165,26,27,135,167,168,169,170,145,171,172,173,174,175,147,177,137,178,110,104,111,179,180,38,181,182,108,9,183,23,184,185,126,119,120,40,186,187,188,189,190,191,192,122,193,194,255,211,212,256,200,118,201,146,257])))}),yle=Me({getParentRoute:()=>Yv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:je(()=>Fe(()=>import("./agent-site-editor-preview-CYb_d7vH.js"),__vite__mapDeps([258,259,203,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,181,204,191,158,154,149,91,3,127,136,150,155,86,34,31,131,89,121,156,157,100,30,2,159,160,42,21,68,74,75,76,77,78,79,80,81,85,87,88,24,12,92,93,161,162,33,163,164,165,26,27,166,135,167,168,169,170,145,171,130,172,173,174,175,147,176,133,177,137,178,110,104,111,179,180,38,182,108,9,183,23,184,185,126,186,187,188,189,190,192,122,193,194,197,198,199,142,205,206,246,251,123,260,211,138,261,212,234,262,228,128,37,230,99,19,263,255,264,254,253,252,107,214,18,201])))}),Sle=Me({getParentRoute:()=>Yv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:je(()=>Fe(()=>import("./agent-site-editor-content-CbT525Tv.js").then(e=>e.ag),__vite__mapDeps([265,259,203,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,181,204,191,158,154,149,91,3,127,136,150,155,86,34,31,131,89,121,156,157,100,30,2,159,160,42,21,68,74,75,76,77,78,79,80,81,85,87,88,24,12,92,93,161,162,33,163,164,165,26,27,166,135,167,168,169,170,145,171,130,172,173,174,175,147,176,133,177,137,178,110,104,111,179,180,38,182,108,9,183,23,184,185,126,186,187,188,189,190,192,122,193,194,197,198,199,142,205,206,246,99,138,260,251,211,261,212,234,262,228,128,37,230,19,263,255,266,267,18])))}),wle=Me({getParentRoute:()=>Yv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:_e({file:q().optional()}),component:je(()=>Fe(()=>import("./agent-site-editor-code-CIrGs6m3.js"),__vite__mapDeps([268,259,203,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,181,204,191,158,154,149,91,3,127,136,150,155,86,34,31,131,89,121,156,157,100,30,2,159,160,42,21,68,74,75,76,77,78,79,80,81,85,87,88,24,12,92,93,161,162,33,163,164,165,26,27,166,135,167,168,169,170,145,171,130,172,173,174,175,147,176,133,177,137,178,110,104,111,179,180,38,182,108,9,183,23,184,185,126,186,187,188,189,190,192,122,193,194,197,198,199,142,205,206,246,18])))}),Tle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw Jo({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:je(()=>Fe(()=>import("./agent-automations-DqhEODAb.js"),__vite__mapDeps([269,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,19,18,220,270,99])))}),_le=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:_e({automationView:Eo(["settings","runs"]).optional()}),component:je(()=>Fe(()=>import("./agent-automation-C8klKvKY.js"),__vite__mapDeps([271,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,23,145,37,130,155,181,204,272,131,149,127,136,150,170,33,171,172,273,220,188,274,173,174,157,100,158,159,156,175,166,261,212,99,275,16,18,184,176,133,202,238,185,187,26,27,164,163,165,189,190,191,192,168,193,194,183])))}),xle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:je(()=>Fe(()=>import("./agent-settings-C7f7_N2z.js"),__vite__mapDeps([276,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,277,110,104,111,149,127,136,150,273,18,278,27,181,9,99,38,274,178,179,180,131,100,33,182,108,183,23,184,185,194,175,145,19,279,191,204,156,158,37,130,138,141,206,198,280,281,192,196])))}),Cle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:_e(tv),component:je(()=>Fe(()=>import("./agent-library-Dlz_4LiQ.js"),__vite__mapDeps([282,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,240,232,99,150,175,241,38,165,159,213,130,208,209,210,211,212,194,242,243,26,27,16])))}),kle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:je(()=>Fe(()=>import("./agent-assets-BFqhddLD.js"),__vite__mapDeps([283,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,259,203,181,204,191,158,154,149,127,136,150,155,131,156,157,100,159,160,161,162,33,163,164,165,26,27,166,135,167,168,169,170,145,171,130,172,173,174,175,147,176,133,177,137,178,110,104,111,179,180,38,182,108,9,183,23,184,185,126,186,187,188,189,190,192,193,194,197,198,199,142,205,206,99,19,263])))}),Ele=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:je(()=>Fe(()=>import("./agent-hosting-kfFKqM9r.js"),__vite__mapDeps([284,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,23,267,99,16,188,33,277,110,104,111,149,127,136,150,273,18,278,27,181,9,38,274,178,179,180,131,100,182,108,183,184,185,194,175,145,19,279,191,204,156,158,37,130,138,141,206,198,280,281,192,196])))}),Ple=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:je(()=>Fe(()=>import("./agent-e2e-DzJ9sAzc.js"),__vite__mapDeps([285,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,23,99,33,16,267,188,166,277,110,104,111,149,127,136,150,273,18,278,27,181,9,38,274,178,179,180,131,100,182,108,183,184,185,194,175,145,19,279,191,204,156,158,37,130,138,141,206,198,280,281,192,196])))}),Ale=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},component:je(()=>Fe(()=>import("./agent-analytics-DqtV4MPf.js"),__vite__mapDeps([286,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,23,145,16,216,217,218,99,267,219,287,277,110,104,111,149,127,136,150,273,18,278,27,181,9,38,274,178,179,180,131,100,33,182,108,183,184,185,194,175,19,279,191,204,156,158,37,130,138,141,206,198,280,281,192,196])))}),Rle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},component:je(()=>Fe(()=>import("./agent-experiments-VcqTmtZL.js"),__vite__mapDeps([288,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,23,16,33,267,277,110,104,111,149,127,136,150,273,18,278,27,181,9,99,38,274,178,179,180,131,100,182,108,183,184,185,194,175,145,19,279,191,204,156,158,37,130,138,141,206,198,280,281,192,196])))}),Dle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:je(()=>Fe(()=>import("./agent-monitor-Cmsy40BX.js"),__vite__mapDeps([289,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,216,217,218,267,130,219,287,290,291,292,277,110,104,111,149,127,136,150,273,18,278,27,181,9,99,38,274,178,179,180,131,100,33,182,108,183,23,184,185,194,175,145,19,279,191,204,156,158,37,138,141,206,198,280,281,192,196,246,177,137])))}),Ole=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/apps/$connectionId/$toolName",staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:je(()=>Fe(()=>import("./agent-app-CwRJsLag.js"),__vite__mapDeps([293,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,205,294,155,168,204,197,162,149,127,136,150,198,199,189,190,191,129,128,97,102,103,104,105,100,106,107,108,9,109,110,111])))}),Mle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/views/$viewId",staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:je(()=>Fe(()=>import("./agent-view-Be5hcLqc.js"),__vite__mapDeps([295,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,294,155,168,204,197,162,149,127,136,150,198,199,189,190,191,129,128,97,102,103,104,105,100,106,107,108,9,109,110,111,277,273,18,278,27,181,99,38,274,178,179,180,131,33,182,183,23,184,185,194,175,145,19,279,156,158,37,130,138,141,206,280,281,192,196])))}),Nle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:_e({key:q().optional()}),component:je(()=>Fe(()=>import("./agent-file-DI2wK--r.js"),__vite__mapDeps([296,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,194,210,175,211,212,165,150,159,193,149,127,136,277,110,104,111,273,18,278,27,181,9,99,38,274,178,179,180,131,100,33,182,108,183,23,184,185,145,19,279,191,204,156,158,37,130,138,141,206,198,280,281,192,196])))}),Ile=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:_e({path:q().optional()}),component:je(()=>Fe(()=>import("./agent-deck-DGV-pK2t.js"),__vite__mapDeps([297,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,213,175,130,277,110,104,111,149,127,136,150,273,18,278,27,181,9,99,38,274,178,179,180,131,100,33,182,108,183,23,184,185,194,145,19,279,191,204,156,158,37,138,141,206,198,280,281,192,196])))}),Lle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:_e({path:q().optional()}),component:je(()=>Fe(()=>import("./agent-library-file-DPfP5s66.js"),__vite__mapDeps([298,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,209,210,175,211,212,194,165,150,159,213,130,277,110,104,111,149,127,136,273,18,278,27,181,9,99,38,274,178,179,180,131,100,33,182,108,183,23,184,185,145,19,279,191,204,156,158,37,138,141,206,198,280,281,192,196])))}),Ble=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:je(()=>Fe(()=>import("./agent-connect-sources-C86EyOB5.js"),__vite__mapDeps([299,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,101,97,102,103,104,105,100,106,107,108,9,109,110,111,152,112])))}),Fle=Me({getParentRoute:()=>Mo,path:"/$legacyView",component:()=>null}),jle=Me({getParentRoute:()=>Mn,path:"/agents",validateSearch:am,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Jo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:a=>a,hash:!0,replace:!0})}}),zle=Me({getParentRoute:()=>Mn,path:"/agents/$",validateSearch:am,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!l3(o))return;const a=Fse(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw Jo({href:`${a}${t.searchStr}${n}`,replace:!0})},component:je(()=>Fe(()=>import("./legacy-agents-deep-CawwPAe9.js"),__vite__mapDeps([300,207,73])))}),Ule=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:q().optional(),...Xx}),beforeLoad:({params:e,search:t})=>{const o=c3(e.taskKey,t);if(o)throw Jo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:je(()=>Fe(()=>import("./tasks-COTcKNjz.js"),__vite__mapDeps([301,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,227,128,228,229,230,130,157,155,100,158,159,174,231,23,37,38,175,28,232,125,126,127,176,133,26,27,233,129,234,235,188,164,165,150,236,237,199,181,105,238,185,187,163,149,136,189,190,191,192,168,156,193,194,184,202,169,161,239,246,177,137,247])))}),$le=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:je(()=>Fe(()=>import("./taskboard-analytics-CkC7VEhH.js"),__vite__mapDeps([302,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,303,216,217,218,16,290,291,292,287,229,230,130,33,166])))}),qle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:je(()=>Fe(()=>import("./thread-analytics-xc71V_Jy.js"),__vite__mapDeps([304,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,303,216,217,218,16,290,291,292,287,139,23,230,130,33,166,238,185,187,26,27,188,164,163,165,150,159,127,149,136,189,190,191,192,155,168,158,181,156,157,100,193,194,184,202])))}),Vle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:Tv().optional(),siteUrl:q().optional()}),component:je(()=>Fe(()=>import("./reports-eg7qCRZt.js"),__vite__mapDeps([305,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,249,97,151,103,104,105,222,112,113,224,140])))}),Hle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:_e(tv),component:je(()=>Fe(()=>import("./library-DvaCz1Wk.js"),__vite__mapDeps([306,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,240,232,99,150,175,241,38,165,159,213,130,208,209,210,211,212,194,242,243,26,27,16])))}),Gle=Me({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:je(()=>Fe(()=>import("./discover-DTxiggmr.js"),__vite__mapDeps([307,200,121,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146,181,176,133,206])))}),Wle=Me({getParentRoute:()=>Wv,path:"/members",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/members",params:{org:e.org}})}}),Kle=_e({main:ro([q(),Ze(0)]).optional(),virtualmcpid:q().optional(),...u3,sidepanel:bL,mainpanel:yL,thread:q().optional()}),Yle=Me({getParentRoute:()=>Kv,path:"/",validateSearch:Kle,pendingComponent:Md,component:je(()=>Fe(()=>import("./index-DH9SXre1.js"),__vite__mapDeps([308,207,73])))}),Zle=Me({getParentRoute:()=>Kv,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw Jo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),so=Me({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Wv,path:"/settings",pendingComponent:Md,component:je(()=>Fe(()=>import("./route-BqiT-Ol6.js"),__vite__mapDeps([309,121,200,118,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,119,120,90,39,83,40,73,72,69,70,71,10,82,4,84,122,86,34,123,42,21,68,31,74,75,76,77,78,79,2,30,80,81,85,87,88,89,24,3,12,91,92,93,201,146])))}),Qle=Me({getParentRoute:()=>so,path:"/",component:je(()=>Fe(()=>import("./index-redirect-BVO0FWKk.js"),__vite__mapDeps([310,311])))}),Jle=Me({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>so,path:"/connections",component:je(()=>Fe(()=>import("./connections-CNadoE5b.js"),__vite__mapDeps([312,110,104,111,313,17,35,58,86,34,226,23,19,20,183,179,87,88,180,84,77,49,45,46,47,48,50,51,43,52,36,44,53,54,55,56,57,59,60,61,62,63,64,65,66,22,67,32,18,314,99,184,121,31,131,100,30,2,33,38,181,71,10,70,191,69,182,108,9,145]))),validateSearch:Gr(()=>_e({action:Eo(["create"]).optional(),tab:Eo(["all","connected"]).optional()}))}),Xle=Me({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>so,path:"/connections/$appSlug",component:je(()=>Fe(()=>import("./connection-detail-QHFcVXMr.js"),__vite__mapDeps([315,110,104,111,18,182,2,64,65,316,71,10,204,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,20,66,22,67,32,181,33,34,217,317,76,130,86,70,121,318,81,82,4,83,39,84,279,23,191,9,176,133,21,156,77,122,100,30,314,99,319,216,218,287,219,291,292,166,180,190,89]))),validateSearch:Gr(()=>_e({tab:q().optional()}))}),ece=Me({staticData:{pageTitle:"page.item"},getParentRoute:()=>so,path:"/connections/$appSlug/$collectionName/$itemId",component:je(()=>Fe(()=>import("./collection-detail-DP9fd0Dw.js"),__vite__mapDeps([320,18,71,10,100,30,2,38,316,204,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,181,110,104,111,33,34,217,317,76,130,86,70,121,318,81,82,4,83,39,84,190,191,235,180,279,23,9,189,77,149,72,73,69,91,3,127,136,150,90,42,21,68,31,74,75,78,79,80,85,87,88,89,24,12,92,93,261,212,267]))),validateSearch:Gr(()=>_e({replayId:q().optional()}))}),tce=Me({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>so,path:"/monitor",component:je(()=>Fe(()=>import("./index-XEhCSGBE.js"),__vite__mapDeps([321,19,20,18,322,323,311,187,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,65,66,22,67,32,26,27,188,164,163,165,31,150,159,121,72,73,69,70,71,10,86,34,127,82,4,83,39,84,149,91,3,136,90,74,189,190,191,192,155,168,158,42,21,68,75,76,77,78,79,2,30,80,81,85,87,88,89,24,12,92,93,122,181,156,157,100,193,194,180,23,130,261,212,176,133,324,145,33,138,234,38,183,37,235,319,216,217,218,287,219,291,292,238,185,184,202,16,275,220]))),validateSearch:Gr(()=>_e({tab:Eo(["overview","audit","dashboards","threads","automations"]).default("threads"),from:q().default("now-24h"),to:q().default("now"),connectionId:Be(q()).optional().default([]),virtualMcpId:Be(q()).optional().default([]),tool:q().default(""),status:Eo(["all","success","errors"]).default("all"),search:q().default(""),page:Mt().optional(),streaming:Ut().default(!0),propertyFilters:q().default(""),hideSystem:Ut().default(!1)}))}),oce=Me({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>so,path:"/general",component:je(()=>Fe(()=>import("./general-BtREXR3p.js"),__vite__mapDeps([325,133,274,21,22,2,326,37,44,90,39,83,262,181,71,10,327,23,33,34,35,36,99,311])))}),ace=Me({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>so,path:"/connect",pendingComponent:Li("connect"),component:je(()=>Fe(()=>import("./connect-D_b6-CyS.js"),__vite__mapDeps([328,235,33,34,35,36,166,164,53,59,60,223,329,46,64,65,99,31,32,2,30,71,10,322,323,311])))}),nce=Me({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/ai-providers",pendingComponent:Li("billing"),component:je(()=>Fe(()=>import("./ai-providers-CRe_x6a5.js"),__vite__mapDeps([330,46,136,52,90,39,83,272,31,32,131,121,149,72,73,69,70,71,10,91,82,4,84,3,127,150,170,145,35,2,33,34,36,48,47,59,20,171,62,21,22,56,68,53,172,274,167,99,169,137,64,65,278,27,322,323,311])))}),rce=Me({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/billing",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),ice=Me({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>so,path:"/infra-billing",pendingComponent:Li("billing"),component:je(()=>Fe(()=>import("./infra-billing-D_L2KNiI.js"),__vite__mapDeps([331,54,61,23,324,145,35,36,75,76,31,32,20,130,33,34,16,218,217,287,292,219,322,323,311])))}),sce=Me({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>so,path:"/secrets",component:je(()=>Fe(()=>import("./secrets-Bx2QImFq.js"),__vite__mapDeps([332,46,64,22,67,31,32,2,30,33,34,35,36,38,281,322,323,311])))}),lce=Me({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>so,path:"/api-keys",pendingComponent:Li("connect"),component:je(()=>Fe(()=>import("./api-keys-Dwm2bo1Y.js"),__vite__mapDeps([333,329,46,53,59,64,65,99,31,32,2,30,71,10,322,323,311])))}),cce=Me({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>so,path:"/buckets",pendingComponent:Li("storage"),component:je(()=>Fe(()=>import("./buckets-CSwPt34t.js"),__vite__mapDeps([334,46,64,65,99,31,32,2,30,33,34,35,36,37,38,120,322,323,311])))}),dce=Me({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>so,path:"/repositories",validateSearch:_e({git_error:q().optional().catch(void 0),git_flow:q().uuid().optional().catch(void 0),git_installation:Mt().int().positive().safe().optional().catch(void 0),git_return:Ut().optional().catch(void 0)}),pendingComponent:Li("repositories"),component:je(()=>Fe(()=>import("./repositories-BYsSTJU-.js"),__vite__mapDeps([335,85,48,61,64,86,34,31,32,2,30,87,88,89,20,50,21,22,24,90,39,83,49,145,35,67,99,23,235,146,33,36,38,65,280,281,322,323,311])))}),uce=Me({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>so,path:"/synced-repos",pendingComponent:Li("storage"),component:je(()=>Fe(()=>import("./synced-repos-DMWgs820.js"),__vite__mapDeps([336,64,99,31,32,2,85,48,61,86,34,30,87,88,89,20,50,21,22,24,90,39,83,241,26,27,322,323,311])))}),pce=Me({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>so,path:"/task-board",component:je(()=>Fe(()=>import("./tasks-D-EA-uwO.js"),__vite__mapDeps([337,145,35,2,38,47,63,64,65,230,75,76,31,32,20,130,324,23,36,33,34,37,173,174,157,155,100,30,158,159,121,72,73,69,70,71,10,86,45,46,17,48,49,50,51,43,52,44,53,54,55,56,57,58,59,60,61,62,66,22,67,149,91,82,4,83,39,84,3,127,136,150,90,170,171,21,68,156,175,243,99,326,262,181,231,146,122,322,323,311])))}),mce=Me({getParentRoute:()=>so,path:"/tasks",beforeLoad:({params:e})=>{throw Jo({to:"/$org/settings/task-board",params:{org:e.org}})}}),hce=Me({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>so,path:"/projects",component:je(()=>Fe(()=>import("./projects-C5p0nBlq.js"),__vite__mapDeps([338,45,46,47,17,48,49,50,51,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,64,20,65,66,22,67,32,23,19,79,31,2,30,80,71,10,81,70,82,4,83,39,84,85,86,34,87,88,89,21,24,90,224,278,27,151,103,104,105,140,69,181])))}),gce=Me({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>so,path:"/members",pendingComponent:Li("members"),component:je(()=>Fe(()=>import("./members-BpY2Uunx.js"),__vite__mapDeps([339,313,17,35,58,86,34,226,23,19,20,15,16,18,132,31,32,100,30,33,36,38,133,134,21,22,26,27,28,176,340,99,55,59,65,145,75,76,130,64,233,322,323,311])))}),fce=Me({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>so,path:"/roles",pendingComponent:Li("members"),component:je(()=>Fe(()=>import("./roles-BeG_4GHR.js"),__vite__mapDeps([341,134,133,340,23,99,55,64,65,15,16,17,18,19,20,171,77,49,45,46,47,48,50,51,43,52,35,36,44,53,54,56,57,58,59,60,61,62,63,66,22,67,32,184,145,185,88,71,10,89,111,176,28,181,70,136,21,37,86,34,78,69,323,311]))),validateSearch:Gr(()=>_e({role:q().optional()}))}),vce=Me({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>so,path:"/sso",component:je(()=>Fe(()=>import("./sso-Jw8gC2hK.js"),__vite__mapDeps([342,327,23,2,33,34,35,36,99,37,92,65,322,323,311])))}),bce=Me({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>so,path:"/profile",component:je(()=>Fe(()=>import("./profile-C4Rt4NnT.js"),__vite__mapDeps([343,21,22,31,32,317,33,34,35,36,65,66,37,167,2,62,63,274,147])))}),yce=Me({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>so,path:"/agents",component:je(()=>Fe(()=>import("./agents-list-y-TIBGAq.js"),__vite__mapDeps([344,70,71,10,55,47,65,45,46,17,48,49,50,51,43,52,35,36,44,53,54,56,57,58,59,60,61,62,63,64,20,66,22,67,32,278,27,81,82,4,83,39,84,90,18,318,181,108,9,110,104,111,85,86,34,31,2,30,87,88,89,21,24,105,106,99,19,80])))}),Sce=Me({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>so,path:"/automations",component:je(()=>Fe(()=>import("./automations-9sMoXMlz.js"),__vite__mapDeps([345,64,51,19,20,18,220,71,10,81,70,82,4,83,39,84,270,99,45,46,47,17,48,49,50,43,52,35,36,44,53,54,55,56,57,58,59,60,61,62,63,65,66,22,67,32,322,323,311])))}),wce=Me({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>so,path:"/skills",component:je(()=>Fe(()=>import("./skills-BsLVR3Vn.js"),__vite__mapDeps([346,55,51,65,66,19,20,99,18,183,23,242,31,32,165,35,53,56,150,159,121,72,73,69,70,71,10,210,175,211,212,194,243])))}),Tce=Me({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>so,path:"/memory",component:je(()=>Fe(()=>import("./memory-BOfe9xo8.js"),__vite__mapDeps([347,43,22,235,86,34,183,23,18,74,175]))),validateSearch:Gr(()=>_e({scope:Eo(["user"]).optional()}))}),_ce=so.addChildren([Qle,Jle,Xle,ece,yce,Sce,wce,Tce,tce,oce,ace,nce,rce,ice,sce,lce,cce,dce,uce,pce,mce,hce,gce,fce,vce,bce]),xce=Yv.addChildren([yle,Sle,wle]),Cce=Mo.addChildren([fle,vle,ble,xce,Tle,_le,xle,Cle,kle,Ele,Ple,Ale,Rle,Dle,Ole,Mle,Nle,Ile,Lle,Ble,Fle]),kce=Mn.addChildren([mle,hle,gle,Cce,jle,zle,Ule,$le,qle,Vle,Hle,Gle]),Ece=Kv.addChildren([Yle,Zle,kce]),Pce=Wv.addChildren([Ece,Wle,_ce]),Ace=eC.addChildren([rle,Pce]),Rce=pn.addChildren([Ace,nle,ile,sle,lle,cle,dle,Kse,Yse,Zse,Qse,Jse,Xse]);function Dce(){const e=Le.c(16),t=kr();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==o?(a=w.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=a):a=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let i;e[6]!==n?(i=w.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=w.jsx("button",{type:"button",onClick:Oce,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let u;return e[12]!==a||e[13]!==i||e[14]!==c?(u=w.jsx("div",{className:"flex h-full items-center justify-center",children:w.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,i,c]})}),e[12]=a,e[13]=i,e[14]=c,e[15]=u):u=e[15],u}function Oce(){return window.history.back()}const Zv=b$({routeTree:Rce,defaultPendingComponent:Md,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:Dce});function Ee(...e){return vL(sx(e))}function Mce(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function $o({error:e,localization:t,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return e?.message?e.message:(a=e?.error)!=null&&a.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const i=e.error.code;if(t?.[i])return t[i]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function $l(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function QT(e,t){for(const o in e)if(e[o]===t)return o}function Ip(e,t){let o=q().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var Nce={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},Ice={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Lce={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Bce={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Fce={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},jce={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},zce={...Fce,...jce},Uce={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},$ce={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},qce={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Vce={INVALID_SESSION_TOKEN:"Invalid session token"},Hce={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Gce={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},Wce={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},Kce={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Yce={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},Zce={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},Qce={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},Jce={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Bce,...Nce,...Ice,...Lce,...zce,...Uce,...$ce,...qce,...Vce,...Hce,...Gce,...Wce,...Kce,...Yce,...Zce,...Qce},Xce={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},WO={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},KO={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const m3=A.createContext({});function h3(){return A.useContext(m3)}var L0,YO;function ede(){if(YO)return L0;YO=1;var e=function(){};return L0=e,L0}var tde=ede();const ode=Nl(tde);function ade({async:e,appendTo:t,defer:o,id:a,nonce:n,src:i}){const l=document.createElement("script");e!==void 0&&(l.async=e),o!==void 0&&(l.defer=o),a&&(l.id=a),n&&l.setAttribute("nonce",n),l.src=i,(t==="head"?document.head:document.body).appendChild(l)}var nde=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o};let hp=null,Lp=!1;const ov=new Set,av=new Set,rde=typeof window<"u",ud="___grecaptcha_cfg",g3=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function ide(){if(!rde)return;function e(o){if(Lp)o();else{window[ud]||(window[ud]={});const a=window[ud];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){Lp=!0;for(const o of av)o();av.clear()}window[g3]=t}function sde({language:e,onLoadCallbackName:t,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const i=n?"recaptcha.net":"google.com",l=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${i}/recaptcha/${l}?${c.toString()}`}function lde({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const i={id:"google-recaptcha-v3"},l=sde({language:e,onLoadCallbackName:g3,render:t,useEnterprise:a,useRecaptchaNet:n});if(hp){if(hp!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}hp=l,ade(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function cde(e){if(!window[ud])return;const t=window[ud];t.clients&&delete t.clients[e]}function dde(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=nde(t,["onLoadCallback","onLoadCallbackName"]);if(ov.size===0&&ide(),lde(n),ov.add(e),o&&(Lp?o():av.add(o)),a){let i=function(){if(!a)return;const l=window[a];typeof l=="function"&&l()};Lp?i():av.add(i)}}function ude(e){var t,o,a;ov.delete(e),ov.size===0&&(window.grecaptcha=void 0,window[ud]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${hp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),hp=null,Lp=!1)}let ZO=!1;function pde({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:i,useRecaptchaNet:l}){var c,u,p,h,m,f,v;const b=A.useId(),[S,x]=A.useState(null),[T,_]=A.useState(null),P=A.useRef(!1);A.useEffect(()=>{function D(){var O;const L=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{x(L)})}return dde(b,{language:o,onLoadCallback:D,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:i,useRecaptchaNet:l}),()=>{ude(b),x(null)}},[e?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,i,l]),A.useEffect(()=>{var D,O,L;if(!e?.element||!S?.render)return;const $={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((D=e.parameters)===null||D===void 0?void 0:D.badge)||"inline",callback:e.parameters.callback,sitekey:a,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const U=S.render(B,$);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(ZO||(ode(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),ZO=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),_(U),P.current=!0,()=>{_(null),P.current=!1,cde(U),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(u=e?.parameters)===null||u===void 0?void 0:u.hidden,(p=e?.parameters)===null||p===void 0?void 0:p.callback,(h=e?.parameters)===null||h===void 0?void 0:h.errorCallback,(m=e?.parameters)===null||m===void 0?void 0:m.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const k=!!e?.element,E=k?T:a,R=A.useMemo(()=>E!==null&&S?.execute?D=>{if(E===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return k&&!P.current?(console.warn("Client ID not mounted"),null):S.execute(E,{action:D})}:void 0,[E,S,k]);return w.jsx(m3.Provider,{value:{container:e?.element,executeRecaptcha:R,reCaptchaInstance:S},children:t})}var mde=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const a of o)a()}}},Gn=new mde;function hde(){return()=>{}}function Bi(){return A.useSyncExternalStore(hde,()=>!0,()=>!1)}function f3(){const[e,t]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");t(n??void 0)};o();const a=new MutationObserver(n=>{for(const i of n)i.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:e}}function tC(){const[e,t]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const i=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));t(i?"dark":"light")};o();const a=new MutationObserver(n=>{for(const i of n)(i.attributeName==="style"||i.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:e}}function gde({children:e}){const t=Bi(),{captcha:o}=A.useContext(yt);return o?.provider!=="google-recaptcha-v3"?e:w.jsxs(pde,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&w.jsx("style",{children:`
|
|
169
169
|
.grecaptcha-badge {
|
|
170
170
|
visibility: hidden;
|
|
171
171
|
border-radius: var(--radius) !important;
|
|
@@ -240,4 +240,4 @@ ${a}
|
|
|
240
240
|
${a}
|
|
241
241
|
}`)}if(o.length>0){const a=document.createElement("style");a.id="studio-theme-overrides",a.textContent=o.join(`
|
|
242
242
|
|
|
243
|
-
`),document.head.appendChild(a)}}function Fge(e){const t=Le.c(9),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:On.publicConfig(),queryFn:Lge,staleTime:ax},t[0]=a):a=t[0];const{data:n}=Ll(a),[i]=ix();let l,c;t[1]!==n.theme?(l=()=>{Bge(n.theme)},c=[n.theme],t[1]=n.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),A.useLayoutEffect(l,c);let u,p;t[4]!==i.theme?(u=()=>{const m=document.documentElement,f=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const T=getComputedStyle(m).getPropertyValue("--sidebar").trim();if(!T)return;const _=document.createElement("canvas").getContext("2d");if(!_)return;_.fillStyle="#010203";const P=_.fillStyle;_.fillStyle=T;const k=_.fillStyle;k!==P&&(x.content=k)};if(i.theme==="dark"){m.classList.add("dark"),f();return}if(i.theme==="light"){m.classList.remove("dark"),f();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),b=x=>{m.classList.toggle("dark",x),f()};b(v.matches);const S=x=>b(x.matches);return v.addEventListener("change",S),()=>v.removeEventListener("change",S)},p=[i.theme],t[4]=i.theme,t[5]=u,t[6]=p):(u=t[5],p=t[6]),A.useLayoutEffect(u,p);let h;return t[7]!==o?(h=w.jsx(w.Fragment,{children:o}),t[7]=o,t[8]=h):h=t[8],h}function Z2(e){const t=LI(e);if(!t)return;const o=t===II.aiBudgetExhausted?cv.budget||"This organization's AI allowance is used up.":cv.feature||"This organization's plan does not include that.";Vr.error(o,{id:`plan-refusal:${t}`})}const cv={feature:"",budget:""},dm=new X$({queryCache:new IM({onError:Z2}),mutationCache:new NM({onError:Z2}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(e,t)=>LI(t)===null&&e<1,gcTime:300*1e3}}});Die(dm);Oie(dm);xie(dm);Cie(dm);function jge({children:e}){const t=kr();return cv.feature=t("settings.paywall.serverRefusedFeature"),cv.budget=t("settings.paywall.serverRefusedBudget"),FW({itemCreatedSuccessfully:t("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:t("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:t("collections.mutations.itemDeletedSuccessfully"),createItemFailed:t("collections.mutations.createItemFailed"),updateItemFailed:t("collections.mutations.updateItemFailed"),deleteItemFailed:t("collections.mutations.deleteItemFailed")}),w.jsx(w.Fragment,{children:e})}function zge(e){const t=Le.c(4),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=w.jsx(BW,{}),t[0]=a):a=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=w.jsx(Ige,{}),t[1]=n):n=t[1];let i;return t[2]!==o?(i=w.jsxs(e8,{client:dm,children:[a,w.jsx(A.Suspense,{fallback:n,children:w.jsx(Fge,{children:w.jsx(pY,{children:w.jsx(yge,{children:w.jsx(Pge,{children:w.jsx(jge,{children:w.jsx(Mge,{children:o})})})})})})})]}),t[2]=o,t[3]=i):i=t[3],i}const Uge=[["mesh:","studio:"],["mesh-","studio-"]];function $ge(e){const t=Array.from({length:e.length},(o,a)=>e.key(a)).filter(o=>o!==null);for(const o of t){const a=Uge.find(([u])=>o.startsWith(u));if(!a)continue;const[n,i]=a,l=`${i}${o.slice(n.length)}`;if(e.getItem(l)!==null)continue;const c=e.getItem(o);c!==null&&e.setItem(l,c)}}$ge(window.localStorage);const qge=document.getElementById("root");Pz.createRoot(qge).render(w.jsx(A.StrictMode,{children:w.jsx(zge,{children:w.jsx(w$,{router:Zv})})}));export{bF as $,Xve as A,Al as B,wfe as C,Ll as D,Xie as E,Gae as F,Kae as G,Wae as H,Hae as I,rt as J,On as K,Il as L,Gge as M,Hge as N,k_ as O,nn as P,Qge as Q,Vfe as R,ebe as S,Ii as T,$Z as U,Fl as V,hfe as W,Kp as X,Yfe as Y,Mx as Z,Ls as _,Yp as a,Pa as a$,Ohe as a0,Iie as a1,ox as a2,yt as a3,Ive as a4,Lve as a5,Ot as a6,gF as a7,Wge as a8,Bve as a9,lF as aA,$ve as aB,Wve as aC,Kve as aD,Vve as aE,ove as aF,tve as aG,lx as aH,R_ as aI,fF as aJ,Mt as aK,Fe as aL,Md as aM,ave as aN,za as aO,HZ as aP,Zfe as aQ,zp as aR,hD as aS,FI as aT,Ude as aU,Tfe as aV,tY as aW,Nw as aX,Lw as aY,Iw as aZ,Ww as a_,Qx as aa,vF as ab,Qj as ac,Dve as ad,jve as ae,uY as af,pF as ag,ive as ah,sve as ai,rve as aj,Nx as ak,nve as al,Yj as am,dse as an,mF as ao,hF as ap,Rve as aq,Ave as ar,Yr as as,Kr as at,_e as au,q as av,wue as aw,Qfe as ax,Sfe as ay,MX as az,kr as b,ZI as b$,zw as b0,iY as b1,Nfe as b2,sH as b3,Mfe as b4,Bfe as b5,Ofe as b6,Lfe as b7,Ffe as b8,Ife as b9,cB as bA,PL as bB,xx as bC,mx as bD,px as bE,zl as bF,Cp as bG,Ete as bH,Pte as bI,VL as bJ,Ut as bK,Eo as bL,Be as bM,vo as bN,ko as bO,Wie as bP,gse as bQ,Nve as bR,uF as bS,Bse as bT,rx as bU,obe as bV,Tve as bW,wve as bX,Fve as bY,Ba as bZ,bve as b_,Bue as ba,Fue as bb,Lue as bc,ux as bd,Eue as be,vue as bf,Tue as bg,_ue as bh,yue as bi,bue as bj,Sue as bk,xue as bl,sa as bm,As as bn,Ao as bo,mt as bp,CL as bq,Qp as br,tB as bs,kte as bt,yr as bu,_x as bv,xL as bw,GL as bx,Xue as by,Sr as bz,Le as c,QG as c$,Gj as c0,yve as c1,Cfe as c2,P8 as c3,tI as c4,rI as c5,nI as c6,lI as c7,Cv as c8,xp as c9,HH as cA,AH as cB,DH as cC,NH as cD,aG as cE,mfe as cF,LG as cG,jG as cH,bG as cI,SG as cJ,yG as cK,ufe as cL,dfe as cM,t9 as cN,Jge as cO,Gr as cP,ro as cQ,R9 as cR,I9 as cS,xa as cT,Ze as cU,afe as cV,VN as cW,aH as cX,qve as cY,r3 as cZ,Hve as c_,dI as ca,uI as cb,mI as cc,lfe as cd,cfe as ce,ife as cf,sfe as cg,lH as ch,rfe as ci,iI as cj,cI as ck,pI as cl,pfe as cm,sI as cn,Nl as co,ZK as cp,Dfe as cq,yI as cr,iG as cs,XH as ct,IH as cu,wH as cv,nfe as cw,eI as cx,VG as cy,JH as cz,mv as d,
|
|
243
|
+
`),document.head.appendChild(a)}}function Fge(e){const t=Le.c(9),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:On.publicConfig(),queryFn:Lge,staleTime:ax},t[0]=a):a=t[0];const{data:n}=Ll(a),[i]=ix();let l,c;t[1]!==n.theme?(l=()=>{Bge(n.theme)},c=[n.theme],t[1]=n.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),A.useLayoutEffect(l,c);let u,p;t[4]!==i.theme?(u=()=>{const m=document.documentElement,f=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const T=getComputedStyle(m).getPropertyValue("--sidebar").trim();if(!T)return;const _=document.createElement("canvas").getContext("2d");if(!_)return;_.fillStyle="#010203";const P=_.fillStyle;_.fillStyle=T;const k=_.fillStyle;k!==P&&(x.content=k)};if(i.theme==="dark"){m.classList.add("dark"),f();return}if(i.theme==="light"){m.classList.remove("dark"),f();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),b=x=>{m.classList.toggle("dark",x),f()};b(v.matches);const S=x=>b(x.matches);return v.addEventListener("change",S),()=>v.removeEventListener("change",S)},p=[i.theme],t[4]=i.theme,t[5]=u,t[6]=p):(u=t[5],p=t[6]),A.useLayoutEffect(u,p);let h;return t[7]!==o?(h=w.jsx(w.Fragment,{children:o}),t[7]=o,t[8]=h):h=t[8],h}function Z2(e){const t=LI(e);if(!t)return;const o=t===II.aiBudgetExhausted?cv.budget||"This organization's AI allowance is used up.":cv.feature||"This organization's plan does not include that.";Vr.error(o,{id:`plan-refusal:${t}`})}const cv={feature:"",budget:""},dm=new X$({queryCache:new IM({onError:Z2}),mutationCache:new NM({onError:Z2}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(e,t)=>LI(t)===null&&e<1,gcTime:300*1e3}}});Die(dm);Oie(dm);xie(dm);Cie(dm);function jge({children:e}){const t=kr();return cv.feature=t("settings.paywall.serverRefusedFeature"),cv.budget=t("settings.paywall.serverRefusedBudget"),FW({itemCreatedSuccessfully:t("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:t("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:t("collections.mutations.itemDeletedSuccessfully"),createItemFailed:t("collections.mutations.createItemFailed"),updateItemFailed:t("collections.mutations.updateItemFailed"),deleteItemFailed:t("collections.mutations.deleteItemFailed")}),w.jsx(w.Fragment,{children:e})}function zge(e){const t=Le.c(4),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=w.jsx(BW,{}),t[0]=a):a=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=w.jsx(Ige,{}),t[1]=n):n=t[1];let i;return t[2]!==o?(i=w.jsxs(e8,{client:dm,children:[a,w.jsx(A.Suspense,{fallback:n,children:w.jsx(Fge,{children:w.jsx(pY,{children:w.jsx(yge,{children:w.jsx(Pge,{children:w.jsx(jge,{children:w.jsx(Mge,{children:o})})})})})})})]}),t[2]=o,t[3]=i):i=t[3],i}const Uge=[["mesh:","studio:"],["mesh-","studio-"]];function $ge(e){const t=Array.from({length:e.length},(o,a)=>e.key(a)).filter(o=>o!==null);for(const o of t){const a=Uge.find(([u])=>o.startsWith(u));if(!a)continue;const[n,i]=a,l=`${i}${o.slice(n.length)}`;if(e.getItem(l)!==null)continue;const c=e.getItem(o);c!==null&&e.setItem(l,c)}}$ge(window.localStorage);const qge=document.getElementById("root");Pz.createRoot(qge).render(w.jsx(A.StrictMode,{children:w.jsx(zge,{children:w.jsx(w$,{router:Zv})})}));export{bF as $,Xve as A,Al as B,wfe as C,Ll as D,Xie as E,Gae as F,Kae as G,Wae as H,Hae as I,rt as J,On as K,Il as L,Gge as M,Hge as N,k_ as O,nn as P,Qge as Q,Vfe as R,ebe as S,Ii as T,$Z as U,Fl as V,hfe as W,Kp as X,Yfe as Y,Mx as Z,Ls as _,Yp as a,Pa as a$,Ohe as a0,Iie as a1,ox as a2,yt as a3,Ive as a4,Lve as a5,Ot as a6,gF as a7,Wge as a8,Bve as a9,lF as aA,$ve as aB,Wve as aC,Kve as aD,Vve as aE,ove as aF,tve as aG,lx as aH,R_ as aI,fF as aJ,Mt as aK,Fe as aL,Md as aM,ave as aN,za as aO,HZ as aP,Zfe as aQ,zp as aR,hD as aS,FI as aT,Ude as aU,Tfe as aV,tY as aW,Nw as aX,Lw as aY,Iw as aZ,Ww as a_,Qx as aa,vF as ab,Qj as ac,Dve as ad,jve as ae,uY as af,pF as ag,ive as ah,sve as ai,rve as aj,Nx as ak,nve as al,Yj as am,dse as an,mF as ao,hF as ap,Rve as aq,Ave as ar,Yr as as,Kr as at,_e as au,q as av,wue as aw,Qfe as ax,Sfe as ay,MX as az,kr as b,ZI as b$,zw as b0,iY as b1,Nfe as b2,sH as b3,Mfe as b4,Bfe as b5,Ofe as b6,Lfe as b7,Ffe as b8,Ife as b9,cB as bA,PL as bB,xx as bC,mx as bD,px as bE,zl as bF,Cp as bG,Ete as bH,Pte as bI,VL as bJ,Ut as bK,Eo as bL,Be as bM,vo as bN,ko as bO,Wie as bP,gse as bQ,Nve as bR,uF as bS,Bse as bT,rx as bU,obe as bV,Tve as bW,wve as bX,Fve as bY,Ba as bZ,bve as b_,Bue as ba,Fue as bb,Lue as bc,ux as bd,Eue as be,vue as bf,Tue as bg,_ue as bh,yue as bi,bue as bj,Sue as bk,xue as bl,sa as bm,As as bn,Ao as bo,mt as bp,CL as bq,Qp as br,tB as bs,kte as bt,yr as bu,_x as bv,xL as bw,GL as bx,Xue as by,Sr as bz,Le as c,QG as c$,Gj as c0,yve as c1,Cfe as c2,P8 as c3,tI as c4,rI as c5,nI as c6,lI as c7,Cv as c8,xp as c9,HH as cA,AH as cB,DH as cC,NH as cD,aG as cE,mfe as cF,LG as cG,jG as cH,bG as cI,SG as cJ,yG as cK,ufe as cL,dfe as cM,t9 as cN,Jge as cO,Gr as cP,ro as cQ,R9 as cR,I9 as cS,xa as cT,Ze as cU,afe as cV,VN as cW,aH as cX,qve as cY,r3 as cZ,Hve as c_,dI as ca,uI as cb,mI as cc,lfe as cd,cfe as ce,ife as cf,sfe as cg,lH as ch,rfe as ci,iI as cj,cI as ck,pI as cl,pfe as cm,sI as cn,Nl as co,ZK as cp,Dfe as cq,yI as cr,iG as cs,XH as ct,IH as cu,wH as cv,nfe as cw,eI as cx,VG as cy,JH as cz,mv as d,s4 as d$,iW as d0,cW as d1,dF as d2,kfe as d3,Ol as d4,UW as d5,Afe as d6,Rfe as d7,Efe as d8,CI as d9,c8 as dA,dA as dB,r8 as dC,bI as dD,_fe as dE,qfe as dF,XG as dG,nae as dH,cae as dI,hae as dJ,rae as dK,iae as dL,aae as dM,bB as dN,sae as dO,lae as dP,dae as dQ,uae as dR,pae as dS,mae as dT,gae as dU,vae as dV,bae as dW,fae as dX,Jve as dY,X as dZ,r4 as d_,Pfe as da,im as db,Zp as dc,Mi as dd,Jfe as de,zM as df,OM as dg,Yge as dh,Kge as di,Qve as dj,Zve as dk,qde as dl,$de as dm,k3 as dn,i8 as dp,Ad as dq,na as dr,hf as ds,xM as dt,t8 as du,o8 as dv,s8 as dw,a8 as dx,n8 as dy,oa as dz,sp as e,ose as e$,xse as e0,Jj as e1,Kfe as e2,gfe as e3,Wfe as e4,zde as e5,qse as e6,Hse as e7,Gve as e8,$se as e9,Z_ as eA,xv as eB,oI as eC,dG as eD,rG as eE,PH as eF,RH as eG,MH as eH,VH as eI,RD as eJ,f_ as eK,cte as eL,_r as eM,kp as eN,yx as eO,Sd as eP,Ns as eQ,Oi as eR,xr as eS,NL as eT,ete as eU,ote as eV,Xee as eW,ite as eX,ute as eY,hte as eZ,pte as e_,e3 as ea,tfe as eb,xfe as ec,Xj as ed,xve as ee,Cve as ef,kve as eg,vfe as eh,zve as ei,n3 as ej,Cse as ek,_se as el,Tse as em,rf as en,Uve as eo,Rue as ep,HU as eq,SM as er,dY as es,MI as et,Vte as eu,aB as ev,qte as ew,Xge as ex,YH as ey,ZH as ez,jp as f,Vge as f0,$fe as f1,Ufe as f2,sx as f3,Is as f4,eW as f5,yfe as f6,hhe as f7,tte as f8,ND as f9,L9 as fA,j_ as fB,$N as fC,HN as fD,ofe as fE,u9 as fF,bt as fG,vL as fH,mse as fI,Pue as fJ,sse as fK,Mve as fL,Ove as fM,Zj as fN,Pve as fO,JG as fP,ate as fa,Xfe as fb,nte as fc,eve as fd,X$ as fe,e8 as ff,jfe as fg,o3 as fh,Rse as fi,Hv as fj,Eve as fk,_ve as fl,jde as fm,Yve as fn,rse as fo,Yae as fp,Ese as fq,bfe as fr,ZT as fs,vve as ft,NI as fu,zfe as fv,O9 as fw,F_ as fx,jN as fy,efe as fz,tbe as g,xX as h,Zie as i,w as j,E_ as k,qt as l,Rd as m,ld as n,hv as o,yF as p,Vj as q,A as r,cF as s,Vr as t,x_ as u,Sve as v,Hfe as w,ix as x,Gfe as y,ffe as z};
|