decocms 4.526.1 → 4.526.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/{ActiveShapeUtils-3Qv8pgS7.js → ActiveShapeUtils-CwNMVlsU.js} +1 -1
- package/dist/client/assets/{AlertCircle-C8rwN6lq.js → AlertCircle-BQ7gdGwO.js} +1 -1
- package/dist/client/assets/{AreaChart-CUZBfQth.js → AreaChart-2TBYeD3-.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DA6W7NwW.js → ArrowLeft-CzKuuRT3.js} +1 -1
- package/dist/client/assets/{ArrowUp-DOqWtjlR.js → ArrowUp-hmPXempM.js} +1 -1
- package/dist/client/assets/{BarChart-CQ6w7DQe.js → BarChart-CqU2QH_G.js} +1 -1
- package/dist/client/assets/{Building02-Do3lJJG5.js → Building02-BP04ade-.js} +1 -1
- package/dist/client/assets/{CartesianChart-CLY0Gd8n.js → CartesianChart-B5qhARMe.js} +1 -1
- package/dist/client/assets/{CategoricalChart-BOJbYjnl.js → CategoricalChart-GePqKrAt.js} +1 -1
- package/dist/client/assets/{CheckCircle-BC_4MefA.js → CheckCircle-BVnx66vP.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DmnbHDqu.js → ChevronSelectorVertical-D6sC3Vmb.js} +1 -1
- package/dist/client/assets/{ChevronUp-BnMEqZ-7.js → ChevronUp-B84nbyaB.js} +1 -1
- package/dist/client/assets/{Copy01-DhHOI-Q9.js → Copy01-Bac6SVw1.js} +1 -1
- package/dist/client/assets/{CreditCard01-Dw2OjkWU.js → CreditCard01-t317btce.js} +1 -1
- package/dist/client/assets/{DotsVertical-B-InRCR0.js → DotsVertical-DjAfwlFJ.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DivKrUmF.js → ErrorBarContext-DRnbzo4s.js} +1 -1
- package/dist/client/assets/{Globe04-CtMJQj21.js → Globe04-DSBhW1To.js} +1 -1
- package/dist/client/assets/{Image01-DKlCpScV.js → Image01-CNDErtLw.js} +1 -1
- package/dist/client/assets/{Key01-DBwoRjUY.js → Key01-C_7n0i1h.js} +1 -1
- package/dist/client/assets/{Link01-BBqxtXMI.js → Link01-kTPC8Qx-.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CAJodWFv.js → LinkBroken01-Ps7Q2TgQ.js} +1 -1
- package/dist/client/assets/{Minus-DiHVm4BN.js → Minus-DwgwDeRT.js} +1 -1
- package/dist/client/assets/{Monitor01-BhbrGCAs.js → Monitor01-DLFV9f_c.js} +1 -1
- package/dist/client/assets/{Play-BcZ_GeUq.js → Play-CQGngRNi.js} +1 -1
- package/dist/client/assets/{Plus-c2_sBI5f.js → Plus-DOCl9FQV.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BSuRAWbV.js → ReferenceLine-BW-WOxqj.js} +1 -1
- package/dist/client/assets/{SearchMd-CbbZJW9W.js → SearchMd-BbTaBsWc.js} +1 -1
- package/dist/client/assets/{Sector-DByNfs86.js → Sector-CZev-ohv.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-6U3SUMRX.js → ShoppingBag01-2qRSy_0A.js} +1 -1
- package/dist/client/assets/{Sun-DVWc_O6K.js → Sun-Cdvulc3r.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CxSk-wEa.js → SwitchHorizontal01-DM99h8Bb.js} +1 -1
- package/dist/client/assets/{Tool01-BxbHHa0T.js → Tool01-C4vr_Fbq.js} +1 -1
- package/dist/client/assets/{Trash01-BuZ3631A.js → Trash01-7cnh0-6j.js} +1 -1
- package/dist/client/assets/{Upload01-Bo2ttnFV.js → Upload01-DJferCdW.js} +1 -1
- package/dist/client/assets/{UserSquare-DCu-qtdW.js → UserSquare-CBDcV-Sr.js} +1 -1
- package/dist/client/assets/{Users01-BC6qYZnG.js → Users01-hfFVY4Rg.js} +1 -1
- package/dist/client/assets/{XClose-DVoCm2qG.js → XClose-B2l9VhGF.js} +1 -1
- package/dist/client/assets/{ZoomOut-lxtq8ebL.js → ZoomOut-CeC9MLz9.js} +1 -1
- package/dist/client/assets/{access-gate-DFESwNfG.js → access-gate-BanurxIu.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Cr3ZfKtA.js → add-connection-dialog-DarQ1krm.js} +1 -1
- package/dist/client/assets/agent-analytics-Cazr3KtN.js +1 -0
- package/dist/client/assets/agent-app-C_2G2yFw.js +1 -0
- package/dist/client/assets/{agent-assets-B9JCrCq8.js → agent-assets-vnboyQof.js} +1 -1
- package/dist/client/assets/{agent-automation-BvEH3OZS.js → agent-automation-DXTohqIP.js} +1 -1
- package/dist/client/assets/{agent-automations-Ck8TQkBX.js → agent-automations-BFozFJzs.js} +1 -1
- package/dist/client/assets/{agent-calendar-BDOSxsW_.js → agent-calendar-DVHehu_x.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CeRfuvcX.js → agent-connect-sources-CwKjdmVU.js} +1 -1
- package/dist/client/assets/agent-deck-DvlsuAfl.js +1 -0
- package/dist/client/assets/{agent-e2e-CLQ2N5KQ.js → agent-e2e-DinWmv8w.js} +1 -1
- package/dist/client/assets/agent-experiments-mSZe2g7e.js +1 -0
- package/dist/client/assets/{agent-file-DCiJJt_1.js → agent-file-CXwfpXiU.js} +1 -1
- package/dist/client/assets/{agent-hosting-_4iDaET9.js → agent-hosting-Drya8fUU.js} +1 -1
- package/dist/client/assets/{agent-icon-Di1pcjRb.js → agent-icon-Bo37g0fF.js} +1 -1
- package/dist/client/assets/agent-library-CF5liEzt.js +1 -0
- package/dist/client/assets/agent-library-file-CdQ4OD0k.js +1 -0
- package/dist/client/assets/agent-monitor-D_MkJVMA.js +1 -0
- package/dist/client/assets/{agent-overview-CRm01uUj.js → agent-overview-mxgKSo__.js} +1 -1
- package/dist/client/assets/{agent-releases-DWG_3zoJ.js → agent-releases-Bg7ZL_Eh.js} +1 -1
- package/dist/client/assets/agent-settings-DEMD2MSc.js +1 -0
- package/dist/client/assets/{agent-site-editor-C_bY3W2I.js → agent-site-editor-BSG_1jHk.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CN1FjAA8.js +2 -0
- package/dist/client/assets/agent-site-editor-content-243OnENt.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BMX4-2ho.js +1 -0
- package/dist/client/assets/agent-view-CC8vCjbP.js +1 -0
- package/dist/client/assets/{agent-view-guard-stsCu2yk.js → agent-view-guard-BHNxFqz2.js} +1 -1
- package/dist/client/assets/{agents-list-Drp41B4W.js → agents-list-LjE12uZe.js} +1 -1
- package/dist/client/assets/{ai-providers-ymvf69U2.js → ai-providers-BnPLndR5.js} +1 -1
- package/dist/client/assets/{alert-a-ykuY-J.js → alert-DGv9RNV8.js} +1 -1
- package/dist/client/assets/{analytics-sections-zQrwPGQJ.js → analytics-sections-BwRAKayH.js} +1 -1
- package/dist/client/assets/{analytics-tab-CkitXnj6.js → analytics-tab-KcCM-OzF.js} +1 -1
- package/dist/client/assets/{api-keys-CddzjTlY.js → api-keys-BYiu4OiJ.js} +1 -1
- package/dist/client/assets/api-keys-Ix_KjoIE.js +1 -0
- package/dist/client/assets/{app-editor-DIJglJJe.js → app-editor-Dhabc6r3.js} +1 -1
- package/dist/client/assets/{asset-utils-C_AVaAoE.js → asset-utils-BFPFspZC.js} +1 -1
- package/dist/client/assets/{auth-CrD9p86I.js → auth-BRizJz1-.js} +1 -1
- package/dist/client/assets/{auth-catchall-BsEXKDlO.js → auth-catchall-D1S0_WyO.js} +1 -1
- package/dist/client/assets/{auth-entry-BNMHPKIK.js → auth-entry-Bh9wXS29.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BjtZdEYq.js → auth-split-layout-BvrJixVI.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-C8UpgkvH.js → authenticate-and-persist-oauth-DzQvKWuf.js} +1 -1
- package/dist/client/assets/{automation-list-row-xTorJPTy.js → automation-list-row-DH4mXmBN.js} +1 -1
- package/dist/client/assets/{automation-runs-DWryzRp5.js → automation-runs-DJix-DxY.js} +1 -1
- package/dist/client/assets/{automations-BzmXycMB.js → automations-BGTqqP4a.js} +1 -1
- package/dist/client/assets/{autosend-DXH6RsEM.js → autosend-DweeW6OU.js} +1 -1
- package/dist/client/assets/{badge-DNQVmTxF.js → badge-6mumabZP.js} +1 -1
- package/dist/client/assets/{block-document-D1QOl1Oz.js → block-document-6D9S2QJM.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CLMQ_4RI.js → blocks-preview-workspace-context-CQlVHIqR.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BQcKMsso.js → blocks-tab-states-5o0yQDwk.js} +1 -1
- package/dist/client/assets/{blog-schema-1IwdWH9d.js → blog-schema-B1vhzoV7.js} +1 -1
- package/dist/client/assets/{buckets-Do7nX161.js → buckets-BXoMxN54.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DDR2Aibs.js → build-improve-prompt-doc-CNSfu0YZ.js} +1 -1
- package/dist/client/assets/{calendar-DSTJzxxj.js → calendar-lhJ8p0qo.js} +1 -1
- package/dist/client/assets/{capability-load-error-RgpugPdP.js → capability-load-error-C3GmqKPQ.js} +1 -1
- package/dist/client/assets/{category-editor-DD5zZ2D-.js → category-editor-B-uVQjgp.js} +1 -1
- package/dist/client/assets/{cdn-tab-BGM8bPPG.js → cdn-tab-MGIcjUqn.js} +1 -1
- package/dist/client/assets/{chart-PwHQXgEM.js → chart-DgE2oixW.js} +1 -1
- package/dist/client/assets/{chat-context-QAdvSmpg.js → chat-context-BfN3Aasc.js} +1 -1
- package/dist/client/assets/{chat-draft-JWz-JS1X.js → chat-draft-1H_chlRR.js} +1 -1
- package/dist/client/assets/{checkbox-6wv08vv8.js → checkbox-BGizxNX2.js} +1 -1
- package/dist/client/assets/{choose-editor-BrKo7WaN.js → choose-editor-DPHanNqQ.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DYKHxuzD.js → cli-auth-success-KhIa1i1d.js} +1 -1
- package/dist/client/assets/{client-icons-c8sjMYyL.js → client-icons-BB7vt0gq.js} +1 -1
- package/dist/client/assets/cms-settings-editor-DwHv5VFb.js +1 -0
- package/dist/client/assets/{collapsible-C8jYd33t.js → collapsible-BN3qlGJC.js} +1 -1
- package/dist/client/assets/{collection-detail-BPkemvs1.js → collection-detail-BaXvekU8.js} +1 -1
- package/dist/client/assets/{collection-display-button-DPP0I4kT.js → collection-display-button-CFQaHfMS.js} +1 -1
- package/dist/client/assets/{collection-search-DyeQXfCG.js → collection-search-INMm_CkT.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BiO6hJxh.js → collection-table-wrapper-Dt2ctjEE.js} +1 -1
- package/dist/client/assets/{collection-tabs-D4LYnWMJ.js → collection-tabs-SEBBjtRQ.js} +1 -1
- package/dist/client/assets/{column-rules-BpHi7zUw.js → column-rules-BL4ZPS3s.js} +1 -1
- package/dist/client/assets/{combobox-BeM2oYco.js → combobox-BO0oi3KV.js} +1 -1
- package/dist/client/assets/{command-sLy5v5Id.js → command-Cn1kHhQA.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-Cn-Rt78u.js → companion-mcps-section-C6y38zop.js} +1 -1
- package/dist/client/assets/{config-Cbcgp9UG.js → config-BmU_9L81.js} +1 -1
- package/dist/client/assets/{connect-CSSOksoc.js → connect-Bf0Ja-ij.js} +1 -1
- package/dist/client/assets/{connect-layout-DkF_xYAi.js → connect-layout-fE-7a2Jq.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-B0JOTGvw.js → connect-source-dialog-Cxd2UcNI.js} +1 -1
- package/dist/client/assets/{connection-LyoIrQvL.js → connection-Dizw96b7.js} +1 -1
- package/dist/client/assets/{connection-card-C90049z-.js → connection-card-D3-Gdl0S.js} +1 -1
- package/dist/client/assets/{connection-detail-DgU6Xe2S.js → connection-detail-Chq5IDv2.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BzLwdyrN.js → connection-form-helpers-DYxyLK9S.js} +1 -1
- package/dist/client/assets/{connections-C54oiD7H.js → connections-Ba6gsUgY.js} +1 -1
- package/dist/client/assets/{content-tab-6UhA4BYQ.js → content-tab-gYwhAZMG.js} +3 -3
- package/dist/client/assets/{context-BuY1MJLw.js → context-2BuuIfvl.js} +1 -1
- package/dist/client/assets/{context-menu-CXLB0nLT.js → context-menu-gP7nFahM.js} +1 -1
- package/dist/client/assets/{context-shell-CeIQn_AW.js → context-shell-sMRc_A5o.js} +3 -3
- package/dist/client/assets/{core.esm-BjMa39GU.js → core.esm-BdDh475y.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BDPnd7ZU.js → create-organization-dialog-Ci-3-YrG.js} +1 -1
- package/dist/client/assets/{daily-pulse-HnFS87ta.js → daily-pulse-Ir1cHSjy.js} +1 -1
- package/dist/client/assets/{discover-CoyVnhtj.js → discover-Dgk-X72W.js} +1 -1
- package/dist/client/assets/{domain-settings-Bi_Nf8Yz.js → domain-settings-DXLwO71Z.js} +1 -1
- package/dist/client/assets/{drawer-DUy0at62.js → drawer-LA3NkA0S.js} +1 -1
- package/dist/client/assets/{editor-CZ2vZ5JJ.js → editor-C2vaY1i0.js} +1 -1
- package/dist/client/assets/{editor-classes-D-ciinYO.js → editor-classes-wrVHQOxp.js} +1 -1
- package/dist/client/assets/{empty-state-DX5OkW8m.js → empty-state-BIXUpBao.js} +1 -1
- package/dist/client/assets/{empty-state-BG-ZsMM5.js → empty-state-DHgdXyfD.js} +1 -1
- package/dist/client/assets/{experiments-tab-CLo6r2ny.js → experiments-tab-DOsWoa0_.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DxQftboi.js → experiments-tab-choice-DdG3xkHn.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C4s2gh-W.js → extract-connection-data-BPic6jPp.js} +1 -1
- package/dist/client/assets/{feature-gate-Cfw3cBLP.js → feature-gate-uVlfgQri.js} +1 -1
- package/dist/client/assets/{feature-paywall-DIAXEFng.js → feature-paywall-0Gw_Q4lr.js} +1 -1
- package/dist/client/assets/{file-explorer-BR0n-bNq.js → file-explorer-DgWEbnfC.js} +1 -1
- package/dist/client/assets/{file-preview-Ds8GbZw9.js → file-preview-BHY7-Pu0.js} +1 -1
- package/dist/client/assets/{file-share-button-BXYaokcu.js → file-share-button-Dj47FtSF.js} +1 -1
- package/dist/client/assets/{file-type-icon-CJ5Cx-FH.js → file-type-icon-D98G7WK4.js} +1 -1
- package/dist/client/assets/{folder-icon-BbmUc2dC.js → folder-icon-CMFoNGkh.js} +1 -1
- package/dist/client/assets/{form-C3OwrZbQ.js → form-oXstmc9Q.js} +1 -1
- package/dist/client/assets/{general-Cz0YZJFb.js → general-Dg84kr26.js} +1 -1
- package/dist/client/assets/{held-block-view-CDAp9KiG.js → held-block-view-CpXdgp7m.js} +3 -3
- package/dist/client/assets/{home-CBeFS7md.js → home-DzHhk92o.js} +1 -1
- package/dist/client/assets/{icon-button-rp_0Im0Y.js → icon-button-vGME3QbC.js} +1 -1
- package/dist/client/assets/{index-CwzAm9wC.js → index-20HoU-20.js} +1 -1
- package/dist/client/assets/{index-Brzw7ag7.js → index-B0CHXOni.js} +1 -1
- package/dist/client/assets/{index-BlnnRpsw.js → index-BBCK9r3-.js} +1 -1
- package/dist/client/assets/{index-B25kGSP3.js → index-BVIkRnC2.js} +1 -1
- package/dist/client/assets/{index-Cj9bz4MZ.js → index-BapUxZWk.js} +1 -1
- package/dist/client/assets/{index-Bvthatnq.js → index-BcOdVYcr.js} +1 -1
- package/dist/client/assets/{index-DfuO6MLy.js → index-BcT8d0Ct.js} +1 -1
- package/dist/client/assets/{index-nN_gbtO8.js → index-C4-Z_rKB.js} +1 -1
- package/dist/client/assets/{index-CAyRiseV.js → index-CAdTS9ZX.js} +1 -1
- package/dist/client/assets/{index-DFWnsxkt.js → index-CKwkOVRk.js} +1 -1
- package/dist/client/assets/{index-DwvcPlne.js → index-CTcO2Era.js} +1 -1
- package/dist/client/assets/{index-eXjVYv9z.js → index-CUZ1Ro0y.js} +1 -1
- package/dist/client/assets/{index-Bi8Dcq6x.js → index-DMyWhhx4.js} +1 -1
- package/dist/client/assets/{index-dqTonPuB.js → index-DampV2dK.js} +3 -3
- package/dist/client/assets/{index-YTZffZ6U.js → index-DgIUPTVB.js} +1 -1
- package/dist/client/assets/{index-redirect-C5brcMlb.js → index-redirect-BcArEk0h.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Dn-uClrW.js → infiniteQueryObserver-koP9jk4d.js} +1 -1
- package/dist/client/assets/{infra-billing-CH6JZhsh.js → infra-billing-Dh0UUr_Y.js} +1 -1
- package/dist/client/assets/{input-DsO-XKG3.js → input-B3p7vRnZ.js} +1 -1
- package/dist/client/assets/{input-ziouS0a7.js → input-nNYp-8x6.js} +3 -3
- package/dist/client/assets/{integration-icon-CadbREtM.js → integration-icon-CiAW8rDV.js} +1 -1
- package/dist/client/assets/{jira-icon-7MgMLks3.js → jira-icon-CPygEn4Q.js} +1 -1
- package/dist/client/assets/{label-B9vYlzdO.js → label-CjCrcKeN.js} +1 -1
- package/dist/client/assets/{layout-C1UtsTjt.js → layout-BdGh_t6z.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CYw3qywU.js → legacy-agents-deep-Cm0fVoJt.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-1pdawh_v.js → legacy-main-redirect-yklNT500.js} +1 -1
- package/dist/client/assets/library-DxYyWAwR.js +1 -0
- package/dist/client/assets/{login-p4pTEV4I.js → login-zLCkg8LX.js} +1 -1
- package/dist/client/assets/{markdown-BzS1xvA6.js → markdown-Cqcjq3Xf.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Dsd5J6Kh.js → mcp-app-renderer-dATLexqT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CzTstmr6.js → mcp-oauth-CJZC8nld.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BiBbnx8b.js → mcp-oauth-CfI4AoXx.js} +1 -1
- package/dist/client/assets/{members-ByI1ytgm.js → members-4PYMHLuR.js} +1 -1
- package/dist/client/assets/{memory-5atI8cIN.js → memory-C6HI5VGy.js} +1 -1
- package/dist/client/assets/{mini-report-page-BiZzy7Le.js → mini-report-page-pa3awJPv.js} +1 -1
- package/dist/client/assets/{mock-board-CVxb9NJN.js → mock-board-DKq30aNi.js} +3 -3
- package/dist/client/assets/{monaco-editor-Dqd6OMNL.js → monaco-editor-5y8rZvs2.js} +1 -1
- package/dist/client/assets/{monitoring-CzxEm97T.js → monitoring-CGJWrng1.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CpSxjpuK.js → monitoring-stats-row-CKIqhhys.js} +1 -1
- package/dist/client/assets/{multi-select-BRyAnutb.js → multi-select-B11Nwxds.js} +1 -1
- package/dist/client/assets/{mustache-CgTpIEz8.js → mustache-C57uA7K3.js} +1 -1
- package/dist/client/assets/{named-rule-uses-B_I9YE7f.js → named-rule-uses-ZJHANdK7.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CvrV-V2w.js → new-project-dialog-BVdmAMTF.js} +1 -1
- package/dist/client/assets/{oauth-callback-C24sI7J7.js → oauth-callback-Clp9_mQH.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-RnzKbWsN.js → oauth-callback-ai-provider-B50P_7pe.js} +1 -1
- package/dist/client/assets/{onboarding-DID9r4O7.js → onboarding-zwPhPqAT.js} +1 -1
- package/dist/client/assets/{openai-conversation-DSk3ETjb.js → openai-conversation-BH7MRGH3.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DpQUpW-I.js → optimistic-project-sidebar-views-p4b0qW4M.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BGEK7Bpo.js → order-monitor-day-CqO3tTmM.js} +1 -1
- package/dist/client/assets/{organization-choice-BHrA1AZQ.js → organization-choice-9p7y5Qyt.js} +1 -1
- package/dist/client/assets/{orgs-CJ5rh6cM.js → orgs-mkCn2L3g.js} +1 -1
- package/dist/client/assets/{page-seo-form-DzPuUK4t.js → page-seo-form-BsL_nGoH.js} +1 -1
- package/dist/client/assets/{pair-CqDeWXf6.js → pair-BlVTZ-F_.js} +1 -1
- package/dist/client/assets/{parse-sections-CPumEOlp.js → parse-sections-D3_nSXsH.js} +1 -1
- package/dist/client/assets/{plan-DpdYL_SC.js → plan-ea0rrjrS.js} +1 -1
- package/dist/client/assets/{plan-ladder-Dhy2mlD-.js → plan-ladder-BQnQ-c-o.js} +1 -1
- package/dist/client/assets/{popover--NiW4ds1.js → popover-C6LRW83t.js} +1 -1
- package/dist/client/assets/{post-calendar-nR3dxdcY.js → post-calendar-DScrSJbD.js} +1 -1
- package/dist/client/assets/{post-editor-DYtyYMlo.js → post-editor-CEWlJ8jo.js} +1 -1
- package/dist/client/assets/{preview-content-CmgkQhaE.js → preview-content-C-60FNpz.js} +1 -1
- package/dist/client/assets/{preview-dialog-Dm182n0_.js → preview-dialog-CrPz9LUi.js} +1 -1
- package/dist/client/assets/{preview-panel-XXLWOdEl.js → preview-panel-tI2aO6cK.js} +1 -1
- package/dist/client/assets/{preview-tab-oW6r5QzB.js → preview-tab-CZ3Cot3B.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BpXw9b8F.js → product-picker-dialog-JbKEmFSB.js} +1 -1
- package/dist/client/assets/{profile-D2nKI0hH.js → profile-tb3VLWGr.js} +1 -1
- package/dist/client/assets/{project-app-view-BCwQq4yH.js → project-app-view-BN5-NmcY.js} +1 -1
- package/dist/client/assets/{project-apps-Dj2CJOnZ.js → project-apps-CUVHvRf7.js} +1 -1
- package/dist/client/assets/{project-feed-DNMNyDPx.js → project-feed-BUL7QZMR.js} +1 -1
- package/dist/client/assets/{project-icon-Fuoy9xbW.js → project-icon-C4YSWqLo.js} +1 -1
- package/dist/client/assets/project-reports-BkL-vra7.js +1 -0
- package/dist/client/assets/project-tasks-CkDZssBo.js +1 -0
- package/dist/client/assets/{projects-BVfx1-an.js → projects-Dd92LlpW.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BGI2AvCV.js → projects-empty-state-BkJevxQj.js} +1 -1
- package/dist/client/assets/{prompts-CxG-l5n6.js → prompts-CjZHwr1o.js} +1 -1
- package/dist/client/assets/record-editor-dqXrhJSK.js +1 -0
- package/dist/client/assets/{redirect-editor-D2KHHydh.js → redirect-editor-CbLBgrtr.js} +1 -1
- package/dist/client/assets/{releases-api-BbVlMuk_.js → releases-api-BXtcXUmK.js} +1 -1
- package/dist/client/assets/{reports-Ciw0cmSs.js → reports-CjzKQyjq.js} +1 -1
- package/dist/client/assets/reports-Dqbx9vvQ.js +1 -0
- package/dist/client/assets/{reports-onboarding-DNfKLuiC.js → reports-onboarding-PhZdbYYv.js} +1 -1
- package/dist/client/assets/{reports-tab-BefEBqvf.js → reports-tab-Cl5b6xq6.js} +2 -2
- package/dist/client/assets/repositories-CXJpDO8c.js +1 -0
- package/dist/client/assets/{repositories-z8wEcK0M.js → repositories-Df9FHJII.js} +1 -1
- package/dist/client/assets/{repository-binding-0L-NOau4.js → repository-binding-DSYWyWQk.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DepdN5-B.js → repository-import-picker-CSAKO3X5.js} +1 -1
- package/dist/client/assets/{repository-picker-Dva3lcTN.js → repository-picker-3tqi2Hvb.js} +1 -1
- package/dist/client/assets/{require-capability-D2uGPRyV.js → require-capability-CLXh_YYN.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CF04eiX-.js → required-auth-layout-DMJ9p0SW.js} +1 -1
- package/dist/client/assets/{reset-password-EsqG_9_N.js → reset-password-C8ez-uKX.js} +1 -1
- package/dist/client/assets/{resizable-l4I_T5Kn.js → resizable-CWhIVRKn.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DEw9_uRC.js → resolve-tab-icon-l6kvyo7T.js} +1 -1
- package/dist/client/assets/{review-settings-D4PRtLEA.js → review-settings-CXbKpHZd.js} +1 -1
- package/dist/client/assets/{roles-Dg57dBTr.js → roles-DSB-aYYs.js} +1 -1
- package/dist/client/assets/{route-D2VIJZi7.js → route-BDXg8II4.js} +1 -1
- package/dist/client/assets/{route-BHiTL7ed.js → route-C4rRmU6W.js} +1 -1
- package/dist/client/assets/route-CBQzhShl.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-gdz-I2_D.js → sandbox-lifecycle-context-BVJJp5p1.js} +1 -1
- package/dist/client/assets/{schema-4_stGcYx.js → schema-BcGVNeII.js} +1 -1
- package/dist/client/assets/{schema-BQgw-8fk.js → schema-C1grSGu6.js} +1 -1
- package/dist/client/assets/{scroll-area-CyLybKsS.js → scroll-area-Dbl0Ja6M.js} +1 -1
- package/dist/client/assets/{search-input-CeTAKge4.js → search-input-CI-RscAC.js} +1 -1
- package/dist/client/assets/{search-toggle-Cr4iRumB.js → search-toggle-DfEbn4An.js} +1 -1
- package/dist/client/assets/{secret-picker-n5Ps6wSc.js → secret-picker-Cki8V7fz.js} +1 -1
- package/dist/client/assets/{secrets-CZjIZYlr.js → secrets-CiPY8Xbn.js} +1 -1
- package/dist/client/assets/{section-array-field-DU2wvA76.js → section-array-field-DvT6jzl0.js} +1 -1
- package/dist/client/assets/{sections-editor-CpNs-v4Y.js → sections-editor-B5DUhp2P.js} +1 -1
- package/dist/client/assets/{sections-ZoPCF-bt.js → sections-qI0m5KhX.js} +1 -1
- package/dist/client/assets/{select-BBgfhGwn.js → select-BjOZT7HR.js} +1 -1
- package/dist/client/assets/{select-model-CWJxxZcQ.js → select-model-DkLK9HGj.js} +1 -1
- package/dist/client/assets/{seo-editor-LIAtvw09.js → seo-editor-D05ebZyJ.js} +1 -1
- package/dist/client/assets/{separator-yz9LQvWk.js → separator-CjZHveNE.js} +1 -1
- package/dist/client/assets/settings-tab-D7kokq_E.js +1 -0
- package/dist/client/assets/{sheet-CInqTfvf.js → sheet-DfTFlGFH.js} +1 -1
- package/dist/client/assets/{shell-layout-Dhack47g.js → shell-layout-DDrdQOKB.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BKfRt5Kf.js → site-draft-actions-CGinyKcf.js} +1 -1
- package/dist/client/assets/{site-draft-view-DQWTYqa5.js → site-draft-view-zFIJN3xy.js} +2 -2
- package/dist/client/assets/{site-editor-toast-BphhFIx_.js → site-editor-toast-SKvfrYhz.js} +1 -1
- package/dist/client/assets/site-editor-uqa8dwZT.js +1 -0
- package/dist/client/assets/{skills-NdjGdK_L.js → skills-B_QDMWu_.js} +1 -1
- package/dist/client/assets/{slider-CjVp545e.js → slider-DrOo7_UG.js} +1 -1
- package/dist/client/assets/{sortable.esm-CLnROgsp.js → sortable.esm-bTAsk8Vk.js} +1 -1
- package/dist/client/assets/{sso-CoZFsJu8.js → sso-BwNLNHyD.js} +1 -1
- package/dist/client/assets/{suggestion-BJa7UCMt.js → suggestion-D6r-qU7q.js} +1 -1
- package/dist/client/assets/{switch-BuvFN30Y.js → switch-BaweF4ir.js} +1 -1
- package/dist/client/assets/{symbol-Dvlt2z4k.js → symbol-CJnTkOND.js} +1 -1
- package/dist/client/assets/{synced-repos-CLcW5MUO.js → synced-repos-BD02afV5.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-4xj2Fk17.js → tab-icon-glyph-Dka1P8cQ.js} +1 -1
- package/dist/client/assets/{table-DF5_axer.js → table-ByFmIMk8.js} +1 -1
- package/dist/client/assets/{tabs-DPXakTnY.js → tabs-C_tuCc9E.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-CLWTu-qp.js → task-assignee-avatar-pNz0ct84.js} +1 -1
- package/dist/client/assets/{task-board-C3TfKsEu.js → task-board-CFm7hWmU.js} +1 -1
- package/dist/client/assets/{task-route-D8G4Pg9E.js → task-route-CroNqaC_.js} +1 -1
- package/dist/client/assets/{task-status-CR31LKK2.js → task-status-SVf_UHQ8.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-C8Udie1K.js → taskboard-analytics-BPmcL0th.js} +1 -1
- package/dist/client/assets/tasks-CAcr5cg4.js +1 -0
- package/dist/client/assets/{tasks-Blq-0J6L.js → tasks-CcIwJnqw.js} +1 -1
- package/dist/client/assets/{textarea-Dg_yVkeX.js → textarea-CiRqIfaf.js} +1 -1
- package/dist/client/assets/{thread-analytics-9I9WwE29.js → thread-analytics-VH5cv6lu.js} +1 -1
- package/dist/client/assets/{thread-intent-DmSTHfJV.js → thread-intent-BAI3Rlfu.js} +1 -1
- package/dist/client/assets/{thread-route-DyeAWeVv.js → thread-route-DCxAnsEA.js} +1 -1
- package/dist/client/assets/{thread-route-DL6c8KHu.js → thread-route-Nzl7YVXC.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CyVr8d5d.js → thread-sheet-body-CpP9OOWv.js} +1 -1
- package/dist/client/assets/{time-range-picker-CAYhviop.js → time-range-picker-8OmeiBBB.js} +1 -1
- package/dist/client/assets/{toggle-group-CagcNHou.js → toggle-group-DkOJZdVq.js} +1 -1
- package/dist/client/assets/{tool-namespace-AEMn8zEL.js → tool-namespace-MjGHB-2n.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BTNIHkHm.js → toolbar-icon-button-DPdWBHmX.js} +1 -1
- package/dist/client/assets/{tooltip-CkhWwifD.js → tooltip-DZKcSDR4.js} +1 -1
- package/dist/client/assets/{tooltipContext-XWgj5YPF.js → tooltipContext-J8gN2jYl.js} +1 -1
- package/dist/client/assets/{track-CSaYPuyk.js → track-CPKI19Qd.js} +1 -1
- package/dist/client/assets/{types-BBlCCKBH.js → types-D-tO7eft.js} +1 -1
- package/dist/client/assets/{url-slug-B_Yjxy4g.js → url-slug-B3-3kua2.js} +1 -1
- package/dist/client/assets/{usage-stats-Bnq-bwdD.js → usage-stats-D7pL8W8y.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BmOzsYDN.js → use-ai-providers-t0yXUakZ.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-B2Zt8XIz.js → use-apply-named-rule-x6zm2qwO.js} +1 -1
- package/dist/client/assets/{use-automations-HMhC6FE5.js → use-automations-DvxXx4v3.js} +1 -1
- package/dist/client/assets/{use-autosave-D6dco3FM.js → use-autosave-CKJcAkk6.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-SXC1aBSP.js → use-chat-layout-state-Be7PCK7m.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BzkvK9xF.js → use-clock-tick-_wcwwysm.js} +1 -1
- package/dist/client/assets/{use-connect-companion-D77Qg9uw.js → use-connect-companion-DqnlsCkr.js} +1 -1
- package/dist/client/assets/{use-connection-CgZBwmOC.js → use-connection-BwtjQBnQ.js} +1 -1
- package/dist/client/assets/{use-content-sync-Di8d86xo.js → use-content-sync-Cnva7d9w.js} +1 -1
- package/dist/client/assets/{use-copy-B6jA1hKb.js → use-copy-CRYT_lEh.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-YK4tVtgK.js → use-create-virtual-mcp-B7toVaXI.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CXWxLD_D.js → use-date-fns-locale-DF7pxcBk.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-V77TWUAY.js → use-debounced-autosave-CQ0k7XU4.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CgkCbE-q.js → use-debounced-value-BgU5Mlo6.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CYakt-79.js → use-deco-credits-DRFtUrcE.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BNl6vZT3.js → use-decopilot-events-aPDwNsv_.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B_LhNFqB.js → use-delete-connection-DB3Kupec.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CQqKzTzV.js → use-deployment-admin-2Gp9fLRN.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-CtbO1sYj.js → use-fast-preview-draft-url-DfZ_rD3i.js} +1 -1
- package/dist/client/assets/{use-file-configs-Bdi3Zzvl.js → use-file-configs-DG6lQxbS.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BDXrK609.js → use-inbox-feed-BAUqtwyl.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Ce1Cyz0w.js → use-infinite-scroll-_QxCAV2S.js} +1 -1
- package/dist/client/assets/{use-join-requests-C1STdVOR.js → use-join-requests-6CPF_lfc.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DZlakfZ7.js → use-main-panel-tabs-CKFNH0cz.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DLGEZPTH.js → use-mcp-auth-status-CG_Nglqa.js} +1 -1
- package/dist/client/assets/{use-mcp-client-NiHnmnpB.js → use-mcp-client-Db3WwHkW.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BpP8rPhI.js → use-mcp-prompts-D76okIQm.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DvShHfsn.js → use-mcp-tools-BqAiOdl2.js} +1 -1
- package/dist/client/assets/{use-mobile-0wDKszAH.js → use-mobile-BihCEjWm.js} +1 -1
- package/dist/client/assets/{use-move-blocks-BFH4bGqH.js → use-move-blocks-CkTgDd_J.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CHgAma_A.js → use-navigate-to-agent-DH-wfLLT.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-D4G9wMSG.js → use-open-billing-url-BRN6W4Vx.js} +1 -1
- package/dist/client/assets/{use-org-fs-CgDaP3QS.js → use-org-fs-DYzo-CVk.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-ZnbK4UNH.js → use-org-repo-syncs-D2UZHvP3.js} +1 -1
- package/dist/client/assets/{use-org-sso-4bOeKtTK.js → use-org-sso-dGa9sTJw.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CaIcAuZI.js → use-organization-roles-DNM22dA7.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Bj3c26BX.js → use-organization-settings-DOUb81j1.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-kG8bT637.js → use-panel-navigate-BYbZXvp4.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BixTQ7MO.js → use-project-native-view-presence-DaDkyw-s.js} +1 -1
- package/dist/client/assets/{use-project-scope-DQ4byfJ8.js → use-project-scope-JP7EfYKk.js} +1 -1
- package/dist/client/assets/{use-recent-apps-DnJcepur.js → use-recent-apps-CXehLx4B.js} +1 -1
- package/dist/client/assets/{use-releases-1u7IRxuv.js → use-releases-BN_Y86Es.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BemHjjuV.js → use-reports-diagnostic-R8fOEnxQ.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-KLt2azet.js → use-sandbox-events-DoS1U6Xg.js} +1 -1
- package/dist/client/assets/{use-secrets-BOgeYbQq.js → use-secrets-D5GrKapk.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-B586nx29.js → use-section-preview-base-DoGRuc7-.js} +1 -1
- package/dist/client/assets/{use-session-runtime-CJtbf6W0.js → use-session-runtime-Bp29dZ9K.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-B__PkJPm.js → use-sidebar-collapsed-B3wyR6wL.js} +1 -1
- package/dist/client/assets/{use-tags-DlHL5H_y.js → use-tags-CyP6VoHu.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CDja-5FD.js → use-task-board-analytics-DIHarjfC.js} +1 -1
- package/dist/client/assets/{use-task-board-events-C6pDc0YD.js → use-task-board-events-BWNw3HI5.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CNR5PS--.js → use-task-board-item-prs-BhBkGpQk.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CIhHGtUG.js → use-task-metadata-B9_EDVoX.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-Dv9Xhfh-.js → use-thread-analytics-DJ-a1GYM.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DvCpSxoC.js → use-thread-outputs-C5vhvZFZ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-gMQYsgHb.js +1 -0
- package/dist/client/assets/{useQueries-BBnVrkV9.js → useQueries-DQ6fzXUk.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-huohnS0M.js +1 -0
- package/dist/client/assets/{users-MhJxqzuf.js → users-CQ7ISHLn.js} +1 -1
- package/dist/client/assets/{utils-LgeHHV8Z.js → utils-rLTU2EyK.js} +1 -1
- package/dist/client/assets/{variant-calendar-BZZsY0pE.js → variant-calendar-Cc7Av7n-.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CB3DEYo-.js → variant-matcher-override-CMTA6uf4.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BTO3QMrV.js → virtual-mcp-D2W6CtJ3.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Cg72K5y9.js → watch-sse-pool-Cue4trO6.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +399 -399
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-D1M7QoAT.js +0 -1
- package/dist/client/assets/agent-app-DOxuzP2R.js +0 -1
- package/dist/client/assets/agent-deck-C-BZQCII.js +0 -1
- package/dist/client/assets/agent-experiments-tdlFp9nd.js +0 -1
- package/dist/client/assets/agent-library-Bz6qO4Nh.js +0 -1
- package/dist/client/assets/agent-library-file-7MTfJn5J.js +0 -1
- package/dist/client/assets/agent-monitor-D913p8vC.js +0 -1
- package/dist/client/assets/agent-settings-CDcmmP6N.js +0 -1
- package/dist/client/assets/agent-site-editor-code-DgzX4I9T.js +0 -2
- package/dist/client/assets/agent-site-editor-content-B6Sevg3O.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-4LTEMQ-T.js +0 -1
- package/dist/client/assets/agent-view-BC7_pZin.js +0 -1
- package/dist/client/assets/api-keys-Dlh6QGx9.js +0 -1
- package/dist/client/assets/cms-settings-editor-t2vc1NHq.js +0 -1
- package/dist/client/assets/library-Cv7xPXE0.js +0 -1
- package/dist/client/assets/project-reports-Cj0tAxbH.js +0 -1
- package/dist/client/assets/project-tasks-BLptZtxw.js +0 -1
- package/dist/client/assets/record-editor-MLJFEHa6.js +0 -1
- package/dist/client/assets/reports-pbzR9Ttf.js +0 -1
- package/dist/client/assets/repositories-BsvHkw06.js +0 -1
- package/dist/client/assets/route-D5SW2o-V.js +0 -1
- package/dist/client/assets/settings-tab-DgS3Wxee.js +0 -1
- package/dist/client/assets/site-editor-jHYcBntN.js +0 -1
- package/dist/client/assets/tasks-C4wpaTB2.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BqRsoJ1h.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CXNJCW6q.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-p4pTEV4I.js","assets/auth-entry-BNMHPKIK.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-BjtZdEYq.js","assets/cli-auth-success-DYKHxuzD.js","assets/oauth-callback-C24sI7J7.js","assets/mcp-oauth-CzTstmr6.js","assets/auth-CrD9p86I.js","assets/layout-C1UtsTjt.js","assets/required-auth-layout-CF04eiX-.js","assets/use-deployment-admin-CQqKzTzV.js","assets/users-MhJxqzuf.js","assets/collection-table-wrapper-BiO6hJxh.js","assets/table-DF5_axer.js","assets/ArrowUp-DOqWtjlR.js","assets/empty-state-BG-ZsMM5.js","assets/search-input-CeTAKge4.js","assets/SearchMd-CbbZJW9W.js","assets/badge-DNQVmTxF.js","assets/use-debounced-value-CgkCbE-q.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-CJ5rh6cM.js","assets/label-B9vYlzdO.js","assets/select-BBgfhGwn.js","assets/index-BdQq_4o_.js","assets/index-YTZffZ6U.js","assets/ChevronUp-BnMEqZ-7.js","assets/switch-BuvFN30Y.js","assets/textarea-Dg_yVkeX.js","assets/schema-BQgw-8fk.js","assets/site-slug-DebpOoQq.js","assets/prompts-CxG-l5n6.js","assets/shell-layout-Dhack47g.js","assets/Building02-Do3lJJG5.js","assets/UserSquare-DCu-qtdW.js","assets/agent-icon-Di1pcjRb.js","assets/AlertCircle-C8rwN6lq.js","assets/Tool01-BxbHHa0T.js","assets/ArrowLeft-DA6W7NwW.js","assets/LinkBroken01-CAJodWFv.js","assets/ShoppingBag01-6U3SUMRX.js","assets/ZoomOut-lxtq8ebL.js","assets/CheckCircle-BC_4MefA.js","assets/ChevronSelectorVertical-DmnbHDqu.js","assets/Copy01-DhHOI-Q9.js","assets/CreditCard01-Dw2OjkWU.js","assets/DotsVertical-B-InRCR0.js","assets/Image01-DKlCpScV.js","assets/Globe04-CtMJQj21.js","assets/SwitchHorizontal01-CxSk-wEa.js","assets/Key01-DBwoRjUY.js","assets/Link01-BBqxtXMI.js","assets/Minus-DiHVm4BN.js","assets/Monitor01-BhbrGCAs.js","assets/Sun-DVWc_O6K.js","assets/Play-BcZ_GeUq.js","assets/Plus-c2_sBI5f.js","assets/Trash01-BuZ3631A.js","assets/Upload01-Bo2ttnFV.js","assets/Users01-BC6qYZnG.js","assets/XClose-DVoCm2qG.js","assets/use-project-scope-DQ4byfJ8.js","assets/repository-binding-0L-NOau4.js","assets/use-mcp-client-NiHnmnpB.js","assets/use-panel-navigate-kG8bT637.js","assets/thread-route-DyeAWeVv.js","assets/use-clock-tick-BzkvK9xF.js","assets/command-sLy5v5Id.js","assets/index-Bi8Dcq6x.js","assets/integration-icon-CadbREtM.js","assets/project-icon-Fuoy9xbW.js","assets/new-project-dialog-CvrV-V2w.js","assets/repository-import-picker-DepdN5-B.js","assets/use-navigate-to-agent-CHgAma_A.js","assets/thread-intent-DmSTHfJV.js","assets/watch-sse-pool-Cg72K5y9.js","assets/task-board-C3TfKsEu.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-Dva3lcTN.js","assets/tooltip-CkhWwifD.js","assets/useInfiniteQuery-BqRsoJ1h.js","assets/infiniteQueryObserver-Dn-uClrW.js","assets/collection-search-DyeQXfCG.js","assets/use-organization-settings-Bj3c26BX.js","assets/autosend-DXH6RsEM.js","assets/use-org-sso-4bOeKtTK.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-DID9r4O7.js","assets/organization-choice-BHrA1AZQ.js","assets/reports-onboarding-DNfKLuiC.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-BDPnd7ZU.js","assets/form-C3OwrZbQ.js","assets/companion-mcps-section-Cn-Rt78u.js","assets/use-connect-companion-D77Qg9uw.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/icon-button-rp_0Im0Y.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-BBnVrkV9.js","assets/authenticate-and-persist-oauth-C8UpgkvH.js","assets/mcp-oauth-BiBbnx8b.js","assets/track-CSaYPuyk.js","assets/extract-connection-data-C4s2gh-W.js","assets/connection-LyoIrQvL.js","assets/url-slug-B_Yjxy4g.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-BrKo7WaN.js","assets/site-editor-jHYcBntN.js","assets/chat-context-QAdvSmpg.js","assets/use-decopilot-events-BNl6vZT3.js","assets/use-ai-providers-BmOzsYDN.js","assets/location-V0VwTJTt.js","assets/index-eXjVYv9z.js","assets/use-mobile-0wDKszAH.js","assets/use-sidebar-collapsed-B__PkJPm.js","assets/use-chat-layout-state-SXC1aBSP.js","assets/toolbar-icon-button-BTNIHkHm.js","assets/sheet-CInqTfvf.js","assets/resizable-l4I_T5Kn.js","assets/index-DwvcPlne.js","assets/core.esm-BjMa39GU.js","assets/sortable.esm-CLnROgsp.js","assets/context-menu-CXLB0nLT.js","assets/project-apps-Dj2CJOnZ.js","assets/use-recent-apps-DnJcepur.js","assets/blocks-preview-workspace-context-CLMQ_4RI.js","assets/site-editor-toast-BphhFIx_.js","assets/use-session-runtime-CJtbf6W0.js","assets/experiments-tab-choice-DxQftboi.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-LgeHHV8Z.js","assets/use-sandbox-events-KLt2azet.js","assets/sandbox-git-api-CH_-QFpD.js","assets/preview-tab-oW6r5QzB.js","assets/held-block-view-CDAp9KiG.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-CqDeWXf6.js","assets/collapsible-C8jYd33t.js","assets/use-copy-B6jA1hKb.js","assets/usage-stats-Bnq-bwdD.js","assets/tool-namespace-AEMn8zEL.js","assets/utils-CVEq3hMx.js","assets/markdown-BzS1xvA6.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-Dsd5J6Kh.js","assets/types-BBlCCKBH.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-connection-CgZBwmOC.js","assets/use-mcp-prompts-BpP8rPhI.js","assets/use-thread-outputs-DvCpSxoC.js","assets/file-type-icon-CJ5Cx-FH.js","assets/section-array-field-DU2wvA76.js","assets/alert-a-ykuY-J.js","assets/parse-sections-CPumEOlp.js","assets/blocks-tab-states-BQcKMsso.js","assets/slider-CjVp545e.js","assets/index-CAyRiseV.js","assets/tooltipContext-XWgj5YPF.js","assets/CategoricalChart-BOJbYjnl.js","assets/index-Cj9bz4MZ.js","assets/ActiveShapeUtils-3Qv8pgS7.js","assets/Sector-DByNfs86.js","assets/symbol-Dvlt2z4k.js","assets/popover--NiW4ds1.js","assets/scroll-area-CyLybKsS.js","assets/monaco-editor-Dqd6OMNL.js","assets/editor-CZ2vZ5JJ.js","assets/calendar-DSTJzxxj.js","assets/editor-classes-D-ciinYO.js","assets/toggle-group-CagcNHou.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-BeM2oYco.js","assets/tabs-DPXakTnY.js","assets/use-file-configs-Bdi3Zzvl.js","assets/asset-utils-C_AVaAoE.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-gdz-I2_D.js","assets/variant-matcher-override-CB3DEYo-.js","assets/variant-draft-pointer-BeAKcq_c.js","assets/section-preview-url-7zfngvgW.js","assets/use-fast-preview-draft-url-CtbO1sYj.js","assets/preview-link-C762yHOt.js","assets/device-hint-SeLRi17j.js","assets/virtual-mcp-BTO3QMrV.js","assets/app-preview-url-9Od4s8Sz.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-CIhHGtUG.js","assets/content-tab-6UhA4BYQ.js","assets/mustache-CgTpIEz8.js","assets/use-content-sync-Di8d86xo.js","assets/checkbox-6wv08vv8.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-BFH4bGqH.js","assets/empty-state-DX5OkW8m.js","assets/tab-icon-glyph-4xj2Fk17.js","assets/resolve-tab-icon-DEw9_uRC.js","assets/agent-site-editor-C_bY3W2I.js","assets/site-draft-actions-BKfRt5Kf.js","assets/separator-yz9LQvWk.js","assets/use-releases-1u7IRxuv.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-B25kGSP3.js","assets/drawer-DUy0at62.js","assets/input-ziouS0a7.js","assets/chat-draft-JWz-JS1X.js","assets/use-deco-credits-CYakt-79.js","assets/use-open-billing-url-D4G9wMSG.js","assets/index-CwzAm9wC.js","assets/ai-providers-logos-DD3qZ33J.js","assets/input-DsO-XKG3.js","assets/suggestion-BJa7UCMt.js","assets/use-org-fs-CgDaP3QS.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-DIAXEFng.js","assets/plan-ladder-Dhy2mlD-.js","assets/add-connection-dialog-Cr3ZfKtA.js","assets/connection-card-C90049z-.js","assets/connection-slug-CITJ0kGN.js","assets/schema-4_stGcYx.js","assets/connection-form-helpers-BzLwdyrN.js","assets/collection-tabs-D4LYnWMJ.js","assets/use-infinite-scroll-Ce1Cyz0w.js","assets/useSuspenseInfiniteQuery-CXNJCW6q.js","assets/use-task-board-events-C6pDc0YD.js","assets/input-Bwd_JSM8.css","assets/releases-api-BbVlMuk_.js","assets/named-rule-uses-B_I9YE7f.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-Ciw0cmSs.js","assets/reports-Dl0n8WK0.css","assets/route-BHiTL7ed.js","assets/use-join-requests-C1STdVOR.js","assets/use-organization-roles-CaIcAuZI.js","assets/use-inbox-feed-BDXrK609.js","assets/task-key-BCHdFiOO.js","assets/daily-pulse-HnFS87ta.js","assets/config-Cbcgp9UG.js","assets/use-thread-analytics-Dv9Xhfh-.js","assets/project-profile-Cc4MG3QN.js","assets/use-project-native-view-presence-BixTQ7MO.js","assets/optimistic-project-sidebar-views-DpQUpW-I.js","assets/task-route-D8G4Pg9E.js","assets/thread-route-DL6c8KHu.js","assets/use-reports-diagnostic-BemHjjuV.js","assets/connect-layout-DkF_xYAi.js","assets/route-D2VIJZi7.js","assets/task-status-CR31LKK2.js","assets/use-main-panel-tabs-DZlakfZ7.js","assets/use-mcp-tools-DvShHfsn.js","assets/legacy-main-redirect-1pdawh_v.js","assets/preview-dialog-Dm182n0_.js","assets/preview-content-CmgkQhaE.js","assets/file-share-button-BXYaokcu.js","assets/file-preview-Ds8GbZw9.js","assets/home-CBeFS7md.js","assets/project-feed-DNMNyDPx.js","assets/client-icons-c8sjMYyL.js","assets/chart-PwHQXgEM.js","assets/ReferenceLine-BSuRAWbV.js","assets/CartesianChart-CLY0Gd8n.js","assets/BarChart-CQ6w7DQe.js","assets/ErrorBarContext-DivKrUmF.js","assets/task-assignee-avatar-CLWTu-qp.js","assets/projects-empty-state-BGI2AvCV.js","assets/agent-overview-CRm01uUj.js","assets/mini-report-page-BiZzy7Le.js","assets/project-tasks-BLptZtxw.js","assets/mock-board-CVxb9NJN.js","assets/use-task-board-analytics-CDja-5FD.js","assets/column-rules-BpHi7zUw.js","assets/use-automations-HMhC6FE5.js","assets/search-toggle-Cr4iRumB.js","assets/use-tags-DlHL5H_y.js","assets/index-Brzw7ag7.js","assets/index-DfuO6MLy.js","assets/use-task-board-item-prs-CNR5PS--.js","assets/thread-sheet-body-CyVr8d5d.js","assets/feature-gate-Cfw3cBLP.js","assets/project-reports-Cj0tAxbH.js","assets/reports-tab-BefEBqvf.js","assets/agent-site-editor-preview-4LTEMQ-T.js","assets/agent-view-guard-stsCu2yk.js","assets/agent-site-editor-content-B6Sevg3O.js","assets/agent-site-editor-code-DgzX4I9T.js","assets/agent-automations-Ck8TQkBX.js","assets/automation-list-row-xTorJPTy.js","assets/agent-automation-BvEH3OZS.js","assets/select-model-CWJxxZcQ.js","assets/build-improve-prompt-doc-DDR2Aibs.js","assets/use-debounced-autosave-V77TWUAY.js","assets/jira-icon-7MgMLks3.js","assets/multi-select-BRyAnutb.js","assets/automation-runs-DWryzRp5.js","assets/agent-settings-CDcmmP6N.js","assets/settings-tab-DgS3Wxee.js","assets/index-Bvthatnq.js","assets/use-date-fns-locale-CXWxLD_D.js","assets/use-mcp-auth-status-DLGEZPTH.js","assets/sections-ZoPCF-bt.js","assets/secret-picker-n5Ps6wSc.js","assets/use-secrets-BOgeYbQq.js","assets/agent-library-Bz6qO4Nh.js","assets/context-shell-CeIQn_AW.js","assets/use-org-repo-syncs-ZnbK4UNH.js","assets/folder-icon-BbmUc2dC.js","assets/require-capability-D2uGPRyV.js","assets/access-gate-DFESwNfG.js","assets/capability-load-error-RgpugPdP.js","assets/agent-assets-B9JCrCq8.js","assets/agent-releases-DWG_3zoJ.js","assets/agent-hosting-_4iDaET9.js","assets/agent-e2e-CLQ2N5KQ.js","assets/agent-analytics-D1M7QoAT.js","assets/analytics-tab-CkitXnj6.js","assets/AreaChart-CUZBfQth.js","assets/taskboard-analytics-C8Udie1K.js","assets/time-range-picker-CAYhviop.js","assets/analytics-sections-zQrwPGQJ.js","assets/agent-experiments-tdlFp9nd.js","assets/experiments-tab-CLo6r2ny.js","assets/site-draft-view-DQWTYqa5.js","assets/use-apply-named-rule-B2Zt8XIz.js","assets/agent-calendar-BDOSxsW_.js","assets/agent-monitor-D913p8vC.js","assets/cdn-tab-BGM8bPPG.js","assets/order-monitor-day-BGEK7Bpo.js","assets/agent-app-DOxuzP2R.js","assets/project-app-view-BCwQq4yH.js","assets/connect-source-dialog-B0JOTGvw.js","assets/agent-view-BC7_pZin.js","assets/agent-file-DCiJJt_1.js","assets/agent-deck-C-BZQCII.js","assets/agent-library-file-7MTfJn5J.js","assets/preview-panel-XXLWOdEl.js","assets/agent-connect-sources-CeRfuvcX.js","assets/legacy-agents-deep-CYw3qywU.js","assets/tasks-C4wpaTB2.js","assets/thread-analytics-9I9WwE29.js","assets/reports-pbzR9Ttf.js","assets/library-Cv7xPXE0.js","assets/plan-DpdYL_SC.js","assets/monitoring-CzxEm97T.js","assets/discover-CoyVnhtj.js","assets/index-DFWnsxkt.js","assets/route-D5SW2o-V.js","assets/index-redirect-C5brcMlb.js","assets/connections-C54oiD7H.js","assets/collection-display-button-DPP0I4kT.js","assets/use-delete-connection-B_LhNFqB.js","assets/connection-detail-DgU6Xe2S.js","assets/index-nN_gbtO8.js","assets/use-create-virtual-mcp-YK4tVtgK.js","assets/monitoring-stats-row-CpSxjpuK.js","assets/collection-detail-BPkemvs1.js","assets/index-BlnnRpsw.js","assets/general-Cz0YZJFb.js","assets/review-settings-D4PRtLEA.js","assets/domain-settings-Bi_Nf8Yz.js","assets/connect-CSSOksoc.js","assets/api-keys-CddzjTlY.js","assets/ai-providers-ymvf69U2.js","assets/infra-billing-CH6JZhsh.js","assets/secrets-CZjIZYlr.js","assets/api-keys-Dlh6QGx9.js","assets/buckets-Do7nX161.js","assets/repositories-BsvHkw06.js","assets/repositories-z8wEcK0M.js","assets/synced-repos-CLcW5MUO.js","assets/tasks-Blq-0J6L.js","assets/projects-BVfx1-an.js","assets/members-ByI1ytgm.js","assets/role-color-Dn2tXDDF.js","assets/roles-Dg57dBTr.js","assets/sso-CoZFsJu8.js","assets/profile-D2nKI0hH.js","assets/agents-list-Drp41B4W.js","assets/automations-BzmXycMB.js","assets/skills-NdjGdK_L.js","assets/memory-5atI8cIN.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-zLCkg8LX.js","assets/auth-entry-Bh9wXS29.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-BvrJixVI.js","assets/cli-auth-success-KhIa1i1d.js","assets/oauth-callback-Clp9_mQH.js","assets/mcp-oauth-CJZC8nld.js","assets/auth-BRizJz1-.js","assets/layout-BdGh_t6z.js","assets/required-auth-layout-DMJ9p0SW.js","assets/use-deployment-admin-2Gp9fLRN.js","assets/users-CQ7ISHLn.js","assets/collection-table-wrapper-Dt2ctjEE.js","assets/table-ByFmIMk8.js","assets/ArrowUp-hmPXempM.js","assets/empty-state-DHgdXyfD.js","assets/search-input-CI-RscAC.js","assets/SearchMd-BbTaBsWc.js","assets/badge-6mumabZP.js","assets/use-debounced-value-BgU5Mlo6.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-mkCn2L3g.js","assets/label-CjCrcKeN.js","assets/select-BjOZT7HR.js","assets/index-BdQq_4o_.js","assets/index-DgIUPTVB.js","assets/ChevronUp-B84nbyaB.js","assets/switch-BaweF4ir.js","assets/textarea-CiRqIfaf.js","assets/schema-C1grSGu6.js","assets/site-slug-DebpOoQq.js","assets/prompts-CjZHwr1o.js","assets/shell-layout-DDrdQOKB.js","assets/Building02-BP04ade-.js","assets/UserSquare-CBDcV-Sr.js","assets/agent-icon-Bo37g0fF.js","assets/AlertCircle-BQ7gdGwO.js","assets/Tool01-C4vr_Fbq.js","assets/ArrowLeft-CzKuuRT3.js","assets/LinkBroken01-Ps7Q2TgQ.js","assets/ShoppingBag01-2qRSy_0A.js","assets/ZoomOut-CeC9MLz9.js","assets/CheckCircle-BVnx66vP.js","assets/ChevronSelectorVertical-D6sC3Vmb.js","assets/Copy01-Bac6SVw1.js","assets/CreditCard01-t317btce.js","assets/DotsVertical-DjAfwlFJ.js","assets/Image01-CNDErtLw.js","assets/Globe04-DSBhW1To.js","assets/SwitchHorizontal01-DM99h8Bb.js","assets/Key01-C_7n0i1h.js","assets/Link01-kTPC8Qx-.js","assets/Minus-DwgwDeRT.js","assets/Monitor01-DLFV9f_c.js","assets/Sun-Cdvulc3r.js","assets/Play-CQGngRNi.js","assets/Plus-DOCl9FQV.js","assets/Trash01-7cnh0-6j.js","assets/Upload01-DJferCdW.js","assets/Users01-hfFVY4Rg.js","assets/XClose-B2l9VhGF.js","assets/use-project-scope-JP7EfYKk.js","assets/repository-binding-DSYWyWQk.js","assets/use-mcp-client-Db3WwHkW.js","assets/use-panel-navigate-BYbZXvp4.js","assets/thread-route-DCxAnsEA.js","assets/use-clock-tick-_wcwwysm.js","assets/command-Cn1kHhQA.js","assets/index-DMyWhhx4.js","assets/integration-icon-CiAW8rDV.js","assets/project-icon-C4YSWqLo.js","assets/new-project-dialog-BVdmAMTF.js","assets/repository-import-picker-CSAKO3X5.js","assets/use-navigate-to-agent-DH-wfLLT.js","assets/thread-intent-BAI3Rlfu.js","assets/watch-sse-pool-Cue4trO6.js","assets/task-board-CFm7hWmU.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-3tqi2Hvb.js","assets/tooltip-DZKcSDR4.js","assets/useInfiniteQuery-gMQYsgHb.js","assets/infiniteQueryObserver-koP9jk4d.js","assets/collection-search-INMm_CkT.js","assets/use-organization-settings-DOUb81j1.js","assets/autosend-DweeW6OU.js","assets/use-org-sso-dGa9sTJw.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-zwPhPqAT.js","assets/organization-choice-9p7y5Qyt.js","assets/reports-onboarding-PhZdbYYv.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-Ci-3-YrG.js","assets/form-oXstmc9Q.js","assets/companion-mcps-section-C6y38zop.js","assets/use-connect-companion-DqnlsCkr.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/icon-button-vGME3QbC.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-DQ6fzXUk.js","assets/authenticate-and-persist-oauth-DzQvKWuf.js","assets/mcp-oauth-CfI4AoXx.js","assets/track-CPKI19Qd.js","assets/extract-connection-data-BPic6jPp.js","assets/connection-Dizw96b7.js","assets/url-slug-B3-3kua2.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-DPHanNqQ.js","assets/site-editor-uqa8dwZT.js","assets/chat-context-BfN3Aasc.js","assets/use-decopilot-events-aPDwNsv_.js","assets/use-ai-providers-t0yXUakZ.js","assets/location-V0VwTJTt.js","assets/index-CUZ1Ro0y.js","assets/use-mobile-BihCEjWm.js","assets/use-sidebar-collapsed-B3wyR6wL.js","assets/use-chat-layout-state-Be7PCK7m.js","assets/toolbar-icon-button-DPdWBHmX.js","assets/sheet-DfTFlGFH.js","assets/resizable-CWhIVRKn.js","assets/index-CTcO2Era.js","assets/core.esm-BdDh475y.js","assets/sortable.esm-bTAsk8Vk.js","assets/context-menu-gP7nFahM.js","assets/project-apps-CUVHvRf7.js","assets/use-recent-apps-CXehLx4B.js","assets/blocks-preview-workspace-context-CQlVHIqR.js","assets/site-editor-toast-SKvfrYhz.js","assets/use-session-runtime-Bp29dZ9K.js","assets/experiments-tab-choice-DdG3xkHn.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-rLTU2EyK.js","assets/use-sandbox-events-DoS1U6Xg.js","assets/sandbox-git-api-CH_-QFpD.js","assets/preview-tab-CZ3Cot3B.js","assets/held-block-view-CpXdgp7m.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BlVTZ-F_.js","assets/collapsible-BN3qlGJC.js","assets/use-copy-CRYT_lEh.js","assets/usage-stats-D7pL8W8y.js","assets/tool-namespace-MjGHB-2n.js","assets/utils-CVEq3hMx.js","assets/markdown-Cqcjq3Xf.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-dATLexqT.js","assets/types-D-tO7eft.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-connection-BwtjQBnQ.js","assets/use-mcp-prompts-D76okIQm.js","assets/use-thread-outputs-C5vhvZFZ.js","assets/file-type-icon-D98G7WK4.js","assets/section-array-field-DvT6jzl0.js","assets/alert-DGv9RNV8.js","assets/parse-sections-D3_nSXsH.js","assets/blocks-tab-states-5o0yQDwk.js","assets/slider-DrOo7_UG.js","assets/index-CAdTS9ZX.js","assets/tooltipContext-J8gN2jYl.js","assets/CategoricalChart-GePqKrAt.js","assets/index-BapUxZWk.js","assets/ActiveShapeUtils-CwNMVlsU.js","assets/Sector-CZev-ohv.js","assets/symbol-CJnTkOND.js","assets/popover-C6LRW83t.js","assets/scroll-area-Dbl0Ja6M.js","assets/monaco-editor-5y8rZvs2.js","assets/editor-C2vaY1i0.js","assets/calendar-lhJ8p0qo.js","assets/editor-classes-wrVHQOxp.js","assets/toggle-group-DkOJZdVq.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-BO0oi3KV.js","assets/tabs-C_tuCc9E.js","assets/use-file-configs-DG6lQxbS.js","assets/asset-utils-BFPFspZC.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-BVJJp5p1.js","assets/variant-matcher-override-CMTA6uf4.js","assets/variant-draft-pointer-BeAKcq_c.js","assets/section-preview-url-7zfngvgW.js","assets/use-fast-preview-draft-url-DfZ_rD3i.js","assets/preview-link-C762yHOt.js","assets/device-hint-SeLRi17j.js","assets/virtual-mcp-D2W6CtJ3.js","assets/app-preview-url-9Od4s8Sz.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-B9_EDVoX.js","assets/content-tab-gYwhAZMG.js","assets/mustache-C57uA7K3.js","assets/use-content-sync-Cnva7d9w.js","assets/checkbox-BGizxNX2.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-CkTgDd_J.js","assets/empty-state-BIXUpBao.js","assets/tab-icon-glyph-Dka1P8cQ.js","assets/resolve-tab-icon-l6kvyo7T.js","assets/agent-site-editor-BSG_1jHk.js","assets/site-draft-actions-CGinyKcf.js","assets/separator-CjZHveNE.js","assets/use-releases-BN_Y86Es.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-BVIkRnC2.js","assets/drawer-LA3NkA0S.js","assets/input-nNYp-8x6.js","assets/chat-draft-1H_chlRR.js","assets/use-deco-credits-DRFtUrcE.js","assets/use-open-billing-url-BRN6W4Vx.js","assets/index-20HoU-20.js","assets/ai-providers-logos-DD3qZ33J.js","assets/input-B3p7vRnZ.js","assets/suggestion-D6r-qU7q.js","assets/use-org-fs-DYzo-CVk.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-0Gw_Q4lr.js","assets/plan-ladder-BQnQ-c-o.js","assets/add-connection-dialog-DarQ1krm.js","assets/connection-card-D3-Gdl0S.js","assets/connection-slug-CITJ0kGN.js","assets/schema-BcGVNeII.js","assets/connection-form-helpers-DYxyLK9S.js","assets/collection-tabs-SEBBjtRQ.js","assets/use-infinite-scroll-_QxCAV2S.js","assets/useSuspenseInfiniteQuery-huohnS0M.js","assets/use-task-board-events-BWNw3HI5.js","assets/input-Bwd_JSM8.css","assets/releases-api-BXtcXUmK.js","assets/named-rule-uses-ZJHANdK7.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-CjzKQyjq.js","assets/reports-Dl0n8WK0.css","assets/route-C4rRmU6W.js","assets/use-join-requests-6CPF_lfc.js","assets/use-organization-roles-DNM22dA7.js","assets/use-inbox-feed-BAUqtwyl.js","assets/task-key-BCHdFiOO.js","assets/daily-pulse-Ir1cHSjy.js","assets/config-BmU_9L81.js","assets/use-thread-analytics-DJ-a1GYM.js","assets/project-profile-Cc4MG3QN.js","assets/use-project-native-view-presence-DaDkyw-s.js","assets/optimistic-project-sidebar-views-p4b0qW4M.js","assets/task-route-CroNqaC_.js","assets/thread-route-Nzl7YVXC.js","assets/use-reports-diagnostic-R8fOEnxQ.js","assets/connect-layout-fE-7a2Jq.js","assets/route-BDXg8II4.js","assets/task-status-SVf_UHQ8.js","assets/use-main-panel-tabs-CKFNH0cz.js","assets/use-mcp-tools-BqAiOdl2.js","assets/legacy-main-redirect-yklNT500.js","assets/preview-dialog-CrPz9LUi.js","assets/preview-content-C-60FNpz.js","assets/file-share-button-Dj47FtSF.js","assets/file-preview-BHY7-Pu0.js","assets/home-DzHhk92o.js","assets/project-feed-BUL7QZMR.js","assets/client-icons-BB7vt0gq.js","assets/chart-DgE2oixW.js","assets/ReferenceLine-BW-WOxqj.js","assets/CartesianChart-B5qhARMe.js","assets/BarChart-CqU2QH_G.js","assets/ErrorBarContext-DRnbzo4s.js","assets/task-assignee-avatar-pNz0ct84.js","assets/projects-empty-state-BkJevxQj.js","assets/agent-overview-mxgKSo__.js","assets/mini-report-page-pa3awJPv.js","assets/project-tasks-CkDZssBo.js","assets/mock-board-DKq30aNi.js","assets/use-task-board-analytics-DIHarjfC.js","assets/column-rules-BL4ZPS3s.js","assets/use-automations-DvxXx4v3.js","assets/search-toggle-DfEbn4An.js","assets/use-tags-CyP6VoHu.js","assets/index-B0CHXOni.js","assets/index-BcT8d0Ct.js","assets/use-task-board-item-prs-BhBkGpQk.js","assets/thread-sheet-body-CpP9OOWv.js","assets/feature-gate-uVlfgQri.js","assets/project-reports-BkL-vra7.js","assets/reports-tab-Cl5b6xq6.js","assets/agent-site-editor-preview-BMX4-2ho.js","assets/agent-view-guard-BHNxFqz2.js","assets/agent-site-editor-content-243OnENt.js","assets/agent-site-editor-code-CN1FjAA8.js","assets/agent-automations-BFozFJzs.js","assets/automation-list-row-DH4mXmBN.js","assets/agent-automation-DXTohqIP.js","assets/select-model-DkLK9HGj.js","assets/build-improve-prompt-doc-CNSfu0YZ.js","assets/use-debounced-autosave-CQ0k7XU4.js","assets/jira-icon-CPygEn4Q.js","assets/multi-select-B11Nwxds.js","assets/automation-runs-DJix-DxY.js","assets/agent-settings-DEMD2MSc.js","assets/settings-tab-D7kokq_E.js","assets/index-BcOdVYcr.js","assets/use-date-fns-locale-DF7pxcBk.js","assets/use-mcp-auth-status-CG_Nglqa.js","assets/sections-qI0m5KhX.js","assets/secret-picker-Cki8V7fz.js","assets/use-secrets-D5GrKapk.js","assets/agent-library-CF5liEzt.js","assets/context-shell-sMRc_A5o.js","assets/use-org-repo-syncs-D2UZHvP3.js","assets/folder-icon-CMFoNGkh.js","assets/require-capability-CLXh_YYN.js","assets/access-gate-BanurxIu.js","assets/capability-load-error-C3GmqKPQ.js","assets/agent-assets-vnboyQof.js","assets/agent-releases-Bg7ZL_Eh.js","assets/agent-hosting-Drya8fUU.js","assets/agent-e2e-DinWmv8w.js","assets/agent-analytics-Cazr3KtN.js","assets/analytics-tab-KcCM-OzF.js","assets/AreaChart-2TBYeD3-.js","assets/taskboard-analytics-BPmcL0th.js","assets/time-range-picker-8OmeiBBB.js","assets/analytics-sections-BwRAKayH.js","assets/agent-experiments-mSZe2g7e.js","assets/experiments-tab-DOsWoa0_.js","assets/site-draft-view-zFIJN3xy.js","assets/use-apply-named-rule-x6zm2qwO.js","assets/agent-calendar-DVHehu_x.js","assets/agent-monitor-D_MkJVMA.js","assets/cdn-tab-MGIcjUqn.js","assets/order-monitor-day-CqO3tTmM.js","assets/agent-app-C_2G2yFw.js","assets/project-app-view-BN5-NmcY.js","assets/connect-source-dialog-Cxd2UcNI.js","assets/agent-view-CC8vCjbP.js","assets/agent-file-CXwfpXiU.js","assets/agent-deck-DvlsuAfl.js","assets/agent-library-file-CdQ4OD0k.js","assets/preview-panel-tI2aO6cK.js","assets/agent-connect-sources-CwKjdmVU.js","assets/legacy-agents-deep-Cm0fVoJt.js","assets/tasks-CAcr5cg4.js","assets/thread-analytics-VH5cv6lu.js","assets/reports-Dqbx9vvQ.js","assets/library-DxYyWAwR.js","assets/plan-ea0rrjrS.js","assets/monitoring-CGJWrng1.js","assets/discover-Dgk-X72W.js","assets/index-CKwkOVRk.js","assets/route-CBQzhShl.js","assets/index-redirect-BcArEk0h.js","assets/connections-Ba6gsUgY.js","assets/collection-display-button-CFQaHfMS.js","assets/use-delete-connection-DB3Kupec.js","assets/connection-detail-Chq5IDv2.js","assets/index-C4-Z_rKB.js","assets/use-create-virtual-mcp-B7toVaXI.js","assets/monitoring-stats-row-CKIqhhys.js","assets/collection-detail-BaXvekU8.js","assets/index-BBCK9r3-.js","assets/general-Dg84kr26.js","assets/review-settings-CXbKpHZd.js","assets/domain-settings-DXLwO71Z.js","assets/connect-Bf0Ja-ij.js","assets/api-keys-BYiu4OiJ.js","assets/ai-providers-BnPLndR5.js","assets/infra-billing-Dh0UUr_Y.js","assets/secrets-CiPY8Xbn.js","assets/api-keys-Ix_KjoIE.js","assets/buckets-BXoMxN54.js","assets/repositories-CXJpDO8c.js","assets/repositories-Df9FHJII.js","assets/synced-repos-BD02afV5.js","assets/tasks-CcIwJnqw.js","assets/projects-Dd92LlpW.js","assets/members-4PYMHLuR.js","assets/role-color-Dn2tXDDF.js","assets/roles-DSB-aYYs.js","assets/sso-BwNLNHyD.js","assets/profile-tb3VLWGr.js","assets/agents-list-LjE12uZe.js","assets/automations-BGTqqP4a.js","assets/skills-B_QDMWu_.js","assets/memory-C6HI5VGy.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function J8(t,e){for(var o=0;o<e.length;o++){const a=e[o];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in t)){const r=Object.getOwnPropertyDescriptor(a,n);r&&Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();var bTe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var VS={exports:{}},Uu={};var vA;function X8(){if(vA)return Uu;vA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function o(a,n,r){var s=null;if(r!==void 0&&(s=""+r),n.key!==void 0&&(s=""+n.key),"key"in n){r={};for(var c in n)c!=="key"&&(r[c]=n[c])}else r=n;return n=r.ref,{$$typeof:t,type:a,key:s,ref:n!==void 0?n:null,props:r}}return Uu.Fragment=e,Uu.jsx=o,Uu.jsxs=o,Uu}var bA;function e$(){return bA||(bA=1,VS.exports=X8()),VS.exports}var b=e$(),HS={exports:{}},dt={};var yA;function t$(){if(yA)return dt;yA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=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 y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function w(N,G,V){this.props=N,this.context=G,this.refs=x,this.updater=V||y}w.prototype.isReactComponent={},w.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")},w.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function k(){}k.prototype=w.prototype;function _(N,G,V){this.props=N,this.context=G,this.refs=x,this.updater=V||y}var C=_.prototype=new k;C.constructor=_,S(C,w.prototype),C.isPureReactComponent=!0;var P=Array.isArray;function D(){}var R={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function L(N,G,V){var I=V.ref;return{$$typeof:t,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===t}function z(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(V){return G[V]})}var F=/\/+/g;function W(N,G){return typeof N=="object"&&N!==null&&N.key!=null?z(""+N.key):G.toString(36)}function oe(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(D,D):(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,j){var X=typeof N;(X==="undefined"||X==="boolean")&&(N=null);var de=!1;if(N===null)de=!0;else switch(X){case"bigint":case"string":case"number":de=!0;break;case"object":switch(N.$$typeof){case t:case e:de=!0;break;case m:return de=N._init,H(de(N._payload),G,V,I,j)}}if(de)return j=j(N),de=I===""?"."+W(N,0):I,P(j)?(V="",de!=null&&(V=de.replace(F,"$&/")+"/"),H(j,G,V,"",function(Ue){return Ue})):j!=null&&(B(j)&&(j=$(j,V+(j.key==null||N&&N.key===j.key?"":(""+j.key).replace(F,"$&/")+"/")+de)),G.push(j)),1;de=0;var ue=I===""?".":I+":";if(P(N))for(var Ce=0;Ce<N.length;Ce++)I=N[Ce],X=ue+W(I,Ce),de+=H(I,G,V,X,j);else if(Ce=v(N),typeof Ce=="function")for(N=Ce.call(N),Ce=0;!(I=N.next()).done;)I=I.value,X=ue+W(I,Ce++),de+=H(I,G,V,X,j);else if(X==="object"){if(typeof N.then=="function")return H(oe(N),G,V,I,j);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 de}function K(N,G,V){if(N==null)return N;var I=[],j=0;return H(N,I,"","",function(X){return G.call(V,X,j++)}),I}function J(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 ie=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:K,forEach:function(N,G,V){K(N,function(){G.apply(this,arguments)},V)},count:function(N){var G=0;return K(N,function(){G++}),G},toArray:function(N){return K(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 dt.Activity=h,dt.Children=Q,dt.Component=w,dt.Fragment=o,dt.Profiler=n,dt.PureComponent=_,dt.StrictMode=a,dt.Suspense=d,dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,dt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return R.H.useMemoCache(N)}},dt.cache=function(N){return function(){return N.apply(null,arguments)}},dt.cacheSignal=function(){return null},dt.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),j=N.key;if(G!=null)for(X in G.key!==void 0&&(j=""+G.key),G)!O.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(I[X]=G[X]);var X=arguments.length-2;if(X===1)I.children=V;else if(1<X){for(var de=Array(X),ue=0;ue<X;ue++)de[ue]=arguments[ue+2];I.children=de}return L(N.type,j,I)},dt.createContext=function(N){return N={$$typeof:s,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:r,_context:N},N},dt.createElement=function(N,G,V){var I,j={},X=null;if(G!=null)for(I in G.key!==void 0&&(X=""+G.key),G)O.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(j[I]=G[I]);var de=arguments.length-2;if(de===1)j.children=V;else if(1<de){for(var ue=Array(de),Ce=0;Ce<de;Ce++)ue[Ce]=arguments[Ce+2];j.children=ue}if(N&&N.defaultProps)for(I in de=N.defaultProps,de)j[I]===void 0&&(j[I]=de[I]);return L(N,X,j)},dt.createRef=function(){return{current:null}},dt.forwardRef=function(N){return{$$typeof:c,render:N}},dt.isValidElement=B,dt.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:J}},dt.memo=function(N,G){return{$$typeof:u,type:N,compare:G===void 0?null:G}},dt.startTransition=function(N){var G=R.T,V={};R.T=V;try{var I=N(),j=R.S;j!==null&&j(V,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(D,ie)}catch(X){ie(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),R.T=G}},dt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},dt.use=function(N){return R.H.use(N)},dt.useActionState=function(N,G,V){return R.H.useActionState(N,G,V)},dt.useCallback=function(N,G){return R.H.useCallback(N,G)},dt.useContext=function(N){return R.H.useContext(N)},dt.useDebugValue=function(){},dt.useDeferredValue=function(N,G){return R.H.useDeferredValue(N,G)},dt.useEffect=function(N,G){return R.H.useEffect(N,G)},dt.useEffectEvent=function(N){return R.H.useEffectEvent(N)},dt.useId=function(){return R.H.useId()},dt.useImperativeHandle=function(N,G,V){return R.H.useImperativeHandle(N,G,V)},dt.useInsertionEffect=function(N,G){return R.H.useInsertionEffect(N,G)},dt.useLayoutEffect=function(N,G){return R.H.useLayoutEffect(N,G)},dt.useMemo=function(N,G){return R.H.useMemo(N,G)},dt.useOptimistic=function(N,G){return R.H.useOptimistic(N,G)},dt.useReducer=function(N,G,V){return R.H.useReducer(N,G,V)},dt.useRef=function(N){return R.H.useRef(N)},dt.useState=function(N){return R.H.useState(N)},dt.useSyncExternalStore=function(N,G,V){return R.H.useSyncExternalStore(N,G,V)},dt.useTransition=function(){return R.H.useTransition()},dt.version="19.2.6",dt}var SA;function qs(){return SA||(SA=1,HS.exports=t$()),HS.exports}var A=qs();const ee=Wl(A),nk=J8({__proto__:null,default:ee},[A]);var GS={exports:{}},$u={},WS={exports:{}},KS={};var TA;function o$(){return TA||(TA=1,(function(t){function e(H,K){var J=H.length;H.push(K);e:for(;0<J;){var ie=J-1>>>1,Q=H[ie];if(0<n(Q,K))H[ie]=K,H[J]=Q,J=ie;else break e}}function o(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var K=H[0],J=H.pop();if(J!==K){H[0]=J;e:for(var ie=0,Q=H.length,N=Q>>>1;ie<N;){var G=2*(ie+1)-1,V=H[G],I=G+1,j=H[I];if(0>n(V,J))I<Q&&0>n(j,V)?(H[ie]=j,H[I]=J,ie=I):(H[ie]=V,H[G]=J,ie=G);else if(I<Q&&0>n(j,J))H[ie]=j,H[I]=J,ie=I;else break e}}return K}function n(H,K){var J=H.sortIndex-K.sortIndex;return J!==0?J:H.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;t.unstable_now=function(){return r.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var d=[],u=[],m=1,h=null,f=3,v=!1,y=!1,S=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function C(H){for(var K=o(u);K!==null;){if(K.callback===null)a(u);else if(K.startTime<=H)a(u),K.sortIndex=K.expirationTime,e(d,K);else break;K=o(u)}}function P(H){if(S=!1,C(H),!y)if(o(d)!==null)y=!0,D||(D=!0,z());else{var K=o(u);K!==null&&oe(P,K.startTime-H)}}var D=!1,R=-1,O=5,L=-1;function $(){return x?!0:!(t.unstable_now()-L<O)}function B(){if(x=!1,D){var H=t.unstable_now();L=H;var K=!0;try{e:{y=!1,S&&(S=!1,k(R),R=-1),v=!0;var J=f;try{t:{for(C(H),h=o(d);h!==null&&!(h.expirationTime>H&&$());){var ie=h.callback;if(typeof ie=="function"){h.callback=null,f=h.priorityLevel;var Q=ie(h.expirationTime<=H);if(H=t.unstable_now(),typeof Q=="function"){h.callback=Q,C(H),K=!0;break t}h===o(d)&&a(d),C(H)}else a(d);h=o(d)}if(h!==null)K=!0;else{var N=o(u);N!==null&&oe(P,N.startTime-H),K=!1}}break e}finally{h=null,f=J,v=!1}K=void 0}}finally{K?z():D=!1}}}var z;if(typeof _=="function")z=function(){_(B)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,W=F.port2;F.port1.onmessage=B,z=function(){W.postMessage(null)}}else z=function(){w(B,0)};function oe(H,K){R=w(function(){H(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.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},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(H){switch(f){case 1:case 2:case 3:var K=3;break;default:K=f}var J=f;f=K;try{return H()}finally{f=J}},t.unstable_requestPaint=function(){x=!0},t.unstable_runWithPriority=function(H,K){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var J=f;f=H;try{return K()}finally{f=J}},t.unstable_scheduleCallback=function(H,K,J){var ie=t.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ie+J:ie):J=ie,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=J+Q,H={id:m++,callback:K,priorityLevel:H,startTime:J,expirationTime:Q,sortIndex:-1},J>ie?(H.sortIndex=J,e(u,H),o(d)===null&&H===o(u)&&(S?(k(R),R=-1):S=!0,oe(P,J-ie))):(H.sortIndex=Q,e(d,H),y||v||(y=!0,D||(D=!0,z()))),H},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(H){var K=f;return function(){var J=f;f=K;try{return H.apply(this,arguments)}finally{f=J}}}})(KS)),KS}var wA;function a$(){return wA||(wA=1,WS.exports=o$()),WS.exports}var YS={exports:{}},Na={};var xA;function n$(){if(xA)return Na;xA=1;var t=qs();function e(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)u+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+u+" 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(e(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 r(d,u,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:d,containerInfo:u,implementation:m}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Na.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Na.createPortal=function(d,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return r(d,u,null,m)},Na.flushSync=function(d){var u=s.T,m=a.p;try{if(s.T=null,a.p=2,d)return d()}finally{s.T=u,a.p=m,a.d.f()}},Na.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,a.d.C(d,u))},Na.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},Na.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,v=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?a.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:v}):m==="script"&&a.d.X(d,{crossOrigin:h,integrity:f,fetchPriority:v,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Na.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var m=c(u.as,u.crossOrigin);a.d.M(d,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&a.d.M(d)},Na.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin);a.d.L(d,m,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Na.preloadModule=function(d,u){if(typeof d=="string")if(u){var m=c(u.as,u.crossOrigin);a.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else a.d.m(d)},Na.requestFormReset=function(d){a.d.r(d)},Na.unstable_batchedUpdates=function(d,u){return d(u)},Na.useFormState=function(d,u,m){return s.H.useFormState(d,u,m)},Na.useFormStatus=function(){return s.H.useHostTransitionStatus()},Na.version="19.2.6",Na}var kA;function mN(){if(kA)return YS.exports;kA=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),YS.exports=n$(),YS.exports}var CA;function r$(){if(CA)return $u;CA=1;var t=a$(),e=qs(),o=mN();function a(i){var l="https://react.dev/errors/"+i;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+i+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function r(i){var l=i,p=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(p=l.return),i=l.return;while(i)}return l.tag===3?p:null}function s(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function c(i){if(i.tag===31){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function d(i){if(r(i)!==i)throw Error(a(188))}function u(i){var l=i.alternate;if(!l){if(l=r(i),l===null)throw Error(a(188));return l!==i?null:i}for(var p=i,g=l;;){var T=p.return;if(T===null)break;var E=T.alternate;if(E===null){if(g=T.return,g!==null){p=g;continue}break}if(T.child===E.child){for(E=T.child;E;){if(E===p)return d(T),i;if(E===g)return d(T),l;E=E.sibling}throw Error(a(188))}if(p.return!==g.return)p=T,g=E;else{for(var M=!1,U=T.child;U;){if(U===p){M=!0,p=T,g=E;break}if(U===g){M=!0,g=T,p=E;break}U=U.sibling}if(!M){for(U=E.child;U;){if(U===p){M=!0,p=E,g=T;break}if(U===g){M=!0,g=E,p=T;break}U=U.sibling}if(!M)throw Error(a(189))}}if(p.alternate!==g)throw Error(a(190))}if(p.tag!==3)throw Error(a(188));return p.stateNode.current===p?i:l}function m(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i;for(i=i.child;i!==null;){if(l=m(i),l!==null)return l;i=i.sibling}return null}var h=Object.assign,f=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),_=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function z(i){return i===null||typeof i!="object"?null:(i=B&&i[B]||i["@@iterator"],typeof i=="function"?i:null)}var F=Symbol.for("react.client.reference");function W(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===F?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case S:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList";case L:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case _:return i.displayName||"Context";case k:return(i._context.displayName||"Context")+".Consumer";case C:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case R:return l=i.displayName||null,l!==null?l:W(i.type)||"Memo";case O:l=i._payload,i=i._init;try{return W(i(l))}catch{}}return null}var oe=Array.isArray,H=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ie=[],Q=-1;function N(i){return{current:i}}function G(i){0>Q||(i.current=ie[Q],ie[Q]=null,Q--)}function V(i,l){Q++,ie[Q]=i.current,i.current=l}var I=N(null),j=N(null),X=N(null),de=N(null);function ue(i,l){switch(V(X,l),V(j,i),V(I,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?z1(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=z1(l),i=U1(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}G(I),V(I,i)}function Ce(){G(I),G(j),G(X)}function Ue(i){i.memoizedState!==null&&V(de,i);var l=I.current,p=U1(l,i.type);l!==p&&(V(j,i),V(I,p))}function Z(i){j.current===i&&(G(I),G(j)),de.current===i&&(G(de),Bu._currentValue=J)}var ne,ve;function se(i){if(ne===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);ne=l&&l[1]||"",ve=-1<p.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ne+i+ve}var xe=!1;function _e(i,l){if(!i||xe)return"";xe=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(l){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(fe){var he=fe}Reflect.construct(i,[],ke)}else{try{ke.call()}catch(fe){he=fe}i.call(ke.prototype)}}else{try{throw Error()}catch(fe){he=fe}(ke=i())&&typeof ke.catch=="function"&&ke.catch(function(){})}}catch(fe){if(fe&&he&&typeof fe.stack=="string")return[fe.stack,he.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=g.DetermineComponentFrameRoot(),M=E[0],U=E[1];if(M&&U){var te=M.split(`
|
|
@@ -52,7 +52,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
52
52
|
|| ${O} === "boolean" || ${D} === null`).assign(L,(0,a._)`[${D}]`)}}}function f({gen:k,parentData:_,parentDataProperty:C},P){k.if((0,a._)`${_} !== undefined`,()=>k.assign((0,a._)`${_}[${C}]`,P))}function v(k,_,C,P=r.Correct){const D=P===r.Correct?a.operators.EQ:a.operators.NEQ;let R;switch(k){case"null":return(0,a._)`${_} ${D} null`;case"array":R=(0,a._)`Array.isArray(${_})`;break;case"object":R=(0,a._)`${_} && typeof ${_} == "object" && !Array.isArray(${_})`;break;case"integer":R=O((0,a._)`!(${_} % 1) && !isNaN(${_})`);break;case"number":R=O();break;default:return(0,a._)`typeof ${_} ${D} ${k}`}return P===r.Correct?R:(0,a.not)(R);function O(L=a.nil){return(0,a.and)((0,a._)`typeof ${_} == "number"`,L,C?(0,a._)`isFinite(${_})`:a.nil)}}Ta.checkDataType=v;function y(k,_,C,P){if(k.length===1)return v(k[0],_,C,P);let D;const R=(0,n.toHash)(k);if(R.array&&R.object){const O=(0,a._)`typeof ${_} != "object"`;D=R.null?O:(0,a._)`!${_} || ${O}`,delete R.null,delete R.array,delete R.object}else D=a.nil;R.number&&delete R.integer;for(const O in R)D=(0,a.and)(D,v(O,_,C,P));return D}Ta.checkDataTypes=y;const S={message:({schema:k})=>`must be ${k}`,params:({schema:k,schemaValue:_})=>typeof k=="string"?(0,a._)`{type: ${k}}`:(0,a._)`{type: ${_}}`};function x(k){const _=w(k);(0,o.reportError)(_,S)}Ta.reportTypeError=x;function w(k){const{gen:_,data:C,schema:P}=k,D=(0,n.schemaRefOrVal)(k,P,"type");return{gen:_,keyword:"type",data:C,schema:P.type,schemaCode:D,schemaValue:D,parentSchema:P,params:{},it:k}}return Ta}var Wu={},HR;function xZ(){if(HR)return Wu;HR=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.assignDefaults=void 0;const t=St(),e=Ft();function o(n,r){const{properties:s,items:c}=n.schema;if(r==="object"&&s)for(const d in s)a(n,d,s[d].default);else r==="array"&&Array.isArray(c)&&c.forEach((d,u)=>a(n,u,d.default))}Wu.assignDefaults=o;function a(n,r,s){const{gen:c,compositeRule:d,data:u,opts:m}=n;if(s===void 0)return;const h=(0,t._)`${u}${(0,t.getProperty)(r)}`;if(d){(0,e.checkStrictMode)(n,`default is ignored for: ${h}`);return}let f=(0,t._)`${h} === undefined`;m.useDefaults==="empty"&&(f=(0,t._)`${f} || ${h} === null || ${h} === ""`),c.if(f,(0,t._)`${h} = ${(0,t.stringify)(s)}`)}return Wu}var gr={},Zt={},GR;function Dr(){if(GR)return Zt;GR=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.validateUnion=Zt.validateArray=Zt.usePattern=Zt.callValidateCode=Zt.schemaProperties=Zt.allSchemaProperties=Zt.noPropertyInData=Zt.propertyInData=Zt.isOwnProperty=Zt.hasPropFunc=Zt.reportMissingProp=Zt.checkMissingProp=Zt.checkReportMissingProp=void 0;const t=St(),e=Ft(),o=Ys(),a=Ft();function n(k,_){const{gen:C,data:P,it:D}=k;C.if(m(C,P,_,D.opts.ownProperties),()=>{k.setParams({missingProperty:(0,t._)`${_}`},!0),k.error()})}Zt.checkReportMissingProp=n;function r({gen:k,data:_,it:{opts:C}},P,D){return(0,t.or)(...P.map(R=>(0,t.and)(m(k,_,R,C.ownProperties),(0,t._)`${D} = ${R}`)))}Zt.checkMissingProp=r;function s(k,_){k.setParams({missingProperty:_},!0),k.error()}Zt.reportMissingProp=s;function c(k){return k.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}Zt.hasPropFunc=c;function d(k,_,C){return(0,t._)`${c(k)}.call(${_}, ${C})`}Zt.isOwnProperty=d;function u(k,_,C,P){const D=(0,t._)`${_}${(0,t.getProperty)(C)} !== undefined`;return P?(0,t._)`${D} && ${d(k,_,C)}`:D}Zt.propertyInData=u;function m(k,_,C,P){const D=(0,t._)`${_}${(0,t.getProperty)(C)} === undefined`;return P?(0,t.or)(D,(0,t.not)(d(k,_,C))):D}Zt.noPropertyInData=m;function h(k){return k?Object.keys(k).filter(_=>_!=="__proto__"):[]}Zt.allSchemaProperties=h;function f(k,_){return h(_).filter(C=>!(0,e.alwaysValidSchema)(k,_[C]))}Zt.schemaProperties=f;function v({schemaCode:k,data:_,it:{gen:C,topSchemaRef:P,schemaPath:D,errorPath:R},it:O},L,$,B){const z=B?(0,t._)`${k}, ${_}, ${P}${D}`:_,F=[[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,R)],[o.default.parentData,O.parentData],[o.default.parentDataProperty,O.parentDataProperty],[o.default.rootData,o.default.rootData]];O.opts.dynamicRef&&F.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const W=(0,t._)`${z}, ${C.object(...F)}`;return $!==t.nil?(0,t._)`${L}.call(${$}, ${W})`:(0,t._)`${L}(${W})`}Zt.callValidateCode=v;const y=(0,t._)`new RegExp`;function S({gen:k,it:{opts:_}},C){const P=_.unicodeRegExp?"u":"",{regExp:D}=_.code,R=D(C,P);return k.scopeValue("pattern",{key:R.toString(),ref:R,code:(0,t._)`${D.code==="new RegExp"?y:(0,a.useFunc)(k,D)}(${C}, ${P})`})}Zt.usePattern=S;function x(k){const{gen:_,data:C,keyword:P,it:D}=k,R=_.name("valid");if(D.allErrors){const L=_.let("valid",!0);return O(()=>_.assign(L,!1)),L}return _.var(R,!0),O(()=>_.break()),R;function O(L){const $=_.const("len",(0,t._)`${C}.length`);_.forRange("i",0,$,B=>{k.subschema({keyword:P,dataProp:B,dataPropType:e.Type.Num},R),_.if((0,t.not)(R),L)})}}Zt.validateArray=x;function w(k){const{gen:_,schema:C,keyword:P,it:D}=k;if(!Array.isArray(C))throw new Error("ajv implementation error");if(C.some($=>(0,e.alwaysValidSchema)(D,$))&&!D.opts.unevaluated)return;const O=_.let("valid",!1),L=_.name("_valid");_.block(()=>C.forEach(($,B)=>{const z=k.subschema({keyword:P,schemaProp:B,compositeRule:!0},L);_.assign(O,(0,t._)`${O} || ${L}`),k.mergeValidEvaluated(z,L)||_.if((0,t.not)(O))})),k.result(O,()=>k.reset(),()=>k.error(!0))}return Zt.validateUnion=w,Zt}var WR;function kZ(){if(WR)return gr;WR=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateKeywordUsage=gr.validSchemaType=gr.funcKeywordCode=gr.macroKeywordCode=void 0;const t=St(),e=Ys(),o=Dr(),a=Jv();function n(f,v){const{gen:y,keyword:S,schema:x,parentSchema:w,it:k}=f,_=v.macro.call(k.self,x,w,k),C=u(y,S,_);k.opts.validateSchema!==!1&&k.self.validateSchema(_,!0);const P=y.name("valid");f.subschema({schema:_,schemaPath:t.nil,errSchemaPath:`${k.errSchemaPath}/${S}`,topSchemaRef:C,compositeRule:!0},P),f.pass(P,()=>f.error(!0))}gr.macroKeywordCode=n;function r(f,v){var y;const{gen:S,keyword:x,schema:w,parentSchema:k,$data:_,it:C}=f;d(C,v);const P=!_&&v.compile?v.compile.call(C.self,w,k,C):v.validate,D=u(S,x,P),R=S.let("valid");f.block$data(R,O),f.ok((y=v.valid)!==null&&y!==void 0?y:R);function O(){if(v.errors===!1)B(),v.modifying&&s(f),z(()=>f.error());else{const F=v.async?L():$();v.modifying&&s(f),z(()=>c(f,F))}}function L(){const F=S.let("ruleErrs",null);return S.try(()=>B((0,t._)`await `),W=>S.assign(R,!1).if((0,t._)`${W} instanceof ${C.ValidationError}`,()=>S.assign(F,(0,t._)`${W}.errors`),()=>S.throw(W))),F}function $(){const F=(0,t._)`${D}.errors`;return S.assign(F,null),B(t.nil),F}function B(F=v.async?(0,t._)`await `:t.nil){const W=C.opts.passContext?e.default.this:e.default.self,oe=!("compile"in v&&!_||v.schema===!1);S.assign(R,(0,t._)`${F}${(0,o.callValidateCode)(f,D,W,oe)}`,v.modifying)}function z(F){var W;S.if((0,t.not)((W=v.valid)!==null&&W!==void 0?W:R),F)}}gr.funcKeywordCode=r;function s(f){const{gen:v,data:y,it:S}=f;v.if(S.parentData,()=>v.assign(y,(0,t._)`${S.parentData}[${S.parentDataProperty}]`))}function c(f,v){const{gen:y}=f;y.if((0,t._)`Array.isArray(${v})`,()=>{y.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${v} : ${e.default.vErrors}.concat(${v})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,a.extendErrors)(f)},()=>f.error())}function d({schemaEnv:f},v){if(v.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,v,y){if(y===void 0)throw new Error(`keyword "${v}" failed to compile`);return f.scopeValue("keyword",typeof y=="function"?{ref:y}:{ref:y,code:(0,t.stringify)(y)})}function m(f,v,y=!1){return!v.length||v.some(S=>S==="array"?Array.isArray(f):S==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==S||y&&typeof f>"u")}gr.validSchemaType=m;function h({schema:f,opts:v,self:y,errSchemaPath:S},x,w){if(Array.isArray(x.keyword)?!x.keyword.includes(w):x.keyword!==w)throw new Error("ajv implementation error");const k=x.dependencies;if(k?.some(_=>!Object.prototype.hasOwnProperty.call(f,_)))throw new Error(`parent schema must have dependencies of ${w}: ${k.join(",")}`);if(x.validateSchema&&!x.validateSchema(f[w])){const C=`keyword "${w}" value is invalid at path "${S}": `+y.errorsText(x.validateSchema.errors);if(v.validateSchema==="log")y.logger.error(C);else throw new Error(C)}}return gr.validateKeywordUsage=h,gr}var ki={},KR;function CZ(){if(KR)return ki;KR=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.extendSubschemaMode=ki.extendSubschemaData=ki.getSubschema=void 0;const t=St(),e=Ft();function o(r,{keyword:s,schemaProp:c,schema:d,schemaPath:u,errSchemaPath:m,topSchemaRef:h}){if(s!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const f=r.schema[s];return c===void 0?{schema:f,schemaPath:(0,t._)`${r.schemaPath}${(0,t.getProperty)(s)}`,errSchemaPath:`${r.errSchemaPath}/${s}`}:{schema:f[c],schemaPath:(0,t._)`${r.schemaPath}${(0,t.getProperty)(s)}${(0,t.getProperty)(c)}`,errSchemaPath:`${r.errSchemaPath}/${s}/${(0,e.escapeFragment)(c)}`}}if(d!==void 0){if(u===void 0||m===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:u,topSchemaRef:h,errSchemaPath:m}}throw new Error('either "keyword" or "schema" must be passed')}ki.getSubschema=o;function a(r,s,{dataProp:c,dataPropType:d,data:u,dataTypes:m,propertyName:h}){if(u!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=s;if(c!==void 0){const{errorPath:y,dataPathArr:S,opts:x}=s,w=f.let("data",(0,t._)`${s.data}${(0,t.getProperty)(c)}`,!0);v(w),r.errorPath=(0,t.str)`${y}${(0,e.getErrorPath)(c,d,x.jsPropertySyntax)}`,r.parentDataProperty=(0,t._)`${c}`,r.dataPathArr=[...S,r.parentDataProperty]}if(u!==void 0){const y=u instanceof t.Name?u:f.let("data",u,!0);v(y),h!==void 0&&(r.propertyName=h)}m&&(r.dataTypes=m);function v(y){r.data=y,r.dataLevel=s.dataLevel+1,r.dataTypes=[],s.definedProperties=new Set,r.parentData=s.data,r.dataNames=[...s.dataNames,y]}}ki.extendSubschemaData=a;function n(r,{jtdDiscriminator:s,jtdMetadata:c,compositeRule:d,createErrors:u,allErrors:m}){d!==void 0&&(r.compositeRule=d),u!==void 0&&(r.createErrors=u),m!==void 0&&(r.allErrors=m),r.jtdDiscriminator=s,r.jtdMetadata=c}return ki.extendSubschemaMode=n,ki}var Ga={},vT,YR;function KL(){return YR||(YR=1,vT=function t(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var a,n,r;if(Array.isArray(e)){if(a=e.length,a!=o.length)return!1;for(n=a;n--!==0;)if(!t(e[n],o[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();if(r=Object.keys(e),a=r.length,a!==Object.keys(o).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,r[n]))return!1;for(n=a;n--!==0;){var s=r[n];if(!t(e[s],o[s]))return!1}return!0}return e!==e&&o!==o}),vT}var bT={exports:{}},ZR;function EZ(){if(ZR)return bT.exports;ZR=1;var t=bT.exports=function(a,n,r){typeof n=="function"&&(r=n,n={}),r=n.cb||r;var s=typeof r=="function"?r:r.pre||function(){},c=r.post||function(){};e(n,s,c,a,"",a)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(a,n,r,s,c,d,u,m,h,f){if(s&&typeof s=="object"&&!Array.isArray(s)){n(s,c,d,u,m,h,f);for(var v in s){var y=s[v];if(Array.isArray(y)){if(v in t.arrayKeywords)for(var S=0;S<y.length;S++)e(a,n,r,y[S],c+"/"+v+"/"+S,d,c,v,s,S)}else if(v in t.propsKeywords){if(y&&typeof y=="object")for(var x in y)e(a,n,r,y[x],c+"/"+v+"/"+o(x),d,c,v,s,x)}else(v in t.keywords||a.allKeys&&!(v in t.skipKeywords))&&e(a,n,r,y,c+"/"+v,d,c,v,s)}r(s,c,d,u,m,h,f)}}function o(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return bT.exports}var QR;function Xv(){if(QR)return Ga;QR=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.getSchemaRefs=Ga.resolveUrl=Ga.normalizeId=Ga._getFullPath=Ga.getFullPath=Ga.inlineRef=void 0;const t=Ft(),e=KL(),o=EZ(),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n(S,x=!0){return typeof S=="boolean"?!0:x===!0?!s(S):x?c(S)<=x:!1}Ga.inlineRef=n;const r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(S){for(const x in S){if(r.has(x))return!0;const w=S[x];if(Array.isArray(w)&&w.some(s)||typeof w=="object"&&s(w))return!0}return!1}function c(S){let x=0;for(const w in S){if(w==="$ref")return 1/0;if(x++,!a.has(w)&&(typeof S[w]=="object"&&(0,t.eachItem)(S[w],k=>x+=c(k)),x===1/0))return 1/0}return x}function d(S,x="",w){w!==!1&&(x=h(x));const k=S.parse(x);return u(S,k)}Ga.getFullPath=d;function u(S,x){return S.serialize(x).split("#")[0]+"#"}Ga._getFullPath=u;const m=/#\/?$/;function h(S){return S?S.replace(m,""):""}Ga.normalizeId=h;function f(S,x,w){return w=h(w),S.resolve(x,w)}Ga.resolveUrl=f;const v=/^[a-z_][-a-z0-9._]*$/i;function y(S,x){if(typeof S=="boolean")return{};const{schemaId:w,uriResolver:k}=this.opts,_=h(S[w]||x),C={"":_},P=d(k,_,!1),D={},R=new Set;return o(S,{allKeys:!0},($,B,z,F)=>{if(F===void 0)return;const W=P+B;let oe=C[F];typeof $[w]=="string"&&(oe=H.call(this,$[w])),K.call(this,$.$anchor),K.call(this,$.$dynamicAnchor),C[B]=oe;function H(J){const ie=this.opts.uriResolver.resolve;if(J=h(oe?ie(oe,J):J),R.has(J))throw L(J);R.add(J);let Q=this.refs[J];return typeof Q=="string"&&(Q=this.refs[Q]),typeof Q=="object"?O($,Q.schema,J):J!==h(W)&&(J[0]==="#"?(O($,D[J],J),D[J]=$):this.refs[J]=W),J}function K(J){if(typeof J=="string"){if(!v.test(J))throw new Error(`invalid anchor "${J}"`);H.call(this,`#${J}`)}}}),D;function O($,B,z){if(B!==void 0&&!e($,B))throw L(z)}function L($){return new Error(`reference "${$}" resolves to more than one schema`)}}return Ga.getSchemaRefs=y,Ga}var JR;function eb(){if(JR)return wi;JR=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.getData=wi.KeywordCxt=wi.validateFunctionCode=void 0;const t=wZ(),e=Kf(),o=WL(),a=Kf(),n=xZ(),r=kZ(),s=CZ(),c=St(),d=Ys(),u=Xv(),m=Ft(),h=Jv();function f(Z){if(P(Z)&&(R(Z),C(Z))){x(Z);return}v(Z,()=>(0,t.topBoolOrEmptySchema)(Z))}wi.validateFunctionCode=f;function v({gen:Z,validateName:ne,schema:ve,schemaEnv:se,opts:xe},_e){xe.code.es5?Z.func(ne,(0,c._)`${d.default.data}, ${d.default.valCxt}`,se.$async,()=>{Z.code((0,c._)`"use strict"; ${k(ve,xe)}`),S(Z,xe),Z.code(_e)}):Z.func(ne,(0,c._)`${d.default.data}, ${y(xe)}`,se.$async,()=>Z.code(k(ve,xe)).code(_e))}function y(Z){return(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${Z.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}function S(Z,ne){Z.if(d.default.valCxt,()=>{Z.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),Z.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),Z.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),Z.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{Z.var(d.default.instancePath,(0,c._)`""`),Z.var(d.default.parentData,(0,c._)`undefined`),Z.var(d.default.parentDataProperty,(0,c._)`undefined`),Z.var(d.default.rootData,d.default.data),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`{}`)})}function x(Z){const{schema:ne,opts:ve,gen:se}=Z;v(Z,()=>{ve.$comment&&ne.$comment&&F(Z),$(Z),se.let(d.default.vErrors,null),se.let(d.default.errors,0),ve.unevaluated&&w(Z),O(Z),W(Z)})}function w(Z){const{gen:ne,validateName:ve}=Z;Z.evaluated=ne.const("evaluated",(0,c._)`${ve}.evaluated`),ne.if((0,c._)`${Z.evaluated}.dynamicProps`,()=>ne.assign((0,c._)`${Z.evaluated}.props`,(0,c._)`undefined`)),ne.if((0,c._)`${Z.evaluated}.dynamicItems`,()=>ne.assign((0,c._)`${Z.evaluated}.items`,(0,c._)`undefined`))}function k(Z,ne){const ve=typeof Z=="object"&&Z[ne.schemaId];return ve&&(ne.code.source||ne.code.process)?(0,c._)`/*# sourceURL=${ve} */`:c.nil}function _(Z,ne){if(P(Z)&&(R(Z),C(Z))){D(Z,ne);return}(0,t.boolOrEmptySchema)(Z,ne)}function C({schema:Z,self:ne}){if(typeof Z=="boolean")return!Z;for(const ve in Z)if(ne.RULES.all[ve])return!0;return!1}function P(Z){return typeof Z.schema!="boolean"}function D(Z,ne){const{schema:ve,gen:se,opts:xe}=Z;xe.$comment&&ve.$comment&&F(Z),B(Z),z(Z);const _e=se.const("_errs",d.default.errors);O(Z,_e),se.var(ne,(0,c._)`${_e} === ${d.default.errors}`)}function R(Z){(0,m.checkUnknownRules)(Z),L(Z)}function O(Z,ne){if(Z.opts.jtd)return H(Z,[],!1,ne);const ve=(0,e.getSchemaTypes)(Z.schema),se=(0,e.coerceAndCheckDataType)(Z,ve);H(Z,ve,!se,ne)}function L(Z){const{schema:ne,errSchemaPath:ve,opts:se,self:xe}=Z;ne.$ref&&se.ignoreKeywordsWithRef&&(0,m.schemaHasRulesButRef)(ne,xe.RULES)&&xe.logger.warn(`$ref: keywords ignored in schema at path "${ve}"`)}function $(Z){const{schema:ne,opts:ve}=Z;ne.default!==void 0&&ve.useDefaults&&ve.strictSchema&&(0,m.checkStrictMode)(Z,"default is ignored in the schema root")}function B(Z){const ne=Z.schema[Z.opts.schemaId];ne&&(Z.baseId=(0,u.resolveUrl)(Z.opts.uriResolver,Z.baseId,ne))}function z(Z){if(Z.schema.$async&&!Z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:Z,schemaEnv:ne,schema:ve,errSchemaPath:se,opts:xe}){const _e=ve.$comment;if(xe.$comment===!0)Z.code((0,c._)`${d.default.self}.logger.log(${_e})`);else if(typeof xe.$comment=="function"){const st=(0,c.str)`${se}/$comment`,ct=Z.scopeValue("root",{ref:ne.root});Z.code((0,c._)`${d.default.self}.opts.$comment(${_e}, ${st}, ${ct}.schema)`)}}function W(Z){const{gen:ne,schemaEnv:ve,validateName:se,ValidationError:xe,opts:_e}=Z;ve.$async?ne.if((0,c._)`${d.default.errors} === 0`,()=>ne.return(d.default.data),()=>ne.throw((0,c._)`new ${xe}(${d.default.vErrors})`)):(ne.assign((0,c._)`${se}.errors`,d.default.vErrors),_e.unevaluated&&oe(Z),ne.return((0,c._)`${d.default.errors} === 0`))}function oe({gen:Z,evaluated:ne,props:ve,items:se}){ve instanceof c.Name&&Z.assign((0,c._)`${ne}.props`,ve),se instanceof c.Name&&Z.assign((0,c._)`${ne}.items`,se)}function H(Z,ne,ve,se){const{gen:xe,schema:_e,data:st,allErrors:ct,opts:Ge,self:at}=Z,{RULES:Me}=at;if(_e.$ref&&(Ge.ignoreKeywordsWithRef||!(0,m.schemaHasRulesButRef)(_e,Me))){xe.block(()=>de(Z,"$ref",Me.all.$ref.definition));return}Ge.jtd||J(Z,ne),xe.block(()=>{for(const He of Me.rules)Oe(He);Oe(Me.post)});function Oe(He){(0,o.shouldUseGroup)(_e,He)&&(He.type?(xe.if((0,a.checkDataType)(He.type,st,Ge.strictNumbers)),K(Z,He),ne.length===1&&ne[0]===He.type&&ve&&(xe.else(),(0,a.reportTypeError)(Z)),xe.endIf()):K(Z,He),ct||xe.if((0,c._)`${d.default.errors} === ${se||0}`))}}function K(Z,ne){const{gen:ve,schema:se,opts:{useDefaults:xe}}=Z;xe&&(0,n.assignDefaults)(Z,ne.type),ve.block(()=>{for(const _e of ne.rules)(0,o.shouldUseRule)(se,_e)&&de(Z,_e.keyword,_e.definition,ne.type)})}function J(Z,ne){Z.schemaEnv.meta||!Z.opts.strictTypes||(ie(Z,ne),Z.opts.allowUnionTypes||Q(Z,ne),N(Z,Z.dataTypes))}function ie(Z,ne){if(ne.length){if(!Z.dataTypes.length){Z.dataTypes=ne;return}ne.forEach(ve=>{V(Z.dataTypes,ve)||j(Z,`type "${ve}" not allowed by context "${Z.dataTypes.join(",")}"`)}),I(Z,ne)}}function Q(Z,ne){ne.length>1&&!(ne.length===2&&ne.includes("null"))&&j(Z,"use allowUnionTypes to allow union type keyword")}function N(Z,ne){const ve=Z.self.RULES.all;for(const se in ve){const xe=ve[se];if(typeof xe=="object"&&(0,o.shouldUseRule)(Z.schema,xe)){const{type:_e}=xe.definition;_e.length&&!_e.some(st=>G(ne,st))&&j(Z,`missing type "${_e.join(",")}" for keyword "${se}"`)}}}function G(Z,ne){return Z.includes(ne)||ne==="number"&&Z.includes("integer")}function V(Z,ne){return Z.includes(ne)||ne==="integer"&&Z.includes("number")}function I(Z,ne){const ve=[];for(const se of Z.dataTypes)V(ne,se)?ve.push(se):ne.includes("integer")&&se==="number"&&ve.push("integer");Z.dataTypes=ve}function j(Z,ne){const ve=Z.schemaEnv.baseId+Z.errSchemaPath;ne+=` at "${ve}" (strictTypes)`,(0,m.checkStrictMode)(Z,ne,Z.opts.strictTypes)}class X{constructor(ne,ve,se){if((0,r.validateKeywordUsage)(ne,ve,se),this.gen=ne.gen,this.allErrors=ne.allErrors,this.keyword=se,this.data=ne.data,this.schema=ne.schema[se],this.$data=ve.$data&&ne.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,m.schemaRefOrVal)(ne,this.schema,se,this.$data),this.schemaType=ve.schemaType,this.parentSchema=ne.schema,this.params={},this.it=ne,this.def=ve,this.$data)this.schemaCode=ne.gen.const("vSchema",Ue(this.$data,ne));else if(this.schemaCode=this.schemaValue,!(0,r.validSchemaType)(this.schema,ve.schemaType,ve.allowUndefined))throw new Error(`${se} value must be ${JSON.stringify(ve.schemaType)}`);("code"in ve?ve.trackErrors:ve.errors!==!1)&&(this.errsCount=ne.gen.const("_errs",d.default.errors))}result(ne,ve,se){this.failResult((0,c.not)(ne),ve,se)}failResult(ne,ve,se){this.gen.if(ne),se?se():this.error(),ve?(this.gen.else(),ve(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ne,ve){this.failResult((0,c.not)(ne),void 0,ve)}fail(ne){if(ne===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(ne),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ne){if(!this.$data)return this.fail(ne);const{schemaCode:ve}=this;this.fail((0,c._)`${ve} !== undefined && (${(0,c.or)(this.invalid$data(),ne)})`)}error(ne,ve,se){if(ve){this.setParams(ve),this._error(ne,se),this.setParams({});return}this._error(ne,se)}_error(ne,ve){(ne?h.reportExtraError:h.reportError)(this,this.def.error,ve)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(ne){this.allErrors||this.gen.if(ne)}setParams(ne,ve){ve?Object.assign(this.params,ne):this.params=ne}block$data(ne,ve,se=c.nil){this.gen.block(()=>{this.check$data(ne,se),ve()})}check$data(ne=c.nil,ve=c.nil){if(!this.$data)return;const{gen:se,schemaCode:xe,schemaType:_e,def:st}=this;se.if((0,c.or)((0,c._)`${xe} === undefined`,ve)),ne!==c.nil&&se.assign(ne,!0),(_e.length||st.validateSchema)&&(se.elseIf(this.invalid$data()),this.$dataError(),ne!==c.nil&&se.assign(ne,!1)),se.else()}invalid$data(){const{gen:ne,schemaCode:ve,schemaType:se,def:xe,it:_e}=this;return(0,c.or)(st(),ct());function st(){if(se.length){if(!(ve instanceof c.Name))throw new Error("ajv implementation error");const Ge=Array.isArray(se)?se:[se];return(0,c._)`${(0,a.checkDataTypes)(Ge,ve,_e.opts.strictNumbers,a.DataType.Wrong)}`}return c.nil}function ct(){if(xe.validateSchema){const Ge=ne.scopeValue("validate$data",{ref:xe.validateSchema});return(0,c._)`!${Ge}(${ve})`}return c.nil}}subschema(ne,ve){const se=(0,s.getSubschema)(this.it,ne);(0,s.extendSubschemaData)(se,this.it,ne),(0,s.extendSubschemaMode)(se,ne);const xe={...this.it,...se,items:void 0,props:void 0};return _(xe,ve),xe}mergeEvaluated(ne,ve){const{it:se,gen:xe}=this;se.opts.unevaluated&&(se.props!==!0&&ne.props!==void 0&&(se.props=m.mergeEvaluated.props(xe,ne.props,se.props,ve)),se.items!==!0&&ne.items!==void 0&&(se.items=m.mergeEvaluated.items(xe,ne.items,se.items,ve)))}mergeValidEvaluated(ne,ve){const{it:se,gen:xe}=this;if(se.opts.unevaluated&&(se.props!==!0||se.items!==!0))return xe.if(ve,()=>this.mergeEvaluated(ne,c.Name)),!0}}wi.KeywordCxt=X;function de(Z,ne,ve,se){const xe=new X(Z,ve,ne);"code"in ve?ve.code(xe,se):xe.$data&&ve.validate?(0,r.funcKeywordCode)(xe,ve):"macro"in ve?(0,r.macroKeywordCode)(xe,ve):(ve.compile||ve.validate)&&(0,r.funcKeywordCode)(xe,ve)}const ue=/^\/(?:[^~]|~0|~1)*$/,Ce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ue(Z,{dataLevel:ne,dataNames:ve,dataPathArr:se}){let xe,_e;if(Z==="")return d.default.rootData;if(Z[0]==="/"){if(!ue.test(Z))throw new Error(`Invalid JSON-pointer: ${Z}`);xe=Z,_e=d.default.rootData}else{const at=Ce.exec(Z);if(!at)throw new Error(`Invalid JSON-pointer: ${Z}`);const Me=+at[1];if(xe=at[2],xe==="#"){if(Me>=ne)throw new Error(Ge("property/index",Me));return se[ne-Me]}if(Me>ne)throw new Error(Ge("data",Me));if(_e=ve[ne-Me],!xe)return _e}let st=_e;const ct=xe.split("/");for(const at of ct)at&&(_e=(0,c._)`${_e}${(0,c.getProperty)((0,m.unescapeJsonPointer)(at))}`,st=(0,c._)`${st} && ${_e}`);return st;function Ge(at,Me){return`Cannot access ${at} ${Me} levels up, current level is ${ne}`}}return wi.getData=Ue,wi}var eg={},XR;function zk(){if(XR)return eg;XR=1,Object.defineProperty(eg,"__esModule",{value:!0});class t extends Error{constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}}return eg.default=t,eg}var tg={},eD;function tb(){if(eD)return tg;eD=1,Object.defineProperty(tg,"__esModule",{value:!0});const t=Xv();class e extends Error{constructor(a,n,r,s){super(s||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(a,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(a,this.missingRef))}}return tg.default=e,tg}var _n={},tD;function Uk(){if(tD)return _n;tD=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.resolveSchema=_n.getCompilingSchema=_n.resolveRef=_n.compileSchema=_n.SchemaEnv=void 0;const t=St(),e=zk(),o=Ys(),a=Xv(),n=Ft(),r=eb();class s{constructor(w){var k;this.refs={},this.dynamicAnchors={};let _;typeof w.schema=="object"&&(_=w.schema),this.schema=w.schema,this.schemaId=w.schemaId,this.root=w.root||this,this.baseId=(k=w.baseId)!==null&&k!==void 0?k:(0,a.normalizeId)(_?.[w.schemaId||"$id"]),this.schemaPath=w.schemaPath,this.localRefs=w.localRefs,this.meta=w.meta,this.$async=_?.$async,this.refs={}}}_n.SchemaEnv=s;function c(x){const w=m.call(this,x);if(w)return w;const k=(0,a.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:_,lines:C}=this.opts.code,{ownProperties:P}=this.opts,D=new t.CodeGen(this.scope,{es5:_,lines:C,ownProperties:P});let R;x.$async&&(R=D.scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const O=D.scopeName("validate");x.validateName=O;const L={gen:D,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:D.scopeValue("schema",this.opts.code.source===!0?{ref:x.schema,code:(0,t.stringify)(x.schema)}:{ref:x.schema}),validateName:O,ValidationError:R,schema:x.schema,schemaEnv:x,rootId:k,baseId:x.baseId||k,schemaPath:t.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let $;try{this._compilations.add(x),(0,r.validateFunctionCode)(L),D.optimize(this.opts.code.optimize);const B=D.toString();$=`${D.scopeRefs(o.default.scope)}return ${B}`,this.opts.code.process&&($=this.opts.code.process($,x));const F=new Function(`${o.default.self}`,`${o.default.scope}`,$)(this,this.scope.get());if(this.scope.value(O,{ref:F}),F.errors=null,F.schema=x.schema,F.schemaEnv=x,x.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:O,validateCode:B,scopeValues:D._values}),this.opts.unevaluated){const{props:W,items:oe}=L;F.evaluated={props:W instanceof t.Name?void 0:W,items:oe instanceof t.Name?void 0:oe,dynamicProps:W instanceof t.Name,dynamicItems:oe instanceof t.Name},F.source&&(F.source.evaluated=(0,t.stringify)(F.evaluated))}return x.validate=F,x}catch(B){throw delete x.validate,delete x.validateName,$&&this.logger.error("Error compiling schema, function code:",$),B}finally{this._compilations.delete(x)}}_n.compileSchema=c;function d(x,w,k){var _;k=(0,a.resolveUrl)(this.opts.uriResolver,w,k);const C=x.refs[k];if(C)return C;let P=f.call(this,x,k);if(P===void 0){const D=(_=x.localRefs)===null||_===void 0?void 0:_[k],{schemaId:R}=this.opts;D&&(P=new s({schema:D,schemaId:R,root:x,baseId:w}))}if(P!==void 0)return x.refs[k]=u.call(this,P)}_n.resolveRef=d;function u(x){return(0,a.inlineRef)(x.schema,this.opts.inlineRefs)?x.schema:x.validate?x:c.call(this,x)}function m(x){for(const w of this._compilations)if(h(w,x))return w}_n.getCompilingSchema=m;function h(x,w){return x.schema===w.schema&&x.root===w.root&&x.baseId===w.baseId}function f(x,w){let k;for(;typeof(k=this.refs[w])=="string";)w=k;return k||this.schemas[w]||v.call(this,x,w)}function v(x,w){const k=this.opts.uriResolver.parse(w),_=(0,a._getFullPath)(this.opts.uriResolver,k);let C=(0,a.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&_===C)return S.call(this,k,x);const P=(0,a.normalizeId)(_),D=this.refs[P]||this.schemas[P];if(typeof D=="string"){const R=v.call(this,x,D);return typeof R?.schema!="object"?void 0:S.call(this,k,R)}if(typeof D?.schema=="object"){if(D.validate||c.call(this,D),P===(0,a.normalizeId)(w)){const{schema:R}=D,{schemaId:O}=this.opts,L=R[O];return L&&(C=(0,a.resolveUrl)(this.opts.uriResolver,C,L)),new s({schema:R,schemaId:O,root:x,baseId:C})}return S.call(this,k,D)}}_n.resolveSchema=v;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function S(x,{baseId:w,schema:k,root:_}){var C;if(((C=x.fragment)===null||C===void 0?void 0:C[0])!=="/")return;for(const R of x.fragment.slice(1).split("/")){if(typeof k=="boolean")return;const O=k[(0,n.unescapeFragment)(R)];if(O===void 0)return;k=O;const L=typeof k=="object"&&k[this.opts.schemaId];!y.has(R)&&L&&(w=(0,a.resolveUrl)(this.opts.uriResolver,w,L))}let P;if(typeof k!="boolean"&&k.$ref&&!(0,n.schemaHasRulesButRef)(k,this.RULES)){const R=(0,a.resolveUrl)(this.opts.uriResolver,w,k.$ref);P=v.call(this,_,R)}const{schemaId:D}=this.opts;if(P=P||new s({schema:k,schemaId:D,root:_,baseId:w}),P.schema!==P.root.schema)return P}return _n}const _Z="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",PZ="Meta-schema for $data reference (JSON AnySchema extension proposal)",AZ="object",RZ=["$data"],DZ={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},OZ=!1,MZ={$id:_Z,description:PZ,type:AZ,required:RZ,properties:DZ,additionalProperties:OZ};var og={},Ku={exports:{}},yT,oD;function YL(){if(oD)return yT;oD=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function o(f){let v="",y=0,S=0;for(S=0;S<f.length;S++)if(y=f[S].charCodeAt(0),y!==48){if(!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=f[S];break}for(S+=1;S<f.length;S++){if(y=f[S].charCodeAt(0),!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=f[S]}return v}const a=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function n(f){return f.length=0,!0}function r(f,v,y){if(f.length){const S=o(f);if(S!=="")v.push(S);else return y.error=!0,!1;f.length=0}return!0}function s(f){let v=0;const y={error:!1,address:"",zone:""},S=[],x=[];let w=!1,k=!1,_=r;for(let C=0;C<f.length;C++){const P=f[C];if(!(P==="["||P==="]"))if(P===":"){if(w===!0&&(k=!0),!_(x,S,y))break;if(++v>7){y.error=!0;break}C>0&&f[C-1]===":"&&(w=!0),S.push(":");continue}else if(P==="%"){if(!_(x,S,y))break;_=n}else{x.push(P);continue}}return x.length&&(_===n?y.zone=x.join(""):k?S.push(x.join("")):S.push(o(x))),y.address=S.join(""),y}function c(f){if(d(f,":")<2)return{host:f,isIPV6:!1};const v=s(f);if(v.error)return{host:f,isIPV6:!1};{let y=v.address,S=v.address;return v.zone&&(y+="%"+v.zone,S+="%25"+v.zone),{host:y,isIPV6:!0,escapedHost:S}}}function d(f,v){let y=0;for(let S=0;S<f.length;S++)f[S]===v&&y++;return y}function u(f){let v=f;const y=[];let S=-1,x=0;for(;x=v.length;){if(x===1){if(v===".")break;if(v==="/"){y.push("/");break}else{y.push(v);break}}else if(x===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){y.push("/");break}}else if(x===3&&v==="/.."){y.length!==0&&y.pop(),y.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),y.length!==0&&y.pop();continue}}if((S=v.indexOf("/",1))===-1){y.push(v);break}else y.push(v.slice(0,S)),v=v.slice(S)}return y.join("")}function m(f,v){const y=v!==!0?escape:unescape;return f.scheme!==void 0&&(f.scheme=y(f.scheme)),f.userinfo!==void 0&&(f.userinfo=y(f.userinfo)),f.host!==void 0&&(f.host=y(f.host)),f.path!==void 0&&(f.path=y(f.path)),f.query!==void 0&&(f.query=y(f.query)),f.fragment!==void 0&&(f.fragment=y(f.fragment)),f}function h(f){const v=[];if(f.userinfo!==void 0&&(v.push(f.userinfo),v.push("@")),f.host!==void 0){let y=unescape(f.host);if(!e(y)){const S=c(y);S.isIPV6===!0?y=`[${S.escapedHost}]`:y=f.host}v.push(y)}return(typeof f.port=="number"||typeof f.port=="string")&&(v.push(":"),v.push(String(f.port))),v.length?v.join(""):void 0}return yT={nonSimpleDomain:a,recomposeAuthority:h,normalizeComponentEncoding:m,removeDotSegments:u,isIPv4:e,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:o},yT}var ST,aD;function NZ(){if(aD)return ST;aD=1;const{isUUID:t}=YL(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function a(P){return o.indexOf(P)!==-1}function n(P){return P.secure===!0?!0:P.secure===!1?!1:P.scheme?P.scheme.length===3&&(P.scheme[0]==="w"||P.scheme[0]==="W")&&(P.scheme[1]==="s"||P.scheme[1]==="S")&&(P.scheme[2]==="s"||P.scheme[2]==="S"):!1}function r(P){return P.host||(P.error=P.error||"HTTP URIs must have a host."),P}function s(P){const D=String(P.scheme).toLowerCase()==="https";return(P.port===(D?443:80)||P.port==="")&&(P.port=void 0),P.path||(P.path="/"),P}function c(P){return P.secure=n(P),P.resourceName=(P.path||"/")+(P.query?"?"+P.query:""),P.path=void 0,P.query=void 0,P}function d(P){if((P.port===(n(P)?443:80)||P.port==="")&&(P.port=void 0),typeof P.secure=="boolean"&&(P.scheme=P.secure?"wss":"ws",P.secure=void 0),P.resourceName){const[D,R]=P.resourceName.split("?");P.path=D&&D!=="/"?D:void 0,P.query=R,P.resourceName=void 0}return P.fragment=void 0,P}function u(P,D){if(!P.path)return P.error="URN can not be parsed",P;const R=P.path.match(e);if(R){const O=D.scheme||P.scheme||"urn";P.nid=R[1].toLowerCase(),P.nss=R[2];const L=`${O}:${D.nid||P.nid}`,$=C(L);P.path=void 0,$&&(P=$.parse(P,D))}else P.error=P.error||"URN can not be parsed.";return P}function m(P,D){if(P.nid===void 0)throw new Error("URN without nid cannot be serialized");const R=D.scheme||P.scheme||"urn",O=P.nid.toLowerCase(),L=`${R}:${D.nid||O}`,$=C(L);$&&(P=$.serialize(P,D));const B=P,z=P.nss;return B.path=`${O||D.nid}:${z}`,D.skipEscape=!0,B}function h(P,D){const R=P;return R.uuid=R.nss,R.nss=void 0,!D.tolerant&&(!R.uuid||!t(R.uuid))&&(R.error=R.error||"UUID is not valid."),R}function f(P){const D=P;return D.nss=(P.uuid||"").toLowerCase(),D}const v={scheme:"http",domainHost:!0,parse:r,serialize:s},y={scheme:"https",domainHost:v.domainHost,parse:r,serialize:s},S={scheme:"ws",domainHost:!0,parse:c,serialize:d},x={scheme:"wss",domainHost:S.domainHost,parse:S.parse,serialize:S.serialize},_={http:v,https:y,ws:S,wss:x,urn:{scheme:"urn",parse:u,serialize:m,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(_,null);function C(P){return P&&(_[P]||_[P.toLowerCase()])||void 0}return ST={wsIsSecure:n,SCHEMES:_,isValidSchemeName:a,getSchemeHandler:C},ST}var nD;function IZ(){if(nD)return Ku.exports;nD=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:o,normalizeComponentEncoding:a,isIPv4:n,nonSimpleDomain:r}=YL(),{SCHEMES:s,getSchemeHandler:c}=NZ();function d(x,w){return typeof x=="string"?x=f(y(x,w),w):typeof x=="object"&&(x=y(f(x,w),w)),x}function u(x,w,k){const _=k?Object.assign({scheme:"null"},k):{scheme:"null"},C=m(y(x,_),y(w,_),_,!0);return _.skipEscape=!0,f(C,_)}function m(x,w,k,_){const C={};return _||(x=y(f(x,k),k),w=y(f(w,k),k)),k=k||{},!k.tolerant&&w.scheme?(C.scheme=w.scheme,C.userinfo=w.userinfo,C.host=w.host,C.port=w.port,C.path=e(w.path||""),C.query=w.query):(w.userinfo!==void 0||w.host!==void 0||w.port!==void 0?(C.userinfo=w.userinfo,C.host=w.host,C.port=w.port,C.path=e(w.path||""),C.query=w.query):(w.path?(w.path[0]==="/"?C.path=e(w.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?C.path="/"+w.path:x.path?C.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+w.path:C.path=w.path,C.path=e(C.path)),C.query=w.query):(C.path=x.path,w.query!==void 0?C.query=w.query:C.query=x.query),C.userinfo=x.userinfo,C.host=x.host,C.port=x.port),C.scheme=x.scheme),C.fragment=w.fragment,C}function h(x,w,k){return typeof x=="string"?(x=unescape(x),x=f(a(y(x,k),!0),{...k,skipEscape:!0})):typeof x=="object"&&(x=f(a(x,!0),{...k,skipEscape:!0})),typeof w=="string"?(w=unescape(w),w=f(a(y(w,k),!0),{...k,skipEscape:!0})):typeof w=="object"&&(w=f(a(w,!0),{...k,skipEscape:!0})),x.toLowerCase()===w.toLowerCase()}function f(x,w){const k={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},_=Object.assign({},w),C=[],P=c(_.scheme||k.scheme);P&&P.serialize&&P.serialize(k,_),k.path!==void 0&&(_.skipEscape?k.path=unescape(k.path):(k.path=escape(k.path),k.scheme!==void 0&&(k.path=k.path.split("%3A").join(":")))),_.reference!=="suffix"&&k.scheme&&C.push(k.scheme,":");const D=o(k);if(D!==void 0&&(_.reference!=="suffix"&&C.push("//"),C.push(D),k.path&&k.path[0]!=="/"&&C.push("/")),k.path!==void 0){let R=k.path;!_.absolutePath&&(!P||!P.absolutePath)&&(R=e(R)),D===void 0&&R[0]==="/"&&R[1]==="/"&&(R="/%2F"+R.slice(2)),C.push(R)}return k.query!==void 0&&C.push("?",k.query),k.fragment!==void 0&&C.push("#",k.fragment),C.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(x,w){const k=Object.assign({},w),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let C=!1;k.reference==="suffix"&&(k.scheme?x=k.scheme+":"+x:x="//"+x);const P=x.match(v);if(P){if(_.scheme=P[1],_.userinfo=P[3],_.host=P[4],_.port=parseInt(P[5],10),_.path=P[6]||"",_.query=P[7],_.fragment=P[8],isNaN(_.port)&&(_.port=P[5]),_.host)if(n(_.host)===!1){const O=t(_.host);_.host=O.host.toLowerCase(),C=O.isIPV6}else C=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",k.reference&&k.reference!=="suffix"&&k.reference!==_.reference&&(_.error=_.error||"URI is not a "+k.reference+" reference.");const D=c(k.scheme||_.scheme);if(!k.unicodeSupport&&(!D||!D.unicodeSupport)&&_.host&&(k.domainHost||D&&D.domainHost)&&C===!1&&r(_.host))try{_.host=URL.domainToASCII(_.host.toLowerCase())}catch(R){_.error=_.error||"Host's domain name can not be converted to ASCII: "+R}(!D||D&&!D.skipNormalize)&&(x.indexOf("%")!==-1&&(_.scheme!==void 0&&(_.scheme=unescape(_.scheme)),_.host!==void 0&&(_.host=unescape(_.host))),_.path&&(_.path=escape(unescape(_.path))),_.fragment&&(_.fragment=encodeURI(decodeURIComponent(_.fragment)))),D&&D.parse&&D.parse(_,k)}else _.error=_.error||"URI can not be parsed.";return _}const S={SCHEMES:s,normalize:d,resolve:u,resolveComponent:m,equal:h,serialize:f,parse:y};return Ku.exports=S,Ku.exports.default=S,Ku.exports.fastUri=S,Ku.exports}var rD;function LZ(){if(rD)return og;rD=1,Object.defineProperty(og,"__esModule",{value:!0});const t=IZ();return t.code='require("ajv/dist/runtime/uri").default',og.default=t,og}var iD;function BZ(){return iD||(iD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=eb();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var o=St();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const a=zk(),n=tb(),r=GL(),s=Uk(),c=St(),d=Xv(),u=Kf(),m=Ft(),h=MZ,f=LZ(),v=(Q,N)=>new RegExp(Q,N);v.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],S=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},w={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},k=200;function _(Q){var N,G,V,I,j,X,de,ue,Ce,Ue,Z,ne,ve,se,xe,_e,st,ct,Ge,at,Me,Oe,He,Y,ae;const le=Q.strict,Ee=(N=Q.code)===null||N===void 0?void 0:N.optimize,Ae=Ee===!0||Ee===void 0?1:Ee||0,Re=(V=(G=Q.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:v,Be=(I=Q.uriResolver)!==null&&I!==void 0?I:f.default;return{strictSchema:(X=(j=Q.strictSchema)!==null&&j!==void 0?j:le)!==null&&X!==void 0?X:!0,strictNumbers:(ue=(de=Q.strictNumbers)!==null&&de!==void 0?de:le)!==null&&ue!==void 0?ue:!0,strictTypes:(Ue=(Ce=Q.strictTypes)!==null&&Ce!==void 0?Ce:le)!==null&&Ue!==void 0?Ue:"log",strictTuples:(ne=(Z=Q.strictTuples)!==null&&Z!==void 0?Z:le)!==null&&ne!==void 0?ne:"log",strictRequired:(se=(ve=Q.strictRequired)!==null&&ve!==void 0?ve:le)!==null&&se!==void 0?se:!1,code:Q.code?{...Q.code,optimize:Ae,regExp:Re}:{optimize:Ae,regExp:Re},loopRequired:(xe=Q.loopRequired)!==null&&xe!==void 0?xe:k,loopEnum:(_e=Q.loopEnum)!==null&&_e!==void 0?_e:k,meta:(st=Q.meta)!==null&&st!==void 0?st:!0,messages:(ct=Q.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(Ge=Q.inlineRefs)!==null&&Ge!==void 0?Ge:!0,schemaId:(at=Q.schemaId)!==null&&at!==void 0?at:"$id",addUsedSchema:(Me=Q.addUsedSchema)!==null&&Me!==void 0?Me:!0,validateSchema:(Oe=Q.validateSchema)!==null&&Oe!==void 0?Oe:!0,validateFormats:(He=Q.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Y=Q.unicodeRegExp)!==null&&Y!==void 0?Y:!0,int32range:(ae=Q.int32range)!==null&&ae!==void 0?ae:!0,uriResolver:Be}}class C{constructor(N={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts={...N,..._(N)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:S,es5:G,lines:V}),this.logger=z(N.logger);const I=N.validateFormats;N.validateFormats=!1,this.RULES=(0,r.getRules)(),P.call(this,x,N,"NOT SUPPORTED"),P.call(this,w,N,"DEPRECATED","warn"),this._metaOpts=$.call(this),N.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&L.call(this,N.keywords),typeof N.meta=="object"&&this.addMetaSchema(N.meta),R.call(this),N.validateFormats=I}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:N,meta:G,schemaId:V}=this.opts;let I=h;V==="id"&&(I={...h},I.id=I.$id,delete I.$id),G&&N&&this.addMetaSchema(I,I[V],!1)}defaultMeta(){const{meta:N,schemaId:G}=this.opts;return this.opts.defaultMeta=typeof N=="object"?N[G]||N:void 0}validate(N,G){let V;if(typeof N=="string"){if(V=this.getSchema(N),!V)throw new Error(`no schema with key or ref "${N}"`)}else V=this.compile(N);const I=V(G);return"$async"in V||(this.errors=V.errors),I}compile(N,G){const V=this._addSchema(N,G);return V.validate||this._compileSchemaEnv(V)}compileAsync(N,G){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return I.call(this,N,G);async function I(Ue,Z){await j.call(this,Ue.$schema);const ne=this._addSchema(Ue,Z);return ne.validate||X.call(this,ne)}async function j(Ue){Ue&&!this.getSchema(Ue)&&await I.call(this,{$ref:Ue},!0)}async function X(Ue){try{return this._compileSchemaEnv(Ue)}catch(Z){if(!(Z instanceof n.default))throw Z;return de.call(this,Z),await ue.call(this,Z.missingSchema),X.call(this,Ue)}}function de({missingSchema:Ue,missingRef:Z}){if(this.refs[Ue])throw new Error(`AnySchema ${Ue} is loaded but ${Z} cannot be resolved`)}async function ue(Ue){const Z=await Ce.call(this,Ue);this.refs[Ue]||await j.call(this,Z.$schema),this.refs[Ue]||this.addSchema(Z,Ue,G)}async function Ce(Ue){const Z=this._loading[Ue];if(Z)return Z;try{return await(this._loading[Ue]=V(Ue))}finally{delete this._loading[Ue]}}}addSchema(N,G,V,I=this.opts.validateSchema){if(Array.isArray(N)){for(const X of N)this.addSchema(X,void 0,V,I);return this}let j;if(typeof N=="object"){const{schemaId:X}=this.opts;if(j=N[X],j!==void 0&&typeof j!="string")throw new Error(`schema ${X} must be string`)}return G=(0,d.normalizeId)(G||j),this._checkUnique(G),this.schemas[G]=this._addSchema(N,V,G,I,!0),this}addMetaSchema(N,G,V=this.opts.validateSchema){return this.addSchema(N,G,!0,V),this}validateSchema(N,G){if(typeof N=="boolean")return!0;let V;if(V=N.$schema,V!==void 0&&typeof V!="string")throw new Error("$schema must be a string");if(V=V||this.opts.defaultMeta||this.defaultMeta(),!V)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const I=this.validate(V,N);if(!I&&G){const j="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(j);else throw new Error(j)}return I}getSchema(N){let G;for(;typeof(G=D.call(this,N))=="string";)N=G;if(G===void 0){const{schemaId:V}=this.opts,I=new s.SchemaEnv({schema:{},schemaId:V});if(G=s.resolveSchema.call(this,I,N),!G)return;this.refs[N]=G}return G.validate||this._compileSchemaEnv(G)}removeSchema(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(typeof N){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const G=D.call(this,N);return typeof G=="object"&&this._cache.delete(G.schema),delete this.schemas[N],delete this.refs[N],this}case"object":{const G=N;this._cache.delete(G);let V=N[this.opts.schemaId];return V&&(V=(0,d.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(N){for(const G of N)this.addKeyword(G);return this}addKeyword(N,G){let V;if(typeof N=="string")V=N,typeof G=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),G.keyword=V);else if(typeof N=="object"&&G===void 0){if(G=N,V=G.keyword,Array.isArray(V)&&!V.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(W.call(this,V,G),!G)return(0,m.eachItem)(V,j=>oe.call(this,j)),this;K.call(this,G);const I={...G,type:(0,u.getJSONTypes)(G.type),schemaType:(0,u.getJSONTypes)(G.schemaType)};return(0,m.eachItem)(V,I.type.length===0?j=>oe.call(this,j,I):j=>I.type.forEach(X=>oe.call(this,j,I,X))),this}getKeyword(N){const G=this.RULES.all[N];return typeof G=="object"?G.definition:!!G}removeKeyword(N){const{RULES:G}=this;delete G.keywords[N],delete G.all[N];for(const V of G.rules){const I=V.rules.findIndex(j=>j.keyword===N);I>=0&&V.rules.splice(I,1)}return this}addFormat(N,G){return typeof G=="string"&&(G=new RegExp(G)),this.formats[N]=G,this}errorsText(N=this.errors,{separator:G=", ",dataVar:V="data"}={}){return!N||N.length===0?"No errors":N.map(I=>`${V}${I.instancePath} ${I.message}`).reduce((I,j)=>I+G+j)}$dataMetaSchema(N,G){const V=this.RULES.all;N=JSON.parse(JSON.stringify(N));for(const I of G){const j=I.split("/").slice(1);let X=N;for(const de of j)X=X[de];for(const de in V){const ue=V[de];if(typeof ue!="object")continue;const{$data:Ce}=ue.definition,Ue=X[de];Ce&&Ue&&(X[de]=ie(Ue))}}return N}_removeAllSchemas(N,G){for(const V in N){const I=N[V];(!G||G.test(V))&&(typeof I=="string"?delete N[V]:I&&!I.meta&&(this._cache.delete(I.schema),delete N[V]))}}_addSchema(N,G,V,I=this.opts.validateSchema,j=this.opts.addUsedSchema){let X;const{schemaId:de}=this.opts;if(typeof N=="object")X=N[de];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof N!="boolean")throw new Error("schema must be object or boolean")}let ue=this._cache.get(N);if(ue!==void 0)return ue;V=(0,d.normalizeId)(X||V);const Ce=d.getSchemaRefs.call(this,N,V);return ue=new s.SchemaEnv({schema:N,schemaId:de,meta:G,baseId:V,localRefs:Ce}),this._cache.set(ue.schema,ue),j&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=ue),I&&this.validateSchema(N,!0),ue}_checkUnique(N){if(this.schemas[N]||this.refs[N])throw new Error(`schema with key or id "${N}" already exists`)}_compileSchemaEnv(N){if(N.meta?this._compileMetaSchema(N):s.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}_compileMetaSchema(N){const G=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,N)}finally{this.opts=G}}}C.ValidationError=a.default,C.MissingRefError=n.default,t.default=C;function P(Q,N,G,V="error"){for(const I in Q){const j=I;j in N&&this.logger[V](`${G}: option ${I}. ${Q[j]}`)}}function D(Q){return Q=(0,d.normalizeId)(Q),this.schemas[Q]||this.refs[Q]}function R(){const Q=this.opts.schemas;if(Q)if(Array.isArray(Q))this.addSchema(Q);else for(const N in Q)this.addSchema(Q[N],N)}function O(){for(const Q in this.opts.formats){const N=this.opts.formats[Q];N&&this.addFormat(Q,N)}}function L(Q){if(Array.isArray(Q)){this.addVocabulary(Q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const N in Q){const G=Q[N];G.keyword||(G.keyword=N),this.addKeyword(G)}}function $(){const Q={...this.opts};for(const N of y)delete Q[N];return Q}const B={log(){},warn(){},error(){}};function z(Q){if(Q===!1)return B;if(Q===void 0)return console;if(Q.log&&Q.warn&&Q.error)return Q;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function W(Q,N){const{RULES:G}=this;if((0,m.eachItem)(Q,V=>{if(G.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!F.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!N&&N.$data&&!("code"in N||"validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function oe(Q,N,G){var V;const I=N?.post;if(G&&I)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:j}=this;let X=I?j.post:j.rules.find(({type:ue})=>ue===G);if(X||(X={type:G,rules:[]},j.rules.push(X)),j.keywords[Q]=!0,!N)return;const de={keyword:Q,definition:{...N,type:(0,u.getJSONTypes)(N.type),schemaType:(0,u.getJSONTypes)(N.schemaType)}};N.before?H.call(this,X,de,N.before):X.rules.push(de),j.all[Q]=de,(V=N.implements)===null||V===void 0||V.forEach(ue=>this.addKeyword(ue))}function H(Q,N,G){const V=Q.rules.findIndex(I=>I.keyword===G);V>=0?Q.rules.splice(V,0,N):(Q.rules.push(N),this.logger.warn(`rule ${G} is not defined`))}function K(Q){let{metaSchema:N}=Q;N!==void 0&&(Q.$data&&this.opts.$data&&(N=ie(N)),Q.validateSchema=this.compile(N,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(Q){return{anyOf:[Q,J]}}})(pT)),pT}var ag={},ng={},rg={},sD;function FZ(){if(sD)return rg;sD=1,Object.defineProperty(rg,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return rg.default=t,rg}var hs={},lD;function jZ(){if(lD)return hs;lD=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.callRef=hs.getValidate=void 0;const t=tb(),e=Dr(),o=St(),a=Ys(),n=Uk(),r=Ft(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:m,schema:h,it:f}=u,{baseId:v,schemaEnv:y,validateName:S,opts:x,self:w}=f,{root:k}=y;if((h==="#"||h==="#/")&&v===k.baseId)return C();const _=n.resolveRef.call(w,k,v,h);if(_===void 0)throw new t.default(f.opts.uriResolver,v,h);if(_ instanceof n.SchemaEnv)return P(_);return D(_);function C(){if(y===k)return d(u,S,y,y.$async);const R=m.scopeValue("root",{ref:k});return d(u,(0,o._)`${R}.validate`,k,k.$async)}function P(R){const O=c(u,R);d(u,O,R,R.$async)}function D(R){const O=m.scopeValue("schema",x.code.source===!0?{ref:R,code:(0,o.stringify)(R)}:{ref:R}),L=m.name("valid"),$=u.subschema({schema:R,dataTypes:[],schemaPath:o.nil,topSchemaRef:O,errSchemaPath:h},L);u.mergeEvaluated($),u.ok(L)}}};function c(u,m){const{gen:h}=u;return m.validate?h.scopeValue("validate",{ref:m.validate}):(0,o._)`${h.scopeValue("wrapper",{ref:m})}.validate`}hs.getValidate=c;function d(u,m,h,f){const{gen:v,it:y}=u,{allErrors:S,schemaEnv:x,opts:w}=y,k=w.passContext?a.default.this:o.nil;f?_():C();function _(){if(!x.$async)throw new Error("async schema referenced by sync schema");const R=v.let("valid");v.try(()=>{v.code((0,o._)`await ${(0,e.callValidateCode)(u,m,k)}`),D(m),S||v.assign(R,!0)},O=>{v.if((0,o._)`!(${O} instanceof ${y.ValidationError})`,()=>v.throw(O)),P(O),S||v.assign(R,!1)}),u.ok(R)}function C(){u.result((0,e.callValidateCode)(u,m,k),()=>D(m),()=>P(m))}function P(R){const O=(0,o._)`${R}.errors`;v.assign(a.default.vErrors,(0,o._)`${a.default.vErrors} === null ? ${O} : ${a.default.vErrors}.concat(${O})`),v.assign(a.default.errors,(0,o._)`${a.default.vErrors}.length`)}function D(R){var O;if(!y.opts.unevaluated)return;const L=(O=h?.validate)===null||O===void 0?void 0:O.evaluated;if(y.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(y.props=r.mergeEvaluated.props(v,L.props,y.props));else{const $=v.var("props",(0,o._)`${R}.evaluated.props`);y.props=r.mergeEvaluated.props(v,$,y.props,o.Name)}if(y.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(y.items=r.mergeEvaluated.items(v,L.items,y.items));else{const $=v.var("items",(0,o._)`${R}.evaluated.items`);y.items=r.mergeEvaluated.items(v,$,y.items,o.Name)}}}return hs.callRef=d,hs.default=s,hs}var cD;function zZ(){if(cD)return ng;cD=1,Object.defineProperty(ng,"__esModule",{value:!0});const t=FZ(),e=jZ(),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return ng.default=o,ng}var ig={},sg={},dD;function UZ(){if(dD)return sg;dD=1,Object.defineProperty(sg,"__esModule",{value:!0});const t=St(),e=t.operators,o={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},a={message:({keyword:r,schemaCode:s})=>(0,t.str)`must be ${o[r].okStr} ${s}`,params:({keyword:r,schemaCode:s})=>(0,t._)`{comparison: ${o[r].okStr}, limit: ${s}}`},n={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(r){const{keyword:s,data:c,schemaCode:d}=r;r.fail$data((0,t._)`${c} ${o[s].fail} ${d} || isNaN(${c})`)}};return sg.default=n,sg}var lg={},uD;function $Z(){if(uD)return lg;uD=1,Object.defineProperty(lg,"__esModule",{value:!0});const t=St(),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,t._)`{multipleOf: ${a}}`},code(a){const{gen:n,data:r,schemaCode:s,it:c}=a,d=c.opts.multipleOfPrecision,u=n.let("res"),m=d?(0,t._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${d}`:(0,t._)`${u} !== parseInt(${u})`;a.fail$data((0,t._)`(${s} === 0 || (${u} = ${r}/${s}, ${m}))`)}};return lg.default=o,lg}var cg={},dg={},pD;function qZ(){if(pD)return dg;pD=1,Object.defineProperty(dg,"__esModule",{value:!0});function t(e){const o=e.length;let a=0,n=0,r;for(;n<o;)a++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<o&&(r=e.charCodeAt(n),(r&64512)===56320&&n++);return a}return dg.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',dg}var mD;function VZ(){if(mD)return cg;mD=1,Object.defineProperty(cg,"__esModule",{value:!0});const t=St(),e=Ft(),o=qZ(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:s}){const c=r==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${c} than ${s} characters`},params:({schemaCode:r})=>(0,t._)`{limit: ${r}}`},code(r){const{keyword:s,data:c,schemaCode:d,it:u}=r,m=s==="maxLength"?t.operators.GT:t.operators.LT,h=u.opts.unicode===!1?(0,t._)`${c}.length`:(0,t._)`${(0,e.useFunc)(r.gen,o.default)}(${c})`;r.fail$data((0,t._)`${h} ${m} ${d}`)}};return cg.default=n,cg}var ug={},hD;function HZ(){if(hD)return ug;hD=1,Object.defineProperty(ug,"__esModule",{value:!0});const t=Dr(),e=Ft(),o=St(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,o.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,o._)`{pattern: ${r}}`},code(r){const{gen:s,data:c,$data:d,schema:u,schemaCode:m,it:h}=r,f=h.opts.unicodeRegExp?"u":"";if(d){const{regExp:v}=h.opts.code,y=v.code==="new RegExp"?(0,o._)`new RegExp`:(0,e.useFunc)(s,v),S=s.let("valid");s.try(()=>s.assign(S,(0,o._)`${y}(${m}, ${f}).test(${c})`),()=>s.assign(S,!1)),r.fail$data((0,o._)`!${S}`)}else{const v=(0,t.usePattern)(r,u);r.fail$data((0,o._)`!${v}.test(${c})`)}}};return ug.default=n,ug}var pg={},gD;function GZ(){if(gD)return pg;gD=1,Object.defineProperty(pg,"__esModule",{value:!0});const t=St(),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:n}){const r=a==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:a})=>(0,t._)`{limit: ${a}}`},code(a){const{keyword:n,data:r,schemaCode:s}=a,c=n==="maxProperties"?t.operators.GT:t.operators.LT;a.fail$data((0,t._)`Object.keys(${r}).length ${c} ${s}`)}};return pg.default=o,pg}var mg={},fD;function WZ(){if(fD)return mg;fD=1,Object.defineProperty(mg,"__esModule",{value:!0});const t=Dr(),e=St(),o=Ft(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:r}})=>(0,e.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,e._)`{missingProperty: ${r}}`},code(r){const{gen:s,schema:c,schemaCode:d,data:u,$data:m,it:h}=r,{opts:f}=h;if(!m&&c.length===0)return;const v=c.length>=f.loopRequired;if(h.allErrors?y():S(),f.strictRequired){const k=r.parentSchema.properties,{definedProperties:_}=r.it;for(const C of c)if(k?.[C]===void 0&&!_.has(C)){const P=h.schemaEnv.baseId+h.errSchemaPath,D=`required property "${C}" is not defined at "${P}" (strictRequired)`;(0,o.checkStrictMode)(h,D,h.opts.strictRequired)}}function y(){if(v||m)r.block$data(e.nil,x);else for(const k of c)(0,t.checkReportMissingProp)(r,k)}function S(){const k=s.let("missing");if(v||m){const _=s.let("valid",!0);r.block$data(_,()=>w(k,_)),r.ok(_)}else s.if((0,t.checkMissingProp)(r,c,k)),(0,t.reportMissingProp)(r,k),s.else()}function x(){s.forOf("prop",d,k=>{r.setParams({missingProperty:k}),s.if((0,t.noPropertyInData)(s,u,k,f.ownProperties),()=>r.error())})}function w(k,_){r.setParams({missingProperty:k}),s.forOf(k,d,()=>{s.assign(_,(0,t.propertyInData)(s,u,k,f.ownProperties)),s.if((0,e.not)(_),()=>{r.error(),s.break()})},e.nil)}}};return mg.default=n,mg}var hg={},vD;function KZ(){if(vD)return hg;vD=1,Object.defineProperty(hg,"__esModule",{value:!0});const t=St(),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:n}){const r=a==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:a})=>(0,t._)`{limit: ${a}}`},code(a){const{keyword:n,data:r,schemaCode:s}=a,c=n==="maxItems"?t.operators.GT:t.operators.LT;a.fail$data((0,t._)`${r}.length ${c} ${s}`)}};return hg.default=o,hg}var gg={},fg={},bD;function $k(){if(bD)return fg;bD=1,Object.defineProperty(fg,"__esModule",{value:!0});const t=KL();return t.code='require("ajv/dist/runtime/equal").default',fg.default=t,fg}var yD;function YZ(){if(yD)return gg;yD=1,Object.defineProperty(gg,"__esModule",{value:!0});const t=Kf(),e=St(),o=Ft(),a=$k(),r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:c}})=>(0,e.str)`must NOT have duplicate items (items ## ${c} and ${s} are identical)`,params:({params:{i:s,j:c}})=>(0,e._)`{i: ${s}, j: ${c}}`},code(s){const{gen:c,data:d,$data:u,schema:m,parentSchema:h,schemaCode:f,it:v}=s;if(!u&&!m)return;const y=c.let("valid"),S=h.items?(0,t.getSchemaTypes)(h.items):[];s.block$data(y,x,(0,e._)`${f} === false`),s.ok(y);function x(){const C=c.let("i",(0,e._)`${d}.length`),P=c.let("j");s.setParams({i:C,j:P}),c.assign(y,!0),c.if((0,e._)`${C} > 1`,()=>(w()?k:_)(C,P))}function w(){return S.length>0&&!S.some(C=>C==="object"||C==="array")}function k(C,P){const D=c.name("item"),R=(0,t.checkDataTypes)(S,D,v.opts.strictNumbers,t.DataType.Wrong),O=c.const("indices",(0,e._)`{}`);c.for((0,e._)`;${C}--;`,()=>{c.let(D,(0,e._)`${d}[${C}]`),c.if(R,(0,e._)`continue`),S.length>1&&c.if((0,e._)`typeof ${D} == "string"`,(0,e._)`${D} += "_"`),c.if((0,e._)`typeof ${O}[${D}] == "number"`,()=>{c.assign(P,(0,e._)`${O}[${D}]`),s.error(),c.assign(y,!1).break()}).code((0,e._)`${O}[${D}] = ${C}`)})}function _(C,P){const D=(0,o.useFunc)(c,a.default),R=c.name("outer");c.label(R).for((0,e._)`;${C}--;`,()=>c.for((0,e._)`${P} = ${C}; ${P}--;`,()=>c.if((0,e._)`${D}(${d}[${C}], ${d}[${P}])`,()=>{s.error(),c.assign(y,!1).break(R)})))}}};return gg.default=r,gg}var vg={},SD;function ZZ(){if(SD)return vg;SD=1,Object.defineProperty(vg,"__esModule",{value:!0});const t=St(),e=Ft(),o=$k(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>(0,t._)`{allowedValue: ${r}}`},code(r){const{gen:s,data:c,$data:d,schemaCode:u,schema:m}=r;d||m&&typeof m=="object"?r.fail$data((0,t._)`!${(0,e.useFunc)(s,o.default)}(${c}, ${u})`):r.fail((0,t._)`${m} !== ${c}`)}};return vg.default=n,vg}var bg={},TD;function QZ(){if(TD)return bg;TD=1,Object.defineProperty(bg,"__esModule",{value:!0});const t=St(),e=Ft(),o=$k(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,t._)`{allowedValues: ${r}}`},code(r){const{gen:s,data:c,$data:d,schema:u,schemaCode:m,it:h}=r;if(!d&&u.length===0)throw new Error("enum must have non-empty array");const f=u.length>=h.opts.loopEnum;let v;const y=()=>v??(v=(0,e.useFunc)(s,o.default));let S;if(f||d)S=s.let("valid"),r.block$data(S,x);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const k=s.const("vSchema",m);S=(0,t.or)(...u.map((_,C)=>w(k,C)))}r.pass(S);function x(){s.assign(S,!1),s.forOf("v",m,k=>s.if((0,t._)`${y()}(${c}, ${k})`,()=>s.assign(S,!0).break()))}function w(k,_){const C=u[_];return typeof C=="object"&&C!==null?(0,t._)`${y()}(${c}, ${k}[${_}])`:(0,t._)`${c} === ${C}`}}};return bg.default=n,bg}var wD;function JZ(){if(wD)return ig;wD=1,Object.defineProperty(ig,"__esModule",{value:!0});const t=UZ(),e=$Z(),o=VZ(),a=HZ(),n=GZ(),r=WZ(),s=KZ(),c=YZ(),d=ZZ(),u=QZ(),m=[t.default,e.default,o.default,a.default,n.default,r.default,s.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,u.default];return ig.default=m,ig}var yg={},qc={},xD;function ZL(){if(xD)return qc;xD=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.validateAdditionalItems=void 0;const t=St(),e=Ft(),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>(0,t.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,t._)`{limit: ${r}}`},code(r){const{parentSchema:s,it:c}=r,{items:d}=s;if(!Array.isArray(d)){(0,e.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(r,d)}};function n(r,s){const{gen:c,schema:d,data:u,keyword:m,it:h}=r;h.items=!0;const f=c.const("len",(0,t._)`${u}.length`);if(d===!1)r.setParams({len:s.length}),r.pass((0,t._)`${f} <= ${s.length}`);else if(typeof d=="object"&&!(0,e.alwaysValidSchema)(h,d)){const y=c.var("valid",(0,t._)`${f} <= ${s.length}`);c.if((0,t.not)(y),()=>v(y)),r.ok(y)}function v(y){c.forRange("i",s.length,f,S=>{r.subschema({keyword:m,dataProp:S,dataPropType:e.Type.Num},y),h.allErrors||c.if((0,t.not)(y),()=>c.break())})}}return qc.validateAdditionalItems=n,qc.default=a,qc}var Sg={},Vc={},kD;function QL(){if(kD)return Vc;kD=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.validateTuple=void 0;const t=St(),e=Ft(),o=Dr(),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:s,it:c}=r;if(Array.isArray(s))return n(r,"additionalItems",s);c.items=!0,!(0,e.alwaysValidSchema)(c,s)&&r.ok((0,o.validateArray)(r))}};function n(r,s,c=r.schema){const{gen:d,parentSchema:u,data:m,keyword:h,it:f}=r;S(u),f.opts.unevaluated&&c.length&&f.items!==!0&&(f.items=e.mergeEvaluated.items(d,c.length,f.items));const v=d.name("valid"),y=d.const("len",(0,t._)`${m}.length`);c.forEach((x,w)=>{(0,e.alwaysValidSchema)(f,x)||(d.if((0,t._)`${y} > ${w}`,()=>r.subschema({keyword:h,schemaProp:w,dataProp:w},v)),r.ok(v))});function S(x){const{opts:w,errSchemaPath:k}=f,_=c.length,C=_===x.minItems&&(_===x.maxItems||x[s]===!1);if(w.strictTuples&&!C){const P=`"${h}" is ${_}-tuple, but minItems or maxItems/${s} are not specified or different at path "${k}"`;(0,e.checkStrictMode)(f,P,w.strictTuples)}}}return Vc.validateTuple=n,Vc.default=a,Vc}var CD;function XZ(){if(CD)return Sg;CD=1,Object.defineProperty(Sg,"__esModule",{value:!0});const t=QL(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o=>(0,t.validateTuple)(o,"items")};return Sg.default=e,Sg}var Tg={},ED;function eQ(){if(ED)return Tg;ED=1,Object.defineProperty(Tg,"__esModule",{value:!0});const t=St(),e=Ft(),o=Dr(),a=ZL(),r={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,t.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,t._)`{limit: ${s}}`},code(s){const{schema:c,parentSchema:d,it:u}=s,{prefixItems:m}=d;u.items=!0,!(0,e.alwaysValidSchema)(u,c)&&(m?(0,a.validateAdditionalItems)(s,m):s.ok((0,o.validateArray)(s)))}};return Tg.default=r,Tg}var wg={},_D;function tQ(){if(_D)return wg;_D=1,Object.defineProperty(wg,"__esModule",{value:!0});const t=St(),e=Ft(),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:r}})=>r===void 0?(0,t.str)`must contain at least ${n} valid item(s)`:(0,t.str)`must contain at least ${n} and no more than ${r} valid item(s)`,params:({params:{min:n,max:r}})=>r===void 0?(0,t._)`{minContains: ${n}}`:(0,t._)`{minContains: ${n}, maxContains: ${r}}`},code(n){const{gen:r,schema:s,parentSchema:c,data:d,it:u}=n;let m,h;const{minContains:f,maxContains:v}=c;u.opts.next?(m=f===void 0?1:f,h=v):m=1;const y=r.const("len",(0,t._)`${d}.length`);if(n.setParams({min:m,max:h}),h===void 0&&m===0){(0,e.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&m>h){(0,e.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,e.alwaysValidSchema)(u,s)){let _=(0,t._)`${y} >= ${m}`;h!==void 0&&(_=(0,t._)`${_} && ${y} <= ${h}`),n.pass(_);return}u.items=!0;const S=r.name("valid");h===void 0&&m===1?w(S,()=>r.if(S,()=>r.break())):m===0?(r.let(S,!0),h!==void 0&&r.if((0,t._)`${d}.length > 0`,x)):(r.let(S,!1),x()),n.result(S,()=>n.reset());function x(){const _=r.name("_valid"),C=r.let("count",0);w(_,()=>r.if(_,()=>k(C)))}function w(_,C){r.forRange("i",0,y,P=>{n.subschema({keyword:"contains",dataProp:P,dataPropType:e.Type.Num,compositeRule:!0},_),C()})}function k(_){r.code((0,t._)`${_}++`),h===void 0?r.if((0,t._)`${_} >= ${m}`,()=>r.assign(S,!0).break()):(r.if((0,t._)`${_} > ${h}`,()=>r.assign(S,!1).break()),m===1?r.assign(S,!0):r.if((0,t._)`${_} >= ${m}`,()=>r.assign(S,!0)))}}};return wg.default=a,wg}var TT={},PD;function oQ(){return PD||(PD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=St(),o=Ft(),a=Dr();t.error={message:({params:{property:d,depsCount:u,deps:m}})=>{const h=u===1?"property":"properties";return(0,e.str)`must have ${h} ${m} when property ${d} is present`},params:({params:{property:d,depsCount:u,deps:m,missingProperty:h}})=>(0,e._)`{property: ${d},
|
|
53
53
|
missingProperty: ${h},
|
|
54
54
|
depsCount: ${u},
|
|
55
|
-
deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[u,m]=r(d);s(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function s(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const v=m.let("missing");for(const y in u){const S=u[y];if(S.length===0)continue;const x=(0,a.propertyInData)(m,h,y,f.opts.ownProperties);d.setParams({property:y,depsCount:S.length,deps:S.join(", ")}),f.allErrors?m.if(x,()=>{for(const w of S)(0,a.checkReportMissingProp)(d,w)}):(m.if((0,e._)`${x} && (${(0,a.checkMissingProp)(d,S,v)})`),(0,a.reportMissingProp)(d,v),m.else())}}t.validatePropertyDeps=s;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,y=m.name("valid");for(const S in u)(0,o.alwaysValidSchema)(v,u[S])||(m.if((0,a.propertyInData)(m,h,S,v.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:S},y);d.mergeValidEvaluated(x,y)},()=>m.var(y,!0)),d.ok(y))}t.validateSchemaDeps=c,t.default=n})(TT)),TT}var xg={},AD;function aQ(){if(AD)return xg;AD=1,Object.defineProperty(xg,"__esModule",{value:!0});const t=St(),e=Ft(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,t._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:s,data:c,it:d}=n;if((0,e.alwaysValidSchema)(d,s))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,t.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return xg.default=a,xg}var kg={},RD;function JL(){if(RD)return kg;RD=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Dr(),e=St(),o=Ys(),a=Ft(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,e._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=s;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:y}=f;if(f.props=!0,y.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(f,d))return;const S=(0,t.allSchemaProperties)(u.properties),x=(0,t.allSchemaProperties)(u.patternProperties);w(),s.ok((0,e._)`${h} === ${o.default.errors}`);function w(){c.forIn("key",m,D=>{!S.length&&!x.length?C(D):c.if(k(D),()=>C(D))})}function k(D){let R;if(S.length>8){const O=(0,a.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else S.length?R=(0,e.or)(...S.map(O=>(0,e._)`${D} === ${O}`)):R=e.nil;return x.length&&(R=(0,e.or)(R,...x.map(O=>(0,e._)`${(0,t.usePattern)(s,O)}.test(${D})`))),(0,e.not)(R)}function _(D){c.code((0,e._)`delete ${m}[${D}]`)}function C(D){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){_(D);return}if(d===!1){s.setParams({additionalProperty:D}),s.error(),v||c.break();return}if(typeof d=="object"&&!(0,a.alwaysValidSchema)(f,d)){const R=c.name("valid");y.removeAdditional==="failing"?(P(D,R,!1),c.if((0,e.not)(R),()=>{s.reset(),_(D)})):(P(D,R),v||c.if((0,e.not)(R),()=>c.break()))}}function P(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(L,R)}}};return kg.default=r,kg}var Cg={},DD;function nQ(){if(DD)return Cg;DD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=eb(),e=Dr(),o=Ft(),a=JL(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:s,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&a.default.code(new t.KeywordCxt(m,a.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(c);for(const x of h)m.definedProperties.add(x);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=o.mergeEvaluated.props(s,(0,o.toHash)(h),m.props));const f=h.filter(x=>!(0,o.alwaysValidSchema)(m,c[x]));if(f.length===0)return;const v=s.name("valid");for(const x of f)y(x)?S(x):(s.if((0,e.propertyInData)(s,u,x,m.opts.ownProperties)),S(x),m.allErrors||s.else().var(v,!0),s.endIf()),r.it.definedProperties.add(x),r.ok(v);function y(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function S(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return Cg.default=n,Cg}var Eg={},OD;function rQ(){if(OD)return Eg;OD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const t=Dr(),e=St(),o=Ft(),a=Ft(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:s,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,t.allSchemaProperties)(c),v=f.filter(C=>(0,o.alwaysValidSchema)(m,c[C]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&u.properties,S=s.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,a.evaluatedPropsToName)(s,m.props));const{props:x}=m;w();function w(){for(const C of f)y&&k(C),m.allErrors?_(C):(s.var(S,!0),_(C),s.if(S))}function k(C){for(const P in y)new RegExp(C).test(P)&&(0,o.checkStrictMode)(m,`property ${P} matches pattern ${C} (use allowMatchingProperties)`)}function _(C){s.forIn("key",d,P=>{s.if((0,e._)`${(0,t.usePattern)(r,C)}.test(${P})`,()=>{const D=v.includes(C);D||r.subschema({keyword:"patternProperties",schemaProp:C,dataProp:P,dataPropType:a.Type.Str},S),m.opts.unevaluated&&x!==!0?s.assign((0,e._)`${x}[${P}]`,!0):!D&&!m.allErrors&&s.if((0,e.not)(S),()=>s.break())})})}}};return Eg.default=n,Eg}var _g={},MD;function iQ(){if(MD)return _g;MD=1,Object.defineProperty(_g,"__esModule",{value:!0});const t=Ft(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:a,schema:n,it:r}=o;if((0,t.alwaysValidSchema)(r,n)){o.fail();return}const s=a.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),o.failResult(s,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return _g.default=e,_g}var Pg={},ND;function sQ(){if(ND)return Pg;ND=1,Object.defineProperty(Pg,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return Pg.default=e,Pg}var Ag={},ID;function lQ(){if(ID)return Ag;ID=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=St(),e=Ft(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,t._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:s,parentSchema:c,it:d}=n;if(!Array.isArray(s))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=s,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((y,S)=>{let x;(0,e.alwaysValidSchema)(d,y)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:S,compositeRule:!0},f),S>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${S}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,S),x&&n.mergeEvaluated(x,t.Name)})})}}};return Ag.default=a,Ag}var Rg={},LD;function cQ(){if(LD)return Rg;LD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t=Ft(),e={keyword:"allOf",schemaType:"array",code(o){const{gen:a,schema:n,it:r}=o;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=a.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=o.subschema({keyword:"allOf",schemaProp:d},s);o.ok(s),o.mergeEvaluated(u)})}};return Rg.default=e,Rg}var Dg={},BD;function dQ(){if(BD)return Dg;BD=1,Object.defineProperty(Dg,"__esModule",{value:!0});const t=St(),e=Ft(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,t.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,t._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:s,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,e.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=s.let("valid",!0),f=s.name("_valid");if(v(),r.reset(),u&&m){const S=s.let("ifClause");r.setParams({ifClause:S}),s.if(f,y("then",S),y("else",S))}else u?s.if(f,y("then")):s.if((0,t.not)(f),y("else"));r.pass(h,()=>r.error(!0));function v(){const S=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(S)}function y(S,x){return()=>{const w=r.subschema({keyword:S},f);s.assign(h,f),r.mergeValidEvaluated(w,h),x?s.assign(x,(0,t._)`${S}`):r.setParams({ifClause:S})}}}};function n(r,s){const c=r.schema[s];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=a,Dg}var Og={},FD;function uQ(){if(FD)return Og;FD=1,Object.defineProperty(Og,"__esModule",{value:!0});const t=Ft(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:a,it:n}){a.if===void 0&&(0,t.checkStrictMode)(n,`"${o}" without "if" is ignored`)}};return Og.default=e,Og}var jD;function pQ(){if(jD)return yg;jD=1,Object.defineProperty(yg,"__esModule",{value:!0});const t=ZL(),e=XZ(),o=QL(),a=eQ(),n=tQ(),r=oQ(),s=aQ(),c=JL(),d=nQ(),u=rQ(),m=iQ(),h=sQ(),f=lQ(),v=cQ(),y=dQ(),S=uQ();function x(w=!1){const k=[m.default,h.default,f.default,v.default,y.default,S.default,s.default,c.default,r.default,d.default,u.default];return w?k.push(e.default,a.default):k.push(t.default,o.default),k.push(n.default),k}return yg.default=x,yg}var Mg={},Ng={},zD;function mQ(){if(zD)return Ng;zD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const t=St(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,t._)`{format: ${a}}`},code(a,n){const{gen:r,data:s,$data:c,schema:d,schemaCode:u,it:m}=a,{opts:h,errSchemaPath:f,schemaEnv:v,self:y}=m;if(!h.validateFormats)return;c?S():x();function S(){const w=r.scopeValue("formats",{ref:y.formats,code:h.code.formats}),k=r.const("fDef",(0,t._)`${w}[${u}]`),_=r.let("fType"),C=r.let("format");r.if((0,t._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(_,(0,t._)`${k}.type || "string"`).assign(C,(0,t._)`${k}.validate`),()=>r.assign(_,(0,t._)`"string"`).assign(C,k)),a.fail$data((0,t.or)(P(),D()));function P(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${C}`}function D(){const R=v.$async?(0,t._)`(${k}.async ? await ${C}(${s}) : ${C}(${s}))`:(0,t._)`${C}(${s})`,O=(0,t._)`(typeof ${C} == "function" ? ${R} : ${C}.test(${s}))`;return(0,t._)`${C} && ${C} !== true && ${_} === ${n} && !${O}`}}function x(){const w=y.formats[d];if(!w){P();return}if(w===!0)return;const[k,_,C]=D(w);k===n&&a.pass(R());function P(){if(h.strictSchema===!1){y.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,t.regexpCode)(O):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(d)}`:void 0,$=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${$}.validate`]:["string",O,$]}function R(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!v.$async)throw new Error("async format in sync schema");return(0,t._)`await ${C}(${s})`}return typeof _=="function"?(0,t._)`${C}(${s})`:(0,t._)`${C}.test(${s})`}}}};return Ng.default=o,Ng}var UD;function hQ(){if(UD)return Mg;UD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const e=[mQ().default];return Mg.default=e,Mg}var Sl={},$D;function gQ(){return $D||($D=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.contentVocabulary=Sl.metadataVocabulary=void 0,Sl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Sl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Sl}var qD;function fQ(){if(qD)return ag;qD=1,Object.defineProperty(ag,"__esModule",{value:!0});const t=zZ(),e=JZ(),o=pQ(),a=hQ(),n=gQ(),r=[t.default,e.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return ag.default=r,ag}var Ig={},Yu={},VD;function vQ(){if(VD)return Yu;VD=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Yu.DiscrError=t={})),Yu}var HD;function bQ(){if(HD)return Ig;HD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=St(),e=vQ(),o=Uk(),a=tb(),n=Ft(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===e.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,t._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=m.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const S=d.let("valid",!1),x=d.const("tag",(0,t._)`${u}${(0,t.getProperty)(y)}`);d.if((0,t._)`typeof ${x} == "string"`,()=>w(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:x,tagName:y})),c.ok(S);function w(){const C=_();d.if(!1);for(const P in C)d.elseIf((0,t._)`${x} === ${P}`),d.assign(S,k(C[P]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function k(C){const P=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:C},P);return c.mergeEvaluated(D,t.Name),P}function _(){var C;const P={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof o.SchemaEnv&&(z=z.schema),z===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(C=z?.properties)===null||C===void 0?void 0:C[y];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${y}" must be required`);return P;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function L(B,z){if(B.const)$(B.const,z);else if(B.enum)for(const F of B.enum)$(F,z);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function $(B,z){if(typeof B!="string"||B in P)throw new Error(`discriminator: "${y}" values must be unique strings`);P[B]=z}}}};return Ig.default=s,Ig}const yQ="http://json-schema.org/draft-07/schema#",SQ="http://json-schema.org/draft-07/schema#",TQ="Core schema meta-schema",wQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},xQ=["object","boolean"],kQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},CQ={$schema:yQ,$id:SQ,title:TQ,definitions:wQ,type:xQ,properties:kQ,default:!0};var GD;function EQ(){return GD||(GD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const o=BZ(),a=fQ(),n=bQ(),r=CQ,s=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(r,s):r;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.Ajv=d,t.exports=e=d,t.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var u=eb();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=St();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=zk();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=tb();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},wT={},WD;function _Q(){return WD||(WD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,z){return{validate:B,compare:z}}t.fullFormats={date:e(r,s),time:e(d(!0),u),"date-time":e(f(!0),v),"iso-time":e(d(),m),"iso-date-time":e(f(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:w,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:$,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:_,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=a.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],oe=+z[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function s(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const oe=+W[1],H=+W[2],K=+W[3],J=W[4],ie=W[5]==="-"?-1:1,Q=+(W[6]||0),N=+(W[7]||0);if(Q>23||N>59||B&&!J)return!1;if(oe<=23&&H<=59&&K<60)return!0;const G=H-N*ie,V=oe-Q*ie-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&z(oe[1])}}function v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function y(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[oe,H]=z.split(h),K=s(F,oe);if(K!==void 0)return K||u(W,H)}const S=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function w(B){return S.test(B)&&x.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function _(B){return k.lastIndex=0,k.test(B)}const C=-2147483648,P=2**31-1;function D(B){return Number.isInteger(B)&&B<=P&&B>=C}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function $(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(wT)),wT}var xT={},KD;function PQ(){return KD||(KD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=EQ(),o=St(),a=o.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${n[c].okStr}, limit: ${d}}`};t.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:v,self:y}=f;if(!v.validateFormats)return;const S=new e.KeywordCxt(f,y.RULES.all.format.definition,"format");S.$data?x():w();function x(){const _=d.scopeValue("formats",{ref:y.formats,code:v.code.formats}),C=d.const("fmt",(0,o._)`${_}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${C} != "object"`,(0,o._)`${C} instanceof RegExp`,(0,o._)`typeof ${C}.compare != "function"`,k(C)))}function w(){const _=S.schema,C=y.formats[_];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${h}": format "${_}" does not define "compare" function`);const P=d.scopeValue("formats",{key:_,ref:C,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(_)}`:void 0});c.fail$data(k(P))}function k(_){return(0,o._)`${_}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const s=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=s})(xT)),xT}var YD;function AQ(){return YD||(YD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=_Q(),a=PQ(),n=St(),r=new n.Name("fullFormats"),s=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,o.fullFormats,r),u;const[h,f]=m.mode==="fast"?[o.fastFormats,s]:[o.fullFormats,r],v=m.formats||o.formatNames;return d(u,v,h,f),m.keywords&&(0,a.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?o.fastFormats:o.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var v,y;(v=(y=u.opts.code).formats)!==null&&v!==void 0||(y.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const S of m)u.addFormat(S,h[S])}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c})(Lg,Lg.exports)),Lg.exports}var RQ=AQ();const lwe=Wl(RQ);function DQ({studioUrl:t,meshUrl:e},o){return t??e??o}let qk;qk=globalThis.crypto;async function OQ(t){return(await qk).getRandomValues(new Uint8Array(t))}async function MQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%e.length;let a="";for(;a.length<t;){const n=await OQ(t-a.length);for(const r of n)r<o&&(a+=e[r%e.length])}return a}async function NQ(t){return await MQ(t)}async function IQ(t){const e=await(await qk).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function cwe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await NQ(t),o=await IQ(e);return{code_verifier:e,code_challenge:o}}const Ca=nL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:FW.custom,message:"URL must be parseable",fatal:!0}),VV}).refine(t=>{const e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),dwe=Ea({resource:q().url(),authorization_servers:je(Ca).optional(),jwks_uri:q().url().optional(),scopes_supported:je(q()).optional(),bearer_methods_supported:je(q()).optional(),resource_signing_alg_values_supported:je(q()).optional(),resource_name:q().optional(),resource_documentation:q().optional(),resource_policy_uri:q().url().optional(),resource_tos_uri:q().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je(q()).optional(),dpop_signing_alg_values_supported:je(q()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),LQ=Ea({issuer:q(),authorization_endpoint:Ca,token_endpoint:Ca,registration_endpoint:Ca.optional(),scopes_supported:je(q()).optional(),response_types_supported:je(q()),response_modes_supported:je(q()).optional(),grant_types_supported:je(q()).optional(),token_endpoint_auth_methods_supported:je(q()).optional(),token_endpoint_auth_signing_alg_values_supported:je(q()).optional(),service_documentation:Ca.optional(),revocation_endpoint:Ca.optional(),revocation_endpoint_auth_methods_supported:je(q()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je(q()).optional(),introspection_endpoint:q().optional(),introspection_endpoint_auth_methods_supported:je(q()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je(q()).optional(),code_challenge_methods_supported:je(q()).optional(),client_id_metadata_document_supported:Vt().optional()}),BQ=Ea({issuer:q(),authorization_endpoint:Ca,token_endpoint:Ca,userinfo_endpoint:Ca.optional(),jwks_uri:Ca,registration_endpoint:Ca.optional(),scopes_supported:je(q()).optional(),response_types_supported:je(q()),response_modes_supported:je(q()).optional(),grant_types_supported:je(q()).optional(),acr_values_supported:je(q()).optional(),subject_types_supported:je(q()),id_token_signing_alg_values_supported:je(q()),id_token_encryption_alg_values_supported:je(q()).optional(),id_token_encryption_enc_values_supported:je(q()).optional(),userinfo_signing_alg_values_supported:je(q()).optional(),userinfo_encryption_alg_values_supported:je(q()).optional(),userinfo_encryption_enc_values_supported:je(q()).optional(),request_object_signing_alg_values_supported:je(q()).optional(),request_object_encryption_alg_values_supported:je(q()).optional(),request_object_encryption_enc_values_supported:je(q()).optional(),token_endpoint_auth_methods_supported:je(q()).optional(),token_endpoint_auth_signing_alg_values_supported:je(q()).optional(),display_values_supported:je(q()).optional(),claim_types_supported:je(q()).optional(),claims_supported:je(q()).optional(),service_documentation:q().optional(),claims_locales_supported:je(q()).optional(),ui_locales_supported:je(q()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Ca.optional(),op_tos_uri:Ca.optional(),client_id_metadata_document_supported:Vt().optional()}),uwe=Te({...BQ.shape,...LQ.pick({code_challenge_methods_supported:!0}).shape}),pwe=Te({access_token:q(),id_token:q().optional(),token_type:q(),expires_in:mL().optional(),scope:q().optional(),refresh_token:q().optional()}).strip(),mwe=Te({error:q(),error_description:q().optional(),error_uri:q().optional()}),ZD=Ca.optional().or(Ze("").transform(()=>{})),FQ=Te({redirect_uris:je(Ca),token_endpoint_auth_method:q().optional(),grant_types:je(q()).optional(),response_types:je(q()).optional(),client_name:q().optional(),client_uri:Ca.optional(),logo_uri:ZD,scope:q().optional(),contacts:je(q()).optional(),tos_uri:ZD,policy_uri:q().optional(),jwks_uri:Ca.optional(),jwks:dW().optional(),software_id:q().optional(),software_version:q().optional(),software_statement:q().optional()}).strip(),jQ=Te({client_id:q(),client_secret:q().optional(),client_id_issued_at:Rt().optional(),client_secret_expires_at:Rt().optional()}).strip(),hwe=FQ.merge(jQ);Te({error:q(),error_description:q().optional()}).strip();Te({token:q(),token_type_hint:q().optional()}).strip();class Oa extends Error{constructor(e,o){super(e),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class p0 extends Oa{}p0.errorCode="invalid_request";class m0 extends Oa{}m0.errorCode="invalid_client";class h0 extends Oa{}h0.errorCode="invalid_grant";class g0 extends Oa{}g0.errorCode="unauthorized_client";class f0 extends Oa{}f0.errorCode="unsupported_grant_type";class v0 extends Oa{}v0.errorCode="invalid_scope";class b0 extends Oa{}b0.errorCode="access_denied";class y0 extends Oa{}y0.errorCode="server_error";class S0 extends Oa{}S0.errorCode="temporarily_unavailable";class T0 extends Oa{}T0.errorCode="unsupported_response_type";class w0 extends Oa{}w0.errorCode="unsupported_token_type";class x0 extends Oa{}x0.errorCode="invalid_token";class k0 extends Oa{}k0.errorCode="method_not_allowed";class C0 extends Oa{}C0.errorCode="too_many_requests";class E0 extends Oa{}E0.errorCode="invalid_client_metadata";class _0 extends Oa{}_0.errorCode="insufficient_scope";class P0 extends Oa{}P0.errorCode="invalid_target";const gwe={[p0.errorCode]:p0,[m0.errorCode]:m0,[h0.errorCode]:h0,[g0.errorCode]:g0,[f0.errorCode]:f0,[v0.errorCode]:v0,[b0.errorCode]:b0,[y0.errorCode]:y0,[S0.errorCode]:S0,[T0.errorCode]:T0,[w0.errorCode]:w0,[x0.errorCode]:x0,[k0.errorCode]:k0,[C0.errorCode]:C0,[E0.errorCode]:E0,[_0.errorCode]:_0,[P0.errorCode]:P0};async function XL(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(o){if(o instanceof Qv&&o.code===Up.MethodNotFound)return{resources:[]};throw o}}async function zQ(t,e){return await t.readResource({uri:e})}function fwe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ta.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>XL(o),e[5]=o,e[6]=r):r=e[6];const s=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==s?(c={...a,queryKey:n,queryFn:r,staleTime:s,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=s,e[11]=c):c=e[11],Gs(c)}function vwe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ta.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>XL(o),e[5]=o,e[6]=r):r=e[6];const s=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==s?(c={...a,queryKey:n,queryFn:r,staleTime:s,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=s,e[11]=c):c=e[11],Hs(c)}function bwe(t){const e=ye.c(15);let o,a,n;e[0]!==t?({client:o,uri:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o||e[5]!==n?(r=ta.mcpReadResource(o,n),e[4]=o,e[5]=n,e[6]=r):r=e[6];let s;e[7]!==o||e[8]!==n?(s=()=>zQ(o,n),e[7]=o,e[8]=n,e[9]=s):s=e[9];const c=a.staleTime??3e4;let d;return e[10]!==a||e[11]!==r||e[12]!==s||e[13]!==c?(d={...a,queryKey:r,queryFn:s,staleTime:c,retry:!1},e[10]=a,e[11]=r,e[12]=s,e[13]=c,e[14]=d):d=e[14],Gs(d)}const eB="ui-resource-html";function ywe(t){const e=ye.c(22);let o,a,n,r,s,c;e[0]!==t?({orgSlug:n,connectionId:o,uri:c,studioUrl:s,meshUrl:a,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=s,e[6]=c):(o=e[1],a=e[2],n=e[3],r=e[4],s=e[5],c=e[6]);let d;e[7]!==o||e[8]!==n||e[9]!==c?(d=ta.mcpUiResourceHtml(n,o,c),e[7]=o,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==a||e[13]!==n||e[14]!==s||e[15]!==c?(u=async()=>{const v=`${DQ({studioUrl:s,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,y=await fetch(v,{credentials:"include"});if(!y.ok)throw new Error(`Failed to read UI resource (${y.status})`);return y.text()},e[11]=o,e[12]=a,e[13]=n,e[14]=s,e[15]=c,e[16]=u):u=e[16];const m=r.staleTime??3e4;let h;return e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},e[17]=r,e[18]=d,e[19]=u,e[20]=m,e[21]=h):h=e[21],Gs(h)}const tB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class A0 extends Error{constructor(e,o,a){super(e),this.status=o,this.code=a,this.name="StudioToolError"}status;code}function oB(t){return t instanceof A0&&Object.values(tB).includes(t.code??"")?t.code:null}async function UQ(t,e,o){const a=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${e} failed (${a.status})`,r;try{const s=await a.json();s?.error&&(n=s.error),typeof s?.code=="string"&&(r=s.code)}catch{}throw new A0(n,a.status,r)}try{return await a.json()}catch{throw new A0(`${e} returned a non-JSON response`,a.status)}}function Vk(){const t=ye.c(5),{org:e}=Ks(),o=e.slug;let a;t[0]!==o?(a=(r,s)=>UQ(o,r,s),t[0]=o,t[1]=a):a=t[1];let n;return t[2]!==o||t[3]!==a?(n={orgSlug:o,call:a},t[2]=o,t[3]=a,t[4]=n):n=t[4],n}function $Q(t){for(const e of["content-revision","content-versions","content-changes","content-draft-tombstones"])t.getQueryDefaults([e]).gcTime!==1/0&&t.setQueryDefaults([e],{gcTime:1/0})}const qQ="studio-ui-resources",Yf="html",VQ=10080*60*1e3,HQ=50,GQ=16*1024*1024;function WQ(t){return t[0]==="mcp"&&t[1]===eB}function ob(){return new Promise((t,e)=>{const o=indexedDB.open(qQ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Yf)||o.result.createObjectStore(Yf)},o.onsuccess=()=>t(o.result),o.onerror=()=>e(o.error)})}function Ld(t,e){return t.transaction(Yf,e).objectStore(Yf)}function R0(t){return new Promise((e,o)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>o(t.error)})}async function KQ(t){if(!(typeof indexedDB>"u"))try{const e=await ob(),o=Ld(e,"readonly"),a=await R0(o.getAllKeys()),n=await R0(o.getAll()),r=Date.now(),s=a.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of s){if(!m||r-m.updatedAt>VQ||d>=HQ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));t.getQueryData(f)===void 0&&t.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=Ld(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function YQ(t){if(typeof indexedDB>"u")return()=>{};const e=ob().catch(()=>null);return t.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!WQ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>GQ||e.then(r=>{if(r)try{Ld(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function ZQ(){typeof indexedDB>"u"||ob().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function Swe(t){if(!(typeof indexedDB>"u"))try{const e=await ob(),o=await R0(Ld(e,"readonly").getAllKeys()),a=Ld(e,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===eB&&r[3]===t&&a.delete(n)}catch{}}catch{}}const Zf="studio:rq-cache",Hk=1440*60*1e3,QQ=1e3,JQ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),XQ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let aB=!1,nB=!1;function eJ(t){const e=t[0];return typeof e=="string"&&JQ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&XQ.has(t[4])}function tJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(Zf);if(!e)return;const o=JSON.parse(e),a=!o.timestamp||Date.now()-o.timestamp>Hk;if(o.buster!=="4.526.1"||a||!o.state){window.localStorage.removeItem(Zf);return}TV(t,o.state),t.invalidateQueries({queryKey:ta.publicConfig(),refetchType:"none"}),aB=!0}catch{sJ()}}function oJ(t){if(typeof window>"u")return()=>{};let e=null;const o=()=>{e=null;try{const r=SV(t,{shouldDehydrateQuery:s=>s.state.status==="success"&&eJ(s.queryKey)});window.localStorage.setItem(Zf,JSON.stringify({buster:"4.526.1",timestamp:Date.now(),state:r}))}catch{}},a=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(o,QQ))}),n=()=>{e!=null&&(clearTimeout(e),o())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),a()}}const rB="studio:org-cache:",aJ=20;function nJ(t){const e=Date.now(),o=Object.entries(t).filter(([,a])=>e-a.updatedAt<=Hk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>aJ;)o.shift();return Object.fromEntries(o)}function iB(t){return`${rB}${t}`}function rJ(t,e){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(iB(t));if(!o)return null;const a=JSON.parse(o)[e];return!a||Date.now()-a.updatedAt>Hk?null:(nB=!0,a)}catch{return null}}function iJ(t,e,o){if(!(typeof window>"u"))try{const a=iB(t),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[e]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(nJ(r)))}catch{}}function sJ(){if(ZQ(),!(typeof window>"u"))try{window.localStorage.removeItem(Zf);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(rB)&&window.localStorage.removeItem(e)}}catch{}}function lJ(){return aB}function cJ(){return nB}function QD(t){const e=oB(t);if(!e)return;const o=e===tB.aiBudgetExhausted?Qf.budget||"This organization's AI allowance is used up.":Qf.feature||"This organization's plan does not include that.";Id.error(o,{id:`plan-refusal:${e}`})}const Qf={feature:"",budget:""},Zl=new OV({queryCache:new QN({onError:QD}),mutationCache:new ZN({onError:QD}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>oB(e)===null&&t<1,gcTime:300*1e3}}});$Q(Zl);tJ(Zl);oJ(Zl);KQ(Zl);YQ(Zl);const Gk=5*6e4;async function sB(){return(await(await fetch("/api/config")).json()).config}function lB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ta.publicConfig(),queryFn:sB,staleTime:Gk},t[0]=e):e=t[0];const{data:o}=Gs(e);return o}function Twe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ta.publicConfig(),queryFn:sB,staleTime:Gk},t[0]=e):e=t[0],Hs(e).data}const cB=A.createContext(void 0);function dJ(t){const e=ye.c(3),{children:o}=t,a=lB();let n;return e[0]!==o||e[1]!==a.auth?(n=b.jsx(cB.Provider,{value:a.auth,children:o}),e[0]=o,e[1]=a.auth,e[2]=n):n=e[2],n}function wwe(){const t=A.useContext(cB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var uJ={},JD={};const vf=Object.create(null),Zu=t=>uJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?vf:globalThis),Xn=new Proxy(vf,{get(t,e){return Zu()[e]??vf[e]},has(t,e){return e in Zu()||e in vf},set(t,e,o){const a=Zu(!0);return a[e]=o,!0},deleteProperty(t,e){if(!e)return!1;const o=Zu(!0);return delete o[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Yo(t,e){return typeof process<"u"&&JD?JD[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Qu=1,ma=4,Vr=8,Mn=24,XD={eterm:ma,cons25:ma,console:ma,cygwin:ma,dtterm:ma,gnome:ma,hurd:ma,jfbterm:ma,konsole:ma,kterm:ma,mlterm:ma,mosh:Mn,putty:ma,st:ma,"rxvt-unicode-24bit":Mn,terminator:Mn,"xterm-kitty":Mn},pJ=new Map(Object.entries({APPVEYOR:Vr,BUILDKITE:Vr,CIRCLECI:Mn,DRONE:Vr,GITEA_ACTIONS:Mn,GITHUB_ACTIONS:Mn,GITLAB_CI:Vr,TRAVIS:Vr})),mJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function hJ(){if(Yo("FORCE_COLOR")!==void 0)switch(Yo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Vr;case"3":return Mn;default:return Qu}if(Yo("NODE_DISABLE_COLORS")!==void 0&&Yo("NODE_DISABLE_COLORS")!==""||Yo("NO_COLOR")!==void 0&&Yo("NO_COLOR")!==""||Yo("TERM")==="dumb")return Qu;if(Yo("TMUX"))return Mn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return ma;if("CI"in Xn){for(const{0:t,1:e}of pJ)if(t in Xn)return e;return Yo("CI_NAME")==="codeship"?Vr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Yo("TEAMCITY_VERSION"))!==null?ma:Qu;switch(Yo("TERM_PROGRAM")){case"iTerm.app":return!Yo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Yo("TERM_PROGRAM_VERSION"))!==null?Vr:Mn;case"HyperTerm":case"MacTerm":return Mn;case"Apple_Terminal":return Vr}if(Yo("COLORTERM")==="truecolor"||Yo("COLORTERM")==="24bit")return Mn;if(Yo("TERM")){if(/truecolor/.exec(Yo("TERM"))!==null)return Mn;if(/^xterm-256/.exec(Yo("TERM"))!==null)return Vr;const t=Yo("TERM").toLowerCase();if(XD[t])return XD[t];if(mJ.some(e=>e.exec(t)!==null))return ma}return Yo("COLORTERM")?ma:Qu}const Hr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},D0=["debug","info","success","warn","error"];function gJ(t,e){return D0.indexOf(e)>=D0.indexOf(t)}const fJ={info:Hr.fg.blue,success:Hr.fg.green,warn:Hr.fg.yellow,error:Hr.fg.red,debug:Hr.fg.magenta},vJ=(t,e,o)=>{const a=new Date().toISOString();return o?`${Hr.dim}${a}${Hr.reset} ${fJ[t]}${t.toUpperCase()}${Hr.reset} ${Hr.bright}[Better Auth]:${Hr.reset} ${e}`:`${a} ${t.toUpperCase()} [Better Auth]: ${e}`},bJ=t=>{const e="warn",o=hJ()!==1,a=(n,r,s=[])=>{if(!gJ(e,n))return;const c=vJ(n,r,o);{n==="error"?console.error(c,...s):n==="warn"?console.warn(c,...s):console.log(c,...s);return}};return{...Object.fromEntries(D0.map(n=>[n,(...[r,...s])=>a(n,r,s)])),get level(){return e}}};bJ();function yJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var kp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function SJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function TJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new kp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof kp?e:new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function kT(t,e="/api/auth"){if(TJ(t),SJ(t))return t;const o=t.replace(/\/+$/,"");return!e||e==="/"?o:(e=e.startsWith("/")?e:`/${e}`,`${o}${e}`)}function wJ(t,e,o,a,n){if(t)return kT(t,e);{const r=Xn.BETTER_AUTH_URL||Xn.NEXT_PUBLIC_BETTER_AUTH_URL||Xn.PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_AUTH_URL||(Xn.BASE_URL!=="/"?Xn.BASE_URL:void 0);if(r)return kT(r,e)}if(typeof window<"u"&&window.location)return kT(window.location.origin,e)}const xJ={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}},kJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},CJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,eO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},EJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function _J(t){return t instanceof Date&&!isNaN(t.getTime())}function PJ(t){const e=EJ.exec(t);if(!e)return null;const[,o,a,n,r,s,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(o,10),parseInt(a,10)-1,parseInt(n,10),parseInt(r,10),parseInt(s,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return _J(f)?f:null}function AJ(t,e={}){const{strict:o=!1,warnings:a=!1,reviver:n,parseDates:r=!0}=e;if(typeof t!="string")return t;const s=t.trim();if(s.length>0&&s[0]==='"'&&s.endsWith('"')&&!s.slice(1,-1).includes('"'))return s.slice(1,-1);const c=s.toLowerCase();if(c.length<=9&&c in eO)return eO[c];if(!CJ.test(s)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(kJ).some(([d,u])=>{const m=u.test(s);return m&&a&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(s,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){a&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=PJ(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return t}}function RJ(t,e={strict:!0}){return AJ(t,e)}let fr=[],gs=0;const Bg=4,DJ=globalThis.nanostoresGlobal||={epoch:0},hd=t=>{let e=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:t,lc:0,listen(a){return o.lc=e.push(a),()=>{for(let r=gs+Bg;r<fr.length;)fr[r]===a?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(a);~n&&(e.splice(n,1),--o.lc||o.off())}},notify(a,n){DJ.epoch++;let r=!fr.length;for(let s of e)fr.push(s,o.value,a,n);if(r){for(gs=0;gs<fr.length;gs+=Bg)fr[gs](fr[gs+1],fr[gs+2],fr[gs+3]);fr.length=0}},off(){},set(a){let n=o.value;n!==a&&(o.value=a,o.notify(n))},subscribe(a){let n=o.listen(a);return a(o.value),n},value:t};return o},OJ=5,Fg=6,jg=10;let MJ=(t,e,o,a)=>(t.events=t.events||{},t.events[o+jg]||(t.events[o+jg]=a(n=>{t.events[o].reduceRight((r,s)=>(s(r),r),{shared:{},...n})})),t.events[o]=t.events[o]||[],t.events[o].push(e),()=>{let n=t.events[o],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[o],t.events[o+jg](),delete t.events[o+jg])});const NJ=1e3;let dB=(t,e)=>MJ(t,a=>{let n=e(a);n&&t.events[Fg].push(n)},OJ,a=>{let n=t.listen;t.listen=(...s)=>(!t.lc&&!t.active&&(t.active=!0,a()),n(...s));let r=t.off;return t.events[Fg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let s of t.events[Fg])s();t.events[Fg]=[]}},NJ)},()=>{t.listen=n,t.off=r}});function IJ(t,e,o){let a=new Set(e).add(void 0);return t.listen((n,r,s)=>{a.has(s)&&o(n,r,s)})}const LJ=()=>typeof window>"u",mp=(t,e,o,a)=>{const n=hd({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let s=!1;for(const c of t)c.subscribe(async()=>{LJ()||(s?await r():dB(n,()=>{const d=setTimeout(async()=>{s||(await r(),s=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},CT=Symbol.for("better-auth:broadcast-channel"),BJ=()=>Math.floor(Date.now()/1e3);var FJ=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:BJ()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const o=JSON.parse(e.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(a=>a(o))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function ET(t="better-auth.message"){return globalThis[CT]||(globalThis[CT]=new FJ(t)),globalThis[CT]}const _T=Symbol.for("better-auth:focus-manager");var jJ=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function tO(){return globalThis[_T]||(globalThis[_T]=new jJ),globalThis[_T]}const PT=Symbol.for("better-auth:online-manager");var zJ=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function AT(){return globalThis[PT]||(globalThis[PT]=new zJ),globalThis[PT]}const Hc=()=>Math.floor(Date.now()/1e3),UJ=5;function $J(t){const{sessionAtom:e,sessionSignal:o,$fetch:a,options:n={}}=t,r=n.sessionOptions?.refetchInterval??0,s=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||AT().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Hc(),o.set(!o.get());return}const _=e.get();if(k?.event==="poll"){d.lastSessionRequest=Hc(),a("/get-session").then(C=>{C.error?e.set({..._,data:null,error:C.error}):e.set({..._,data:C.data,error:null}),d.lastSync=Hc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Hc()-d.lastSessionRequest<UJ)return;d.lastSessionRequest=Hc()}(_?.data===null||_?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Hc(),o.set(!o.get()))},h=k=>{ET().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=ET().subscribe(()=>{m({event:"storage"})})},y=()=>{s&&(d.unsubscribeFocus=tO().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=AT().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),y(),S(),ET().setup(),tO().setup(),AT().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function qJ(t,e){const o=hd(!1),a=mp(o,"/get-session",t,{method:"GET"});return dB(a,()=>{const n=$J({sessionAtom:a,sessionSignal:o,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function RT(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function O0(t,e,o=".",a){if(!RT(e))return O0(t,{},o,a);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const s=t[r];s!=null&&(a&&a(n,r,s,o)||(Array.isArray(s)&&Array.isArray(n[r])?n[r]=[...s,...n[r]]:RT(s)&&RT(n[r])?n[r]=O0(s,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=s))}return n}function VJ(t){return(...e)=>e.reduce((o,a)=>O0(o,a,"",t),{})}const HJ=VJ();var GJ=Object.defineProperty,WJ=Object.defineProperties,KJ=Object.getOwnPropertyDescriptors,oO=Object.getOwnPropertySymbols,YJ=Object.prototype.hasOwnProperty,ZJ=Object.prototype.propertyIsEnumerable,aO=(t,e,o)=>e in t?GJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Sr=(t,e)=>{for(var o in e||(e={}))YJ.call(e,o)&&aO(t,o,e[o]);if(oO)for(var o of oO(e))ZJ.call(e,o)&&aO(t,o,e[o]);return t},Ur=(t,e)=>WJ(t,KJ(e)),QJ=class extends Error{constructor(t,e,o){super(e||t.toString(),{cause:o}),this.status=t,this.statusText=e,this.error=o,Error.captureStackTrace(this,this.constructor)}},JJ=async(t,e)=>{var o,a,n,r,s,c;let d=e||{};const u={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:d,hooks:u};for(const m of e?.plugins||[]){if(m.init){const h=await((o=m.init)==null?void 0:o.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((a=m.hooks)==null?void 0:a.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((s=m.hooks)==null?void 0:s.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:t,options:d,hooks:u}},nO=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},XJ=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function eX(t){if(typeof t=="number")return new nO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new nO(t);case"exponential":return new XJ(t);default:throw new Error("Invalid retry strategy")}}var tX=async t=>{const e={},o=async a=>typeof a=="function"?await a():a;if(t?.auth){if(t.auth.type==="Bearer"){const a=await o(t.auth.token);if(!a)return e;e.authorization=`Bearer ${a}`}else if(t.auth.type==="Basic"){const[a,n]=await Promise.all([o(t.auth.username),o(t.auth.password)]);if(!a||!n)return e;e.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(t.auth.type==="Custom"){const[a,n]=await Promise.all([o(t.auth.prefix),o(t.auth.value)]);if(!n)return e;e.authorization=`${a??""} ${n}`}}return e},oX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function aX(t){const e=t.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const a=e.split(";").shift()||"";return oX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function nX(t){try{return JSON.parse(t),!0}catch{return!1}}function M0(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function rO(t){try{return JSON.parse(t)}catch{return t}}function iO(t){return typeof t=="function"}function rX(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&iO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&iO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function iX(t){const e=new Headers(t?.headers),o=await tX(t);for(const[a,n]of Object.entries(o||{}))e.set(a,n);if(!e.has("content-type")){const a=sX(t?.body);a&&e.set("content-type",a)}return e}function sX(t){return M0(t)?"application/json":null}function lX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(M0(t.body)&&!e.has("content-type")){for(const[o,a]of Object.entries(t?.body))a instanceof Date&&(t.body[o]=a.toISOString());return JSON.stringify(t.body)}return e.has("content-type")&&e.get("content-type")==="application/x-www-form-urlencoded"&&M0(t.body)?new URLSearchParams(t.body).toString():t.body}function cX(t,e){var o;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const a=(o=t.split("@")[1])==null?void 0:o.split("/")[0];return pB.includes(a)?a.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function dX(t,e){let o;return!t?.signal&&t?.timeout&&(o=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var uX=class uB extends Error{constructor(e,o){super(o||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,uB.prototype)}};async function bf(t,e){const o=await t["~standard"].validate(e);if(o.issues)throw new uX(o.issues);return o.value}var pB=["get","post","put","patch","delete"],pX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,o){var a,n,r,s;const c=((n=(a=t.plugins)==null?void 0:a.find(d=>{var u;return(u=d.schema)!=null&&u.config?e.startsWith(d.schema.config.baseURL||"")||e.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||t.schema;if(c){let d=e;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(e=e.replace(c.config.prefix,c.config.baseURL))),(s=c.config)!=null&&s.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=Ur(Sr({},o),{method:u.method,output:u.output});return o?.disableValidation||(m=Ur(Sr({},m),{body:u.input?await bf(u.input,o?.body):o?.body,params:u.params?await bf(u.params,o?.params):o?.params,query:u.query?await bf(u.query,o?.query):o?.query})),{url:e,options:m}}}return{url:e,options:o}}}),mX=t=>{async function e(o,a){const n=Ur(Sr(Sr({},t),a),{plugins:[...t?.plugins||[],pX(t||{}),...a?.plugins||[]]});if(t?.catchAllError)try{return await N0(o,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await N0(o,n)}return e};function hX(t,e){const{baseURL:o,params:a,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):o||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];pB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[s,c]=t.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const y of f)d.append(h,y);continue}else v=JSON.stringify(f);d.set(h,v)}if(a)if(Array.isArray(a)){const h=s.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const y=a[f];s=s.replace(v,y)}}else for(const[h,f]of Object.entries(a))s=s.replace(`:${h}`,String(f));s=s.split("/").map(encodeURIComponent).join("/"),s.startsWith("/")&&(s=s.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${s}${u}`,r):`${r}${s}${u}`}var N0=async(t,e)=>{var o,a,n,r,s,c,d,u;const{hooks:m,url:h,options:f}=await JJ(t,e),v=rX(f),y=new AbortController,S=(o=f.signal)!=null?o:y.signal,x=hX(h,f),w=lX(f),k=await iX(f),_=cX(h,f);let C=Ur(Sr({},f),{url:x,headers:k,body:w,method:_,signal:S});for(const F of m.onRequest)if(F){const W=await F(C);typeof W=="object"&&W!==null&&(C=W)}("pipeTo"in C&&typeof C.pipeTo=="function"||typeof((a=e?.body)==null?void 0:a.pipe)=="function")&&("duplex"in C||(C.duplex="half"));const{clearTimeout:P}=dX(f,y);let D=await v(C.url,C);P();const R={response:D,request:C};for(const F of m.onResponse)if(F){const W=await F(Ur(Sr({},R),{response:(n=e?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(C.method!=="HEAD"))return{data:"",error:null};const W=aX(D),oe={data:null,response:D,request:C};if(W==="json"||W==="text"){const H=await D.text(),K=(r=C.jsonParser)!=null?r:rO;oe.data=await K(H)}else oe.data=await D[W]();C?.output&&C.output&&!C.disableValidation&&(oe.data=await bf(C.output,oe.data));for(const H of m.onSuccess)H&&await H(Ur(Sr({},oe),{response:(s=e?.hookOptions)!=null&&s.cloneResponse?D.clone():D}));return e?.throw?oe.data:{data:oe.data,error:null}}const O=(c=e?.jsonParser)!=null?c:rO,L=await D.text(),$=nX(L),B=$?await O(L):null,z={response:D,responseText:L,request:C,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Sr({},z),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=eX(e.retry),W=(u=e.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const oe=F.getDelay(W);return await new Promise(H=>setTimeout(H,oe)),await N0(t,Ur(Sr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new QJ(D.status,D.statusText,$?B:L);return{data:null,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})}};const gX=(t,e)=>{const o="credentials"in Request.prototype,a=wJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(C=>C.fetchPlugins).filter(C=>C!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:s,onError:c,onRequest:d,onResponse:u,...m}=t?.fetchOptions||{},h=mX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(C){return C?RJ(C,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[xJ],...n]}),{$sessionSignal:f,session:v}=qJ(h,t),y=t?.plugins||[];let S={};const x={$sessionSignal:f,session:v},w={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{signal:"$sessionSignal",matcher(C){return C==="/sign-out"||C==="/update-user"||C==="/sign-up/email"||C==="/sign-in/email"||C==="/delete-user"||C==="/verify-email"||C==="/revoke-sessions"||C==="/revoke-session"||C==="/change-email"}}];for(const C of y)C.getAtoms&&Object.assign(x,C.getAtoms?.(h)),C.pathMethods&&Object.assign(w,C.pathMethods),C.atomListeners&&k.push(...C.atomListeners);const _={notify:C=>{x[C].set(!x[C].get())},listen:(C,P)=>{x[C].subscribe(P)},atoms:x};for(const C of y)C.getActions&&(S=HJ(C.getActions?.(h,_,t)??{},S));return{get baseURL(){return a},pluginsActions:S,pluginsAtoms:x,pluginPathMethods:w,atomListeners:k,$fetch:h,$store:_}};function fX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function vX(t,e,o){const a=e[t],{fetchOptions:n,query:r,...s}=o||{};return a||(n?.method?n.method:s&&Object.keys(s).length>0?"POST":"GET")}function bX(t,e,o,a,n){function r(s=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...s,d];let m=t;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||fX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+s.map(k=>k.replace(/[A-Z]/g,_=>`-${_.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:y,...S}=h,x={...f,...y},w=vX(m,o,h);return await e(m,{...x,body:w==="GET"?void 0:{...S,...x?.body||{}},query:v||x?.query,method:w,async onSuccess(k){if(await x?.onSuccess?.(k),!n||x.disableSignal)return;const _=n.filter(P=>P.matcher(m));if(!_.length)return;const C=new Set;for(const P of _){const D=a[P.signal];if(!D)return;if(C.has(P.signal))continue;C.add(P.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function yX(t,e={}){const o=A.useRef(t.get()),{keys:a,deps:n=[t,a]}=e,r=A.useCallback(c=>{const d=u=>{o.current!==u&&(o.current=u,c())};return d(t.value),a?.length?IJ(t,a,d):t.listen(d)},n),s=()=>o.current;return A.useSyncExternalStore(r,s,s)}function SX(t){return`use${yJ(t)}`}function TX(t){const{pluginPathMethods:e,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:s}=gX(t),c={};for(const[d,u]of Object.entries(a))c[SX(d)]=()=>yX(u);return bX({...o,...c,$fetch:n,$store:r},n,e,a,s)}function wX(t){return{authorize(e,o="AND"){let a=!1;for(const[n,r]of Object.entries(e)){const s=t[n];if(!s)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))a=r.every(c=>s.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?a=c.actions.some(d=>s.includes(d)):a=c.actions.every(d=>s.includes(d))}else throw new kp("Invalid access control request");if(a&&o==="OR")return{success:a};if(!a&&o==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return a?{success:a}:{success:!1,error:"Not authorized"}},statements:t}}function mB(t){return{newRole(e){return wX(e)},statements:t}}const xX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},hB=mB(xX),gB=hB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),fB=hB.newRole({user:[],session:[]}),kX={admin:gB,user:fB},CX=t=>{if(t.userId&&t.options?.adminUserIds?.includes(t.userId))return!0;if(!t.permissions&&!t.permission)return!1;const e=(t.role||t.options?.defaultRole||"user").split(","),o=t.options?.roles||kX;for(const a of e)if(o[a]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},EX=t=>{const e={admin:gB,user:fB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>CX({role:o.role,options:{ac:t?.ac,roles:e},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},_X=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),PX=()=>({id:"magic-link",$InferServerPlugin:{}}),AX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},Wk=mB(AX),vB=Wk.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),bB=Wk.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),yB=Wk.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),RX={admin:vB,owner:bB,member:yB},DX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const o=t.role.split(","),a=t.options.creatorRole||"owner",n=o.includes(a),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const s of o)if(e[s]?.authorize(t.permissions??t.permission)?.success)return!0;return!1},OX=t=>DX(t,t.options.roles||RX),MX=t=>{const e=hd(!1),o=hd(!1),a=hd(!1),n=hd(!1),r={admin:vB,member:yB,owner:bB,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(s,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>OX({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:s=>{const c=mp(e,"/organization/list",s,{method:"GET"});return{$listOrg:e,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:mp([o],"/organization/get-full-organization",s,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([a],"/organization/get-active-member",s,{method:"GET"}),activeMemberRole:mp([n],"/organization/get-active-member-role",s,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(s){return s==="/organization/create"||s==="/organization/delete"||s==="/organization/update"},signal:"$listOrg"},{matcher(s){return s.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(s){return s.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(s){return s.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(s){return s.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},NX="1.6.11",IX=t=>({id:"sso-client",version:NX,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function LX(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch{return{}}return e&&typeof e=="object"&&!Array.isArray(e)?Object.fromEntries(Object.entries(e)):{}}function SB(t){return LX(t?.metadata).archived===!0}function TB(t){const e=new Set;return t.filter(o=>SB(o)||e.has(o.id)?!1:(e.add(o.id),!0))}const BX="Organization is archived",ia=TX({plugins:[MX({}),EX(),IX(),PX(),_X()]}),FX=8e3;let sO;function wB(){return sO??=new Promise(t=>{const e=setTimeout(t,FX);ia.$store.listen("session",o=>{o&&typeof o=="object"&&"isPending"in o&&(o.isPending||(clearTimeout(e),t()))})}),sO}const jX=Te({data:Te({user:Te({id:q()})}).nullish()});function zX(){const t=jX.safeParse(ia.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const UX=3e4;let hp=null,zg=null;function xB(){if(hp&&hp.expiresAt>Date.now())return Promise.resolve(hp.result);if(zg)return zg;const t=ia.organization.list().then(e=>{const o=e.data?{...e,data:TB(e.data)}:e;return o.data&&(hp={result:o,expiresAt:Date.now()+UX}),o}).finally(()=>{zg=null});return zg=t,t}function xwe(){const t=ia.useListOrganizations(),e=t.data?TB(t.data):void 0;return{...t,data:e}}function kwe(){hp=null}const $X="modulepreload",qX=function(t){return"/"+t},lO={},Le=function(e,o,a){let n=Promise.resolve();if(o&&o.length>0){let s=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");n=s(o.map(u=>{if(u=qX(u),u in lO)return;lO[u]=!0;const m=u.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":$X,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,y)=>{f.addEventListener("load",v),f.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${u}`)))})}))}function r(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return n.then(s=>{for(const c of s||[])c.status==="rejected"&&r(c.reason);return e().catch(r)})};function VX(t){try{return JSON.parse(t)}catch{return}}function cO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const o=localStorage.getItem(t),a=o?VX(o):void 0,n=typeof e=="function"?e(a):a??e;if(a===void 0||n!==a)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function HX(t,e){const o=ye.c(17),a=Wd();let n;o[0]!==t?(n=["localStorage",t],o[0]=t,o[1]=n):n=o[1];const r=n;let s,c;o[2]!==e||o[3]!==t?(s=()=>cO(t,e),c=()=>cO(t,e),o[2]=e,o[3]=t,o[4]=s,o[5]=c):(s=o[4],c=o[5]);let d;o[6]!==r||o[7]!==s||o[8]!==c?(d={queryKey:r,queryFn:s,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=r,o[7]=s,o[8]=c,o[9]=d):d=o[9];const{data:u}=Hs(d);let m;o[10]!==t||o[11]!==a||o[12]!==r?(m=y=>{const S=a.getQueryData(r),x=typeof y=="function"?y(S):y;typeof localStorage<"u"&&localStorage.setItem(t,JSON.stringify(x)),a.setQueryData(r,x)},o[10]=t,o[11]=a,o[12]=r,o[13]=m):m=o[13];const h=m,f=u;let v;return o[14]!==h||o[15]!==f?(v=[f,h],o[14]=h,o[15]=f,o[16]=v):v=o[16],v}const Zs={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},kB=["en","pt-BR"];function Kk(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const GX={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:Kk(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},CB=["auto","readonly"],Cwe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],WX=["light","dark","system"];function Ewe(){try{const t=JSON.parse(localStorage.getItem(Zs.preferences())??"{}");if(CB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function ab(){try{const t=JSON.parse(localStorage.getItem(Zs.preferences())??"{}");if(kB.includes(t.language))return t.language}catch{}return Kk()}function KX(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const a of t.shownTaskBoardLanes)typeof a=="string"&&(e[a]=!0);const o=t.taskBoardLaneVisibility;if(o&&typeof o=="object"&&!Array.isArray(o))for(const[a,n]of Object.entries(o))typeof n=="boolean"&&(e[a]=n);return e}function nb(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Zs.preferences(),t[0]=e):e=t[0],HX(e,YX)}function YX(t){const e={...GX,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,CB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),WX.includes(e.theme)||(e.theme="system"),kB.includes(e.language)||(e.language=Kk()),e.taskBoardLaneVisibility=KX(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),typeof e.projectFirstNav!="boolean"&&delete e.projectFirstNav,e}const ZX=A.createContext(!1),QX=Date.parse("2026-10-22T00:00:00Z");function JX(t,e){if(t!==void 0)return t;const o=e instanceof Date?e.getTime():typeof e=="string"||typeof e=="number"?new Date(e).getTime():Number.NaN;return Number.isFinite(o)&&o>=QX}function _we(){const t=ye.c(4),e=A.use(ZX),[o]=nb(),{data:a}=ia.useSession();let n;return t[0]!==e||t[1]!==o||t[2]!==a?.user?.createdAt?(n=e||JX(o.projectFirstNav,a?.user?.createdAt),t[0]=e,t[1]=o,t[2]=a?.user?.createdAt,t[3]=n):n=t[3],n}const XX={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},eee={"projects.overview.metrics":"Metrics","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"New project","projects.card.updated":"Updated {time}","projects.empty.title":"Your commerce, one project at a time","projects.empty.description":"A site, an app, a store. Each one keeps its own connections, report and board.","projects.empty.readOnly":"Ask an admin to create the first project.","projects.new.title":"New project","projects.new.subtitle":"What are you setting up?","projects.new.back":"Back","projects.new.create":"Create project","projects.new.creating":"Creating…","projects.new.nameLabel":"Project name","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Give the project a name","projects.new.failed":"Couldn't create the project","projects.new.created":"{title} is ready","projects.new.path.repository":"Import a codebase","projects.new.path.repository.hint":"Bring a storefront or app codebase in","projects.new.path.folder":"New project folder","projects.new.path.folder.hint":"Name it now, connect it later","projects.new.step.folder.title":"Name your project","projects.reports.chooserTitle":"Continue to Reports","projects.reports.chooserSubtitle":"Choose a project to continue","projects.reports.chooserSearch":"Find project…","projects.reports.chooserEmpty":"No project by that name.","projects.reports.status.ready":"Ready","projects.reports.status.running":"Running","projects.reports.status.none":"Not run","projects.reports.status.locked":"Locked","projects.connections.orgWide":"Organization-wide","projects.connections.usedBy":"{count} projects","projects.settings.title":"Projects","projects.settings.searchPlaceholder":"Search projects…","projects.settings.open":"Open","projects.settings.openSettings":"Settings","projects.settings.noResults":"No projects match “{search}”","projects.identity.storeUrlLabel":"Store URL","projects.identity.storeUrlDescription":"The live storefront. Reports run against this address.","projects.apps.reports":"Report","projects.apps.siteEditor":"Site editor","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"End-to-end tests","projects.apps.analytics":"Analytics","projects.apps.cdn":"Monitor","projects.apps.automations":"Automations","projects.apps.experiments":"Experiments","projects.apps.calendar":"Calendar"},tee={"virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your project, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionNotFound":"Connection not found","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the project can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.fileTooLargeDescription":"Exceeds the 25MB limit, not uploaded: {names}","virtualMcp.filesSection.fileTooLargeTitle":"File too large","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.noMainView":"No main view","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this project.","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.layoutTabContent.siteEditor":"Site Editor","virtualMcp.settings.title":"Project settings","virtualMcp.settings.navigation":"Project settings sections","virtualMcp.settings.identity.icon":"Project icon","virtualMcp.settings.identity.iconDescription":"How your project appears in the sidebar and across Studio.","virtualMcp.settings.identity.name":"Project name","virtualMcp.settings.identity.description":"Description","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.connections.title":"Connections","virtualMcp.settings.views.defaults":"Default layout","virtualMcp.settings.views.sidebar":"Views","virtualMcp.settings.views.open":"Open","virtualMcp.settings.views.pin":"Pin to sidebar","virtualMcp.settings.views.unpin":"Remove from sidebar","virtualMcp.settings.views.setMainView":"Set as main view","virtualMcp.settings.views.rowActions":"View options","virtualMcp.subAgentsSection.addSubAgent":"Add sub-project","virtualMcp.subAgentsSection.anyAgent":"Any project","virtualMcp.subAgentsSection.canDelegateToAnyAgent":"Can delegate to any project in the organization.","virtualMcp.subAgentsSection.canOnlyDelegateToItself":"Can only delegate to a fresh copy of itself, no other projects.","virtualMcp.subAgentsSection.emptyStateMessage":"No sub-projects selected yet. Add one — until then this project can only delegate to itself.","virtualMcp.subAgentsSection.noAgentsFound":"No projects found.","virtualMcp.subAgentsSection.onlyItself":"Only itself","virtualMcp.subAgentsSection.searchPlaceholder":"Search projects...","virtualMcp.subAgentsSection.specificAgents":"Specific projects","virtualMcp.subAgentsSection.title":"Sub-projects","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agent","virtualMcp.virtualMcp.agentNamePlaceholder":"Project name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete project","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Project?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this project and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the project","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsed":"Last used {time}","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
55
|
+
deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[u,m]=r(d);s(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function s(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const v=m.let("missing");for(const y in u){const S=u[y];if(S.length===0)continue;const x=(0,a.propertyInData)(m,h,y,f.opts.ownProperties);d.setParams({property:y,depsCount:S.length,deps:S.join(", ")}),f.allErrors?m.if(x,()=>{for(const w of S)(0,a.checkReportMissingProp)(d,w)}):(m.if((0,e._)`${x} && (${(0,a.checkMissingProp)(d,S,v)})`),(0,a.reportMissingProp)(d,v),m.else())}}t.validatePropertyDeps=s;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,y=m.name("valid");for(const S in u)(0,o.alwaysValidSchema)(v,u[S])||(m.if((0,a.propertyInData)(m,h,S,v.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:S},y);d.mergeValidEvaluated(x,y)},()=>m.var(y,!0)),d.ok(y))}t.validateSchemaDeps=c,t.default=n})(TT)),TT}var xg={},AD;function aQ(){if(AD)return xg;AD=1,Object.defineProperty(xg,"__esModule",{value:!0});const t=St(),e=Ft(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,t._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:s,data:c,it:d}=n;if((0,e.alwaysValidSchema)(d,s))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,t.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return xg.default=a,xg}var kg={},RD;function JL(){if(RD)return kg;RD=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Dr(),e=St(),o=Ys(),a=Ft(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,e._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=s;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:y}=f;if(f.props=!0,y.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(f,d))return;const S=(0,t.allSchemaProperties)(u.properties),x=(0,t.allSchemaProperties)(u.patternProperties);w(),s.ok((0,e._)`${h} === ${o.default.errors}`);function w(){c.forIn("key",m,D=>{!S.length&&!x.length?C(D):c.if(k(D),()=>C(D))})}function k(D){let R;if(S.length>8){const O=(0,a.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else S.length?R=(0,e.or)(...S.map(O=>(0,e._)`${D} === ${O}`)):R=e.nil;return x.length&&(R=(0,e.or)(R,...x.map(O=>(0,e._)`${(0,t.usePattern)(s,O)}.test(${D})`))),(0,e.not)(R)}function _(D){c.code((0,e._)`delete ${m}[${D}]`)}function C(D){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){_(D);return}if(d===!1){s.setParams({additionalProperty:D}),s.error(),v||c.break();return}if(typeof d=="object"&&!(0,a.alwaysValidSchema)(f,d)){const R=c.name("valid");y.removeAdditional==="failing"?(P(D,R,!1),c.if((0,e.not)(R),()=>{s.reset(),_(D)})):(P(D,R),v||c.if((0,e.not)(R),()=>c.break()))}}function P(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(L,R)}}};return kg.default=r,kg}var Cg={},DD;function nQ(){if(DD)return Cg;DD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=eb(),e=Dr(),o=Ft(),a=JL(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:s,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&a.default.code(new t.KeywordCxt(m,a.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(c);for(const x of h)m.definedProperties.add(x);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=o.mergeEvaluated.props(s,(0,o.toHash)(h),m.props));const f=h.filter(x=>!(0,o.alwaysValidSchema)(m,c[x]));if(f.length===0)return;const v=s.name("valid");for(const x of f)y(x)?S(x):(s.if((0,e.propertyInData)(s,u,x,m.opts.ownProperties)),S(x),m.allErrors||s.else().var(v,!0),s.endIf()),r.it.definedProperties.add(x),r.ok(v);function y(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function S(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return Cg.default=n,Cg}var Eg={},OD;function rQ(){if(OD)return Eg;OD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const t=Dr(),e=St(),o=Ft(),a=Ft(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:s,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,t.allSchemaProperties)(c),v=f.filter(C=>(0,o.alwaysValidSchema)(m,c[C]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&u.properties,S=s.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,a.evaluatedPropsToName)(s,m.props));const{props:x}=m;w();function w(){for(const C of f)y&&k(C),m.allErrors?_(C):(s.var(S,!0),_(C),s.if(S))}function k(C){for(const P in y)new RegExp(C).test(P)&&(0,o.checkStrictMode)(m,`property ${P} matches pattern ${C} (use allowMatchingProperties)`)}function _(C){s.forIn("key",d,P=>{s.if((0,e._)`${(0,t.usePattern)(r,C)}.test(${P})`,()=>{const D=v.includes(C);D||r.subschema({keyword:"patternProperties",schemaProp:C,dataProp:P,dataPropType:a.Type.Str},S),m.opts.unevaluated&&x!==!0?s.assign((0,e._)`${x}[${P}]`,!0):!D&&!m.allErrors&&s.if((0,e.not)(S),()=>s.break())})})}}};return Eg.default=n,Eg}var _g={},MD;function iQ(){if(MD)return _g;MD=1,Object.defineProperty(_g,"__esModule",{value:!0});const t=Ft(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:a,schema:n,it:r}=o;if((0,t.alwaysValidSchema)(r,n)){o.fail();return}const s=a.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),o.failResult(s,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return _g.default=e,_g}var Pg={},ND;function sQ(){if(ND)return Pg;ND=1,Object.defineProperty(Pg,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return Pg.default=e,Pg}var Ag={},ID;function lQ(){if(ID)return Ag;ID=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=St(),e=Ft(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,t._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:s,parentSchema:c,it:d}=n;if(!Array.isArray(s))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=s,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((y,S)=>{let x;(0,e.alwaysValidSchema)(d,y)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:S,compositeRule:!0},f),S>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${S}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,S),x&&n.mergeEvaluated(x,t.Name)})})}}};return Ag.default=a,Ag}var Rg={},LD;function cQ(){if(LD)return Rg;LD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t=Ft(),e={keyword:"allOf",schemaType:"array",code(o){const{gen:a,schema:n,it:r}=o;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=a.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=o.subschema({keyword:"allOf",schemaProp:d},s);o.ok(s),o.mergeEvaluated(u)})}};return Rg.default=e,Rg}var Dg={},BD;function dQ(){if(BD)return Dg;BD=1,Object.defineProperty(Dg,"__esModule",{value:!0});const t=St(),e=Ft(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,t.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,t._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:s,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,e.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=s.let("valid",!0),f=s.name("_valid");if(v(),r.reset(),u&&m){const S=s.let("ifClause");r.setParams({ifClause:S}),s.if(f,y("then",S),y("else",S))}else u?s.if(f,y("then")):s.if((0,t.not)(f),y("else"));r.pass(h,()=>r.error(!0));function v(){const S=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(S)}function y(S,x){return()=>{const w=r.subschema({keyword:S},f);s.assign(h,f),r.mergeValidEvaluated(w,h),x?s.assign(x,(0,t._)`${S}`):r.setParams({ifClause:S})}}}};function n(r,s){const c=r.schema[s];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=a,Dg}var Og={},FD;function uQ(){if(FD)return Og;FD=1,Object.defineProperty(Og,"__esModule",{value:!0});const t=Ft(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:a,it:n}){a.if===void 0&&(0,t.checkStrictMode)(n,`"${o}" without "if" is ignored`)}};return Og.default=e,Og}var jD;function pQ(){if(jD)return yg;jD=1,Object.defineProperty(yg,"__esModule",{value:!0});const t=ZL(),e=XZ(),o=QL(),a=eQ(),n=tQ(),r=oQ(),s=aQ(),c=JL(),d=nQ(),u=rQ(),m=iQ(),h=sQ(),f=lQ(),v=cQ(),y=dQ(),S=uQ();function x(w=!1){const k=[m.default,h.default,f.default,v.default,y.default,S.default,s.default,c.default,r.default,d.default,u.default];return w?k.push(e.default,a.default):k.push(t.default,o.default),k.push(n.default),k}return yg.default=x,yg}var Mg={},Ng={},zD;function mQ(){if(zD)return Ng;zD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const t=St(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,t._)`{format: ${a}}`},code(a,n){const{gen:r,data:s,$data:c,schema:d,schemaCode:u,it:m}=a,{opts:h,errSchemaPath:f,schemaEnv:v,self:y}=m;if(!h.validateFormats)return;c?S():x();function S(){const w=r.scopeValue("formats",{ref:y.formats,code:h.code.formats}),k=r.const("fDef",(0,t._)`${w}[${u}]`),_=r.let("fType"),C=r.let("format");r.if((0,t._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(_,(0,t._)`${k}.type || "string"`).assign(C,(0,t._)`${k}.validate`),()=>r.assign(_,(0,t._)`"string"`).assign(C,k)),a.fail$data((0,t.or)(P(),D()));function P(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${C}`}function D(){const R=v.$async?(0,t._)`(${k}.async ? await ${C}(${s}) : ${C}(${s}))`:(0,t._)`${C}(${s})`,O=(0,t._)`(typeof ${C} == "function" ? ${R} : ${C}.test(${s}))`;return(0,t._)`${C} && ${C} !== true && ${_} === ${n} && !${O}`}}function x(){const w=y.formats[d];if(!w){P();return}if(w===!0)return;const[k,_,C]=D(w);k===n&&a.pass(R());function P(){if(h.strictSchema===!1){y.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,t.regexpCode)(O):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(d)}`:void 0,$=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${$}.validate`]:["string",O,$]}function R(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!v.$async)throw new Error("async format in sync schema");return(0,t._)`await ${C}(${s})`}return typeof _=="function"?(0,t._)`${C}(${s})`:(0,t._)`${C}.test(${s})`}}}};return Ng.default=o,Ng}var UD;function hQ(){if(UD)return Mg;UD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const e=[mQ().default];return Mg.default=e,Mg}var Sl={},$D;function gQ(){return $D||($D=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.contentVocabulary=Sl.metadataVocabulary=void 0,Sl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Sl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Sl}var qD;function fQ(){if(qD)return ag;qD=1,Object.defineProperty(ag,"__esModule",{value:!0});const t=zZ(),e=JZ(),o=pQ(),a=hQ(),n=gQ(),r=[t.default,e.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return ag.default=r,ag}var Ig={},Yu={},VD;function vQ(){if(VD)return Yu;VD=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Yu.DiscrError=t={})),Yu}var HD;function bQ(){if(HD)return Ig;HD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=St(),e=vQ(),o=Uk(),a=tb(),n=Ft(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===e.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,t._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=m.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const S=d.let("valid",!1),x=d.const("tag",(0,t._)`${u}${(0,t.getProperty)(y)}`);d.if((0,t._)`typeof ${x} == "string"`,()=>w(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:x,tagName:y})),c.ok(S);function w(){const C=_();d.if(!1);for(const P in C)d.elseIf((0,t._)`${x} === ${P}`),d.assign(S,k(C[P]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function k(C){const P=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:C},P);return c.mergeEvaluated(D,t.Name),P}function _(){var C;const P={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof o.SchemaEnv&&(z=z.schema),z===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(C=z?.properties)===null||C===void 0?void 0:C[y];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${y}" must be required`);return P;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function L(B,z){if(B.const)$(B.const,z);else if(B.enum)for(const F of B.enum)$(F,z);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function $(B,z){if(typeof B!="string"||B in P)throw new Error(`discriminator: "${y}" values must be unique strings`);P[B]=z}}}};return Ig.default=s,Ig}const yQ="http://json-schema.org/draft-07/schema#",SQ="http://json-schema.org/draft-07/schema#",TQ="Core schema meta-schema",wQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},xQ=["object","boolean"],kQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},CQ={$schema:yQ,$id:SQ,title:TQ,definitions:wQ,type:xQ,properties:kQ,default:!0};var GD;function EQ(){return GD||(GD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const o=BZ(),a=fQ(),n=bQ(),r=CQ,s=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(r,s):r;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.Ajv=d,t.exports=e=d,t.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var u=eb();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=St();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=zk();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=tb();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},wT={},WD;function _Q(){return WD||(WD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,z){return{validate:B,compare:z}}t.fullFormats={date:e(r,s),time:e(d(!0),u),"date-time":e(f(!0),v),"iso-time":e(d(),m),"iso-date-time":e(f(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:w,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:$,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:_,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=a.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],oe=+z[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function s(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const oe=+W[1],H=+W[2],K=+W[3],J=W[4],ie=W[5]==="-"?-1:1,Q=+(W[6]||0),N=+(W[7]||0);if(Q>23||N>59||B&&!J)return!1;if(oe<=23&&H<=59&&K<60)return!0;const G=H-N*ie,V=oe-Q*ie-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&z(oe[1])}}function v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function y(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[oe,H]=z.split(h),K=s(F,oe);if(K!==void 0)return K||u(W,H)}const S=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function w(B){return S.test(B)&&x.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function _(B){return k.lastIndex=0,k.test(B)}const C=-2147483648,P=2**31-1;function D(B){return Number.isInteger(B)&&B<=P&&B>=C}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function $(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(wT)),wT}var xT={},KD;function PQ(){return KD||(KD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=EQ(),o=St(),a=o.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${n[c].okStr}, limit: ${d}}`};t.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:v,self:y}=f;if(!v.validateFormats)return;const S=new e.KeywordCxt(f,y.RULES.all.format.definition,"format");S.$data?x():w();function x(){const _=d.scopeValue("formats",{ref:y.formats,code:v.code.formats}),C=d.const("fmt",(0,o._)`${_}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${C} != "object"`,(0,o._)`${C} instanceof RegExp`,(0,o._)`typeof ${C}.compare != "function"`,k(C)))}function w(){const _=S.schema,C=y.formats[_];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${h}": format "${_}" does not define "compare" function`);const P=d.scopeValue("formats",{key:_,ref:C,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(_)}`:void 0});c.fail$data(k(P))}function k(_){return(0,o._)`${_}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const s=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=s})(xT)),xT}var YD;function AQ(){return YD||(YD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=_Q(),a=PQ(),n=St(),r=new n.Name("fullFormats"),s=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,o.fullFormats,r),u;const[h,f]=m.mode==="fast"?[o.fastFormats,s]:[o.fullFormats,r],v=m.formats||o.formatNames;return d(u,v,h,f),m.keywords&&(0,a.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?o.fastFormats:o.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var v,y;(v=(y=u.opts.code).formats)!==null&&v!==void 0||(y.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const S of m)u.addFormat(S,h[S])}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c})(Lg,Lg.exports)),Lg.exports}var RQ=AQ();const lwe=Wl(RQ);function DQ({studioUrl:t,meshUrl:e},o){return t??e??o}let qk;qk=globalThis.crypto;async function OQ(t){return(await qk).getRandomValues(new Uint8Array(t))}async function MQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%e.length;let a="";for(;a.length<t;){const n=await OQ(t-a.length);for(const r of n)r<o&&(a+=e[r%e.length])}return a}async function NQ(t){return await MQ(t)}async function IQ(t){const e=await(await qk).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function cwe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await NQ(t),o=await IQ(e);return{code_verifier:e,code_challenge:o}}const Ca=nL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:FW.custom,message:"URL must be parseable",fatal:!0}),VV}).refine(t=>{const e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),dwe=Ea({resource:q().url(),authorization_servers:je(Ca).optional(),jwks_uri:q().url().optional(),scopes_supported:je(q()).optional(),bearer_methods_supported:je(q()).optional(),resource_signing_alg_values_supported:je(q()).optional(),resource_name:q().optional(),resource_documentation:q().optional(),resource_policy_uri:q().url().optional(),resource_tos_uri:q().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je(q()).optional(),dpop_signing_alg_values_supported:je(q()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),LQ=Ea({issuer:q(),authorization_endpoint:Ca,token_endpoint:Ca,registration_endpoint:Ca.optional(),scopes_supported:je(q()).optional(),response_types_supported:je(q()),response_modes_supported:je(q()).optional(),grant_types_supported:je(q()).optional(),token_endpoint_auth_methods_supported:je(q()).optional(),token_endpoint_auth_signing_alg_values_supported:je(q()).optional(),service_documentation:Ca.optional(),revocation_endpoint:Ca.optional(),revocation_endpoint_auth_methods_supported:je(q()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je(q()).optional(),introspection_endpoint:q().optional(),introspection_endpoint_auth_methods_supported:je(q()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je(q()).optional(),code_challenge_methods_supported:je(q()).optional(),client_id_metadata_document_supported:Vt().optional()}),BQ=Ea({issuer:q(),authorization_endpoint:Ca,token_endpoint:Ca,userinfo_endpoint:Ca.optional(),jwks_uri:Ca,registration_endpoint:Ca.optional(),scopes_supported:je(q()).optional(),response_types_supported:je(q()),response_modes_supported:je(q()).optional(),grant_types_supported:je(q()).optional(),acr_values_supported:je(q()).optional(),subject_types_supported:je(q()),id_token_signing_alg_values_supported:je(q()),id_token_encryption_alg_values_supported:je(q()).optional(),id_token_encryption_enc_values_supported:je(q()).optional(),userinfo_signing_alg_values_supported:je(q()).optional(),userinfo_encryption_alg_values_supported:je(q()).optional(),userinfo_encryption_enc_values_supported:je(q()).optional(),request_object_signing_alg_values_supported:je(q()).optional(),request_object_encryption_alg_values_supported:je(q()).optional(),request_object_encryption_enc_values_supported:je(q()).optional(),token_endpoint_auth_methods_supported:je(q()).optional(),token_endpoint_auth_signing_alg_values_supported:je(q()).optional(),display_values_supported:je(q()).optional(),claim_types_supported:je(q()).optional(),claims_supported:je(q()).optional(),service_documentation:q().optional(),claims_locales_supported:je(q()).optional(),ui_locales_supported:je(q()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Ca.optional(),op_tos_uri:Ca.optional(),client_id_metadata_document_supported:Vt().optional()}),uwe=Te({...BQ.shape,...LQ.pick({code_challenge_methods_supported:!0}).shape}),pwe=Te({access_token:q(),id_token:q().optional(),token_type:q(),expires_in:mL().optional(),scope:q().optional(),refresh_token:q().optional()}).strip(),mwe=Te({error:q(),error_description:q().optional(),error_uri:q().optional()}),ZD=Ca.optional().or(Ze("").transform(()=>{})),FQ=Te({redirect_uris:je(Ca),token_endpoint_auth_method:q().optional(),grant_types:je(q()).optional(),response_types:je(q()).optional(),client_name:q().optional(),client_uri:Ca.optional(),logo_uri:ZD,scope:q().optional(),contacts:je(q()).optional(),tos_uri:ZD,policy_uri:q().optional(),jwks_uri:Ca.optional(),jwks:dW().optional(),software_id:q().optional(),software_version:q().optional(),software_statement:q().optional()}).strip(),jQ=Te({client_id:q(),client_secret:q().optional(),client_id_issued_at:Rt().optional(),client_secret_expires_at:Rt().optional()}).strip(),hwe=FQ.merge(jQ);Te({error:q(),error_description:q().optional()}).strip();Te({token:q(),token_type_hint:q().optional()}).strip();class Oa extends Error{constructor(e,o){super(e),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class p0 extends Oa{}p0.errorCode="invalid_request";class m0 extends Oa{}m0.errorCode="invalid_client";class h0 extends Oa{}h0.errorCode="invalid_grant";class g0 extends Oa{}g0.errorCode="unauthorized_client";class f0 extends Oa{}f0.errorCode="unsupported_grant_type";class v0 extends Oa{}v0.errorCode="invalid_scope";class b0 extends Oa{}b0.errorCode="access_denied";class y0 extends Oa{}y0.errorCode="server_error";class S0 extends Oa{}S0.errorCode="temporarily_unavailable";class T0 extends Oa{}T0.errorCode="unsupported_response_type";class w0 extends Oa{}w0.errorCode="unsupported_token_type";class x0 extends Oa{}x0.errorCode="invalid_token";class k0 extends Oa{}k0.errorCode="method_not_allowed";class C0 extends Oa{}C0.errorCode="too_many_requests";class E0 extends Oa{}E0.errorCode="invalid_client_metadata";class _0 extends Oa{}_0.errorCode="insufficient_scope";class P0 extends Oa{}P0.errorCode="invalid_target";const gwe={[p0.errorCode]:p0,[m0.errorCode]:m0,[h0.errorCode]:h0,[g0.errorCode]:g0,[f0.errorCode]:f0,[v0.errorCode]:v0,[b0.errorCode]:b0,[y0.errorCode]:y0,[S0.errorCode]:S0,[T0.errorCode]:T0,[w0.errorCode]:w0,[x0.errorCode]:x0,[k0.errorCode]:k0,[C0.errorCode]:C0,[E0.errorCode]:E0,[_0.errorCode]:_0,[P0.errorCode]:P0};async function XL(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(o){if(o instanceof Qv&&o.code===Up.MethodNotFound)return{resources:[]};throw o}}async function zQ(t,e){return await t.readResource({uri:e})}function fwe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ta.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>XL(o),e[5]=o,e[6]=r):r=e[6];const s=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==s?(c={...a,queryKey:n,queryFn:r,staleTime:s,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=s,e[11]=c):c=e[11],Gs(c)}function vwe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ta.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>XL(o),e[5]=o,e[6]=r):r=e[6];const s=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==s?(c={...a,queryKey:n,queryFn:r,staleTime:s,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=s,e[11]=c):c=e[11],Hs(c)}function bwe(t){const e=ye.c(15);let o,a,n;e[0]!==t?({client:o,uri:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o||e[5]!==n?(r=ta.mcpReadResource(o,n),e[4]=o,e[5]=n,e[6]=r):r=e[6];let s;e[7]!==o||e[8]!==n?(s=()=>zQ(o,n),e[7]=o,e[8]=n,e[9]=s):s=e[9];const c=a.staleTime??3e4;let d;return e[10]!==a||e[11]!==r||e[12]!==s||e[13]!==c?(d={...a,queryKey:r,queryFn:s,staleTime:c,retry:!1},e[10]=a,e[11]=r,e[12]=s,e[13]=c,e[14]=d):d=e[14],Gs(d)}const eB="ui-resource-html";function ywe(t){const e=ye.c(22);let o,a,n,r,s,c;e[0]!==t?({orgSlug:n,connectionId:o,uri:c,studioUrl:s,meshUrl:a,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=s,e[6]=c):(o=e[1],a=e[2],n=e[3],r=e[4],s=e[5],c=e[6]);let d;e[7]!==o||e[8]!==n||e[9]!==c?(d=ta.mcpUiResourceHtml(n,o,c),e[7]=o,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==a||e[13]!==n||e[14]!==s||e[15]!==c?(u=async()=>{const v=`${DQ({studioUrl:s,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,y=await fetch(v,{credentials:"include"});if(!y.ok)throw new Error(`Failed to read UI resource (${y.status})`);return y.text()},e[11]=o,e[12]=a,e[13]=n,e[14]=s,e[15]=c,e[16]=u):u=e[16];const m=r.staleTime??3e4;let h;return e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},e[17]=r,e[18]=d,e[19]=u,e[20]=m,e[21]=h):h=e[21],Gs(h)}const tB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class A0 extends Error{constructor(e,o,a){super(e),this.status=o,this.code=a,this.name="StudioToolError"}status;code}function oB(t){return t instanceof A0&&Object.values(tB).includes(t.code??"")?t.code:null}async function UQ(t,e,o){const a=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${e} failed (${a.status})`,r;try{const s=await a.json();s?.error&&(n=s.error),typeof s?.code=="string"&&(r=s.code)}catch{}throw new A0(n,a.status,r)}try{return await a.json()}catch{throw new A0(`${e} returned a non-JSON response`,a.status)}}function Vk(){const t=ye.c(5),{org:e}=Ks(),o=e.slug;let a;t[0]!==o?(a=(r,s)=>UQ(o,r,s),t[0]=o,t[1]=a):a=t[1];let n;return t[2]!==o||t[3]!==a?(n={orgSlug:o,call:a},t[2]=o,t[3]=a,t[4]=n):n=t[4],n}function $Q(t){for(const e of["content-revision","content-versions","content-changes","content-draft-tombstones"])t.getQueryDefaults([e]).gcTime!==1/0&&t.setQueryDefaults([e],{gcTime:1/0})}const qQ="studio-ui-resources",Yf="html",VQ=10080*60*1e3,HQ=50,GQ=16*1024*1024;function WQ(t){return t[0]==="mcp"&&t[1]===eB}function ob(){return new Promise((t,e)=>{const o=indexedDB.open(qQ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Yf)||o.result.createObjectStore(Yf)},o.onsuccess=()=>t(o.result),o.onerror=()=>e(o.error)})}function Ld(t,e){return t.transaction(Yf,e).objectStore(Yf)}function R0(t){return new Promise((e,o)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>o(t.error)})}async function KQ(t){if(!(typeof indexedDB>"u"))try{const e=await ob(),o=Ld(e,"readonly"),a=await R0(o.getAllKeys()),n=await R0(o.getAll()),r=Date.now(),s=a.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of s){if(!m||r-m.updatedAt>VQ||d>=HQ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));t.getQueryData(f)===void 0&&t.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=Ld(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function YQ(t){if(typeof indexedDB>"u")return()=>{};const e=ob().catch(()=>null);return t.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!WQ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>GQ||e.then(r=>{if(r)try{Ld(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function ZQ(){typeof indexedDB>"u"||ob().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function Swe(t){if(!(typeof indexedDB>"u"))try{const e=await ob(),o=await R0(Ld(e,"readonly").getAllKeys()),a=Ld(e,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===eB&&r[3]===t&&a.delete(n)}catch{}}catch{}}const Zf="studio:rq-cache",Hk=1440*60*1e3,QQ=1e3,JQ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),XQ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let aB=!1,nB=!1;function eJ(t){const e=t[0];return typeof e=="string"&&JQ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&XQ.has(t[4])}function tJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(Zf);if(!e)return;const o=JSON.parse(e),a=!o.timestamp||Date.now()-o.timestamp>Hk;if(o.buster!=="4.526.2"||a||!o.state){window.localStorage.removeItem(Zf);return}TV(t,o.state),t.invalidateQueries({queryKey:ta.publicConfig(),refetchType:"none"}),aB=!0}catch{sJ()}}function oJ(t){if(typeof window>"u")return()=>{};let e=null;const o=()=>{e=null;try{const r=SV(t,{shouldDehydrateQuery:s=>s.state.status==="success"&&eJ(s.queryKey)});window.localStorage.setItem(Zf,JSON.stringify({buster:"4.526.2",timestamp:Date.now(),state:r}))}catch{}},a=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(o,QQ))}),n=()=>{e!=null&&(clearTimeout(e),o())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),a()}}const rB="studio:org-cache:",aJ=20;function nJ(t){const e=Date.now(),o=Object.entries(t).filter(([,a])=>e-a.updatedAt<=Hk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>aJ;)o.shift();return Object.fromEntries(o)}function iB(t){return`${rB}${t}`}function rJ(t,e){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(iB(t));if(!o)return null;const a=JSON.parse(o)[e];return!a||Date.now()-a.updatedAt>Hk?null:(nB=!0,a)}catch{return null}}function iJ(t,e,o){if(!(typeof window>"u"))try{const a=iB(t),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[e]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(nJ(r)))}catch{}}function sJ(){if(ZQ(),!(typeof window>"u"))try{window.localStorage.removeItem(Zf);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(rB)&&window.localStorage.removeItem(e)}}catch{}}function lJ(){return aB}function cJ(){return nB}function QD(t){const e=oB(t);if(!e)return;const o=e===tB.aiBudgetExhausted?Qf.budget||"This organization's AI allowance is used up.":Qf.feature||"This organization's plan does not include that.";Id.error(o,{id:`plan-refusal:${e}`})}const Qf={feature:"",budget:""},Zl=new OV({queryCache:new QN({onError:QD}),mutationCache:new ZN({onError:QD}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>oB(e)===null&&t<1,gcTime:300*1e3}}});$Q(Zl);tJ(Zl);oJ(Zl);KQ(Zl);YQ(Zl);const Gk=5*6e4;async function sB(){return(await(await fetch("/api/config")).json()).config}function lB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ta.publicConfig(),queryFn:sB,staleTime:Gk},t[0]=e):e=t[0];const{data:o}=Gs(e);return o}function Twe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ta.publicConfig(),queryFn:sB,staleTime:Gk},t[0]=e):e=t[0],Hs(e).data}const cB=A.createContext(void 0);function dJ(t){const e=ye.c(3),{children:o}=t,a=lB();let n;return e[0]!==o||e[1]!==a.auth?(n=b.jsx(cB.Provider,{value:a.auth,children:o}),e[0]=o,e[1]=a.auth,e[2]=n):n=e[2],n}function wwe(){const t=A.useContext(cB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var uJ={},JD={};const vf=Object.create(null),Zu=t=>uJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?vf:globalThis),Xn=new Proxy(vf,{get(t,e){return Zu()[e]??vf[e]},has(t,e){return e in Zu()||e in vf},set(t,e,o){const a=Zu(!0);return a[e]=o,!0},deleteProperty(t,e){if(!e)return!1;const o=Zu(!0);return delete o[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Yo(t,e){return typeof process<"u"&&JD?JD[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Qu=1,ma=4,Vr=8,Mn=24,XD={eterm:ma,cons25:ma,console:ma,cygwin:ma,dtterm:ma,gnome:ma,hurd:ma,jfbterm:ma,konsole:ma,kterm:ma,mlterm:ma,mosh:Mn,putty:ma,st:ma,"rxvt-unicode-24bit":Mn,terminator:Mn,"xterm-kitty":Mn},pJ=new Map(Object.entries({APPVEYOR:Vr,BUILDKITE:Vr,CIRCLECI:Mn,DRONE:Vr,GITEA_ACTIONS:Mn,GITHUB_ACTIONS:Mn,GITLAB_CI:Vr,TRAVIS:Vr})),mJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function hJ(){if(Yo("FORCE_COLOR")!==void 0)switch(Yo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Vr;case"3":return Mn;default:return Qu}if(Yo("NODE_DISABLE_COLORS")!==void 0&&Yo("NODE_DISABLE_COLORS")!==""||Yo("NO_COLOR")!==void 0&&Yo("NO_COLOR")!==""||Yo("TERM")==="dumb")return Qu;if(Yo("TMUX"))return Mn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return ma;if("CI"in Xn){for(const{0:t,1:e}of pJ)if(t in Xn)return e;return Yo("CI_NAME")==="codeship"?Vr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Yo("TEAMCITY_VERSION"))!==null?ma:Qu;switch(Yo("TERM_PROGRAM")){case"iTerm.app":return!Yo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Yo("TERM_PROGRAM_VERSION"))!==null?Vr:Mn;case"HyperTerm":case"MacTerm":return Mn;case"Apple_Terminal":return Vr}if(Yo("COLORTERM")==="truecolor"||Yo("COLORTERM")==="24bit")return Mn;if(Yo("TERM")){if(/truecolor/.exec(Yo("TERM"))!==null)return Mn;if(/^xterm-256/.exec(Yo("TERM"))!==null)return Vr;const t=Yo("TERM").toLowerCase();if(XD[t])return XD[t];if(mJ.some(e=>e.exec(t)!==null))return ma}return Yo("COLORTERM")?ma:Qu}const Hr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},D0=["debug","info","success","warn","error"];function gJ(t,e){return D0.indexOf(e)>=D0.indexOf(t)}const fJ={info:Hr.fg.blue,success:Hr.fg.green,warn:Hr.fg.yellow,error:Hr.fg.red,debug:Hr.fg.magenta},vJ=(t,e,o)=>{const a=new Date().toISOString();return o?`${Hr.dim}${a}${Hr.reset} ${fJ[t]}${t.toUpperCase()}${Hr.reset} ${Hr.bright}[Better Auth]:${Hr.reset} ${e}`:`${a} ${t.toUpperCase()} [Better Auth]: ${e}`},bJ=t=>{const e="warn",o=hJ()!==1,a=(n,r,s=[])=>{if(!gJ(e,n))return;const c=vJ(n,r,o);{n==="error"?console.error(c,...s):n==="warn"?console.warn(c,...s):console.log(c,...s);return}};return{...Object.fromEntries(D0.map(n=>[n,(...[r,...s])=>a(n,r,s)])),get level(){return e}}};bJ();function yJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var kp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function SJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function TJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new kp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof kp?e:new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function kT(t,e="/api/auth"){if(TJ(t),SJ(t))return t;const o=t.replace(/\/+$/,"");return!e||e==="/"?o:(e=e.startsWith("/")?e:`/${e}`,`${o}${e}`)}function wJ(t,e,o,a,n){if(t)return kT(t,e);{const r=Xn.BETTER_AUTH_URL||Xn.NEXT_PUBLIC_BETTER_AUTH_URL||Xn.PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_AUTH_URL||(Xn.BASE_URL!=="/"?Xn.BASE_URL:void 0);if(r)return kT(r,e)}if(typeof window<"u"&&window.location)return kT(window.location.origin,e)}const xJ={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}},kJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},CJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,eO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},EJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function _J(t){return t instanceof Date&&!isNaN(t.getTime())}function PJ(t){const e=EJ.exec(t);if(!e)return null;const[,o,a,n,r,s,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(o,10),parseInt(a,10)-1,parseInt(n,10),parseInt(r,10),parseInt(s,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return _J(f)?f:null}function AJ(t,e={}){const{strict:o=!1,warnings:a=!1,reviver:n,parseDates:r=!0}=e;if(typeof t!="string")return t;const s=t.trim();if(s.length>0&&s[0]==='"'&&s.endsWith('"')&&!s.slice(1,-1).includes('"'))return s.slice(1,-1);const c=s.toLowerCase();if(c.length<=9&&c in eO)return eO[c];if(!CJ.test(s)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(kJ).some(([d,u])=>{const m=u.test(s);return m&&a&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(s,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){a&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=PJ(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return t}}function RJ(t,e={strict:!0}){return AJ(t,e)}let fr=[],gs=0;const Bg=4,DJ=globalThis.nanostoresGlobal||={epoch:0},hd=t=>{let e=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:t,lc:0,listen(a){return o.lc=e.push(a),()=>{for(let r=gs+Bg;r<fr.length;)fr[r]===a?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(a);~n&&(e.splice(n,1),--o.lc||o.off())}},notify(a,n){DJ.epoch++;let r=!fr.length;for(let s of e)fr.push(s,o.value,a,n);if(r){for(gs=0;gs<fr.length;gs+=Bg)fr[gs](fr[gs+1],fr[gs+2],fr[gs+3]);fr.length=0}},off(){},set(a){let n=o.value;n!==a&&(o.value=a,o.notify(n))},subscribe(a){let n=o.listen(a);return a(o.value),n},value:t};return o},OJ=5,Fg=6,jg=10;let MJ=(t,e,o,a)=>(t.events=t.events||{},t.events[o+jg]||(t.events[o+jg]=a(n=>{t.events[o].reduceRight((r,s)=>(s(r),r),{shared:{},...n})})),t.events[o]=t.events[o]||[],t.events[o].push(e),()=>{let n=t.events[o],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[o],t.events[o+jg](),delete t.events[o+jg])});const NJ=1e3;let dB=(t,e)=>MJ(t,a=>{let n=e(a);n&&t.events[Fg].push(n)},OJ,a=>{let n=t.listen;t.listen=(...s)=>(!t.lc&&!t.active&&(t.active=!0,a()),n(...s));let r=t.off;return t.events[Fg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let s of t.events[Fg])s();t.events[Fg]=[]}},NJ)},()=>{t.listen=n,t.off=r}});function IJ(t,e,o){let a=new Set(e).add(void 0);return t.listen((n,r,s)=>{a.has(s)&&o(n,r,s)})}const LJ=()=>typeof window>"u",mp=(t,e,o,a)=>{const n=hd({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let s=!1;for(const c of t)c.subscribe(async()=>{LJ()||(s?await r():dB(n,()=>{const d=setTimeout(async()=>{s||(await r(),s=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},CT=Symbol.for("better-auth:broadcast-channel"),BJ=()=>Math.floor(Date.now()/1e3);var FJ=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:BJ()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const o=JSON.parse(e.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(a=>a(o))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function ET(t="better-auth.message"){return globalThis[CT]||(globalThis[CT]=new FJ(t)),globalThis[CT]}const _T=Symbol.for("better-auth:focus-manager");var jJ=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function tO(){return globalThis[_T]||(globalThis[_T]=new jJ),globalThis[_T]}const PT=Symbol.for("better-auth:online-manager");var zJ=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function AT(){return globalThis[PT]||(globalThis[PT]=new zJ),globalThis[PT]}const Hc=()=>Math.floor(Date.now()/1e3),UJ=5;function $J(t){const{sessionAtom:e,sessionSignal:o,$fetch:a,options:n={}}=t,r=n.sessionOptions?.refetchInterval??0,s=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||AT().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Hc(),o.set(!o.get());return}const _=e.get();if(k?.event==="poll"){d.lastSessionRequest=Hc(),a("/get-session").then(C=>{C.error?e.set({..._,data:null,error:C.error}):e.set({..._,data:C.data,error:null}),d.lastSync=Hc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Hc()-d.lastSessionRequest<UJ)return;d.lastSessionRequest=Hc()}(_?.data===null||_?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Hc(),o.set(!o.get()))},h=k=>{ET().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=ET().subscribe(()=>{m({event:"storage"})})},y=()=>{s&&(d.unsubscribeFocus=tO().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=AT().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),y(),S(),ET().setup(),tO().setup(),AT().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function qJ(t,e){const o=hd(!1),a=mp(o,"/get-session",t,{method:"GET"});return dB(a,()=>{const n=$J({sessionAtom:a,sessionSignal:o,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function RT(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function O0(t,e,o=".",a){if(!RT(e))return O0(t,{},o,a);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const s=t[r];s!=null&&(a&&a(n,r,s,o)||(Array.isArray(s)&&Array.isArray(n[r])?n[r]=[...s,...n[r]]:RT(s)&&RT(n[r])?n[r]=O0(s,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=s))}return n}function VJ(t){return(...e)=>e.reduce((o,a)=>O0(o,a,"",t),{})}const HJ=VJ();var GJ=Object.defineProperty,WJ=Object.defineProperties,KJ=Object.getOwnPropertyDescriptors,oO=Object.getOwnPropertySymbols,YJ=Object.prototype.hasOwnProperty,ZJ=Object.prototype.propertyIsEnumerable,aO=(t,e,o)=>e in t?GJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Sr=(t,e)=>{for(var o in e||(e={}))YJ.call(e,o)&&aO(t,o,e[o]);if(oO)for(var o of oO(e))ZJ.call(e,o)&&aO(t,o,e[o]);return t},Ur=(t,e)=>WJ(t,KJ(e)),QJ=class extends Error{constructor(t,e,o){super(e||t.toString(),{cause:o}),this.status=t,this.statusText=e,this.error=o,Error.captureStackTrace(this,this.constructor)}},JJ=async(t,e)=>{var o,a,n,r,s,c;let d=e||{};const u={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:d,hooks:u};for(const m of e?.plugins||[]){if(m.init){const h=await((o=m.init)==null?void 0:o.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((a=m.hooks)==null?void 0:a.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((s=m.hooks)==null?void 0:s.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:t,options:d,hooks:u}},nO=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},XJ=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function eX(t){if(typeof t=="number")return new nO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new nO(t);case"exponential":return new XJ(t);default:throw new Error("Invalid retry strategy")}}var tX=async t=>{const e={},o=async a=>typeof a=="function"?await a():a;if(t?.auth){if(t.auth.type==="Bearer"){const a=await o(t.auth.token);if(!a)return e;e.authorization=`Bearer ${a}`}else if(t.auth.type==="Basic"){const[a,n]=await Promise.all([o(t.auth.username),o(t.auth.password)]);if(!a||!n)return e;e.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(t.auth.type==="Custom"){const[a,n]=await Promise.all([o(t.auth.prefix),o(t.auth.value)]);if(!n)return e;e.authorization=`${a??""} ${n}`}}return e},oX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function aX(t){const e=t.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const a=e.split(";").shift()||"";return oX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function nX(t){try{return JSON.parse(t),!0}catch{return!1}}function M0(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function rO(t){try{return JSON.parse(t)}catch{return t}}function iO(t){return typeof t=="function"}function rX(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&iO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&iO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function iX(t){const e=new Headers(t?.headers),o=await tX(t);for(const[a,n]of Object.entries(o||{}))e.set(a,n);if(!e.has("content-type")){const a=sX(t?.body);a&&e.set("content-type",a)}return e}function sX(t){return M0(t)?"application/json":null}function lX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(M0(t.body)&&!e.has("content-type")){for(const[o,a]of Object.entries(t?.body))a instanceof Date&&(t.body[o]=a.toISOString());return JSON.stringify(t.body)}return e.has("content-type")&&e.get("content-type")==="application/x-www-form-urlencoded"&&M0(t.body)?new URLSearchParams(t.body).toString():t.body}function cX(t,e){var o;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const a=(o=t.split("@")[1])==null?void 0:o.split("/")[0];return pB.includes(a)?a.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function dX(t,e){let o;return!t?.signal&&t?.timeout&&(o=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var uX=class uB extends Error{constructor(e,o){super(o||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,uB.prototype)}};async function bf(t,e){const o=await t["~standard"].validate(e);if(o.issues)throw new uX(o.issues);return o.value}var pB=["get","post","put","patch","delete"],pX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,o){var a,n,r,s;const c=((n=(a=t.plugins)==null?void 0:a.find(d=>{var u;return(u=d.schema)!=null&&u.config?e.startsWith(d.schema.config.baseURL||"")||e.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||t.schema;if(c){let d=e;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(e=e.replace(c.config.prefix,c.config.baseURL))),(s=c.config)!=null&&s.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=Ur(Sr({},o),{method:u.method,output:u.output});return o?.disableValidation||(m=Ur(Sr({},m),{body:u.input?await bf(u.input,o?.body):o?.body,params:u.params?await bf(u.params,o?.params):o?.params,query:u.query?await bf(u.query,o?.query):o?.query})),{url:e,options:m}}}return{url:e,options:o}}}),mX=t=>{async function e(o,a){const n=Ur(Sr(Sr({},t),a),{plugins:[...t?.plugins||[],pX(t||{}),...a?.plugins||[]]});if(t?.catchAllError)try{return await N0(o,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await N0(o,n)}return e};function hX(t,e){const{baseURL:o,params:a,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):o||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];pB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[s,c]=t.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const y of f)d.append(h,y);continue}else v=JSON.stringify(f);d.set(h,v)}if(a)if(Array.isArray(a)){const h=s.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const y=a[f];s=s.replace(v,y)}}else for(const[h,f]of Object.entries(a))s=s.replace(`:${h}`,String(f));s=s.split("/").map(encodeURIComponent).join("/"),s.startsWith("/")&&(s=s.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${s}${u}`,r):`${r}${s}${u}`}var N0=async(t,e)=>{var o,a,n,r,s,c,d,u;const{hooks:m,url:h,options:f}=await JJ(t,e),v=rX(f),y=new AbortController,S=(o=f.signal)!=null?o:y.signal,x=hX(h,f),w=lX(f),k=await iX(f),_=cX(h,f);let C=Ur(Sr({},f),{url:x,headers:k,body:w,method:_,signal:S});for(const F of m.onRequest)if(F){const W=await F(C);typeof W=="object"&&W!==null&&(C=W)}("pipeTo"in C&&typeof C.pipeTo=="function"||typeof((a=e?.body)==null?void 0:a.pipe)=="function")&&("duplex"in C||(C.duplex="half"));const{clearTimeout:P}=dX(f,y);let D=await v(C.url,C);P();const R={response:D,request:C};for(const F of m.onResponse)if(F){const W=await F(Ur(Sr({},R),{response:(n=e?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(C.method!=="HEAD"))return{data:"",error:null};const W=aX(D),oe={data:null,response:D,request:C};if(W==="json"||W==="text"){const H=await D.text(),K=(r=C.jsonParser)!=null?r:rO;oe.data=await K(H)}else oe.data=await D[W]();C?.output&&C.output&&!C.disableValidation&&(oe.data=await bf(C.output,oe.data));for(const H of m.onSuccess)H&&await H(Ur(Sr({},oe),{response:(s=e?.hookOptions)!=null&&s.cloneResponse?D.clone():D}));return e?.throw?oe.data:{data:oe.data,error:null}}const O=(c=e?.jsonParser)!=null?c:rO,L=await D.text(),$=nX(L),B=$?await O(L):null,z={response:D,responseText:L,request:C,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Sr({},z),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=eX(e.retry),W=(u=e.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const oe=F.getDelay(W);return await new Promise(H=>setTimeout(H,oe)),await N0(t,Ur(Sr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new QJ(D.status,D.statusText,$?B:L);return{data:null,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})}};const gX=(t,e)=>{const o="credentials"in Request.prototype,a=wJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(C=>C.fetchPlugins).filter(C=>C!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:s,onError:c,onRequest:d,onResponse:u,...m}=t?.fetchOptions||{},h=mX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(C){return C?RJ(C,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[xJ],...n]}),{$sessionSignal:f,session:v}=qJ(h,t),y=t?.plugins||[];let S={};const x={$sessionSignal:f,session:v},w={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{signal:"$sessionSignal",matcher(C){return C==="/sign-out"||C==="/update-user"||C==="/sign-up/email"||C==="/sign-in/email"||C==="/delete-user"||C==="/verify-email"||C==="/revoke-sessions"||C==="/revoke-session"||C==="/change-email"}}];for(const C of y)C.getAtoms&&Object.assign(x,C.getAtoms?.(h)),C.pathMethods&&Object.assign(w,C.pathMethods),C.atomListeners&&k.push(...C.atomListeners);const _={notify:C=>{x[C].set(!x[C].get())},listen:(C,P)=>{x[C].subscribe(P)},atoms:x};for(const C of y)C.getActions&&(S=HJ(C.getActions?.(h,_,t)??{},S));return{get baseURL(){return a},pluginsActions:S,pluginsAtoms:x,pluginPathMethods:w,atomListeners:k,$fetch:h,$store:_}};function fX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function vX(t,e,o){const a=e[t],{fetchOptions:n,query:r,...s}=o||{};return a||(n?.method?n.method:s&&Object.keys(s).length>0?"POST":"GET")}function bX(t,e,o,a,n){function r(s=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...s,d];let m=t;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||fX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+s.map(k=>k.replace(/[A-Z]/g,_=>`-${_.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:y,...S}=h,x={...f,...y},w=vX(m,o,h);return await e(m,{...x,body:w==="GET"?void 0:{...S,...x?.body||{}},query:v||x?.query,method:w,async onSuccess(k){if(await x?.onSuccess?.(k),!n||x.disableSignal)return;const _=n.filter(P=>P.matcher(m));if(!_.length)return;const C=new Set;for(const P of _){const D=a[P.signal];if(!D)return;if(C.has(P.signal))continue;C.add(P.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function yX(t,e={}){const o=A.useRef(t.get()),{keys:a,deps:n=[t,a]}=e,r=A.useCallback(c=>{const d=u=>{o.current!==u&&(o.current=u,c())};return d(t.value),a?.length?IJ(t,a,d):t.listen(d)},n),s=()=>o.current;return A.useSyncExternalStore(r,s,s)}function SX(t){return`use${yJ(t)}`}function TX(t){const{pluginPathMethods:e,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:s}=gX(t),c={};for(const[d,u]of Object.entries(a))c[SX(d)]=()=>yX(u);return bX({...o,...c,$fetch:n,$store:r},n,e,a,s)}function wX(t){return{authorize(e,o="AND"){let a=!1;for(const[n,r]of Object.entries(e)){const s=t[n];if(!s)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))a=r.every(c=>s.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?a=c.actions.some(d=>s.includes(d)):a=c.actions.every(d=>s.includes(d))}else throw new kp("Invalid access control request");if(a&&o==="OR")return{success:a};if(!a&&o==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return a?{success:a}:{success:!1,error:"Not authorized"}},statements:t}}function mB(t){return{newRole(e){return wX(e)},statements:t}}const xX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},hB=mB(xX),gB=hB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),fB=hB.newRole({user:[],session:[]}),kX={admin:gB,user:fB},CX=t=>{if(t.userId&&t.options?.adminUserIds?.includes(t.userId))return!0;if(!t.permissions&&!t.permission)return!1;const e=(t.role||t.options?.defaultRole||"user").split(","),o=t.options?.roles||kX;for(const a of e)if(o[a]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},EX=t=>{const e={admin:gB,user:fB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>CX({role:o.role,options:{ac:t?.ac,roles:e},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},_X=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),PX=()=>({id:"magic-link",$InferServerPlugin:{}}),AX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},Wk=mB(AX),vB=Wk.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),bB=Wk.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),yB=Wk.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),RX={admin:vB,owner:bB,member:yB},DX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const o=t.role.split(","),a=t.options.creatorRole||"owner",n=o.includes(a),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const s of o)if(e[s]?.authorize(t.permissions??t.permission)?.success)return!0;return!1},OX=t=>DX(t,t.options.roles||RX),MX=t=>{const e=hd(!1),o=hd(!1),a=hd(!1),n=hd(!1),r={admin:vB,member:yB,owner:bB,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(s,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>OX({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:s=>{const c=mp(e,"/organization/list",s,{method:"GET"});return{$listOrg:e,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:mp([o],"/organization/get-full-organization",s,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([a],"/organization/get-active-member",s,{method:"GET"}),activeMemberRole:mp([n],"/organization/get-active-member-role",s,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(s){return s==="/organization/create"||s==="/organization/delete"||s==="/organization/update"},signal:"$listOrg"},{matcher(s){return s.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(s){return s.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(s){return s.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(s){return s.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},NX="1.6.11",IX=t=>({id:"sso-client",version:NX,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function LX(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch{return{}}return e&&typeof e=="object"&&!Array.isArray(e)?Object.fromEntries(Object.entries(e)):{}}function SB(t){return LX(t?.metadata).archived===!0}function TB(t){const e=new Set;return t.filter(o=>SB(o)||e.has(o.id)?!1:(e.add(o.id),!0))}const BX="Organization is archived",ia=TX({plugins:[MX({}),EX(),IX(),PX(),_X()]}),FX=8e3;let sO;function wB(){return sO??=new Promise(t=>{const e=setTimeout(t,FX);ia.$store.listen("session",o=>{o&&typeof o=="object"&&"isPending"in o&&(o.isPending||(clearTimeout(e),t()))})}),sO}const jX=Te({data:Te({user:Te({id:q()})}).nullish()});function zX(){const t=jX.safeParse(ia.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const UX=3e4;let hp=null,zg=null;function xB(){if(hp&&hp.expiresAt>Date.now())return Promise.resolve(hp.result);if(zg)return zg;const t=ia.organization.list().then(e=>{const o=e.data?{...e,data:TB(e.data)}:e;return o.data&&(hp={result:o,expiresAt:Date.now()+UX}),o}).finally(()=>{zg=null});return zg=t,t}function xwe(){const t=ia.useListOrganizations(),e=t.data?TB(t.data):void 0;return{...t,data:e}}function kwe(){hp=null}const $X="modulepreload",qX=function(t){return"/"+t},lO={},Le=function(e,o,a){let n=Promise.resolve();if(o&&o.length>0){let s=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");n=s(o.map(u=>{if(u=qX(u),u in lO)return;lO[u]=!0;const m=u.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":$X,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,y)=>{f.addEventListener("load",v),f.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${u}`)))})}))}function r(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return n.then(s=>{for(const c of s||[])c.status==="rejected"&&r(c.reason);return e().catch(r)})};function VX(t){try{return JSON.parse(t)}catch{return}}function cO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const o=localStorage.getItem(t),a=o?VX(o):void 0,n=typeof e=="function"?e(a):a??e;if(a===void 0||n!==a)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function HX(t,e){const o=ye.c(17),a=Wd();let n;o[0]!==t?(n=["localStorage",t],o[0]=t,o[1]=n):n=o[1];const r=n;let s,c;o[2]!==e||o[3]!==t?(s=()=>cO(t,e),c=()=>cO(t,e),o[2]=e,o[3]=t,o[4]=s,o[5]=c):(s=o[4],c=o[5]);let d;o[6]!==r||o[7]!==s||o[8]!==c?(d={queryKey:r,queryFn:s,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=r,o[7]=s,o[8]=c,o[9]=d):d=o[9];const{data:u}=Hs(d);let m;o[10]!==t||o[11]!==a||o[12]!==r?(m=y=>{const S=a.getQueryData(r),x=typeof y=="function"?y(S):y;typeof localStorage<"u"&&localStorage.setItem(t,JSON.stringify(x)),a.setQueryData(r,x)},o[10]=t,o[11]=a,o[12]=r,o[13]=m):m=o[13];const h=m,f=u;let v;return o[14]!==h||o[15]!==f?(v=[f,h],o[14]=h,o[15]=f,o[16]=v):v=o[16],v}const Zs={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},kB=["en","pt-BR"];function Kk(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const GX={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:Kk(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},CB=["auto","readonly"],Cwe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],WX=["light","dark","system"];function Ewe(){try{const t=JSON.parse(localStorage.getItem(Zs.preferences())??"{}");if(CB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function ab(){try{const t=JSON.parse(localStorage.getItem(Zs.preferences())??"{}");if(kB.includes(t.language))return t.language}catch{}return Kk()}function KX(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const a of t.shownTaskBoardLanes)typeof a=="string"&&(e[a]=!0);const o=t.taskBoardLaneVisibility;if(o&&typeof o=="object"&&!Array.isArray(o))for(const[a,n]of Object.entries(o))typeof n=="boolean"&&(e[a]=n);return e}function nb(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Zs.preferences(),t[0]=e):e=t[0],HX(e,YX)}function YX(t){const e={...GX,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,CB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),WX.includes(e.theme)||(e.theme="system"),kB.includes(e.language)||(e.language=Kk()),e.taskBoardLaneVisibility=KX(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),typeof e.projectFirstNav!="boolean"&&delete e.projectFirstNav,e}const ZX=A.createContext(!1),QX=Date.parse("2026-10-22T00:00:00Z");function JX(t,e){if(t!==void 0)return t;const o=e instanceof Date?e.getTime():typeof e=="string"||typeof e=="number"?new Date(e).getTime():Number.NaN;return Number.isFinite(o)&&o>=QX}function _we(){const t=ye.c(4),e=A.use(ZX),[o]=nb(),{data:a}=ia.useSession();let n;return t[0]!==e||t[1]!==o||t[2]!==a?.user?.createdAt?(n=e||JX(o.projectFirstNav,a?.user?.createdAt),t[0]=e,t[1]=o,t[2]=a?.user?.createdAt,t[3]=n):n=t[3],n}const XX={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},eee={"projects.overview.metrics":"Metrics","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"New project","projects.card.updated":"Updated {time}","projects.empty.title":"Your commerce, one project at a time","projects.empty.description":"A site, an app, a store. Each one keeps its own connections, report and board.","projects.empty.readOnly":"Ask an admin to create the first project.","projects.new.title":"New project","projects.new.subtitle":"What are you setting up?","projects.new.back":"Back","projects.new.create":"Create project","projects.new.creating":"Creating…","projects.new.nameLabel":"Project name","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Give the project a name","projects.new.failed":"Couldn't create the project","projects.new.created":"{title} is ready","projects.new.path.repository":"Import a codebase","projects.new.path.repository.hint":"Bring a storefront or app codebase in","projects.new.path.folder":"New project folder","projects.new.path.folder.hint":"Name it now, connect it later","projects.new.step.folder.title":"Name your project","projects.reports.chooserTitle":"Continue to Reports","projects.reports.chooserSubtitle":"Choose a project to continue","projects.reports.chooserSearch":"Find project…","projects.reports.chooserEmpty":"No project by that name.","projects.reports.status.ready":"Ready","projects.reports.status.running":"Running","projects.reports.status.none":"Not run","projects.reports.status.locked":"Locked","projects.connections.orgWide":"Organization-wide","projects.connections.usedBy":"{count} projects","projects.settings.title":"Projects","projects.settings.searchPlaceholder":"Search projects…","projects.settings.open":"Open","projects.settings.openSettings":"Settings","projects.settings.noResults":"No projects match “{search}”","projects.identity.storeUrlLabel":"Store URL","projects.identity.storeUrlDescription":"The live storefront. Reports run against this address.","projects.apps.reports":"Report","projects.apps.siteEditor":"Site editor","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"End-to-end tests","projects.apps.analytics":"Analytics","projects.apps.cdn":"Monitor","projects.apps.automations":"Automations","projects.apps.experiments":"Experiments","projects.apps.calendar":"Calendar"},tee={"virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your project, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionNotFound":"Connection not found","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the project can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.fileTooLargeDescription":"Exceeds the 25MB limit, not uploaded: {names}","virtualMcp.filesSection.fileTooLargeTitle":"File too large","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.noMainView":"No main view","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this project.","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.layoutTabContent.siteEditor":"Site Editor","virtualMcp.settings.title":"Project settings","virtualMcp.settings.navigation":"Project settings sections","virtualMcp.settings.identity.icon":"Project icon","virtualMcp.settings.identity.iconDescription":"How your project appears in the sidebar and across Studio.","virtualMcp.settings.identity.name":"Project name","virtualMcp.settings.identity.description":"Description","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.connections.title":"Connections","virtualMcp.settings.views.defaults":"Default layout","virtualMcp.settings.views.sidebar":"Views","virtualMcp.settings.views.open":"Open","virtualMcp.settings.views.pin":"Pin to sidebar","virtualMcp.settings.views.unpin":"Remove from sidebar","virtualMcp.settings.views.setMainView":"Set as main view","virtualMcp.settings.views.rowActions":"View options","virtualMcp.subAgentsSection.addSubAgent":"Add sub-project","virtualMcp.subAgentsSection.anyAgent":"Any project","virtualMcp.subAgentsSection.canDelegateToAnyAgent":"Can delegate to any project in the organization.","virtualMcp.subAgentsSection.canOnlyDelegateToItself":"Can only delegate to a fresh copy of itself, no other projects.","virtualMcp.subAgentsSection.emptyStateMessage":"No sub-projects selected yet. Add one — until then this project can only delegate to itself.","virtualMcp.subAgentsSection.noAgentsFound":"No projects found.","virtualMcp.subAgentsSection.onlyItself":"Only itself","virtualMcp.subAgentsSection.searchPlaceholder":"Search projects...","virtualMcp.subAgentsSection.specificAgents":"Specific projects","virtualMcp.subAgentsSection.title":"Sub-projects","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agent","virtualMcp.virtualMcp.agentNamePlaceholder":"Project name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete project","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Project?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this project and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the project","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsed":"Last used {time}","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
56
56
|
Define who this agent is and what it specializes in.
|
|
57
57
|
Example: You are a support triage agent for B2B merchants.
|
|
58
58
|
</role>
|
|
@@ -165,7 +165,7 @@ Este site ainda não reporta sections de post — quando reportar, cite elas aqu
|
|
|
165
165
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
166
166
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
167
167
|
`)},jre=0,Yc=[];function zre(t){var e=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(jre++)[0],r=A.useState(zF)[0],s=A.useRef(t);A.useEffect(function(){s.current=t},[t]),A.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var S=sre([t.lockRef.current],(t.shards||[]).map(VO),!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))})}}},[t.inert,t.lockRef.current,t.shards]);var c=A.useCallback(function(S,x){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!s.current.allowPinchZoom;var w=Kg(S),k=o.current,_="deltaX"in S?S.deltaX:k[0]-w[0],C="deltaY"in S?S.deltaY:k[1]-w[1],P,D=S.target,R=Math.abs(_)>Math.abs(C)?"h":"v";if("touches"in S&&R==="h"&&D.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,$=L?L===D||L.contains(D):!1;if($)return!1;var B=$O(R,D);if(!B)return!0;if(B?P=R:(P=R==="v"?"h":"v",B=$O(R,D)),!B)return!1;if(!a.current&&"changedTouches"in S&&(_||C)&&(a.current=P),!P)return!0;var z=a.current||P;return Lre(z,x,S,z==="h"?_:C)},[]),d=A.useCallback(function(S){var x=S;if(!(!Yc.length||Yc[Yc.length-1]!==r)){var w="deltaY"in x?qO(x):Kg(x),k=e.current.filter(function(P){return P.name===x.type&&(P.target===x.target||x.target===P.shadowParent)&&Bre(P.delta,w)})[0];if(k&&k.should){x.cancelable&&x.preventDefault();return}if(!k){var _=(s.current.shards||[]).map(VO).filter(Boolean).filter(function(P){return P.contains(x.target)}),C=_.length>0?c(x,_[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=A.useCallback(function(S,x,w,k){var _={name:S,delta:x,target:w,should:k,shadowParent:Ure(w)};e.current.push(_),setTimeout(function(){e.current=e.current.filter(function(C){return C!==_})},1)},[]),m=A.useCallback(function(S){o.current=Kg(S),a.current=void 0},[]),h=A.useCallback(function(S){u(S.type,qO(S),S.target,c(S,t.lockRef.current))},[]),f=A.useCallback(function(S){u(S.type,Kg(S),S.target,c(S,t.lockRef.current))},[]);A.useEffect(function(){return Yc.push(r),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,Kc),document.addEventListener("touchmove",d,Kc),document.addEventListener("touchstart",m,Kc),function(){Yc=Yc.filter(function(S){return S!==r}),document.removeEventListener("wheel",d,Kc),document.removeEventListener("touchmove",d,Kc),document.removeEventListener("touchstart",m,Kc)}},[]);var v=t.removeScrollBar,y=t.inert;return A.createElement(A.Fragment,null,y?A.createElement(r,{styles:Fre(n)}):null,v?A.createElement(Are,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Ure(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const $re=fre(jF,zre);var uC=A.forwardRef(function(t,e){return A.createElement(db,Gr({},t,{ref:e,sideCar:$re}))});uC.classNames=db.classNames;var U0=["Enter"," "],qre=["ArrowDown","PageUp","Home"],VF=["ArrowUp","PageDown","End"],Vre=[...qre,...VF],Hre={ltr:[...U0,"ArrowRight"],rtl:[...U0,"ArrowLeft"]},Gre={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bm="Menu",[Hp,Wre,Kre]=QB(bm),[Xl,HF]=Js(bm,[Kre,yF,RF]),ym=yF(),GF=RF(),[WF,Xs]=Xl(bm),[Yre,Sm]=Xl(bm),KF=t=>{const{__scopeMenu:e,open:o=!1,children:a,dir:n,onOpenChange:r,modal:s=!0}=t,c=ym(e),[d,u]=A.useState(null),m=A.useRef(!1),h=Er(r),f=JB(n);return A.useEffect(()=>{const v=()=>{m.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>m.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),b.jsx(PF,{...c,children:b.jsx(WF,{scope:e,open:o,onOpenChange:h,content:d,onContentChange:u,children:b.jsx(Yre,{scope:e,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:s,children:a})})})};KF.displayName=bm;var Zre="MenuAnchor",pC=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=ym(o);return b.jsx(jne,{...n,...a,ref:e})});pC.displayName=Zre;var mC="MenuPortal",[Qre,YF]=Xl(mC,{forceMount:void 0}),ZF=t=>{const{__scopeMenu:e,forceMount:o,children:a,container:n}=t,r=Xs(mC,e);return b.jsx(Qre,{scope:e,forceMount:o,children:b.jsx(Fi,{present:o||r.open,children:b.jsx(dC,{asChild:!0,container:n,children:a})})})};ZF.displayName=mC;var nr="MenuContent",[Jre,hC]=Xl(nr),QF=A.forwardRef((t,e)=>{const o=YF(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=Xs(nr,t.__scopeMenu),s=Sm(nr,t.__scopeMenu);return b.jsx(Hp.Provider,{scope:t.__scopeMenu,children:b.jsx(Fi,{present:a||r.open,children:b.jsx(Hp.Slot,{scope:t.__scopeMenu,children:s.modal?b.jsx(Xre,{...n,ref:e}):b.jsx(eie,{...n,ref:e})})})})}),Xre=A.forwardRef((t,e)=>{const o=Xs(nr,t.__scopeMenu),a=A.useRef(null),n=$o(e,a);return A.useEffect(()=>{const r=a.current;if(r)return LF(r)},[]),b.jsx(gC,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mt(t.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),eie=A.forwardRef((t,e)=>{const o=Xs(nr,t.__scopeMenu);return b.jsx(gC,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),tie=qp("MenuContent.ScrollLock"),gC=A.forwardRef((t,e)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,disableOutsideScroll:y,...S}=t,x=Xs(nr,o),w=Sm(nr,o),k=ym(o),_=GF(o),C=Wre(o),[P,D]=A.useState(null),R=A.useRef(null),O=$o(e,R,x.onContentChange),L=A.useRef(0),$=A.useRef(""),B=A.useRef(0),z=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),oe=y?uC:A.Fragment,H=y?{as:tie,allowPinchZoom:!0}:void 0,K=ie=>{const Q=$.current+ie,N=C().filter(de=>!de.disabled),G=document.activeElement,V=N.find(de=>de.ref.current===G)?.textValue,I=N.map(de=>de.textValue),j=mie(I,Q,V),X=N.find(de=>de.textValue===j)?.ref.current;(function de(ue){$.current=ue,window.clearTimeout(L.current),ue!==""&&(L.current=window.setTimeout(()=>de(""),1e3))})(Q),X&&setTimeout(()=>X.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),tF();const J=A.useCallback(ie=>F.current===z.current?.side&&gie(ie,z.current?.area),[]);return b.jsx(Jre,{scope:o,searchRef:$,onItemEnter:A.useCallback(ie=>{J(ie)&&ie.preventDefault()},[J]),onItemLeave:A.useCallback(ie=>{J(ie)||(R.current?.focus(),D(null))},[J]),onTriggerLeave:A.useCallback(ie=>{J(ie)&&ie.preventDefault()},[J]),pointerGraceTimerRef:B,onPointerGraceIntentChange:A.useCallback(ie=>{z.current=ie},[]),children:b.jsx(oe,{...H,children:b.jsx(eC,{asChild:!0,trapped:n,onMountAutoFocus:mt(r,ie=>{ie.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b.jsx(Xk,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,children:b.jsx(ore,{asChild:!0,..._,dir:w.dir,orientation:"vertical",loop:a,currentTabStopId:P,onCurrentTabStopIdChange:D,onEntryFocus:mt(d,ie=>{w.isUsingKeyboardRef.current||ie.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(zne,{role:"menu","aria-orientation":"vertical","data-state":hj(x.open),"data-radix-menu-content":"",dir:w.dir,...k,...S,ref:O,style:{outline:"none",...S.style},onKeyDown:mt(S.onKeyDown,ie=>{const N=ie.target.closest("[data-radix-menu-content]")===ie.currentTarget,G=ie.ctrlKey||ie.altKey||ie.metaKey,V=ie.key.length===1;N&&(ie.key==="Tab"&&ie.preventDefault(),!G&&V&&K(ie.key));const I=R.current;if(ie.target!==I||!Vre.includes(ie.key))return;ie.preventDefault();const X=C().filter(de=>!de.disabled).map(de=>de.ref.current);VF.includes(ie.key)&&X.reverse(),uie(X)}),onBlur:mt(t.onBlur,ie=>{ie.currentTarget.contains(ie.target)||(window.clearTimeout(L.current),$.current="")}),onPointerMove:mt(t.onPointerMove,Gp(ie=>{const Q=ie.target,N=W.current!==ie.clientX;if(ie.currentTarget.contains(Q)&&N){const G=ie.clientX>W.current?"right":"left";F.current=G,W.current=ie.clientX}}))})})})})})})});QF.displayName=nr;var oie="MenuGroup",fC=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return b.jsx(Ro.div,{role:"group",...a,ref:e})});fC.displayName=oie;var aie="MenuLabel",JF=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return b.jsx(Ro.div,{...a,ref:e})});JF.displayName=aie;var nv="MenuItem",HO="menu.itemSelect",ub=A.forwardRef((t,e)=>{const{disabled:o=!1,onSelect:a,...n}=t,r=A.useRef(null),s=Sm(nv,t.__scopeMenu),c=hC(nv,t.__scopeMenu),d=$o(e,r),u=A.useRef(!1),m=()=>{const h=r.current;if(!o&&h){const f=new CustomEvent(HO,{bubbles:!0,cancelable:!0});h.addEventListener(HO,v=>a?.(v),{once:!0}),ZB(h,f),f.defaultPrevented?u.current=!1:s.onClose()}};return b.jsx(XF,{...n,ref:d,disabled:o,onClick:mt(t.onClick,m),onPointerDown:h=>{t.onPointerDown?.(h),u.current=!0},onPointerUp:mt(t.onPointerUp,h=>{u.current||h.currentTarget?.click()}),onKeyDown:mt(t.onKeyDown,h=>{const f=c.searchRef.current!=="";o||f&&h.key===" "||U0.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});ub.displayName=nv;var XF=A.forwardRef((t,e)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...r}=t,s=hC(nv,o),c=GF(o),d=A.useRef(null),u=$o(e,d),[m,h]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const y=d.current;y&&v((y.textContent??"").trim())},[r.children]),b.jsx(Hp.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:b.jsx(are,{asChild:!0,...c,focusable:!a,children:b.jsx(Ro.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...r,ref:u,onPointerMove:mt(t.onPointerMove,Gp(y=>{a?s.onItemLeave(y):(s.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(t.onPointerLeave,Gp(y=>s.onItemLeave(y))),onFocus:mt(t.onFocus,()=>h(!0)),onBlur:mt(t.onBlur,()=>h(!1))})})})}),nie="MenuCheckboxItem",ej=A.forwardRef((t,e)=>{const{checked:o=!1,onCheckedChange:a,...n}=t;return b.jsx(rj,{scope:t.__scopeMenu,checked:o,children:b.jsx(ub,{role:"menuitemcheckbox","aria-checked":rv(o)?"mixed":o,...n,ref:e,"data-state":yC(o),onSelect:mt(n.onSelect,()=>a?.(rv(o)?!0:!o),{checkForDefaultPrevented:!1})})})});ej.displayName=nie;var tj="MenuRadioGroup",[rie,iie]=Xl(tj,{value:void 0,onValueChange:()=>{}}),oj=A.forwardRef((t,e)=>{const{value:o,onValueChange:a,...n}=t,r=Er(a);return b.jsx(rie,{scope:t.__scopeMenu,value:o,onValueChange:r,children:b.jsx(fC,{...n,ref:e})})});oj.displayName=tj;var aj="MenuRadioItem",nj=A.forwardRef((t,e)=>{const{value:o,...a}=t,n=iie(aj,t.__scopeMenu),r=o===n.value;return b.jsx(rj,{scope:t.__scopeMenu,checked:r,children:b.jsx(ub,{role:"menuitemradio","aria-checked":r,...a,ref:e,"data-state":yC(r),onSelect:mt(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});nj.displayName=aj;var vC="MenuItemIndicator",[rj,sie]=Xl(vC,{checked:!1}),ij=A.forwardRef((t,e)=>{const{__scopeMenu:o,forceMount:a,...n}=t,r=sie(vC,o);return b.jsx(Fi,{present:a||rv(r.checked)||r.checked===!0,children:b.jsx(Ro.span,{...n,ref:e,"data-state":yC(r.checked)})})});ij.displayName=vC;var lie="MenuSeparator",sj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return b.jsx(Ro.div,{role:"separator","aria-orientation":"horizontal",...a,ref:e})});sj.displayName=lie;var cie="MenuArrow",lj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=ym(o);return b.jsx(Une,{...n,...a,ref:e})});lj.displayName=cie;var bC="MenuSub",[die,cj]=Xl(bC),dj=t=>{const{__scopeMenu:e,children:o,open:a=!1,onOpenChange:n}=t,r=Xs(bC,e),s=ym(e),[c,d]=A.useState(null),[u,m]=A.useState(null),h=Er(n);return A.useEffect(()=>(r.open===!1&&h(!1),()=>h(!1)),[r.open,h]),b.jsx(PF,{...s,children:b.jsx(WF,{scope:e,open:a,onOpenChange:h,content:u,onContentChange:m,children:b.jsx(die,{scope:e,contentId:Bs(),triggerId:Bs(),trigger:c,onTriggerChange:d,children:o})})})};dj.displayName=bC;var gp="MenuSubTrigger",uj=A.forwardRef((t,e)=>{const o=Xs(gp,t.__scopeMenu),a=Sm(gp,t.__scopeMenu),n=cj(gp,t.__scopeMenu),r=hC(gp,t.__scopeMenu),s=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=r,u={__scopeMenu:t.__scopeMenu},m=A.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return A.useEffect(()=>m,[m]),A.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),d(null)}},[c,d]),b.jsx(pC,{asChild:!0,...u,children:b.jsx(XF,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":hj(o.open),...t,ref:hm(e,n.onTriggerChange),onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mt(t.onPointerMove,Gp(h=>{r.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!o.open&&!s.current&&(r.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{o.onOpenChange(!0),m()},100))})),onPointerLeave:mt(t.onPointerLeave,Gp(h=>{m();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,y=v==="right",S=y?-5:5,x=f[y?"left":"right"],w=f[y?"right":"left"];r.onPointerGraceIntentChange({area:[{x:h.clientX+S,y:h.clientY},{x,y:f.top},{x:w,y:f.top},{x:w,y:f.bottom},{x,y:f.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>r.onPointerGraceIntentChange(null),300)}else{if(r.onTriggerLeave(h),h.defaultPrevented)return;r.onPointerGraceIntentChange(null)}})),onKeyDown:mt(t.onKeyDown,h=>{const f=r.searchRef.current!=="";t.disabled||f&&h.key===" "||Hre[a.dir].includes(h.key)&&(o.onOpenChange(!0),o.content?.focus(),h.preventDefault())})})})});uj.displayName=gp;var pj="MenuSubContent",mj=A.forwardRef((t,e)=>{const o=YF(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=Xs(nr,t.__scopeMenu),s=Sm(nr,t.__scopeMenu),c=cj(pj,t.__scopeMenu),d=A.useRef(null),u=$o(e,d);return b.jsx(Hp.Provider,{scope:t.__scopeMenu,children:b.jsx(Fi,{present:a||r.open,children:b.jsx(Hp.Slot,{scope:t.__scopeMenu,children:b.jsx(gC,{id:c.contentId,"aria-labelledby":c.triggerId,...n,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{s.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:mt(t.onFocusOutside,m=>{m.target!==c.trigger&&r.onOpenChange(!1)}),onEscapeKeyDown:mt(t.onEscapeKeyDown,m=>{s.onClose(),m.preventDefault()}),onKeyDown:mt(t.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),f=Gre[s.dir].includes(m.key);h&&f&&(r.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});mj.displayName=pj;function hj(t){return t?"open":"closed"}function rv(t){return t==="indeterminate"}function yC(t){return rv(t)?"indeterminate":t?"checked":"unchecked"}function uie(t){const e=document.activeElement;for(const o of t)if(o===e||(o.focus(),document.activeElement!==e))return}function pie(t,e){return t.map((o,a)=>t[(e+a)%t.length])}function mie(t,e,o){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,r=o?t.indexOf(o):-1;let s=pie(t,Math.max(r,0));n.length===1&&(s=s.filter(u=>u!==o));const d=s.find(u=>u.toLowerCase().startsWith(n.toLowerCase()));return d!==o?d:void 0}function hie(t,e){const{x:o,y:a}=t;let n=!1;for(let r=0,s=e.length-1;r<e.length;s=r++){const c=e[r],d=e[s],u=c.x,m=c.y,h=d.x,f=d.y;m>a!=f>a&&o<(h-u)*(a-m)/(f-m)+u&&(n=!n)}return n}function gie(t,e){if(!e)return!1;const o={x:t.clientX,y:t.clientY};return hie(o,e)}function Gp(t){return e=>e.pointerType==="mouse"?t(e):void 0}var fie=KF,vie=pC,bie=ZF,yie=QF,Sie=fC,Tie=JF,wie=ub,xie=ej,kie=oj,Cie=nj,Eie=ij,_ie=sj,Pie=lj,Aie=dj,Rie=uj,Die=mj,pb="DropdownMenu",[Oie]=Js(pb,[HF]),qa=HF(),[Mie,gj]=Oie(pb),fj=t=>{const{__scopeDropdownMenu:e,children:o,dir:a,open:n,defaultOpen:r,onOpenChange:s,modal:c=!0}=t,d=qa(e),u=A.useRef(null),[m,h]=gm({prop:n,defaultProp:r??!1,onChange:s,caller:pb});return b.jsx(Mie,{scope:e,triggerId:Bs(),triggerRef:u,contentId:Bs(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:b.jsx(fie,{...d,open:m,onOpenChange:h,dir:a,modal:c,children:o})})};fj.displayName=pb;var vj="DropdownMenuTrigger",bj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=t,r=gj(vj,o),s=qa(o);return b.jsx(vie,{asChild:!0,...s,children:b.jsx(Ro.button,{type:"button",id:r.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":r.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...n,ref:hm(e,r.triggerRef),onPointerDown:mt(t.onPointerDown,c=>{!a&&c.button===0&&c.ctrlKey===!1&&(r.onOpenToggle(),r.open||c.preventDefault())}),onKeyDown:mt(t.onKeyDown,c=>{a||(["Enter"," "].includes(c.key)&&r.onOpenToggle(),c.key==="ArrowDown"&&r.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});bj.displayName=vj;var Nie="DropdownMenuPortal",yj=t=>{const{__scopeDropdownMenu:e,...o}=t,a=qa(e);return b.jsx(bie,{...a,...o})};yj.displayName=Nie;var Sj="DropdownMenuContent",Tj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=gj(Sj,o),r=qa(o),s=A.useRef(!1);return b.jsx(yie,{id:n.contentId,"aria-labelledby":n.triggerId,...r,...a,ref:e,onCloseAutoFocus:mt(t.onCloseAutoFocus,c=>{s.current||n.triggerRef.current?.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:mt(t.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,m=d.button===2||u;(!n.modal||m)&&(s.current=!0)}),style:{...t.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)"}})});Tj.displayName=Sj;var Iie="DropdownMenuGroup",Lie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(Sie,{...n,...a,ref:e})});Lie.displayName=Iie;var Bie="DropdownMenuLabel",wj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(Tie,{...n,...a,ref:e})});wj.displayName=Bie;var Fie="DropdownMenuItem",xj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(wie,{...n,...a,ref:e})});xj.displayName=Fie;var jie="DropdownMenuCheckboxItem",kj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(xie,{...n,...a,ref:e})});kj.displayName=jie;var zie="DropdownMenuRadioGroup",Cj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(kie,{...n,...a,ref:e})});Cj.displayName=zie;var Uie="DropdownMenuRadioItem",Ej=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(Cie,{...n,...a,ref:e})});Ej.displayName=Uie;var $ie="DropdownMenuItemIndicator",_j=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(Eie,{...n,...a,ref:e})});_j.displayName=$ie;var qie="DropdownMenuSeparator",Pj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(_ie,{...n,...a,ref:e})});Pj.displayName=qie;var Vie="DropdownMenuArrow",Hie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(Pie,{...n,...a,ref:e})});Hie.displayName=Vie;var Gie=t=>{const{__scopeDropdownMenu:e,children:o,open:a,onOpenChange:n,defaultOpen:r}=t,s=qa(e),[c,d]=gm({prop:a,defaultProp:r??!1,onChange:n,caller:"DropdownMenuSub"});return b.jsx(Aie,{...s,open:c,onOpenChange:d,children:o})},Wie="DropdownMenuSubTrigger",Aj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(Rie,{...n,...a,ref:e})});Aj.displayName=Wie;var Kie="DropdownMenuSubContent",Rj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=qa(o);return b.jsx(Die,{...n,...a,ref:e,style:{...t.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)"}})});Rj.displayName=Kie;var Dj=fj,Oj=bj,Mj=yj,Nj=Tj,Yie=wj,Ij=xj,Zie=kj,Qie=Cj,Jie=Ej,Lj=_j,Xie=Pj,ese=Gie,tse=Aj,ose=Rj;const SC=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));SC.displayName="AlertTriangle";const Bj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Bj.displayName="Archive";const Fj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));Fj.displayName="ArrowUpRight";const jj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 6 9 17l-5-5"}));jj.displayName="Check";const TC=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"m9 18 6-6-6-6"}));TC.displayName="ChevronRight";const zj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));zj.displayName="Circle";const Uj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Uj.displayName="CpuChip01";const $j=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));$j.displayName="DotsHorizontal";const qj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));qj.displayName="GitBranch01";const Vj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Vj.displayName="HardDrive";const Hj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));Hj.displayName="LinkExternal01";const Gj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Gj.displayName="Lock01";const Wj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Wj.displayName="RefreshCw01";const Kj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Kj.displayName="Server01";const Yj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Yj.displayName="Shield01";const Zj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));Zj.displayName="User01";const Qj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,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"}));Qj.displayName="Users03";const Jj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));Jj.displayName="X";function ase(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=b.jsx(Dj,{"data-slot":"dropdown-menu",...o}),e[2]=o,e[3]=a):a=e[3],a}function nse(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=b.jsx(Oj,{"data-slot":"dropdown-menu-trigger",...o}),e[2]=o,e[3]=a):a=e[3],a}function rse(t){const e=ye.c(10);let o,a,n;e[0]!==t?({className:o,sideOffset:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const r=n===void 0?4:n;let s;e[4]!==o?(s=Qe("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),e[4]=o,e[5]=s):s=e[5];let c;return e[6]!==a||e[7]!==r||e[8]!==s?(c=b.jsx(Mj,{children:b.jsx(Nj,{"data-slot":"dropdown-menu-content",sideOffset:r,translate:"no",className:s,...a})}),e[6]=a,e[7]=r,e[8]=s,e[9]=c):c=e[9],c}function ise(t){const e=ye.c(12);let o,a,n,r;e[0]!==t?({className:o,inset:a,variant:r,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);const s=r===void 0?"default":r;let c;e[5]!==o?(c=Qe("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),e[5]=o,e[6]=c):c=e[6];let d;return e[7]!==a||e[8]!==n||e[9]!==c||e[10]!==s?(d=b.jsx(Ij,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":s,className:c,...n}),e[7]=a,e[8]=n,e[9]=c,e[10]=s,e[11]=d):d=e[11],d}function Owe(t){const e=ye.c(13);let o,a,n,r;e[0]!==t?({className:n,children:a,checked:o,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);let s;e[5]!==n?(s=Qe("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",n),e[5]=n,e[6]=s):s=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:b.jsx(Lj,{children:b.jsx(jj,{className:"size-4"})})}),e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==a||e[10]!==r||e[11]!==s?(d=b.jsxs(Zie,{"data-slot":"dropdown-menu-checkbox-item",className:s,checked:o,...r,children:[c,a]}),e[8]=o,e[9]=a,e[10]=r,e[11]=s,e[12]=d):d=e[12],d}function Mwe(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=b.jsx(Qie,{"data-slot":"dropdown-menu-radio-group",...o}),e[2]=o,e[3]=a):a=e[3],a}function Nwe(t){const e=ye.c(11);let o,a,n;e[0]!==t?({className:a,children:o,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==a?(r=Qe("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),e[4]=a,e[5]=r):r=e[5];let s;e[6]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:b.jsx(Lj,{children:b.jsx(zj,{className:"size-2 fill-current"})})}),e[6]=s):s=e[6];let c;return e[7]!==o||e[8]!==n||e[9]!==r?(c=b.jsxs(Jie,{"data-slot":"dropdown-menu-radio-item",className:r,...n,children:[s,o]}),e[7]=o,e[8]=n,e[9]=r,e[10]=c):c=e[10],c}function Iwe(t){const e=ye.c(10);let o,a,n;e[0]!==t?({className:o,inset:a,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o?(r=Qe("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",o),e[4]=o,e[5]=r):r=e[5];let s;return e[6]!==a||e[7]!==n||e[8]!==r?(s=b.jsx(Yie,{"data-slot":"dropdown-menu-label","data-inset":a,className:r,...n}),e[6]=a,e[7]=n,e[8]=r,e[9]=s):s=e[9],s}function Lwe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Qe("bg-border -mx-1 my-1 h-px",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=b.jsx(Xie,{"data-slot":"dropdown-menu-separator",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Bwe(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=b.jsx(ese,{"data-slot":"dropdown-menu-sub",...o}),e[2]=o,e[3]=a):a=e[3],a}function Fwe(t){const e=ye.c(13);let o,a,n,r;e[0]!==t?({className:a,inset:n,children:o,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);let s;e[5]!==a?(s=Qe("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),e[5]=a,e[6]=s):s=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(TC,{className:"ml-auto size-4"}),e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==n||e[10]!==r||e[11]!==s?(d=b.jsxs(tse,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:s,...r,children:[o,c]}),e[8]=o,e[9]=n,e[10]=r,e[11]=s,e[12]=d):d=e[12],d}function jwe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Qe("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),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=b.jsx(ose,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function sse(){const t=ye.c(3),[e,o]=A.useState(-1);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=s=>{if(!s)return;const c=()=>o(s.clientWidth);c();const d=new ResizeObserver(c);return d.observe(s),()=>d.disconnect()},t[0]=a):a=t[0];const n=a;let r;return t[1]!==e?(r=[e,n],t[1]=e,t[2]=r):r=t[2],r}function lse(){let t=new Map;const e=new Set,o=()=>e.forEach(a=>a());return{getSnapshot:()=>t,subscribe(a){return e.add(a),()=>{e.delete(a)}},register(a){if(t.has(a.after))throw new Error(`Two components extend breadcrumb: ${a.after}`);return t=new Map(t).set(a.after,a),o(),()=>{if(t.get(a.after)!==a)return;const n=new Map(t);n.delete(a.after),t=n,o()}}}}const wC=A.createContext(null);function cse(t){const e=ye.c(3),{children:o}=t,[a]=A.useState(lse);let n;return e[0]!==o||e[1]!==a?(n=b.jsx(wC,{value:a,children:o}),e[0]=o,e[1]=a,e[2]=n):n=e[2],n}function dse(t){const e=ye.c(2),{children:o}=t;let a;return e[0]!==o?(a=b.jsx(wC,{value:null,children:o}),e[0]=o,e[1]=a):a=e[1],a}function mb(){return A.use(wC)}function Xj(t){const e=ye.c(3),o=mb();if(!o)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let a;return e[0]!==t||e[1]!==o?(a=b.jsx("span",{hidden:!0,ref:n=>n?o.register(t):void 0}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}function use(t,e){const o=new Set,a=n=>{if(o.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);o.add(n.key);const r=e.get(n.key);return[{...n,...r?.parent},...r?.items?.flatMap(a)??[]]};return t.flatMap(a)}function pse(t,e){const o=t.map(a=>a.label).filter(a=>typeof a=="string").reverse();return e&&o.push(e),o.map(a=>a.trim()).filter(Boolean).join(" · ")}const e3=5;function mse(t,e=!1,o=e3){const a=t.map(s=>({type:"item",item:s}));if(t.length<=(e?1:o))return a;const n=e?0:1,r=t.length-(e?1:2);return a.splice(n,r-n,{type:"menu",items:t.slice(n,r)}),a}const t3=Iq(function(e){return b.jsx("a",{...e,"aria-current":void 0})});function hse(t){const e=ye.c(12),{items:o}=t,a=$a();let n;e[0]!==a?(n=a("page.breadcrumbMenu"),e[0]=a,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx($j,{"aria-hidden":"true",className:"size-4"}),e[2]=r):r=e[2];let s;e[3]!==n?(s=b.jsx(nse,{asChild:!0,children:b.jsx(bn,{variant:"ghost",size:"icon-xs",className:"shrink-0","aria-label":n,children:r})}),e[3]=n,e[4]=s):s=e[4];let c;e[5]!==o?(c=o.map(gse),e[5]=o,e[6]=c):c=e[6];let d;e[7]!==c?(d=b.jsx(rse,{align:"start",children:c}),e[7]=c,e[8]=d):d=e[8];let u;return e[9]!==s||e[10]!==d?(u=b.jsxs(ase,{children:[s,d]}),e[9]=s,e[10]=d,e[11]=u):u=e[11],u}function gse(t){const e=b.jsx("span",{className:"max-w-64 truncate",title:typeof t.label=="string"?t.label:void 0,children:t.label});return b.jsx(ise,{asChild:!!t.link&&!t.onSelect,onSelect:t.onSelect,disabled:!t.onSelect&&!t.link,children:t.link&&!t.onSelect?b.jsx(t3,{...t.link,children:e}):e},t.key)}function fse(t){const e=ye.c(14),{item:o,current:a}=t,n=typeof o.label=="string"?o.label:void 0;if(a){let s;return e[0]!==o.label||e[1]!==n?(s=b.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:o.label}),e[0]=o.label,e[1]=n,e[2]=s):s=e[2],s}if(o.onSelect){let s;return e[3]!==o.label||e[4]!==o.onSelect||e[5]!==n?(s=b.jsx("button",{type:"button",onClick:o.onSelect,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),e[3]=o.label,e[4]=o.onSelect,e[5]=n,e[6]=s):s=e[6],s}if(o.link){let s;return e[7]!==o.label||e[8]!==o.link||e[9]!==n?(s=b.jsx(t3,{...o.link,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),e[7]=o.label,e[8]=o.link,e[9]=n,e[10]=s):s=e[10],s}let r;return e[11]!==o.label||e[12]!==n?(r=b.jsx("span",{title:n,className:"block max-w-48 truncate",children:o.label}),e[11]=o.label,e[12]=n,e[13]=r):r=e[13],r}function o3(t){const e=ye.c(21),{items:o}=t,a=$a(),[n,r]=sse();let s,c,d,u,m,h;if(e[0]!==o||e[1]!==r||e[2]!==a||e[3]!==n){const y=mse(o,n>=0&&n<320,e3);u=r,e[10]!==a?(m=a("page.breadcrumbs"),e[10]=a,e[11]=m):m=e[11],h='min-w-0 flex-1 first:pl-3 [&:has(~[data-slot="panel-topbar-left-target"]:not(:empty))]:flex-initial',s="page-breadcrumbs",c="flex min-w-0 items-center gap-2 text-sm text-muted-foreground",d=y.map((S,x)=>b.jsxs("li",{className:Qe("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&&b.jsx(TC,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),S.type==="item"?b.jsx(fse,{item:S.item,current:x===y.length-1}):b.jsx(hse,{items:S.items})]},S.type==="item"?`item:${S.item.key}`:"menu")),e[0]=o,e[1]=r,e[2]=a,e[3]=n,e[4]=s,e[5]=c,e[6]=d,e[7]=u,e[8]=m,e[9]=h}else s=e[4],c=e[5],d=e[6],u=e[7],m=e[8],h=e[9];let f;e[12]!==s||e[13]!==c||e[14]!==d?(f=b.jsx("ol",{"data-slot":s,className:c,children:d}),e[12]=s,e[13]=c,e[14]=d,e[15]=f):f=e[15];let v;return e[16]!==u||e[17]!==m||e[18]!==h||e[19]!==f?(v=b.jsx("nav",{ref:u,"aria-label":m,className:h,children:f}),e[16]=u,e[17]=m,e[18]=h,e[19]=f,e[20]=v):v=e[20],v}function vse(t){const e=ye.c(12),{items:o,scope:a}=t,n=mb();if(!n)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const r=A.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);let s,c;e[0]!==r||e[1]!==o||e[2]!==a?(s=use(o,r),c=pse(s,a),e[0]=r,e[1]=o,e[2]=a,e[3]=s,e[4]=c):(s=e[3],c=e[4]);const d=c;let u;e[5]!==d?(u=d&&b.jsx("title",{children:d}),e[5]=d,e[6]=u):u=e[6];let m;e[7]!==s?(m=b.jsx(o3,{items:s}),e[7]=s,e[8]=m):m=e[8];let h;return e[9]!==u||e[10]!==m?(h=b.jsxs(b.Fragment,{children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11],h}function bse(t){const e=ye.c(3),o=mb();let a;return e[0]!==t||e[1]!==o?(a=o?b.jsx(Xj,{...t}):b.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:b.jsx(o3,{items:t.items??[]})}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const yse=Object.assign(bse,{Provider:cse,Detached:dse});function Sse(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Qe("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=b.jsx("div",{...a,"data-slot":"page",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Tse(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Qe("min-h-0 min-w-0 flex-1 overflow-auto",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=b.jsx("div",{...a,"data-slot":"page-content",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const wse={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"},xse="px-4 md:pl-6 md:pr-8",a3=A.createContext(!1);function kse(t){const e=ye.c(12);let o,a,n;e[0]!==t?({className:o,width:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const r=n===void 0?"wide":n,s=A.use(a3);let c;e[4]!==o||e[5]!==s||e[6]!==r?(c=Qe("w-full",s?Qe(xse,"pt-4 pb-8"):"mx-auto px-4 py-6 md:px-8 md:py-8",wse[r],o),e[4]=o,e[5]=s,e[6]=r,e[7]=c):c=e[7];let d;return e[8]!==a||e[9]!==c||e[10]!==r?(d=b.jsx("div",{...a,"data-slot":"page-container","data-width":r,className:c}),e[8]=a,e[9]=c,e[10]=r,e[11]=d):d=e[11],d}function Cse(t){const e=ye.c(9),{children:o,actions:a,className:n}=t,r=mb();let s;e[0]!==o||e[1]!==n||e[2]!==r?(s=r?b.jsx(Xj,{after:"page",parent:{label:o}}):b.jsx("div",{"data-slot":"page-title",className:Qe("flex flex-wrap items-center justify-between gap-3",n),children:b.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o})}),e[0]=o,e[1]=n,e[2]=r,e[3]=s):s=e[3];let c;e[4]!==a?(c=a&&b.jsx(n3,{children:a}),e[4]=a,e[5]=c):c=e[5];let d;return e[6]!==s||e[7]!==c?(d=b.jsxs(b.Fragment,{children:[s,c]}),e[6]=s,e[7]=c,e[8]=d):d=e[8],d}function n3(t){const e=ye.c(3),{children:o,secondary:a}=t;let n;if(e[0]!==o||e[1]!==a){const r=b.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]});n=b.jsx(pn.Topbar.Right.Portal,{fallback:r,children:r}),e[0]=o,e[1]=a,e[2]=n}else n=e[2];return n}function Ese(t){const e=ye.c(28),{breadcrumbs:o,scope:a,leading:n,actions:r,navigation:s,trailingActions:c}=t;let d;e[0]!==o||e[1]!==a?(d=b.jsx(vse,{items:o,scope:a}),e[0]=o,e[1]=a,e[2]=d):d=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=b.jsx(pn.Topbar.Left.Target,{}),e[3]=u):u=e[3];let m;e[4]!==n||e[5]!==d?(m=b.jsxs(pn.Topbar.Left,{className:"flex-1 gap-2",children:[n,d,u]}),e[4]=n,e[5]=d,e[6]=m):m=e[6];let h;e[7]!==r?(h=b.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:r}),e[7]=r,e[8]=h):h=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(pn.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"}),e[9]=f):f=e[9];let v;e[10]!==h||e[11]!==c?(v=b.jsxs(pn.Topbar.Right,{className:"shrink-0 gap-2",children:[h,f,c]}),e[10]=h,e[11]=c,e[12]=v):v=e[12];let y;e[13]!==m||e[14]!==v?(y=b.jsxs(pn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[m,v]}),e[13]=m,e[14]=v,e[15]=y):y=e[15];let S;e[16]!==s?(S=b.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:s}),e[16]=s,e[17]=S):S=e[17];let x;e[18]===Symbol.for("react.memo_cache_sentinel")?(x=b.jsx(pn.Toolbar.Left.Target,{}),e[18]=x):x=e[18];let w;e[19]!==S?(w=b.jsxs(pn.Toolbar.Left,{children:[S,x]}),e[19]=S,e[20]=w):w=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=b.jsx(pn.Toolbar.Center,{className:"@max-xl/panel-toolbar:order-last @max-xl/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:b.jsx(pn.Toolbar.Center.Target,{})}),e[21]=k):k=e[21];let _;e[22]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsx(pn.Toolbar.Right,{children:b.jsx(pn.Toolbar.Right.Target,{})}),e[22]=_):_=e[22];let C;e[23]!==w?(C=b.jsxs(pn.Toolbar,{children:[w,k,_]}),e[23]=w,e[24]=C):C=e[24];let P;return e[25]!==C||e[26]!==y?(P=b.jsxs(b.Fragment,{children:[y,C]}),e[25]=C,e[26]=y,e[27]=P):P=e[27],P}function _se(t){const e=ye.c(11);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);const n=$a();let r;e[3]!==n?(r=n("page.views"),e[3]=n,e[4]=r):r=e[4];let s;e[5]!==o?(s=Qe("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",o),e[5]=o,e[6]=s):s=e[6];let c;return e[7]!==a||e[8]!==r||e[9]!==s?(c=b.jsx("nav",{"aria-label":r,...a,"data-slot":"page-tabs",className:s}),e[7]=a,e[8]=r,e[9]=s,e[10]=c):c=e[10],c}function Pse(t){const e=ye.c(14);let o,a,n,r;e[0]!==t?({active:o,asChild:r,className:a,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);const s=r===void 0?!1:r,c=s?void 0:"button",d=s&&o?"page":void 0,u=s?void 0:o;let m;e[5]!==a?(m=Qe("shrink-0",a),e[5]=a,e[6]=m):m=e[6];let h;return e[7]!==s||e[8]!==n||e[9]!==c||e[10]!==d||e[11]!==u||e[12]!==m?(h=b.jsx(bn,{asChild:s,variant:"tab",size:"sm",...n,type:c,"aria-current":d,"aria-pressed":u,"data-slot":"page-tab",className:m}),e[7]=s,e[8]=n,e[9]=c,e[10]=d,e[11]=u,e[12]=m,e[13]=h):h=e[13],h}const xd=Object.assign(Sse,{Header:Ese,Tabs:_se,Tab:Pse,Actions:n3,Content:Tse,Container:Object.assign(kse,{Inset:a3}),Title:Cse,Breadcrumbs:yse});var ge=typeof window<"u"?window:void 0,ca=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(ca.self=ca),typeof File>"u"&&(ca.File=function(){});var Nn=ca?.navigator,ze=ca?.document,xa=ca?.location,$0=ca?.fetch,q0=ca!=null&&ca.XMLHttpRequest&&"withCredentials"in new ca.XMLHttpRequest?ca.XMLHttpRequest:void 0,GO=ca?.AbortController,Ase=ca?.CompressionStream,mn=Nn?.userAgent,ot=ge??{},WO="1.372.3",Za={DEBUG:!1,LIB_VERSION:WO,LIB_NAME:"web",JS_SDK_VERSION:WO};function KO(t,e,o,a,n,r,s){try{var c=t[r](s),d=c.value}catch(u){return void o(u)}c.done?e(d):Promise.resolve(d).then(a,n)}function er(t){return function(){var e=this,o=arguments;return new Promise((function(a,n){var r=t.apply(e,o);function s(d){KO(r,a,n,s,c,"next",d)}function c(d){KO(r,a,n,s,c,"throw",d)}s(void 0)}))}}function Ne(){return Ne=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var o=arguments[e];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},Ne.apply(null,arguments)}function r3(t,e){if(t==null)return{};var o={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;o[a]=t[a]}return o}function V0(){return V0=er((function*(t,e,o){e===void 0&&(e=!0);try{var a=new CompressionStream("gzip"),n=a.writable.getWriter(),r=n.write(new TextEncoder().encode(t)).then((()=>n.close())).catch((function(){var d=er((function*(u){try{yield n.abort(u)}catch{}throw u}));return function(u){return d.apply(this,arguments)}})()),s=new Response(a.readable).blob(),[c]=yield Promise.all([s,r]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return e&&console.error("Failed to gzip compress data",d),null}})),V0.apply(this,arguments)}var Rse=["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"],YO=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var o=t.toLowerCase();return Rse.concat(e).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},Dse=["$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 Et(t,e){return t.indexOf(e)!==-1}var hb=function(t){return t.trim()},H0=function(t){return t.replace(/^\$/,"")},i3=Object.prototype,s3=i3.hasOwnProperty,gb=i3.toString,Bt=Array.isArray||function(t){return gb.call(t)==="[object Array]"},Ai=t=>typeof t=="function",Bo=t=>t===Object(t)&&!Bt(t),gd=t=>{if(Bo(t)){for(var e in t)if(s3.call(t,e))return!1;return!0}return!1},qe=t=>t===void 0,Eo=t=>gb.call(t)=="[object String]",wf=t=>Eo(t)&&t.trim().length===0,ji=t=>t===null,_t=t=>qe(t)||ji(t),ir=t=>gb.call(t)=="[object Number]"&&t==t,sd=t=>ir(t)&&t>0,Kr=t=>gb.call(t)==="[object Boolean]",Ose=t=>t instanceof FormData,Mse=t=>Et(Dse,t);function l3(t){return t===null||typeof t!="object"}function iv(t,e){return{}.toString.call(t)==="[object "+e+"]"}function xC(t){return typeof Event<"u"&&(function(e,o){try{return e instanceof o}catch{return!1}})(t,Event)}var Nse=[!0,"true",1,"1","yes"],qT=t=>Et(Nse,t),Ise=[!1,"false",0,"0","no"];function Yr(t,e,o,a,n){return e>o&&(a.warn("min cannot be greater than max."),e=o),ir(t)?t>o?(a.warn(" cannot be greater than max: "+o+". Using max value instead."),o):e>t?(a.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(a.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+n),Yr(n||o,e,o,a))}let Lse=class{constructor(e){this.$t={},this.zt=e.zt,this.Ut=Yr(e.bucketSize,0,100,e.Gt),this.Wt=Yr(e.refillRate,0,this.Ut,e.Gt),this.Xt=Yr(e.refillInterval,0,864e5,e.Gt)}Jt(e,o){var a=Math.floor((o-e.lastAccess)/this.Xt);a>0&&(e.tokens=Math.min(e.tokens+a*this.Wt,this.Ut),e.lastAccess=e.lastAccess+a*this.Xt)}consumeRateLimit(e){var o,a=Date.now(),n=String(e),r=this.$t[n];return r?this.Jt(r,a):this.$t[n]=r={tokens:this.Ut,lastAccess:a},r.tokens===0||(r.tokens--,r.tokens===0&&((o=this.zt)==null||o.call(this,e)),r.tokens===0)}stop(){this.$t={}}};var Yg,ZO,VT,Ln="Mobile",sv="iOS",Mi="Android",jd="Tablet",c3=Mi+" "+jd,d3="iPad",u3="Apple",p3=u3+" Watch",Cp="Safari",zd="BlackBerry",m3="Samsung",h3=m3+"Browser",g3=m3+" Internet",Fl="Chrome",Bse=Fl+" OS",f3=Fl+" "+sv,kC="Internet Explorer",v3=kC+" "+Ln,CC="Opera",Fse=CC+" Mini",EC="Edge",b3="Microsoft "+EC,kd="Firefox",y3=kd+" "+sv,Wp="Nintendo",Kp="PlayStation",Cd="Xbox",S3=Mi+" "+Ln,T3=Ln+" "+Cp,fp="Windows",G0=fp+" Phone",QO="Nokia",W0="Ouya",w3="Generic",jse=w3+" "+Ln.toLowerCase(),x3=w3+" "+jd.toLowerCase(),K0="Konqueror",Ya="(\\d+(\\.\\d+)?)",HT=new RegExp("Version/"+Ya),zse=new RegExp(Cd,"i"),Use=new RegExp(Kp+" \\w+","i"),$se=new RegExp(Wp+" \\w+","i"),_C=new RegExp(zd+"|PlayBook|BB10","i"),qse={"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"},k3=function(t,e){return e=e||"",Et(t," OPR/")&&Et(t,"Mini")?Fse:Et(t," OPR/")?CC:_C.test(t)?zd:Et(t,"IE"+Ln)||Et(t,"WPDesktop")?v3:Et(t,h3)?g3:Et(t,EC)||Et(t,"Edg/")?b3:Et(t,"FBIOS")?"Facebook "+Ln:Et(t,"UCWEB")||Et(t,"UCBrowser")?"UC Browser":Et(t,"CriOS")?f3:Et(t,"CrMo")||Et(t,Fl)?Fl:Et(t,Mi)&&Et(t,Cp)?S3:Et(t,"FxiOS")?y3:Et(t.toLowerCase(),K0.toLowerCase())?K0:((o,a)=>a&&Et(a,u3)||(function(n){return Et(n,Cp)&&!Et(n,Fl)&&!Et(n,Mi)})(o))(t,e)?Et(t,Ln)?T3:Cp:Et(t,kd)?kd:Et(t,"MSIE")||Et(t,"Trident/")?kC:Et(t,"Gecko")?kd:""},Vse={[v3]:[new RegExp("rv:"+Ya)],[b3]:[new RegExp(EC+"?\\/"+Ya)],[Fl]:[new RegExp("("+Fl+"|CrMo)\\/"+Ya)],[f3]:[new RegExp("CriOS\\/"+Ya)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Ya)],[Cp]:[HT],[T3]:[HT],[CC]:[new RegExp("(Opera|OPR)\\/"+Ya)],[kd]:[new RegExp(kd+"\\/"+Ya)],[y3]:[new RegExp("FxiOS\\/"+Ya)],[K0]:[new RegExp("Konqueror[:/]?"+Ya,"i")],[zd]:[new RegExp(zd+" "+Ya),HT],[S3]:[new RegExp("android\\s"+Ya,"i")],[g3]:[new RegExp(h3+"\\/"+Ya)],[kC]:[new RegExp("(rv:|MSIE )"+Ya)],Mozilla:[new RegExp("rv:"+Ya)]},Hse=function(t,e){var o=k3(t,e),a=Vse[o];if(qe(a))return null;for(var n=0;a.length>n;n++){var r=t.match(a[n]);if(r)return parseFloat(r[r.length-2])}return null},JO=[[new RegExp(Cd+"; "+Cd+" (.*?)[);]","i"),t=>[Cd,t&&t[1]||""]],[new RegExp(Wp,"i"),[Wp,""]],[new RegExp(Kp,"i"),[Kp,""]],[_C,[zd,""]],[new RegExp(fp,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[G0,""];if(new RegExp(Ln).test(e)&&!/IEMobile\b/.test(e))return[fp+" "+Ln,""];var o=/Windows NT ([0-9.]+)/i.exec(e);if(o&&o[1]){var a=qse[o[1]]||"";return/arm/i.test(e)&&(a="RT"),[fp,a]}return[fp,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[sv,[t[3],t[4],t[5]||"0"].join(".")]:[sv,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=qe(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Mi+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Mi+")","i"),t=>t&&t[2]?[Mi,[t[2],t[3],t[4]||"0"].join(".")]:[Mi,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Bse,""]],[/Linux|debian/i,["Linux",""]]],XO=function(t){return $se.test(t)?Wp:Use.test(t)?Kp:zse.test(t)?Cd:new RegExp(W0,"i").test(t)?W0:new RegExp("("+G0+"|WPDesktop)","i").test(t)?G0:/iPad/.test(t)?d3:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?p3:_C.test(t)?zd:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(QO,"i").test(t)?QO:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Ln).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Mi:c3:new RegExp("(pda|"+Ln+")","i").test(t)?jse:new RegExp(jd,"i").test(t)&&!new RegExp(jd+" pc","i").test(t)?x3:""},Gse=t=>t instanceof Error,C3={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}},Wse=C3.info;function E3(t){if(Kr(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(Bt(t))return{arrayValue:{values:t.map((e=>E3(e)))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function e2(t){var e=[];for(var o in t){var a=t[o];ji(a)||qe(a)||e.push({key:o,value:E3(a)})}return e}function Kse(t){var e=globalThis._posthogChunkIds;if(e){var o=Object.keys(e);return VT&&o.length===ZO||(ZO=o.length,VT=o.reduce(((a,n)=>{Yg||(Yg={});var r=Yg[n];if(r)a[r[0]]=r[1];else for(var s=t(n),c=s.length-1;c>=0;c--){var d=s[c],u=d?.filename,m=e[n];if(u&&m){a[u]=m,Yg[n]=[u,m];break}}return a}),{})),VT}}class Yse{constructor(e,o,a){a===void 0&&(a=[]),this.coercers=e,this.stackParser=o,this.modifiers=a}buildFromUnknown(e,o){o===void 0&&(o={});var a=o&&o.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(a,o,0).apply(e),r=this.buildParsingContext(o),s=this.parseStacktrace(n,r);return{$exception_list:this.convertToExceptionList(s,a),$exception_level:"error"}}modifyFrames(e){var o=this;return er((function*(){for(var a of e)a.stacktrace&&a.stacktrace.frames&&Bt(a.stacktrace.frames)&&(a.stacktrace.frames=yield o.applyModifiers(a.stacktrace.frames));return e}))()}coerceFallback(e){var o;return{type:"Error",value:"Unknown error",stack:(o=e.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(e,o){var a,n;return e.cause!=null&&(a=this.parseStacktrace(e.cause,o)),e.stack!=""&&e.stack!=null&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Ne({},e,{cause:a,stack:n})}applyChunkIds(e,o){return e.map((a=>(a.filename&&o&&(a.chunk_id=o[a.filename]),a)))}applyCoercers(e,o){for(var a of this.coercers)if(a.match(e))return a.coerce(e,o);return this.coerceFallback(o)}applyModifiers(e){var o=this;return er((function*(){var a=e;for(var n of o.modifiers)a=yield n(a);return a}))()}convertToExceptionList(e,o){var a,n,r,s={type:e.type,value:e.value,mechanism:{type:(a=o.type)!==null&&a!==void 0?a:"generic",handled:(n=o.handled)===null||n===void 0||n,synthetic:(r=e.synthetic)!==null&&r!==void 0&&r}};e.stack&&(s.stacktrace={type:"raw",frames:e.stack});var c=[s];return e.cause!=null&&c.push(...this.convertToExceptionList(e.cause,Ne({},o,{handled:!0}))),c}buildParsingContext(e){var o;return{chunkIdMap:Kse(this.stackParser),skipFirstLines:(o=e.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(e,o,a){a===void 0&&(a=0);var n=(r,s)=>{if(4>=s){var c=this.buildCoercingContext(e,o,s);return this.applyCoercers(r,c)}};return Ne({},o,{syntheticException:a==0?o.syntheticException:void 0,mechanism:e,apply:r=>n(r,a),next:r=>n(r,a+1)})}}var Ud="?";function Y0(t,e,o,a,n){var r={platform:t,filename:e,function:o==="<anonymous>"?Ud:o,in_app:!0};return qe(a)||(r.lineno=a),qe(n)||(r.colno=n),r}var _3=(t,e)=>{var o=t.indexOf("safari-extension")!==-1,a=t.indexOf("safari-web-extension")!==-1;return o||a?[t.indexOf("@")!==-1?t.split("@")[0]:Ud,o?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},Zse=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Qse=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Jse=/\((\S*)(?::(\d+))(?::(\d+))\)/,Xse=(t,e)=>{var o=Zse.exec(t);if(o){var[,a,n,r]=o;return Y0(e,a,Ud,+n,+r)}var s=Qse.exec(t);if(s){if(s[2]&&s[2].indexOf("eval")===0){var c=Jse.exec(s[2]);c&&(s[2]=c[1],s[3]=c[2],s[4]=c[3])}var[d,u]=_3(s[1]||Ud,s[2]);return Y0(e,u,d,s[3]?+s[3]:void 0,s[4]?+s[4]:void 0)}},ele=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tle=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ole=(t,e)=>{var o=ele.exec(t);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=tle.exec(o[3]);a&&(o[1]=o[1]||"eval",o[3]=a[1],o[4]=a[2],o[5]="")}var n=o[3],r=o[1]||Ud;return[r,n]=_3(r,n),Y0(e,n,r,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},t2=/\(error: (.*)\)/;let ale=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,o){var a=Eo(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:a?e.stack:void 0,cause:e.cause?o.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var o=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?o+": "+e.message:o}isDOMException(e){return iv(e,"DOMException")}isDOMError(e){return iv(e,"DOMError")}};class nle{match(e){return(o=>o instanceof Error)(e)}coerce(e,o){return{type:this.getType(e),value:this.getMessage(e,o),stack:this.getStack(e),cause:e.cause?o.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,o){var a=e.message;return String(a.error&&typeof a.error.message=="string"?a.error.message:a)}getStack(e){return e.stacktrace||e.stack||void 0}}let rle=class{constructor(){}match(e){return iv(e,"ErrorEvent")&&e.error!=null}coerce(e,o){var a;return o.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}};var ile=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let sle=class{match(e){return typeof e=="string"}coerce(e,o){var a,[n,r]=this.getInfos(e);return{type:n??"Error",value:r??e,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}getInfos(e){var o="Error",a=e,n=e.match(ile);return n&&(o=n[1],a=n[2]),[o,a]}};var lle=["fatal","error","warning","log","info","debug"];function P3(t,e){e===void 0&&(e=40);var o=Object.keys(t);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(e>=n.length)return a===o.length?n:n.length>e?n.slice(0,e)+"...":n}return""}let cle=class{match(e){return typeof e=="object"&&e!==null}coerce(e,o){var a,n=this.getErrorPropertyFromObject(e);return n?o.apply(n):{type:this.getType(e),value:this.getValue(e),stack:(a=o.syntheticException)==null?void 0:a.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return xC(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var o="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(o+=" with message: '"+e.message+"'"),o}if("message"in e&&typeof e.message=="string")return e.message;var a=this.getObjectClassName(e);return(a&&a!=="Object"?"'"+a+"'":"Object")+" captured as exception with keys: "+P3(e)}isSeverityLevel(e){return Eo(e)&&!wf(e)&&lle.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var o in e)if({}.hasOwnProperty.call(e,o)){var a=e[o];if(Gse(a))return a}}getObjectClassName(e){try{var o=Object.getPrototypeOf(e);return o?o.constructor.name:void 0}catch{return}}},dle=class{match(e){return xC(e)}coerce(e,o){var a,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+P3(e),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},ule=class{match(e){return l3(e)}coerce(e,o){var a;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},ple=class{match(e){return iv(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!xC(e))return!1;try{var o=e.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(e,o){var a,n=this.getUnhandledRejectionReason(e);return l3(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(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}};var lv="$message",cv="$timestamp",mle=new Set([lv,cv]),GT={enabled:!0,max_bytes:32768};function dv(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:GT.enabled,max_bytes:gle(t.max_bytes,GT.max_bytes)}:Ne({},GT)}let hle=class{constructor(e){this.Kt=[],this.Qt=0,this.Bt=dv(e)}setConfig(e){this.Bt=dv(e),this.er()}add(e){var o=(function(n){var r=(function(m){var h=new WeakSet;try{return JSON.stringify(m,((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(h.has(v))return"[Circular]";h.add(v)}return v}}))}catch{return}})(n);if(r)try{var s=JSON.parse(r);if(!Bo(s))return;var c=s,d=c[lv],u=c[cv];return!Eo(d)||d.trim().length===0||!Eo(u)&&!ir(u)?void 0:{step:c,json:r}}catch{return}})(e);if(o){var a=(function(n){if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length;for(var r=encodeURIComponent(n),s=0,c=0;r.length>c;c++)r[c]==="%"?(s+=1,c+=2):s+=1;return s})(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((e=>e.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 e=this.Kt.shift();e&&(this.Qt-=e.bytes)}}};function gle(t,e){if(!ir(t)||t===1/0||t===-1/0)return e;var o=Math.floor(t);return 0>o?e:o}var A3=function(t,e){var{debugEnabled:o}=e===void 0?{}:e,a={C(n){if(ge&&(Za.DEBUG||ot.POSTHOG_DEBUG||o)&&!qe(ge.console)&&ge.console){for(var r=("__rrweb_original__"in ge.console[n])?ge.console[n].__rrweb_original__:ge.console[n],s=arguments.length,c=new Array(s>1?s-1:0),d=1;s>d;d++)c[d-1]=arguments[d];r(t,...c)}},info(){for(var n=arguments.length,r=new Array(n),s=0;n>s;s++)r[s]=arguments[s];a.C("log",...r)},warn(){for(var n=arguments.length,r=new Array(n),s=0;n>s;s++)r[s]=arguments[s];a.C("warn",...r)},error(){for(var n=arguments.length,r=new Array(n),s=0;n>s;s++)r[s]=arguments[s];a.C("error",...r)},critical(){for(var n=arguments.length,r=new Array(n),s=0;n>s;s++)r[s]=arguments[s];console.error(t,...r)},uninitializedWarning(n){a.error("You must initialize PostHog before calling "+n)},createLogger:(n,r)=>A3(t+" "+n,r)};return a},$e=A3("[PostHog.js]"),wo=$e.createLogger,fle=wo("[ExternalScriptsLoader]"),WT=(t,e,o)=>{if(t.config.disable_external_dependency_loading)return fle.warn(e+" 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,r=function(){if(a[s].src===e){var d=a[s];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(u=>{d.__posthog_loading_callback_fired=!0,o(void 0,u)})),d.onerror=u=>o(u),{v:void 0})}},s=0;a.length>s;s++)if(n=r())return n.v}var c=()=>{if(!ze)return o("document not found");var d=ze.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=e,d.onload=h=>{d.__posthog_loading_callback_fired=!0,o(void 0,h)},d.onerror=h=>o(h),t.config.prepare_external_dependency_script&&(d=t.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")ze.head.appendChild(d);else{var u,m=ze.querySelectorAll("body > script");m.length>0?(u=m[0].parentNode)==null||u.insertBefore(d,m[0]):ze.body.appendChild(d)}};ze!=null&&ze.body?c():ze?.addEventListener("DOMContentLoaded",c)};ot.__PosthogExtensions__=ot.__PosthogExtensions__||{},ot.__PosthogExtensions__.loadExternalDependency=(t,e,o)=>{if(e!=="remote-config"){var a;if(t.config.__preview_external_dependency_versioned_paths)a=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js");else{var n="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var r=3e5;n=n+"&t="+Math.floor(Date.now()/r)*r}a=t.requestRouter.endpointFor("assets",n)}WT(t,a,o)}else{var s=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");WT(t,s,o)}},ot.__PosthogExtensions__.loadSiteApp=(t,e,o)=>{var a=t.requestRouter.endpointFor("api",e);WT(t,a,o)};var R3="$people_distinct_id",uv="$device_id",vp="__alias",bp="__timers",Z0="$autocapture_disabled_server_side",Q0="$heatmaps_enabled_server_side",J0="$exception_capture_enabled_server_side",X0="$error_tracking_suppression_rules",ex="$error_tracking_capture_extension_exceptions",tx="$web_vitals_enabled_server_side",PC="$dead_clicks_enabled_server_side",ox="$product_tours_enabled_server_side",ax="$web_vitals_allowed_metrics",yp="$session_recording_remote_config",D3="$replay_override_sampling",O3="$replay_override_linked_flag",M3="$replay_override_url_trigger",N3="$replay_override_event_trigger",pv="$sesid",AC="$session_is_sampled",fd="$enabled_feature_flags",xf="$active_feature_flags",Sp="$early_access_features",nx="$feature_flag_details",rx="$feature_flag_payloads",ix="$feature_flag_request_id",Pi="$override_feature_flags",ld="$override_feature_flag_payloads",Tp="$stored_person_properties",Pl="$stored_group_properties",sx="$surveys",lx="$surveys_activated",kf="ph_product_tours",Ep="$flag_call_reported",cx="$flag_call_reported_session_id",dx="$feature_flag_errors",mv="$feature_flag_evaluated_at",br="$user_state",ux="$client_session_props",px="$capture_rate_limit",mx="$initial_campaign_params",hx="$initial_referrer_info",hv="$initial_person_info",gv="$epp",I3="__POSTHOG_TOOLBAR__",Zg="$posthog_cookieless",L3="$sdk_debug_extensions_init_method",B3="$sdk_debug_extensions_init_time_ms",F3="$sdk_debug_recording_script_not_loaded",RC="PostHog loadExternalDependency extension not found.",Al="on_reject",Ri="always",Zc="anonymous",Qc="identified",gx="identified_only",fv="visibilitychange",vv="beforeunload",cd="$pageview",KT="$pageleave",YT="$identify",o2="$groupidentify";function Qg(t,e){Bt(t)&&t.forEach(e)}function vo(t,e){if(!_t(t))if(Bt(t))t.forEach(e);else if(Ose(t))t.forEach(((a,n)=>e(a,n)));else for(var o in t)s3.call(t,o)&&e(t[o],o)}var Mo=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),a=1;e>a;a++)o[a-1]=arguments[a];for(var n of o)for(var r in n)n[r]!==void 0&&(t[r]=n[r]);return t};function Cf(t){for(var e=Object.keys(t),o=e.length,a=new Array(o);o--;)a[o]=[e[o],t[e[o]]];return a}var a2=function(t){try{return t()}catch{return}},vle=function(t){return function(){try{for(var e=arguments.length,o=new Array(e),a=0;e>a;a++)o[a]=arguments[a];return t.apply(this,o)}catch(n){$e.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),$e.critical(n)}}},DC=function(t){var e={};return vo(t,(function(o,a){(Eo(o)&&o.length>0||ir(o))&&(e[a]=o)})),e},ble=["herokuapp.com","vercel.app","netlify.app"];function yle(t){var e=t?.hostname;if(!Eo(e))return!1;var o=e.split(".").slice(-2).join(".");for(var a of ble)if(o===a)return!1;return!0}function Qo(t,e,o,a){var{capture:n=!1,passive:r=!0}=a??{};t?.addEventListener(e,o,{capture:n,passive:r})}function j3(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return ir(t)&&isFinite(t)&&Math.floor(t)===t});class bv{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,o,a,n){if(!Number.isInteger(e)||!Number.isInteger(o)||!Number.isInteger(a)||!Number.isInteger(n)||0>e||0>o||0>a||0>n||e>0xffffffffffff||o>4095||a>1073741823||n>4294967295)throw new RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=e/Math.pow(2,40),r[1]=e/Math.pow(2,32),r[2]=e/Math.pow(2,24),r[3]=e/Math.pow(2,16),r[4]=e/Math.pow(2,8),r[5]=e,r[6]=112|o>>>8,r[7]=o,r[8]=128|a>>>24,r[9]=a>>>16,r[10]=a>>>8,r[11]=a,r[12]=n>>>24,r[13]=n>>>16,r[14]=n>>>8,r[15]=n,new bv(r)}toString(){for(var e="",o=0;this.bytes.length>o;o++)e=e+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new bv(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var o=0;16>o;o++){var a=this.bytes[o]-e.bytes[o];if(a!==0)return Math.sign(a)}return 0}}class Sle{constructor(){this.I=0,this.S=0,this.k=new Tle}generate(){var e=this.generateOrAbort();if(qe(e)){this.I=0;var o=this.generateOrAbort();if(qe(o))throw new Error("Could not generate UUID after timestamp reset");return o}return e}generateOrAbort(){var e=Date.now();if(e>this.I)this.I=e,this.A();else{if(this.I>=e+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return bv.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 n2,z3=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};ge&&!qe(ge.crypto)&&crypto.getRandomValues&&(z3=t=>crypto.getRandomValues(t));class Tle{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(z3(this.T),this.N=0),this.T[this.N++]}}var As=()=>wle().toString(),wle=()=>(n2||(n2=new Sle)).generate(),Xu="",xle=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Wr={R:()=>!!ze,B(t){$e.error("cookieStore error: "+t)},O(t){if(ze){try{for(var e=t+"=",o=ze.cookie.split(";").filter((r=>r.length)),a=0;o.length>a;a++){for(var n=o[a];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null}},Z(t){var e;try{e=JSON.parse(Wr.O(t))||{}}catch{}return e},M(t,e,o,a,n){if(ze)try{var r="",s="",c=(function(m,h){if(h){var f=(function(y,S){if(S===void 0&&(S=ze),Xu)return Xu;if(!S||["localhost","127.0.0.1"].includes(y))return"";for(var x=y.split("."),w=Math.min(x.length,8),k="dmn_chk_"+As();!Xu&&w--;){var _=x.slice(w).join("."),C=k+"=1;domain=."+_+";path=/";S.cookie=C+";max-age=3",S.cookie.includes(k)&&(S.cookie=C+";max-age=0",Xu=_)}return Xu})(m);if(!f){var v=(y=>{var S=y.match(xle);return S?S[0]:""})(m);v!==f&&$e.info("Warning: cookie subdomain discovery mismatch",v,f),f=v}return f?"; domain=."+f:""}return""})(ze.location.hostname,a);if(o){var d=new Date;d.setTime(d.getTime()+864e5*o),r="; expires="+d.toUTCString()}n&&(s="; secure");var u=t+"="+encodeURIComponent(JSON.stringify(e))+r+"; SameSite=Lax; path=/"+c+s;return u.length>3686.4&&$e.warn("cookieStore warning: large cookie, len="+u.length),ze.cookie=u,u}catch{return}},F(t,e){if(ze!=null&&ze.cookie)try{Wr.M(t,"",-1,e)}catch{return}}},ZT=null,Co={R(){if(!ji(ZT))return ZT;var t=!0;if(qe(ge))t=!1;else try{var e="__mplssupport__";Co.M(e,"xyz"),Co.O(e)!=='"xyz"'&&(t=!1),Co.F(e)}catch{t=!1}return t||$e.error("localStorage unsupported; falling back to cookie store"),ZT=t,t},B(t){$e.error("localStorage error: "+t)},O(t){try{return ge?.localStorage.getItem(t)}catch(e){Co.B(e)}return null},Z(t){try{return JSON.parse(Co.O(t))||{}}catch{}return null},M(t,e){try{ge?.localStorage.setItem(t,JSON.stringify(e))}catch(o){Co.B(o)}},F(t){try{ge?.localStorage.removeItem(t)}catch(e){Co.B(e)}}},kle=[uv,"distinct_id",pv,AC,gv,hv,br],Jg={},Cle={R:()=>!0,B(t){$e.error("memoryStorage error: "+t)},O:t=>Jg[t]||null,Z:t=>Jg[t]||null,M(t,e){Jg[t]=e},F(t){delete Jg[t]}},xl=null,ka={R(){if(!ji(xl))return xl;if(xl=!0,qe(ge))xl=!1;else try{var t="__support__";ka.M(t,"xyz"),ka.O(t)!=='"xyz"'&&(xl=!1),ka.F(t)}catch{xl=!1}return xl},B(t){$e.error("sessionStorage error: ",t)},O(t){try{return ge?.sessionStorage.getItem(t)}catch(e){ka.B(e)}return null},Z(t){try{return JSON.parse(ka.O(t))||null}catch{}return null},M(t,e){try{ge?.sessionStorage.setItem(t,JSON.stringify(e))}catch(o){ka.B(o)}},F(t){try{ge?.sessionStorage.removeItem(t)}catch(e){ka.B(e)}}};class Ele{constructor(e){this._instance=e}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===Ri||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===Al}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(e){this.nr.M(this.sr,e?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:e,opt_out_capturing_cookie_prefix:o,consent_persistence_name:a}=this._instance.config;return a||(o?o+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.O(this.sr);return qT(e)?1:Et(Ise,e)?0:-1}get nr(){var e=this.Bt.opt_out_capturing_persistence_type,o=e==="localStorage"?Co:Wr;if(!this.ar||this.ar!==o){this.ar=o;var a=e==="localStorage"?Wr:Co;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(qT(a.O(this.sr))),a.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[Nn?.doNotTrack,Nn?.msDoNotTrack,ot.doNotTrack].some((e=>qT(e)))}}var Xg=wo("[Dead Clicks]"),_le=()=>!0,Ple=t=>{var e,o=!((e=t.instance.persistence)==null||!e.get_property(PC)),a=t.instance.config.capture_dead_clicks;return Kr(a)?a:!!Bo(a)||o};class r2{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(e,o,a){this.instance=e,this.isEnabled=o,this.onCapture=a,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[PC]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(e){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&e(),(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?Xg.error("failed to load script",n):e()}))}hr(){var e;if(ze){if(!this.lr&&(e=ot.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var o=Bo(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=ot.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(ze),Xg.info("starting...")}}else Xg.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Xg.info("stopping..."))}}var QT=wo("[SegmentIntegration]"),U3="posthog-js";function $3(t,e){var{organization:o,projectId:a,prefix:n,severityAllowList:r=["error"],sendExceptionsToPostHog:s=!0}=e===void 0?{}:e;return c=>{var d,u,m,h,f;if(r!=="*"&&!r.includes(c.level)||!t.__loaded)return c;c.tags||(c.tags={});var v=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());c.tags["PostHog Person URL"]=v,t.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var y,S=((d=c.exception)==null?void 0:d.values)||[],x=S.map((k=>Ne({},k,{stacktrace:k.stacktrace?Ne({},k.stacktrace,{type:"raw",frames:(k.stacktrace.frames||[]).map((_=>Ne({},_,{platform:"web:javascript"})))}):void 0}))),w={$exception_message:((u=S[0])==null?void 0:u.value)||c.message,$exception_type:(m=S[0])==null?void 0:m.type,$exception_level:c.level,$exception_list:x,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((h=S[0])==null?void 0:h.value)||c.message,$sentry_exception_type:(f=S[0])==null?void 0:f.type,$sentry_tags:c.tags};return o&&a&&(w.$sentry_url=(n||"https://sentry.io/organizations/")+o+"/issues/?project="+a+"&query="+c.event_id),s&&((y=t.exceptions)==null||y.sendExceptionEvent(w)),c}}class Ale{constructor(e,o,a,n,r,s){this.name=U3,this.setupOnce=function(c){c($3(e,{organization:o,projectId:a,prefix:n,severityAllowList:r,sendExceptionsToPostHog:s==null||s}))}}}class i2{constructor(e){this.cr=(o,a,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&($e.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.vr()}vr(){var e;this.pr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,o){var a,n=this.gr(e,o);return this.dr={pathname:(a=ge?.location.pathname)!==null&&a!==void 0?a:"",pageViewId:o,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var o;return this.gr(e,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.dr)==null?void 0:e.pageViewId}}gr(e,o){var a=this.dr;if(!a)return{$pageview_id:o};var n={$pageview_id:o,$prev_pageview_id:a.pageViewId},r=this._instance.scrollManager.getContext();if(r&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:s,lastScrollY:c,maxScrollY:d,maxContentHeight:u,lastContentY:m,maxContentY:h}=r;if(!(qe(s)||qe(c)||qe(d)||qe(u)||qe(m)||qe(h))){s=Math.ceil(s),c=Math.ceil(c),d=Math.ceil(d),u=Math.ceil(u),m=Math.ceil(m),h=Math.ceil(h);var f=s>1?Yr(c/s,0,1,$e):1,v=s>1?Yr(d/s,0,1,$e):1,y=u>1?Yr(m/u,0,1,$e):1,S=u>1?Yr(h/u,0,1,$e):1;n=Mo(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:S})}}return a.pathname&&(n.$prev_pageview_pathname=a.pathname),a.timestamp&&(n.$prev_pageview_duration=(e.getTime()-a.timestamp.getTime())/1e3),n}}var Rle={[R3]:{exposure:"hidden"},[vp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[bp]:{exposure:"hidden"},[Z0]:{exposure:"event"},[Q0]:{exposure:"hidden"},[J0]:{exposure:"event"},[X0]:{exposure:"hidden"},[ex]:{exposure:"event"},[tx]:{exposure:"event"},[PC]:{exposure:"event"},[ox]:{exposure:"hidden"},[ax]:{exposure:"event"},[yp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[pv]:{exposure:"hidden"},[AC]:{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"},[fd]:{exposure:"derived",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!Bo(t))return{};for(var e={},o=Object.keys(t),a=0;o.length>a;a++)e["$feature/"+o[a]]=t[o[a]];return e}},[xf]:{exposure:"event"},[Sp]:{exposure:"hidden"},[nx]:{exposure:"hidden"},[rx]:{exposure:"event"},[ix]:{exposure:"event"},[Pi]:{exposure:"event"},[ld]:{exposure:"hidden"},[Tp]:{exposure:"hidden"},[Pl]:{exposure:"hidden"},[sx]:{exposure:"hidden"},[lx]:{exposure:"event"},[kf]:{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"},[Ep]:{exposure:"hidden"},[cx]:{exposure:"hidden"},[dx]:{exposure:"hidden"},[mv]:{exposure:"hidden"},[br]:{exposure:"hidden"},[ux]:{exposure:"hidden"},[px]:{exposure:"hidden"},[mx]:{exposure:"hidden"},[hx]:{exposure:"hidden"},[hv]:{exposure:"hidden"},[gv]:{exposure:"hidden"},[D3]:{exposure:"event"},[O3]:{exposure:"event"},[M3]:{exposure:"event"},[N3]:{exposure:"event"},[L3]:{exposure:"event"},[B3]:{exposure:"event"},[F3]:{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"}},Dle=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],yv=t=>{var e=ze?.createElement("a");return qe(e)?null:(e.href=t,e)},Sv=function(t,e){for(var o,a=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;a.length>n;n++){var r=a[n].split("=");if(r[0]===e){o=r;break}}if(!Bt(o)||2>o.length)return"";var s=o[1];try{s=decodeURIComponent(s)}catch{$e.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},Yp=function(t,e,o){if(!t||!e||!e.length)return t;for(var a=t.split("#"),n=a[1],r=(a[0]||"").split("?"),s=r[1],c=r[0],d=(s||"").split("&"),u=[],m=0;d.length>m;m++){var h=d[m].split("=");Bt(h)&&(e.includes(h[0])?u.push(h[0]+"="+o):u.push(d[m]))}var f=c;return s!=null&&(f+="?"+u.join("&")),n!=null&&(f+="#"+n),f},Tv=function(t,e){var o=t.match(new RegExp(e+"=([^&]*)"));return o?o[1]:null},ef="https?://(.*)",$d=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Ole=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...$d],Zp="<masked>",Mle=["li_fat_id"];function q3(t,e,o){if(!ze)return{};var a,n=e?[...$d,...o||[]]:[],r=V3(Yp(ze.URL,n,Zp),t),s=(a={},vo(Mle,(function(c){var d=Wr.O(c);a[c]=d||null})),a);return Mo(s,r)}function V3(t,e){var o=Ole.concat(e||[]),a={};return vo(o,(function(n){var r=Sv(t,n);a[n]=r||null})),a}function H3(t){var e=(function(r){return r?r.search(ef+"google.([^/?]*)")===0?"google":r.search(ef+"bing.com")===0?"bing":r.search(ef+"yahoo.com")===0?"yahoo":r.search(ef+"duckduckgo.com")===0?"duckduckgo":null:null})(t),o=e!="yahoo"?"q":"p",a={};if(!ji(e)){a.$search_engine=e;var n=ze?Sv(ze.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function s2(){return navigator.language||navigator.userLanguage}var wv="$direct";function G3(){return ze?.referrer||wv}function W3(t,e){var o=t?[...$d,...e||[]]:[],a=xa?.href.substring(0,1e3);return{r:G3().substring(0,1e3),u:a?Yp(a,o,Zp):void 0}}function K3(t){var e,{r:o,u:a}=t,n={$referrer:o,$referring_domain:o==null?void 0:o==wv?wv:(e=yv(o))==null?void 0:e.host};if(a){n.$current_url=a;var r=yv(a);n.$host=r?.host,n.$pathname=r?.pathname;var s=V3(a);Mo(n,s)}if(o){var c=H3(o);Mo(n,c)}return n}function Y3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function Nle(){try{return new Date().getTimezoneOffset()}catch{return}}var Ile=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class JT{constructor(e,o){this.Bt=e,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"})(e),this.nr=this.br(e),this.load(),e.debug&&$e.info("Persistence loaded",e.persistence,Ne({},this.props)),this.update_config(e,e,o),this.save()}isDisabled(){return!!this._r}br(e){Ile.indexOf(e.persistence.toLowerCase())===-1&&($e.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var o=(function(n){n===void 0&&(n=[]);var r=[...kle,...n];return Ne({},Co,{Z(s){try{var c={};try{c=Wr.Z(s)||{}}catch{}var d=Mo(c,JSON.parse(Co.O(s)||"{}"));return Co.M(s,d),d}catch{}return null},M(s,c,d,u,m,h){try{Co.M(s,c,void 0,void 0,h);var f={};r.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Wr.M(s,f,d,u,m,h)}catch(v){Co.B(v)}},F(s,c){try{ge?.localStorage.removeItem(s),Wr.F(s,c)}catch(d){Co.B(d)}}})})(e.cookie_persisted_properties||[]),a=e.persistence.toLowerCase();return a==="localstorage"&&Co.R()?Co:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&ka.R()?ka:a==="memory"?Cle:a==="cookie"?Wr:o.R()?o:Wr}wr(e){var o=e??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[mv];return!a||typeof a!="number"||Date.now()-a>o}properties(){var e={};return vo(this.props,((o,a)=>{var n=(r=>{var s=Rle[r];if(s)return s;for(var[c,d]of Dle)if(r.indexOf(c)===0)return d})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===fd?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Mo(e,n.transformToEventProperties(o))}else n&&n.exposure!=="event"||(e[a]=o)})),e}load(){if(!this._r){var e=this.nr.Z(this.yr);e&&(this.props=Mo({},e))}}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(e,o,a){if(Bo(e)){qe(o)&&(o="None"),this.Ir=qe(a)?this.kr:a;var n=!1;if(vo(e,((r,s)=>{this.props.hasOwnProperty(s)&&this.props[s]!==o||(this.Tr(s,r),n=!0)})),n)return this.save(),!0}return!1}register(e,o){if(Bo(e)){this.Ir=qe(o)?this.kr:o;var a=!1;if(vo(e,((n,r)=>{e.hasOwnProperty(r)&&this.props[r]!==n&&(this.Tr(r,n),a=!0)})),a)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Ar(e),this.save())}update_campaign_params(){if(!this.mr){var e=q3(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);gd(DC(e))||this.register(e),this.mr=!0}}update_search_keyword(){var e;this.register((e=ze?.referrer)?H3(e):{})}update_referrer_info(){var e;this.register_once({$referrer:G3(),$referring_domain:ze!=null&&ze.referrer&&((e=yv(ze.referrer))==null?void 0:e.host)||wv},void 0)}set_initial_person_info(){this.props[mx]||this.props[hx]||this.register_once({[hv]:W3(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};vo([hx,mx],(s=>{var c=this.props[s];c&&vo(c,(function(d,u){e["$initial_"+H0(u)]=d}))}));var o,a,n=this.props[hv];if(n){var r=(o=K3(n),a={},vo(o,(function(s,c){a["$initial_"+H0(c)]=s})),a);Mo(e,r)}return e}safe_merge(e){return vo(this.props,(function(o,a){a in e||(e[a]=o)})),e}update_config(e,o,a){if(this.kr=this.Ir=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!a),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==o.persistence||!((s,c)=>{if(s.length!==c.length)return!1;var d=[...s].sort(),u=[...c].sort();return d.every(((m,h)=>m===u[h]))})(e.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var n=this.br(e),r=this.props;this.clear(),this.nr=n,this.props=r,this.save()}}set_disabled(e){this._r=e,this._r?this.remove():this.save()}set_cross_subdomain(e){e!==this.Cr&&(this.Cr=e,this.remove(),this.save())}set_secure(e){e!==this.Sr&&(this.Sr=e,this.remove(),this.save())}set_event_timer(e,o){var a=this.props[bp]||{};a[e]=o,this.Tr(bp,a),this.save()}remove_event_timer(e){var o=this.props[bp]||{},a=o[e];return qe(a)||(delete o[e],this.Tr(bp,o),this.save()),a}get_property(e){return this.props[e]}set_property(e,o){this.Tr(e,o),this.save()}Tr(e,o){this.props[e]=o}Ar(e){delete this.props[e]}}var ep={Activation:"events",Cancellation:"cancelEvents"},XT={Popover:"popover",API:"api",Widget:"widget"},wp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ew={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},fx={Popover:"popover",Inline:"inline"},Lle={SHOWN:"product tour shown"},l2={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},c2=wo("[RateLimiter]");class Ble{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var a=o.text;if(a&&a.length)try{(JSON.parse(a).quota_limited||[]).forEach((n=>{c2.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void c2.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:a})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var o,a,n;e===void 0&&(e=!1);var{captureEventsBurstLimit:r,captureEventsPerSecond:s}=this,c=new Date().getTime(),d=(o=(a=this.instance.persistence)==null?void 0:a.get_property(px))!==null&&o!==void 0?o:{tokens:r,last:c};d.tokens+=(c-d.last)/1e3*s,d.last=c,d.tokens>r&&(d.tokens=r);var u=1>d.tokens;return u||e||(d.tokens=Math.max(0,d.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+s+" events per second and "+r+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(n=this.instance.persistence)==null||n.set_property(px,d),{isRateLimited:u,remainingTokens:d.tokens}}isServerRateLimited(e){var o=this.serverLimits[e||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var tp=wo("[RemoteConfig]");class Z3{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=ot._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Er(e){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.loadExternalDependency?(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Rr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){e(o.json)}})}load(){try{if(this.remoteConfig)return tp.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void tp.warn("Remote config is disabled. Falling back to local config.");this.Er((e=>{if(!e)return tp.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(e),this.Mr()}))}catch(e){tp.error("Error loading remote config",e)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||ze?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var e;if(!this.Or){var o=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(e){var o;e||tp.error("Failed to fetch remote config from PostHog."),this._instance.Nr(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var $r={GZipJS:"gzip-js",Base64:"base64"},rr=Uint8Array,fn=Uint16Array,qd=Uint32Array,OC=new rr([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]),MC=new rr([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]),d2=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Q3=function(t,e){for(var o=new fn(31),a=0;31>a;++a)o[a]=e+=1<<t[a-1];var n=new qd(o[30]);for(a=1;30>a;++a)for(var r=o[a];o[a+1]>r;++r)n[r]=r-o[a]<<5|a;return[o,n]},J3=Q3(OC,2),vx=J3[1];J3[0][28]=258,vx[258]=28;for(var u2=Q3(MC,0)[1],X3=new fn(32768),bo=0;32768>bo;++bo){var Jc=(43690&bo)>>>1|(21845&bo)<<1;X3[bo]=((65280&(Jc=(61680&(Jc=(52428&Jc)>>>2|(13107&Jc)<<2))>>>4|(3855&Jc)<<4))>>>8|(255&Jc)<<8)>>>1}var _p=function(t,e,o){for(var a=t.length,n=0,r=new fn(e);a>n;++n)++r[t[n]-1];var s,c=new fn(e);for(n=0;e>n;++n)c[n]=c[n-1]+r[n-1]<<1;for(s=new fn(a),n=0;a>n;++n)s[n]=X3[c[t[n]-1]++]>>>15-t[n];return s},$l=new rr(288);for(bo=0;144>bo;++bo)$l[bo]=8;for(bo=144;256>bo;++bo)$l[bo]=9;for(bo=256;280>bo;++bo)$l[bo]=7;for(bo=280;288>bo;++bo)$l[bo]=8;var xv=new rr(32);for(bo=0;32>bo;++bo)xv[bo]=5;var Fle=_p($l,9),jle=_p(xv,5),e4=function(t){return(t/8>>0)+(7&t&&1)},t4=function(t,e,o){(o==null||o>t.length)&&(o=t.length);var a=new(t instanceof fn?fn:t instanceof qd?qd:rr)(o-e);return a.set(t.subarray(e,o)),a},Ei=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8},op=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8,t[a+2]|=o>>>16},tw=function(t,e){for(var o=[],a=0;t.length>a;++a)t[a]&&o.push({s:a,f:t[a]});var n=o.length,r=o.slice();if(!n)return[new rr(0),0];if(n==1){var s=new rr(o[0].s+1);return s[o[0].s]=1,[s,1]}o.sort((function(P,D){return P.f-D.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],u=0,m=1,h=2;for(o[0]={s:-1,f:c.f+d.f,l:c,r:d};m!=n-1;)c=o[o[h].f>o[u].f?u++:h++],d=o[u!=m&&o[h].f>o[u].f?u++:h++],o[m++]={s:-1,f:c.f+d.f,l:c,r:d};var f=r[0].s;for(a=1;n>a;++a)r[a].s>f&&(f=r[a].s);var v=new fn(f+1),y=bx(o[m-1],v,0);if(y>e){a=0;var S=0,x=y-e,w=1<<x;for(r.sort((function(P,D){return v[D.s]-v[P.s]||P.f-D.f}));n>a;++a){var k=r[a].s;if(e>=v[k])break;S+=w-(1<<y-v[k]),v[k]=e}for(S>>>=x;S>0;){var _=r[a].s;e>v[_]?S-=1<<e-v[_]++-1:++a}for(;a>=0&&S;--a){var C=r[a].s;v[C]==e&&(--v[C],++S)}y=e}return[new rr(v),y]},bx=function(t,e,o){return t.s==-1?Math.max(bx(t.l,e,o+1),bx(t.r,e,o+1)):e[t.s]=o},p2=function(t){for(var e=t.length;e&&!t[--e];);for(var o=new fn(++e),a=0,n=t[0],r=1,s=function(d){o[a++]=d},c=1;e>=c;++c)if(t[c]==n&&c!=e)++r;else{if(!n&&r>2){for(;r>138;r-=138)s(32754);r>2&&(s(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(s(n),--r;r>6;r-=6)s(8304);r>2&&(s(r-3<<5|8208),r=0)}for(;r--;)s(n);r=1,n=t[c]}return[o.subarray(0,a),e]},ap=function(t,e){for(var o=0,a=0;e.length>a;++a)o+=t[a]*e[a];return o},yx=function(t,e,o){var a=o.length,n=e4(e+2);t[n]=255&a,t[n+1]=a>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var r=0;a>r;++r)t[n+r+4]=o[r];return 8*(n+4+a)},m2=function(t,e,o,a,n,r,s,c,d,u,m){Ei(e,m++,o),++n[256];for(var h=tw(n,15),f=h[0],v=h[1],y=tw(r,15),S=y[0],x=y[1],w=p2(f),k=w[0],_=w[1],C=p2(S),P=C[0],D=C[1],R=new fn(19),O=0;k.length>O;++O)R[31&k[O]]++;for(O=0;P.length>O;++O)R[31&P[O]]++;for(var L=tw(R,7),$=L[0],B=L[1],z=19;z>4&&!$[d2[z-1]];--z);var F,W,oe,H,K=u+5<<3,J=ap(n,$l)+ap(r,xv)+s,ie=ap(n,f)+ap(r,S)+s+14+3*z+ap(R,$)+(2*R[16]+3*R[17]+7*R[18]);if(J>=K&&ie>=K)return yx(e,m,t.subarray(d,d+u));if(Ei(e,m,1+(J>ie)),m+=2,J>ie){F=_p(f,v),W=f,oe=_p(S,x),H=S;var Q=_p($,B);for(Ei(e,m,_-257),Ei(e,m+5,D-1),Ei(e,m+10,z-4),m+=14,O=0;z>O;++O)Ei(e,m+3*O,$[d2[O]]);m+=3*z;for(var N=[k,P],G=0;2>G;++G){var V=N[G];for(O=0;V.length>O;++O)Ei(e,m,Q[I=31&V[O]]),m+=$[I],I>15&&(Ei(e,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=Fle,W=$l,oe=jle,H=xv;for(O=0;c>O;++O)if(a[O]>255){var I;op(e,m,F[257+(I=a[O]>>>18&31)]),m+=W[I+257],I>7&&(Ei(e,m,a[O]>>>23&31),m+=OC[I]);var j=31&a[O];op(e,m,oe[j]),m+=H[j],j>3&&(op(e,m,a[O]>>>5&8191),m+=MC[j])}else op(e,m,F[a[O]]),m+=W[a[O]];return op(e,m,F[256]),m+W[256]},zle=new qd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ule=(function(){for(var t=new qd(256),e=0;256>e;++e){for(var o=e,a=9;--a;)o=(1&o&&3988292384)^o>>>1;t[e]=o}return t})(),ow=function(t,e,o){for(;o;++e)t[e]=o,o>>>=8};function $le(t,e){e===void 0&&(e={});var o=(function(){var h=4294967295;return{p(f){for(var v=h,y=0;f.length>y;++y)v=Ule[255&v^f[y]]^v>>>8;h=v},d(){return 4294967295^h}}})(),a=t.length;o.p(t);var n,r,s,c,d,u=(c=10+((n=e).filename&&n.filename.length+1||0),d=8,(function(h,f,v,y,S,x){var w=h.length,k=new rr(y+w+5*(1+Math.floor(w/7e3))+S),_=k.subarray(y,k.length-S),C=0;if(!f||8>w)for(var P=0;w>=P;P+=65535){var D=P+65535;w>D?C=yx(_,C,h.subarray(P,D)):(_[P]=!0,C=yx(_,C,h.subarray(P,w)))}else{for(var R=zle[f-1],O=R>>>13,L=8191&R,$=(1<<v)-1,B=new fn(32768),z=new fn($+1),F=Math.ceil(v/3),W=2*F,oe=function(He){return(h[He]^h[He+1]<<F^h[He+2]<<W)&$},H=new qd(25e3),K=new fn(288),J=new fn(32),ie=0,Q=0,N=(P=0,0),G=0,V=0;w>P;++P){var I=oe(P),j=32767&P,X=z[I];if(B[j]=X,z[I]=j,P>=G){var de=w-P;if((ie>7e3||N>24576)&&de>423){C=m2(h,_,0,H,K,J,Q,N,V,P-V,C),N=ie=Q=0,V=P;for(var ue=0;286>ue;++ue)K[ue]=0;for(ue=0;30>ue;++ue)J[ue]=0}var Ce=2,Ue=0,Z=L,ne=j-X&32767;if(de>2&&I==oe(P-ne))for(var ve=Math.min(O,de)-1,se=Math.min(32767,P),xe=Math.min(258,de);se>=ne&&--Z&&j!=X;){if(h[P+Ce]==h[P+Ce-ne]){for(var _e=0;xe>_e&&h[P+_e]==h[P+_e-ne];++_e);if(_e>Ce){if(Ce=_e,Ue=ne,_e>ve)break;var st=Math.min(ne,_e-2),ct=0;for(ue=0;st>ue;++ue){var Ge=P-ne+ue+32768&32767,at=Ge-B[Ge]+32768&32767;at>ct&&(ct=at,X=Ge)}}}ne+=(j=X)-(X=B[j])+32768&32767}if(Ue){H[N++]=268435456|vx[Ce]<<18|u2[Ue];var Me=31&vx[Ce],Oe=31&u2[Ue];Q+=OC[Me]+MC[Oe],++K[257+Me],++J[Oe],G=P+Ce,++ie}else H[N++]=h[P],++K[h[P]]}}C=m2(h,_,!0,H,K,J,Q,N,V,P-V,C)}return t4(k,0,y+e4(C)+S)})(r=t,(s=e).level==null?6:s.level,s.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+s.mem,c,d)),m=u.length;return(function(h,f){var v=f.filename;if(h[0]=31,h[1]=139,h[2]=8,h[8]=2>f.level?4:f.level==9?2:0,h[9]=3,f.mtime!=0&&ow(h,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),v){h[3]=8;for(var y=0;v.length>=y;++y)h[y+10]=v.charCodeAt(y)}})(u,e),ow(u,m-8,o.d()),ow(u,m-4,a),u}var qle=!!q0||!!$0,o4="text/plain",h2=!1,fb=function(t,e,o){var a;o===void 0&&(o=!0);var[n,r]=t.split("?"),s=Ne({},e),c=(a=r?.split("&").map((u=>{var m,[h,f]=u.split("="),v=o&&(m=s[h])!==null&&m!==void 0?m:f;return delete s[h],h+"="+v})))!==null&&a!==void 0?a:[],d=(function(u,m){var h,f;m===void 0&&(m="&");var v=[];return vo(u,(function(y,S){qe(y)||qe(S)||S==="undefined"||(h=encodeURIComponent((x=>x instanceof File)(y)?y.name:y.toString()),f=encodeURIComponent(S),v[v.length]=f+"="+h)})),v.join(m)})(s);return d&&c.push(d),n+"?"+c.join("&")},vd=(t,e)=>JSON.stringify(t,((o,a)=>typeof a=="bigint"?a.toString():a),e),aw=t=>{if(t.tr)return t.tr;var{data:e,compression:o}=t;if(e){if(o===$r.GZipJS){var a=$le((function(c,d){var u=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var m=new rr(c.length+(c.length>>>1)),h=0,f=function(x){m[h++]=x},v=0;u>v;++v){if(h+5>m.length){var y=new rr(h+8+(u-v<<1));y.set(m),m=y}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 t4(m,0,h)})(vd(e)),{mtime:0});return{contentType:o4,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===$r.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,u)=>String.fromCharCode(parseInt(u,16)))))})(vd(e)),r=(c=>"data="+encodeURIComponent(typeof c=="string"?c:vd(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}var s=vd(e);return{contentType:"application/json",body:s,estimatedSize:new Blob([s]).size}}},Vle=(function(){var t=er((function*(e){var o=vd(e.data),a=yield(function(r,s,c){return V0.apply(this,arguments)})(o,Za.DEBUG,{rethrow:!0});if(!a)return e;var n=yield a.arrayBuffer();return Ne({},e,{tr:{contentType:o4,body:n,estimatedSize:n.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),g2=(t,e)=>fb(t,{_:new Date().getTime().toString(),ver:Za.JS_SDK_VERSION,compression:e}),Ef=[];$0&&Ef.push({transport:"fetch",method(t){var e,o,{contentType:a,body:n,estimatedSize:r}=(e=aw(t))!==null&&e!==void 0?e:{},s=new Headers;vo(t.headers,(function(m,h){s.append(h,m)})),a&&s.append("Content-Type",a);var c=t.url,d=null;if(GO){var u=new GO;d={signal:u.signal,timeout:setTimeout((()=>u.abort()),t.timeout)}}$0(c,Ne({method:t?.method||"GET",headers:s,keepalive:t.method==="POST"&&52428.8>(r||0),body:n,signal:(o=d)==null?void 0:o.signal},t.fetchOptions)).then((m=>m.text().then((h=>{var f={statusCode:m.status,text:h};if(m.status===200)try{f.json=JSON.parse(h)}catch(v){$e.error(v)}t.callback==null||t.callback(f)})))).catch((m=>{$e.error(m),t.callback==null||t.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),q0&&Ef.push({transport:"XHR",method(t){var e,o=new q0;o.open(t.method||"GET",t.url,!0);var{contentType:a,body:n}=(e=aw(t))!==null&&e!==void 0?e:{};vo(t.headers,(function(r,s){o.setRequestHeader(s,r)})),a&&o.setRequestHeader("Content-Type",a),t.timeout&&(o.timeout=t.timeout),t.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var r={statusCode:o.status,text:o.responseText};if(o.status===200)try{r.json=JSON.parse(o.responseText)}catch{}t.callback==null||t.callback(r)}},o.send(n)}}),Nn!=null&&Nn.sendBeacon&&Ef.push({transport:"sendBeacon",method(t){var e=fb(t.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=aw(t))!==null&&o!==void 0?o:{};if(!n)return;var r=n instanceof Blob?n:new Blob([n],{type:a});Nn.sendBeacon(e,r)}catch{}}});var Sx=3e3;class Hle{constructor(e,o){this.Pr=!0,this.Lr=[],this.Dr=Yr(o?.flush_interval_ms||Sx,250,5e3,$e.createLogger("flush interval"),Sx),this.Br=e}enqueue(e){this.Lr.push(e),this.jr||this.$r()}unload(){this.qr();var e=this.Lr.length>0?this.Zr():{},o=Object.values(e);[...o.filter((a=>a.url.indexOf("/e")===0)),...o.filter((a=>a.url.indexOf("/e")!==0))].map((a=>{this.Br(Ne({},a,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var e=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),a=function(){var r=o[n],s=new Date().getTime();r.data&&Bt(r.data)&&vo(r.data,(c=>{c.offset=Math.abs(c.timestamp-s),delete c.timestamp})),e.Br(r)};for(var n in o)a()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var e={};return vo(this.Lr,(o=>{var a,n=o,r=(n?n.batchKey:null)||n.url;qe(e[r])&&(e[r]=Ne({},n,{data:[]})),(a=e[r].data)==null||a.push(n.data)})),this.Lr=[],e}}var Gle=["retriesPerformedSoFar"];class Wle{constructor(e){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=e,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},Qo(ge,"online",this.Ur),Qo(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(e){var{retriesPerformedSoFar:o}=e,a=r3(e,Gle);sd(o)&&(a.url=fb(a.url,{retry_count:o})),this._instance._send_request(Ne({},a,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(o??0)>=10?a.callback==null||a.callback(n):this.Wr(Ne({retriesPerformedSoFar:o},a))}}))}Wr(e){var o=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=o+1;var a=(function(s){var c=3e3*Math.pow(2,s),d=c/2,u=Math.min(18e5,c),m=Math.random()-.5;return Math.ceil(u+m*(u-d))})(o),n=Date.now()+a;this.Lr.push({retryAt:n,requestOptions:e});var r="Enqueued failed request for retry in "+a;navigator.onLine||(r+=" (Browser is offline)"),$e.warn(r),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 e=Date.now(),o=[],a=this.Lr.filter((r=>e>r.retryAt||(o.push(r),!1)));if(this.Lr=o,a.length>0)for(var{requestOptions:n}of a)this.retriableRequest(n)}unload(){for(var{requestOptions:e}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(Ne({},e,{transport:"sendBeacon"}))}catch(o){$e.error(o)}this.Lr=[]}}class Kle{constructor(e){this.Kr=()=>{var o,a,n,r;this.Qr||(this.Qr={});var s=this.scrollElement(),c=this.scrollY(),d=s?Math.max(0,s.scrollHeight-s.clientHeight):0,u=c+(s?.clientHeight||0),m=s?.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(d,(a=this.Qr.maxScrollHeight)!==null&&a!==void 0?a:0),this.Qr.lastContentY=u,this.Qr.maxContentY=Math.max(u,(n=this.Qr.maxContentY)!==null&&n!==void 0?n:0),this.Qr.maxContentHeight=Math.max(m,(r=this.Qr.maxContentHeight)!==null&&r!==void 0?r:0)},this._instance=e}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var e=this.Qr;return setTimeout(this.Kr,0),e}startMeasuringScrollPosition(){Qo(ge,"scroll",this.Kr,{capture:!0}),Qo(ge,"scrollend",this.Kr,{capture:!0}),Qo(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var e=Bt(this.ei)?this.ei:[this.ei];for(var o of e){var a=ge?.document.querySelector(o);if(a)return a}}scrollY(){if(this.ei){var e=this.scrollElement();return e&&e.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var e=this.scrollElement();return e&&e.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var Yle=t=>W3(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class f2{constructor(e,o,a,n){this.ti=r=>{var s=this.ri();if(!s||s.sessionId!==r){var c={sessionId:r,props:this.ii(this._instance)};this.ni.register({[ux]:c})}},this._instance=e,this.si=o,this.ni=a,this.ii=n||Yle,this.si.onSessionId(this.ti)}ri(){return this.ni.props[ux]}getSetOnceProps(){var e,o=(e=this.ri())==null?void 0:e.props;return o?"r"in o?K3(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 e={};return vo(DC(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),e["$session_entry_"+H0(a)]=o})),e}}class NC{constructor(){this.oi={}}on(e,o){return this.oi[e]||(this.oi[e]=[]),this.oi[e].push(o),()=>{this.oi[e]=this.oi[e].filter((a=>a!==o))}}emit(e,o){for(var a of this.oi[e]||[])a(o);for(var n of this.oi["*"]||[])n(e,o)}}var nw=wo("[SessionId]");class v2{on(e,o){return this.ai.on(e,o)}constructor(e,o,a){var n;if(this.li=[],this.ui=void 0,this.ai=new NC,this.hi=(u,m)=>!(!sd(u)||!sd(m))&&Math.abs(u-m)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Ri)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=e.config,this.ni=e.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||As,this.fi=a||As;var r=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Yr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,nw.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+r+"_window_id",this.mi="ph_"+r+"_primary_window_exists",this.yi()){var s=ka.Z(this.gi),c=ka.Z(this.mi);s&&!c?this.ci=s:ka.F(this.gi),ka.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var d=(u=>{var m=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(m.length!==32)throw new Error("Not a valid UUID");if(m[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(m.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(u){nw.error("Invalid sessionID in bootstrap",u)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return qe(this.li)&&(this.li=[]),this.li.push(e),this.di&&e(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==e))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&ka.R()}Ii(e){e!==this.ci&&(this.ci=e,this.yi()&&ka.M(this.gi,e))}Ci(){return this.ci?this.ci:this.yi()?ka.Z(this.gi):null}bi(e,o,a){e===this.di&&o===this._sessionActivityTimestamp&&a===this._sessionStartTimestamp||(this._sessionStartTimestamp=a,this._sessionActivityTimestamp=o,this.di=e,this.ni.register({[pv]:[o,e,a]}))}Si(){var e=this.ni.props[pv];return Bt(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&ge&&(ge.removeEventListener(vv,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&ka.F(this.mi)},Qo(ge,vv,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(e,o){if(e===void 0&&(e=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===Ri)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var a=o||new Date().getTime(),[n,r,s]=this.Si(),c=this.Ci(),d=sd(s)&&Math.abs(a-s)>864e5,u=!1,m=!r,h=!m&&!e&&this.hi(a,n);m||h||d?(r=this.vi(),c=this.fi(),nw.info("new session ID generated",{sessionId:r,windowId:c,changeReason:{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}}),s=a,u=!0):c||(c=this.fi(),u=!0);var f=sd(n)&&e&&!d?n:a,v=sd(s)?s:new Date().getTime();return this.Ii(c),this.bi(r,f,v),e||this.pi(),u&&this.li.forEach((y=>y(r,c,u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0))),{sessionId:r,windowId:c,sessionStartTimestamp:v,changeReason:u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[e]=this.Si();if(this.hi(new Date().getTime(),e)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var a4=function(t,e){if(!t)return!1;var o=t.userAgent;if(o&&YO(o,e))return!0;try{var a=t?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>YO(n?.brand,e))))return!0}catch{}return!!t.webdriver},kv=function(t,e){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function b2(t,e,o){return vd({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:o})}var n4={exact:(t,e)=>e.some((o=>t.some((a=>o===a)))),is_not:(t,e)=>e.every((o=>t.every((a=>o!==a)))),regex:(t,e)=>e.some((o=>t.some((a=>kv(o,a))))),not_regex:(t,e)=>e.every((o=>t.every((a=>!kv(o,a))))),icontains:(t,e)=>e.map(tf).some((o=>t.map(tf).some((a=>o.includes(a))))),not_icontains:(t,e)=>e.map(tf).every((o=>t.map(tf).every((a=>!o.includes(a))))),gt:(t,e)=>e.some((o=>{var a=parseFloat(o);return!isNaN(a)&&t.some((n=>a>parseFloat(n)))})),lt:(t,e)=>e.some((o=>{var a=parseFloat(o);return!isNaN(a)&&t.some((n=>a<parseFloat(n)))}))},tf=t=>t.toLowerCase();function r4(t,e){return!t||Object.entries(t).every((o=>{var[a,n]=o,r=e?.[a];if(qe(r)||ji(r))return!1;var s=[String(r)],c=n4[n.operator];return!!c&&c(n.values,s)}))}var Tx="custom",y2="i.posthog.com",Zle=/^\/static\//;class Qle{constructor(e){this.ki={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,o=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+y2,".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":Tx),this.ki[this.apiHost]}Ti(e){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&Zle.test(e))return o.trim().replace(/\/$/,"")||void 0}endpointFor(e,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),e==="ui")return this.uiHost+o;if(e==="flags")return this.flagsApiHost+o;if(e==="assets"){var a=this.Ti(o);if(a)return""+a+o}if(this.region===Tx)return this.apiHost+o;var n=y2+o;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var oo=wo("[Surveys]"),wx="seenSurvey_",Jle=[XT.Popover,XT.Widget,XT.API],Xle={ignoreConditions:!1,ignoreDelay:!1,displayType:fx.Popover},ece=wo("[PostHog ExternalIntegrations]"),tce={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class oce{constructor(e){this._instance=e}ur(e,o){var a;(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,e,(n=>{if(n)return ece.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var e=this,o=function(s){var c,d,u;!n||(c=ot.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[s]||e.ur(tce[s],(()=>{var m;(m=ot.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[s])==null||m.start(e._instance)})),!n&&(d=ot.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[s]&&((u=ot.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[s])==null||u.stop())};for(var[a,n]of Object.entries((r=this._instance.config.integrations)!==null&&r!==void 0?r:{})){var r;o(a)}}}var Xc,Pp={},rw=0,xx=()=>{},S2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',np="Surveys module not available",T2="sanitize_properties is deprecated. Use before_send instead",i4="Invalid value for property_denylist config: ",dd="posthog",s4=!qle&&mn?.indexOf("MSIE")===-1&&mn?.indexOf("Mozilla")===-1,w2=t=>{var e;return Ne({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:yle(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:xx,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:xa&&Eo(xa?.search)&&xa.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||(e=ge.location)==null?void 0:e.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){$e.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:gx,before_send:void 0,request_queue_config:{flush_interval_ms:Sx},error_tracking:{},_onCapture:xx,__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}))(t))},ace=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],x2=t=>{var e={};for(var[o,a]of ace)qe(t[o])||(e[a]=t[o]);var n=Mo({},e,t);return Bt(t.property_blacklist)&&(qe(t.property_denylist)?n.property_denylist=t.property_blacklist:Bt(t.property_denylist)?n.property_denylist=[...t.property_blacklist,...t.property_denylist]:$e.error(i4+t.property_denylist)),n};class nce{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(e){$e.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class tr{Ei(e,o){if(e){var a=this.Ri.indexOf(e);a!==-1&&this.Ri.splice(a,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===Ri||this.config.cookieless_mode===Al&&this.consent.isRejected()}get decideEndpointWasHit(){var e,o;return(e=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,o;return(e=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new nce,this.Mi=!1,this.version=Za.LIB_VERSION,this.Fi=new NC,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=w2(),this.SentryIntegration=Ale,this.sentryIntegration=a=>(function(n,r){var s=$3(n,r);return{name:U3,processEvent:c=>s(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 Kle(this),this.pageViewManager=new i2(this),this.rateLimiter=new Ble(this),this.requestRouter=new Qle(this),this.consent=new Ele(this),this.externalIntegrations=new oce(this);var o=(e=tr.__defaultExtensionClasses)!==null&&e!==void 0?e:{};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,r)=>{var s=Eo(a)?{[a]:n}:a;this.setPersonProperties(s),r?.({})},set_once:(a,n,r)=>{var s=Eo(a)?{[a]:n}:a;this.setPersonProperties(void 0,s),r?.({})}},this.on("eventCaptured",(a=>$e.info('send "'+a?.event+'"',a)))}init(e,o,a){if(a&&a!==dd){var n,r=(n=Pp[a])!==null&&n!==void 0?n:new tr;return r._init(e,o,a),Pp[a]=r,Pp[dd][a]=r,r}return this._init(e,o,a)}_init(e,o,a){var n,r;if(o===void 0&&(o={}),qe(e)||wf(e))return $e.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(Mo({},w2(o.defaults),x2(o),{name:a,token:e})),this.config.on_xhr_error&&$e.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:$r.GZipJS;var s=this.qi();this.persistence=new JT(this.config,s),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new JT(Ne({},this.config,{persistence:"sessionStorage"}),s);var c=Ne({},this.persistence.props),d=Ne({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new Hle((x=>this.Vi(x)),this.config.request_queue_config),this.Hi=new Wle(this),this.__request_queue=[];var u=this.Ni();if(u||(this.sessionManager=new v2(this),this.sessionPropsManager=new f2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?($e.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(u)}),0)):($e.info("Initializing extensions synchronously"),this.zi(u)),Za.DEBUG=Za.DEBUG||this.config.debug,Za.DEBUG&&$e.info("Starting in debug mode",{this:this,config:o,thisC:Ne({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(n=o.bootstrap)!=null&&n.distinctID||(o.bootstrap=Ne({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((r=o.bootstrap)==null?void 0:r.distinctID)!==void 0){var m=o.bootstrap.distinctID,h=this.get_distinct_id(),f=this.persistence.get_property(br);if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Zc)this.identify(m);else if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Qc)$e.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(As()),y=o.bootstrap.isIdentifiedID?v:m;this.persistence.set_property(br,o.bootstrap.isIdentifiedID?Qc:Zc),this.register({distinct_id:m,$device_id:y})}}if(u)this.register_once({distinct_id:Zg,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(As());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(br,Zc)}return Qo(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(x,w){var k=x.config.segment;if(!k)return w();(function(_,C){var P=_.config.segment;if(!P)return C();var D=O=>{var L=()=>O.anonymousId()||As();_.config.get_device_id=L,O.id()&&(_.register({distinct_id:O.id(),$device_id:L()}),_.persistence.set_property(br,Qc)),C()},R=P.user();"then"in R&&Ai(R.then)?R.then(D):D(R)})(x,(()=>{k.register((_=>{Promise&&Promise.resolve||QT.warn("This browser does not have Promise support, and can not use the segment integration");var C=(P,D)=>{if(!D)return P;P.event.userId||P.event.anonymousId===_.get_distinct_id()||(QT.info("No userId set, resetting PostHog"),_.reset()),P.event.userId&&P.event.userId!==_.get_distinct_id()&&(QT.info("UserId set, identifying with PostHog"),_.identify(P.event.userId));var R=_.calculateEventProperties(D,P.event.properties);return P.event.properties=Object.assign({},R,P.event.properties),P};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:P=>C(P,P.event.event),page:P=>C(P,cd),identify:P=>C(P,YT),screen:P=>C(P,"$screen")}})(x)).then((()=>{w()}))}))})(this,(()=>this.Ui())):this.Ui(),Ai(this.config._onCapture)&&this.config._onCapture!==xx&&($e.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(x=>this.config._onCapture(x.event,x)))),this.config.ip&&$e.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(e){var o,a,n,r,s,c,d,u=performance.now(),m=Ne({},tr.__defaultExtensionClasses,this.config.__extensionClasses),h=[];m.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new m.featureFlags(this)),m.exceptions&&this.Ri.push(this.exceptions=(a=this.exceptions)!==null&&a!==void 0?a:new m.exceptions(this)),m.historyAutocapture&&this.Ri.push(this.historyAutocapture=new m.historyAutocapture(this)),m.tracingHeaders&&this.Ri.push(new m.tracingHeaders(this)),m.siteApps&&this.Ri.push(this.siteApps=new m.siteApps(this)),m.sessionRecording&&!e&&this.Ri.push(this.sessionRecording=new m.sessionRecording(this)),this.config.disable_scroll_properties||h.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),m.autocapture&&this.Ri.push(this.autocapture=new m.autocapture(this)),m.surveys&&this.Ri.push(this.surveys=(n=this.surveys)!==null&&n!==void 0?n:new m.surveys(this)),m.logs&&this.Ri.push(this.logs=(r=this.logs)!==null&&r!==void 0?r:new m.logs(this)),m.conversations&&this.Ri.push(this.conversations=(s=this.conversations)!==null&&s!==void 0?s:new m.conversations(this)),m.productTours&&this.Ri.push(this.productTours=new m.productTours(this)),m.heatmaps&&this.Ri.push(this.heatmaps=new m.heatmaps(this)),m.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new m.webVitalsAutocapture(this)),m.exceptionObserver&&this.Ri.push(this.exceptionObserver=new m.exceptionObserver(this)),m.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new m.deadClicksAutocapture(this,Ple)),m.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new m.toolbar(this)),m.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new m.experiments(this)),this.Ri.forEach((f=>{f.initialize&&h.push((()=>{f.initialize==null||f.initialize()}))})),h.push((()=>{if(this.Yi){var f=this.Yi;this.Yi=void 0,this.Nr(f)}})),this.Gi(h,u)}Gi(e,o){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&e.length>0)return void setTimeout((()=>{this.Gi(e,o)}),0);var a=e.shift();if(a)try{a()}catch(r){$e.error("Error initializing extension:",r)}}var n=Math.round(performance.now()-o);this.register_for_session({[L3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[B3]:n}),this.config.__preview_deferred_init_extensions&&$e.info("PostHog extensions initialized ("+n+"ms)")}Nr(e){var o;if(!ze||!ze.body)return $e.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=e),this.Wi=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Et(e.supportedCompression,$r.GZipJS)?$r.GZipJS:Et(e.supportedCompression,$r.Base64)?$r.Base64:void 0),(o=e.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:gx}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(e)))}Ui(){try{this.config.loaded(this)}catch(a){$e.critical("`loaded` function failed",a)}if(this.Xi(),this.config.internal_or_test_user_hostname&&xa!=null&&xa.hostname){var e=xa.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?e===o:o.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new Z3(this),this.Ki.load()}Xi(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Zi)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Qg(this.__request_queue,(e=>this.Vi(e))),this.__request_queue=[],this.Xi()}_handle_unload(){var e,o,a,n;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(KT),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(KT,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(s4?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=fb(e.url,{ip:this.config.ip?1:0}),e.headers=Ne({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(o=>{var a,n,r,s=Ne({},o);s.timeout=s.timeout||6e4,s.url=g2(s.url,s.compression);var c=(a=s.transport)!==null&&a!==void 0?a:"fetch",d=Ef.filter((m=>!s.disableTransport||!m.transport||!s.disableTransport.includes(m.transport))),u=(n=(r=(function(m,h){for(var f=0;m.length>f;f++)if(m[f].transport===c)return m[f]})(d))==null?void 0:r.method)!==null&&n!==void 0?n:d[0].method;if(!u)throw new Error("No available transport method");c!=="sendBeacon"&&s.data&&s.compression===$r.GZipJS&&Ase&&!h2?Vle(s).then((m=>{u(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return h2=!0,void u(Ne({},s,{compression:void 0,url:g2(o.url,void 0)}));u(s)})):u(s)})(Ne({},e,{callback:o=>{var a,n;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(a=(n=this.config).on_request_error)==null||a.call(n,o),e.callback==null||e.callback(o)}}))))}Vi(e){this.Hi?this.Hi.retriableRequest(e):this._send_request(e)}_execute_array(e){rw++;try{var o,a=[],n=[],r=[];Qg(e,(c=>{c&&(Bt(o=c[0])?r.push(c):Ai(c)?c.call(this):Bt(c)&&o==="alias"?a.push(c):Bt(c)&&o.indexOf("capture")!==-1&&Ai(this[o])?r.push(c):n.push(c))}));var s=function(c,d){Qg(c,(function(u){if(Bt(u[0])){var m=d;vo(u,(function(h){m=m[h[0]].apply(m,h.slice(1))}))}else d[u[0]].apply(d,u.slice(1))}))};s(a,this),s(n,this),s(r,this)}finally{rw--}}push(e){if(rw>0&&Bt(e)&&Eo(e[0])){var o=tr.prototype[e[0]];Ai(o)&&o.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,o,a){var n,r,s,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!qe(e)&&Eo(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||this.config.__preview_capture_bot_pageviews){var m=a!=null&&a.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(m==null||!m.isRateLimited){o!=null&&o.$current_url&&!Eo(o?.$current_url)&&($e.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),e!=="$exception"||a!=null&&a.en||$e.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 h=new Date,f=a?.timestamp||h,v=As(),y={uuid:v,event:e,properties:this.calculateEventProperties(e,o||{},f,v)};e===cd&&this.config.__preview_capture_bot_pageviews&&u&&(y.event="$bot_pageview",y.properties.$browser_type="bot"),m&&(y.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),a?.$set&&(y.$set=a?.$set);var S,x,w,k=this.tn(a?.$set_once,e!==o2,e===YT);if(k&&(y.$set_once=k),a!=null&&a._noTruncate||(r=this.config.properties_string_max_length,s=y,c=L=>Eo(L)?L.slice(0,r):L,d=new Set,y=(function L($,B){return $!==Object($)?c?c($):$:d.has($)?void 0:(d.add($),Bt($)?(z=[],Qg($,(F=>{z.push(L(F))}))):(z={},vo($,((F,W)=>{d.has(F)||(z[W]=L(F))}))),z);var z})(s)),y.timestamp=f,qe(a?.timestamp)||(y.properties.$event_time_override_provided=!0,y.properties.$event_time_override_system_time=h),e===wp.DISMISSED||e===wp.SENT){var _=o?.[ew.SURVEY_ID],C=o?.[ew.SURVEY_ITERATION];(L=>{try{var $=(B=>((z,F)=>{var W=""+wx+F.id;return F.current_iteration&&F.current_iteration>0&&(W=""+wx+F.id+"_"+F.current_iteration),W})(0,B))(L);if(localStorage.getItem($))return;localStorage.setItem($,"true")}catch(B){oo.error("Failed to persist survey seen state",B)}})({id:_,current_iteration:C}),y.$set=Ne({},y.$set,{[(S={id:_,current_iteration:C},x=e===wp.SENT?"responded":"dismissed",w="$survey_"+x+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(w="$survey_"+x+"/"+S.id+"/"+S.current_iteration),w)]:!0})}else e===wp.SHOWN&&(y.$set=Ne({},y.$set,{[ew.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===Lle.SHOWN){var P=o?.[l2.TOUR_TYPE];P&&(y.$set=Ne({},y.$set,{[l2.TOUR_LAST_SEEN_DATE+"/"+P]:new Date().toISOString()}))}var D=Ne({},y.properties.$set,y.$set);if(gd(D)||this.setPersonPropertiesForFlags(D),!_t(this.config.before_send)){var R=this.rn(y);if(!R)return;y=R}this.Fi.emit("eventCaptured",y);var O={method:"POST",url:(n=a?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:y,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),y}$e.critical("This capture call is ignored due to client rate limiting.")}}else $e.error("No event name provided to posthog.capture")}else $e.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(o=>e(o.event,o)))}calculateEventProperties(e,o,a,n,r){if(a=a||new Date,!this.persistence||!this.sessionPersistence)return o;var s=r?void 0:this.persistence.remove_event_timer(e),c=Ne({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),e==="$snapshot"){var d=Ne({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!Eo(c.distinct_id)&&!ir(c.distinct_id)||wf(c.distinct_id))&&$e.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var u,m=(function(w,k){var _,C,P,D;if(!mn)return{};var R,O,L,$,B,z,F,W,oe=w?[...$d,...k||[]]:[],[H,K]=(function(J){for(var ie=0;JO.length>ie;ie++){var[Q,N]=JO[ie],G=Q.exec(J),V=G&&(Ai(N)?N(G,J):N);if(V)return V}return["",""]})(mn);return Mo(DC({$os:H,$os_version:K,$browser:k3(mn,navigator.vendor),$device:XO(mn),$device_type:(O=mn,L={userAgentDataPlatform:(_=navigator)==null||(_=_.userAgentData)==null?void 0:_.platform,maxTouchPoints:(C=navigator)==null?void 0:C.maxTouchPoints,screenWidth:ge==null||(P=ge.screen)==null?void 0:P.width,screenHeight:ge==null||(D=ge.screen)==null?void 0:D.height,devicePixelRatio:ge?.devicePixelRatio},W=XO(O),W===d3||W===c3||W==="Kobo"||W==="Kindle Fire"||W===x3?jd:W===Wp||W===Cd||W===Kp||W===W0?"Console":W===p3?"Wearable":W?Ln:L?.userAgentDataPlatform==="Android"&&(($=L?.maxTouchPoints)!==null&&$!==void 0?$:0)>0?600>Math.min((B=L?.screenWidth)!==null&&B!==void 0?B:0,(z=L?.screenHeight)!==null&&z!==void 0?z:0)/((F=L?.devicePixelRatio)!==null&&F!==void 0?F:1)?Ln:jd:"Desktop"),$timezone:Y3(),$timezone_offset:Nle()}),{$current_url:Yp(xa?.href,oe,Zp),$host:xa?.host,$pathname:xa?.pathname,$raw_user_agent:mn.length>1e3?mn.substring(0,997)+"...":mn,$browser_version:Hse(mn,navigator.vendor),$browser_language:s2(),$browser_language_prefix:(R=s2(),typeof R=="string"?R.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:Za.LIB_NAME,$lib_version:Za.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:h,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(r,a.getTime());c.$session_id=h,c.$window_id=f}this.sessionPropsManager&&Mo(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Mo(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(w){c.$sdk_debug_error_capturing_properties=String(w)}if(this.requestRouter.region===Tx&&(c.$lib_custom_api_host=this.config.api_host),u=e!==cd||r?e!==KT||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Mo(c,u),e===cd&&ze&&(c.title=ze.title),!qe(s)){var y=a.getTime()-s;c.$duration=parseFloat((y/1e3).toFixed(3))}mn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Mo({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Bt(this.config.property_denylist)?vo(this.config.property_denylist,(function(w){delete c[w]})):$e.error(i4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&($e.error(T2),c=S(c,e));var x=this.nn();return c.$process_person_profile=x,x&&!r&&this.sn("_calculate_event_properties"),c}tn(e,o,a){var n;if(o===void 0&&(o=!0),a===void 0&&(a=!1),!this.persistence||!this.nn()||this.Mi&&!a)return e;var r=this.persistence.get_initial_props(),s=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Mo({},r,s||{},e||{}),d=this.config.sanitize_properties;return d&&($e.error(T2),c=d(c,"$set_once")),o&&(this.Mi=!0),gd(c)?void 0:c}register(e,o){var a;(a=this.persistence)==null||a.register(e,o)}register_once(e,o,a){var n;(n=this.persistence)==null||n.register_once(e,o,a)}register_for_session(e){var o;(o=this.sessionPersistence)==null||o.register(e)}unregister(e){var o;(o=this.persistence)==null||o.unregister(e)}unregister_for_session(e){var o;(o=this.sessionPersistence)==null||o.unregister(e)}an(e,o){this.register({[e]:o})}getFeatureFlag(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlag(e,o)}getFeatureFlagPayload(e){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(e)}getFeatureFlagResult(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagResult(e,o)}isFeatureEnabled(e,o){var a;return(a=this.featureFlags)==null?void 0:a.isFeatureEnabled(e,o)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,o,a){var n;(n=this.featureFlags)==null||n.updateFlags(e,o,a)}updateEarlyAccessFeatureEnrollment(e,o,a){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(e,o,a)}getEarlyAccessFeatures(e,o,a){var n;return o===void 0&&(o=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(e,o,a)}on(e,o){return this.Fi.on(e,o)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:np}),()=>{})}onSessionId(e){var o,a;return(o=(a=this.sessionManager)==null?void 0:a.onSessionId(e))!==null&&o!==void 0?o:()=>{}}getSurveys(e,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(e,o):e([],{isLoaded:!1,error:np})}getActiveMatchingSurveys(e,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,o):e([],{isLoaded:!1,error:np})}renderSurvey(e,o){var a;(a=this.surveys)==null||a.renderSurvey(e,o)}displaySurvey(e,o){var a;o===void 0&&(o=Xle),(a=this.surveys)==null||a.displaySurvey(e,o)}cancelPendingSurvey(e){var o;(o=this.surveys)==null||o.cancelPendingSurvey(e)}canRenderSurvey(e){var o,a;return(o=(a=this.surveys)==null?void 0:a.canRenderSurvey(e))!==null&&o!==void 0?o:{visible:!1,disabledReason:np}}canRenderSurveyAsync(e,o){var a,n;return o===void 0&&(o=!1),(a=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(e,o))!==null&&a!==void 0?a:Promise.resolve({visible:!1,disabledReason:np})}ln(e){return!e||wf(e)?($e.critical("Unique user id has not been set in posthog.identify"),!1):e===Zg?($e.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||($e.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,o,a){if(!this.__loaded||!this.persistence)return $e.uninitializedWarning("posthog.identify");if(ir(e)&&(e=e.toString(),$e.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(e)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property(uv)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(vp)&&(this.unregister(vp),this.register({distinct_id:e}));var r,s=(this.persistence.get_property(br)||Zc)===Zc;e!==n&&s?(this.persistence.set_property(br,Qc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(YT,{distinct_id:e,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=b2(e,o,a),(r=this.featureFlags)==null||r.setAnonymousDistinctId(n)):(o||a)&&this.setPersonProperties(o,a),e!==n&&(this.reloadFeatureFlags(),this.unregister(Ep))}}setPersonProperties(e,o){if((e||o)&&this.sn("posthog.setPersonProperties")){var a=b2(this.get_distinct_id(),e,o);this.Di!==a?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:o||{}},!0),this.capture("$set",{$set:e||{},$set_once:o||{}}),this.Di=a):$e.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,o,a){if(e&&o){var n=this.getGroups(),r=n[e]!==o;if(r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:Ne({},n,{[e]:o})}),r||a){var s={$group_type:e,$group_key:o};a&&(s.$group_set=a),this.capture(o2,s)}a&&this.setGroupPropertiesForFlags({[e]:a}),r&&!a&&this.reloadFeatureFlags()}else $e.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,o){var a;o===void 0&&(o=!0),(a=this.featureFlags)==null||a.setPersonPropertiesForFlags(e,o)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,o){var a;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((a=this.featureFlags)==null||a.setGroupPropertiesForFlags(e,o))}resetGroupPropertiesForFlags(e){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(e)}reset(e){var o,a,n,r,s,c,d,u;if($e.info("reset"),!this.__loaded)return $e.uninitializedWarning("posthog.reset");var m=this.get_property(uv);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(a=this.sessionPersistence)==null||a.clear(),(n=this.surveys)==null||n.reset(),(r=this.Ki)==null||r.stop(),(s=this.featureFlags)==null||s.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(br,Zc),(u=this.sessionManager)==null||u.resetSessionId(),this.Di=null,this.config.cookieless_mode===Ri)this.register_once({distinct_id:Zg,$device_id:null},"");else{var h=this.config.get_device_id(As());this.register_once({distinct_id:h,$device_id:e?h:m},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,o){var a;this.config.identity_distinct_id=e,this.config.identity_hash=o,this.alias(e),(a=this.conversations)==null||a.un()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,o;return(e=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){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(e!=null&&e.withTimestamp&&a){var r,s=(r=e.timestampLookBack)!==null&&r!==void 0?r:10;if(!a)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-a)/1e3)-s,0)}return n}alias(e,o){return e===this.get_property(R3)?($e.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(qe(o)&&(o=this.get_distinct_id()),e!==o?(this.an(vp,e),this.capture("$create_alias",{alias:e,distinct_id:o})):($e.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var o=Ne({},this.config);if(Bo(e)){var a,n,r,s,c,d,u,m,h,f;Mo(this.config,x2(e));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 JT(Ne({},this.config,{persistence:"sessionStorage"}),v);var y=this.Bi(this.config.debug);Kr(y)&&(this.config.debug=y),Kr(this.config.debug)&&(this.config.debug?(Za.DEBUG=!0,Co.R()&&Co.M("ph_debug",!0),$e.info("set_config",{config:e,oldConfig:o,newConfig:Ne({},this.config)})):(Za.DEBUG=!1,Co.R()&&Co.F("ph_debug"))),(n=this.exceptionObserver)==null||n.onConfigChange(),(r=this.exceptions)==null||r.onConfigChange(),(s=this.sessionRecording)==null||s.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(u=this.exceptionObserver)==null||u.startIfEnabledOrStop(),(m=this.deadClicksAutocapture)==null||m.startIfEnabledOrStop(),(h=this.surveys)==null||h.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(e,o){Za.LIB_NAME=e,Za.LIB_VERSION=o}startSessionRecording(e){var o,a,n,r,s,c=e===!0,d={sampling:c||!(e==null||!e.sampling),linked_flag:c||!(e==null||!e.linked_flag),url_trigger:c||!(e==null||!e.url_trigger),event_trigger:c||!(e==null||!e.event_trigger)};Object.values(d).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),d.sampling&&((a=this.sessionRecording)==null||a.overrideSampling()),d.linked_flag&&((n=this.sessionRecording)==null||n.overrideLinkedFlag()),d.url_trigger&&((r=this.sessionRecording)==null||r.overrideTrigger("url")),d.event_trigger&&((s=this.sessionRecording)==null||s.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,o){if(this.exceptions){var a=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:a});return this.exceptions.sendExceptionEvent(Ne({},n,o))}}addExceptionStep(e,o){var a;(a=this.exceptions)==null||a.addExceptionStep(e,o)}captureLog(e){var o;(o=this.logs)==null||o.captureLog(e)}get logger(){var e,o;return(e=(o=this.logs)==null?void 0:o.logger)!==null&&e!==void 0?e:tr.dn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var o,a;return(o=(a=this.toolbar)==null?void 0:a.loadToolbar(e))!==null&&o!==void 0&&o}get_property(e){var o;return(o=this.persistence)==null?void 0:o.props[e]}getSessionProperty(e){var o;return(o=this.sessionPersistence)==null?void 0:o.props[e]}toString(){var e,o=(e=this.config.name)!==null&&e!==void 0?e:dd;return o!==dd&&(o=dd+"."+o),o}_isIdentified(){var e,o;return((e=this.persistence)==null?void 0:e.get_property(br))===Qc||((o=this.sessionPersistence)==null?void 0:o.get_property(br))===Qc}nn(){var e,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===gx&&!this._isIdentified()&&gd(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[vp])&&((o=this.persistence)==null||(o=o.props)==null||!o[gv]))}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(e){return this.config.person_profiles==="never"?($e.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(gv,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Al)}cn(){var e,o,a,n,r=this.qi();return((e=this.persistence)==null?void 0:e._r)!==r&&((a=this.persistence)==null||a.set_disabled(r)),((o=this.sessionPersistence)==null?void 0:o._r)!==r&&((n=this.sessionPersistence)==null||n.set_disabled(r)),r}opt_in_capturing(e){var o;if(this.config.cookieless_mode!==Ri){if(this.Ni()){var a,n,r,s,c;this.reset(!0),(a=this.sessionManager)==null||a.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new v2(this),this.pageViewManager=new i2(this),this.persistence&&(this.sessionPropsManager=new f2(this,this.sessionManager,this.persistence));var d,u=(r=(s=this.config.__extensionClasses)==null?void 0:s.sessionRecording)!==null&&r!==void 0?r:(c=tr.__defaultExtensionClasses)==null?void 0:c.sessionRecording;u&&(this.sessionRecording=this.Ei(this.sessionRecording,new u(this)),this.Wi&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var m,h;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==Al&&((m=this.surveys)==null||m.loadIfEnabled()),(qe(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((h=e?.captureEventName)!==null&&h!==void 0?h:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else $e.warn(S2)}opt_out_capturing(){var e,o,a;this.config.cookieless_mode!==Ri?(this.config.cookieless_mode===Al&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Al&&(this.register({distinct_id:Zg,$device_id:null}),(e=this.sessionManager)==null||e.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())):$e.warn(S2)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Ri||(this.config.cookieless_mode===Al?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return Nn?a4(Nn,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(cd,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(fv,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Qo(ze,fv,this.Pi)))}debug(e){e===!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 e,o,a,n,r,s,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?($e.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=$e,r=(o="advanced_disable_flags")in(e=c)&&!_t(e[o]),s=a in e&&!_t(e[a]),r?e[o]:!!s&&(n&&n.warn("Config field '"+a+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),e[a]))}rn(e){if(_t(this.config.before_send))return e;var o=Bt(this.config.before_send)?this.config.before_send:[this.config.before_send],a=e;for(var n of o){if(a=n(a),_t(a)){var r="Event '"+e.event+"' was rejected in beforeSend function";return Mse(e.event)?$e.warn(r+". This can cause unexpected behavior."):$e.info(r),null}a.properties&&!gd(a.properties)||$e.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return a}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,o){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:o})}captureTraceMetric(e,o,a){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:o,$ai_metric_value:String(a)})}Bi(e){var o=Kr(e)&&!e,a=Co.R()&&Co.O("ph_debug")==="true";return!o&&(!!a||e)}}function k2(t){return t instanceof Element&&(t.id===I3||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function vb(t){return!!t&&t.nodeType===1}function Fs(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function l4(t){return!!t&&t.nodeType===3}function c4(t){return!!t&&t.nodeType===11}function IC(t){return t?hb(t).split(/\s+/):[]}function C2(t){var e=ge?.location.href;return!!(e&&t&&t.some((o=>e.match(o))))}function Cv(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return IC(e)}function d4(t){return _t(t)?null:hb(t).split(/(\s+)/).filter((e=>Ap(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Qp(t){var e="";return Cx(t)&&!p4(t)&&t.childNodes&&t.childNodes.length&&vo(t.childNodes,(function(o){var a;l4(o)&&o.textContent&&(e+=(a=d4(o.textContent))!==null&&a!==void 0?a:"")})),hb(e)}function E2(t){return qe(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}tr.__defaultExtensionClasses={},tr.dn={trace:Xc=()=>{},debug:Xc,info:Xc,warn:Xc,error:Xc,fatal:Xc},(function(t,e){for(var o=0;e.length>o;o++)t.prototype[e[o]]=vle(t.prototype[e[o]])})(tr,["identify"]);var LC=["a","button","form","input","select","textarea","label"];function _2(t,e){if(qe(e))return!0;var o,a=function(r){if(e.some((s=>r.matches(s))))return{v:!0}};for(var n of t)if(o=a(n))return o.v;return!1}function u4(t){var e=t.parentNode;return!(!e||!vb(e))&&e}var rce=["next","previous","prev",">","<"],P2=[".ph-no-rageclick",".ph-no-capture"],kx=t=>!t||Fs(t,"html")||!vb(t),A2=(t,e)=>{if(!ge||kx(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[t],n=t;n.parentNode&&!Fs(n,"body");)if(c4(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var r=u4(n);if(!r)break;if(e||LC.indexOf(r.tagName.toLowerCase())>-1)o=!0;else{var s=ge.getComputedStyle(r);s&&s.getPropertyValue("cursor")==="pointer"&&(o=!0)}a.push(r),n=r}return{parentIsUsefulElement:o,targetElementList:a}};function Cx(t){for(var e=t;e.parentNode&&!Fs(e,"body");e=e.parentNode){var o=Cv(e);if(Et(o,"ph-sensitive")||Et(o,"ph-no-capture"))return!1}if(Et(Cv(t),"ph-include"))return!0;var a=t.type||"";if(Eo(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!Eo(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 p4(t){return!!(Fs(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Fs(t,"select")||Fs(t,"textarea")||t.getAttribute("contenteditable")==="true")}var m4="(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})",ice=new RegExp("^(?:"+m4+")$"),sce=new RegExp(m4),h4="\\d{3}-?\\d{2}-?\\d{4}",lce=new RegExp("^("+h4+")$"),cce=new RegExp("("+h4+")");function Ap(t,e){return e===void 0&&(e=!0),!(_t(t)||Eo(t)&&(t=hb(t),(e?ice:sce).test((t||"").replace(/[- ]/g,""))||(e?lce:cce).test(t)))}function R2(t){var e=Qp(t);return Ap(e=(e+" "+g4(t)).trim())?e:""}function g4(t){var e="";return t&&t.childNodes&&t.childNodes.length&&vo(t.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Qp(o);e=(e+" "+n).trim(),o.childNodes&&o.childNodes.length&&(e=(e+" "+g4(o)).trim())}catch(r){$e.error("[AutoCapture]",r)}})),e}function D2(t){return t.replace(/"|\\"/g,'\\"')}function dce(t){var e=t.attr__class;return e?Bt(e)?e:IC(e):void 0}class O2{constructor(e){this.disabled=e===!1;var o=Bo(e)?e:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(e,o,a){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(o-n.y)<this.thresholdPx&&this.timeoutMs>a-n.timestamp){if(this.clicks.push({x:e,y:o,timestamp:a}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:o,timestamp:a}];return!1}}var iw="$copy_autocapture",M2=wo("[AutoCapture]");function sw(t,e){return e.length>t?e.slice(0,t)+"...":e}function uce(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!vb(e));return e}function pce(t,e){for(var o,a,{e:n,maskAllElementAttributes:r,maskAllText:s,elementAttributeIgnoreList:c,elementsChainAsString:d}=e,u=[t],m=t;m.parentNode&&!Fs(m,"body");)c4(m.parentNode)?(u.push(m.parentNode.host),m=m.parentNode.host):(u.push(m.parentNode),m=m.parentNode);var h,f,v=[],y={},S=!1,x=!1;if(vo(u,(P=>{var D=Cx(P);P.tagName.toLowerCase()==="a"&&(S=P.getAttribute("href"),S=D&&S&&Ap(S)&&S),Et(Cv(P),"ph-no-capture")&&(x=!0),v.push((function(O,L,$,B){var z=O.tagName.toLowerCase(),F={tag_name:z};LC.indexOf(z)>-1&&!$&&(F.$el_text=z.toLowerCase()==="a"||z.toLowerCase()==="button"?sw(1024,R2(O)):sw(1024,Qp(O)));var W=Cv(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),vo(O.attributes,(function(J){var ie;if((!p4(O)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&(B==null||!B.includes(J.name))&&!L&&Ap(J.value)&&(!Eo(ie=J.name)||ie.substring(0,10)!=="_ngcontent"&&ie.substring(0,7)!=="_nghost")){var Q=J.value;J.name==="class"&&(Q=IC(Q).join(" ")),F["attr__"+J.name]=sw(1024,Q)}}));for(var oe=1,H=1,K=O;K=uce(K);)oe++,K.tagName===O.tagName&&H++;return F.nth_child=oe,F.nth_of_type=H,F})(P,r,s,c));var R=(function(O){if(!Cx(O))return{};var L={};return vo(O.attributes,(function($){if($.name&&$.name.indexOf("data-ph-capture-attribute")===0){var B=$.name.replace("data-ph-capture-attribute-",""),z=$.value;B&&z&&Ap(z)&&(L[B]=z)}})),L})(P);Mo(y,R)})),x)return{props:{},explicitNoCapture:x};if(s||(v[0].$el_text=t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?R2(t):Qp(t)),S){var w,k;v[0].attr__href=S;var _=(w=yv(S))==null?void 0:w.host,C=ge==null||(k=ge.location)==null?void 0:k.host;_&&C&&_!==C&&(h=S)}return{props:Mo({$event_type:n.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(f=v,(function(P){return P.map((D=>{var R,O,L="";if(D.tag_name&&(L+=D.tag_name),D.attr_class)for(var $ of(D.attr_class.sort(),D.attr_class))L+="."+$.replace(/"/g,"");var B=Ne({},D.text?{text:D.text}:{},{"nth-child":(R=D.nth_child)!==null&&R!==void 0?R:0,"nth-of-type":(O=D.nth_of_type)!==null&&O!==void 0?O:0},D.href?{href:D.href}:{},D.attr_id?{attr_id:D.attr_id}:{},D.attributes),z={};return Cf(B).sort(((F,W)=>{var[oe]=F,[H]=W;return oe.localeCompare(H)})).forEach((F=>{var[W,oe]=F;return z[D2(W.toString())]=D2(oe.toString())})),(L+=":")+Cf(z).map((F=>{var[W,oe]=F;return W+'="'+oe+'"'})).join("")})).join(";")})((function(P){return P.map((D=>{var R,O,L={text:(R=D.$el_text)==null?void 0:R.slice(0,400),tag_name:D.tag_name,href:(O=D.attr__href)==null?void 0:O.slice(0,2048),attr_class:dce(D),attr_id:D.attr__id,nth_child:D.nth_child,nth_of_type:D.nth_of_type,attributes:{}};return Cf(D).filter(($=>{var[B]=$;return B.indexOf("attr__")===0})).forEach(($=>{var[B,z]=$;return L.attributes[B]=z})),L}))})(f)))},(o=v[0])!=null&&o.$el_text?{$el_text:(a=v[0])==null?void 0:a.$el_text}:{},h&&n.type==="click"?{$external_click_url:h}:{},y)}}var rp=wo("[ExceptionAutocapture]");function N2(t,e,o){try{if(!(e in t))return()=>{};var a=t[e],n=o(a);return Ai(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=n,()=>{t[e]=a}}catch{return()=>{}}}var mce=wo("[TracingHeaders]"),vs=wo("[Web Vitals]"),I2=9e5,L2="disabled",B2="lazy_loading",ip="awaiting_config",of="missing_config";wo("[SessionRecording]"),wo("[SessionRecording]");var Ex="[SessionRecording]",bs=wo(Ex),hce=wo("[Heatmaps]");function F2(t){return Bo(t)&&"clientX"in t&&"clientY"in t&&ir(t.clientX)&&ir(t.clientY)}var j2=wo("[Product Tours]"),gce=["$set_once","$set"],ys=wo("[SiteApps]"),z2="Error while initializing PostHog app with config id ";function ed(t,e,o){if(_t(t))return!1;switch(o){case"exact":return t===e;case"contains":var a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(a,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class fce{constructor(e){this.vn=new NC,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=e,this.bn=new Set,this._n=new Set}init(){var e,o;qe((e=this._instance)==null?void 0:e._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((a,n)=>{this.on(a,n)}))}register(e){var o,a;if(!qe((o=this._instance)==null?void 0:o._addCaptureHook)&&(e.forEach((s=>{var c,d;(c=this._n)==null||c.add(s),(d=s.steps)==null||d.forEach((u=>{var m;(m=this.bn)==null||m.add(u?.event||"")}))})),(a=this._instance)!=null&&a.autocapture)){var n,r=new Set;e.forEach((s=>{var c;(c=s.steps)==null||c.forEach((d=>{d!=null&&d.selector&&r.add(d?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(r)}}on(e,o){var a;o!=null&&e.length!=0&&(this.bn.has(e)||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(e){this.onAction("actionCaptured",(o=>e(o)))}wn(e,o){if(o?.steps==null)return!1;for(var a of o.steps)if(this.fn(e,a))return!0;return!1}onAction(e,o){return this.vn.on(e,o)}gn(e,o){if(o!=null&&o.url){var a,n=e==null||(a=e.properties)==null?void 0:a.$current_url;if(!n||typeof n!="string"||!ed(n,o.url,o.url_matching||"contains"))return!1}return!0}mn(e,o){return!!this.Cn(e,o)&&!!this.Sn(e,o)&&!!this.xn(e,o)}Cn(e,o){var a;if(o==null||!o.href)return!0;var n=this.kn(e);if(n.length>0)return n.some((c=>ed(c.href,o.href,o.href_matching||"exact")));var r,s=(e==null||(a=e.properties)==null?void 0:a.$elements_chain)||"";return!!s&&ed((r=s.match(/(?::|")href="(.*?)"/))?r[1]:"",o.href,o.href_matching||"exact")}Sn(e,o){var a;if(o==null||!o.text)return!0;var n=this.kn(e);if(n.length>0)return n.some((u=>ed(u.text,o.text,o.text_matching||"exact")||ed(u.$el_text,o.text,o.text_matching||"exact")));var r,s,c,d=(e==null||(a=e.properties)==null?void 0:a.$elements_chain)||"";return!!d&&(r=(function(u){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!_t(m=f.exec(u));)h.includes(m[1])||h.push(m[1]);return h})(d),s=o.text,c=o.text_matching||"exact",r.some((u=>ed(u,s,c))))}xn(e,o){var a,n;if(o==null||!o.selector)return!0;var r=e==null||(a=e.properties)==null?void 0:a.$element_selectors;if(r!=null&&r.includes(o.selector))return!0;var s=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";if(o.selector_regex&&s)try{return new RegExp(o.selector_regex).test(s)}catch{return!1}return!1}kn(e){var o;return(e==null||(o=e.properties)==null?void 0:o.$elements)==null?[]:e?.properties.$elements}yn(e,o){return o==null||!o.properties||o.properties.length===0||r4(o.properties.reduce(((a,n)=>{var r=Bt(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return a[n.key]={values:r,operator:n.operator||"exact"},a}),{}),e?.properties)}}class vce{constructor(e){this._instance=e,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(e,o){return!!e&&r4(e.propertyFilters,o?.properties)}Nn(e,o){var a=new Map;return e.forEach((n=>{var r;(r=n.conditions)==null||(r=r[o])==null||(r=r.values)==null||r.forEach((s=>{if(s!=null&&s.name){var c=a.get(s.name)||[];c.push(n.id),a.set(s.name,c)}}))})),a}Mn(e,o,a){var n=(a===ep.Activation?this.Tn:this.An).get(e),r=[];return this.Fn((s=>{r=s.filter((c=>n?.includes(c.id)))})),r.filter((s=>{var c,d=(c=s.conditions)==null||(c=c[a])==null||(c=c.values)==null?void 0:c.find((u=>u.name===e));return this.Rn(d,o)}))}register(e){var o;qe((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(e),this.Pn(e))}Pn(e){var o=e.filter((a=>{var n,r;return((n=a.conditions)==null?void 0:n.actions)&&((r=a.conditions)==null||(r=r.actions)==null||(r=r.values)==null?void 0:r.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new fce(this._instance),this.Ln.init(),this.Ln.In((a=>{this.onAction(a)}))),o.forEach((a=>{var n,r,s,c,d;a.conditions&&(n=a.conditions)!=null&&n.actions&&(r=a.conditions)!=null&&(r=r.actions)!=null&&r.values&&((s=a.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0&&((c=this.Ln)==null||c.register(a.conditions.actions.values),(d=a.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((u=>{if(u&&u.name){var m=this.En.get(u.name);m&&m.push(a.id),this.En.set(u.name,m||[a.id])}})))})))}On(e){var o,a=e.filter((r=>{var s,c;return((s=r.conditions)==null?void 0:s.events)&&((c=r.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),n=e.filter((r=>{var s,c;return((s=r.conditions)==null?void 0:s.cancelEvents)&&((c=r.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(((r,s)=>{this.onEvent(r,s)})),this.Tn=this.Nn(e,ep.Activation),this.An=this.Nn(e,ep.Cancellation))}onEvent(e,o){var a,n=this.le(),r=this.Dn(),s=this.Bn(),c=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[r])||[];if(s===e&&o&&c.length>0){var d,u;n.info("event matched, removing item from activated items",{event:e,eventPayload:o,existingActivatedItems:c});var m=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(u=o.properties)==null?void 0:u.$product_tour_id);if(m){var h=c.indexOf(m);0>h||(c.splice(h,1),this.jn(c))}}else{if(this.An.has(e)){var f=this.Mn(e,o,ep.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:f.map((y=>y.id))}),f.forEach((y=>{var S=c.indexOf(y.id);0>S||c.splice(S,1),this.$n(y.id)})),this.jn(c))}if(this.Tn.has(e)){n.info("event name matched",{event:e,eventPayload:o,items:this.Tn.get(e)});var v=this.Mn(e,o,ep.Activation);this.jn(c.concat(v.map((y=>y.id))||[]))}}}onAction(e){var o,a=this.Dn(),n=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[a])||[];this.En.has(e)&&this.jn(n.concat(this.En.get(e)||[]))}jn(e){var o=this.le(),a=[...new Set(e)].filter((n=>!this.qn(n)));o.info("updating activated items",{activatedItems:a}),this.Zn(a)}getActivatedIds(){var e,o=this.Dn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class bce extends vce{constructor(e){super(e)}Dn(){return lx}Bn(){return wp.SHOWN}Fn(e){var o;(o=this._instance)==null||o.getSurveys(e)}$n(e){var o;(o=this._instance)==null||o.cancelPendingSurvey(e)}le(){return oo}Zn(e){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[lx]:e})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var lw="SDK is not enabled or survey functionality is not yet loaded",U2="Disabled. Not loading surveys.",yce=ge!=null&&ge.location?Tv(ge.location.hash,"__posthog")||Tv(location.hash,"state"):null,$2="_postHogToolbarParams",q2=wo("[Toolbar]"),Wa=wo("[FeatureFlags]"),kl=wo("[FeatureFlags]",{debugEnabled:!0}),cw=`" failed. Feature flags didn't load in time.`,V2=t=>{for(var e={},o=0;t.length>o;o++)e[t[o]]=!0;return e},H2=t=>{var e={};for(var[o,a]of Cf(t||{}))a&&(e[o]=a);return e},_i=wo("[Error tracking]"),G2="Refusing to render web experiment since the viewer is a likely bot",Sce={icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!ge&&kv(e.href,t),not_regex:(t,e)=>!!ge&&!kv(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class La{get Bt(){return this._instance.config}constructor(e){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(a){a===void 0&&(a=!1),o.getWebExperiments((n=>{La.Hn("retrieved web experiments from the server"),o.zn=new Map,n.forEach((r=>{if(r.feature_flag_key){var s;o.zn&&(La.Hn("setting flag key ",r.feature_flag_key," to web experiment ",r),(s=o.zn)==null||s.set(r.feature_flag_key,r));var c=o._instance.getFeatureFlag(r.feature_flag_key);Eo(c)&&r.variants[c]&&o.Un(r.name,c,r.variants[c].transforms)}else if(r.variants)for(var d in r.variants){var u=r.variants[d];La.Yn(u)&&o.Un(r.name,d,u.transforms)}}))}),a)},this._instance=e,this._instance.onFeatureFlags((a=>{this.onFeatureFlags(a)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())La.Hn(G2);else if(!this.Bt.disable_web_experiments){if(_t(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();La.Hn("applying feature flags",e),e.forEach((o=>{var a;if(this.zn&&(a=this.zn)!=null&&a.has(o)){var n,r=this._instance.getFeatureFlag(o),s=(n=this.zn)==null?void 0:n.get(o);r&&s!=null&&s.variants[r]&&this.Un(s.name,r,s.variants[r].transforms)}}))}}previewWebExperiment(){var e=La.getWindowLocation();if(e!=null&&e.search){var o=Sv(e?.search,"__experiment_id"),a=Sv(e?.search,"__experiment_variant");o&&a&&(La.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(e,o,a){if(this.Bt.disable_web_experiments&&!a)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!o)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:r=>e(r.statusCode===200&&r.json&&r.json.experiments||[])})}Gn(e,o,a){var n=a.filter((r=>r.id===e));n&&n.length>0&&(La.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+o+"]"),this.Un(n[0].name,o,n[0].variants[o].transforms))}static Yn(e){return!_t(e.conditions)&&La.Wn(e)&&La.Xn(e)}static Wn(e){var o;if(_t(e.conditions)||_t((o=e.conditions)==null?void 0:o.url))return!0;var a,n,r,s=La.getWindowLocation();return!!s&&((a=e.conditions)==null||!a.url||Sce[(n=(r=e.conditions)==null?void 0:r.urlMatchType)!==null&&n!==void 0?n:"icontains"](e.conditions.url,s))}static getWindowLocation(){return ge?.location}static Xn(e){var o;if(_t(e.conditions)||_t((o=e.conditions)==null?void 0:o.utm))return!0;var a=q3();if(a.utm_source){var n,r,s,c,d,u,m,h,f=(n=e.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((r=e.conditions)==null||(r=r.utm)==null?void 0:r.utm_campaign)==a.utm_campaign,v=(s=e.conditions)==null||(s=s.utm)==null||!s.utm_source||((c=e.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==a.utm_source,y=(d=e.conditions)==null||(d=d.utm)==null||!d.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==a.utm_medium,S=(m=e.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=e.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==a.utm_term;return f&&y&&S&&v}return!1}static Hn(e){for(var o=arguments.length,a=new Array(o>1?o-1:0),n=1;o>n;n++)a[n-1]=arguments[n];$e.info("[WebExperiments] "+e,a)}Un(e,o,a){this._is_bot()?La.Hn(G2):o!=="control"?a.forEach((n=>{if(n.selector){var r;La.Hn("applying transform of variant "+o+" for experiment "+e+" ",n);var s=(r=document)==null?void 0:r.querySelectorAll(n.selector);s?.forEach((c=>{var d=c;n.html&&(d.innerHTML=n.html),n.css&&d.setAttribute("style",n.css)}))}})):La.Hn("Control variants leave the page unmodified.")}_is_bot(){return Nn&&this._instance?a4(Nn,this.Bt.custom_blocked_useragents):void 0}}var Zn=wo("[Conversations]"),Cl="Conversations not available yet.",bb={featureFlags:class{constructor(t){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=t,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(t){return this._instance.get_property(t)}ls(){var t,e;return(t=(e=this.ni)==null?void 0:e.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Wa.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var t,e=(t=this.Bt.evaluation_contexts)!==null&&t!==void 0?t:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Wa.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),e!=null&&e.length?e.filter((o=>{var a=o&&typeof o=="string"&&o.trim().length>0;return a||Wa.error("Invalid evaluation context found:",o,"Expected non-empty string"),a})):[]}cs(){return this.hs().length>0}initialize(){var t,e,{config:o}=this._instance,a=(t=(e=o.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(a).length){var n,r,s=(n=(r=o.bootstrap)==null?void 0:r.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(a).filter((u=>!!a[u])).reduce(((u,m)=>(u[m]=a[m]||!1,u)),{}),d=Object.keys(s).filter((u=>c[u])).reduce(((u,m)=>(s[m]&&(u[m]=s[m]),u)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(t,e,o){var a=o!=null&&o.merge?this.getFlagVariants():{},n=o!=null&&o.merge?this.getFlagPayloads():{},r=Ne({},a,t),s=Ne({},n,e),c={};for(var[d,u]of Object.entries(r)){var m=typeof u=="string";c[d]={key:d,enabled:!!m||!!u,variant:m?u:void 0,reason:void 0,metadata:qe(s?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:s[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.os(nx),e=this.os(Pi),o=this.os(ld);if(!o&&!e)return t||{};var a=Mo({},t||{}),n=[...new Set([...Object.keys(o||{}),...Object.keys(e||{})])];for(var r of n){var s,c,d=a[r],u=e?.[r],m=qe(u)?(s=d?.enabled)!==null&&s!==void 0&&s:!!u,h=qe(u)?d.variant:typeof u=="string"?u:void 0,f=o?.[r],v=Ne({},d,{enabled:m,variant:m?h??d?.variant:void 0});m!==d?.enabled&&(v.original_enabled=d?.enabled),h!==d?.variant&&(v.original_variant=d?.variant),f&&(v.metadata=Ne({},d?.metadata,{payload:f,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),a[r]=v}return this.Jn||(Wa.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:o,finalDetails:a}),this.Jn=!0),a}getFlagVariants(){var t=this.os(fd),e=this.os(Pi);if(!e)return t||{};for(var o=Mo({},t),a=Object.keys(e),n=0;a.length>n;n++)o[a[n]]=e[a[n]];return this.Jn||(Wa.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var t=this.os(rx),e=this.os(ld);if(!e)return t||{};for(var o=Mo({},t||{}),a=Object.keys(e),n=0;a.length>n;n++)o[a[n]]=e[a[n]];return this.Jn||(Wa.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,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(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.es=t}vs(t){var e;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,a=this.os(uv),n={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Ne({},((e=this.ni)==null?void 0:e.get_initial_props())||{},this.os(Tp)||{}),group_properties:this.os(Pl),timezone:Y3()};ji(a)||qe(a)||(n.$device_id=a),(t!=null&&t.disableFlags||this.Bt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.cs()&&(n.evaluation_contexts=this.hs());var r=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:r,data:n,compression:this.Bt.disable_compression?void 0:$r.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:s=>{var c,d,u,m=!0;if(s.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),m=!1),this.Qn=!1,!n.disable_flags||this.ts){this.rs=!m;var h=[];s.error?s.error instanceof Error?h.push(s.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):s.statusCode!==200&&h.push("api_error_"+s.statusCode),(c=s.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var f,v=!((d=s.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&h.push("quota_limited"),(u=this.ni)==null||u.register({[dx]:h}),v?Wa.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=s.json)!==null&&f!==void 0?f:{},m,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(t,e){var o;if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFeatureFlagResult(t,e);return(o=a?.variant)!==null&&o!==void 0?o:a?.enabled}}else Wa.warn('getFeatureFlag for key "'+t+cw)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e?.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),a=t in o,n=o[t],r=this.getFlagPayloads()[t],s=String(n),c=this.os(ix)||void 0,d=this.os(mv)||void 0,u=this.os(Ep)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(cx);h&&h!==f&&(u={},(m=this.ni)==null||m.register({[Ep]:u,[cx]:h}))}if((e.send_event||!("send_event"in e))&&(!(t in u)||!u[t].includes(s))){var v,y,S,x,w,k,_,C,P,D;Bt(u[t])?u[t].push(s):u[t]=[s],(v=this.ni)==null||v.register({[Ep]:u});var R=this.getFeatureFlagDetails(t),O=[...(y=this.os(dx))!==null&&y!==void 0?y:[]];qe(n)&&O.push("flag_missing");var L={$feature_flag:t,$feature_flag_response:n,$feature_flag_payload:r||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[t])||null,$feature_flag_bootstrapped_payload:((x=this.Bt.bootstrap)==null||(x=x.featureFlagPayloads)==null?void 0:x[t])||null,$used_bootstrap_value:!this.rs};qe(R==null||(w=R.metadata)==null?void 0:w.version)||(L.$feature_flag_version=R.metadata.version);var $,B=(k=R==null||(_=R.reason)==null?void 0:_.description)!==null&&k!==void 0?k:R==null||(C=R.reason)==null?void 0:C.code;B&&(L.$feature_flag_reason=B),R!=null&&(P=R.metadata)!=null&&P.id&&(L.$feature_flag_id=R.metadata.id),qe(R?.original_variant)&&qe(R?.original_enabled)||(L.$feature_flag_original_response=qe(R.original_variant)?R.original_enabled:R.original_variant),R!=null&&(D=R.metadata)!=null&&D.original_payload&&(L.$feature_flag_original_payload=R==null||($=R.metadata)==null?void 0:$.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(a){var z=r;if(!qe(r))try{z=JSON.parse(r)}catch{}return{key:t,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:z}}}}else Wa.warn('getFeatureFlagResult for key "'+t+cw)}getRemoteConfigPayload(t,e){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:$r.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var r,s=(r=n.json)==null?void 0:r.featureFlagPayloads;e(s?.[t]||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(t,e);return qe(o)?void 0:!!o}Wa.warn('isFeatureEnabled for key "'+t+cw)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e,o){if(this.ni){this.Kn=!0;var a=this.getFlagVariants(),n=this.getFlagPayloads(),r=this.getFlagsWithDetails();(function(s,c,d,u,m,h){d===void 0&&(d={}),u===void 0&&(u={}),m===void 0&&(m={});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]})))):Wa.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(s),v=f.flags,y=f.featureFlags,S=f.featureFlagPayloads;if(y){var x=s.requestId,w=s.evaluatedAt;if(Bt(y)){Wa.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var k={};if(y)for(var _=0;y.length>_;_++)k[y[_]]=!0;c&&c.register({[xf]:y,[fd]:k})}else{var C=y,P=S,D=v;if(h!=null&&h.partialResponse)C=Ne({},d,C),P=Ne({},u,P),D=Ne({},m,D);else if(s.errorsWhileComputingFlags)if(v){var R=new Set(Object.keys(v).filter((O=>{var L;return!((L=v[O])!=null&&L.failed)})));C=Ne({},d,Object.fromEntries(Object.entries(C).filter((O=>{var[L]=O;return R.has(L)})))),P=Ne({},u,Object.fromEntries(Object.entries(P||{}).filter((O=>{var[L]=O;return R.has(L)})))),D=Ne({},m,Object.fromEntries(Object.entries(D||{}).filter((O=>{var[L]=O;return R.has(L)}))))}else C=Ne({},d,C),P=Ne({},u,P),D=Ne({},m,D);c&&c.register(Ne({[xf]:Object.keys(H2(C)),[fd]:C||{},[rx]:P||{},[nx]:D||{}},x?{[ix]:x}:{},w?{[mv]:w}:{}))}}})(t,this.ni,a,n,r,o),e||(this.ss=!1),this.ps(e)}}override(t,e){e===void 0&&(e=!1),Wa.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.ni)return Wa.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.ni.unregister(Pi),this.ni.unregister(ld),this.ps(),kl.info("All overrides cleared");if(Bt(t)){var e=V2(t);return this.ni.register({[Pi]:e}),this.ps(),kl.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var o,a=t;if(this.Jn=!!((o=a.suppressWarning)!==null&&o!==void 0&&o),"flags"in a){if(a.flags===!1)this.ni.unregister(Pi),kl.info("Flag overrides cleared");else if(a.flags){if(Bt(a.flags)){var n=V2(a.flags);this.ni.register({[Pi]:n})}else this.ni.register({[Pi]:a.flags});kl.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(ld),kl.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[ld]:a.payloads}),kl.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(t&&typeof t=="object")return this.ni.register({[Pi]:t}),this.ps(),kl.info("Flag overrides set",{flags:t});Wa.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Kn){var{flags:e,flagVariants:o}=this.gs();t(e,o)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,o){var a,n=(this.os(Sp)||[]).find((d=>d.flagKey===t)),r={["$feature_enrollment/"+t]:e},s={$feature_flag:t,$feature_enrollment:e,$set:r};n&&(s.$early_access_feature_name=n.name),o&&(s.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",s),this.setPersonPropertiesForFlags(r,!1);var c=Ne({},this.getFlagVariants(),{[t]:e});(a=this.ni)==null||a.register({[xf]:Object.keys(H2(c)),[fd]:c}),this.ps()}getEarlyAccessFeatures(t,e,o){e===void 0&&(e=!1);var a=this.os(Sp),n=o?"&"+o.map((r=>"stage="+r)).join("&"):"";if(a&&!e)return t(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+n),method:"GET",callback:r=>{var s,c;if(r.json){var d=r.json.earlyAccessFeatures;return(s=this.ni)==null||s.unregister(Sp),(c=this.ni)==null||c.register({[Sp]:d}),t(d)}}})}gs(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((o=>e[o])),flagVariants:Object.keys(e).filter((o=>e[o])).reduce(((o,a)=>(o[a]=e[a],o)),{})}}ps(t){var{flags:e,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((a=>a(e,o,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var o=this.os(Tp)||{},a=t?.$set||(t!=null&&t.$set_once?{}:t),n=t?.$set_once,r={};if(n)for(var s in n)({}).hasOwnProperty.call(n,s)&&(s in o||(r[s]=n[s]));this._instance.register({[Tp]:Ne({},o,r,a)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Tp)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var o=this.os(Pl)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Ne({},o[a],t[a]),delete t[a]})),this._instance.register({[Pl]:Ne({},o,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.os(Pl)||{};this._instance.register({[Pl]:Ne({},e,{[t]:{}})})}else this._instance.unregister(Pl)}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}}},Tce={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var t;return!((t=this.ys)==null||!t.isStarted)}get status(){var t,e;return this.bs===ip||this.bs===of?this.bs:(t=(e=this.ys)==null?void 0:e.status)!==null&&t!==void 0?t:this.bs}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=L2,this._s=void 0,this._instance=t,!this._instance.sessionManager)throw bs.error("started without valid sessionManager"),new Error(Ex+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Ri)throw new Error(Ex+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var t,e=!((t=this._instance.get_property(yp))==null||!t.enabled),o=!this.Bt.disable_session_recording,a=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&e&&o&&!a}startIfEnabledOrStop(t){var e;if(!this.ws||(e=this.ys)==null||!e.isStarted){var o=!qe(Object.assign)&&!qe(Array.from);this.ws&&o?(this.Is(t),bs.info("starting")):(this.bs=L2,this.stopRecording())}}Is(t){var e,o,a;this.ws&&(this.bs!==ip&&this.bs!==of&&(this.bs=B2),ot!=null&&(e=ot.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(o=ot.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(t):(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return bs.error("could not load recorder",n);this.Cs(t)})))}stopRecording(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.stop()}xs(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.discard()}ks(){var t;(t=this.ni)==null||t.unregister(AC)}Ts(t,e){if(_t(t))return null;var o,a=ir(t)?t:parseFloat(t);return typeof(o=a)!="number"||!Number.isFinite(o)||0>o||o>1?(bs.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):a}As(t){if(this.ni){var e,o,a=this.ni,n=()=>{var r,s=t.sessionRecording===!1?void 0:t.sessionRecording,c=this.Ts((r=this.Bt.session_recording)==null?void 0:r.sampleRate,"session_recording.sampleRate"),d=this.Ts(s?.sampleRate,"remote config sampleRate"),u=c??d;_t(u)&&this.ks();var m=s?.minimumDurationMilliseconds;a.register({[yp]:Ne({cache_timestamp:Date.now(),enabled:!!s},s,{networkPayloadCapture:Ne({capturePerformance:t.capturePerformance},s?.networkPayloadCapture),canvasRecording:{enabled:s?.recordCanvas,fps:s?.canvasFps,quality:s?.canvasQuality},sampleRate:u,minimumDurationMilliseconds:qe(m)?null:m,endpoint:s?.endpoint,triggerMatchType:s?.triggerMatchType,masking:s?.masking,urlTriggers:s?.urlTriggers,version:s?.version,triggerGroups:s?.triggerGroups})})};n(),(e=this._s)==null||e.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(n)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.As(t),void this.xs()):(this.As(t),void this.startIfEnabledOrStop()):(this.bs===ip&&(this.bs=of,bs.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var o;e===void 0&&(e="log"),(o=this.ys)!=null&&o.log?this.ys.log(t,e):bs.warn("log called before recorder was ready")}get Ss(){var t,e,o=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(yp);return(o==null||(e=o.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}Es(){var t,e=this._instance.get_property(yp);if(!e)return!1;var o=(t=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-o}Cs(t){var e,o;if((e=ot.__PosthogExtensions__)==null||!e.initSessionRecording)return bs.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[F3]:!0});if(this.ys||(this.ys=(o=ot.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===of||this.bs===ip?void 0:(this.bs=ip,bs.info("persisted remote config is stale, requesting fresh config before starting"),void new Z3(this._instance).load());this.bs=B2,this.ys.start(t)}onRRwebEmit(t){var e;(e=this.ys)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.ys||(e=this.ni)==null||e.register({[O3]:!0}),(t=this.ys)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.ys||(e=this.ni)==null||e.register({[D3]:!0}),(t=this.ys)==null||t.overrideSampling()}overrideTrigger(t){var e,o;this.ys||(o=this.ni)==null||o.register({[t==="url"?M3:N3]:!0}),(e=this.ys)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.ys)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(t,e))}}},wce={autocapture:class{constructor(t){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=t,this.rageclicks=new O2(t.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var t,e,o=Bo(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(t=o.url_allowlist)==null?void 0:t.map((a=>new RegExp(a))),o.url_ignorelist=(e=o.url_ignorelist)==null?void 0:e.map((a=>new RegExp(a))),o}Os(){if(this.isBrowserSupported()){if(ge&&ze){var t=o=>{o=o||ge?.event;try{this.Ps(o)}catch(a){M2.error("Failed to capture event",a)}};if(Qo(ze,"submit",t,{capture:!0}),Qo(ze,"change",t,{capture:!0}),Qo(ze,"click",t,{capture:!0}),this.Bt.capture_copied_text){var e=o=>{this.Ps(o=o||ge?.event,iw)};Qo(ze,"copy",e,{capture:!0}),Qo(ze,"cut",e,{capture:!0})}}}else M2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.Ms=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Z0]:!!t.autocapture_opt_out}),this.Ns=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.Fs=t}getElementSelectors(t){var e,o=[];return(e=this.Fs)==null||e.forEach((a=>{var n=ze?.querySelectorAll(a);n?.forEach((r=>{t===r&&o.push(a)}))})),o}get isEnabled(){var t,e,o=(t=this.instance.persistence)==null?void 0:t.props[Z0];if(ji(this.Ns)&&!Kr(o)&&!this.instance.Fr())return!1;var a=(e=this.Ns)!==null&&e!==void 0?e:!!o;return!!this.instance.config.autocapture&&!a}Ps(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var o,a=E2(t);l4(a)&&(a=a.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&(function(h,f){if(!ge||kx(h))return!1;var v,y,S;if(Kr(f)?(v=!!f&&P2,y=void 0):(v=(S=f?.css_selector_ignorelist)!==null&&S!==void 0?S:P2,y=f?.content_ignorelist),v===!1)return!1;var{targetElementList:x}=A2(h,!1);return!(function(w,k){if(w===!1||qe(w))return!1;var _;if(w===!0)_=rce;else{if(!Bt(w))return!1;if(w.length>10)return $e.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;_=w.map((C=>C.toLowerCase()))}return k.some((C=>{var{safeText:P,ariaLabel:D}=C;return _.some((R=>P.includes(R)||D.includes(R)))}))})(y,x.map((w=>{var k;return{safeText:Qp(w).toLowerCase(),ariaLabel:((k=w.getAttribute("aria-label"))==null?void 0:k.toLowerCase().trim())||""}})))&&!_2(x,v)})(a,this.instance.config.rageclick)&&this.Ps(t,"$rageclick");var n=e===iw;if(a&&(function(h,f,v,y,S){var x,w,k,_;if(v===void 0&&(v=void 0),!ge||kx(h)||(x=v)!=null&&x.url_allowlist&&!C2(v.url_allowlist)||(w=v)!=null&&w.url_ignorelist&&C2(v.url_ignorelist))return!1;if((k=v)!=null&&k.dom_event_allowlist){var C=v.dom_event_allowlist;if(C&&!C.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:P,targetElementList:D}=A2(h,y);if(!(function(L,$){var B=$?.element_allowlist;if(qe(B))return!0;var z,F=function(oe){if(B.some((H=>oe.tagName.toLowerCase()===H)))return{v:!0}};for(var W of L)if(z=F(W))return z.v;return!1})(D,v)||!_2(D,(_=v)==null?void 0:_.css_selector_allowlist))return!1;var R=ge.getComputedStyle(h);if(R&&R.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var O=h.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 P?(S||["click"]).indexOf(f.type)>=0:(S||["click"]).indexOf(f.type)>=0&&(LC.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(a,t,this.Bt,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:s}=pce(a,{e:t,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(s)return!1;var c=this.getElementSelectors(a);if(c&&c.length>0&&(r.$element_selectors=c),e===iw){var d,u=d4(ge==null||(d=ge.getSelection())==null?void 0:d.toString()),m=t.type||"clipboard";if(!u)return!1;r.$selected_content=u,r.$copy_type=m}return this.instance.capture(e,r),!0}}}isBrowserSupported(){return Ai(ze?.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.Ls=(ge==null||(e=ge.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&($e.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,$e.info("History API monitoring stopped")}monitorHistoryChanges(){var t,e;if(ge&&ge.history){var o=this;(t=ge.history.pushState)!=null&&t.__posthog_wrapped__||N2(ge.history,"pushState",(a=>function(n,r,s){a.call(this,n,r,s),o.Bs("pushState")})),(e=ge.history.replaceState)!=null&&e.__posthog_wrapped__||N2(ge.history,"replaceState",(a=>function(n,r,s){a.call(this,n,r,s),o.Bs("replaceState")})),this.js()}}Bs(t){try{var e,o=ge==null||(e=ge.location)==null?void 0:e.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(cd,{navigation_type:t}),this.Ls=o}catch(a){$e.error("Error capturing "+t+" pageview",a)}}js(){if(!this.Ds){var t=()=>{this.Bs("popstate")};Qo(ge,"popstate",t),this.Ds=()=>{ge&&ge.removeEventListener("popstate",t)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(t){var e;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=t,this.$s=!((e=this.instance.persistence)==null||!e.props[Q0]),this.rageclicks=new O2(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return Bo(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(t=this.Bt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return _t(this.Bt.capture_heatmaps)?_t(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;hce.info("starting..."),this.Zs(),this.Ft()}else{var t;clearInterval((t=this.qs)!==null&&t!==void 0?t:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Q0]:e}),this.$s=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.T;return this.T=void 0,t}Hs(t){this.Tt(t.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),Qo(ge,vv,this.zs),this.Us=t=>this.Tt(t||ge?.event),Qo(ze,"click",this.Us,{capture:!0}),this.Ys=t=>this.Gs(t||ge?.event),Qo(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new r2(this.instance,_le,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Qo(ze,fv,this.Xs),this.Rs=!0)}Vs(){var t;ge&&ze&&(this.zs&&ge.removeEventListener(vv,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(fv,this.Xs),clearTimeout(this.Js),(t=this.Ws)==null||t.stop(),this.Rs=!1)}Ks(t,e){var o=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),r=(function(s,c,d){for(var u=s;u&&vb(u)&&!Fs(u,"body");){if(u===d)return!1;if(Et(c,ge?.getComputedStyle(u).position))return!0;u=u4(u)}return!1})(E2(t),["fixed","sticky"],n);return{x:t.clientX+(r?0:a),y:t.clientY+(r?0:o),target_fixed:r,type:e}}Tt(t,e){var o;if(e===void 0&&(e="click"),!k2(t.target)&&F2(t)){var a=this.Ks(t,e);(o=this.rageclicks)!=null&&o.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Qs(Ne({},a,{type:"rageclick"})),this.Qs(a)}}Gs(t){!k2(t.target)&&F2(t)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(t,"mousemove"))}),500))}Qs(t){if(ge){var e=ge.location.href,o=this.Bt.custom_personal_data_properties,a=this.Bt.mask_personal_data_properties?[...$d,...o||[]]:[],n=Yp(e,a,Zp);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(t)}}Yr(){this.T&&!gd(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:r2,webVitalsAutocapture:class{constructor(t){var e;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)=>Ne({},o,{["$web_vitals_"+a.name+"_event"]:Ne({},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))vs.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var r=this.io();qe(r)||(_t(o?.name)||_t(o?.value)?vs.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==r&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),qe(this.T.url)&&(this.T.url=r),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(Ne({},o,{$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):vs.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,a,n,r,s=ot.__PosthogExtensions__;qe(s)||qe(s.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:a,onFCP:n,onINP:r}=s.postHogWebVitalsCallbacks),o&&a&&n&&r?(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&&r(this.ht.bind(this)),this.Rs=!0):vs.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.$s=!((e=this._instance.persistence)==null||!e.props[tx]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,o=Bo(this.oo)?(t=this.oo)==null?void 0:t.web_vitals_allowed_metrics:void 0;return _t(o)?((e=this._instance.persistence)==null?void 0:e.props[ax])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Bo(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=Bo(this.oo)?this.oo.web_vitals_attribution:void 0;return t!=null&&t}get no(){var t=Bo(this.oo)&&ir(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:I2;return t>0&&6e4>=t?I2:t}get isEnabled(){var t=xa?.protocol;if(t!=="http:"&&t!=="https:")return vs.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=Bo(this.oo)?this.oo.web_vitals:Kr(this.oo)?this.oo:void 0;return Kr(e)?e:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(vs.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(t){if("capturePerformance"in t){var e=Bo(t.capturePerformance)&&!!t.capturePerformance.web_vitals,o=Bo(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[tx]:e}),this._instance.persistence.register({[ax]:o})),this.$s=e,this.startIfEnabled()}}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(a=>{a?vs.error("failed to load script",a):t()}))}io(){var t=ge?ge.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...$d,...e||[]]:[];return Yp(t,o,Zp)}vs.error("Could not determine current URL")}}},xce={exceptionObserver:class{constructor(t){var e,o,a;this.so=()=>{var n;if(ge&&this.isEnabled&&(n=ot.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var r=ot.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,s=ot.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=ot.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=r(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=s(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){rp.error("failed to start",d),this.ho()}}},this._instance=t,this.co=!((e=this._instance.persistence)==null||!e.props[J0]),this.do=new Lse({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:rp}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Bo(t)?e=Ne({},e,t):(qe(t)?this.co:t)&&(e=Ne({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(rp.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(a=>{if(a)return rp.error("failed to load script",a);t()}))}ho(){var t,e,o;(t=this.ao)==null||t.call(this),this.ao=void 0,(e=this.lo)==null||e.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.co=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[J0]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(t){var e,o,a,n=(e=t==null||(o=t.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&e!==void 0?e:"Exception";this.do.consumeRateLimit(n)?rp.info("Skipping exception capture because of client rate limiting.",{exception:n}):(a=this._instance.exceptions)==null||a.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,o;this.fo=[],this.po=new Yse([new ale,new ple,new rle,new nle,new dle,new cle,new sle,new ule],(function(a){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;n>s;s++)r[s-1]=arguments[s];return function(c,d){d===void 0&&(d=0);for(var u=[],m=c.split(`
|
|
168
|
-
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=t2.test(f)?f.replace(t2,"$1"):f;if(!v.match(/\S*Error: /)){for(var y of r){var S=y(v,a);if(S){u.push(S);break}}if(u.length>=50)break}}}return(function(x){if(!x.length)return[];var w=Array.from(x);return w.reverse(),w.slice(0,50).map((k=>{return Ne({},k,{filename:k.filename||(_=w,_[_.length-1]||{}).filename,function:k.function||Ud});var _}))})(u)}})("web:javascript",Xse,ole)),this._instance=t,this.fo=(e=(o=this._instance.persistence)==null?void 0:o.get_property(X0))!==null&&e!==void 0?e:[],this.mo=dv(this.yo()),this.bo=new hle(this.mo)}onConfigChange(){this.mo=dv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,o,a;if("errorTracking"in t){var n=(e=(o=t.errorTracking)==null?void 0:o.suppressionRules)!==null&&e!==void 0?e:[],r=(a=t.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[X0]:this.fo,[ex]:r})}}get _o(){var t,e=!!this._instance.get_property(ex),o=this._instance.config.error_tracking.captureExtensionExceptions;return(t=o??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.po.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.mo.enabled)try{if(!Eo(t)||t.trim().length===0)return void _i.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(e),{sanitizedProperties:a,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var s=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>mle.has(d)?(s.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:s}})(o);n.length>0&&_i.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Ne({[lv]:t,[cv]:new Date().toISOString()},a))}catch(r){_i.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Io(e)){if(this.Co(e))return this.So("Exception dropped: matched a suppression rule"),void _i.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(e))return this.So("Exception dropped: thrown by a browser extension"),void _i.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(e))return this.So("Exception dropped: thrown by the PostHog SDK"),void _i.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&_t(t.$exception_steps)?this.To(t):t;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return _i.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void _i.error("Failed to process exception event. Ignoring this exception.",n)}}To(t){try{var e=this.bo.getAttachable();return e.length===0?t:Ne({},t,{$exception_steps:e})}catch(o){return _i.error("Failed to read buffered exception steps. Capturing exception without steps.",o),t}}So(t){this.mo.enabled&&this.bo.add({[lv]:t,[cv]:new Date().toISOString()})}wo(t){return Bo(t)?Ne({},t):{}}yo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Co(t){if(t.length===0)return!1;var e=t.reduce(((o,a)=>{var{type:n,value:r}=a;return Eo(n)&&n.length>0&&o.$exception_types.push(n),Eo(r)&&r.length>0&&o.$exception_values.push(r),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var r,s=n4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=e[n.key])!==null&&r!==void 0?r:[];return c.length>0&&s(c,d)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(t){return t.flatMap((e=>{var o,a;return(o=(a=e.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,o,a,n,r=(e=(o=t[0].stacktrace)==null?void 0:o.frames)!==null&&e!==void 0?e:[],s=r[r.length-1];return(a=s==null||(n=s.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(t){return!_t(t)&&Bt(t)}}},kce=Ne({productTours:class{get ni(){return this._instance.persistence}constructor(t){this.Ao=null,this.Eo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ni&&this.ni.register({[ox]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(ox)||this.ur((()=>this.Ro()))}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.generateProductTours?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?j2.error("Could not load product tours script",a):t()}))}Ro(){var t;!this.Ao&&(t=ot.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=ot.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Bt(this.Eo)||e){var o=this.ni;if(o){var a=o.props[kf];if(Bt(a)&&!e)return this.Eo=a,void t(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 r=n.statusCode;if(r!==200||!n.json){var s="Product Tours API could not be loaded, status: "+r;return j2.error(s),void t([],{isLoaded:!1,error:s})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[kf]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){_t(this.Ao)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Ao)==null||e.showTourById(t)}previewTour(t){this.Ao?this.Ao.previewTour(t):this.ur((()=>{var e;this.Ro(),(e=this.Ao)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Ao)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Ao)==null||t.nextStep()}previousStep(){var t;(t=this.Ao)==null||t.previousStep()}clearCache(){var t;this.Eo=null,(t=this.ni)==null||t.unregister(kf)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},bb),Cce={siteApps:class{constructor(t){this._instance=t,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(t,e){if(e){var o=this.globalsForEvent(e);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=ot._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{t(),this.No=[],this.Fo=void 0}}}globalsForEvent(t){var e,o,a,n,r,s,c;if(!t)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:v,$set:y}=t;return{event:Ne({},r3(t,gce),{properties:Ne({},t.properties,y?{$set:Ne({},(e=(o=t.properties)==null?void 0:o.$set)!==null&&e!==void 0?e:{},y)}:{},v?{$set_once:Ne({},(a=(n=t.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(r=(s=t.properties)==null?void 0:s.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(t){var e=this.apps[t.id],o=()=>{var s;!e.errored&&this.No.length&&(ys.info("Processing "+this.No.length+" events for site app with id "+t.id),this.No.forEach((c=>e.processEvent==null?void 0:e.processEvent(c))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((s=this.Fo)==null||s.call(this))},a=!1,n=s=>{e.errored=!s,e.loaded=!0,ys.info("Site app with id "+t.id+" "+(s?"loaded":"errored")),a&&o()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(s){n(s)}});r&&(e.processEvent=r),a=!0}catch(s){ys.error(z2+t.id,s),n(!1)}if(a&&e.loaded)try{o()}catch(s){ys.error("Error while processing buffered events PostHog app with config id "+t.id,s),e.errored=!0}}Oo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of t)this.setupSiteApp(o)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(e)}catch(a){ys.error("Error while processing event "+t.event+" for site app "+o.id,a)}}}onRemoteConfig(t){var e,o,a,n=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void ys.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=t.siteApps)!=null&&a.length)if(this.isEnabled){var r=function(d){var u;ot["__$$ph_site_app_"+d]=n._instance,(u=ot.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return ys.error(z2+d,m)}))};for(var{id:s,url:c}of t.siteApps)r(s)}else ys.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Ece={tracingHeaders:class{constructor(t){this.Lo=void 0,this.Do=void 0,this.so=()=>{var e,o,a=this.Bo()||[];qe(this.Lo)&&((e=ot.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),qe(this.Do)&&((o=ot.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return mce.error("failed to load script",a);t()}))}Bo(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,e;this.Bo()?this.ur(this.so):((t=this.Lo)==null||t.call(this),(e=this.Do)==null||e.call(this),this.Lo=void 0,this.Do=void 0)}}},_ce=Ne({surveys:class{get Bt(){return this._instance.config}constructor(t){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Bt.disable_surveys){var e=t.surveys;if(_t(e))return oo.warn("Flags not loaded yet. Not loading surveys.");var o=Bt(e);this.jo=o?e.length>0:e,oo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var o=localStorage.key(e);(o!=null&&o.startsWith(wx)||o!=null&&o.startsWith("inProgressSurvey_"))&&t.push(o)}t.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)oo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)oo.info(U2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())oo.info("Not loading surveys in cookieless mode without consent.");else{var t=ot?.__PosthogExtensions__;if(t){if(!qe(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=t.generateSurveys;if(o)return void this.Vo(o,e);var a=t.loadExternalDependency;if(!a)return void this.Ho(RC);a(this._instance,"surveys",(n=>{n||!t.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(t.generateSurveys,e)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else oo.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new bce(this._instance),oo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){oo.error(t,e),this.zo({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.qo.push(t),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Bt.disable_surveys)return oo.info(U2),t([]);var o,a=this._instance.get_property(sx);if(a&&!e)return t(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:s}=n;return t(r,s)})):(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 r;this.Zo=null;var s=n.statusCode;if(s!==200||!n.json){var c="Surveys API could not be loaded, status: "+s;oo.error(c);var d={isLoaded:!1,error:c};return t([],d),void(o==null||o({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[sx]:m});var f={isLoaded:!0};t(m,f),o?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(o){oo.error("Error in survey callback",o)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!_t(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);oo.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((o=>{var a;e=(a=o.find((n=>n.id===t)))!==null&&a!==void 0?a:null})),e}Yo(t){if(_t(this._surveyManager))return{eligible:!1,reason:lw};var e=typeof t=="string"?this.Uo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(_t(this._surveyManager))return oo.warn("init was not called"),{visible:!1,disabledReason:lw};var e=this.Yo(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return _t(this._surveyManager)?(oo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:lw})):new Promise((o=>{this.getSurveys((a=>{var n,r=(n=a.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var s=this.Yo(r);o({visible:s.eligible,disabledReason:s.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,o){var a;if(_t(this._surveyManager))oo.warn("init was not called");else{var n=typeof t=="string"?this.Uo(t):t;if(n!=null&&n.id)if(Jle.includes(n.type)){var r=ze?.querySelector(e);if(r)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(oo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var s,c;oo.info("Rendering survey "+n.id+" with delay of "+((s=n.appearance)==null?void 0:s.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,o),oo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,o);oo.warn("Survey element not found")}else oo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else oo.warn("Survey not found")}}displaySurvey(t,e){var o;if(_t(this._surveyManager))oo.warn("init was not called");else{var a=this.Uo(t);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Ne({},a,{appearance:Ne({},a.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==fx.Popover&&e.initialResponses&&oo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(a);if(!r.visible)return void oo.warn("Survey is not eligible to be displayed: ",r.disabledReason)}e.displayType!==fx.Inline?this._surveyManager.handlePopoverSurvey(n,e):this.renderSurvey(n,e.selector,e.properties)}else oo.warn("Survey not found")}}cancelPendingSurvey(t){_t(this._surveyManager)?oo.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},bb),Pce={toolbar:class{constructor(t){this.instance=t}Go(t){ot.ph_toolbar_state=t}Wo(){var t;return(t=ot.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,o){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),j3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,o=o??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var a,n=yce||Tv(t.hash,"__posthog")||Tv(t.hash,"state"),r=n?a2((()=>JSON.parse(atob(decodeURIComponent(n)))))||a2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((a=r).source="url",a&&Object.keys(a).length>0&&(r.desiredHash?t.hash=r.desiredHash:o?o.replaceState(o.state,"",t.pathname+t.search):t.hash="")):((a=JSON.parse(e.getItem($2)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(t){var e=ot.ph_load_toolbar||ot.ph_load_editor;!_t(e)&&Ai(e)?e(t,this.instance):q2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById(I3));if(!ge||e)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Ne({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem($2,JSON.stringify(Ne({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=ot.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return q2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Qo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,o){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(t,e,o)}}},Ace=Ne({experiments:La},bb),Rce={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;_t(e)||(Kr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||j3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=ot?.__PosthogExtensions__;if(t&&!qe(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var e=t.initConversations;if(e)return this.ta(e),void(this.Qo=!1);var o=t.loadExternalDependency;if(!o)return void this.ra(RC);o(this._instance,"conversations",(a=>{a||!t.initConversations?this.ra("Could not load conversations script",a):this.ta(t.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Zn.error("Conversations enabled but missing token in remote config.")}}ta(t){if(this.ea)try{this._conversationsManager=t(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(e){this.ra("Error completing conversations initialization",e)}else Zn.error("Cannot complete initialization: remote config is null")}ra(t,e){Zn.error(t,e),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Zn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!ji(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,o){var a=this;return er((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(t,e,o):(Zn.warn(Cl),null)}))()}getMessages(t,e){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.getMessages(t,e):(Zn.warn(Cl),null)}))()}markAsRead(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Zn.warn(Cl),null)}))()}getTickets(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Zn.warn(Cl),null)}))()}requestRestoreLink(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Zn.warn(Cl),null)}))()}restoreFromToken(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Zn.warn(Cl),null)}))()}restoreFromUrlToken(){var t=this;return er((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Zn.warn(Cl),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}un(){var t;(t=this._conversationsManager)==null||t.setIdentity()}hn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},Dce={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=wo("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,o=(e=t.logs)==null?void 0:e.captureConsoleLogs;!_t(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 t=ot?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(o=>{var a;o||(a=t.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(RC)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,o,a,n,r,s;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,this.oa=0,this.la=!1),d>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:y,number:S}=C3[v]||Wse,x=String(Date.now())+"000000",w={};f.distinctId&&(w.posthogDistinctId=f.distinctId),f.sessionId&&(w.sessionId=f.sessionId),f.currentUrl&&(w["url.full"]=f.currentUrl),f.screenName&&(w["screen.name"]=f.screenName),f.appState&&(w["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(w.feature_flags=f.activeFeatureFlags);var k=Ne({},w,h.attributes||{}),_={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:S,severityText:y,body:{stringValue:h.body},attributes:e2(k)};return h.trace_id&&(_.traceId=h.trace_id),h.span_id&&(_.spanId=h.span_id),qe(h.trace_flags)||(_.flags=h.trace_flags),_})(t,this.ua());this.sa.push({record:m}),((r=(s=this._instance.config.logs)==null?void 0:s.maxBufferSize)!==null&&r!==void 0?r:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.ca}flushLogs(t){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var e=this.sa;this.sa=[];var o=this._instance.config.logs,a=Ne({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(s,c,d,u){return{resourceLogs:[{resource:{attributes:e2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:s}]}]}})(e.map((s=>s.record)),a,Za.LIB_NAME,Za.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:t})}}ha(){var t,e;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}ua(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=o}if(ot!=null&&(t=ot.location)!=null&&t.href&&(e.currentUrl=ot.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(e.activeFeatureFlags=a)}return e}}},Oce=Ne({},bb,Tce,wce,xce,kce,Cce,_ce,Ece,Pce,Ace,Rce,Dce);tr.__defaultExtensionClasses=Ne({},Oce);var W2,zi=(W2=Pp[dd]=new tr,(function(){function t(){t.done||(t.done=!0,s4=!1,vo(Pp,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Qo(ze,"DOMContentLoaded",t,{capture:!1}):ge&&$e.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),W2);let Ii=!1,_x=null,K2=!1;const BC="studio:lp-distinct-id",f4="mesh:lp-distinct-id",dw="/api/_reports/link-token/",Mce=1440*60*1e3;function v4(t){const e="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(t),a=t.startsWith("//");try{const n=new URL(t,e);let r=!1;for(const s of["key","d"])n.searchParams.has(s)&&(n.searchParams.delete(s),r=!0);return n.pathname.startsWith(dw)&&n.pathname!==dw&&(n.pathname=`${dw}redacted`,r=!0),r?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:t}catch{return t}}function uw(t){return Object.fromEntries(Object.entries(t).map(([e,o])=>[e,typeof o=="string"?v4(o):o]))}const Nce=t=>t?(t.properties=uw(t.properties),t.$set&&(t.$set=uw(t.$set)),t.$set_once&&(t.$set_once=uw(t.$set_once)),t):null;function b4(){try{const t=window.localStorage.getItem(BC)??window.localStorage.getItem(f4);if(!t)return;const{id:e,ts:o}=JSON.parse(t);return typeof e!="string"||!e||typeof o!="number"?void 0:Date.now()-o<=Mce?e:void 0}catch{return}}function Ice(){try{window.localStorage.removeItem(BC),window.localStorage.removeItem(f4)}catch{}}function Lce(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(BC,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const o=e??b4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function Bce(t){const e=b4();if(e&&(Ice(),e!==t))try{zi.alias(e)}catch{}}function Fce(t,e){if(Ii||typeof window>"u")return;const o=Lce();zi.init(t,{api_host:e,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:Nce,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:v4(a.name)}:{}})},person_profiles:"identified_only"}),Ii=!0}function jce(t,e){Ii&&(zi.identify(t,e),Bce(t))}function zce(){Ii&&(zi.reset(),_x=null)}function y4(t,e){Ii&&zi.capture(t,e)}function Ywe(){return Ii}function Zwe(){if(!Ii||K2||typeof performance>"u")return;K2=!0;const t=performance.getEntriesByType("navigation")[0],e=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};y4("perf_app_bootstrap",{nav_type:t?.type,ttfb_ms:t?Math.round(t.responseStart):void 0,dom_interactive_ms:t?Math.round(t.domInteractive):void 0,dom_content_loaded_ms:t?Math.round(t.domContentLoadedEventEnd):void 0,config_fetch_ms:e("studio:config-fetch"),active_org_fetch_ms:e("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:lJ(),org_cache_restored:cJ()})}function Qwe(t,e){Ii&&t!==_x&&(zi.group("organization",t,e),_x=t)}function S4(t,e){if(Ii)try{zi.captureException(t,e)}catch{}}const Uce=["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 $ce(t){const e=ye.c(3),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Uce}}),e[0]=a):a=e[0];let n;return e[1]!==o?(n=b.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,b.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),e[1]=o,e[2]=n):n=e[2],n}function T4(t){const e=ye.c(20),{orgName:o}=t,a=$a(),n=qce;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:b.jsx(Bj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let s;e[1]!==a?(s=a("common.archivedOrgScreen.orgUnavailable"),e[1]=a,e[2]=s):s=e[2];let c;e[3]!==s?(c=b.jsx("h3",{className:"text-lg font-medium",children:s}),e[3]=s,e[4]=c):c=e[4];let d;e[5]!==o||e[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),e[5]=o,e[6]=a,e[7]=d):d=e[7];let u;e[8]!==d?(u=b.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[8]=d,e[9]=u):u=e[9];let m;e[10]!==c||e[11]!==u?(m=b.jsxs("div",{className:"space-y-2",children:[c,u]}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let h;e[13]!==a?(h=a("common.goHome"),e[13]=a,e[14]=h):h=e[14];let f;e[15]!==h?(f=b.jsx(bn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let v;return e[17]!==m||e[18]!==f?(v=b.jsxs($ce,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=v):v=e[19],v}function qce(){window.location.href="/"}function Vce(){const t=ye.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:o}=rm(e);let a;return t[1]!==o?(a=b.jsx(bn,{variant:"outline",size:"sm",asChild:!0,children:b.jsx(Kl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),t[1]=o,t[2]=a):a=t[2],a}function Hce(t){const e=ye.c(13),{area:o,description:a,action:n}=t,r=o?`No access to ${o}`:"No access",s=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:b.jsx(Gj,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=b.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==s?(u=b.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:s}),e[3]=s,e[4]=u):u=e[4];let m;e[5]!==d||e[6]!==u?(m=b.jsxs("div",{className:"space-y-1",children:[d,u]}),e[5]=d,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==n?(h=n??b.jsx(Vce,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=b.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,m,h]}),e[10]=m,e[11]=h,e[12]=f):f=e[12],f}const Y2="__studio_chunk_reload_ts";function w4(t){return t?.message===BX}function Gce(t){return!!t?.message?.includes("Access denied")}function Z2(t){if(!t)return!1;const e=t.message||"";return e.includes("Failed to fetch dynamically imported module")||e.includes("Importing a module script failed")||e.includes("error loading dynamically imported module")||e.includes("Failed to fetch")&&t.name==="TypeError"}class Wce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o),S4(e,{boundary:"default",error_name:e.name,error_message:e.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:e,t:o}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:w4(this.state.error)?b.jsx(T4,{}):Gce(this.state.error)?b.jsx(Hce,{}):b.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:b.jsx(SC,{className:"h-6 w-6 text-destructive"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),b.jsx(bn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kce(t){const e=ye.c(3),o=$a();let a;return e[0]!==t||e[1]!==o?(a=b.jsx(Wce,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}class Yce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o);const a=Z2(e);if(S4(e,{boundary:"chunk_root",is_chunk_load_error:a,error_name:e.name,error_message:e.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(Y2),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(Y2,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&Z2(this.state.error)?b.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:b.jsx(Wj,{className:"h-6 w-6 text-primary"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),b.jsx(bn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?w4(this.state.error)?b.jsx(T4,{}):b.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:b.jsx(SC,{className:"h-6 w-6 text-destructive"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),b.jsx(bn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function Zce(t){const e=ye.c(3),o=$a();let a;return e[0]!==t||e[1]!==o?(a=b.jsx(Yce,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const Qce=Ql("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function Jce(t){const e=ye.c(14);let o,a,n,r,s;e[0]!==t?({className:o,size:r,interactive:a,asChild:s,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=s):(o=e[1],a=e[2],n=e[3],r=e[4],s=e[5]);const d=(s===void 0?!1:s)?rb:"div";let u;e[6]!==o||e[7]!==a||e[8]!==r?(u=Qe(Qce({size:r,interactive:a}),o),e[6]=o,e[7]=a,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=b.jsx(d,{"data-slot":"card",className:u,...n}),e[10]=d,e[11]=n,e[12]=u,e[13]=m):m=e[13],m}function Jwe(t){const e=ye.c(11),{title:o,description:a,docsHref:n,actions:r,className:s,children:c}=t;let d;e[0]!==s?(d=Qe("flex flex-col gap-3",s),e[0]=s,e[1]=d):d=e[1];let u;e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==o?(u=(o||a||n||r)&&b.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[b.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&b.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&b.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&b.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",b.jsx(Fj,{size:12})]})]})]}),r&&b.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=a,e[4]=n,e[5]=o,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=b.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function Xwe(t){const e=ye.c(11),{className:o,children:a}=t;let n,r,s;if(e[0]!==a||e[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=Jce,e[5]!==o?(r=Qe("p-0 gap-0 overflow-hidden",o),e[5]=o,e[6]=r):r=e[6],s=d.map(Xce),e[0]=a,e[1]=o,e[2]=n,e[3]=r,e[4]=s}else n=e[2],r=e[3],s=e[4];let c;return e[7]!==n||e[8]!==r||e[9]!==s?(c=b.jsx(n,{className:r,children:s}),e[7]=n,e[8]=r,e[9]=s,e[10]=c):c=e[10],c}function Xce(t,e){return b.jsxs("div",{children:[e>0&&b.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function e0e(t){const e=ye.c(27),{icon:o,title:a,description:n,action:r,onClick:s,className:c,children:d}=t,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=s&&"hover:bg-accent cursor-pointer";let h;e[0]!==c||e[1]!==u||e[2]!==m?(h=Qe(u,m,c),e[0]=c,e[1]=u,e[2]=m,e[3]=h):h=e[3];const f=s?"button":void 0,v=s?0:void 0;let y;e[4]!==s?(y=s?P=>{P.target===P.currentTarget&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),s())}:void 0,e[4]=s,e[5]=y):y=e[5];let S;e[6]!==o?(S=o&&b.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),e[6]=o,e[7]=S):S=e[7];let x;e[8]!==a?(x=b.jsx("div",{className:"text-sm font-medium",children:a}),e[8]=a,e[9]=x):x=e[9];let w;e[10]!==n?(w=n&&b.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),e[10]=n,e[11]=w):w=e[11];let k;e[12]!==d||e[13]!==x||e[14]!==w?(k=b.jsxs("div",{className:"flex-1 min-w-0",children:[x,w,d]}),e[12]=d,e[13]=x,e[14]=w,e[15]=k):k=e[15];let _;e[16]!==r?(_=r&&b.jsx("div",{className:"shrink-0",onClick:ede,children:r}),e[16]=r,e[17]=_):_=e[17];let C;return e[18]!==s||e[19]!==k||e[20]!==_||e[21]!==h||e[22]!==f||e[23]!==v||e[24]!==y||e[25]!==S?(C=b.jsxs("div",{className:h,onClick:s,role:f,tabIndex:v,onKeyDown:y,children:[S,k,_]}),e[18]=s,e[19]=k,e[20]=_,e[21]=h,e[22]=f,e[23]=v,e[24]=y,e[25]=S,e[26]=C):C=e[26],C}function ede(t){return t.stopPropagation()}function t0e(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Qe("px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=b.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function o0e(t){const e=ye.c(5),{children:o,className:a}=t;let n;e[0]!==a?(n=Qe("flex items-center justify-end gap-2 px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=b.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function tde(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Qe("flex flex-col gap-10",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=b.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}const yb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:Qj,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:Yj,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:Uj,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:Kj,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:Vj,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:qj,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function a0e(t){const e=yb[t];return[...e.tabs.map(o=>o.to),...e.ownedRoutes??[]]}function n0e(t){return yb[t].tabs.length>0}const ode=new Set(["owner","admin"]);function x4(){const t=ye.c(11),{org:e,locator:o}=Ks();let a;t[0]!==o?(a=ta.myCapabilities(o),t[0]=o,t[1]=a):a=t[1];let n;t[2]!==e?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(e.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},t[2]=e,t[3]=n):n=t[3];let r;t[4]!==a||t[5]!==n?(r={queryKey:a,queryFn:n,staleTime:3e4,retry:2},t[4]=a,t[5]=n,t[6]=r):r=t[6];const{data:s,isLoading:c,isError:d}=Hs(r);let u;return t[7]!==s||t[8]!==d||t[9]!==c?(u={data:s,loading:c,error:d},t[7]=s,t[8]=d,t[9]=c,t[10]=u):u=t[10],u}function r0e(t){const e=ye.c(8),{data:o,loading:a,error:n}=x4();if(a){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},e[0]=u):u=e[0],u}if(n){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},e[1]=u):u=e[1],u}const r=o?.role??null;if(!r){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},e[2]=u):u=e[2],u}if(r==="owner"){let u;return e[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},e[3]=u):u=e[3],u}if(r==="admin"){let u;return e[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},e[4]=u):u=e[4],u}const s=o?.capabilities?.[t]===!0,c=s?"role":"denied";let d;return e[5]!==s||e[6]!==c?(d={granted:s,loading:!1,error:!1,reason:c},e[5]=s,e[6]=c,e[7]=d):d=e[7],d}function k4(){const t=ye.c(10),{data:e,loading:o,error:a}=x4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?ode.has(n):!1,t[0]=n,t[1]=r):r=t[1];const s=r;let c;t[2]!==e?.capabilities?(c=e?.capabilities??{},t[2]=e?.capabilities,t[3]=c):c=t[3];const d=c;let u;return t[4]!==a||t[5]!==s||t[6]!==o||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:o,error:a,isPrivileged:s,roleSlug:n},t[4]=a,t[5]=s,t[6]=o,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function ade(){const t=ye.c(13),{org:e}=Ks(),o=Vk(),{capabilities:a,isPrivileged:n}=k4(),r=n||!!a["members:manage"];let s;t[0]!==e.id?(s=ta.infraBillingSites(e.id),t[0]=e.id,t[1]=s):s=t[1];const c=!!e.id&&r;let d;t[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),t[2]=o,t[3]=d):d=t[3];let u;t[4]!==s||t[5]!==c||t[6]!==d?(u={queryKey:s,staleTime:3e5,enabled:c,queryFn:d},t[4]=s,t[5]=c,t[6]=d,t[7]=u):u=t[7];const{data:m,isLoading:h}=Hs(u);let f;t[8]!==m?.sites?(f=m?.sites.map(nde)??[],t[8]=m?.sites,t[9]=f):f=t[9];let v;return t[10]!==h||t[11]!==f?(v={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=v):v=t[12],v}function nde(t){return t.slug}function i0e(){const t=ye.c(7),e=Vk(),o=$a();let a;t[0]!==e?(a=s=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:s}),t[0]=e,t[1]=a):a=t[1];let n;t[2]!==o?(n=s=>Id.error(o("settings.infraBilling.portalError",{message:s.message})),t[2]=o,t[3]=n):n=t[3];let r;return t[4]!==a||t[5]!==n?(r={mutationFn:a,onSuccess:rde,onError:n},t[4]=a,t[5]=n,t[6]=r):r=t[6],ff(r)}function rde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function s0e(t,e){const o=ye.c(14),{org:a}=Ks(),n=Vk();let r,s,c;o[0]!==a.id||o[1]!==e||o[2]!==t?(r=[...t].sort(),c=Hs,s=ta.infraBilling(a.id,r.join(","),e),o[0]=a.id,o[1]=e,o[2]=t,o[3]=r,o[4]=s,o[5]=c):(r=o[3],s=o[4],c=o[5]);const d=r.length>0;let u;o[6]!==e||o[7]!==r||o[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),o[6]=e,o[7]=r,o[8]=n,o[9]=u):u=o[9];let m;return o[10]!==s||o[11]!==d||o[12]!==u?(m={queryKey:s,enabled:d,staleTime:6e4,queryFn:u},o[10]=s,o[11]=d,o[12]=u,o[13]=m):m=o[13],c(m)}function ide(){const t=ye.c(7),{capabilities:e,isPrivileged:o,loading:a,error:n}=k4(),{sites:r,isLoading:s}=ade(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==o||t[3]!==a||t[4]!==c||t[5]!==s){const u=m=>m.requiresOwnedSites&&!c&&!s?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||e[m.requires]:!0;d=Object.fromEntries(Object.values(yb).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=o,t[3]=a,t[4]=c,t[5]=s,t[6]=d}else d=t[6];return d}function sde(t){const e=ye.c(16),{group:o}=t,a=$a();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=rm(n);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={select:lde},e[1]=s):s=e[1];const c=gk(s),d=ide()[o],{titleKey:u}=yb[o];let m;e[2]!==a||e[3]!==u?(m=a(u),e[2]=a,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=b.jsx(xd.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==o||e[8]!==r||e[9]!==c||e[10]!==a||e[11]!==d?(f=d.length>1&&b.jsx(pn.Toolbar.Left.Portal,{children:b.jsx(xd.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(y=>{const S=y.to.replace("$org",r),x=c===S||c.startsWith(`${S}/`);return b.jsx(xd.Tab,{active:x,asChild:!0,children:b.jsx(Kl,{to:y.to,params:{org:r},onClick:()=>y4("settings_subnav_clicked",{group_key:o,tab_key:y.key}),children:a(y.labelKey)})},y.key)})})}),e[7]=o,e[8]=r,e[9]=c,e[10]=a,e[11]=d,e[12]=f):f=e[12];let v;return e[13]!==h||e[14]!==f?(v=b.jsxs(b.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=v):v=e[15],v}function lde(t){return t.location.pathname}function C4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[b.jsx(bO,{className:"h-32 w-full"}),b.jsx(bO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function cde(t){const e=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:s}=t;let c;e[0]!==o?(c=b.jsx(sde,{group:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==a?(d=a??b.jsx(C4,{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==s||e[5]!==d?(u=b.jsx(A.Suspense,{fallback:d,children:s}),e[4]=s,e[5]=d,e[6]=u):u=e[6];let m;e[7]!==n||e[8]!==u?(m=b.jsx(Kce,{fallback:n,children:u}),e[7]=n,e[8]=u,e[9]=m):m=e[9];let h;return e[10]!==r||e[11]!==c||e[12]!==m?(h=b.jsx(xd,{children:b.jsx(xd.Content,{children:b.jsx(xd.Container,{children:b.jsxs(tde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function Ui(t){return function(){return b.jsx(cde,{group:t,children:b.jsx(C4,{})})}}function dde(t,e){const o=t&&e?rJ(e,t):null;return{queryKey:ta.activeOrganization(t),queryFn:async()=>{if(!t)return null;const a={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ia.organization.getFullOrganization({query:a}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=SB(n);return n&&!r&&localStorage.setItem(Zs.lastOrgSlug(),t),e&&n&&iJ(e,t,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}async function ude(t){await wB();const e=zX();e&&await Zl.ensureQueryData(dde(t,e)).catch(()=>{})}function pde(t){try{localStorage.setItem(Zs.lastLocation(),JSON.stringify(t))}catch{}}function mde(){try{const t=localStorage.getItem(Zs.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function l0e(){try{localStorage.removeItem(Zs.lastLocation())}catch{}}const ft={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},tt={root:ft.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",releases:"/$org/projects/$agentId/releases",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",calendar:"/$org/projects/$agentId/calendar",monitor:"/$org/projects/$agentId/cdn",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function c0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:hde},t[0]=e):e=t[0],gk(e)}function hde(t){return t.matches.at(-1)?.fullPath??""}const gde=new Map([[ft.reports,"project-only"],[ft.library,"org-only"],[ft.threadAnalytics,"org-only"]]);function d0e(t,e){const o=gde.get(t);return o===void 0?!0:o==="project-only"?e!==null:e===null}function u0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:fde},t[0]=e):e=t[0],gk(e)}function fde(t){return t.matches.findLast(vde)?.staticData.mainView}function vde(t){return t.staticData.mainView}function _f(t){return`agent-view:${encodeURIComponent(t)}`}function bde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const o=decodeURIComponent(e);return o?{id:o}:null}catch{return null}}function E4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function FC(t,e){return`app:${t}:${e}`}function yde(t){if(!t||!t.startsWith("app:"))return null;const e=t.slice(4),o=e.indexOf(":");if(o<=0)return null;const a=e.slice(0,o),n=e.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function _4(t){return`deck:${encodeURIComponent(t)}`}function Sde(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function P4(t){return`file:${encodeURIComponent(t)}`}function Tde(t){if(!t||!t.startsWith("file:"))return null;const e=t.slice(5);if(!e)return null;try{return{key:decodeURIComponent(e)}}catch{return null}}function A4(t){return`library-file:${encodeURIComponent(t)}`}function wde(t){if(!t||!t.startsWith("library-file:"))return null;const e=t.slice(13);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function R4(t){return`code:${encodeURIComponent(t)}`}function xde(t){if(!t)return null;if(t==="code")return{path:null};if(!t.startsWith("code:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}const D4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],kde=new Set(D4),O4=new Set(["hosting","e2e","analytics","cdn"]),Cde=new Set(["board","files","connect-sources","reports"]);function p0e(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Ede=new Map([["preview","site-editor"],["git","site-editor"]]);function Sb(t){return Ede.get(t)??t}const jC=new Set(["instructions","connections","layout","settings"]);function _de(t){return!!t&&jC.has(t)}const Pde=new Set(["overview","board","reports"]);function m0e(t){const e=t?.defaultMainView??null;if(!(!e||e.type==="chat"))return M4(t??null)}function M4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const o=Sb(e.type);if(jC.has(o))return"settings";if(kde.has(o)||Pde.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(e.id&&e.toolName)return FC(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?_f(e.id):n[0]?_f(n[0]):"settings"}const a=t?.tabs?.[0]?.id;return a?_f(a):"settings"}function h0e(t){const e=t.routeDefaultMain||M4(t.metadata),o=t.panelTabId&&jC.has(t.panelTabId)?"settings":t.panelTabId?Sb(t.panelTabId):t.panelTabId,a=t.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:t.mainPanelParam??(!!o||!!t.routeDefaultMain||!n),activeTab:o??e}}function g0e(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function f0e(t){return t.mainOpen?t.activeTab==="automations"?!0:E4(t.activeTab)!==null:!1}const Ade=new Set([...D4.filter(t=>!O4.has(t)),...Cde,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Rde(t){return!!t&&Ade.has(t)}function Dde(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?FC(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?P4(e.key):void 0;case"deck":return e.deck?_4(e.deck):void 0;case"library-file":return e.path?A4(e.path):void 0;case"code":return e.file?R4(e.file):"code";default:{const o=Sb(t);return o==="site-editor"&&e.main==="content"?"content":o}}}function v0e(t){const e=t.params??{},o=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return o.file?R4(o.file):"code";if(t.siteEditorView==="preview")return"site-editor";switch(t.mainView){case"automation":return e.automationId?`automation:${e.automationId}`:"automations";case"app":return e.connectionId&&e.toolName?FC(e.connectionId,e.toolName):void 0;case"view":return e.viewId?_f(e.viewId):void 0;case"file":return o.key?P4(o.key):void 0;case"deck":return o.path?_4(o.path):void 0;case"library-file":return o.path?A4(o.path):void 0;default:return t.mainView}}const Ode={files:"library",discover:"discover"},Mde={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring"},Nde={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",calendar:"calendar",cdn:"monitor"};function N4(t){const e=bde(t);if(e)return{kind:"agent-view",viewId:e.id};const o=yde(t);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=E4(t);if(a)return{kind:"automations",automationId:a.id};const n=Tde(t);if(n)return{kind:"output-file",key:n.key};const r=Sde(t);if(r)return{kind:"output-deck",path:r.path};const s=wde(t);if(s)return{kind:"library-file",path:s.path};const c=xde(t);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(_de(t))return{kind:"agent-section",section:"settings"};const d=Sb(t);if(d==="overview")return{kind:"agent-overview"};if(d==="site-editor")return{kind:"site-editor",view:"preview"};if(d==="content")return{kind:"site-editor",view:"content"};if(d==="automations")return{kind:"automations"};if(d==="connect-sources")return{kind:"connect-sources"};const u=Mde[d];if(u)return{kind:"project-destination",destination:u};const m=Ode[d];if(m)return{kind:"org-destination",destination:m};const h=Nde[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function ql(t){const{org:e,agentId:o}=t,a={org:e,agentId:o},n=N4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:ft.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:tt.tasks,params:{...a,taskKey:t.taskKey},search:{}};case"reports":return r?{to:ft.reports,params:{org:e},search:{}}:{to:tt.reports,params:a,search:{}};case"plan":return r?{to:ft.plan,params:{org:e},search:{}}:{to:tt.plan,params:a,search:{}};case"monitoring":return r?{to:ft.monitoring,params:{org:e},search:{}}:{to:tt.monitoring,params:a,search:{}}}}case"org-destination":switch(n.destination){case"home":return{to:ft.home,params:{org:e},search:{}};case"discover":return{to:ft.discover,params:{org:e},search:{}};case"library":return{to:ft.library,params:{org:e},search:{}}}case"agent-overview":return{to:tt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:tt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:tt.siteEditorCode,params:a,search:{file:n.file}}:{to:tt.siteEditor,params:a,search:{}};case"agent-section":return{to:tt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:tt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:tt.automations,params:a,search:{}};case"app":return{to:tt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:tt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:tt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:tt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:tt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:tt.connectSources,params:a,search:{}}}}function b0e(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:ft.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",o=t.agentId!==t.superAgentId&&N4(e).kind==="org-destination"?"overview":e;return ql({org:t.org,agentId:t.agentId,tabId:o,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function Ide(t,e,o={}){const a=r=>({...o.search?.(r)??{},...e.search}),n=o.replace??!0;switch(e.to){case ft.tasks:t({to:ft.tasks,params:e.params,search:a,replace:n});return;case ft.home:t({to:ft.home,params:e.params,search:a,replace:n});return;case ft.reports:t({to:ft.reports,params:e.params,search:a,replace:n});return;case ft.discover:t({to:ft.discover,params:e.params,search:a,replace:n});return;case ft.plan:t({to:ft.plan,params:e.params,search:a,replace:n});return;case ft.monitoring:t({to:ft.monitoring,params:e.params,search:a,replace:n});return;case ft.library:t({to:ft.library,params:e.params,search:a,replace:n});return;case tt.root:t({to:tt.root,params:e.params,search:a,replace:n});return;case tt.tasks:t({to:tt.tasks,params:e.params,search:a,replace:n});return;case tt.reports:t({to:tt.reports,params:e.params,search:a,replace:n});return;case tt.plan:t({to:tt.plan,params:e.params,search:a,replace:n});return;case tt.monitoring:t({to:tt.monitoring,params:e.params,search:a,replace:n});return;case tt.siteEditor:t({to:tt.siteEditor,params:e.params,search:a,replace:n});return;case tt.siteEditorContent:t({to:tt.siteEditorContent,params:e.params,search:a,replace:n});return;case tt.siteEditorCode:t({to:tt.siteEditorCode,params:e.params,search:a,replace:n});return;case tt.automations:t({to:tt.automations,params:e.params,search:a,replace:n});return;case tt.automation:t({to:tt.automation,params:e.params,search:a,replace:n});return;case tt.app:t({to:tt.app,params:e.params,search:a,replace:n});return;case tt.view:t({to:tt.view,params:e.params,search:a,replace:n});return;case tt.outputFile:t({to:tt.outputFile,params:e.params,search:a,replace:n});return;case tt.outputDeck:t({to:tt.outputDeck,params:e.params,search:a,replace:n});return;case tt.libraryFile:t({to:tt.libraryFile,params:e.params,search:a,replace:n});return;case tt.connectSources:t({to:tt.connectSources,params:e.params,search:a,replace:n});return;case tt.settings:case tt.assets:case tt.releases:case tt.hosting:case tt.e2e:case tt.analytics:case tt.experiments:case tt.calendar:case tt.monitor:t({to:e.to,params:e.params,search:a,replace:n})}}function y0e(t,e){Ide(t,ql(e),e)}function Lde(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function Bde(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const Fde=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),I4=new Set(["main"]),jde=new Set(["virtualmcpid"]);function Tb(t,e){return Object.fromEntries(Object.entries(t).filter(([o])=>!e.has(o)))}function jl(t,e){return{...Tb(t,Fde),...e.search}}function zde(t){return Tb(t,jde)}function S0e(t){if(t.search.virtualmcpid===void 0)return null;const e=kr(t.search.virtualmcpid);if(e){const o=t.routePath===ft.tasks?"board":t.routePath===ft.reports?"reports":null;if(t.routePath===ft.home||o){const a=o?ql({org:t.org,agentId:e,tabId:o}):Vd(t.org,e);return{kind:"canonical",route:a,search:jl(t.search,a)}}}return t.routePath===ft.home||t.routePath===ft.tasks||t.routePath===ft.reports||t.routePath===ft.library?{kind:"same-route",search:zde(t.search)}:null}function kr(t){return t?.trim()||void 0}function L4(t){return Rde(t)||t!==void 0&&O4.has(t)}function B4(t){const e=kr(t);return e?e.startsWith("vir_")&&e.length>4||zL(e)!==null||NY(e)!==null||IY(e)!==null||$L(e)||qL(e):!1}function Ude(t){const e=kr(t.agentIdParam),o=L4(e);return e&&!o?e:kr(t.virtualMcpIdSearch)??kr(t.fallbackAgentId)}function T0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const s=Px({org:t.org,agentId:e,panel:t.pathLegacyView,source:"project-first",search:t.search});return s?.kind==="canonical"?{route:s.route,search:s.search}:null}if(!e||Bde(t.pathname))return null;const o=t.search.virtualmcpid!==void 0&&!B4(e);if(!(L4(e)||o))return null;const n=Ude({agentIdParam:o?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=Px({org:t.org,agentId:n,panel:e,source:"view-first",search:t.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function $de(t,e,o,a){const n=kr(a);switch(t){case"board":return n?ql({org:e,agentId:n,tabId:"board"}):{to:ft.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=Es(o.path);return{to:ft.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?ql({org:e,agentId:n,tabId:"reports"}):{to:ft.reports,params:{org:e},search:{}};case"overview":return{to:ft.home,params:{org:e},search:{}};case"discover":return{to:ft.discover,params:{org:e},search:{}};default:return null}}function Jp(t){const e=$de(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const o=kr(t.agentId);return o?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:o},search:{}}:ql({org:t.org,agentId:o,tabId:t.tabId}):null}function Vd(t,e){const o=kr(e);return o?{to:tt.root,params:{org:t,agentId:o},search:{}}:{to:ft.home,params:{org:t},search:{}}}function qde(t){const{main:e}=t;if(e===void 0)return null;const o=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Tb(o,I4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...jl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Jp({org:t.org,agentId:t.agentId,tabId:e,search:o});return a?{kind:"canonical",route:a,search:jl(o,a)}:null}function Es(t){return typeof t=="string"&&t.length>0?t:void 0}function Px(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const s=Px({...t,search:Tb(e,I4)});return s?.kind!=="canonical"?s:{...s,search:{...s.search,mainpanel:!1}}}if(e.main!==void 0)return qde({org:t.org,agentId:t.agentId,main:e.main,search:e});const o=kr(t.agentId),a=t.panel;if(!a){const s=Vd(t.org,o);return{kind:"canonical",route:s,search:jl(e,s)}}const n=Dde(a,{file:Es(e.file),key:Es(e.key),deck:Es(e.deck),path:Es(e.path),connection:Es(e.connection),tool:Es(e.tool),automation:Es(e.automation)}),r=n?t.source==="project-first"&&n==="overview"&&o?ql({org:t.org,agentId:o,tabId:n}):Jp({org:t.org,agentId:o,tabId:n,search:e}):Jp({org:t.org,agentId:o,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...jl(e,r),sidepanel:!0,mainpanel:!1}:jl(e,r)}:null}function w0e(t){const e=t.search??{},o=kr(e.virtualmcpid),a=kr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const s=Jp({org:t.org,agentId:o,tabId:n,search:e}),c=!s&&n.trim().length>0&&a?Jp({org:t.org,agentId:a,tabId:n,search:e}):null;r=s??c??{to:ft.home,params:{org:t.org},search:{}}}else r=Vd(t.org,o);return{route:r,search:{...jl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function F4(t,e){if(e.task===void 0)return null;const{task:o,...a}=e;return{taskKey:t??(o.trim()||void 0),search:a}}const pw=Rt().int().nonnegative().optional().catch(void 0),Vde={contentPageId:q().optional(),contentPath:q().optional(),contentPathTemplate:q().optional(),contentCollection:q().optional(),contentItem:q().optional(),contentPageVariant:pw,contentSection:pw,contentVariant:pw};function x0e(t){const e={};return t.contentPageVariant!==void 0&&(e.pageVariant=t.contentPageVariant),t.contentSection!==void 0&&(e.section=t.contentSection),t.contentVariant!==void 0&&(e.variant=t.contentVariant),Object.keys(e).length>0?e:null}const j4=Vde,zC={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(),sprint:q().optional(),boardOrg:q().optional()},Hde=["files","brand","connections","repositories","skills","memory","instructions","general","site"],Ev={fileView:io(["all","documents","media"]).catch("all").optional(),modified:io(["any","today","week","month"]).catch("any").optional(),layout:io(["list","grid"]).catch("list").optional(),sort:io(["name","updated","size"]).catch("name").optional(),path:q().optional(),preview:q().optional(),expanded:d0().optional().catch(void 0),skill:q().optional(),brand:q().optional(),section:io(Hde).catch("files").optional(),scope:io(["user"]).optional().catch(void 0),action:io(["create"]).optional().catch(void 0)},Gde={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:Kv().optional(),siteUrl:q().optional(),...j4},z4={...Gde,task:q().optional(),project:q().optional(),...zC,skill:Ev.skill,brand:Ev.brand},Tm=Te(z4),Xa=zq({component:()=>b.jsx(Zce,{children:b.jsx(hk,{})})}),Wde=De({getParentRoute:()=>Xa,path:"/login",component:Ie(()=>Le(()=>import("./login-p4pTEV4I.js"),__vite__mapDeps([0,1,2,3,4]))),validateSearch:Qr(()=>Te({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()}))}),Kde=De({getParentRoute:()=>Xa,path:"/cli/auth-success",component:Ie(()=>Le(()=>import("./cli-auth-success-DYKHxuzD.js"),__vite__mapDeps([5,4])))}),Yde=De({getParentRoute:()=>Xa,path:"/reset-password",component:Ie(()=>Le(()=>import("./reset-password-EsqG_9_N.js"),[])),validateSearch:Qr(()=>Te({token:q().optional(),error:q().optional()}))}),Zde=De({getParentRoute:()=>Xa,path:"/auth/$pathname",component:Ie(()=>Le(()=>import("./auth-catchall-BsEXKDlO.js"),[]))}),Qde=De({getParentRoute:()=>Xa,path:"/oauth/callback",component:Ie(()=>Le(()=>import("./oauth-callback-C24sI7J7.js"),__vite__mapDeps([6,7,8])))}),Jde=De({getParentRoute:()=>Xa,path:"/oauth/callback/ai-provider",component:Ie(()=>Le(()=>import("./oauth-callback-ai-provider-RnzKbWsN.js"),[]))}),wm=De({getParentRoute:()=>Xa,path:"/_admin",component:Ie(()=>Le(()=>import("./layout-C1UtsTjt.js"),__vite__mapDeps([9,10,11])))}),Xde=De({getParentRoute:()=>wm,path:"/",beforeLoad:()=>{throw ea({to:"/_admin/users"})}}),eue=De({getParentRoute:()=>wm,path:"/users",component:Ie(()=>Le(()=>import("./users-MhJxqzuf.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21])))}),tue=De({getParentRoute:()=>wm,path:"/orgs",component:Ie(()=>Le(()=>import("./orgs-CJ5rh6cM.js"),__vite__mapDeps([22,13,14,15,16,17,18,23,20,24,25,26,27,28,29,19,30,31,21])))}),oue=De({getParentRoute:()=>wm,path:"/prompts",component:Ie(()=>Le(()=>import("./prompts-CxG-l5n6.js"),__vite__mapDeps([32,16,23,29,21])))}),aue=wm.addChildren([Xde,eue,tue,oue]),UC=De({getParentRoute:()=>Xa,id:"shell",component:Ie(()=>Le(()=>import("./shell-layout-Dhack47g.js").then(t=>t.d),__vite__mapDeps([33,34,35,36,37,38,15,39,40,41,42,43,27,44,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,62,63,64,8,65,66,67,68,69,70,71,72,23,73,74,75,3,2,76,77,30,78,79,80,26,81,82,83,20,84,10,85,86,87])))}),nue=De({getParentRoute:()=>UC,path:"/",beforeLoad:async()=>{const t=mde();if(t)throw ea({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Zs.lastOrgSlug());if(e)throw ea({to:"/$org",params:{org:e}});const{data:o}=await xB();if(!o)return;const a=o[0];throw ea(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),rue=De({getParentRoute:()=>Xa,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await xB();if(t&&t.length>0)throw ea({to:"/"})},component:Ie(()=>Le(()=>import("./onboarding-DID9r4O7.js"),__vite__mapDeps([88,10,4,89,57,23,28,34,43,49,59])))}),U4=Qr(()=>Te({org:q().optional(),siteUrl:q().optional(),fix:q().optional()})),iue=De({getParentRoute:()=>Xa,path:"/reports-onboarding",component:Ie(()=>Le(()=>import("./reports-onboarding-DNfKLuiC.js"),__vite__mapDeps([90,91,1,2,3,4,89,57,92,93,23,94,64,8,95,70,40,36,37,38,15,39,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,18,58,59,60,61,80,26,96,97,98,99,20,100,101,102,103,7,104,105,106,107,108,109]))),validateSearch:U4}),sue=De({getParentRoute:()=>Xa,path:"/commerce-onboarding",validateSearch:U4,beforeLoad:({search:t})=>{throw ea({to:"/reports-onboarding",search:t})}}),lue=De({getParentRoute:()=>Xa,path:"/choose-editor",component:Ie(()=>Le(()=>import("./choose-editor-BrKo7WaN.js"),__vite__mapDeps([110,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,10]))),validateSearch:Qr(()=>Te({site:q().optional(),domain:q().optional(),pageId:q().optional(),path:q().optional(),pathTemplate:q().optional()}))}),$C=De({getParentRoute:()=>Xa,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Ie(()=>Le(()=>import("./site-editor-jHYcBntN.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,19,197,198,199,200,201,202,203,204,205,206,207,99,208,209,210,211,212,213,214,215,216,217,218,219,105,97,106,220,221,222,223,102,103,7,224,225,226,227,228,229,230,231,232])))}),cue=De({getParentRoute:()=>$C,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Ie(()=>Le(()=>import("./site-editor-jHYcBntN.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,19,197,198,199,200,201,202,203,204,205,206,207,99,208,209,210,211,212,213,214,215,216,217,218,219,105,97,106,220,221,222,223,102,103,7,224,225,226,227,228,229,230,231,232])),"SiteEditorPreview")}),due=De({getParentRoute:()=>$C,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Ie(()=>Le(()=>import("./site-editor-jHYcBntN.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,19,197,198,199,200,201,202,203,204,205,206,207,99,208,209,210,211,212,213,214,215,216,217,218,219,105,97,106,220,221,222,223,102,103,7,224,225,226,227,228,229,230,231,232])),"SiteEditorContent")}),uue=De({getParentRoute:()=>Xa,path:"/report/$domain",component:Ie(()=>Le(()=>import("./reports-Ciw0cmSs.js"),__vite__mapDeps([233,104,3,1,2,234])))}),wb=De({getParentRoute:()=>UC,path:"/$org",beforeLoad:({params:t})=>{pde({org:t.org})},loader:({params:t})=>ude(t.org),pendingMs:1/0,component:Ie(()=>Le(()=>import("./route-BHiTL7ed.js"),__vite__mapDeps([235,123,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,124,125,126,92,93,127,128,167,206,11,236,24,25,29,237,209,114,113,218,168,238,239,240,227,241,19,242,132,243,244,179,177,31,245,199,198,246,194,99,28,216])))}),xb=De({getParentRoute:()=>wb,id:"org-shell",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./thread-route-DL6c8KHu.js"),__vite__mapDeps([247,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,91,248,96,97,98,40,94,95,70,36,37,38,15,39,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,93,23,99,20,100,101,102,103,7,104,105,106,107,249,108])))}),pue=Te({sidepanel:VB,mainpanel:HB,main:so([q(),Ze(0)]).optional(),thread:q().optional(),autosend:q().optional(),preview:q().optional(),virtualmcpid:q().optional()}),en=De({getParentRoute:()=>xb,id:"agent-shell",validateSearch:pue,search:{middlewares:[dq(["sidepanel"])]},pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-D2VIJZi7.js"),__vite__mapDeps([250,37,36,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,205,112,113,114,115,144,206,152,143,93,145,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,216,217,218,219,105,97,106,107,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,149,150,153,132,203,204,180,135,133,139,16,116,122,251,252,253,199,190,189,244,179,177,31,187,198,127,254,255,256,257,258,134,170,129])))}),mue=Tm.extend({virtualmcpid:q().optional()}),hue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:mue,component:()=>null}),It=Ie(()=>Le(()=>import("./index-eXjVYv9z.js").then(t=>t.i),__vite__mapDeps([116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])),"ChatLayoutPending"),Lt=Ie(()=>Le(()=>import("./index-eXjVYv9z.js").then(t=>t.i),__vite__mapDeps([116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])),"ChatLayoutError"),gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:Te({connect:Kv().optional(),siteUrl:q().optional()}),component:Ie(()=>Le(()=>import("./home-CBeFS7md.js"),__vite__mapDeps([259,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,207,143,144,93,145,146,142,115,113,112,114,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,206,213,214,152,215,216,217,218,219,105,97,106,107,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,260,261,240,241,124,262,163,166,162,127,246,239,263,264,265,161,164,165,266,267,268,238,128,16,243])))}),fue=De({getParentRoute:()=>en,path:"/projects",validateSearch:Tm,beforeLoad:({params:t,search:e})=>{const o=(e.project??e.virtualmcpid)?.trim(),a=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!o)throw ea({to:"/$org/home",params:{org:t.org},search:a,hash:!0,replace:!0});const n=e.task?.trim();throw ea(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:o,taskKey:n},search:a,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a,hash:!0,replace:!0})}}),lo=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:Tm,component:hk}),vue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ie(()=>Le(()=>import("./agent-overview-CRm01uUj.js"),__vite__mapDeps([269,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,112,113,114,115,207,143,144,93,145,146,142,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,206,213,214,152,215,216,217,218,219,105,97,106,107,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,260,261,240,241,124,262,163,166,162,127,246,239,263,264,265,161,164,165,266,267,238,248,96,98,270])))}),bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Te({task:q().optional(),...zC}),beforeLoad:({params:t,search:e})=>{const o=F4(t.taskKey,e);if(o)throw ea({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:o?.taskKey??t.taskKey},search:o.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./project-tasks-BLptZtxw.js"),__vite__mapDeps([271,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,272,124,125,273,175,167,143,144,93,145,146,142,115,113,112,114,214,274,19,99,28,29,215,275,276,126,240,227,241,24,25,246,239,267,277,171,156,141,278,172,279,139,280,151,98,281,226,140,147,148,149,150,152,153,154,225,251,210,208,202,282,217,218])))}),yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Te({connect:Kv().optional(),siteUrl:q().optional()}),component:Ie(()=>Le(()=>import("./project-reports-Cj0tAxbH.js"),__vite__mapDeps([283,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,284,91,248,96,97,98,270,108,109,268,243])))}),kb=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Te({autosend:q().optional(),...j4}),component:Ie(()=>Le(()=>import("./agent-site-editor-C_bY3W2I.js"),__vite__mapDeps([200,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,201,202,130,131,132,133,134,42,48,135,136,33,34,35,36,37,38,15,39,40,41,43,27,44,45,46,47,49,50,51,52,53,54,55,56,57,18,58,59,60,61,67,68,69,70,71,72,23,73,74,79,80,26,81,82,83,20,10,86,87,120,167,176,174,203,204,187,107,184,183,185,182,157,205,144,206,117,152,143,93,145,146,142,207,99,154,208,24,25,209,173,210,211,194,212,213,214,215,216,217,218,219,105,97,106,220,221,29,151,222,223,102,103,7,224,19,225,226,227,119,228,140,141,147,148,149,150,121,153,229,193,230,186,170,155,156,231,180,139,116,118,122,232])))}),Sue=De({getParentRoute:()=>kb,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ie(()=>Le(()=>import("./agent-site-editor-preview-4LTEMQ-T.js"),__vite__mapDeps([285,286,252,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,253,149,145,132,205,112,85,113,114,115,84,144,80,26,206,83,117,152,143,93,23,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,81,82,216,217,218,219,105,97,106,107,220,221,70,29,222,223,102,103,7,224,19,225,226,227,228,140,141,67,147,148,150,33,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,199,190,189,244,179,177,31,187,282,137,138,134,139,155,156,157,158,159,160,161,162,163,164,165,166,130,136,16,28,168,169,170,171,172,124,125,175,17,178,180,120,181,182,183,184,185,101,129,122,186,188])))}),Tue=De({getParentRoute:()=>kb,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ie(()=>Le(()=>import("./agent-site-editor-content-B6Sevg3O.js"),__vite__mapDeps([287,286,252,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,253,149,145,132,205,112,85,113,114,115,84,144,80,26,206,83,117,152,143,93,23,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,81,82,216,217,218,219,105,97,106,107,220,221,70,29,222,223,102,103,7,224,19,225,226,227,228,140,141,67,147,148,150,33,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,199,190,189,244,179,177,31,187,282,191,158,159,160,161,162,163,164,165,166,157,130,134,136,16,138,139,155,156,28,168,169,170,171,172,124,125,175,17,178,192,193,180,195,196,197])))}),wue=De({getParentRoute:()=>kb,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Te({file:q().optional()}),component:Ie(()=>Le(()=>import("./agent-site-editor-code-DgzX4I9T.js"),__vite__mapDeps([288,286,252,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,253,149,145,132,205,112,85,113,114,115,84,144,80,26,206,83,117,152,143,93,23,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,81,82,216,217,218,219,105,97,106,107,220,221,70,29,222,223,102,103,7,224,19,225,226,227,228,140,141,67,147,148,150,33,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,199,190,189,244,179,177,31,187,282,16])))}),xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const o=e.automation;if(o)throw ea({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./agent-automations-Ck8TQkBX.js"),__vite__mapDeps([289,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,17,16,275,290,19])))}),kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Te({automationView:io(["settings","runs"]).optional()}),component:Ie(()=>Le(()=>import("./agent-automation-BvEH3OZS.js"),__vite__mapDeps([291,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,194,28,167,144,151,253,292,206,112,113,114,115,211,24,25,212,293,275,141,294,213,214,143,93,145,146,142,152,215,295,241,124,296,176,174,169,170,297,14,16,225,251,281,226,140,147,148,149,150,153,154,224])))}),Cue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ie(()=>Le(()=>import("./agent-settings-CDcmmP6N.js"),__vite__mapDeps([298,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,154,215,194,17,302,149,253,152,145,28,167,168,132,244,179,177,31,245,303,142,187,133,304,305,150,188,204])))}),Eue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Te(Ev),component:Ie(()=>Le(()=>import("./agent-library-Bz6qO4Nh.js"),__vite__mapDeps([306,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,307,99,17,276,115,112,113,114,215,308,29,146,142,257,167,255,256,258,134,170,154,309,197,173,174,14,310,311,312,303,16,300,105,97,106,107,293,301,103,7,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,194,302,149,253,152,145,28,168,132,244,179,177,31,245,187,133,304,305,150,188,204])))}),_ue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ie(()=>Le(()=>import("./agent-assets-B9JCrCq8.js"),__vite__mapDeps([313,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,286,252,151,253,149,145,132,205,112,113,114,115,144,206,152,143,93,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,216,217,218,219,105,97,106,107,220,221,29,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,150,153,135,133,199,190,189,244,179,177,31,187,17,178])))}),Pue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Ie(()=>Le(()=>import("./agent-releases-DWG_3zoJ.js"),__vite__mapDeps([314,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,286,252,151,253,149,145,132,205,112,113,114,115,144,206,152,143,93,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,216,217,218,219,105,97,106,107,220,221,29,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,150,153,135,133,199,190,189,244,179,177,31,187,130,134,136,229,193,185])))}),Aue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ie(()=>Le(()=>import("./agent-hosting-_4iDaET9.js"),__vite__mapDeps([315,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,197,31,99,14,141,24,25,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,222,223,102,224,225,226,154,215,194,17,302,149,253,152,145,28,167,168,132,244,179,177,245,303,142,187,133,304,305,150,188,204])))}),Rue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ie(()=>Le(()=>import("./agent-e2e-CLQ2N5KQ.js"),__vite__mapDeps([316,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,24,25,14,197,31,141,176,174,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,222,223,102,224,225,226,154,215,194,17,302,149,253,152,145,28,167,168,132,244,179,177,245,303,142,187,133,304,305,150,188,204])))}),Due=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},validateSearch:Te({view:q().optional()}),component:Ie(()=>Le(()=>import("./agent-analytics-D1M7QoAT.js"),__vite__mapDeps([317,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,318,19,194,14,262,163,166,162,197,31,319,264,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,225,226,154,215,17,302,149,253,152,145,28,167,168,132,244,179,177,245,303,142,187,133,304,305,150,188,204])))}),Oue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-C8Udie1K.js"),__vite__mapDeps([320,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,224,19,273,321,167,168,25,171,322,262,163,166,162,14,173,174,241,124,265,161,164,165,266,264,319,246,239,175])))}),Mue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Te({ui:Ze("legacy").optional()}),component:Ie(()=>Le(()=>import("./agent-experiments-tdlFp9nd.js"),__vite__mapDeps([323,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,201,202,112,113,114,115,130,131,132,133,134,135,136,167,176,174,203,204,187,107,184,183,185,182,157,205,144,206,152,143,93,145,146,142,207,99,154,208,24,25,209,173,210,211,194,212,213,214,215,216,217,218,219,105,97,106,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,149,150,153,229,193,230,186,170,155,156,231,180,139,324,14,197,31,158,159,160,161,162,163,164,165,166,16,325,326,196,276,280,299,300,293,301,294,17,302,253,28,168,244,179,177,245,303,304,305,188])))}),Nue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Ie(()=>Le(()=>import("./agent-calendar-BDOSxsW_.js"),__vite__mapDeps([327,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,201,202,112,113,114,115,130,131,132,133,134,135,136,167,176,174,203,204,187,107,184,183,185,182,157,205,144,206,152,143,93,145,146,142,207,99,154,208,24,25,209,173,210,211,194,212,213,214,215,216,217,218,219,105,97,106,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,149,150,153,229,193,230,186,170,155,156,231,180,139,168,325,158,159,160,161,162,163,164,165,166,16,326,196,197,195,299,300,293,301,294,17,302,253,28,244,179,177,31,245,303,304,305,188])))}),Iue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ie(()=>Le(()=>import("./agent-monitor-D913p8vC.js"),__vite__mapDeps([328,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,329,262,163,166,162,197,167,24,25,31,132,319,264,263,330,19,171,101,266,164,165,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,222,223,102,224,225,226,154,215,194,17,302,149,253,152,145,28,168,244,179,177,245,303,142,187,133,304,305,150,188,204,282,217,218])))}),$4=Te({args:q().optional()}),Lue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/apps/$connectionId/$toolName",validateSearch:$4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ie(()=>Le(()=>import("./agent-app-DOxuzP2R.js"),__vite__mapDeps([331,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,190,332,144,253,147,148,149,112,113,114,115,246,239,124,333,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107])))}),Bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/views/$viewId",validateSearch:$4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ie(()=>Le(()=>import("./agent-view-BC7_pZin.js"),__vite__mapDeps([334,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,332,144,253,147,148,149,112,113,114,115,246,239,124,333,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,299,300,293,16,301,29,151,294,219,220,221,206,24,25,222,223,224,19,225,226,154,215,194,17,302,152,145,28,167,168,132,244,179,177,31,245,303,142,187,133,304,305,150,188,204])))}),Fue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Te({key:q().optional()}),component:Ie(()=>Le(()=>import("./agent-file-DCiJJt_1.js"),__vite__mapDeps([335,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,154,258,215,134,170,146,142,115,153,112,113,114,299,300,105,97,106,107,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,194,17,302,149,253,152,145,28,167,168,132,244,179,177,31,245,303,187,133,304,305,150,188,204])))}),jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Te({path:q().optional()}),component:Ie(()=>Le(()=>import("./agent-deck-C-BZQCII.js"),__vite__mapDeps([336,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,257,215,167,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,154,194,17,302,149,253,152,145,28,168,132,244,179,177,31,245,303,142,187,133,304,305,150,188,204])))}),zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Te({path:q().optional()}),component:Ie(()=>Le(()=>import("./agent-library-file-7MTfJn5J.js"),__vite__mapDeps([337,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,338,256,99,257,215,167,258,134,170,154,146,142,115,299,300,105,97,106,107,112,113,114,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,194,17,302,149,253,152,145,28,168,132,244,179,177,31,245,303,187,133,304,305,150,188,204])))}),Uue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ie(()=>Le(()=>import("./agent-connect-sources-CeRfuvcX.js"),__vite__mapDeps([339,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,94,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,249,108])))}),$ue=De({getParentRoute:()=>lo,path:"/$legacyView",component:()=>null}),que=De({getParentRoute:()=>en,path:"/agents",validateSearch:Tm,beforeLoad:({params:t,search:e})=>{const o=e.virtualmcpid?.trim();throw ea(o?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:a=>a,hash:!0,replace:!0})}}),Vue=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:Tm,beforeLoad:({params:t,location:e})=>{const o=t._splat?.split("/").find(Boolean);if(!B4(o))return;const a=Lde(e.pathname);if(!a)return;const n=e.hash?`#${e.hash}`:"";throw ea({href:`${a}${e.searchStr}${n}`,replace:!0})},component:Ie(()=>Le(()=>import("./legacy-agents-deep-CYw3qywU.js"),__vite__mapDeps([340,254,66])))}),Hue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Te({task:q().optional(),...zC}),beforeLoad:({params:t,search:e})=>{const o=F4(t.taskKey,e);if(o)throw ea({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./tasks-C4wpaTB2.js"),__vite__mapDeps([341,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,272,124,125,273,175,167,143,144,93,145,146,142,115,113,112,114,214,274,19,99,28,29,215,275,276,126,240,227,241,24,25,246,239,267,277,171,156,141,278,172,279,139,280,151,98,281,226,140,147,148,149,150,152,153,154,225,251,210,208,202,282,217,218])))}),Gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-C8Udie1K.js"),__vite__mapDeps([320,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,224,19,273,321,167,168,25,171,322,262,163,166,162,14,173,174,241,124,265,161,164,165,266,264,319,246,239,175])))}),Wue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./thread-analytics-9I9WwE29.js"),__vite__mapDeps([342,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,322,262,163,166,162,14,173,174,19,241,124,265,161,164,165,266,264,319,242,175,167,24,25,176,281,226,140,141,142,143,144,93,145,146,115,113,112,114,147,148,149,150,151,152,153,154,225,251])))}),Kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Te({connect:Kv().optional(),siteUrl:q().optional()}),component:Ie(()=>Le(()=>import("./reports-pbzR9Ttf.js"),__vite__mapDeps([343,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,284,91,248,96,97,98,270,108,109,268,243])))}),Yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Te(Ev),component:Ie(()=>Le(()=>import("./library-Cv7xPXE0.js"),__vite__mapDeps([344,115,117,116,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,307,99,17,276,112,113,114,215,308,29,146,142,257,167,255,256,258,134,170,154,309,197,173,174,14,310,311,312,303,16,338])))}),Zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-DpdYL_SC.js"),__vite__mapDeps([345,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),q4=Te({view:io(["metrics","deploys","experiments","analytics"]).optional(),date:eL().optional().catch(void 0),store:q().optional(),at:q().optional()}),Que=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:q4,component:Ie(()=>Le(()=>import("./monitoring-CzxEm97T.js"),__vite__mapDeps([346,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,197,167,28,330,262,163,166,162,19,171,101,319,264,266,164,165,263,329,24,25,31,132,322,14,173,174,241,124,265,161,318,194,333,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,324,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,325,230,326,196,29,276,280,239])))}),Jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-DpdYL_SC.js"),__vite__mapDeps([345,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),Xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:q4,component:Ie(()=>Le(()=>import("./monitoring-CzxEm97T.js"),__vite__mapDeps([346,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,197,167,28,330,262,163,166,162,19,171,101,319,264,266,164,165,263,329,24,25,31,132,322,14,173,174,241,124,265,161,318,194,333,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,324,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,325,230,326,196,29,276,280,239])))}),epe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ie(()=>Le(()=>import("./discover-CoyVnhtj.js"),__vite__mapDeps([347,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,151,177,179,31,187,107])))}),tpe=De({getParentRoute:()=>wb,path:"/members",beforeLoad:({params:t})=>{throw ea({to:"/$org/settings/members",params:{org:t.org}})}}),ope=Te({main:so([q(),Ze(0)]).optional(),virtualmcpid:q().optional(),...z4,sidepanel:VB,mainpanel:HB,thread:q().optional()}),ape=De({getParentRoute:()=>xb,path:"/",validateSearch:ope,pendingComponent:Zd,component:Ie(()=>Le(()=>import("./index-DFWnsxkt.js"),__vite__mapDeps([348,254,66])))}),npe=De({getParentRoute:()=>xb,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw ea({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),co=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>wb,path:"/settings",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-D5SW2o-V.js"),__vite__mapDeps([349,117,116,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])))}),rpe=De({getParentRoute:()=>co,path:"/",component:Ie(()=>Le(()=>import("./index-redirect-C5brcMlb.js"),__vite__mapDeps([350,312])))}),ipe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections",component:Ie(()=>Le(()=>import("./connections-C54oiD7H.js"),__vite__mapDeps([351,105,97,106,107,352,15,50,80,26,173,174,19,17,18,276,99,224,220,81,82,221,78,70,40,36,37,38,39,41,42,34,43,27,44,35,45,46,47,48,49,51,52,53,54,55,56,57,58,59,60,61,16,353,225,117,206,93,23,24,25,29,151,64,8,63,149,62,222,223,102,103,7,194]))),validateSearch:Qr(()=>Te({action:io(["create"]).optional(),tab:io(["all","connected"]).optional()}))}),spe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections/$appSlug",component:Ie(()=>Le(()=>import("./connection-detail-DgU6Xe2S.js"),__vite__mapDeps([354,105,97,106,107,16,223,57,58,355,64,8,253,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,18,59,60,61,151,24,25,26,163,160,69,167,80,63,117,356,74,75,3,2,76,77,30,78,222,302,19,149,7,103,70,121,93,23,152,353,357,262,166,162,264,319,161,265,164,165,266,176,174,221,148,83]))),validateSearch:Qr(()=>Te({tab:q().optional()}))}),lpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>co,path:"/connections/$appSlug/$collectionName/$itemId",component:Ie(()=>Le(()=>import("./collection-detail-BPkemvs1.js"),__vite__mapDeps([358,16,64,8,93,23,29,355,253,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,105,97,106,107,24,25,26,163,160,69,167,80,63,117,356,74,75,3,2,76,77,30,78,222,148,149,156,221,302,19,7,147,70,112,65,66,62,85,113,114,115,84,33,67,68,71,72,73,79,81,82,83,20,10,86,87,169,170,197]))),validateSearch:Qr(()=>Te({replayId:q().optional()}))}),cpe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>co,path:"/monitor",component:Ie(()=>Le(()=>import("./index-BlnnRpsw.js"),__vite__mapDeps([359,17,18,16,310,311,312,140,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,141,142,143,144,93,23,145,146,115,117,65,66,62,63,64,8,80,26,113,75,3,2,76,77,30,78,112,85,114,84,67,147,148,149,150,33,68,69,70,71,72,73,74,79,81,82,83,20,10,86,87,121,151,152,153,154,221,19,167,169,170,296,194,24,25,321,168,171,29,224,28,156,357,262,163,166,162,264,319,161,265,164,165,266,281,226,225,251,14,297,275,197,239,330,101,263,282,217,218]))),validateSearch:Qr(()=>Te({tab:io(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:q().optional(),at:q().optional(),from:q().default("now-24h"),to:q().default("now"),connectionId:je(q()).optional().default([]),virtualMcpId:je(q()).optional().default([]),tool:q().default(""),status:io(["all","success","errors"]).default("all"),search:q().default(""),page:Rt().optional(),streaming:Vt().default(!0),propertyFilters:q().default(""),hideSystem:Vt().default(!1)}))}),dpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>co,path:"/general",component:Ie(()=>Le(()=>import("./general-Cz0YZJFb.js"),__vite__mapDeps([360,294,361,28,35,84,30,77,151,64,8,362,19,24,25,26,27,312])))}),upe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/connect",pendingComponent:Ui("connect"),component:Ie(()=>Le(()=>import("./connect-CSSOksoc.js"),__vite__mapDeps([363,156,19,24,25,26,27,176,174,142,45,51,52,261,364,37,57,58,197,23,64,8,310,311,312])))}),ppe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/ai-providers",pendingComponent:Ui("billing"),component:Ie(()=>Le(()=>import("./ai-providers-ymvf69U2.js"),__vite__mapDeps([365,37,114,43,84,30,77,292,206,117,112,65,66,62,63,64,8,85,75,3,2,76,78,113,115,211,194,53,24,25,26,27,39,44,51,38,18,212,54,48,294,173,174,80,210,218,57,58,301,28,310,311,312])))}),mpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/billing",beforeLoad:({params:t})=>{throw ea({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),hpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/infra-billing",pendingComponent:Ui("billing"),component:Ie(()=>Le(()=>import("./infra-billing-CH6JZhsh.js"),__vite__mapDeps([366,46,19,296,194,53,27,68,69,18,167,24,25,26,14,264,162,163,165,319,310,311,312])))}),gpe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>co,path:"/secrets",component:Ie(()=>Le(()=>import("./secrets-CZjIZYlr.js"),__vite__mapDeps([367,37,57,60,197,23,24,25,26,27,29,305,310,311,312])))}),fpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/api-keys",pendingComponent:Ui("connect"),component:Ie(()=>Le(()=>import("./api-keys-Dlh6QGx9.js"),__vite__mapDeps([368,364,37,45,51,57,58,197,23,64,8,310,311,312])))}),vpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/buckets",pendingComponent:Ui("storage"),component:Ie(()=>Le(()=>import("./buckets-Do7nX161.js"),__vite__mapDeps([369,37,57,58,19,197,23,24,25,26,27,28,29,177,310,311,312])))}),bpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>co,path:"/repositories",validateSearch:Te({git_error:q().optional().catch(void 0),git_flow:q().uuid().optional().catch(void 0),git_installation:Rt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Ui("repositories"),component:Ie(()=>Le(()=>import("./repositories-BsvHkw06.js"),__vite__mapDeps([370,371,79,39,57,80,26,23,81,82,83,18,41,20,84,30,77,40,194,53,60,197,19,156,99,141,24,25,27,29,58,304,305,310,311,312])))}),ype=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/synced-repos",pendingComponent:Ui("storage"),component:Ie(()=>Le(()=>import("./synced-repos-CLcW5MUO.js"),__vite__mapDeps([372,57,197,79,39,80,26,23,81,82,83,18,41,20,84,30,77,308,310,311,312])))}),Spe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>co,path:"/task-board",component:Ie(()=>Le(()=>import("./tasks-Blq-0J6L.js"),__vite__mapDeps([373,194,53,29,44,56,57,175,68,69,18,167,296,19,27,24,25,26,28,295,361,35,84,30,77,151,64,8,20,275,274,61,99,80,121,215,81,82,76,2,310,311,312])))}),Tpe=De({getParentRoute:()=>co,path:"/tasks",beforeLoad:({params:t})=>{throw ea({to:"/$org/settings/task-board",params:{org:t.org}})}}),wpe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>co,path:"/projects",component:Ie(()=>Le(()=>import("./projects-BVfx1-an.js"),__vite__mapDeps([374,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,19,17,72,23,73,64,8,74,63,75,3,2,76,77,30,78,79,80,26,81,82,83,20,84,268,301,248,96,97,98,243,62,151])))}),xpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/members",pendingComponent:Ui("members"),component:Ie(()=>Le(()=>import("./members-ByI1ytgm.js"),__vite__mapDeps([375,352,15,50,80,26,173,174,19,17,18,13,14,16,236,93,23,24,25,27,29,237,376,47,51,58,61,194,53,68,69,167,57,277,310,311,312])))}),kpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/roles",pendingComponent:Ui("members"),component:Ie(()=>Le(()=>import("./roles-Dg57dBTr.js"),__vite__mapDeps([377,237,376,19,47,57,58,13,14,15,16,17,18,212,70,40,36,37,38,39,41,42,34,43,27,44,35,45,46,48,49,50,51,52,53,54,55,56,59,60,61,225,194,226,82,64,8,83,106,107,151,63,114,28,80,26,71,62,311,312]))),validateSearch:Qr(()=>Te({role:q().optional()}))}),Cpe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>co,path:"/sso",component:Ie(()=>Le(()=>import("./sso-CoZFsJu8.js"),__vite__mapDeps([378,362,19,24,25,26,27,28,86,58,310,311,312])))}),Epe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>co,path:"/profile",component:Ie(()=>Le(()=>import("./profile-D2nKI0hH.js"),__vite__mapDeps([379,159,160,25,58,59,28,24,26,27,173,174,80,54,55,56,294,216])))}),_pe=De({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>co,path:"/agents",component:Ie(()=>Le(()=>import("./agents-list-Drp41B4W.js"),__vite__mapDeps([380,63,64,8,47,38,58,36,37,15,39,40,41,42,34,43,27,44,35,45,46,48,49,50,51,52,53,54,55,56,57,18,59,60,61,301,74,75,3,2,76,77,30,78,84,16,356,151,102,103,7,105,97,106,107,79,80,26,23,81,82,83,20,98,100,17,73])))}),Ppe=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>co,path:"/automations",component:Ie(()=>Le(()=>import("./automations-BzmXycMB.js"),__vite__mapDeps([381,57,42,17,18,16,275,64,8,74,63,75,3,2,76,77,30,78,290,19,36,37,38,15,39,40,41,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,310,311,312])))}),Ape=De({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>co,path:"/skills",component:Ie(()=>Le(()=>import("./skills-NdjGdK_L.js"),__vite__mapDeps([382,47,42,58,59,17,18,276,99,80,26,16,224,19,309,146,142,45,115,117,65,66,62,63,64,8,258,215,81,82,134,48,170,154])))}),Rpe=De({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>co,path:"/memory",component:Ie(()=>Le(()=>import("./memory-5atI8cIN.js"),__vite__mapDeps([383,34,156,80,26,224,19,16,67,215,81,82]))),validateSearch:Qr(()=>Te({scope:io(["user"]).optional()}))}),Dpe=co.addChildren([rpe,ipe,spe,lpe,_pe,Ppe,Ape,Rpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,fpe,vpe,bpe,ype,Spe,Tpe,wpe,xpe,kpe,Cpe,Epe]),Ope=kb.addChildren([Sue,Tue,wue]),Mpe=lo.addChildren([vue,bue,yue,Ope,xue,kue,Cue,Eue,_ue,Pue,Aue,Rue,Due,Oue,Mue,Nue,Iue,Lue,Bue,Fue,jue,zue,Uue,$ue,Jue,Xue]),Npe=en.addChildren([hue,gue,fue,Mpe,que,Vue,Hue,Gue,Wue,Kue,Yue,epe,Zue,Que]),Ipe=xb.addChildren([ape,npe,Npe]),Lpe=wb.addChildren([Ipe,tpe,Dpe]),Bpe=UC.addChildren([nue,Lpe]),Fpe=Xa.addChildren([Bpe,aue,rue,iue,sue,lue,$C.addChildren([cue,due]),uue,Wde,Kde,Yde,Zde,Qde,Jde]);function jpe(){const t=ye.c(16),e=$a();let o;t[0]!==e?(o=e("common.index.pageNotFound"),t[0]=e,t[1]=o):o=t[1];let a;t[2]!==o?(a=b.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),t[2]=o,t[3]=a):a=t[3];let n;t[4]!==e?(n=e("common.index.pageNotFoundDescription"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==n?(r=b.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),t[6]=n,t[7]=r):r=t[7];let s;t[8]!==e?(s=e("common.goBack"),t[8]=e,t[9]=s):s=t[9];let c;t[10]!==s?(c=b.jsx("button",{type:"button",onClick:zpe,className:"text-sm text-primary hover:underline",children:s}),t[10]=s,t[11]=c):c=t[11];let d;return t[12]!==a||t[13]!==r||t[14]!==c?(d=b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,r,c]})}),t[12]=a,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function zpe(){return window.history.back()}const Cb=Qq({routeTree:Fpe,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:jpe});function Pe(...t){return qB(Yk(t))}function Upe(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function qo({error:t,localization:e,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return t?.message?t.message:(a=t?.error)!=null&&a.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function ec(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function Ax(t,e){for(const o in t)if(t[o]===e)return o}function Xp(t,e){let o=q().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(o=o.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(o=o.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(o=o.regex(t.regex,{message:e?.INVALID_PASSWORD})),o}var $pe={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"},qpe={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"},Vpe={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."},Hpe={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."},Gpe={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Wpe={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Kpe={...Gpe,...Wpe},Ype={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Zpe={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Qpe={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Jpe={INVALID_SESSION_TOKEN:"Invalid session token"},Xpe={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"},eme={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"},tme={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"},ome={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"},ame={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"},nme={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"},rme={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"},ime={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",...Hpe,...$pe,...qpe,...Vpe,...Kpe,...Ype,...Zpe,...Qpe,...Jpe,...Xpe,...eme,...tme,...ome,...ame,...nme,...rme},sme={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"},Q2={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},J2={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const V4=A.createContext({});function H4(){return A.useContext(V4)}var mw,X2;function lme(){if(X2)return mw;X2=1;var t=function(){};return mw=t,mw}var cme=lme();const dme=Wl(cme);function ume({async:t,appendTo:e,defer:o,id:a,nonce:n,src:r}){const s=document.createElement("script");t!==void 0&&(s.async=t),o!==void 0&&(s.defer=o),a&&(s.id=a),n&&s.setAttribute("nonce",n),s.src=r,(e==="head"?document.head:document.body).appendChild(s)}var pme=function(t,e){var o={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(o[a[n]]=t[a[n]]);return o};let Rp=null,em=!1;const _v=new Set,Pv=new Set,mme=typeof window<"u",Ed="___grecaptcha_cfg",G4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function hme(){if(!mme)return;function t(o){if(em)o();else{window[Ed]||(window[Ed]={});const a=window[Ed];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=t,window.grecaptcha.enterprise.ready=t;function e(){em=!0;for(const o of Pv)o();Pv.clear()}window[G4]=e}function gme({language:t,onLoadCallbackName:e,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",s=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return e&&c.set("onload",e),t&&c.set("hl",t),`https://www.${r}/recaptcha/${s}?${c.toString()}`}function fme({language:t,render:e,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},s=gme({language:t,onLoadCallbackName:G4,render:e,useEnterprise:a,useRecaptchaNet:n});if(Rp){if(Rp!==s)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Rp=s,ume(Object.assign(Object.assign(Object.assign({},r),o),{src:s}))}function vme(t){if(!window[Ed])return;const e=window[Ed];e.clients&&delete e.clients[t]}function bme(t,e){var{onLoadCallback:o,onLoadCallbackName:a}=e,n=pme(e,["onLoadCallback","onLoadCallbackName"]);if(_v.size===0&&hme(),fme(n),_v.add(t),o&&(em?o():Pv.add(o)),a){let r=function(){if(!a)return;const s=window[a];typeof s=="function"&&s()};em?r():Pv.add(r)}}function yme(t){var e,o,a;_v.delete(t),_v.size===0&&(window.grecaptcha=void 0,window[Ed]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(o=document.querySelector(`script[src="${Rp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Rp=null,em=!1)}let eM=!1;function Sme({container:t,children:e,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:s}){var c,d,u,m,h,f,v;const y=A.useId(),[S,x]=A.useState(null),[w,k]=A.useState(null),_=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(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 bme(y,{language:o,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:s}),()=>{yme(y),x(null)}},[t?.element,y,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,s]),A.useEffect(()=>{var R,O,L;if(!t?.element||!S?.render)return;const $={"error-callback":t.parameters.errorCallback,"expired-callback":t.parameters.expiredCallback,badge:((R=t.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:t.parameters.callback,sitekey:a,size:"invisible",tabindex:t.parameters.tabindex,theme:t.parameters.theme},B=typeof t?.element=="string"?document.getElementById(t.element):t?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=S.render(B,$);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(eM||(dme(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),eM=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),_.current=!0,()=>{k(null),_.current=!1,vme(z),B.innerHTML=""}},[t?.element,(c=t?.parameters)===null||c===void 0?void 0:c.badge,(d=t?.parameters)===null||d===void 0?void 0:d.hidden,(u=t?.parameters)===null||u===void 0?void 0:u.callback,(m=t?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=t?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=t?.parameters)===null||f===void 0?void 0:f.tabindex,(v=t?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const C=!!t?.element,P=C?w:a,D=A.useMemo(()=>P!==null&&S?.execute?R=>{if(P===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!_.current?(console.warn("Client ID not mounted"),null):S.execute(P,{action:R})}:void 0,[P,S,C]);return b.jsx(V4.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:S},children:e})}var Tme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const o={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,o),this.notify(t)}setRefetching(t,e){const o=this.cache.get(t);o&&(o.isRefetching=e,this.notify(t))}clear(t){if(t)this.cache.delete(t),this.inFlightRequests.delete(t),this.notify(t);else{this.cache.clear(),this.inFlightRequests.clear();const e=Array.from(this.listeners.keys());for(const o of e)this.notify(o)}}getInFlightRequest(t){return this.inFlightRequests.get(t)}setInFlightRequest(t,e){this.inFlightRequests.set(t,e)}removeInFlightRequest(t){this.inFlightRequests.delete(t)}subscribe(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>{const o=this.listeners.get(t);o&&(o.delete(e),o.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const o=Array.from(e);for(const a of o)a()}}},Qn=new Tme;function wme(){return()=>{}}function $i(){return A.useSyncExternalStore(wme,()=>!0,()=>!1)}function W4(){const[t,e]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};o();const a=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:t}}function qC(){const[t,e]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));e(r?"dark":"light")};o();const a=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:t}}function xme({children:t}){const e=$i(),{captcha:o}=A.useContext(Tt);return o?.provider!=="google-recaptcha-v3"?t:b.jsxs(Sme,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[e&&b.jsx("style",{children:`
|
|
168
|
+
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=t2.test(f)?f.replace(t2,"$1"):f;if(!v.match(/\S*Error: /)){for(var y of r){var S=y(v,a);if(S){u.push(S);break}}if(u.length>=50)break}}}return(function(x){if(!x.length)return[];var w=Array.from(x);return w.reverse(),w.slice(0,50).map((k=>{return Ne({},k,{filename:k.filename||(_=w,_[_.length-1]||{}).filename,function:k.function||Ud});var _}))})(u)}})("web:javascript",Xse,ole)),this._instance=t,this.fo=(e=(o=this._instance.persistence)==null?void 0:o.get_property(X0))!==null&&e!==void 0?e:[],this.mo=dv(this.yo()),this.bo=new hle(this.mo)}onConfigChange(){this.mo=dv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,o,a;if("errorTracking"in t){var n=(e=(o=t.errorTracking)==null?void 0:o.suppressionRules)!==null&&e!==void 0?e:[],r=(a=t.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[X0]:this.fo,[ex]:r})}}get _o(){var t,e=!!this._instance.get_property(ex),o=this._instance.config.error_tracking.captureExtensionExceptions;return(t=o??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.po.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.mo.enabled)try{if(!Eo(t)||t.trim().length===0)return void _i.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(e),{sanitizedProperties:a,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var s=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>mle.has(d)?(s.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:s}})(o);n.length>0&&_i.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Ne({[lv]:t,[cv]:new Date().toISOString()},a))}catch(r){_i.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Io(e)){if(this.Co(e))return this.So("Exception dropped: matched a suppression rule"),void _i.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(e))return this.So("Exception dropped: thrown by a browser extension"),void _i.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(e))return this.So("Exception dropped: thrown by the PostHog SDK"),void _i.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&_t(t.$exception_steps)?this.To(t):t;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return _i.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void _i.error("Failed to process exception event. Ignoring this exception.",n)}}To(t){try{var e=this.bo.getAttachable();return e.length===0?t:Ne({},t,{$exception_steps:e})}catch(o){return _i.error("Failed to read buffered exception steps. Capturing exception without steps.",o),t}}So(t){this.mo.enabled&&this.bo.add({[lv]:t,[cv]:new Date().toISOString()})}wo(t){return Bo(t)?Ne({},t):{}}yo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Co(t){if(t.length===0)return!1;var e=t.reduce(((o,a)=>{var{type:n,value:r}=a;return Eo(n)&&n.length>0&&o.$exception_types.push(n),Eo(r)&&r.length>0&&o.$exception_values.push(r),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var r,s=n4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=e[n.key])!==null&&r!==void 0?r:[];return c.length>0&&s(c,d)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(t){return t.flatMap((e=>{var o,a;return(o=(a=e.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,o,a,n,r=(e=(o=t[0].stacktrace)==null?void 0:o.frames)!==null&&e!==void 0?e:[],s=r[r.length-1];return(a=s==null||(n=s.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(t){return!_t(t)&&Bt(t)}}},kce=Ne({productTours:class{get ni(){return this._instance.persistence}constructor(t){this.Ao=null,this.Eo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ni&&this.ni.register({[ox]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(ox)||this.ur((()=>this.Ro()))}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.generateProductTours?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?j2.error("Could not load product tours script",a):t()}))}Ro(){var t;!this.Ao&&(t=ot.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=ot.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Bt(this.Eo)||e){var o=this.ni;if(o){var a=o.props[kf];if(Bt(a)&&!e)return this.Eo=a,void t(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 r=n.statusCode;if(r!==200||!n.json){var s="Product Tours API could not be loaded, status: "+r;return j2.error(s),void t([],{isLoaded:!1,error:s})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[kf]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){_t(this.Ao)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Ao)==null||e.showTourById(t)}previewTour(t){this.Ao?this.Ao.previewTour(t):this.ur((()=>{var e;this.Ro(),(e=this.Ao)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Ao)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Ao)==null||t.nextStep()}previousStep(){var t;(t=this.Ao)==null||t.previousStep()}clearCache(){var t;this.Eo=null,(t=this.ni)==null||t.unregister(kf)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},bb),Cce={siteApps:class{constructor(t){this._instance=t,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(t,e){if(e){var o=this.globalsForEvent(e);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=ot._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{t(),this.No=[],this.Fo=void 0}}}globalsForEvent(t){var e,o,a,n,r,s,c;if(!t)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:v,$set:y}=t;return{event:Ne({},r3(t,gce),{properties:Ne({},t.properties,y?{$set:Ne({},(e=(o=t.properties)==null?void 0:o.$set)!==null&&e!==void 0?e:{},y)}:{},v?{$set_once:Ne({},(a=(n=t.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(r=(s=t.properties)==null?void 0:s.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(t){var e=this.apps[t.id],o=()=>{var s;!e.errored&&this.No.length&&(ys.info("Processing "+this.No.length+" events for site app with id "+t.id),this.No.forEach((c=>e.processEvent==null?void 0:e.processEvent(c))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((s=this.Fo)==null||s.call(this))},a=!1,n=s=>{e.errored=!s,e.loaded=!0,ys.info("Site app with id "+t.id+" "+(s?"loaded":"errored")),a&&o()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(s){n(s)}});r&&(e.processEvent=r),a=!0}catch(s){ys.error(z2+t.id,s),n(!1)}if(a&&e.loaded)try{o()}catch(s){ys.error("Error while processing buffered events PostHog app with config id "+t.id,s),e.errored=!0}}Oo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of t)this.setupSiteApp(o)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(e)}catch(a){ys.error("Error while processing event "+t.event+" for site app "+o.id,a)}}}onRemoteConfig(t){var e,o,a,n=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void ys.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=t.siteApps)!=null&&a.length)if(this.isEnabled){var r=function(d){var u;ot["__$$ph_site_app_"+d]=n._instance,(u=ot.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return ys.error(z2+d,m)}))};for(var{id:s,url:c}of t.siteApps)r(s)}else ys.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Ece={tracingHeaders:class{constructor(t){this.Lo=void 0,this.Do=void 0,this.so=()=>{var e,o,a=this.Bo()||[];qe(this.Lo)&&((e=ot.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),qe(this.Do)&&((o=ot.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return mce.error("failed to load script",a);t()}))}Bo(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,e;this.Bo()?this.ur(this.so):((t=this.Lo)==null||t.call(this),(e=this.Do)==null||e.call(this),this.Lo=void 0,this.Do=void 0)}}},_ce=Ne({surveys:class{get Bt(){return this._instance.config}constructor(t){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Bt.disable_surveys){var e=t.surveys;if(_t(e))return oo.warn("Flags not loaded yet. Not loading surveys.");var o=Bt(e);this.jo=o?e.length>0:e,oo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var o=localStorage.key(e);(o!=null&&o.startsWith(wx)||o!=null&&o.startsWith("inProgressSurvey_"))&&t.push(o)}t.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)oo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)oo.info(U2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())oo.info("Not loading surveys in cookieless mode without consent.");else{var t=ot?.__PosthogExtensions__;if(t){if(!qe(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=t.generateSurveys;if(o)return void this.Vo(o,e);var a=t.loadExternalDependency;if(!a)return void this.Ho(RC);a(this._instance,"surveys",(n=>{n||!t.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(t.generateSurveys,e)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else oo.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new bce(this._instance),oo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){oo.error(t,e),this.zo({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.qo.push(t),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Bt.disable_surveys)return oo.info(U2),t([]);var o,a=this._instance.get_property(sx);if(a&&!e)return t(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:s}=n;return t(r,s)})):(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 r;this.Zo=null;var s=n.statusCode;if(s!==200||!n.json){var c="Surveys API could not be loaded, status: "+s;oo.error(c);var d={isLoaded:!1,error:c};return t([],d),void(o==null||o({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[sx]:m});var f={isLoaded:!0};t(m,f),o?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(o){oo.error("Error in survey callback",o)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!_t(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);oo.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((o=>{var a;e=(a=o.find((n=>n.id===t)))!==null&&a!==void 0?a:null})),e}Yo(t){if(_t(this._surveyManager))return{eligible:!1,reason:lw};var e=typeof t=="string"?this.Uo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(_t(this._surveyManager))return oo.warn("init was not called"),{visible:!1,disabledReason:lw};var e=this.Yo(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return _t(this._surveyManager)?(oo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:lw})):new Promise((o=>{this.getSurveys((a=>{var n,r=(n=a.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var s=this.Yo(r);o({visible:s.eligible,disabledReason:s.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,o){var a;if(_t(this._surveyManager))oo.warn("init was not called");else{var n=typeof t=="string"?this.Uo(t):t;if(n!=null&&n.id)if(Jle.includes(n.type)){var r=ze?.querySelector(e);if(r)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(oo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var s,c;oo.info("Rendering survey "+n.id+" with delay of "+((s=n.appearance)==null?void 0:s.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,o),oo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,o);oo.warn("Survey element not found")}else oo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else oo.warn("Survey not found")}}displaySurvey(t,e){var o;if(_t(this._surveyManager))oo.warn("init was not called");else{var a=this.Uo(t);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Ne({},a,{appearance:Ne({},a.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==fx.Popover&&e.initialResponses&&oo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(a);if(!r.visible)return void oo.warn("Survey is not eligible to be displayed: ",r.disabledReason)}e.displayType!==fx.Inline?this._surveyManager.handlePopoverSurvey(n,e):this.renderSurvey(n,e.selector,e.properties)}else oo.warn("Survey not found")}}cancelPendingSurvey(t){_t(this._surveyManager)?oo.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},bb),Pce={toolbar:class{constructor(t){this.instance=t}Go(t){ot.ph_toolbar_state=t}Wo(){var t;return(t=ot.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,o){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),j3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,o=o??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var a,n=yce||Tv(t.hash,"__posthog")||Tv(t.hash,"state"),r=n?a2((()=>JSON.parse(atob(decodeURIComponent(n)))))||a2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((a=r).source="url",a&&Object.keys(a).length>0&&(r.desiredHash?t.hash=r.desiredHash:o?o.replaceState(o.state,"",t.pathname+t.search):t.hash="")):((a=JSON.parse(e.getItem($2)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(t){var e=ot.ph_load_toolbar||ot.ph_load_editor;!_t(e)&&Ai(e)?e(t,this.instance):q2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById(I3));if(!ge||e)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Ne({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem($2,JSON.stringify(Ne({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=ot.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return q2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Qo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,o){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(t,e,o)}}},Ace=Ne({experiments:La},bb),Rce={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;_t(e)||(Kr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||j3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=ot?.__PosthogExtensions__;if(t&&!qe(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var e=t.initConversations;if(e)return this.ta(e),void(this.Qo=!1);var o=t.loadExternalDependency;if(!o)return void this.ra(RC);o(this._instance,"conversations",(a=>{a||!t.initConversations?this.ra("Could not load conversations script",a):this.ta(t.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Zn.error("Conversations enabled but missing token in remote config.")}}ta(t){if(this.ea)try{this._conversationsManager=t(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(e){this.ra("Error completing conversations initialization",e)}else Zn.error("Cannot complete initialization: remote config is null")}ra(t,e){Zn.error(t,e),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Zn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!ji(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,o){var a=this;return er((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(t,e,o):(Zn.warn(Cl),null)}))()}getMessages(t,e){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.getMessages(t,e):(Zn.warn(Cl),null)}))()}markAsRead(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Zn.warn(Cl),null)}))()}getTickets(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Zn.warn(Cl),null)}))()}requestRestoreLink(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Zn.warn(Cl),null)}))()}restoreFromToken(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Zn.warn(Cl),null)}))()}restoreFromUrlToken(){var t=this;return er((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Zn.warn(Cl),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}un(){var t;(t=this._conversationsManager)==null||t.setIdentity()}hn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},Dce={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=wo("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,o=(e=t.logs)==null?void 0:e.captureConsoleLogs;!_t(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 t=ot?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(o=>{var a;o||(a=t.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(RC)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,o,a,n,r,s;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,this.oa=0,this.la=!1),d>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:y,number:S}=C3[v]||Wse,x=String(Date.now())+"000000",w={};f.distinctId&&(w.posthogDistinctId=f.distinctId),f.sessionId&&(w.sessionId=f.sessionId),f.currentUrl&&(w["url.full"]=f.currentUrl),f.screenName&&(w["screen.name"]=f.screenName),f.appState&&(w["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(w.feature_flags=f.activeFeatureFlags);var k=Ne({},w,h.attributes||{}),_={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:S,severityText:y,body:{stringValue:h.body},attributes:e2(k)};return h.trace_id&&(_.traceId=h.trace_id),h.span_id&&(_.spanId=h.span_id),qe(h.trace_flags)||(_.flags=h.trace_flags),_})(t,this.ua());this.sa.push({record:m}),((r=(s=this._instance.config.logs)==null?void 0:s.maxBufferSize)!==null&&r!==void 0?r:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.ca}flushLogs(t){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var e=this.sa;this.sa=[];var o=this._instance.config.logs,a=Ne({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(s,c,d,u){return{resourceLogs:[{resource:{attributes:e2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:s}]}]}})(e.map((s=>s.record)),a,Za.LIB_NAME,Za.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:t})}}ha(){var t,e;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}ua(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=o}if(ot!=null&&(t=ot.location)!=null&&t.href&&(e.currentUrl=ot.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(e.activeFeatureFlags=a)}return e}}},Oce=Ne({},bb,Tce,wce,xce,kce,Cce,_ce,Ece,Pce,Ace,Rce,Dce);tr.__defaultExtensionClasses=Ne({},Oce);var W2,zi=(W2=Pp[dd]=new tr,(function(){function t(){t.done||(t.done=!0,s4=!1,vo(Pp,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Qo(ze,"DOMContentLoaded",t,{capture:!1}):ge&&$e.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),W2);let Ii=!1,_x=null,K2=!1;const BC="studio:lp-distinct-id",f4="mesh:lp-distinct-id",dw="/api/_reports/link-token/",Mce=1440*60*1e3;function v4(t){const e="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(t),a=t.startsWith("//");try{const n=new URL(t,e);let r=!1;for(const s of["key","d"])n.searchParams.has(s)&&(n.searchParams.delete(s),r=!0);return n.pathname.startsWith(dw)&&n.pathname!==dw&&(n.pathname=`${dw}redacted`,r=!0),r?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:t}catch{return t}}function uw(t){return Object.fromEntries(Object.entries(t).map(([e,o])=>[e,typeof o=="string"?v4(o):o]))}const Nce=t=>t?(t.properties=uw(t.properties),t.$set&&(t.$set=uw(t.$set)),t.$set_once&&(t.$set_once=uw(t.$set_once)),t):null;function b4(){try{const t=window.localStorage.getItem(BC)??window.localStorage.getItem(f4);if(!t)return;const{id:e,ts:o}=JSON.parse(t);return typeof e!="string"||!e||typeof o!="number"?void 0:Date.now()-o<=Mce?e:void 0}catch{return}}function Ice(){try{window.localStorage.removeItem(BC),window.localStorage.removeItem(f4)}catch{}}function Lce(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(BC,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const o=e??b4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function Bce(t){const e=b4();if(e&&(Ice(),e!==t))try{zi.alias(e)}catch{}}function Fce(t,e){if(Ii||typeof window>"u")return;const o=Lce();zi.init(t,{api_host:e,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:Nce,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:v4(a.name)}:{}})},person_profiles:"identified_only"}),Ii=!0}function jce(t,e){Ii&&(zi.identify(t,e),Bce(t))}function zce(){Ii&&(zi.reset(),_x=null)}function y4(t,e){Ii&&zi.capture(t,e)}function Ywe(){return Ii}function Zwe(){if(!Ii||K2||typeof performance>"u")return;K2=!0;const t=performance.getEntriesByType("navigation")[0],e=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};y4("perf_app_bootstrap",{nav_type:t?.type,ttfb_ms:t?Math.round(t.responseStart):void 0,dom_interactive_ms:t?Math.round(t.domInteractive):void 0,dom_content_loaded_ms:t?Math.round(t.domContentLoadedEventEnd):void 0,config_fetch_ms:e("studio:config-fetch"),active_org_fetch_ms:e("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:lJ(),org_cache_restored:cJ()})}function Qwe(t,e){Ii&&t!==_x&&(zi.group("organization",t,e),_x=t)}function S4(t,e){if(Ii)try{zi.captureException(t,e)}catch{}}const Uce=["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 $ce(t){const e=ye.c(3),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Uce}}),e[0]=a):a=e[0];let n;return e[1]!==o?(n=b.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,b.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),e[1]=o,e[2]=n):n=e[2],n}function T4(t){const e=ye.c(20),{orgName:o}=t,a=$a(),n=qce;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:b.jsx(Bj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let s;e[1]!==a?(s=a("common.archivedOrgScreen.orgUnavailable"),e[1]=a,e[2]=s):s=e[2];let c;e[3]!==s?(c=b.jsx("h3",{className:"text-lg font-medium",children:s}),e[3]=s,e[4]=c):c=e[4];let d;e[5]!==o||e[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),e[5]=o,e[6]=a,e[7]=d):d=e[7];let u;e[8]!==d?(u=b.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[8]=d,e[9]=u):u=e[9];let m;e[10]!==c||e[11]!==u?(m=b.jsxs("div",{className:"space-y-2",children:[c,u]}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let h;e[13]!==a?(h=a("common.goHome"),e[13]=a,e[14]=h):h=e[14];let f;e[15]!==h?(f=b.jsx(bn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let v;return e[17]!==m||e[18]!==f?(v=b.jsxs($ce,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=v):v=e[19],v}function qce(){window.location.href="/"}function Vce(){const t=ye.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:o}=rm(e);let a;return t[1]!==o?(a=b.jsx(bn,{variant:"outline",size:"sm",asChild:!0,children:b.jsx(Kl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),t[1]=o,t[2]=a):a=t[2],a}function Hce(t){const e=ye.c(13),{area:o,description:a,action:n}=t,r=o?`No access to ${o}`:"No access",s=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:b.jsx(Gj,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=b.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==s?(u=b.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:s}),e[3]=s,e[4]=u):u=e[4];let m;e[5]!==d||e[6]!==u?(m=b.jsxs("div",{className:"space-y-1",children:[d,u]}),e[5]=d,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==n?(h=n??b.jsx(Vce,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=b.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,m,h]}),e[10]=m,e[11]=h,e[12]=f):f=e[12],f}const Y2="__studio_chunk_reload_ts";function w4(t){return t?.message===BX}function Gce(t){return!!t?.message?.includes("Access denied")}function Z2(t){if(!t)return!1;const e=t.message||"";return e.includes("Failed to fetch dynamically imported module")||e.includes("Importing a module script failed")||e.includes("error loading dynamically imported module")||e.includes("Failed to fetch")&&t.name==="TypeError"}class Wce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o),S4(e,{boundary:"default",error_name:e.name,error_message:e.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:e,t:o}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:w4(this.state.error)?b.jsx(T4,{}):Gce(this.state.error)?b.jsx(Hce,{}):b.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:b.jsx(SC,{className:"h-6 w-6 text-destructive"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),b.jsx(bn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kce(t){const e=ye.c(3),o=$a();let a;return e[0]!==t||e[1]!==o?(a=b.jsx(Wce,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}class Yce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o);const a=Z2(e);if(S4(e,{boundary:"chunk_root",is_chunk_load_error:a,error_name:e.name,error_message:e.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(Y2),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(Y2,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&Z2(this.state.error)?b.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:b.jsx(Wj,{className:"h-6 w-6 text-primary"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),b.jsx(bn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?w4(this.state.error)?b.jsx(T4,{}):b.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:b.jsx(SC,{className:"h-6 w-6 text-destructive"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),b.jsx(bn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function Zce(t){const e=ye.c(3),o=$a();let a;return e[0]!==t||e[1]!==o?(a=b.jsx(Yce,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const Qce=Ql("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function Jce(t){const e=ye.c(14);let o,a,n,r,s;e[0]!==t?({className:o,size:r,interactive:a,asChild:s,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=s):(o=e[1],a=e[2],n=e[3],r=e[4],s=e[5]);const d=(s===void 0?!1:s)?rb:"div";let u;e[6]!==o||e[7]!==a||e[8]!==r?(u=Qe(Qce({size:r,interactive:a}),o),e[6]=o,e[7]=a,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=b.jsx(d,{"data-slot":"card",className:u,...n}),e[10]=d,e[11]=n,e[12]=u,e[13]=m):m=e[13],m}function Jwe(t){const e=ye.c(11),{title:o,description:a,docsHref:n,actions:r,className:s,children:c}=t;let d;e[0]!==s?(d=Qe("flex flex-col gap-3",s),e[0]=s,e[1]=d):d=e[1];let u;e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==o?(u=(o||a||n||r)&&b.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[b.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&b.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&b.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&b.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",b.jsx(Fj,{size:12})]})]})]}),r&&b.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=a,e[4]=n,e[5]=o,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=b.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function Xwe(t){const e=ye.c(11),{className:o,children:a}=t;let n,r,s;if(e[0]!==a||e[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=Jce,e[5]!==o?(r=Qe("p-0 gap-0 overflow-hidden",o),e[5]=o,e[6]=r):r=e[6],s=d.map(Xce),e[0]=a,e[1]=o,e[2]=n,e[3]=r,e[4]=s}else n=e[2],r=e[3],s=e[4];let c;return e[7]!==n||e[8]!==r||e[9]!==s?(c=b.jsx(n,{className:r,children:s}),e[7]=n,e[8]=r,e[9]=s,e[10]=c):c=e[10],c}function Xce(t,e){return b.jsxs("div",{children:[e>0&&b.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function e0e(t){const e=ye.c(27),{icon:o,title:a,description:n,action:r,onClick:s,className:c,children:d}=t,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=s&&"hover:bg-accent cursor-pointer";let h;e[0]!==c||e[1]!==u||e[2]!==m?(h=Qe(u,m,c),e[0]=c,e[1]=u,e[2]=m,e[3]=h):h=e[3];const f=s?"button":void 0,v=s?0:void 0;let y;e[4]!==s?(y=s?P=>{P.target===P.currentTarget&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),s())}:void 0,e[4]=s,e[5]=y):y=e[5];let S;e[6]!==o?(S=o&&b.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),e[6]=o,e[7]=S):S=e[7];let x;e[8]!==a?(x=b.jsx("div",{className:"text-sm font-medium",children:a}),e[8]=a,e[9]=x):x=e[9];let w;e[10]!==n?(w=n&&b.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),e[10]=n,e[11]=w):w=e[11];let k;e[12]!==d||e[13]!==x||e[14]!==w?(k=b.jsxs("div",{className:"flex-1 min-w-0",children:[x,w,d]}),e[12]=d,e[13]=x,e[14]=w,e[15]=k):k=e[15];let _;e[16]!==r?(_=r&&b.jsx("div",{className:"shrink-0",onClick:ede,children:r}),e[16]=r,e[17]=_):_=e[17];let C;return e[18]!==s||e[19]!==k||e[20]!==_||e[21]!==h||e[22]!==f||e[23]!==v||e[24]!==y||e[25]!==S?(C=b.jsxs("div",{className:h,onClick:s,role:f,tabIndex:v,onKeyDown:y,children:[S,k,_]}),e[18]=s,e[19]=k,e[20]=_,e[21]=h,e[22]=f,e[23]=v,e[24]=y,e[25]=S,e[26]=C):C=e[26],C}function ede(t){return t.stopPropagation()}function t0e(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Qe("px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=b.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function o0e(t){const e=ye.c(5),{children:o,className:a}=t;let n;e[0]!==a?(n=Qe("flex items-center justify-end gap-2 px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=b.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function tde(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Qe("flex flex-col gap-10",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=b.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}const yb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:Qj,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:Yj,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:Uj,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:Kj,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:Vj,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:qj,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function a0e(t){const e=yb[t];return[...e.tabs.map(o=>o.to),...e.ownedRoutes??[]]}function n0e(t){return yb[t].tabs.length>0}const ode=new Set(["owner","admin"]);function x4(){const t=ye.c(11),{org:e,locator:o}=Ks();let a;t[0]!==o?(a=ta.myCapabilities(o),t[0]=o,t[1]=a):a=t[1];let n;t[2]!==e?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(e.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},t[2]=e,t[3]=n):n=t[3];let r;t[4]!==a||t[5]!==n?(r={queryKey:a,queryFn:n,staleTime:3e4,retry:2},t[4]=a,t[5]=n,t[6]=r):r=t[6];const{data:s,isLoading:c,isError:d}=Hs(r);let u;return t[7]!==s||t[8]!==d||t[9]!==c?(u={data:s,loading:c,error:d},t[7]=s,t[8]=d,t[9]=c,t[10]=u):u=t[10],u}function r0e(t){const e=ye.c(8),{data:o,loading:a,error:n}=x4();if(a){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},e[0]=u):u=e[0],u}if(n){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},e[1]=u):u=e[1],u}const r=o?.role??null;if(!r){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},e[2]=u):u=e[2],u}if(r==="owner"){let u;return e[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},e[3]=u):u=e[3],u}if(r==="admin"){let u;return e[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},e[4]=u):u=e[4],u}const s=o?.capabilities?.[t]===!0,c=s?"role":"denied";let d;return e[5]!==s||e[6]!==c?(d={granted:s,loading:!1,error:!1,reason:c},e[5]=s,e[6]=c,e[7]=d):d=e[7],d}function k4(){const t=ye.c(10),{data:e,loading:o,error:a}=x4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?ode.has(n):!1,t[0]=n,t[1]=r):r=t[1];const s=r;let c;t[2]!==e?.capabilities?(c=e?.capabilities??{},t[2]=e?.capabilities,t[3]=c):c=t[3];const d=c;let u;return t[4]!==a||t[5]!==s||t[6]!==o||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:o,error:a,isPrivileged:s,roleSlug:n},t[4]=a,t[5]=s,t[6]=o,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function ade(){const t=ye.c(13),{org:e}=Ks(),o=Vk(),{capabilities:a,isPrivileged:n}=k4(),r=n||!!a["members:manage"];let s;t[0]!==e.id?(s=ta.infraBillingSites(e.id),t[0]=e.id,t[1]=s):s=t[1];const c=!!e.id&&r;let d;t[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),t[2]=o,t[3]=d):d=t[3];let u;t[4]!==s||t[5]!==c||t[6]!==d?(u={queryKey:s,staleTime:3e5,enabled:c,queryFn:d},t[4]=s,t[5]=c,t[6]=d,t[7]=u):u=t[7];const{data:m,isLoading:h}=Hs(u);let f;t[8]!==m?.sites?(f=m?.sites.map(nde)??[],t[8]=m?.sites,t[9]=f):f=t[9];let v;return t[10]!==h||t[11]!==f?(v={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=v):v=t[12],v}function nde(t){return t.slug}function i0e(){const t=ye.c(7),e=Vk(),o=$a();let a;t[0]!==e?(a=s=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:s}),t[0]=e,t[1]=a):a=t[1];let n;t[2]!==o?(n=s=>Id.error(o("settings.infraBilling.portalError",{message:s.message})),t[2]=o,t[3]=n):n=t[3];let r;return t[4]!==a||t[5]!==n?(r={mutationFn:a,onSuccess:rde,onError:n},t[4]=a,t[5]=n,t[6]=r):r=t[6],ff(r)}function rde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function s0e(t,e){const o=ye.c(14),{org:a}=Ks(),n=Vk();let r,s,c;o[0]!==a.id||o[1]!==e||o[2]!==t?(r=[...t].sort(),c=Hs,s=ta.infraBilling(a.id,r.join(","),e),o[0]=a.id,o[1]=e,o[2]=t,o[3]=r,o[4]=s,o[5]=c):(r=o[3],s=o[4],c=o[5]);const d=r.length>0;let u;o[6]!==e||o[7]!==r||o[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),o[6]=e,o[7]=r,o[8]=n,o[9]=u):u=o[9];let m;return o[10]!==s||o[11]!==d||o[12]!==u?(m={queryKey:s,enabled:d,staleTime:6e4,queryFn:u},o[10]=s,o[11]=d,o[12]=u,o[13]=m):m=o[13],c(m)}function ide(){const t=ye.c(7),{capabilities:e,isPrivileged:o,loading:a,error:n}=k4(),{sites:r,isLoading:s}=ade(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==o||t[3]!==a||t[4]!==c||t[5]!==s){const u=m=>m.requiresOwnedSites&&!c&&!s?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||e[m.requires]:!0;d=Object.fromEntries(Object.values(yb).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=o,t[3]=a,t[4]=c,t[5]=s,t[6]=d}else d=t[6];return d}function sde(t){const e=ye.c(16),{group:o}=t,a=$a();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=rm(n);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={select:lde},e[1]=s):s=e[1];const c=gk(s),d=ide()[o],{titleKey:u}=yb[o];let m;e[2]!==a||e[3]!==u?(m=a(u),e[2]=a,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=b.jsx(xd.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==o||e[8]!==r||e[9]!==c||e[10]!==a||e[11]!==d?(f=d.length>1&&b.jsx(pn.Toolbar.Left.Portal,{children:b.jsx(xd.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(y=>{const S=y.to.replace("$org",r),x=c===S||c.startsWith(`${S}/`);return b.jsx(xd.Tab,{active:x,asChild:!0,children:b.jsx(Kl,{to:y.to,params:{org:r},onClick:()=>y4("settings_subnav_clicked",{group_key:o,tab_key:y.key}),children:a(y.labelKey)})},y.key)})})}),e[7]=o,e[8]=r,e[9]=c,e[10]=a,e[11]=d,e[12]=f):f=e[12];let v;return e[13]!==h||e[14]!==f?(v=b.jsxs(b.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=v):v=e[15],v}function lde(t){return t.location.pathname}function C4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[b.jsx(bO,{className:"h-32 w-full"}),b.jsx(bO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function cde(t){const e=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:s}=t;let c;e[0]!==o?(c=b.jsx(sde,{group:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==a?(d=a??b.jsx(C4,{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==s||e[5]!==d?(u=b.jsx(A.Suspense,{fallback:d,children:s}),e[4]=s,e[5]=d,e[6]=u):u=e[6];let m;e[7]!==n||e[8]!==u?(m=b.jsx(Kce,{fallback:n,children:u}),e[7]=n,e[8]=u,e[9]=m):m=e[9];let h;return e[10]!==r||e[11]!==c||e[12]!==m?(h=b.jsx(xd,{children:b.jsx(xd.Content,{children:b.jsx(xd.Container,{children:b.jsxs(tde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function Ui(t){return function(){return b.jsx(cde,{group:t,children:b.jsx(C4,{})})}}function dde(t,e){const o=t&&e?rJ(e,t):null;return{queryKey:ta.activeOrganization(t),queryFn:async()=>{if(!t)return null;const a={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ia.organization.getFullOrganization({query:a}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=SB(n);return n&&!r&&localStorage.setItem(Zs.lastOrgSlug(),t),e&&n&&iJ(e,t,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}async function ude(t){await wB();const e=zX();e&&await Zl.ensureQueryData(dde(t,e)).catch(()=>{})}function pde(t){try{localStorage.setItem(Zs.lastLocation(),JSON.stringify(t))}catch{}}function mde(){try{const t=localStorage.getItem(Zs.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function l0e(){try{localStorage.removeItem(Zs.lastLocation())}catch{}}const ft={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},tt={root:ft.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",releases:"/$org/projects/$agentId/releases",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",calendar:"/$org/projects/$agentId/calendar",monitor:"/$org/projects/$agentId/cdn",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function c0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:hde},t[0]=e):e=t[0],gk(e)}function hde(t){return t.matches.at(-1)?.fullPath??""}const gde=new Map([[ft.reports,"project-only"],[ft.library,"org-only"],[ft.threadAnalytics,"org-only"]]);function d0e(t,e){const o=gde.get(t);return o===void 0?!0:o==="project-only"?e!==null:e===null}function u0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:fde},t[0]=e):e=t[0],gk(e)}function fde(t){return t.matches.findLast(vde)?.staticData.mainView}function vde(t){return t.staticData.mainView}function _f(t){return`agent-view:${encodeURIComponent(t)}`}function bde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const o=decodeURIComponent(e);return o?{id:o}:null}catch{return null}}function E4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function FC(t,e){return`app:${t}:${e}`}function yde(t){if(!t||!t.startsWith("app:"))return null;const e=t.slice(4),o=e.indexOf(":");if(o<=0)return null;const a=e.slice(0,o),n=e.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function _4(t){return`deck:${encodeURIComponent(t)}`}function Sde(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function P4(t){return`file:${encodeURIComponent(t)}`}function Tde(t){if(!t||!t.startsWith("file:"))return null;const e=t.slice(5);if(!e)return null;try{return{key:decodeURIComponent(e)}}catch{return null}}function A4(t){return`library-file:${encodeURIComponent(t)}`}function wde(t){if(!t||!t.startsWith("library-file:"))return null;const e=t.slice(13);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function R4(t){return`code:${encodeURIComponent(t)}`}function xde(t){if(!t)return null;if(t==="code")return{path:null};if(!t.startsWith("code:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}const D4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],kde=new Set(D4),O4=new Set(["hosting","e2e","analytics","cdn"]),Cde=new Set(["board","files","connect-sources","reports"]);function p0e(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Ede=new Map([["preview","site-editor"],["git","site-editor"]]);function Sb(t){return Ede.get(t)??t}const jC=new Set(["instructions","connections","layout","settings"]);function _de(t){return!!t&&jC.has(t)}const Pde=new Set(["overview","board","reports"]);function m0e(t){const e=t?.defaultMainView??null;if(!(!e||e.type==="chat"))return M4(t??null)}function M4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const o=Sb(e.type);if(jC.has(o))return"settings";if(kde.has(o)||Pde.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(e.id&&e.toolName)return FC(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?_f(e.id):n[0]?_f(n[0]):"settings"}const a=t?.tabs?.[0]?.id;return a?_f(a):"settings"}function h0e(t){const e=t.routeDefaultMain||M4(t.metadata),o=t.panelTabId&&jC.has(t.panelTabId)?"settings":t.panelTabId?Sb(t.panelTabId):t.panelTabId,a=t.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:t.mainPanelParam??(!!o||!!t.routeDefaultMain||!n),activeTab:o??e}}function g0e(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function f0e(t){return t.mainOpen?t.activeTab==="automations"?!0:E4(t.activeTab)!==null:!1}const Ade=new Set([...D4.filter(t=>!O4.has(t)),...Cde,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Rde(t){return!!t&&Ade.has(t)}function Dde(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?FC(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?P4(e.key):void 0;case"deck":return e.deck?_4(e.deck):void 0;case"library-file":return e.path?A4(e.path):void 0;case"code":return e.file?R4(e.file):"code";default:{const o=Sb(t);return o==="site-editor"&&e.main==="content"?"content":o}}}function v0e(t){const e=t.params??{},o=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return o.file?R4(o.file):"code";if(t.siteEditorView==="preview")return"site-editor";switch(t.mainView){case"automation":return e.automationId?`automation:${e.automationId}`:"automations";case"app":return e.connectionId&&e.toolName?FC(e.connectionId,e.toolName):void 0;case"view":return e.viewId?_f(e.viewId):void 0;case"file":return o.key?P4(o.key):void 0;case"deck":return o.path?_4(o.path):void 0;case"library-file":return o.path?A4(o.path):void 0;default:return t.mainView}}const Ode={files:"library",discover:"discover"},Mde={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring"},Nde={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",calendar:"calendar",cdn:"monitor"};function N4(t){const e=bde(t);if(e)return{kind:"agent-view",viewId:e.id};const o=yde(t);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=E4(t);if(a)return{kind:"automations",automationId:a.id};const n=Tde(t);if(n)return{kind:"output-file",key:n.key};const r=Sde(t);if(r)return{kind:"output-deck",path:r.path};const s=wde(t);if(s)return{kind:"library-file",path:s.path};const c=xde(t);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(_de(t))return{kind:"agent-section",section:"settings"};const d=Sb(t);if(d==="overview")return{kind:"agent-overview"};if(d==="site-editor")return{kind:"site-editor",view:"preview"};if(d==="content")return{kind:"site-editor",view:"content"};if(d==="automations")return{kind:"automations"};if(d==="connect-sources")return{kind:"connect-sources"};const u=Mde[d];if(u)return{kind:"project-destination",destination:u};const m=Ode[d];if(m)return{kind:"org-destination",destination:m};const h=Nde[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function ql(t){const{org:e,agentId:o}=t,a={org:e,agentId:o},n=N4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:ft.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:tt.tasks,params:{...a,taskKey:t.taskKey},search:{}};case"reports":return r?{to:ft.reports,params:{org:e},search:{}}:{to:tt.reports,params:a,search:{}};case"plan":return r?{to:ft.plan,params:{org:e},search:{}}:{to:tt.plan,params:a,search:{}};case"monitoring":return r?{to:ft.monitoring,params:{org:e},search:{}}:{to:tt.monitoring,params:a,search:{}}}}case"org-destination":switch(n.destination){case"home":return{to:ft.home,params:{org:e},search:{}};case"discover":return{to:ft.discover,params:{org:e},search:{}};case"library":return{to:ft.library,params:{org:e},search:{}}}case"agent-overview":return{to:tt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:tt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:tt.siteEditorCode,params:a,search:{file:n.file}}:{to:tt.siteEditor,params:a,search:{}};case"agent-section":return{to:tt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:tt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:tt.automations,params:a,search:{}};case"app":return{to:tt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:tt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:tt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:tt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:tt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:tt.connectSources,params:a,search:{}}}}function b0e(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:ft.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",o=t.agentId!==t.superAgentId&&N4(e).kind==="org-destination"?"overview":e;return ql({org:t.org,agentId:t.agentId,tabId:o,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function Ide(t,e,o={}){const a=r=>({...o.search?.(r)??{},...e.search}),n=o.replace??!0;switch(e.to){case ft.tasks:t({to:ft.tasks,params:e.params,search:a,replace:n});return;case ft.home:t({to:ft.home,params:e.params,search:a,replace:n});return;case ft.reports:t({to:ft.reports,params:e.params,search:a,replace:n});return;case ft.discover:t({to:ft.discover,params:e.params,search:a,replace:n});return;case ft.plan:t({to:ft.plan,params:e.params,search:a,replace:n});return;case ft.monitoring:t({to:ft.monitoring,params:e.params,search:a,replace:n});return;case ft.library:t({to:ft.library,params:e.params,search:a,replace:n});return;case tt.root:t({to:tt.root,params:e.params,search:a,replace:n});return;case tt.tasks:t({to:tt.tasks,params:e.params,search:a,replace:n});return;case tt.reports:t({to:tt.reports,params:e.params,search:a,replace:n});return;case tt.plan:t({to:tt.plan,params:e.params,search:a,replace:n});return;case tt.monitoring:t({to:tt.monitoring,params:e.params,search:a,replace:n});return;case tt.siteEditor:t({to:tt.siteEditor,params:e.params,search:a,replace:n});return;case tt.siteEditorContent:t({to:tt.siteEditorContent,params:e.params,search:a,replace:n});return;case tt.siteEditorCode:t({to:tt.siteEditorCode,params:e.params,search:a,replace:n});return;case tt.automations:t({to:tt.automations,params:e.params,search:a,replace:n});return;case tt.automation:t({to:tt.automation,params:e.params,search:a,replace:n});return;case tt.app:t({to:tt.app,params:e.params,search:a,replace:n});return;case tt.view:t({to:tt.view,params:e.params,search:a,replace:n});return;case tt.outputFile:t({to:tt.outputFile,params:e.params,search:a,replace:n});return;case tt.outputDeck:t({to:tt.outputDeck,params:e.params,search:a,replace:n});return;case tt.libraryFile:t({to:tt.libraryFile,params:e.params,search:a,replace:n});return;case tt.connectSources:t({to:tt.connectSources,params:e.params,search:a,replace:n});return;case tt.settings:case tt.assets:case tt.releases:case tt.hosting:case tt.e2e:case tt.analytics:case tt.experiments:case tt.calendar:case tt.monitor:t({to:e.to,params:e.params,search:a,replace:n})}}function y0e(t,e){Ide(t,ql(e),e)}function Lde(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function Bde(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const Fde=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),I4=new Set(["main"]),jde=new Set(["virtualmcpid"]);function Tb(t,e){return Object.fromEntries(Object.entries(t).filter(([o])=>!e.has(o)))}function jl(t,e){return{...Tb(t,Fde),...e.search}}function zde(t){return Tb(t,jde)}function S0e(t){if(t.search.virtualmcpid===void 0)return null;const e=kr(t.search.virtualmcpid);if(e){const o=t.routePath===ft.tasks?"board":t.routePath===ft.reports?"reports":null;if(t.routePath===ft.home||o){const a=o?ql({org:t.org,agentId:e,tabId:o}):Vd(t.org,e);return{kind:"canonical",route:a,search:jl(t.search,a)}}}return t.routePath===ft.home||t.routePath===ft.tasks||t.routePath===ft.reports||t.routePath===ft.library?{kind:"same-route",search:zde(t.search)}:null}function kr(t){return t?.trim()||void 0}function L4(t){return Rde(t)||t!==void 0&&O4.has(t)}function B4(t){const e=kr(t);return e?e.startsWith("vir_")&&e.length>4||zL(e)!==null||NY(e)!==null||IY(e)!==null||$L(e)||qL(e):!1}function Ude(t){const e=kr(t.agentIdParam),o=L4(e);return e&&!o?e:kr(t.virtualMcpIdSearch)??kr(t.fallbackAgentId)}function T0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const s=Px({org:t.org,agentId:e,panel:t.pathLegacyView,source:"project-first",search:t.search});return s?.kind==="canonical"?{route:s.route,search:s.search}:null}if(!e||Bde(t.pathname))return null;const o=t.search.virtualmcpid!==void 0&&!B4(e);if(!(L4(e)||o))return null;const n=Ude({agentIdParam:o?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=Px({org:t.org,agentId:n,panel:e,source:"view-first",search:t.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function $de(t,e,o,a){const n=kr(a);switch(t){case"board":return n?ql({org:e,agentId:n,tabId:"board"}):{to:ft.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=Es(o.path);return{to:ft.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?ql({org:e,agentId:n,tabId:"reports"}):{to:ft.reports,params:{org:e},search:{}};case"overview":return{to:ft.home,params:{org:e},search:{}};case"discover":return{to:ft.discover,params:{org:e},search:{}};default:return null}}function Jp(t){const e=$de(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const o=kr(t.agentId);return o?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:o},search:{}}:ql({org:t.org,agentId:o,tabId:t.tabId}):null}function Vd(t,e){const o=kr(e);return o?{to:tt.root,params:{org:t,agentId:o},search:{}}:{to:ft.home,params:{org:t},search:{}}}function qde(t){const{main:e}=t;if(e===void 0)return null;const o=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Tb(o,I4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...jl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Jp({org:t.org,agentId:t.agentId,tabId:e,search:o});return a?{kind:"canonical",route:a,search:jl(o,a)}:null}function Es(t){return typeof t=="string"&&t.length>0?t:void 0}function Px(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const s=Px({...t,search:Tb(e,I4)});return s?.kind!=="canonical"?s:{...s,search:{...s.search,mainpanel:!1}}}if(e.main!==void 0)return qde({org:t.org,agentId:t.agentId,main:e.main,search:e});const o=kr(t.agentId),a=t.panel;if(!a){const s=Vd(t.org,o);return{kind:"canonical",route:s,search:jl(e,s)}}const n=Dde(a,{file:Es(e.file),key:Es(e.key),deck:Es(e.deck),path:Es(e.path),connection:Es(e.connection),tool:Es(e.tool),automation:Es(e.automation)}),r=n?t.source==="project-first"&&n==="overview"&&o?ql({org:t.org,agentId:o,tabId:n}):Jp({org:t.org,agentId:o,tabId:n,search:e}):Jp({org:t.org,agentId:o,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...jl(e,r),sidepanel:!0,mainpanel:!1}:jl(e,r)}:null}function w0e(t){const e=t.search??{},o=kr(e.virtualmcpid),a=kr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const s=Jp({org:t.org,agentId:o,tabId:n,search:e}),c=!s&&n.trim().length>0&&a?Jp({org:t.org,agentId:a,tabId:n,search:e}):null;r=s??c??{to:ft.home,params:{org:t.org},search:{}}}else r=Vd(t.org,o);return{route:r,search:{...jl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function F4(t,e){if(e.task===void 0)return null;const{task:o,...a}=e;return{taskKey:t??(o.trim()||void 0),search:a}}const pw=Rt().int().nonnegative().optional().catch(void 0),Vde={contentPageId:q().optional(),contentPath:q().optional(),contentPathTemplate:q().optional(),contentCollection:q().optional(),contentItem:q().optional(),contentPageVariant:pw,contentSection:pw,contentVariant:pw};function x0e(t){const e={};return t.contentPageVariant!==void 0&&(e.pageVariant=t.contentPageVariant),t.contentSection!==void 0&&(e.section=t.contentSection),t.contentVariant!==void 0&&(e.variant=t.contentVariant),Object.keys(e).length>0?e:null}const j4=Vde,zC={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(),sprint:q().optional(),boardOrg:q().optional()},Hde=["files","brand","connections","repositories","skills","memory","instructions","general","site"],Ev={fileView:io(["all","documents","media"]).catch("all").optional(),modified:io(["any","today","week","month"]).catch("any").optional(),layout:io(["list","grid"]).catch("list").optional(),sort:io(["name","updated","size"]).catch("name").optional(),path:q().optional(),preview:q().optional(),expanded:d0().optional().catch(void 0),skill:q().optional(),brand:q().optional(),section:io(Hde).catch("files").optional(),scope:io(["user"]).optional().catch(void 0),action:io(["create"]).optional().catch(void 0)},Gde={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:Kv().optional(),siteUrl:q().optional(),...j4},z4={...Gde,task:q().optional(),project:q().optional(),...zC,skill:Ev.skill,brand:Ev.brand},Tm=Te(z4),Xa=zq({component:()=>b.jsx(Zce,{children:b.jsx(hk,{})})}),Wde=De({getParentRoute:()=>Xa,path:"/login",component:Ie(()=>Le(()=>import("./login-zLCkg8LX.js"),__vite__mapDeps([0,1,2,3,4]))),validateSearch:Qr(()=>Te({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()}))}),Kde=De({getParentRoute:()=>Xa,path:"/cli/auth-success",component:Ie(()=>Le(()=>import("./cli-auth-success-KhIa1i1d.js"),__vite__mapDeps([5,4])))}),Yde=De({getParentRoute:()=>Xa,path:"/reset-password",component:Ie(()=>Le(()=>import("./reset-password-C8ez-uKX.js"),[])),validateSearch:Qr(()=>Te({token:q().optional(),error:q().optional()}))}),Zde=De({getParentRoute:()=>Xa,path:"/auth/$pathname",component:Ie(()=>Le(()=>import("./auth-catchall-D1S0_WyO.js"),[]))}),Qde=De({getParentRoute:()=>Xa,path:"/oauth/callback",component:Ie(()=>Le(()=>import("./oauth-callback-Clp9_mQH.js"),__vite__mapDeps([6,7,8])))}),Jde=De({getParentRoute:()=>Xa,path:"/oauth/callback/ai-provider",component:Ie(()=>Le(()=>import("./oauth-callback-ai-provider-B50P_7pe.js"),[]))}),wm=De({getParentRoute:()=>Xa,path:"/_admin",component:Ie(()=>Le(()=>import("./layout-BdGh_t6z.js"),__vite__mapDeps([9,10,11])))}),Xde=De({getParentRoute:()=>wm,path:"/",beforeLoad:()=>{throw ea({to:"/_admin/users"})}}),eue=De({getParentRoute:()=>wm,path:"/users",component:Ie(()=>Le(()=>import("./users-CQ7ISHLn.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21])))}),tue=De({getParentRoute:()=>wm,path:"/orgs",component:Ie(()=>Le(()=>import("./orgs-mkCn2L3g.js"),__vite__mapDeps([22,13,14,15,16,17,18,23,20,24,25,26,27,28,29,19,30,31,21])))}),oue=De({getParentRoute:()=>wm,path:"/prompts",component:Ie(()=>Le(()=>import("./prompts-CjZHwr1o.js"),__vite__mapDeps([32,16,23,29,21])))}),aue=wm.addChildren([Xde,eue,tue,oue]),UC=De({getParentRoute:()=>Xa,id:"shell",component:Ie(()=>Le(()=>import("./shell-layout-DDrdQOKB.js").then(t=>t.d),__vite__mapDeps([33,34,35,36,37,38,15,39,40,41,42,43,27,44,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,62,63,64,8,65,66,67,68,69,70,71,72,23,73,74,75,3,2,76,77,30,78,79,80,26,81,82,83,20,84,10,85,86,87])))}),nue=De({getParentRoute:()=>UC,path:"/",beforeLoad:async()=>{const t=mde();if(t)throw ea({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Zs.lastOrgSlug());if(e)throw ea({to:"/$org",params:{org:e}});const{data:o}=await xB();if(!o)return;const a=o[0];throw ea(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),rue=De({getParentRoute:()=>Xa,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await xB();if(t&&t.length>0)throw ea({to:"/"})},component:Ie(()=>Le(()=>import("./onboarding-zwPhPqAT.js"),__vite__mapDeps([88,10,4,89,57,23,28,34,43,49,59])))}),U4=Qr(()=>Te({org:q().optional(),siteUrl:q().optional(),fix:q().optional()})),iue=De({getParentRoute:()=>Xa,path:"/reports-onboarding",component:Ie(()=>Le(()=>import("./reports-onboarding-PhZdbYYv.js"),__vite__mapDeps([90,91,1,2,3,4,89,57,92,93,23,94,64,8,95,70,40,36,37,38,15,39,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,18,58,59,60,61,80,26,96,97,98,99,20,100,101,102,103,7,104,105,106,107,108,109]))),validateSearch:U4}),sue=De({getParentRoute:()=>Xa,path:"/commerce-onboarding",validateSearch:U4,beforeLoad:({search:t})=>{throw ea({to:"/reports-onboarding",search:t})}}),lue=De({getParentRoute:()=>Xa,path:"/choose-editor",component:Ie(()=>Le(()=>import("./choose-editor-DPHanNqQ.js"),__vite__mapDeps([110,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,10]))),validateSearch:Qr(()=>Te({site:q().optional(),domain:q().optional(),pageId:q().optional(),path:q().optional(),pathTemplate:q().optional()}))}),$C=De({getParentRoute:()=>Xa,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Ie(()=>Le(()=>import("./site-editor-uqa8dwZT.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,19,197,198,199,200,201,202,203,204,205,206,207,99,208,209,210,211,212,213,214,215,216,217,218,219,105,97,106,220,221,222,223,102,103,7,224,225,226,227,228,229,230,231,232])))}),cue=De({getParentRoute:()=>$C,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Ie(()=>Le(()=>import("./site-editor-uqa8dwZT.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,19,197,198,199,200,201,202,203,204,205,206,207,99,208,209,210,211,212,213,214,215,216,217,218,219,105,97,106,220,221,222,223,102,103,7,224,225,226,227,228,229,230,231,232])),"SiteEditorPreview")}),due=De({getParentRoute:()=>$C,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Ie(()=>Le(()=>import("./site-editor-uqa8dwZT.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,19,197,198,199,200,201,202,203,204,205,206,207,99,208,209,210,211,212,213,214,215,216,217,218,219,105,97,106,220,221,222,223,102,103,7,224,225,226,227,228,229,230,231,232])),"SiteEditorContent")}),uue=De({getParentRoute:()=>Xa,path:"/report/$domain",component:Ie(()=>Le(()=>import("./reports-CjzKQyjq.js"),__vite__mapDeps([233,104,3,1,2,234])))}),wb=De({getParentRoute:()=>UC,path:"/$org",beforeLoad:({params:t})=>{pde({org:t.org})},loader:({params:t})=>ude(t.org),pendingMs:1/0,component:Ie(()=>Le(()=>import("./route-C4rRmU6W.js"),__vite__mapDeps([235,123,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,124,125,126,92,93,127,128,167,206,11,236,24,25,29,237,209,114,113,218,168,238,239,240,227,241,19,242,132,243,244,179,177,31,245,199,198,246,194,99,28,216])))}),xb=De({getParentRoute:()=>wb,id:"org-shell",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./thread-route-Nzl7YVXC.js"),__vite__mapDeps([247,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,91,248,96,97,98,40,94,95,70,36,37,38,15,39,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,93,23,99,20,100,101,102,103,7,104,105,106,107,249,108])))}),pue=Te({sidepanel:VB,mainpanel:HB,main:so([q(),Ze(0)]).optional(),thread:q().optional(),autosend:q().optional(),preview:q().optional(),virtualmcpid:q().optional()}),en=De({getParentRoute:()=>xb,id:"agent-shell",validateSearch:pue,search:{middlewares:[dq(["sidepanel"])]},pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-BDXg8II4.js"),__vite__mapDeps([250,37,36,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,205,112,113,114,115,144,206,152,143,93,145,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,216,217,218,219,105,97,106,107,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,149,150,153,132,203,204,180,135,133,139,16,116,122,251,252,253,199,190,189,244,179,177,31,187,198,127,254,255,256,257,258,134,170,129])))}),mue=Tm.extend({virtualmcpid:q().optional()}),hue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:mue,component:()=>null}),It=Ie(()=>Le(()=>import("./index-CUZ1Ro0y.js").then(t=>t.i),__vite__mapDeps([116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])),"ChatLayoutPending"),Lt=Ie(()=>Le(()=>import("./index-CUZ1Ro0y.js").then(t=>t.i),__vite__mapDeps([116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])),"ChatLayoutError"),gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:Te({connect:Kv().optional(),siteUrl:q().optional()}),component:Ie(()=>Le(()=>import("./home-DzHhk92o.js"),__vite__mapDeps([259,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,207,143,144,93,145,146,142,115,113,112,114,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,206,213,214,152,215,216,217,218,219,105,97,106,107,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,260,261,240,241,124,262,163,166,162,127,246,239,263,264,265,161,164,165,266,267,268,238,128,16,243])))}),fue=De({getParentRoute:()=>en,path:"/projects",validateSearch:Tm,beforeLoad:({params:t,search:e})=>{const o=(e.project??e.virtualmcpid)?.trim(),a=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!o)throw ea({to:"/$org/home",params:{org:t.org},search:a,hash:!0,replace:!0});const n=e.task?.trim();throw ea(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:o,taskKey:n},search:a,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a,hash:!0,replace:!0})}}),lo=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:Tm,component:hk}),vue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ie(()=>Le(()=>import("./agent-overview-mxgKSo__.js"),__vite__mapDeps([269,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,112,113,114,115,207,143,144,93,145,146,142,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,206,213,214,152,215,216,217,218,219,105,97,106,107,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,260,261,240,241,124,262,163,166,162,127,246,239,263,264,265,161,164,165,266,267,238,248,96,98,270])))}),bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Te({task:q().optional(),...zC}),beforeLoad:({params:t,search:e})=>{const o=F4(t.taskKey,e);if(o)throw ea({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:o?.taskKey??t.taskKey},search:o.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./project-tasks-CkDZssBo.js"),__vite__mapDeps([271,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,272,124,125,273,175,167,143,144,93,145,146,142,115,113,112,114,214,274,19,99,28,29,215,275,276,126,240,227,241,24,25,246,239,267,277,171,156,141,278,172,279,139,280,151,98,281,226,140,147,148,149,150,152,153,154,225,251,210,208,202,282,217,218])))}),yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Te({connect:Kv().optional(),siteUrl:q().optional()}),component:Ie(()=>Le(()=>import("./project-reports-BkL-vra7.js"),__vite__mapDeps([283,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,284,91,248,96,97,98,270,108,109,268,243])))}),kb=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Te({autosend:q().optional(),...j4}),component:Ie(()=>Le(()=>import("./agent-site-editor-BSG_1jHk.js"),__vite__mapDeps([200,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,201,202,130,131,132,133,134,42,48,135,136,33,34,35,36,37,38,15,39,40,41,43,27,44,45,46,47,49,50,51,52,53,54,55,56,57,18,58,59,60,61,67,68,69,70,71,72,23,73,74,79,80,26,81,82,83,20,10,86,87,120,167,176,174,203,204,187,107,184,183,185,182,157,205,144,206,117,152,143,93,145,146,142,207,99,154,208,24,25,209,173,210,211,194,212,213,214,215,216,217,218,219,105,97,106,220,221,29,151,222,223,102,103,7,224,19,225,226,227,119,228,140,141,147,148,149,150,121,153,229,193,230,186,170,155,156,231,180,139,116,118,122,232])))}),Sue=De({getParentRoute:()=>kb,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ie(()=>Le(()=>import("./agent-site-editor-preview-BMX4-2ho.js"),__vite__mapDeps([285,286,252,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,253,149,145,132,205,112,85,113,114,115,84,144,80,26,206,83,117,152,143,93,23,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,81,82,216,217,218,219,105,97,106,107,220,221,70,29,222,223,102,103,7,224,19,225,226,227,228,140,141,67,147,148,150,33,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,199,190,189,244,179,177,31,187,282,137,138,134,139,155,156,157,158,159,160,161,162,163,164,165,166,130,136,16,28,168,169,170,171,172,124,125,175,17,178,180,120,181,182,183,184,185,101,129,122,186,188])))}),Tue=De({getParentRoute:()=>kb,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ie(()=>Le(()=>import("./agent-site-editor-content-243OnENt.js"),__vite__mapDeps([287,286,252,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,253,149,145,132,205,112,85,113,114,115,84,144,80,26,206,83,117,152,143,93,23,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,81,82,216,217,218,219,105,97,106,107,220,221,70,29,222,223,102,103,7,224,19,225,226,227,228,140,141,67,147,148,150,33,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,199,190,189,244,179,177,31,187,282,191,158,159,160,161,162,163,164,165,166,157,130,134,136,16,138,139,155,156,28,168,169,170,171,172,124,125,175,17,178,192,193,180,195,196,197])))}),wue=De({getParentRoute:()=>kb,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Te({file:q().optional()}),component:Ie(()=>Le(()=>import("./agent-site-editor-code-CN1FjAA8.js"),__vite__mapDeps([288,286,252,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,253,149,145,132,205,112,85,113,114,115,84,144,80,26,206,83,117,152,143,93,23,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,81,82,216,217,218,219,105,97,106,107,220,221,70,29,222,223,102,103,7,224,19,225,226,227,228,140,141,67,147,148,150,33,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,199,190,189,244,179,177,31,187,282,16])))}),xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const o=e.automation;if(o)throw ea({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./agent-automations-BFozFJzs.js"),__vite__mapDeps([289,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,17,16,275,290,19])))}),kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Te({automationView:io(["settings","runs"]).optional()}),component:Ie(()=>Le(()=>import("./agent-automation-DXTohqIP.js"),__vite__mapDeps([291,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,194,28,167,144,151,253,292,206,112,113,114,115,211,24,25,212,293,275,141,294,213,214,143,93,145,146,142,152,215,295,241,124,296,176,174,169,170,297,14,16,225,251,281,226,140,147,148,149,150,153,154,224])))}),Cue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ie(()=>Le(()=>import("./agent-settings-DEMD2MSc.js"),__vite__mapDeps([298,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,154,215,194,17,302,149,253,152,145,28,167,168,132,244,179,177,31,245,303,142,187,133,304,305,150,188,204])))}),Eue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Te(Ev),component:Ie(()=>Le(()=>import("./agent-library-CF5liEzt.js"),__vite__mapDeps([306,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,307,99,17,276,115,112,113,114,215,308,29,146,142,257,167,255,256,258,134,170,154,309,197,173,174,14,310,311,312,303,16,300,105,97,106,107,293,301,103,7,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,194,302,149,253,152,145,28,168,132,244,179,177,31,245,187,133,304,305,150,188,204])))}),_ue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ie(()=>Le(()=>import("./agent-assets-vnboyQof.js"),__vite__mapDeps([313,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,286,252,151,253,149,145,132,205,112,113,114,115,144,206,152,143,93,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,216,217,218,219,105,97,106,107,220,221,29,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,150,153,135,133,199,190,189,244,179,177,31,187,17,178])))}),Pue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Ie(()=>Le(()=>import("./agent-releases-Bg7ZL_Eh.js"),__vite__mapDeps([314,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,286,252,151,253,149,145,132,205,112,113,114,115,144,206,152,143,93,146,142,207,99,154,208,131,24,25,176,174,209,173,210,211,194,212,167,213,214,215,216,217,218,219,105,97,106,107,220,221,29,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,150,153,135,133,199,190,189,244,179,177,31,187,130,134,136,229,193,185])))}),Aue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ie(()=>Le(()=>import("./agent-hosting-Drya8fUU.js"),__vite__mapDeps([315,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,197,31,99,14,141,24,25,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,222,223,102,224,225,226,154,215,194,17,302,149,253,152,145,28,167,168,132,244,179,177,245,303,142,187,133,304,305,150,188,204])))}),Rue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ie(()=>Le(()=>import("./agent-e2e-DinWmv8w.js"),__vite__mapDeps([316,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,24,25,14,197,31,141,176,174,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,222,223,102,224,225,226,154,215,194,17,302,149,253,152,145,28,167,168,132,244,179,177,245,303,142,187,133,304,305,150,188,204])))}),Due=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},validateSearch:Te({view:q().optional()}),component:Ie(()=>Le(()=>import("./agent-analytics-Cazr3KtN.js"),__vite__mapDeps([317,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,318,19,194,14,262,163,166,162,197,31,319,264,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,225,226,154,215,17,302,149,253,152,145,28,167,168,132,244,179,177,245,303,142,187,133,304,305,150,188,204])))}),Oue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-BPmcL0th.js"),__vite__mapDeps([320,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,224,19,273,321,167,168,25,171,322,262,163,166,162,14,173,174,241,124,265,161,164,165,266,264,319,246,239,175])))}),Mue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Te({ui:Ze("legacy").optional()}),component:Ie(()=>Le(()=>import("./agent-experiments-mSZe2g7e.js"),__vite__mapDeps([323,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,201,202,112,113,114,115,130,131,132,133,134,135,136,167,176,174,203,204,187,107,184,183,185,182,157,205,144,206,152,143,93,145,146,142,207,99,154,208,24,25,209,173,210,211,194,212,213,214,215,216,217,218,219,105,97,106,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,149,150,153,229,193,230,186,170,155,156,231,180,139,324,14,197,31,158,159,160,161,162,163,164,165,166,16,325,326,196,276,280,299,300,293,301,294,17,302,253,28,168,244,179,177,245,303,304,305,188])))}),Nue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Ie(()=>Le(()=>import("./agent-calendar-DVHehu_x.js"),__vite__mapDeps([327,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,201,202,112,113,114,115,130,131,132,133,134,135,136,167,176,174,203,204,187,107,184,183,185,182,157,205,144,206,152,143,93,145,146,142,207,99,154,208,24,25,209,173,210,211,194,212,213,214,215,216,217,218,219,105,97,106,220,221,29,151,222,223,102,103,7,224,19,225,226,227,228,140,141,147,148,149,150,153,229,193,230,186,170,155,156,231,180,139,168,325,158,159,160,161,162,163,164,165,166,16,326,196,197,195,299,300,293,301,294,17,302,253,28,244,179,177,31,245,303,304,305,188])))}),Iue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ie(()=>Le(()=>import("./agent-monitor-D_MkJVMA.js"),__vite__mapDeps([328,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,329,262,163,166,162,197,167,24,25,31,132,319,264,263,330,19,171,101,266,164,165,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,222,223,102,224,225,226,154,215,194,17,302,149,253,152,145,28,168,244,179,177,245,303,142,187,133,304,305,150,188,204,282,217,218])))}),$4=Te({args:q().optional()}),Lue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/apps/$connectionId/$toolName",validateSearch:$4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ie(()=>Le(()=>import("./agent-app-C_2G2yFw.js"),__vite__mapDeps([331,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,190,332,144,253,147,148,149,112,113,114,115,246,239,124,333,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107])))}),Bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/views/$viewId",validateSearch:$4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ie(()=>Le(()=>import("./agent-view-CC8vCjbP.js"),__vite__mapDeps([334,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,332,144,253,147,148,149,112,113,114,115,246,239,124,333,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,299,300,293,16,301,29,151,294,219,220,221,206,24,25,222,223,224,19,225,226,154,215,194,17,302,152,145,28,167,168,132,244,179,177,31,245,303,142,187,133,304,305,150,188,204])))}),Fue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Te({key:q().optional()}),component:Ie(()=>Le(()=>import("./agent-file-CXwfpXiU.js"),__vite__mapDeps([335,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,154,258,215,134,170,146,142,115,153,112,113,114,299,300,105,97,106,107,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,194,17,302,149,253,152,145,28,167,168,132,244,179,177,31,245,303,187,133,304,305,150,188,204])))}),jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Te({path:q().optional()}),component:Ie(()=>Le(()=>import("./agent-deck-DvlsuAfl.js"),__vite__mapDeps([336,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,257,215,167,299,300,105,97,106,107,112,113,114,115,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,154,194,17,302,149,253,152,145,28,168,132,244,179,177,31,245,303,142,187,133,304,305,150,188,204])))}),zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Te({path:q().optional()}),component:Ie(()=>Le(()=>import("./agent-library-file-CdQ4OD0k.js"),__vite__mapDeps([337,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,338,256,99,257,215,167,258,134,170,154,146,142,115,299,300,105,97,106,107,112,113,114,293,16,301,103,7,29,151,294,219,220,221,206,93,24,25,222,223,102,224,19,225,226,194,17,302,149,253,152,145,28,168,132,244,179,177,31,245,303,187,133,304,305,150,188,204])))}),Uue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ie(()=>Le(()=>import("./agent-connect-sources-CwKjdmVU.js"),__vite__mapDeps([339,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,94,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,249,108])))}),$ue=De({getParentRoute:()=>lo,path:"/$legacyView",component:()=>null}),que=De({getParentRoute:()=>en,path:"/agents",validateSearch:Tm,beforeLoad:({params:t,search:e})=>{const o=e.virtualmcpid?.trim();throw ea(o?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:a=>a,hash:!0,replace:!0})}}),Vue=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:Tm,beforeLoad:({params:t,location:e})=>{const o=t._splat?.split("/").find(Boolean);if(!B4(o))return;const a=Lde(e.pathname);if(!a)return;const n=e.hash?`#${e.hash}`:"";throw ea({href:`${a}${e.searchStr}${n}`,replace:!0})},component:Ie(()=>Le(()=>import("./legacy-agents-deep-Cm0fVoJt.js"),__vite__mapDeps([340,254,66])))}),Hue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Te({task:q().optional(),...zC}),beforeLoad:({params:t,search:e})=>{const o=F4(t.taskKey,e);if(o)throw ea({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./tasks-CAcr5cg4.js"),__vite__mapDeps([341,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,272,124,125,273,175,167,143,144,93,145,146,142,115,113,112,114,214,274,19,99,28,29,215,275,276,126,240,227,241,24,25,246,239,267,277,171,156,141,278,172,279,139,280,151,98,281,226,140,147,148,149,150,152,153,154,225,251,210,208,202,282,217,218])))}),Gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-BPmcL0th.js"),__vite__mapDeps([320,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,224,19,273,321,167,168,25,171,322,262,163,166,162,14,173,174,241,124,265,161,164,165,266,264,319,246,239,175])))}),Wue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./thread-analytics-VH5cv6lu.js"),__vite__mapDeps([342,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,322,262,163,166,162,14,173,174,19,241,124,265,161,164,165,266,264,319,242,175,167,24,25,176,281,226,140,141,142,143,144,93,145,146,115,113,112,114,147,148,149,150,151,152,153,154,225,251])))}),Kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Te({connect:Kv().optional(),siteUrl:q().optional()}),component:Ie(()=>Le(()=>import("./reports-Dqbx9vvQ.js"),__vite__mapDeps([343,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,284,91,248,96,97,98,270,108,109,268,243])))}),Yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Te(Ev),component:Ie(()=>Le(()=>import("./library-DxYyWAwR.js"),__vite__mapDeps([344,115,117,116,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,307,99,17,276,112,113,114,215,308,29,146,142,257,167,255,256,258,134,170,154,309,197,173,174,14,310,311,312,303,16,338])))}),Zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-ea0rrjrS.js"),__vite__mapDeps([345,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),q4=Te({view:io(["metrics","deploys","experiments","analytics"]).optional(),date:eL().optional().catch(void 0),store:q().optional(),at:q().optional()}),Que=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:q4,component:Ie(()=>Le(()=>import("./monitoring-CGJWrng1.js"),__vite__mapDeps([346,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,197,167,28,330,262,163,166,162,19,171,101,319,264,266,164,165,263,329,24,25,31,132,322,14,173,174,241,124,265,161,318,194,333,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,324,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,325,230,326,196,29,276,280,239])))}),Jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-ea0rrjrS.js"),__vite__mapDeps([345,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),Xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>lo,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:q4,component:Ie(()=>Le(()=>import("./monitoring-CGJWrng1.js"),__vite__mapDeps([346,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,197,167,28,330,262,163,166,162,19,171,101,319,264,266,164,165,263,329,24,25,31,132,322,14,173,174,241,124,265,161,318,194,333,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,324,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,325,230,326,196,29,276,280,239])))}),epe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ie(()=>Le(()=>import("./discover-Dgk-X72W.js"),__vite__mapDeps([347,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,151,177,179,31,187,107])))}),tpe=De({getParentRoute:()=>wb,path:"/members",beforeLoad:({params:t})=>{throw ea({to:"/$org/settings/members",params:{org:t.org}})}}),ope=Te({main:so([q(),Ze(0)]).optional(),virtualmcpid:q().optional(),...z4,sidepanel:VB,mainpanel:HB,thread:q().optional()}),ape=De({getParentRoute:()=>xb,path:"/",validateSearch:ope,pendingComponent:Zd,component:Ie(()=>Le(()=>import("./index-CKwkOVRk.js"),__vite__mapDeps([348,254,66])))}),npe=De({getParentRoute:()=>xb,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw ea({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),co=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>wb,path:"/settings",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-CBQzhShl.js"),__vite__mapDeps([349,117,116,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])))}),rpe=De({getParentRoute:()=>co,path:"/",component:Ie(()=>Le(()=>import("./index-redirect-BcArEk0h.js"),__vite__mapDeps([350,312])))}),ipe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections",component:Ie(()=>Le(()=>import("./connections-Ba6gsUgY.js"),__vite__mapDeps([351,105,97,106,107,352,15,50,80,26,173,174,19,17,18,276,99,224,220,81,82,221,78,70,40,36,37,38,39,41,42,34,43,27,44,35,45,46,47,48,49,51,52,53,54,55,56,57,58,59,60,61,16,353,225,117,206,93,23,24,25,29,151,64,8,63,149,62,222,223,102,103,7,194]))),validateSearch:Qr(()=>Te({action:io(["create"]).optional(),tab:io(["all","connected"]).optional()}))}),spe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections/$appSlug",component:Ie(()=>Le(()=>import("./connection-detail-Chq5IDv2.js"),__vite__mapDeps([354,105,97,106,107,16,223,57,58,355,64,8,253,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,18,59,60,61,151,24,25,26,163,160,69,167,80,63,117,356,74,75,3,2,76,77,30,78,222,302,19,149,7,103,70,121,93,23,152,353,357,262,166,162,264,319,161,265,164,165,266,176,174,221,148,83]))),validateSearch:Qr(()=>Te({tab:q().optional()}))}),lpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>co,path:"/connections/$appSlug/$collectionName/$itemId",component:Ie(()=>Le(()=>import("./collection-detail-BaXvekU8.js"),__vite__mapDeps([358,16,64,8,93,23,29,355,253,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,105,97,106,107,24,25,26,163,160,69,167,80,63,117,356,74,75,3,2,76,77,30,78,222,148,149,156,221,302,19,7,147,70,112,65,66,62,85,113,114,115,84,33,67,68,71,72,73,79,81,82,83,20,10,86,87,169,170,197]))),validateSearch:Qr(()=>Te({replayId:q().optional()}))}),cpe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>co,path:"/monitor",component:Ie(()=>Le(()=>import("./index-BBCK9r3-.js"),__vite__mapDeps([359,17,18,16,310,311,312,140,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,141,142,143,144,93,23,145,146,115,117,65,66,62,63,64,8,80,26,113,75,3,2,76,77,30,78,112,85,114,84,67,147,148,149,150,33,68,69,70,71,72,73,74,79,81,82,83,20,10,86,87,121,151,152,153,154,221,19,167,169,170,296,194,24,25,321,168,171,29,224,28,156,357,262,163,166,162,264,319,161,265,164,165,266,281,226,225,251,14,297,275,197,239,330,101,263,282,217,218]))),validateSearch:Qr(()=>Te({tab:io(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:q().optional(),at:q().optional(),from:q().default("now-24h"),to:q().default("now"),connectionId:je(q()).optional().default([]),virtualMcpId:je(q()).optional().default([]),tool:q().default(""),status:io(["all","success","errors"]).default("all"),search:q().default(""),page:Rt().optional(),streaming:Vt().default(!0),propertyFilters:q().default(""),hideSystem:Vt().default(!1)}))}),dpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>co,path:"/general",component:Ie(()=>Le(()=>import("./general-Dg84kr26.js"),__vite__mapDeps([360,294,361,28,35,84,30,77,151,64,8,362,19,24,25,26,27,312])))}),upe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/connect",pendingComponent:Ui("connect"),component:Ie(()=>Le(()=>import("./connect-Bf0Ja-ij.js"),__vite__mapDeps([363,156,19,24,25,26,27,176,174,142,45,51,52,261,364,37,57,58,197,23,64,8,310,311,312])))}),ppe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/ai-providers",pendingComponent:Ui("billing"),component:Ie(()=>Le(()=>import("./ai-providers-BnPLndR5.js"),__vite__mapDeps([365,37,114,43,84,30,77,292,206,117,112,65,66,62,63,64,8,85,75,3,2,76,78,113,115,211,194,53,24,25,26,27,39,44,51,38,18,212,54,48,294,173,174,80,210,218,57,58,301,28,310,311,312])))}),mpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/billing",beforeLoad:({params:t})=>{throw ea({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),hpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/infra-billing",pendingComponent:Ui("billing"),component:Ie(()=>Le(()=>import("./infra-billing-Dh0UUr_Y.js"),__vite__mapDeps([366,46,19,296,194,53,27,68,69,18,167,24,25,26,14,264,162,163,165,319,310,311,312])))}),gpe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>co,path:"/secrets",component:Ie(()=>Le(()=>import("./secrets-CiPY8Xbn.js"),__vite__mapDeps([367,37,57,60,197,23,24,25,26,27,29,305,310,311,312])))}),fpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/api-keys",pendingComponent:Ui("connect"),component:Ie(()=>Le(()=>import("./api-keys-Ix_KjoIE.js"),__vite__mapDeps([368,364,37,45,51,57,58,197,23,64,8,310,311,312])))}),vpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/buckets",pendingComponent:Ui("storage"),component:Ie(()=>Le(()=>import("./buckets-BXoMxN54.js"),__vite__mapDeps([369,37,57,58,19,197,23,24,25,26,27,28,29,177,310,311,312])))}),bpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>co,path:"/repositories",validateSearch:Te({git_error:q().optional().catch(void 0),git_flow:q().uuid().optional().catch(void 0),git_installation:Rt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Ui("repositories"),component:Ie(()=>Le(()=>import("./repositories-CXJpDO8c.js"),__vite__mapDeps([370,371,79,39,57,80,26,23,81,82,83,18,41,20,84,30,77,40,194,53,60,197,19,156,99,141,24,25,27,29,58,304,305,310,311,312])))}),ype=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/synced-repos",pendingComponent:Ui("storage"),component:Ie(()=>Le(()=>import("./synced-repos-BD02afV5.js"),__vite__mapDeps([372,57,197,79,39,80,26,23,81,82,83,18,41,20,84,30,77,308,310,311,312])))}),Spe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>co,path:"/task-board",component:Ie(()=>Le(()=>import("./tasks-CcIwJnqw.js"),__vite__mapDeps([373,194,53,29,44,56,57,175,68,69,18,167,296,19,27,24,25,26,28,295,361,35,84,30,77,151,64,8,20,275,274,61,99,80,121,215,81,82,76,2,310,311,312])))}),Tpe=De({getParentRoute:()=>co,path:"/tasks",beforeLoad:({params:t})=>{throw ea({to:"/$org/settings/task-board",params:{org:t.org}})}}),wpe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>co,path:"/projects",component:Ie(()=>Le(()=>import("./projects-Dd92LlpW.js"),__vite__mapDeps([374,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,19,17,72,23,73,64,8,74,63,75,3,2,76,77,30,78,79,80,26,81,82,83,20,84,268,301,248,96,97,98,243,62,151])))}),xpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/members",pendingComponent:Ui("members"),component:Ie(()=>Le(()=>import("./members-4PYMHLuR.js"),__vite__mapDeps([375,352,15,50,80,26,173,174,19,17,18,13,14,16,236,93,23,24,25,27,29,237,376,47,51,58,61,194,53,68,69,167,57,277,310,311,312])))}),kpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/roles",pendingComponent:Ui("members"),component:Ie(()=>Le(()=>import("./roles-DSB-aYYs.js"),__vite__mapDeps([377,237,376,19,47,57,58,13,14,15,16,17,18,212,70,40,36,37,38,39,41,42,34,43,27,44,35,45,46,48,49,50,51,52,53,54,55,56,59,60,61,225,194,226,82,64,8,83,106,107,151,63,114,28,80,26,71,62,311,312]))),validateSearch:Qr(()=>Te({role:q().optional()}))}),Cpe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>co,path:"/sso",component:Ie(()=>Le(()=>import("./sso-BwNLNHyD.js"),__vite__mapDeps([378,362,19,24,25,26,27,28,86,58,310,311,312])))}),Epe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>co,path:"/profile",component:Ie(()=>Le(()=>import("./profile-tb3VLWGr.js"),__vite__mapDeps([379,159,160,25,58,59,28,24,26,27,173,174,80,54,55,56,294,216])))}),_pe=De({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>co,path:"/agents",component:Ie(()=>Le(()=>import("./agents-list-LjE12uZe.js"),__vite__mapDeps([380,63,64,8,47,38,58,36,37,15,39,40,41,42,34,43,27,44,35,45,46,48,49,50,51,52,53,54,55,56,57,18,59,60,61,301,74,75,3,2,76,77,30,78,84,16,356,151,102,103,7,105,97,106,107,79,80,26,23,81,82,83,20,98,100,17,73])))}),Ppe=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>co,path:"/automations",component:Ie(()=>Le(()=>import("./automations-BGTqqP4a.js"),__vite__mapDeps([381,57,42,17,18,16,275,64,8,74,63,75,3,2,76,77,30,78,290,19,36,37,38,15,39,40,41,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,310,311,312])))}),Ape=De({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>co,path:"/skills",component:Ie(()=>Le(()=>import("./skills-B_QDMWu_.js"),__vite__mapDeps([382,47,42,58,59,17,18,276,99,80,26,16,224,19,309,146,142,45,115,117,65,66,62,63,64,8,258,215,81,82,134,48,170,154])))}),Rpe=De({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>co,path:"/memory",component:Ie(()=>Le(()=>import("./memory-C6HI5VGy.js"),__vite__mapDeps([383,34,156,80,26,224,19,16,67,215,81,82]))),validateSearch:Qr(()=>Te({scope:io(["user"]).optional()}))}),Dpe=co.addChildren([rpe,ipe,spe,lpe,_pe,Ppe,Ape,Rpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,fpe,vpe,bpe,ype,Spe,Tpe,wpe,xpe,kpe,Cpe,Epe]),Ope=kb.addChildren([Sue,Tue,wue]),Mpe=lo.addChildren([vue,bue,yue,Ope,xue,kue,Cue,Eue,_ue,Pue,Aue,Rue,Due,Oue,Mue,Nue,Iue,Lue,Bue,Fue,jue,zue,Uue,$ue,Jue,Xue]),Npe=en.addChildren([hue,gue,fue,Mpe,que,Vue,Hue,Gue,Wue,Kue,Yue,epe,Zue,Que]),Ipe=xb.addChildren([ape,npe,Npe]),Lpe=wb.addChildren([Ipe,tpe,Dpe]),Bpe=UC.addChildren([nue,Lpe]),Fpe=Xa.addChildren([Bpe,aue,rue,iue,sue,lue,$C.addChildren([cue,due]),uue,Wde,Kde,Yde,Zde,Qde,Jde]);function jpe(){const t=ye.c(16),e=$a();let o;t[0]!==e?(o=e("common.index.pageNotFound"),t[0]=e,t[1]=o):o=t[1];let a;t[2]!==o?(a=b.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),t[2]=o,t[3]=a):a=t[3];let n;t[4]!==e?(n=e("common.index.pageNotFoundDescription"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==n?(r=b.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),t[6]=n,t[7]=r):r=t[7];let s;t[8]!==e?(s=e("common.goBack"),t[8]=e,t[9]=s):s=t[9];let c;t[10]!==s?(c=b.jsx("button",{type:"button",onClick:zpe,className:"text-sm text-primary hover:underline",children:s}),t[10]=s,t[11]=c):c=t[11];let d;return t[12]!==a||t[13]!==r||t[14]!==c?(d=b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,r,c]})}),t[12]=a,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function zpe(){return window.history.back()}const Cb=Qq({routeTree:Fpe,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:jpe});function Pe(...t){return qB(Yk(t))}function Upe(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function qo({error:t,localization:e,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return t?.message?t.message:(a=t?.error)!=null&&a.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function ec(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function Ax(t,e){for(const o in t)if(t[o]===e)return o}function Xp(t,e){let o=q().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(o=o.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(o=o.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(o=o.regex(t.regex,{message:e?.INVALID_PASSWORD})),o}var $pe={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"},qpe={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"},Vpe={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."},Hpe={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."},Gpe={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Wpe={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Kpe={...Gpe,...Wpe},Ype={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Zpe={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Qpe={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Jpe={INVALID_SESSION_TOKEN:"Invalid session token"},Xpe={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"},eme={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"},tme={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"},ome={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"},ame={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"},nme={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"},rme={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"},ime={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",...Hpe,...$pe,...qpe,...Vpe,...Kpe,...Ype,...Zpe,...Qpe,...Jpe,...Xpe,...eme,...tme,...ome,...ame,...nme,...rme},sme={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"},Q2={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},J2={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const V4=A.createContext({});function H4(){return A.useContext(V4)}var mw,X2;function lme(){if(X2)return mw;X2=1;var t=function(){};return mw=t,mw}var cme=lme();const dme=Wl(cme);function ume({async:t,appendTo:e,defer:o,id:a,nonce:n,src:r}){const s=document.createElement("script");t!==void 0&&(s.async=t),o!==void 0&&(s.defer=o),a&&(s.id=a),n&&s.setAttribute("nonce",n),s.src=r,(e==="head"?document.head:document.body).appendChild(s)}var pme=function(t,e){var o={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(o[a[n]]=t[a[n]]);return o};let Rp=null,em=!1;const _v=new Set,Pv=new Set,mme=typeof window<"u",Ed="___grecaptcha_cfg",G4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function hme(){if(!mme)return;function t(o){if(em)o();else{window[Ed]||(window[Ed]={});const a=window[Ed];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=t,window.grecaptcha.enterprise.ready=t;function e(){em=!0;for(const o of Pv)o();Pv.clear()}window[G4]=e}function gme({language:t,onLoadCallbackName:e,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",s=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return e&&c.set("onload",e),t&&c.set("hl",t),`https://www.${r}/recaptcha/${s}?${c.toString()}`}function fme({language:t,render:e,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},s=gme({language:t,onLoadCallbackName:G4,render:e,useEnterprise:a,useRecaptchaNet:n});if(Rp){if(Rp!==s)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Rp=s,ume(Object.assign(Object.assign(Object.assign({},r),o),{src:s}))}function vme(t){if(!window[Ed])return;const e=window[Ed];e.clients&&delete e.clients[t]}function bme(t,e){var{onLoadCallback:o,onLoadCallbackName:a}=e,n=pme(e,["onLoadCallback","onLoadCallbackName"]);if(_v.size===0&&hme(),fme(n),_v.add(t),o&&(em?o():Pv.add(o)),a){let r=function(){if(!a)return;const s=window[a];typeof s=="function"&&s()};em?r():Pv.add(r)}}function yme(t){var e,o,a;_v.delete(t),_v.size===0&&(window.grecaptcha=void 0,window[Ed]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(o=document.querySelector(`script[src="${Rp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Rp=null,em=!1)}let eM=!1;function Sme({container:t,children:e,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:s}){var c,d,u,m,h,f,v;const y=A.useId(),[S,x]=A.useState(null),[w,k]=A.useState(null),_=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(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 bme(y,{language:o,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:s}),()=>{yme(y),x(null)}},[t?.element,y,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,s]),A.useEffect(()=>{var R,O,L;if(!t?.element||!S?.render)return;const $={"error-callback":t.parameters.errorCallback,"expired-callback":t.parameters.expiredCallback,badge:((R=t.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:t.parameters.callback,sitekey:a,size:"invisible",tabindex:t.parameters.tabindex,theme:t.parameters.theme},B=typeof t?.element=="string"?document.getElementById(t.element):t?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=S.render(B,$);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(eM||(dme(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),eM=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),_.current=!0,()=>{k(null),_.current=!1,vme(z),B.innerHTML=""}},[t?.element,(c=t?.parameters)===null||c===void 0?void 0:c.badge,(d=t?.parameters)===null||d===void 0?void 0:d.hidden,(u=t?.parameters)===null||u===void 0?void 0:u.callback,(m=t?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=t?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=t?.parameters)===null||f===void 0?void 0:f.tabindex,(v=t?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const C=!!t?.element,P=C?w:a,D=A.useMemo(()=>P!==null&&S?.execute?R=>{if(P===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!_.current?(console.warn("Client ID not mounted"),null):S.execute(P,{action:R})}:void 0,[P,S,C]);return b.jsx(V4.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:S},children:e})}var Tme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const o={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,o),this.notify(t)}setRefetching(t,e){const o=this.cache.get(t);o&&(o.isRefetching=e,this.notify(t))}clear(t){if(t)this.cache.delete(t),this.inFlightRequests.delete(t),this.notify(t);else{this.cache.clear(),this.inFlightRequests.clear();const e=Array.from(this.listeners.keys());for(const o of e)this.notify(o)}}getInFlightRequest(t){return this.inFlightRequests.get(t)}setInFlightRequest(t,e){this.inFlightRequests.set(t,e)}removeInFlightRequest(t){this.inFlightRequests.delete(t)}subscribe(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>{const o=this.listeners.get(t);o&&(o.delete(e),o.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const o=Array.from(e);for(const a of o)a()}}},Qn=new Tme;function wme(){return()=>{}}function $i(){return A.useSyncExternalStore(wme,()=>!0,()=>!1)}function W4(){const[t,e]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};o();const a=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:t}}function qC(){const[t,e]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));e(r?"dark":"light")};o();const a=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:t}}function xme({children:t}){const e=$i(),{captcha:o}=A.useContext(Tt);return o?.provider!=="google-recaptcha-v3"?t:b.jsxs(Sme,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[e&&b.jsx("style",{children:`
|
|
169
169
|
.grecaptcha-badge {
|
|
170
170
|
visibility: hidden;
|
|
171
171
|
border-radius: var(--radius) !important;
|