decocms 4.537.0 → 4.537.1
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-y_apbvuY.js → ActiveShapeUtils-yhcUtHHS.js} +1 -1
- package/dist/client/assets/{AlertCircle-DRnRYwqq.js → AlertCircle-DsSNGaRO.js} +1 -1
- package/dist/client/assets/{AreaChart-qZjFj5zm.js → AreaChart-BAQGKkiD.js} +1 -1
- package/dist/client/assets/{ArrowLeft-dhJPRoJc.js → ArrowLeft-B01RxJRj.js} +1 -1
- package/dist/client/assets/{ArrowUp-DCa9i3G5.js → ArrowUp-Bu18irF8.js} +1 -1
- package/dist/client/assets/{BarChart-C6vIIs8P.js → BarChart-C5cLeRST.js} +1 -1
- package/dist/client/assets/{Building02-CVQp36XY.js → Building02-D-2NbAZo.js} +1 -1
- package/dist/client/assets/{CartesianChart-Bgq-aAjd.js → CartesianChart-8vSKNYyy.js} +1 -1
- package/dist/client/assets/{CategoricalChart-iu2AXlfn.js → CategoricalChart-DCX1zl8x.js} +1 -1
- package/dist/client/assets/{CheckCircle-DXy-8Gdi.js → CheckCircle-B4-Ff7Qe.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-D8NLW3aV.js → ChevronSelectorVertical-adxPKAxb.js} +1 -1
- package/dist/client/assets/{ChevronUp-CF7bSX44.js → ChevronUp-D7JVZ_BI.js} +1 -1
- package/dist/client/assets/{Copy01-V7GirmsP.js → Copy01-F5_ROU3s.js} +1 -1
- package/dist/client/assets/{CreditCard01-DlBr5Kei.js → CreditCard01-CgE_ZJJj.js} +1 -1
- package/dist/client/assets/{DotsVertical-DE1RrMZs.js → DotsVertical-hdwmfsYl.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-D5PscfUk.js → ErrorBarContext-BSipIxD5.js} +1 -1
- package/dist/client/assets/{Globe04-C-hJB9ic.js → Globe04-BLJZauXI.js} +1 -1
- package/dist/client/assets/{Image01-CJFRkMXP.js → Image01-DPi9CgXb.js} +1 -1
- package/dist/client/assets/{Key01-BH_Io8ws.js → Key01-BrDjS2pL.js} +1 -1
- package/dist/client/assets/{Link01-BkANjVDr.js → Link01-CtgaWX0o.js} +1 -1
- package/dist/client/assets/{LinkBroken01-K245w0c9.js → LinkBroken01-Dd7298F5.js} +1 -1
- package/dist/client/assets/{Minus-BwkA6Ip-.js → Minus-Ct2ChLHg.js} +1 -1
- package/dist/client/assets/{Monitor01-mSGRD2AJ.js → Monitor01-CScek5CL.js} +1 -1
- package/dist/client/assets/{Play-CBQYMq3X.js → Play-CH9WhvU1.js} +1 -1
- package/dist/client/assets/{Plus-C71dI_wT.js → Plus-CU39WUtG.js} +1 -1
- package/dist/client/assets/{ReferenceLine-CzNoqyDS.js → ReferenceLine-CeyUUBIl.js} +1 -1
- package/dist/client/assets/{SearchMd-DU_oXGnf.js → SearchMd-urqTL2Em.js} +1 -1
- package/dist/client/assets/{Sector-DzJLml2K.js → Sector-CvZL63_f.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BjpYBEx2.js → ShoppingBag01-B86_QWlx.js} +1 -1
- package/dist/client/assets/{Sun-X-JIUgrn.js → Sun-DxJF0OxD.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CMscdcfe.js → SwitchHorizontal01-CR3vOgLU.js} +1 -1
- package/dist/client/assets/{Tool01-BWgVn6V3.js → Tool01-CVApp_1G.js} +1 -1
- package/dist/client/assets/{Trash01-5TBIiVL1.js → Trash01-EkCl9YTp.js} +1 -1
- package/dist/client/assets/{Upload01-BU-XpefE.js → Upload01-1uTS_89T.js} +1 -1
- package/dist/client/assets/{UserSquare-B1jSdGVS.js → UserSquare-C1dwG7kT.js} +1 -1
- package/dist/client/assets/{Users01-BdkxkowI.js → Users01-B_qvNCiA.js} +1 -1
- package/dist/client/assets/{XClose-CDN_v21b.js → XClose-DvIVBQdA.js} +1 -1
- package/dist/client/assets/{ZoomOut-D1ZMZ7Ql.js → ZoomOut-f9tZKJSQ.js} +1 -1
- package/dist/client/assets/{access-gate-ClGPmPHt.js → access-gate-Cyf9akuC.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CMyo6oKy.js → add-connection-dialog-Dbcpql79.js} +1 -1
- package/dist/client/assets/{agent-analytics-BVA-hdXj.js → agent-analytics-Dea_Sm2-.js} +1 -1
- package/dist/client/assets/agent-app-DtceHxFF.js +1 -0
- package/dist/client/assets/{agent-assets-6uaUqu-8.js → agent-assets-BRZ3h-_m.js} +1 -1
- package/dist/client/assets/{agent-automation-CyA1eJ7V.js → agent-automation-CC_lLFSH.js} +1 -1
- package/dist/client/assets/{agent-automations-BsD4sRtI.js → agent-automations-DHlAGZqt.js} +1 -1
- package/dist/client/assets/{agent-calendar-y11lHEIG.js → agent-calendar-CxREsux6.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CRiv9LNt.js → agent-connect-sources-Cc5YgmZz.js} +1 -1
- package/dist/client/assets/agent-deck-W_6gGRWO.js +1 -0
- package/dist/client/assets/{agent-e2e-BzG5Njlc.js → agent-e2e-CioASlMh.js} +1 -1
- package/dist/client/assets/agent-experiments-CcumhNxI.js +1 -0
- package/dist/client/assets/{agent-file-BJmjvL-m.js → agent-file-so3Ekgz4.js} +1 -1
- package/dist/client/assets/{agent-hosting-B1V0UQdc.js → agent-hosting-D1g9tqwP.js} +1 -1
- package/dist/client/assets/{agent-icon-B_qYhKCV.js → agent-icon-DdxCtAec.js} +1 -1
- package/dist/client/assets/agent-library-file-Ba-KbKkE.js +1 -0
- package/dist/client/assets/agent-library-v2dzRuYM.js +1 -0
- package/dist/client/assets/agent-monitor-CDPdxMY7.js +1 -0
- package/dist/client/assets/{agent-overview-CWssV5Yc.js → agent-overview-DzUwaDPE.js} +1 -1
- package/dist/client/assets/{agent-releases-UAZXpaXI.js → agent-releases-DwCJjs1Q.js} +1 -1
- package/dist/client/assets/agent-settings--ns22OIv.js +1 -0
- package/dist/client/assets/{agent-site-editor-B49sCcgj.js → agent-site-editor-CHB6L936.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-rnWgDK69.js +2 -0
- package/dist/client/assets/agent-site-editor-content-wfNxlhTc.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BR5d0muf.js +1 -0
- package/dist/client/assets/agent-view-BvqKVVI5.js +1 -0
- package/dist/client/assets/{agent-view-guard-DQWcU1Ta.js → agent-view-guard-ClXzE-63.js} +1 -1
- package/dist/client/assets/{agents-list-CXRwlTsL.js → agents-list-DpIfckJp.js} +1 -1
- package/dist/client/assets/{ai-providers-DpN4-Rc5.js → ai-providers-8aNYexZO.js} +1 -1
- package/dist/client/assets/{alert-WCvCZtxv.js → alert-DywPCve6.js} +1 -1
- package/dist/client/assets/{analytics-sections-CM96IJ_a.js → analytics-sections-CnVdxown.js} +1 -1
- package/dist/client/assets/api-keys-DMelMJEn.js +1 -0
- package/dist/client/assets/{api-keys-CeA4G_71.js → api-keys-DwmN5uqI.js} +1 -1
- package/dist/client/assets/{app-editor-Busvh7Vl.js → app-editor-D0rjcOEQ.js} +1 -1
- package/dist/client/assets/{asset-utils-Cvf4BiC5.js → asset-utils-DOIw71D7.js} +1 -1
- package/dist/client/assets/{auth-BskCOxxm.js → auth-CCEtTsph.js} +1 -1
- package/dist/client/assets/{auth-catchall-C2bNuCgr.js → auth-catchall-BiTfI2yn.js} +1 -1
- package/dist/client/assets/{auth-entry-DVFGgDo3.js → auth-entry-DvtPCAAG.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DlL1FKYz.js → auth-split-layout-DIWXo7Gc.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DvAD85kB.js → authenticate-and-persist-oauth-6k6dgv04.js} +1 -1
- package/dist/client/assets/{automation-list-row-DiCSbeEW.js → automation-list-row-jw2OeMwv.js} +1 -1
- package/dist/client/assets/{automation-runs-DYOdKm7X.js → automation-runs-CkP3Dw5Q.js} +1 -1
- package/dist/client/assets/{automations-DU9elJA8.js → automations-BVaTi9yR.js} +1 -1
- package/dist/client/assets/{autosend-ymUlN8FG.js → autosend-BZ1ebJtY.js} +1 -1
- package/dist/client/assets/{badge-CpDbvGYV.js → badge-DcwG1m6V.js} +1 -1
- package/dist/client/assets/{block-document-8rBkiUe7.js → block-document-OSuuHlgP.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BTTauzVT.js → blocks-preview-workspace-context-Ciybb5dj.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-KtRMrzHp.js → blocks-tab-states-x44-eBGF.js} +1 -1
- package/dist/client/assets/{blog-schema-DjJrwM8w.js → blog-schema-BhpyM93k.js} +1 -1
- package/dist/client/assets/{buckets-CqBAv48G.js → buckets-DqjY95YI.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CtlNAkdJ.js → build-improve-prompt-doc-DRyZLp5K.js} +1 -1
- package/dist/client/assets/{calendar-CW9zUPQR.js → calendar-oJys4zZv.js} +1 -1
- package/dist/client/assets/{capability-load-error-DoOw8kK-.js → capability-load-error-DAkHaZ7h.js} +1 -1
- package/dist/client/assets/{category-editor-BWMIrz-A.js → category-editor-Duc2ZwzI.js} +1 -1
- package/dist/client/assets/{cdn-tab-Bpp4qG9y.js → cdn-tab-I-wgZFbg.js} +1 -1
- package/dist/client/assets/{chart-o_A4s6u6.js → chart-ucSG4w2I.js} +1 -1
- package/dist/client/assets/{chat-context-BkD7cnTX.js → chat-context-B1aQFxFE.js} +1 -1
- package/dist/client/assets/{chat-draft-IizDUWYX.js → chat-draft-BvTOIlI2.js} +1 -1
- package/dist/client/assets/{checkbox-DCZoKc7p.js → checkbox-DNPIatCE.js} +1 -1
- package/dist/client/assets/{choose-editor-BxAQqsH4.js → choose-editor-UoMkV9t4.js} +1 -1
- package/dist/client/assets/{cli-auth-success-iTSJzvih.js → cli-auth-success-DNkw3dEj.js} +1 -1
- package/dist/client/assets/{client-icons-Cui6El0q.js → client-icons-lVC2u726.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-2I5xipyw.js → cms-settings-editor-CxbAj_F8.js} +1 -1
- package/dist/client/assets/{collapsible-Durvl14U.js → collapsible-CrBKXUy-.js} +1 -1
- package/dist/client/assets/{collection-detail-gEKfAeD7.js → collection-detail-D7GUC7Dd.js} +1 -1
- package/dist/client/assets/{collection-display-button-DO-A4M7I.js → collection-display-button-pzAVpzEr.js} +1 -1
- package/dist/client/assets/{collection-search-B9JK80fQ.js → collection-search-BhydX10Z.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DocmS6Tc.js → collection-table-wrapper-BARBu1vh.js} +1 -1
- package/dist/client/assets/{collection-tabs-BSiUMQsV.js → collection-tabs-Cp1aS08H.js} +1 -1
- package/dist/client/assets/{column-rules-OoHv0JiH.js → column-rules-D1e6dBZX.js} +1 -1
- package/dist/client/assets/{combobox-WMsgd0Hv.js → combobox-dm7wbcfJ.js} +1 -1
- package/dist/client/assets/{command-BIb5FsHz.js → command-Cbu8fmOM.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-D1zN7Mff.js → companion-mcps-section-Du5SYEcB.js} +1 -1
- package/dist/client/assets/{config-D4iPB0e9.js → config-D-WhNnKe.js} +1 -1
- package/dist/client/assets/{connect-CHkKmE6B.js → connect-DCArRhMu.js} +1 -1
- package/dist/client/assets/{connect-layout-CNlQiKvR.js → connect-layout-rbbb5nyp.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-CWR4mzJ5.js → connect-source-dialog-CJoxgNIe.js} +1 -1
- package/dist/client/assets/{connection--sIRN7Zz.js → connection-DgniLm7d.js} +1 -1
- package/dist/client/assets/{connection-card-PkrvBZMA.js → connection-card-Cw8hQEWn.js} +1 -1
- package/dist/client/assets/{connection-detail-BwPdukE_.js → connection-detail-BTzq0-mw.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BrcWs3bo.js → connection-form-helpers-4Hsujj3d.js} +1 -1
- package/dist/client/assets/{connections-QKF1QePN.js → connections-BKsPGhzD.js} +1 -1
- package/dist/client/assets/{content-tab-CymL7-AU.js → content-tab-C1joQocl.js} +3 -3
- package/dist/client/assets/{context-D5pMnHyU.js → context-BBNRm0cY.js} +1 -1
- package/dist/client/assets/{context-menu-CGqIcw34.js → context-menu-BH71okli.js} +1 -1
- package/dist/client/assets/{context-shell-CVMVXPAa.js → context-shell-BudktJu-.js} +3 -3
- package/dist/client/assets/{core.esm-BYO5Z6so.js → core.esm-BFZ42Fv-.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CcgFc2Vy.js → create-organization-dialog-CYQqeQxi.js} +1 -1
- package/dist/client/assets/{daily-pulse-BvP7pwHI.js → daily-pulse-B-UdOCnV.js} +1 -1
- package/dist/client/assets/{discover-DJgQKXJH.js → discover-C-gupiYw.js} +1 -1
- package/dist/client/assets/{domain-settings-DNVwbeRA.js → domain-settings-dKTh9O6x.js} +1 -1
- package/dist/client/assets/{drawer-Cxv0RJJc.js → drawer-YkScn96W.js} +1 -1
- package/dist/client/assets/{editor-CAg6_OHN.js → editor-CmkWU8tF.js} +1 -1
- package/dist/client/assets/{editor-classes-65iPHzyu.js → editor-classes-AwfBlmhb.js} +1 -1
- package/dist/client/assets/{empty-state-CbtDK1p4.js → empty-state-90fmDGX0.js} +1 -1
- package/dist/client/assets/{empty-state-Cnib0rT2.js → empty-state-B3GXzASb.js} +1 -1
- package/dist/client/assets/{experiments-tab-l3lCfqnU.js → experiments-tab-6jnr153j.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BF5vCkwx.js → experiments-tab-choice-DWXV3ugT.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BlzNpU0g.js → extract-connection-data-BRjQoUH9.js} +1 -1
- package/dist/client/assets/{feature-gate-BMkqzt-o.js → feature-gate-_OoKH8Jk.js} +1 -1
- package/dist/client/assets/{feature-paywall-BNIBgu15.js → feature-paywall-DVIw8_0X.js} +1 -1
- package/dist/client/assets/{file-explorer-OcuWAbtA.js → file-explorer-CEjKhMr5.js} +1 -1
- package/dist/client/assets/{file-preview-DVzYKzBM.js → file-preview-Cvk8WhE8.js} +1 -1
- package/dist/client/assets/{file-share-button-DUzrxnvD.js → file-share-button-DXk4glwK.js} +1 -1
- package/dist/client/assets/{file-type-icon-DgEz6vKD.js → file-type-icon-DvOOhYea.js} +1 -1
- package/dist/client/assets/{folder-icon-BvWvz4ba.js → folder-icon-D_WM_HWT.js} +1 -1
- package/dist/client/assets/{form-eY6ZFlTm.js → form-BhcKMpGj.js} +1 -1
- package/dist/client/assets/{general-BqcsPemZ.js → general-CeOBobjk.js} +1 -1
- package/dist/client/assets/{held-block-view-CFt9Epg_.js → held-block-view-DkrnAzuf.js} +3 -3
- package/dist/client/assets/{home-THfWLX1Q.js → home-CfIaMz61.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-MplGvkIn.js → hosted-publish-feedback-XDssqS4G.js} +1 -1
- package/dist/client/assets/{icon-button-zFSlO6o0.js → icon-button-_ohlwTDE.js} +1 -1
- package/dist/client/assets/{index-nip7iOYK.js → index--yOMwZND.js} +1 -1
- package/dist/client/assets/{index-B8dQ7TV1.js → index-BXQ48iRT.js} +1 -1
- package/dist/client/assets/{index-BQy1fC7s.js → index-BsOvs6Ud.js} +1 -1
- package/dist/client/assets/{index-GMTk4kpU.js → index-BtxGXVC2.js} +1 -1
- package/dist/client/assets/{index-DWVvKiTX.js → index-C5dfiFIi.js} +1 -1
- package/dist/client/assets/{index-DHtu77UN.js → index-C_be57Rz.js} +1 -1
- package/dist/client/assets/{index-XCJY2Rrb.js → index-CmCTycna.js} +3 -3
- package/dist/client/assets/{index-CLAZinux.js → index-DO7O5_6P.js} +1 -1
- package/dist/client/assets/{index-D6_0KaHs.js → index-DkVNMG5q.js} +1 -1
- package/dist/client/assets/{index-DsiaaSSc.js → index-DpNp-ve5.js} +1 -1
- package/dist/client/assets/{index-zUB8FFE1.js → index-Dzx12qZo.js} +1 -1
- package/dist/client/assets/{index-AYos0XvL.js → index-Rt22aFrD.js} +1 -1
- package/dist/client/assets/{index-6f3vVVaF.js → index-VBuL7prM.js} +1 -1
- package/dist/client/assets/{index-CsApew6l.js → index-dyo6wh5U.js} +1 -1
- package/dist/client/assets/{index-redirect-CRKl1so8.js → index-redirect-DMltTqzD.js} +1 -1
- package/dist/client/assets/{index-fxFKE7Rw.js → index-yPsmQJUX.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-SqL3Niv0.js → infiniteQueryObserver-CLbhIHpL.js} +1 -1
- package/dist/client/assets/{infra-billing-ByQAtfnW.js → infra-billing-weSo9hes.js} +1 -1
- package/dist/client/assets/{input-D2ABoz4g.js → input-BvXOMQxX.js} +3 -3
- package/dist/client/assets/{input-fak0uH7y.js → input-Cc7xo0Fp.js} +1 -1
- package/dist/client/assets/{integration-icon-ChUs9lab.js → integration-icon-Doe4P0Kl.js} +1 -1
- package/dist/client/assets/{jira-icon-DVEz-ds4.js → jira-icon-Chsuz196.js} +1 -1
- package/dist/client/assets/{label-BuH5Zpb0.js → label-C5E6YdDo.js} +1 -1
- package/dist/client/assets/{layout-D6sPMagm.js → layout-riOmO6on.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-y8J0GP6s.js → legacy-agents-deep-oaDc8wO4.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Bb9KPjW0.js → legacy-main-redirect-DwVqZb3U.js} +1 -1
- package/dist/client/assets/library-Dt_VODwM.js +1 -0
- package/dist/client/assets/{login-BBM8BuVw.js → login-DgUtsKWW.js} +1 -1
- package/dist/client/assets/{markdown-DI6hVa7Y.js → markdown-DAn8k64V.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DYthJUs1.js → mcp-app-renderer-GoIuZHuL.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CRXIwZNg.js → mcp-oauth-DmOKmZVC.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CblPqKgI.js → mcp-oauth-GNmXiFFs.js} +1 -1
- package/dist/client/assets/{members-C3RrM6Y9.js → members-Cip4CN1C.js} +1 -1
- package/dist/client/assets/{memory-DnnTazxf.js → memory-_pGxZsnC.js} +1 -1
- package/dist/client/assets/{mini-report-page-B4LPZV2X.js → mini-report-page-CyrcjR-n.js} +1 -1
- package/dist/client/assets/{mock-board-qhB2rKsU.js → mock-board-0xaTtb2M.js} +3 -3
- package/dist/client/assets/{monaco-editor-Dueqt8rk.js → monaco-editor-CcV2aDa3.js} +1 -1
- package/dist/client/assets/monitoring-CfBB8r1M.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-Bq961t1j.js → monitoring-stats-row--0zJofeS.js} +1 -1
- package/dist/client/assets/{multi-select-CwOtZVAK.js → multi-select-4N4vHK34.js} +1 -1
- package/dist/client/assets/{mustache-DOlp7gZ2.js → mustache-Bg8EgQ-_.js} +1 -1
- package/dist/client/assets/{named-rule-uses-H7aokudG.js → named-rule-uses-BukH47Cc.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DNY2vbtl.js → new-project-dialog-KDS7pzFq.js} +1 -1
- package/dist/client/assets/{oauth-callback-CqZGgWEK.js → oauth-callback-DbbVim0F.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-ByQdMtU8.js → oauth-callback-ai-provider-ByP_klHX.js} +1 -1
- package/dist/client/assets/{onboarding-BSEVsBMK.js → onboarding-j1GMg75H.js} +1 -1
- package/dist/client/assets/{openai-conversation-Cab1JdwW.js → openai-conversation-P0zqVN-S.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-C0OxSQE7.js → optimistic-project-sidebar-views-CnClfQJl.js} +1 -1
- package/dist/client/assets/{order-monitor-day-CUDQDazN.js → order-monitor-day-t2WYWs4x.js} +1 -1
- package/dist/client/assets/{organization-choice-DF8NVX7q.js → organization-choice-XuLR3C-R.js} +1 -1
- package/dist/client/assets/{orgs-CPSuPDLg.js → orgs-Cs710gnu.js} +1 -1
- package/dist/client/assets/{page-seo-form-CQ8JiEYO.js → page-seo-form-DYrNzAep.js} +1 -1
- package/dist/client/assets/{pair-BPGH0UX4.js → pair-BDAPJ4rm.js} +1 -1
- package/dist/client/assets/{parse-sections-COIV3ooN.js → parse-sections-W3MPdtXH.js} +1 -1
- package/dist/client/assets/{plan-CfDWTivB.js → plan-fCa7FPkH.js} +1 -1
- package/dist/client/assets/{plan-ladder-BzTsrX2B.js → plan-ladder-BEBIL2qt.js} +1 -1
- package/dist/client/assets/{popover-CnAr_EpU.js → popover-DNkrJQB1.js} +1 -1
- package/dist/client/assets/{post-calendar-tWBlYSWZ.js → post-calendar-BB3uOqaC.js} +1 -1
- package/dist/client/assets/{post-editor-CgszQakJ.js → post-editor-Q2zNazl3.js} +1 -1
- package/dist/client/assets/{preview-content-DRTZx9Bm.js → preview-content-cF1uruZg.js} +1 -1
- package/dist/client/assets/{preview-dialog-D983fZOy.js → preview-dialog-uNk-Chy3.js} +1 -1
- package/dist/client/assets/{preview-panel-O0kBlxM5.js → preview-panel-DUt7zZ3m.js} +1 -1
- package/dist/client/assets/{preview-tab-CvaKf5d6.js → preview-tab-Xru15zHI.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-CEj1fFi5.js → product-picker-dialog-Cl91xabc.js} +1 -1
- package/dist/client/assets/{profile-DrTKObjn.js → profile-BsxWlumA.js} +1 -1
- package/dist/client/assets/{project-app-view-xsT09BTO.js → project-app-view-DvMT9mh-.js} +1 -1
- package/dist/client/assets/{project-apps-DT45o3Ib.js → project-apps-C2Jbw7FY.js} +1 -1
- package/dist/client/assets/{project-feed-Blm5WMCJ.js → project-feed-euP67ikd.js} +1 -1
- package/dist/client/assets/{project-icon-4djiAraX.js → project-icon-Dfjy3t6s.js} +1 -1
- package/dist/client/assets/project-reports-IGQXKPN5.js +1 -0
- package/dist/client/assets/project-tasks-CY2-X4de.js +1 -0
- package/dist/client/assets/{projects-BMFJ8lWh.js → projects-Dv4lrItl.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CtT4w4Zw.js → projects-empty-state-BgRJeB5B.js} +1 -1
- package/dist/client/assets/{prompts-yk9XkKJq.js → prompts-B_F4GkjW.js} +1 -1
- package/dist/client/assets/record-editor-XcAYObGw.js +1 -0
- package/dist/client/assets/{redirect-editor-DLz0OohS.js → redirect-editor-BUmsS01w.js} +1 -1
- package/dist/client/assets/{releases-api-QVw7Rj4b.js → releases-api-2dcptM-m.js} +1 -1
- package/dist/client/assets/reports-DHZ9jnE-.js +1 -0
- package/dist/client/assets/{reports-onboarding-Ul6JEKVy.js → reports-onboarding-BAV-tGI2.js} +1 -1
- package/dist/client/assets/{reports-tab-DhjP52wy.js → reports-tab-BeUKP0xb.js} +2 -2
- package/dist/client/assets/{reports-DdigpKAD.js → reports-wfUqOvyX.js} +1 -1
- package/dist/client/assets/{repositories-D84WLywY.js → repositories-B5dh5AKC.js} +1 -1
- package/dist/client/assets/repositories-CtTuC1Hs.js +1 -0
- package/dist/client/assets/{repository-binding-CTtYHb-Z.js → repository-binding-CThoSyHv.js} +1 -1
- package/dist/client/assets/{repository-import-picker-C77VQar8.js → repository-import-picker-qAuaD12k.js} +1 -1
- package/dist/client/assets/{repository-picker-B7eKH7Vb.js → repository-picker-DDRyvQsk.js} +1 -1
- package/dist/client/assets/{require-capability-DhL0sK8n.js → require-capability-DNr9UvJX.js} +1 -1
- package/dist/client/assets/{required-auth-layout-72vwEXGr.js → required-auth-layout-CTbioyWv.js} +1 -1
- package/dist/client/assets/{reset-password-CWJBwyhD.js → reset-password-MrCjOeyS.js} +1 -1
- package/dist/client/assets/{resizable-Dy8CIRPz.js → resizable-0Gk3-z7N.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CBUsBNB8.js → resolve-tab-icon-Qu0kefvi.js} +1 -1
- package/dist/client/assets/{review-settings-BsYqbcN2.js → review-settings-Booi8OB4.js} +1 -1
- package/dist/client/assets/{roles-yd97r8fq.js → roles-DoAZd2f4.js} +1 -1
- package/dist/client/assets/route-BYI1w_04.js +1 -0
- package/dist/client/assets/{route-Ct7_ewBL.js → route-DR5ZYcAb.js} +1 -1
- package/dist/client/assets/{route-dZA-wMYj.js → route-Es1NvkGT.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-llpDvqG_.js → sandbox-lifecycle-context-DAMj2AMG.js} +1 -1
- package/dist/client/assets/{schema-DYbCJAzi.js → schema-BR0l4kRv.js} +1 -1
- package/dist/client/assets/{schema-I274PqDR.js → schema-C7tXzejf.js} +1 -1
- package/dist/client/assets/{scroll-area-BED1KeeA.js → scroll-area-BYxy4OBv.js} +1 -1
- package/dist/client/assets/{search-input-uZhyE3_X.js → search-input-BR0FL_fC.js} +1 -1
- package/dist/client/assets/{search-toggle-l8vk8n5z.js → search-toggle-DcHknRA4.js} +1 -1
- package/dist/client/assets/{secret-picker-BLUn_4nc.js → secret-picker-BzajETTn.js} +1 -1
- package/dist/client/assets/{secrets-BXN3pXLj.js → secrets-B87bnnT8.js} +1 -1
- package/dist/client/assets/{section-array-field-D0cRnZh-.js → section-array-field-BwqyQovG.js} +1 -1
- package/dist/client/assets/{sections-By49OdzN.js → sections-CSz7GDoH.js} +1 -1
- package/dist/client/assets/{sections-editor-D66Xq71z.js → sections-editor-BDT8nJ8M.js} +1 -1
- package/dist/client/assets/{select-BMOocRM-.js → select-DnNBXCrg.js} +1 -1
- package/dist/client/assets/{select-model-CJjqgzAL.js → select-model-B6ZHDJHF.js} +1 -1
- package/dist/client/assets/{seo-editor-BBPgZZ02.js → seo-editor-Bk86pp7s.js} +1 -1
- package/dist/client/assets/{separator-Cc6-dV_Q.js → separator-DwMB-4Kw.js} +1 -1
- package/dist/client/assets/settings-tab-C-wgOIRP.js +1 -0
- package/dist/client/assets/{sheet-DWuyd_rj.js → sheet-ChxaMPjW.js} +1 -1
- package/dist/client/assets/{shell-layout-Clz71xPl.js → shell-layout-CFh0mRqD.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BzPfC31f.js → site-draft-actions-CU_5sg8P.js} +1 -1
- package/dist/client/assets/{site-draft-view-Ci_mlKWw.js → site-draft-view-DOLlSFeR.js} +2 -2
- package/dist/client/assets/site-editor-C2-TKEXJ.js +1 -0
- package/dist/client/assets/{site-editor-toast-84yUu6Hk.js → site-editor-toast-BP7D4YGW.js} +1 -1
- package/dist/client/assets/{skills-BjJIGPkE.js → skills-BDo7F1SW.js} +1 -1
- package/dist/client/assets/{slider-B2JpdpyA.js → slider-nQTOuF1W.js} +1 -1
- package/dist/client/assets/{sortable.esm-BXB60_eg.js → sortable.esm-Cwxw88KL.js} +1 -1
- package/dist/client/assets/{sso-aL7cdgbc.js → sso-BnmIWVxe.js} +1 -1
- package/dist/client/assets/{suggestion-LovLSSJc.js → suggestion-DuRjk-tw.js} +1 -1
- package/dist/client/assets/{switch-B_9nxf01.js → switch-DAt1CJQ8.js} +1 -1
- package/dist/client/assets/{symbol-CSicVVsL.js → symbol-Bc71_aUK.js} +1 -1
- package/dist/client/assets/{synced-repos-CI3_H3AT.js → synced-repos-BkrGinYm.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-dsPv8CTR.js → tab-icon-glyph-BKCxoiYW.js} +1 -1
- package/dist/client/assets/{table-BZJiClHE.js → table-CVuS1iPX.js} +1 -1
- package/dist/client/assets/{tabs-DfGzsnLH.js → tabs-Cd2agB38.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-BHKH97zf.js → task-assignee-avatar-BYBjsWL5.js} +1 -1
- package/dist/client/assets/{task-board-Dm8bNO3K.js → task-board-B9avN4_l.js} +1 -1
- package/dist/client/assets/{task-route-BBHrPXRE.js → task-route-BNqkQrrq.js} +1 -1
- package/dist/client/assets/{task-status-_IE7-zSZ.js → task-status-C8jLc7eg.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-D8ekHlR-.js → taskboard-analytics-purMmAP5.js} +1 -1
- package/dist/client/assets/tasks-Dpq1mXlQ.js +1 -0
- package/dist/client/assets/{tasks-D4tEflS7.js → tasks-lqMRM7Lw.js} +1 -1
- package/dist/client/assets/{textarea-CAKcv24n.js → textarea-DbQbF1Rv.js} +1 -1
- package/dist/client/assets/{thread-analytics-G6rStSUo.js → thread-analytics-CtcTR_ij.js} +1 -1
- package/dist/client/assets/{thread-intent-BsxGmuSR.js → thread-intent-DaBdZVqc.js} +1 -1
- package/dist/client/assets/{thread-route-9cRZNr2M.js → thread-route-BRf6T_zJ.js} +1 -1
- package/dist/client/assets/{thread-route-D3729KYI.js → thread-route-CwX7v_t7.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-VzBt0XoY.js → thread-sheet-body-C9UBmWVp.js} +1 -1
- package/dist/client/assets/{time-range-picker-91AV0HS6.js → time-range-picker-COWgknWY.js} +1 -1
- package/dist/client/assets/{toggle-group-ClSmh9vS.js → toggle-group-DmRyqh-L.js} +1 -1
- package/dist/client/assets/{tool-namespace-B0q3DmKt.js → tool-namespace-B-IQX1un.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BucahLbT.js → toolbar-icon-button-BeP-M8G4.js} +1 -1
- package/dist/client/assets/{tooltip-Brg7rMxu.js → tooltip-C8XjApFK.js} +1 -1
- package/dist/client/assets/{tooltipContext-CAWfaR40.js → tooltipContext-DbOa_n2v.js} +1 -1
- package/dist/client/assets/{track-Dq6Jabi-.js → track-BMd3S4Lk.js} +1 -1
- package/dist/client/assets/{types-U_XTGsEf.js → types-XsRyHzlO.js} +1 -1
- package/dist/client/assets/{url-slug-BsWc5zfO.js → url-slug-CdB6un30.js} +1 -1
- package/dist/client/assets/{usage-stats-HoR2JsD9.js → usage-stats-BWCyT0Gy.js} +1 -1
- package/dist/client/assets/{use-ai-providers-x8ij_PJo.js → use-ai-providers-qH4Ik-Pc.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-Cx-2y6sV.js → use-apply-named-rule-DIfU8GBM.js} +1 -1
- package/dist/client/assets/{use-automations-Fc63b_KG.js → use-automations-KuMX1Eyf.js} +1 -1
- package/dist/client/assets/{use-autosave-C8L8-ch2.js → use-autosave-BZS_B-Eb.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-NN7EAnzB.js → use-chat-layout-state-BpHEG8dN.js} +1 -1
- package/dist/client/assets/{use-clock-tick-UZOKVfKg.js → use-clock-tick-COVD-B6i.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-jt_q-R4U.js → use-cms-publish-actions-CS1iAXW2.js} +1 -1
- package/dist/client/assets/{use-connect-companion-zHTvNdYj.js → use-connect-companion-BvXlvTHo.js} +1 -1
- package/dist/client/assets/{use-connection-Cgc61Xtr.js → use-connection-lO4qVssV.js} +1 -1
- package/dist/client/assets/{use-copy-BSSYnYt9.js → use-copy-BaREpT5V.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Z6TZ50Qb.js → use-create-virtual-mcp-aivifbd6.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-bZYQDNW6.js → use-date-fns-locale-QxOFdnEj.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D_8PFTvj.js → use-debounced-autosave-Clk1wdBH.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DnQLcCv-.js → use-debounced-value-CAD_ySlO.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CMm_AUOd.js → use-deco-credits-xIVL56ak.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CN2WGi1W.js → use-decopilot-events-BvC-A7tm.js} +1 -1
- package/dist/client/assets/{use-delete-connection-5k_2oH_8.js → use-delete-connection-BpPKD9TJ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CxT-vvMI.js → use-deployment-admin-Dgaa002n.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DAUi5Ssd.js → use-fast-preview-draft-url-xz2OlXDn.js} +1 -1
- package/dist/client/assets/{use-file-configs-BgZRiuct.js → use-file-configs-Ct3nydab.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-YVQqQ73y.js → use-inbox-feed-eeGQ_DN1.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-bLa9D24Y.js → use-infinite-scroll-Ds-mHwfs.js} +1 -1
- package/dist/client/assets/{use-join-requests-Ddt-qrso.js → use-join-requests-BNlc0_Bi.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BAOwa19w.js → use-main-panel-tabs-DUv47Jut.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-B97IRKUL.js → use-mcp-auth-status-CpBO6uQr.js} +1 -1
- package/dist/client/assets/{use-mcp-client-hu17ZOJ8.js → use-mcp-client-BbedkTYy.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-MX-NMwu3.js → use-mcp-prompts-A7WmAoPP.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Cj7uxxfh.js → use-mcp-tools-S-Ft2NlW.js} +1 -1
- package/dist/client/assets/{use-mobile-Dejc85O1.js → use-mobile-P3Ya8YzS.js} +1 -1
- package/dist/client/assets/{use-move-blocks-B4T5W0Hm.js → use-move-blocks-X_W67yy1.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BF-f4wie.js → use-navigate-to-agent-stfnpiNn.js} +1 -1
- package/dist/client/assets/{use-org-fs-rZplhn-U.js → use-org-fs-CmhGHpB2.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DVS_Dr6a.js → use-org-repo-syncs-CN2eHzh7.js} +1 -1
- package/dist/client/assets/{use-org-sso-0OPGq_oO.js → use-org-sso-BiJlyTWV.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DM9PZMxQ.js → use-organization-roles-DG2pmJnC.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DEIq_9Uh.js → use-organization-settings-Ba9V58eH.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BgatPgUi.js → use-panel-navigate-KByh7290.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CVHdUdbq.js → use-project-native-view-presence-C8uysnzz.js} +1 -1
- package/dist/client/assets/{use-project-scope-PXmIipBd.js → use-project-scope-DrGGvmGY.js} +1 -1
- package/dist/client/assets/{use-recent-apps-Be78Lwep.js → use-recent-apps-iXMg85OK.js} +1 -1
- package/dist/client/assets/{use-releases-C5KIUtRf.js → use-releases-DKA5o_an.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DE5GXSzJ.js → use-reports-diagnostic-CkbnKRM_.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-CiXFYvVz.js → use-sandbox-events-CaiD-g_5.js} +1 -1
- package/dist/client/assets/{use-secrets-B8Abfs3j.js → use-secrets-C2A91dbb.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-COTqEG7O.js → use-section-preview-base-Dga6-V7k.js} +1 -1
- package/dist/client/assets/{use-session-runtime-2LelPUAr.js → use-session-runtime-ByD3JgBL.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-j-XPIanS.js → use-sidebar-collapsed-YrrukETl.js} +1 -1
- package/dist/client/assets/{use-tags-Dgk1VEgl.js → use-tags-BCKxyzCy.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-C0GEKBZw.js → use-task-board-analytics-CXMAo-OF.js} +1 -1
- package/dist/client/assets/{use-task-board-events-Dt8aUDv3.js → use-task-board-events-BWy3_9E5.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-n4vW5QFa.js → use-task-board-item-prs-BZUwdBXT.js} +1 -1
- package/dist/client/assets/{use-task-metadata-De7tla9K.js → use-task-metadata-CkJJa11v.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DfIaX1Ap.js → use-thread-analytics-CrSfQ1un.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CSdE0zYx.js → use-thread-outputs-4nuB3F97.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cx_zUJaS.js +1 -0
- package/dist/client/assets/{useQueries-CNIDshJH.js → useQueries-4rQGIbkH.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-IJype0e6.js +1 -0
- package/dist/client/assets/{users-B-TILjnq.js → users-CEnYzpyP.js} +1 -1
- package/dist/client/assets/{utils-DadC4ah8.js → utils-CJvdN7wG.js} +1 -1
- package/dist/client/assets/{variant-calendar-D8PiAx9x.js → variant-calendar-D2fauPat.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-2g9uBTl1.js → variant-matcher-override-BjTp5TPV.js} +1 -1
- package/dist/client/assets/{view-header-BhtSyFCr.js → view-header-948FwwEa.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BDwuOLFs.js → virtual-mcp-Wp_Mdi2k.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-oOrd5Rne.js → watch-sse-pool-BzRfvQHl.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DSRZxbw3.js +0 -1
- package/dist/client/assets/agent-deck-A2-c0m6O.js +0 -1
- package/dist/client/assets/agent-experiments-wlW8VJJw.js +0 -1
- package/dist/client/assets/agent-library-CWF4NlBt.js +0 -1
- package/dist/client/assets/agent-library-file-D_sX0uS4.js +0 -1
- package/dist/client/assets/agent-monitor-BQH5Yx_e.js +0 -1
- package/dist/client/assets/agent-settings-bg4cFL2R.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Bt27Wh-E.js +0 -2
- package/dist/client/assets/agent-site-editor-content-iErVjhBr.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-9wBg_nt8.js +0 -1
- package/dist/client/assets/agent-view-Cq0YK235.js +0 -1
- package/dist/client/assets/api-keys-Bib1K_pR.js +0 -1
- package/dist/client/assets/library-CYc9fg8c.js +0 -1
- package/dist/client/assets/monitoring-D3H0I7hi.js +0 -1
- package/dist/client/assets/project-reports-DfiqiVgS.js +0 -1
- package/dist/client/assets/project-tasks-B4-5xZpm.js +0 -1
- package/dist/client/assets/record-editor-CgyyGcPu.js +0 -1
- package/dist/client/assets/reports-DBTfN5pF.js +0 -1
- package/dist/client/assets/repositories-DszPvY1k.js +0 -1
- package/dist/client/assets/route--iMMdfwf.js +0 -1
- package/dist/client/assets/settings-tab-BWjVxYyu.js +0 -1
- package/dist/client/assets/site-editor-DbCGWerX.js +0 -1
- package/dist/client/assets/tasks-Br3akql5.js +0 -1
- package/dist/client/assets/useInfiniteQuery-dDc-QqMO.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DdDhWqvv.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BBM8BuVw.js","assets/auth-entry-DVFGgDo3.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-DlL1FKYz.js","assets/cli-auth-success-iTSJzvih.js","assets/oauth-callback-CqZGgWEK.js","assets/mcp-oauth-CblPqKgI.js","assets/auth-BskCOxxm.js","assets/layout-D6sPMagm.js","assets/required-auth-layout-72vwEXGr.js","assets/use-deployment-admin-CxT-vvMI.js","assets/users-B-TILjnq.js","assets/collection-table-wrapper-DocmS6Tc.js","assets/table-BZJiClHE.js","assets/ArrowUp-DCa9i3G5.js","assets/empty-state-Cnib0rT2.js","assets/search-input-uZhyE3_X.js","assets/SearchMd-DU_oXGnf.js","assets/badge-CpDbvGYV.js","assets/use-debounced-value-DnQLcCv-.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-CPSuPDLg.js","assets/label-BuH5Zpb0.js","assets/select-BMOocRM-.js","assets/index-BdQq_4o_.js","assets/index-nip7iOYK.js","assets/ChevronUp-CF7bSX44.js","assets/switch-B_9nxf01.js","assets/textarea-CAKcv24n.js","assets/schema-DYbCJAzi.js","assets/site-slug-DebpOoQq.js","assets/prompts-yk9XkKJq.js","assets/shell-layout-Clz71xPl.js","assets/Building02-CVQp36XY.js","assets/UserSquare-B1jSdGVS.js","assets/agent-icon-B_qYhKCV.js","assets/AlertCircle-DRnRYwqq.js","assets/Tool01-BWgVn6V3.js","assets/ArrowLeft-dhJPRoJc.js","assets/LinkBroken01-K245w0c9.js","assets/ShoppingBag01-BjpYBEx2.js","assets/ZoomOut-D1ZMZ7Ql.js","assets/CheckCircle-DXy-8Gdi.js","assets/ChevronSelectorVertical-D8NLW3aV.js","assets/Copy01-V7GirmsP.js","assets/CreditCard01-DlBr5Kei.js","assets/DotsVertical-DE1RrMZs.js","assets/Image01-CJFRkMXP.js","assets/Globe04-C-hJB9ic.js","assets/SwitchHorizontal01-CMscdcfe.js","assets/Key01-BH_Io8ws.js","assets/Link01-BkANjVDr.js","assets/Minus-BwkA6Ip-.js","assets/Monitor01-mSGRD2AJ.js","assets/Sun-X-JIUgrn.js","assets/Play-CBQYMq3X.js","assets/Plus-C71dI_wT.js","assets/Trash01-5TBIiVL1.js","assets/Upload01-BU-XpefE.js","assets/Users01-BdkxkowI.js","assets/XClose-CDN_v21b.js","assets/use-project-scope-PXmIipBd.js","assets/repository-binding-CTtYHb-Z.js","assets/use-mcp-client-hu17ZOJ8.js","assets/use-panel-navigate-BgatPgUi.js","assets/thread-route-D3729KYI.js","assets/use-clock-tick-UZOKVfKg.js","assets/command-BIb5FsHz.js","assets/index-DsiaaSSc.js","assets/integration-icon-ChUs9lab.js","assets/project-icon-4djiAraX.js","assets/new-project-dialog-DNY2vbtl.js","assets/repository-import-picker-C77VQar8.js","assets/use-navigate-to-agent-BF-f4wie.js","assets/thread-intent-BsxGmuSR.js","assets/watch-sse-pool-oOrd5Rne.js","assets/task-board-Dm8bNO3K.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-B7eKH7Vb.js","assets/tooltip-Brg7rMxu.js","assets/useInfiniteQuery-dDc-QqMO.js","assets/infiniteQueryObserver-SqL3Niv0.js","assets/collection-search-B9JK80fQ.js","assets/use-organization-settings-DEIq_9Uh.js","assets/autosend-ymUlN8FG.js","assets/use-org-sso-0OPGq_oO.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-BSEVsBMK.js","assets/organization-choice-DF8NVX7q.js","assets/reports-onboarding-Ul6JEKVy.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-CcgFc2Vy.js","assets/form-eY6ZFlTm.js","assets/companion-mcps-section-D1zN7Mff.js","assets/use-connect-companion-zHTvNdYj.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/icon-button-zFSlO6o0.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-CNIDshJH.js","assets/authenticate-and-persist-oauth-DvAD85kB.js","assets/mcp-oauth-CRXIwZNg.js","assets/track-Dq6Jabi-.js","assets/extract-connection-data-BlzNpU0g.js","assets/connection--sIRN7Zz.js","assets/url-slug-BsWc5zfO.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-BxAQqsH4.js","assets/site-editor-DbCGWerX.js","assets/chat-context-BkD7cnTX.js","assets/use-decopilot-events-CN2WGi1W.js","assets/use-ai-providers-x8ij_PJo.js","assets/location-V0VwTJTt.js","assets/index-fxFKE7Rw.js","assets/use-mobile-Dejc85O1.js","assets/use-sidebar-collapsed-j-XPIanS.js","assets/use-chat-layout-state-NN7EAnzB.js","assets/toolbar-icon-button-BucahLbT.js","assets/sheet-DWuyd_rj.js","assets/resizable-Dy8CIRPz.js","assets/index-6f3vVVaF.js","assets/core.esm-BYO5Z6so.js","assets/sortable.esm-BXB60_eg.js","assets/context-menu-CGqIcw34.js","assets/project-apps-DT45o3Ib.js","assets/use-recent-apps-Be78Lwep.js","assets/blocks-preview-workspace-context-BTTauzVT.js","assets/site-editor-toast-84yUu6Hk.js","assets/use-session-runtime-2LelPUAr.js","assets/experiments-tab-choice-BF5vCkwx.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-DadC4ah8.js","assets/use-sandbox-events-CiXFYvVz.js","assets/sandbox-git-api-DcqI6XE4.js","assets/preview-tab-CvaKf5d6.js","assets/held-block-view-CFt9Epg_.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BPGH0UX4.js","assets/collapsible-Durvl14U.js","assets/use-copy-BSSYnYt9.js","assets/usage-stats-HoR2JsD9.js","assets/tool-namespace-B0q3DmKt.js","assets/utils-CVEq3hMx.js","assets/markdown-DI6hVa7Y.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-DYthJUs1.js","assets/types-U_XTGsEf.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-connection-Cgc61Xtr.js","assets/use-mcp-prompts-MX-NMwu3.js","assets/use-thread-outputs-CSdE0zYx.js","assets/file-type-icon-DgEz6vKD.js","assets/section-array-field-D0cRnZh-.js","assets/alert-WCvCZtxv.js","assets/parse-sections-COIV3ooN.js","assets/blocks-tab-states-KtRMrzHp.js","assets/slider-B2JpdpyA.js","assets/index-D6_0KaHs.js","assets/tooltipContext-CAWfaR40.js","assets/CategoricalChart-iu2AXlfn.js","assets/index-AYos0XvL.js","assets/ActiveShapeUtils-y_apbvuY.js","assets/Sector-DzJLml2K.js","assets/symbol-CSicVVsL.js","assets/popover-CnAr_EpU.js","assets/scroll-area-BED1KeeA.js","assets/monaco-editor-Dueqt8rk.js","assets/editor-CAg6_OHN.js","assets/calendar-CW9zUPQR.js","assets/editor-classes-65iPHzyu.js","assets/toggle-group-ClSmh9vS.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-WMsgd0Hv.js","assets/tabs-DfGzsnLH.js","assets/use-file-configs-BgZRiuct.js","assets/asset-utils-Cvf4BiC5.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-llpDvqG_.js","assets/variant-matcher-override-2g9uBTl1.js","assets/variant-draft-pointer-BeAKcq_c.js","assets/section-preview-url-7zfngvgW.js","assets/use-fast-preview-draft-url-DAUi5Ssd.js","assets/preview-link-C762yHOt.js","assets/device-hint-SeLRi17j.js","assets/virtual-mcp-BDwuOLFs.js","assets/app-preview-url-9Od4s8Sz.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-De7tla9K.js","assets/content-tab-CymL7-AU.js","assets/view-header-BhtSyFCr.js","assets/use-cms-publish-actions-jt_q-R4U.js","assets/hosted-publish-feedback-MplGvkIn.js","assets/mustache-DOlp7gZ2.js","assets/checkbox-DCZoKc7p.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-B4T5W0Hm.js","assets/empty-state-CbtDK1p4.js","assets/tab-icon-glyph-dsPv8CTR.js","assets/resolve-tab-icon-CBUsBNB8.js","assets/agent-site-editor-B49sCcgj.js","assets/site-draft-actions-BzPfC31f.js","assets/separator-Cc6-dV_Q.js","assets/use-releases-C5KIUtRf.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-CLAZinux.js","assets/drawer-Cxv0RJJc.js","assets/input-D2ABoz4g.js","assets/chat-draft-IizDUWYX.js","assets/use-deco-credits-CMm_AUOd.js","assets/index-DHtu77UN.js","assets/ai-providers-logos-DD3qZ33J.js","assets/input-fak0uH7y.js","assets/suggestion-LovLSSJc.js","assets/use-org-fs-rZplhn-U.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-BNIBgu15.js","assets/plan-ladder-BzTsrX2B.js","assets/add-connection-dialog-CMyo6oKy.js","assets/connection-card-PkrvBZMA.js","assets/connection-slug-CITJ0kGN.js","assets/schema-I274PqDR.js","assets/connection-form-helpers-BrcWs3bo.js","assets/collection-tabs-BSiUMQsV.js","assets/use-infinite-scroll-bLa9D24Y.js","assets/useSuspenseInfiniteQuery-DdDhWqvv.js","assets/use-task-board-events-Dt8aUDv3.js","assets/input-Bwd_JSM8.css","assets/named-rule-uses-H7aokudG.js","assets/save-changes-debug-nBi-n9eV.js","assets/releases-api-QVw7Rj4b.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-DdigpKAD.js","assets/reports-Dl0n8WK0.css","assets/route-dZA-wMYj.js","assets/use-join-requests-Ddt-qrso.js","assets/use-organization-roles-DM9PZMxQ.js","assets/use-inbox-feed-YVQqQ73y.js","assets/task-key-BCHdFiOO.js","assets/daily-pulse-BvP7pwHI.js","assets/config-D4iPB0e9.js","assets/use-thread-analytics-DfIaX1Ap.js","assets/project-profile-Cc4MG3QN.js","assets/use-project-native-view-presence-CVHdUdbq.js","assets/optimistic-project-sidebar-views-C0OxSQE7.js","assets/task-route-BBHrPXRE.js","assets/thread-route-9cRZNr2M.js","assets/use-reports-diagnostic-DE5GXSzJ.js","assets/connect-layout-CNlQiKvR.js","assets/route-Ct7_ewBL.js","assets/task-status-_IE7-zSZ.js","assets/use-main-panel-tabs-BAOwa19w.js","assets/use-mcp-tools-Cj7uxxfh.js","assets/legacy-main-redirect-Bb9KPjW0.js","assets/preview-dialog-D983fZOy.js","assets/preview-content-DRTZx9Bm.js","assets/file-share-button-DUzrxnvD.js","assets/file-preview-DVzYKzBM.js","assets/home-THfWLX1Q.js","assets/project-feed-Blm5WMCJ.js","assets/client-icons-Cui6El0q.js","assets/chart-o_A4s6u6.js","assets/ReferenceLine-CzNoqyDS.js","assets/CartesianChart-Bgq-aAjd.js","assets/BarChart-C6vIIs8P.js","assets/ErrorBarContext-D5PscfUk.js","assets/task-assignee-avatar-BHKH97zf.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-CtT4w4Zw.js","assets/agent-overview-CWssV5Yc.js","assets/mini-report-page-B4LPZV2X.js","assets/project-tasks-B4-5xZpm.js","assets/mock-board-qhB2rKsU.js","assets/use-task-board-analytics-C0GEKBZw.js","assets/column-rules-OoHv0JiH.js","assets/use-automations-Fc63b_KG.js","assets/search-toggle-l8vk8n5z.js","assets/use-tags-Dgk1VEgl.js","assets/index-BQy1fC7s.js","assets/index-zUB8FFE1.js","assets/use-task-board-item-prs-n4vW5QFa.js","assets/thread-sheet-body-VzBt0XoY.js","assets/feature-gate-BMkqzt-o.js","assets/project-reports-DfiqiVgS.js","assets/reports-tab-DhjP52wy.js","assets/agent-site-editor-preview-9wBg_nt8.js","assets/agent-view-guard-DQWcU1Ta.js","assets/agent-site-editor-content-iErVjhBr.js","assets/agent-site-editor-code-Bt27Wh-E.js","assets/agent-automations-BsD4sRtI.js","assets/automation-list-row-DiCSbeEW.js","assets/agent-automation-CyA1eJ7V.js","assets/select-model-CJjqgzAL.js","assets/build-improve-prompt-doc-CtlNAkdJ.js","assets/use-debounced-autosave-D_8PFTvj.js","assets/jira-icon-DVEz-ds4.js","assets/multi-select-CwOtZVAK.js","assets/automation-runs-DYOdKm7X.js","assets/agent-settings-bg4cFL2R.js","assets/settings-tab-BWjVxYyu.js","assets/index-B8dQ7TV1.js","assets/use-date-fns-locale-bZYQDNW6.js","assets/use-mcp-auth-status-B97IRKUL.js","assets/sections-By49OdzN.js","assets/secret-picker-BLUn_4nc.js","assets/use-secrets-B8Abfs3j.js","assets/agent-library-CWF4NlBt.js","assets/context-shell-CVMVXPAa.js","assets/use-org-repo-syncs-DVS_Dr6a.js","assets/folder-icon-BvWvz4ba.js","assets/require-capability-DhL0sK8n.js","assets/access-gate-ClGPmPHt.js","assets/capability-load-error-DoOw8kK-.js","assets/agent-assets-6uaUqu-8.js","assets/agent-releases-UAZXpaXI.js","assets/agent-hosting-B1V0UQdc.js","assets/agent-e2e-BzG5Njlc.js","assets/agent-analytics-BVA-hdXj.js","assets/AreaChart-qZjFj5zm.js","assets/agent-analytics-BIY4JtC5.css","assets/taskboard-analytics-D8ekHlR-.js","assets/time-range-picker-91AV0HS6.js","assets/analytics-sections-CM96IJ_a.js","assets/agent-experiments-wlW8VJJw.js","assets/experiments-tab-l3lCfqnU.js","assets/site-draft-view-Ci_mlKWw.js","assets/use-apply-named-rule-Cx-2y6sV.js","assets/agent-calendar-y11lHEIG.js","assets/agent-monitor-BQH5Yx_e.js","assets/cdn-tab-Bpp4qG9y.js","assets/order-monitor-day-CUDQDazN.js","assets/agent-app-DSRZxbw3.js","assets/project-app-view-xsT09BTO.js","assets/connect-source-dialog-CWR4mzJ5.js","assets/agent-view-Cq0YK235.js","assets/agent-file-BJmjvL-m.js","assets/agent-deck-A2-c0m6O.js","assets/agent-library-file-D_sX0uS4.js","assets/preview-panel-O0kBlxM5.js","assets/agent-connect-sources-CRiv9LNt.js","assets/legacy-agents-deep-y8J0GP6s.js","assets/tasks-Br3akql5.js","assets/thread-analytics-G6rStSUo.js","assets/reports-DBTfN5pF.js","assets/library-CYc9fg8c.js","assets/plan-CfDWTivB.js","assets/monitoring-D3H0I7hi.js","assets/discover-DJgQKXJH.js","assets/index-DWVvKiTX.js","assets/route--iMMdfwf.js","assets/index-redirect-CRKl1so8.js","assets/connections-QKF1QePN.js","assets/collection-display-button-DO-A4M7I.js","assets/use-delete-connection-5k_2oH_8.js","assets/connection-detail-BwPdukE_.js","assets/index-GMTk4kpU.js","assets/use-create-virtual-mcp-Z6TZ50Qb.js","assets/monitoring-stats-row-Bq961t1j.js","assets/collection-detail-gEKfAeD7.js","assets/index-CsApew6l.js","assets/general-BqcsPemZ.js","assets/review-settings-BsYqbcN2.js","assets/domain-settings-DNVwbeRA.js","assets/connect-CHkKmE6B.js","assets/api-keys-CeA4G_71.js","assets/ai-providers-DpN4-Rc5.js","assets/infra-billing-ByQAtfnW.js","assets/secrets-BXN3pXLj.js","assets/api-keys-Bib1K_pR.js","assets/buckets-CqBAv48G.js","assets/repositories-DszPvY1k.js","assets/repositories-D84WLywY.js","assets/synced-repos-CI3_H3AT.js","assets/tasks-D4tEflS7.js","assets/projects-BMFJ8lWh.js","assets/members-C3RrM6Y9.js","assets/role-color-Dn2tXDDF.js","assets/roles-yd97r8fq.js","assets/sso-aL7cdgbc.js","assets/profile-DrTKObjn.js","assets/agents-list-CXRwlTsL.js","assets/automations-DU9elJA8.js","assets/skills-BjJIGPkE.js","assets/memory-DnnTazxf.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-DgUtsKWW.js","assets/auth-entry-DvtPCAAG.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-DIWXo7Gc.js","assets/cli-auth-success-DNkw3dEj.js","assets/oauth-callback-DbbVim0F.js","assets/mcp-oauth-GNmXiFFs.js","assets/auth-CCEtTsph.js","assets/layout-riOmO6on.js","assets/required-auth-layout-CTbioyWv.js","assets/use-deployment-admin-Dgaa002n.js","assets/users-CEnYzpyP.js","assets/collection-table-wrapper-BARBu1vh.js","assets/table-CVuS1iPX.js","assets/ArrowUp-Bu18irF8.js","assets/empty-state-B3GXzASb.js","assets/search-input-BR0FL_fC.js","assets/SearchMd-urqTL2Em.js","assets/badge-DcwG1m6V.js","assets/use-debounced-value-CAD_ySlO.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-Cs710gnu.js","assets/label-C5E6YdDo.js","assets/select-DnNBXCrg.js","assets/index-BdQq_4o_.js","assets/index--yOMwZND.js","assets/ChevronUp-D7JVZ_BI.js","assets/switch-DAt1CJQ8.js","assets/textarea-DbQbF1Rv.js","assets/schema-BR0l4kRv.js","assets/site-slug-DebpOoQq.js","assets/prompts-B_F4GkjW.js","assets/shell-layout-CFh0mRqD.js","assets/Building02-D-2NbAZo.js","assets/UserSquare-C1dwG7kT.js","assets/agent-icon-DdxCtAec.js","assets/AlertCircle-DsSNGaRO.js","assets/Tool01-CVApp_1G.js","assets/ArrowLeft-B01RxJRj.js","assets/LinkBroken01-Dd7298F5.js","assets/ShoppingBag01-B86_QWlx.js","assets/ZoomOut-f9tZKJSQ.js","assets/CheckCircle-B4-Ff7Qe.js","assets/ChevronSelectorVertical-adxPKAxb.js","assets/Copy01-F5_ROU3s.js","assets/CreditCard01-CgE_ZJJj.js","assets/DotsVertical-hdwmfsYl.js","assets/Image01-DPi9CgXb.js","assets/Globe04-BLJZauXI.js","assets/SwitchHorizontal01-CR3vOgLU.js","assets/Key01-BrDjS2pL.js","assets/Link01-CtgaWX0o.js","assets/Minus-Ct2ChLHg.js","assets/Monitor01-CScek5CL.js","assets/Sun-DxJF0OxD.js","assets/Play-CH9WhvU1.js","assets/Plus-CU39WUtG.js","assets/Trash01-EkCl9YTp.js","assets/Upload01-1uTS_89T.js","assets/Users01-B_qvNCiA.js","assets/XClose-DvIVBQdA.js","assets/use-project-scope-DrGGvmGY.js","assets/repository-binding-CThoSyHv.js","assets/use-mcp-client-BbedkTYy.js","assets/use-panel-navigate-KByh7290.js","assets/thread-route-CwX7v_t7.js","assets/use-clock-tick-COVD-B6i.js","assets/command-Cbu8fmOM.js","assets/index-DpNp-ve5.js","assets/integration-icon-Doe4P0Kl.js","assets/project-icon-Dfjy3t6s.js","assets/new-project-dialog-KDS7pzFq.js","assets/repository-import-picker-qAuaD12k.js","assets/use-navigate-to-agent-stfnpiNn.js","assets/thread-intent-DaBdZVqc.js","assets/watch-sse-pool-BzRfvQHl.js","assets/task-board-B9avN4_l.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-DDRyvQsk.js","assets/tooltip-C8XjApFK.js","assets/useInfiniteQuery-Cx_zUJaS.js","assets/infiniteQueryObserver-CLbhIHpL.js","assets/collection-search-BhydX10Z.js","assets/use-organization-settings-Ba9V58eH.js","assets/autosend-BZ1ebJtY.js","assets/use-org-sso-BiJlyTWV.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-j1GMg75H.js","assets/organization-choice-XuLR3C-R.js","assets/reports-onboarding-BAV-tGI2.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-CYQqeQxi.js","assets/form-BhcKMpGj.js","assets/companion-mcps-section-Du5SYEcB.js","assets/use-connect-companion-BvXlvTHo.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/icon-button-_ohlwTDE.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-4rQGIbkH.js","assets/authenticate-and-persist-oauth-6k6dgv04.js","assets/mcp-oauth-DmOKmZVC.js","assets/track-BMd3S4Lk.js","assets/extract-connection-data-BRjQoUH9.js","assets/connection-DgniLm7d.js","assets/url-slug-CdB6un30.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-UoMkV9t4.js","assets/site-editor-C2-TKEXJ.js","assets/chat-context-B1aQFxFE.js","assets/use-decopilot-events-BvC-A7tm.js","assets/use-ai-providers-qH4Ik-Pc.js","assets/location-V0VwTJTt.js","assets/index-yPsmQJUX.js","assets/use-mobile-P3Ya8YzS.js","assets/use-sidebar-collapsed-YrrukETl.js","assets/use-chat-layout-state-BpHEG8dN.js","assets/toolbar-icon-button-BeP-M8G4.js","assets/sheet-ChxaMPjW.js","assets/resizable-0Gk3-z7N.js","assets/index-VBuL7prM.js","assets/core.esm-BFZ42Fv-.js","assets/sortable.esm-Cwxw88KL.js","assets/context-menu-BH71okli.js","assets/project-apps-C2Jbw7FY.js","assets/use-recent-apps-iXMg85OK.js","assets/blocks-preview-workspace-context-Ciybb5dj.js","assets/site-editor-toast-BP7D4YGW.js","assets/use-session-runtime-ByD3JgBL.js","assets/experiments-tab-choice-DWXV3ugT.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-CJvdN7wG.js","assets/use-sandbox-events-CaiD-g_5.js","assets/sandbox-git-api-DcqI6XE4.js","assets/preview-tab-Xru15zHI.js","assets/held-block-view-DkrnAzuf.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BDAPJ4rm.js","assets/collapsible-CrBKXUy-.js","assets/use-copy-BaREpT5V.js","assets/usage-stats-BWCyT0Gy.js","assets/tool-namespace-B-IQX1un.js","assets/utils-CVEq3hMx.js","assets/markdown-DAn8k64V.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-GoIuZHuL.js","assets/types-XsRyHzlO.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-connection-lO4qVssV.js","assets/use-mcp-prompts-A7WmAoPP.js","assets/use-thread-outputs-4nuB3F97.js","assets/file-type-icon-DvOOhYea.js","assets/section-array-field-BwqyQovG.js","assets/alert-DywPCve6.js","assets/parse-sections-W3MPdtXH.js","assets/blocks-tab-states-x44-eBGF.js","assets/slider-nQTOuF1W.js","assets/index-DkVNMG5q.js","assets/tooltipContext-DbOa_n2v.js","assets/CategoricalChart-DCX1zl8x.js","assets/index-Rt22aFrD.js","assets/ActiveShapeUtils-yhcUtHHS.js","assets/Sector-CvZL63_f.js","assets/symbol-Bc71_aUK.js","assets/popover-DNkrJQB1.js","assets/scroll-area-BYxy4OBv.js","assets/monaco-editor-CcV2aDa3.js","assets/editor-CmkWU8tF.js","assets/calendar-oJys4zZv.js","assets/editor-classes-AwfBlmhb.js","assets/toggle-group-DmRyqh-L.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-dm7wbcfJ.js","assets/tabs-Cd2agB38.js","assets/use-file-configs-Ct3nydab.js","assets/asset-utils-DOIw71D7.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-DAMj2AMG.js","assets/variant-matcher-override-BjTp5TPV.js","assets/variant-draft-pointer-BeAKcq_c.js","assets/section-preview-url-7zfngvgW.js","assets/use-fast-preview-draft-url-xz2OlXDn.js","assets/preview-link-C762yHOt.js","assets/device-hint-SeLRi17j.js","assets/virtual-mcp-Wp_Mdi2k.js","assets/app-preview-url-9Od4s8Sz.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-CkJJa11v.js","assets/content-tab-C1joQocl.js","assets/view-header-948FwwEa.js","assets/use-cms-publish-actions-CS1iAXW2.js","assets/hosted-publish-feedback-XDssqS4G.js","assets/mustache-Bg8EgQ-_.js","assets/checkbox-DNPIatCE.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-X_W67yy1.js","assets/empty-state-90fmDGX0.js","assets/tab-icon-glyph-BKCxoiYW.js","assets/resolve-tab-icon-Qu0kefvi.js","assets/agent-site-editor-CHB6L936.js","assets/site-draft-actions-CU_5sg8P.js","assets/separator-DwMB-4Kw.js","assets/use-releases-DKA5o_an.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-DO7O5_6P.js","assets/drawer-YkScn96W.js","assets/input-BvXOMQxX.js","assets/chat-draft-BvTOIlI2.js","assets/use-deco-credits-xIVL56ak.js","assets/index-C_be57Rz.js","assets/ai-providers-logos-DD3qZ33J.js","assets/input-Cc7xo0Fp.js","assets/suggestion-DuRjk-tw.js","assets/use-org-fs-CmhGHpB2.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-DVIw8_0X.js","assets/plan-ladder-BEBIL2qt.js","assets/add-connection-dialog-Dbcpql79.js","assets/connection-card-Cw8hQEWn.js","assets/connection-slug-CITJ0kGN.js","assets/schema-C7tXzejf.js","assets/connection-form-helpers-4Hsujj3d.js","assets/collection-tabs-Cp1aS08H.js","assets/use-infinite-scroll-Ds-mHwfs.js","assets/useSuspenseInfiniteQuery-IJype0e6.js","assets/use-task-board-events-BWy3_9E5.js","assets/input-Bwd_JSM8.css","assets/named-rule-uses-BukH47Cc.js","assets/save-changes-debug-nBi-n9eV.js","assets/releases-api-2dcptM-m.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-wfUqOvyX.js","assets/reports-Dl0n8WK0.css","assets/route-Es1NvkGT.js","assets/use-join-requests-BNlc0_Bi.js","assets/use-organization-roles-DG2pmJnC.js","assets/use-inbox-feed-eeGQ_DN1.js","assets/task-key-BCHdFiOO.js","assets/daily-pulse-B-UdOCnV.js","assets/config-D-WhNnKe.js","assets/use-thread-analytics-CrSfQ1un.js","assets/project-profile-Cc4MG3QN.js","assets/use-project-native-view-presence-C8uysnzz.js","assets/optimistic-project-sidebar-views-CnClfQJl.js","assets/task-route-BNqkQrrq.js","assets/thread-route-BRf6T_zJ.js","assets/use-reports-diagnostic-CkbnKRM_.js","assets/connect-layout-rbbb5nyp.js","assets/route-DR5ZYcAb.js","assets/task-status-C8jLc7eg.js","assets/use-main-panel-tabs-DUv47Jut.js","assets/use-mcp-tools-S-Ft2NlW.js","assets/legacy-main-redirect-DwVqZb3U.js","assets/preview-dialog-uNk-Chy3.js","assets/preview-content-cF1uruZg.js","assets/file-share-button-DXk4glwK.js","assets/file-preview-Cvk8WhE8.js","assets/home-CfIaMz61.js","assets/project-feed-euP67ikd.js","assets/client-icons-lVC2u726.js","assets/chart-ucSG4w2I.js","assets/ReferenceLine-CeyUUBIl.js","assets/CartesianChart-8vSKNYyy.js","assets/BarChart-C5cLeRST.js","assets/ErrorBarContext-BSipIxD5.js","assets/task-assignee-avatar-BYBjsWL5.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-BgRJeB5B.js","assets/agent-overview-DzUwaDPE.js","assets/mini-report-page-CyrcjR-n.js","assets/project-tasks-CY2-X4de.js","assets/mock-board-0xaTtb2M.js","assets/use-task-board-analytics-CXMAo-OF.js","assets/column-rules-D1e6dBZX.js","assets/use-automations-KuMX1Eyf.js","assets/search-toggle-DcHknRA4.js","assets/use-tags-BCKxyzCy.js","assets/index-BsOvs6Ud.js","assets/index-Dzx12qZo.js","assets/use-task-board-item-prs-BZUwdBXT.js","assets/thread-sheet-body-C9UBmWVp.js","assets/feature-gate-_OoKH8Jk.js","assets/project-reports-IGQXKPN5.js","assets/reports-tab-BeUKP0xb.js","assets/agent-site-editor-preview-BR5d0muf.js","assets/agent-view-guard-ClXzE-63.js","assets/agent-site-editor-content-wfNxlhTc.js","assets/agent-site-editor-code-rnWgDK69.js","assets/agent-automations-DHlAGZqt.js","assets/automation-list-row-jw2OeMwv.js","assets/agent-automation-CC_lLFSH.js","assets/select-model-B6ZHDJHF.js","assets/build-improve-prompt-doc-DRyZLp5K.js","assets/use-debounced-autosave-Clk1wdBH.js","assets/jira-icon-Chsuz196.js","assets/multi-select-4N4vHK34.js","assets/automation-runs-CkP3Dw5Q.js","assets/agent-settings--ns22OIv.js","assets/settings-tab-C-wgOIRP.js","assets/index-BXQ48iRT.js","assets/use-date-fns-locale-QxOFdnEj.js","assets/use-mcp-auth-status-CpBO6uQr.js","assets/sections-CSz7GDoH.js","assets/secret-picker-BzajETTn.js","assets/use-secrets-C2A91dbb.js","assets/agent-library-v2dzRuYM.js","assets/context-shell-BudktJu-.js","assets/use-org-repo-syncs-CN2eHzh7.js","assets/folder-icon-D_WM_HWT.js","assets/require-capability-DNr9UvJX.js","assets/access-gate-Cyf9akuC.js","assets/capability-load-error-DAkHaZ7h.js","assets/agent-assets-BRZ3h-_m.js","assets/agent-releases-DwCJjs1Q.js","assets/agent-hosting-D1g9tqwP.js","assets/agent-e2e-CioASlMh.js","assets/agent-analytics-Dea_Sm2-.js","assets/AreaChart-BAQGKkiD.js","assets/agent-analytics-BIY4JtC5.css","assets/taskboard-analytics-purMmAP5.js","assets/time-range-picker-COWgknWY.js","assets/analytics-sections-CnVdxown.js","assets/agent-experiments-CcumhNxI.js","assets/experiments-tab-6jnr153j.js","assets/site-draft-view-DOLlSFeR.js","assets/use-apply-named-rule-DIfU8GBM.js","assets/agent-calendar-CxREsux6.js","assets/agent-monitor-CDPdxMY7.js","assets/cdn-tab-I-wgZFbg.js","assets/order-monitor-day-t2WYWs4x.js","assets/agent-app-DtceHxFF.js","assets/project-app-view-DvMT9mh-.js","assets/connect-source-dialog-CJoxgNIe.js","assets/agent-view-BvqKVVI5.js","assets/agent-file-so3Ekgz4.js","assets/agent-deck-W_6gGRWO.js","assets/agent-library-file-Ba-KbKkE.js","assets/preview-panel-DUt7zZ3m.js","assets/agent-connect-sources-Cc5YgmZz.js","assets/legacy-agents-deep-oaDc8wO4.js","assets/tasks-Dpq1mXlQ.js","assets/thread-analytics-CtcTR_ij.js","assets/reports-DHZ9jnE-.js","assets/library-Dt_VODwM.js","assets/plan-fCa7FPkH.js","assets/monitoring-CfBB8r1M.js","assets/discover-C-gupiYw.js","assets/index-C5dfiFIi.js","assets/route-BYI1w_04.js","assets/index-redirect-DMltTqzD.js","assets/connections-BKsPGhzD.js","assets/collection-display-button-pzAVpzEr.js","assets/use-delete-connection-BpPKD9TJ.js","assets/connection-detail-BTzq0-mw.js","assets/index-BtxGXVC2.js","assets/use-create-virtual-mcp-aivifbd6.js","assets/monitoring-stats-row--0zJofeS.js","assets/collection-detail-D7GUC7Dd.js","assets/index-dyo6wh5U.js","assets/general-CeOBobjk.js","assets/review-settings-Booi8OB4.js","assets/domain-settings-dKTh9O6x.js","assets/connect-DCArRhMu.js","assets/api-keys-DwmN5uqI.js","assets/ai-providers-8aNYexZO.js","assets/infra-billing-weSo9hes.js","assets/secrets-B87bnnT8.js","assets/api-keys-DMelMJEn.js","assets/buckets-DqjY95YI.js","assets/repositories-CtTuC1Hs.js","assets/repositories-B5dh5AKC.js","assets/synced-repos-BkrGinYm.js","assets/tasks-lqMRM7Lw.js","assets/projects-Dv4lrItl.js","assets/members-Cip4CN1C.js","assets/role-color-Dn2tXDDF.js","assets/roles-DoAZd2f4.js","assets/sso-BnmIWVxe.js","assets/profile-BsxWlumA.js","assets/agents-list-DpIfckJp.js","assets/automations-BVaTi9yR.js","assets/skills-BDo7F1SW.js","assets/memory-_pGxZsnC.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function J8(t,e){for(var a=0;a<e.length;a++){const o=e[a];if(typeof o!="string"&&!Array.isArray(o)){for(const n in o)if(n!=="default"&&!(n in t)){const r=Object.getOwnPropertyDescriptor(o,n);r&&Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>o[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"]'))o(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"&&o(s)}).observe(document,{childList:!0,subtree:!0});function a(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 o(n){if(n.ep)return;n.ep=!0;const r=a(n);fetch(n.href,r)}})();var vSe=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 VT={exports:{}},Uu={};var bA;function X8(){if(bA)return Uu;bA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function a(o,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:o,key:s,ref:n!==void 0?n:null,props:r}}return Uu.Fragment=e,Uu.jsx=a,Uu.jsxs=a,Uu}var vA;function eq(){return vA||(vA=1,VT.exports=X8()),VT.exports}var v=eq(),HT={exports:{}},dt={};var yA;function tq(){if(yA)return dt;yA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=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 b(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(){}},T=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 P(){}P.prototype=w.prototype;function k(N,G,V){this.props=N,this.context=G,this.refs=x,this.updater=V||y}var C=k.prototype=new P;C.constructor=k,T(C,w.prototype),C.isPureReactComponent=!0;var _=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 q(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 ae(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,_(j)?(V="",de!=null&&(V=de.replace(F,"$&/")+"/"),H(j,G,V,"",function(Ue){return Ue})):j!=null&&(B(j)&&(j=q(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(_(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=b(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(ae(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=a,dt.Profiler=n,dt.PureComponent=k,dt.StrictMode=o,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=T({},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 TA;function $s(){return TA||(TA=1,HT.exports=tq()),HT.exports}var A=$s();const ee=Wl(A),nP=J8({__proto__:null,default:ee},[A]);var GT={exports:{}},qu={},WT={exports:{}},KT={};var SA;function aq(){return SA||(SA=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 a(H){return H.length===0?null:H[0]}function o(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,b=!1,y=!1,T=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function C(H){for(var K=a(u);K!==null;){if(K.callback===null)o(u);else if(K.startTime<=H)o(u),K.sortIndex=K.expirationTime,e(d,K);else break;K=a(u)}}function _(H){if(T=!1,C(H),!y)if(a(d)!==null)y=!0,D||(D=!0,z());else{var K=a(u);K!==null&&ae(_,K.startTime-H)}}var D=!1,R=-1,O=5,L=-1;function q(){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,T&&(T=!1,P(R),R=-1),b=!0;var J=f;try{t:{for(C(H),h=a(d);h!==null&&!(h.expirationTime>H&&q());){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===a(d)&&o(d),C(H)}else o(d);h=a(d)}if(h!==null)K=!0;else{var N=a(u);N!==null&&ae(_,N.startTime-H),K=!1}}break e}finally{h=null,f=J,b=!1}K=void 0}}finally{K?z():D=!1}}}var z;if(typeof k=="function")z=function(){k(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 ae(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),a(d)===null&&H===a(u)&&(T?(P(R),R=-1):T=!0,ae(_,J-ie))):(H.sortIndex=Q,e(d,H),y||b||(y=!0,D||(D=!0,z()))),H},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(H){var K=f;return function(){var J=f;f=K;try{return H.apply(this,arguments)}finally{f=J}}}})(KT)),KT}var wA;function oq(){return wA||(wA=1,WT.exports=aq()),WT.exports}var YT={exports:{}},No={};var xA;function nq(){if(xA)return No;xA=1;var t=$s();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 a(){}var o={d:{f:a,r:function(){throw Error(e(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},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 No.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,No.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)},No.flushSync=function(d){var u=s.T,m=o.p;try{if(s.T=null,o.p=2,d)return d()}finally{s.T=u,o.p=m,o.d.f()}},No.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,o.d.C(d,u))},No.prefetchDNS=function(d){typeof d=="string"&&o.d.D(d)},No.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,b=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?o.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:b}):m==="script"&&o.d.X(d,{crossOrigin:h,integrity:f,fetchPriority:b,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},No.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);o.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&&o.d.M(d)},No.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);o.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})}},No.preloadModule=function(d,u){if(typeof d=="string")if(u){var m=c(u.as,u.crossOrigin);o.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 o.d.m(d)},No.requestFormReset=function(d){o.d.r(d)},No.unstable_batchedUpdates=function(d,u){return d(u)},No.useFormState=function(d,u,m){return s.H.useFormState(d,u,m)},No.useFormStatus=function(){return s.H.useHostTransitionStatus()},No.version="19.2.6",No}var PA;function mN(){if(PA)return YT.exports;PA=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(),YT.exports=nq(),YT.exports}var CA;function rq(){if(CA)return qu;CA=1;var t=oq(),e=$s(),a=mN();function o(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(o(188))}function u(i){var l=i.alternate;if(!l){if(l=r(i),l===null)throw Error(o(188));return l!==i?null:i}for(var p=i,g=l;;){var S=p.return;if(S===null)break;var E=S.alternate;if(E===null){if(g=S.return,g!==null){p=g;continue}break}if(S.child===E.child){for(E=S.child;E;){if(E===p)return d(S),i;if(E===g)return d(S),l;E=E.sibling}throw Error(o(188))}if(p.return!==g.return)p=S,g=E;else{for(var M=!1,U=S.child;U;){if(U===p){M=!0,p=S,g=E;break}if(U===g){M=!0,g=S,p=E;break}U=U.sibling}if(!M){for(U=E.child;U;){if(U===p){M=!0,p=E,g=S;break}if(U===g){M=!0,g=E,p=S;break}U=U.sibling}if(!M)throw Error(o(189))}}if(p.alternate!==g)throw Error(o(190))}if(p.tag!==3)throw Error(o(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"),b=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),k=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),_=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"),q=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 T:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case D:return"SuspenseList";case L:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case k:return i.displayName||"Context";case P: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 ae=Array.isArray,H=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=a.__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,be;function se(i){if(ne===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);ne=l&&l[1]||"",be=-1<p.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ne+i+be}var xe=!1;function ke(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 Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(fe){var he=fe}Reflect.construct(i,[],Pe)}else{try{Pe.call()}catch(fe){he=fe}i.call(Pe.prototype)}}else{try{throw Error()}catch(fe){he=fe}(Pe=i())&&typeof Pe.catch=="function"&&Pe.catch(function(){})}}catch(fe){if(fe&&he&&typeof fe.stack=="string")return[fe.stack,he.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");S&&S.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,o._)`[${D}]`)}}}function f({gen:P,parentData:k,parentDataProperty:C},_){P.if((0,o._)`${k} !== undefined`,()=>P.assign((0,o._)`${k}[${C}]`,_))}function b(P,k,C,_=r.Correct){const D=_===r.Correct?o.operators.EQ:o.operators.NEQ;let R;switch(P){case"null":return(0,o._)`${k} ${D} null`;case"array":R=(0,o._)`Array.isArray(${k})`;break;case"object":R=(0,o._)`${k} && typeof ${k} == "object" && !Array.isArray(${k})`;break;case"integer":R=O((0,o._)`!(${k} % 1) && !isNaN(${k})`);break;case"number":R=O();break;default:return(0,o._)`typeof ${k} ${D} ${P}`}return _===r.Correct?R:(0,o.not)(R);function O(L=o.nil){return(0,o.and)((0,o._)`typeof ${k} == "number"`,L,C?(0,o._)`isFinite(${k})`:o.nil)}}So.checkDataType=b;function y(P,k,C,_){if(P.length===1)return b(P[0],k,C,_);let D;const R=(0,n.toHash)(P);if(R.array&&R.object){const O=(0,o._)`typeof ${k} != "object"`;D=R.null?O:(0,o._)`!${k} || ${O}`,delete R.null,delete R.array,delete R.object}else D=o.nil;R.number&&delete R.integer;for(const O in R)D=(0,o.and)(D,b(O,k,C,_));return D}So.checkDataTypes=y;const T={message:({schema:P})=>`must be ${P}`,params:({schema:P,schemaValue:k})=>typeof P=="string"?(0,o._)`{type: ${P}}`:(0,o._)`{type: ${k}}`};function x(P){const k=w(P);(0,a.reportError)(k,T)}So.reportTypeError=x;function w(P){const{gen:k,data:C,schema:_}=P,D=(0,n.schemaRefOrVal)(P,_,"type");return{gen:k,keyword:"type",data:C,schema:_.type,schemaCode:D,schemaValue:D,parentSchema:_,params:{},it:P}}return So}var Wu={},HR;function xZ(){if(HR)return Wu;HR=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.assignDefaults=void 0;const t=Tt(),e=Ft();function a(n,r){const{properties:s,items:c}=n.schema;if(r==="object"&&s)for(const d in s)o(n,d,s[d].default);else r==="array"&&Array.isArray(c)&&c.forEach((d,u)=>o(n,u,d.default))}Wu.assignDefaults=a;function o(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=Tt(),e=Ft(),a=Ys(),o=Ft();function n(P,k){const{gen:C,data:_,it:D}=P;C.if(m(C,_,k,D.opts.ownProperties),()=>{P.setParams({missingProperty:(0,t._)`${k}`},!0),P.error()})}Zt.checkReportMissingProp=n;function r({gen:P,data:k,it:{opts:C}},_,D){return(0,t.or)(..._.map(R=>(0,t.and)(m(P,k,R,C.ownProperties),(0,t._)`${D} = ${R}`)))}Zt.checkMissingProp=r;function s(P,k){P.setParams({missingProperty:k},!0),P.error()}Zt.reportMissingProp=s;function c(P){return P.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}Zt.hasPropFunc=c;function d(P,k,C){return(0,t._)`${c(P)}.call(${k}, ${C})`}Zt.isOwnProperty=d;function u(P,k,C,_){const D=(0,t._)`${k}${(0,t.getProperty)(C)} !== undefined`;return _?(0,t._)`${D} && ${d(P,k,C)}`:D}Zt.propertyInData=u;function m(P,k,C,_){const D=(0,t._)`${k}${(0,t.getProperty)(C)} === undefined`;return _?(0,t.or)(D,(0,t.not)(d(P,k,C))):D}Zt.noPropertyInData=m;function h(P){return P?Object.keys(P).filter(k=>k!=="__proto__"):[]}Zt.allSchemaProperties=h;function f(P,k){return h(k).filter(C=>!(0,e.alwaysValidSchema)(P,k[C]))}Zt.schemaProperties=f;function b({schemaCode:P,data:k,it:{gen:C,topSchemaRef:_,schemaPath:D,errorPath:R},it:O},L,q,B){const z=B?(0,t._)`${P}, ${k}, ${_}${D}`:k,F=[[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,R)],[a.default.parentData,O.parentData],[a.default.parentDataProperty,O.parentDataProperty],[a.default.rootData,a.default.rootData]];O.opts.dynamicRef&&F.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const W=(0,t._)`${z}, ${C.object(...F)}`;return q!==t.nil?(0,t._)`${L}.call(${q}, ${W})`:(0,t._)`${L}(${W})`}Zt.callValidateCode=b;const y=(0,t._)`new RegExp`;function T({gen:P,it:{opts:k}},C){const _=k.unicodeRegExp?"u":"",{regExp:D}=k.code,R=D(C,_);return P.scopeValue("pattern",{key:R.toString(),ref:R,code:(0,t._)`${D.code==="new RegExp"?y:(0,o.useFunc)(P,D)}(${C}, ${_})`})}Zt.usePattern=T;function x(P){const{gen:k,data:C,keyword:_,it:D}=P,R=k.name("valid");if(D.allErrors){const L=k.let("valid",!0);return O(()=>k.assign(L,!1)),L}return k.var(R,!0),O(()=>k.break()),R;function O(L){const q=k.const("len",(0,t._)`${C}.length`);k.forRange("i",0,q,B=>{P.subschema({keyword:_,dataProp:B,dataPropType:e.Type.Num},R),k.if((0,t.not)(R),L)})}}Zt.validateArray=x;function w(P){const{gen:k,schema:C,keyword:_,it:D}=P;if(!Array.isArray(C))throw new Error("ajv implementation error");if(C.some(q=>(0,e.alwaysValidSchema)(D,q))&&!D.opts.unevaluated)return;const O=k.let("valid",!1),L=k.name("_valid");k.block(()=>C.forEach((q,B)=>{const z=P.subschema({keyword:_,schemaProp:B,compositeRule:!0},L);k.assign(O,(0,t._)`${O} || ${L}`),P.mergeValidEvaluated(z,L)||k.if((0,t.not)(O))})),P.result(O,()=>P.reset(),()=>P.error(!0))}return Zt.validateUnion=w,Zt}var WR;function PZ(){if(WR)return gr;WR=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateKeywordUsage=gr.validSchemaType=gr.funcKeywordCode=gr.macroKeywordCode=void 0;const t=Tt(),e=Ys(),a=Dr(),o=Jb();function n(f,b){const{gen:y,keyword:T,schema:x,parentSchema:w,it:P}=f,k=b.macro.call(P.self,x,w,P),C=u(y,T,k);P.opts.validateSchema!==!1&&P.self.validateSchema(k,!0);const _=y.name("valid");f.subschema({schema:k,schemaPath:t.nil,errSchemaPath:`${P.errSchemaPath}/${T}`,topSchemaRef:C,compositeRule:!0},_),f.pass(_,()=>f.error(!0))}gr.macroKeywordCode=n;function r(f,b){var y;const{gen:T,keyword:x,schema:w,parentSchema:P,$data:k,it:C}=f;d(C,b);const _=!k&&b.compile?b.compile.call(C.self,w,P,C):b.validate,D=u(T,x,_),R=T.let("valid");f.block$data(R,O),f.ok((y=b.valid)!==null&&y!==void 0?y:R);function O(){if(b.errors===!1)B(),b.modifying&&s(f),z(()=>f.error());else{const F=b.async?L():q();b.modifying&&s(f),z(()=>c(f,F))}}function L(){const F=T.let("ruleErrs",null);return T.try(()=>B((0,t._)`await `),W=>T.assign(R,!1).if((0,t._)`${W} instanceof ${C.ValidationError}`,()=>T.assign(F,(0,t._)`${W}.errors`),()=>T.throw(W))),F}function q(){const F=(0,t._)`${D}.errors`;return T.assign(F,null),B(t.nil),F}function B(F=b.async?(0,t._)`await `:t.nil){const W=C.opts.passContext?e.default.this:e.default.self,ae=!("compile"in b&&!k||b.schema===!1);T.assign(R,(0,t._)`${F}${(0,a.callValidateCode)(f,D,W,ae)}`,b.modifying)}function z(F){var W;T.if((0,t.not)((W=b.valid)!==null&&W!==void 0?W:R),F)}}gr.funcKeywordCode=r;function s(f){const{gen:b,data:y,it:T}=f;b.if(T.parentData,()=>b.assign(y,(0,t._)`${T.parentData}[${T.parentDataProperty}]`))}function c(f,b){const{gen:y}=f;y.if((0,t._)`Array.isArray(${b})`,()=>{y.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${b} : ${e.default.vErrors}.concat(${b})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,o.extendErrors)(f)},()=>f.error())}function d({schemaEnv:f},b){if(b.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,b,y){if(y===void 0)throw new Error(`keyword "${b}" failed to compile`);return f.scopeValue("keyword",typeof y=="function"?{ref:y}:{ref:y,code:(0,t.stringify)(y)})}function m(f,b,y=!1){return!b.length||b.some(T=>T==="array"?Array.isArray(f):T==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==T||y&&typeof f>"u")}gr.validSchemaType=m;function h({schema:f,opts:b,self:y,errSchemaPath:T},x,w){if(Array.isArray(x.keyword)?!x.keyword.includes(w):x.keyword!==w)throw new Error("ajv implementation error");const P=x.dependencies;if(P?.some(k=>!Object.prototype.hasOwnProperty.call(f,k)))throw new Error(`parent schema must have dependencies of ${w}: ${P.join(",")}`);if(x.validateSchema&&!x.validateSchema(f[w])){const C=`keyword "${w}" value is invalid at path "${T}": `+y.errorsText(x.validateSchema.errors);if(b.validateSchema==="log")y.logger.error(C);else throw new Error(C)}}return gr.validateKeywordUsage=h,gr}var Pi={},KR;function CZ(){if(KR)return Pi;KR=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.extendSubschemaMode=Pi.extendSubschemaData=Pi.getSubschema=void 0;const t=Tt(),e=Ft();function a(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')}Pi.getSubschema=a;function o(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:T,opts:x}=s,w=f.let("data",(0,t._)`${s.data}${(0,t.getProperty)(c)}`,!0);b(w),r.errorPath=(0,t.str)`${y}${(0,e.getErrorPath)(c,d,x.jsPropertySyntax)}`,r.parentDataProperty=(0,t._)`${c}`,r.dataPathArr=[...T,r.parentDataProperty]}if(u!==void 0){const y=u instanceof t.Name?u:f.let("data",u,!0);b(y),h!==void 0&&(r.propertyName=h)}m&&(r.dataTypes=m);function b(y){r.data=y,r.dataLevel=s.dataLevel+1,r.dataTypes=[],s.definedProperties=new Set,r.parentData=s.data,r.dataNames=[...s.dataNames,y]}}Pi.extendSubschemaData=o;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 Pi.extendSubschemaMode=n,Pi}var Go={},bS,YR;function KL(){return YR||(YR=1,bS=function t(e,a){if(e===a)return!0;if(e&&a&&typeof e=="object"&&typeof a=="object"){if(e.constructor!==a.constructor)return!1;var o,n,r;if(Array.isArray(e)){if(o=e.length,o!=a.length)return!1;for(n=o;n--!==0;)if(!t(e[n],a[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if(r=Object.keys(e),o=r.length,o!==Object.keys(a).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(a,r[n]))return!1;for(n=o;n--!==0;){var s=r[n];if(!t(e[s],a[s]))return!1}return!0}return e!==e&&a!==a}),bS}var vS={exports:{}},ZR;function EZ(){if(ZR)return vS.exports;ZR=1;var t=vS.exports=function(o,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,o,"",o)};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(o,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 b in s){var y=s[b];if(Array.isArray(y)){if(b in t.arrayKeywords)for(var T=0;T<y.length;T++)e(o,n,r,y[T],c+"/"+b+"/"+T,d,c,b,s,T)}else if(b in t.propsKeywords){if(y&&typeof y=="object")for(var x in y)e(o,n,r,y[x],c+"/"+b+"/"+a(x),d,c,b,s,x)}else(b in t.keywords||o.allKeys&&!(b in t.skipKeywords))&&e(o,n,r,y,c+"/"+b,d,c,b,s)}r(s,c,d,u,m,h,f)}}function a(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}return vS.exports}var QR;function Xb(){if(QR)return Go;QR=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.getSchemaRefs=Go.resolveUrl=Go.normalizeId=Go._getFullPath=Go.getFullPath=Go.inlineRef=void 0;const t=Ft(),e=KL(),a=EZ(),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n(T,x=!0){return typeof T=="boolean"?!0:x===!0?!s(T):x?c(T)<=x:!1}Go.inlineRef=n;const r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(T){for(const x in T){if(r.has(x))return!0;const w=T[x];if(Array.isArray(w)&&w.some(s)||typeof w=="object"&&s(w))return!0}return!1}function c(T){let x=0;for(const w in T){if(w==="$ref")return 1/0;if(x++,!o.has(w)&&(typeof T[w]=="object"&&(0,t.eachItem)(T[w],P=>x+=c(P)),x===1/0))return 1/0}return x}function d(T,x="",w){w!==!1&&(x=h(x));const P=T.parse(x);return u(T,P)}Go.getFullPath=d;function u(T,x){return T.serialize(x).split("#")[0]+"#"}Go._getFullPath=u;const m=/#\/?$/;function h(T){return T?T.replace(m,""):""}Go.normalizeId=h;function f(T,x,w){return w=h(w),T.resolve(x,w)}Go.resolveUrl=f;const b=/^[a-z_][-a-z0-9._]*$/i;function y(T,x){if(typeof T=="boolean")return{};const{schemaId:w,uriResolver:P}=this.opts,k=h(T[w]||x),C={"":k},_=d(P,k,!1),D={},R=new Set;return a(T,{allKeys:!0},(q,B,z,F)=>{if(F===void 0)return;const W=_+B;let ae=C[F];typeof q[w]=="string"&&(ae=H.call(this,q[w])),K.call(this,q.$anchor),K.call(this,q.$dynamicAnchor),C[B]=ae;function H(J){const ie=this.opts.uriResolver.resolve;if(J=h(ae?ie(ae,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,Q.schema,J):J!==h(W)&&(J[0]==="#"?(O(q,D[J],J),D[J]=q):this.refs[J]=W),J}function K(J){if(typeof J=="string"){if(!b.test(J))throw new Error(`invalid anchor "${J}"`);H.call(this,`#${J}`)}}}),D;function O(q,B,z){if(B!==void 0&&!e(q,B))throw L(z)}function L(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return Go.getSchemaRefs=y,Go}var JR;function ev(){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(),a=WL(),o=Kf(),n=xZ(),r=PZ(),s=CZ(),c=Tt(),d=Ys(),u=Xb(),m=Ft(),h=Jb();function f(Z){if(_(Z)&&(R(Z),C(Z))){x(Z);return}b(Z,()=>(0,t.topBoolOrEmptySchema)(Z))}wi.validateFunctionCode=f;function b({gen:Z,validateName:ne,schema:be,schemaEnv:se,opts:xe},ke){xe.code.es5?Z.func(ne,(0,c._)`${d.default.data}, ${d.default.valCxt}`,se.$async,()=>{Z.code((0,c._)`"use strict"; ${P(be,xe)}`),T(Z,xe),Z.code(ke)}):Z.func(ne,(0,c._)`${d.default.data}, ${y(xe)}`,se.$async,()=>Z.code(P(be,xe)).code(ke))}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 T(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:be,gen:se}=Z;b(Z,()=>{be.$comment&&ne.$comment&&F(Z),q(Z),se.let(d.default.vErrors,null),se.let(d.default.errors,0),be.unevaluated&&w(Z),O(Z),W(Z)})}function w(Z){const{gen:ne,validateName:be}=Z;Z.evaluated=ne.const("evaluated",(0,c._)`${be}.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 P(Z,ne){const be=typeof Z=="object"&&Z[ne.schemaId];return be&&(ne.code.source||ne.code.process)?(0,c._)`/*# sourceURL=${be} */`:c.nil}function k(Z,ne){if(_(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 be in Z)if(ne.RULES.all[be])return!0;return!1}function _(Z){return typeof Z.schema!="boolean"}function D(Z,ne){const{schema:be,gen:se,opts:xe}=Z;xe.$comment&&be.$comment&&F(Z),B(Z),z(Z);const ke=se.const("_errs",d.default.errors);O(Z,ke),se.var(ne,(0,c._)`${ke} === ${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 be=(0,e.getSchemaTypes)(Z.schema),se=(0,e.coerceAndCheckDataType)(Z,be);H(Z,be,!se,ne)}function L(Z){const{schema:ne,errSchemaPath:be,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 "${be}"`)}function q(Z){const{schema:ne,opts:be}=Z;ne.default!==void 0&&be.useDefaults&&be.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:be,errSchemaPath:se,opts:xe}){const ke=be.$comment;if(xe.$comment===!0)Z.code((0,c._)`${d.default.self}.logger.log(${ke})`);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(${ke}, ${st}, ${ct}.schema)`)}}function W(Z){const{gen:ne,schemaEnv:be,validateName:se,ValidationError:xe,opts:ke}=Z;be.$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),ke.unevaluated&&ae(Z),ne.return((0,c._)`${d.default.errors} === 0`))}function ae({gen:Z,evaluated:ne,props:be,items:se}){be instanceof c.Name&&Z.assign((0,c._)`${ne}.props`,be),se instanceof c.Name&&Z.assign((0,c._)`${ne}.items`,se)}function H(Z,ne,be,se){const{gen:xe,schema:ke,data:st,allErrors:ct,opts:Ge,self:ot}=Z,{RULES:Me}=ot;if(ke.$ref&&(Ge.ignoreKeywordsWithRef||!(0,m.schemaHasRulesButRef)(ke,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,a.shouldUseGroup)(ke,He)&&(He.type?(xe.if((0,o.checkDataType)(He.type,st,Ge.strictNumbers)),K(Z,He),ne.length===1&&ne[0]===He.type&&be&&(xe.else(),(0,o.reportTypeError)(Z)),xe.endIf()):K(Z,He),ct||xe.if((0,c._)`${d.default.errors} === ${se||0}`))}}function K(Z,ne){const{gen:be,schema:se,opts:{useDefaults:xe}}=Z;xe&&(0,n.assignDefaults)(Z,ne.type),be.block(()=>{for(const ke of ne.rules)(0,a.shouldUseRule)(se,ke)&&de(Z,ke.keyword,ke.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(be=>{V(Z.dataTypes,be)||j(Z,`type "${be}" 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 be=Z.self.RULES.all;for(const se in be){const xe=be[se];if(typeof xe=="object"&&(0,a.shouldUseRule)(Z.schema,xe)){const{type:ke}=xe.definition;ke.length&&!ke.some(st=>G(ne,st))&&j(Z,`missing type "${ke.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 be=[];for(const se of Z.dataTypes)V(ne,se)?be.push(se):ne.includes("integer")&&se==="number"&&be.push("integer");Z.dataTypes=be}function j(Z,ne){const be=Z.schemaEnv.baseId+Z.errSchemaPath;ne+=` at "${be}" (strictTypes)`,(0,m.checkStrictMode)(Z,ne,Z.opts.strictTypes)}class X{constructor(ne,be,se){if((0,r.validateKeywordUsage)(ne,be,se),this.gen=ne.gen,this.allErrors=ne.allErrors,this.keyword=se,this.data=ne.data,this.schema=ne.schema[se],this.$data=be.$data&&ne.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,m.schemaRefOrVal)(ne,this.schema,se,this.$data),this.schemaType=be.schemaType,this.parentSchema=ne.schema,this.params={},this.it=ne,this.def=be,this.$data)this.schemaCode=ne.gen.const("vSchema",Ue(this.$data,ne));else if(this.schemaCode=this.schemaValue,!(0,r.validSchemaType)(this.schema,be.schemaType,be.allowUndefined))throw new Error(`${se} value must be ${JSON.stringify(be.schemaType)}`);("code"in be?be.trackErrors:be.errors!==!1)&&(this.errsCount=ne.gen.const("_errs",d.default.errors))}result(ne,be,se){this.failResult((0,c.not)(ne),be,se)}failResult(ne,be,se){this.gen.if(ne),se?se():this.error(),be?(this.gen.else(),be(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ne,be){this.failResult((0,c.not)(ne),void 0,be)}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:be}=this;this.fail((0,c._)`${be} !== undefined && (${(0,c.or)(this.invalid$data(),ne)})`)}error(ne,be,se){if(be){this.setParams(be),this._error(ne,se),this.setParams({});return}this._error(ne,se)}_error(ne,be){(ne?h.reportExtraError:h.reportError)(this,this.def.error,be)}$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,be){be?Object.assign(this.params,ne):this.params=ne}block$data(ne,be,se=c.nil){this.gen.block(()=>{this.check$data(ne,se),be()})}check$data(ne=c.nil,be=c.nil){if(!this.$data)return;const{gen:se,schemaCode:xe,schemaType:ke,def:st}=this;se.if((0,c.or)((0,c._)`${xe} === undefined`,be)),ne!==c.nil&&se.assign(ne,!0),(ke.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:be,schemaType:se,def:xe,it:ke}=this;return(0,c.or)(st(),ct());function st(){if(se.length){if(!(be instanceof c.Name))throw new Error("ajv implementation error");const Ge=Array.isArray(se)?se:[se];return(0,c._)`${(0,o.checkDataTypes)(Ge,be,ke.opts.strictNumbers,o.DataType.Wrong)}`}return c.nil}function ct(){if(xe.validateSchema){const Ge=ne.scopeValue("validate$data",{ref:xe.validateSchema});return(0,c._)`!${Ge}(${be})`}return c.nil}}subschema(ne,be){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 k(xe,be),xe}mergeEvaluated(ne,be){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,be)),se.items!==!0&&ne.items!==void 0&&(se.items=m.mergeEvaluated.items(xe,ne.items,se.items,be)))}mergeValidEvaluated(ne,be){const{it:se,gen:xe}=this;if(se.opts.unevaluated&&(se.props!==!0||se.items!==!0))return xe.if(be,()=>this.mergeEvaluated(ne,c.Name)),!0}}wi.KeywordCxt=X;function de(Z,ne,be,se){const xe=new X(Z,be,ne);"code"in be?be.code(xe,se):xe.$data&&be.validate?(0,r.funcKeywordCode)(xe,be):"macro"in be?(0,r.macroKeywordCode)(xe,be):(be.compile||be.validate)&&(0,r.funcKeywordCode)(xe,be)}const ue=/^\/(?:[^~]|~0|~1)*$/,Ce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ue(Z,{dataLevel:ne,dataNames:be,dataPathArr:se}){let xe,ke;if(Z==="")return d.default.rootData;if(Z[0]==="/"){if(!ue.test(Z))throw new Error(`Invalid JSON-pointer: ${Z}`);xe=Z,ke=d.default.rootData}else{const ot=Ce.exec(Z);if(!ot)throw new Error(`Invalid JSON-pointer: ${Z}`);const Me=+ot[1];if(xe=ot[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(ke=be[ne-Me],!xe)return ke}let st=ke;const ct=xe.split("/");for(const ot of ct)ot&&(ke=(0,c._)`${ke}${(0,c.getProperty)((0,m.unescapeJsonPointer)(ot))}`,st=(0,c._)`${st} && ${ke}`);return st;function Ge(ot,Me){return`Cannot access ${ot} ${Me} levels up, current level is ${ne}`}}return wi.getData=Ue,wi}var eg={},XR;function zP(){if(XR)return eg;XR=1,Object.defineProperty(eg,"__esModule",{value:!0});class t extends Error{constructor(a){super("validation failed"),this.errors=a,this.ajv=this.validation=!0}}return eg.default=t,eg}var tg={},eD;function tv(){if(eD)return tg;eD=1,Object.defineProperty(tg,"__esModule",{value:!0});const t=Xb();class e extends Error{constructor(o,n,r,s){super(s||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(o,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,this.missingRef))}}return tg.default=e,tg}var kn={},tD;function UP(){if(tD)return kn;tD=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.resolveSchema=kn.getCompilingSchema=kn.resolveRef=kn.compileSchema=kn.SchemaEnv=void 0;const t=Tt(),e=zP(),a=Ys(),o=Xb(),n=Ft(),r=ev();class s{constructor(w){var P;this.refs={},this.dynamicAnchors={};let k;typeof w.schema=="object"&&(k=w.schema),this.schema=w.schema,this.schemaId=w.schemaId,this.root=w.root||this,this.baseId=(P=w.baseId)!==null&&P!==void 0?P:(0,o.normalizeId)(k?.[w.schemaId||"$id"]),this.schemaPath=w.schemaPath,this.localRefs=w.localRefs,this.meta=w.meta,this.$async=k?.$async,this.refs={}}}kn.SchemaEnv=s;function c(x){const w=m.call(this,x);if(w)return w;const P=(0,o.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:k,lines:C}=this.opts.code,{ownProperties:_}=this.opts,D=new t.CodeGen(this.scope,{es5:k,lines:C,ownProperties:_});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:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.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:P,baseId:x.baseId||P,schemaPath:t.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(x),(0,r.validateFunctionCode)(L),D.optimize(this.opts.code.optimize);const B=D.toString();q=`${D.scopeRefs(a.default.scope)}return ${B}`,this.opts.code.process&&(q=this.opts.code.process(q,x));const F=new Function(`${a.default.self}`,`${a.default.scope}`,q)(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:ae}=L;F.evaluated={props:W instanceof t.Name?void 0:W,items:ae instanceof t.Name?void 0:ae,dynamicProps:W instanceof t.Name,dynamicItems:ae 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,q&&this.logger.error("Error compiling schema, function code:",q),B}finally{this._compilations.delete(x)}}kn.compileSchema=c;function d(x,w,P){var k;P=(0,o.resolveUrl)(this.opts.uriResolver,w,P);const C=x.refs[P];if(C)return C;let _=f.call(this,x,P);if(_===void 0){const D=(k=x.localRefs)===null||k===void 0?void 0:k[P],{schemaId:R}=this.opts;D&&(_=new s({schema:D,schemaId:R,root:x,baseId:w}))}if(_!==void 0)return x.refs[P]=u.call(this,_)}kn.resolveRef=d;function u(x){return(0,o.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}kn.getCompilingSchema=m;function h(x,w){return x.schema===w.schema&&x.root===w.root&&x.baseId===w.baseId}function f(x,w){let P;for(;typeof(P=this.refs[w])=="string";)w=P;return P||this.schemas[w]||b.call(this,x,w)}function b(x,w){const P=this.opts.uriResolver.parse(w),k=(0,o._getFullPath)(this.opts.uriResolver,P);let C=(0,o.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&k===C)return T.call(this,P,x);const _=(0,o.normalizeId)(k),D=this.refs[_]||this.schemas[_];if(typeof D=="string"){const R=b.call(this,x,D);return typeof R?.schema!="object"?void 0:T.call(this,P,R)}if(typeof D?.schema=="object"){if(D.validate||c.call(this,D),_===(0,o.normalizeId)(w)){const{schema:R}=D,{schemaId:O}=this.opts,L=R[O];return L&&(C=(0,o.resolveUrl)(this.opts.uriResolver,C,L)),new s({schema:R,schemaId:O,root:x,baseId:C})}return T.call(this,P,D)}}kn.resolveSchema=b;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function T(x,{baseId:w,schema:P,root:k}){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 P=="boolean")return;const O=P[(0,n.unescapeFragment)(R)];if(O===void 0)return;P=O;const L=typeof P=="object"&&P[this.opts.schemaId];!y.has(R)&&L&&(w=(0,o.resolveUrl)(this.opts.uriResolver,w,L))}let _;if(typeof P!="boolean"&&P.$ref&&!(0,n.schemaHasRulesButRef)(P,this.RULES)){const R=(0,o.resolveUrl)(this.opts.uriResolver,w,P.$ref);_=b.call(this,k,R)}const{schemaId:D}=this.opts;if(_=_||new s({schema:P,schemaId:D,root:k,baseId:w}),_.schema!==_.root.schema)return _}return kn}const kZ="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",_Z="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:kZ,description:_Z,type:AZ,required:RZ,properties:DZ,additionalProperties:OZ};var ag={},Ku={exports:{}},yS,aD;function YL(){if(aD)return yS;aD=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 a(f){let b="",y=0,T=0;for(T=0;T<f.length;T++)if(y=f[T].charCodeAt(0),y!==48){if(!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";b+=f[T];break}for(T+=1;T<f.length;T++){if(y=f[T].charCodeAt(0),!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";b+=f[T]}return b}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function n(f){return f.length=0,!0}function r(f,b,y){if(f.length){const T=a(f);if(T!=="")b.push(T);else return y.error=!0,!1;f.length=0}return!0}function s(f){let b=0;const y={error:!1,address:"",zone:""},T=[],x=[];let w=!1,P=!1,k=r;for(let C=0;C<f.length;C++){const _=f[C];if(!(_==="["||_==="]"))if(_===":"){if(w===!0&&(P=!0),!k(x,T,y))break;if(++b>7){y.error=!0;break}C>0&&f[C-1]===":"&&(w=!0),T.push(":");continue}else if(_==="%"){if(!k(x,T,y))break;k=n}else{x.push(_);continue}}return x.length&&(k===n?y.zone=x.join(""):P?T.push(x.join("")):T.push(a(x))),y.address=T.join(""),y}function c(f){if(d(f,":")<2)return{host:f,isIPV6:!1};const b=s(f);if(b.error)return{host:f,isIPV6:!1};{let y=b.address,T=b.address;return b.zone&&(y+="%"+b.zone,T+="%25"+b.zone),{host:y,isIPV6:!0,escapedHost:T}}}function d(f,b){let y=0;for(let T=0;T<f.length;T++)f[T]===b&&y++;return y}function u(f){let b=f;const y=[];let T=-1,x=0;for(;x=b.length;){if(x===1){if(b===".")break;if(b==="/"){y.push("/");break}else{y.push(b);break}}else if(x===2){if(b[0]==="."){if(b[1]===".")break;if(b[1]==="/"){b=b.slice(2);continue}}else if(b[0]==="/"&&(b[1]==="."||b[1]==="/")){y.push("/");break}}else if(x===3&&b==="/.."){y.length!==0&&y.pop(),y.push("/");break}if(b[0]==="."){if(b[1]==="."){if(b[2]==="/"){b=b.slice(3);continue}}else if(b[1]==="/"){b=b.slice(2);continue}}else if(b[0]==="/"&&b[1]==="."){if(b[2]==="/"){b=b.slice(2);continue}else if(b[2]==="."&&b[3]==="/"){b=b.slice(3),y.length!==0&&y.pop();continue}}if((T=b.indexOf("/",1))===-1){y.push(b);break}else y.push(b.slice(0,T)),b=b.slice(T)}return y.join("")}function m(f,b){const y=b!==!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 b=[];if(f.userinfo!==void 0&&(b.push(f.userinfo),b.push("@")),f.host!==void 0){let y=unescape(f.host);if(!e(y)){const T=c(y);T.isIPV6===!0?y=`[${T.escapedHost}]`:y=f.host}b.push(y)}return(typeof f.port=="number"||typeof f.port=="string")&&(b.push(":"),b.push(String(f.port))),b.length?b.join(""):void 0}return yS={nonSimpleDomain:o,recomposeAuthority:h,normalizeComponentEncoding:m,removeDotSegments:u,isIPv4:e,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:a},yS}var TS,oD;function NZ(){if(oD)return TS;oD=1;const{isUUID:t}=YL(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,a=["http","https","ws","wss","urn","urn:uuid"];function o(_){return a.indexOf(_)!==-1}function n(_){return _.secure===!0?!0:_.secure===!1?!1:_.scheme?_.scheme.length===3&&(_.scheme[0]==="w"||_.scheme[0]==="W")&&(_.scheme[1]==="s"||_.scheme[1]==="S")&&(_.scheme[2]==="s"||_.scheme[2]==="S"):!1}function r(_){return _.host||(_.error=_.error||"HTTP URIs must have a host."),_}function s(_){const D=String(_.scheme).toLowerCase()==="https";return(_.port===(D?443:80)||_.port==="")&&(_.port=void 0),_.path||(_.path="/"),_}function c(_){return _.secure=n(_),_.resourceName=(_.path||"/")+(_.query?"?"+_.query:""),_.path=void 0,_.query=void 0,_}function d(_){if((_.port===(n(_)?443:80)||_.port==="")&&(_.port=void 0),typeof _.secure=="boolean"&&(_.scheme=_.secure?"wss":"ws",_.secure=void 0),_.resourceName){const[D,R]=_.resourceName.split("?");_.path=D&&D!=="/"?D:void 0,_.query=R,_.resourceName=void 0}return _.fragment=void 0,_}function u(_,D){if(!_.path)return _.error="URN can not be parsed",_;const R=_.path.match(e);if(R){const O=D.scheme||_.scheme||"urn";_.nid=R[1].toLowerCase(),_.nss=R[2];const L=`${O}:${D.nid||_.nid}`,q=C(L);_.path=void 0,q&&(_=q.parse(_,D))}else _.error=_.error||"URN can not be parsed.";return _}function m(_,D){if(_.nid===void 0)throw new Error("URN without nid cannot be serialized");const R=D.scheme||_.scheme||"urn",O=_.nid.toLowerCase(),L=`${R}:${D.nid||O}`,q=C(L);q&&(_=q.serialize(_,D));const B=_,z=_.nss;return B.path=`${O||D.nid}:${z}`,D.skipEscape=!0,B}function h(_,D){const R=_;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(_){const D=_;return D.nss=(_.uuid||"").toLowerCase(),D}const b={scheme:"http",domainHost:!0,parse:r,serialize:s},y={scheme:"https",domainHost:b.domainHost,parse:r,serialize:s},T={scheme:"ws",domainHost:!0,parse:c,serialize:d},x={scheme:"wss",domainHost:T.domainHost,parse:T.parse,serialize:T.serialize},k={http:b,https:y,ws:T,wss:x,urn:{scheme:"urn",parse:u,serialize:m,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(k,null);function C(_){return _&&(k[_]||k[_.toLowerCase()])||void 0}return TS={wsIsSecure:n,SCHEMES:k,isValidSchemeName:o,getSchemeHandler:C},TS}var nD;function IZ(){if(nD)return Ku.exports;nD=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:a,normalizeComponentEncoding:o,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,P){const k=P?Object.assign({scheme:"null"},P):{scheme:"null"},C=m(y(x,k),y(w,k),k,!0);return k.skipEscape=!0,f(C,k)}function m(x,w,P,k){const C={};return k||(x=y(f(x,P),P),w=y(f(w,P),P)),P=P||{},!P.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,P){return typeof x=="string"?(x=unescape(x),x=f(o(y(x,P),!0),{...P,skipEscape:!0})):typeof x=="object"&&(x=f(o(x,!0),{...P,skipEscape:!0})),typeof w=="string"?(w=unescape(w),w=f(o(y(w,P),!0),{...P,skipEscape:!0})):typeof w=="object"&&(w=f(o(w,!0),{...P,skipEscape:!0})),x.toLowerCase()===w.toLowerCase()}function f(x,w){const P={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:""},k=Object.assign({},w),C=[],_=c(k.scheme||P.scheme);_&&_.serialize&&_.serialize(P,k),P.path!==void 0&&(k.skipEscape?P.path=unescape(P.path):(P.path=escape(P.path),P.scheme!==void 0&&(P.path=P.path.split("%3A").join(":")))),k.reference!=="suffix"&&P.scheme&&C.push(P.scheme,":");const D=a(P);if(D!==void 0&&(k.reference!=="suffix"&&C.push("//"),C.push(D),P.path&&P.path[0]!=="/"&&C.push("/")),P.path!==void 0){let R=P.path;!k.absolutePath&&(!_||!_.absolutePath)&&(R=e(R)),D===void 0&&R[0]==="/"&&R[1]==="/"&&(R="/%2F"+R.slice(2)),C.push(R)}return P.query!==void 0&&C.push("?",P.query),P.fragment!==void 0&&C.push("#",P.fragment),C.join("")}const b=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(x,w){const P=Object.assign({},w),k={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let C=!1;P.reference==="suffix"&&(P.scheme?x=P.scheme+":"+x:x="//"+x);const _=x.match(b);if(_){if(k.scheme=_[1],k.userinfo=_[3],k.host=_[4],k.port=parseInt(_[5],10),k.path=_[6]||"",k.query=_[7],k.fragment=_[8],isNaN(k.port)&&(k.port=_[5]),k.host)if(n(k.host)===!1){const O=t(k.host);k.host=O.host.toLowerCase(),C=O.isIPV6}else C=!0;k.scheme===void 0&&k.userinfo===void 0&&k.host===void 0&&k.port===void 0&&k.query===void 0&&!k.path?k.reference="same-document":k.scheme===void 0?k.reference="relative":k.fragment===void 0?k.reference="absolute":k.reference="uri",P.reference&&P.reference!=="suffix"&&P.reference!==k.reference&&(k.error=k.error||"URI is not a "+P.reference+" reference.");const D=c(P.scheme||k.scheme);if(!P.unicodeSupport&&(!D||!D.unicodeSupport)&&k.host&&(P.domainHost||D&&D.domainHost)&&C===!1&&r(k.host))try{k.host=URL.domainToASCII(k.host.toLowerCase())}catch(R){k.error=k.error||"Host's domain name can not be converted to ASCII: "+R}(!D||D&&!D.skipNormalize)&&(x.indexOf("%")!==-1&&(k.scheme!==void 0&&(k.scheme=unescape(k.scheme)),k.host!==void 0&&(k.host=unescape(k.host))),k.path&&(k.path=escape(unescape(k.path))),k.fragment&&(k.fragment=encodeURI(decodeURIComponent(k.fragment)))),D&&D.parse&&D.parse(k,P)}else k.error=k.error||"URI can not be parsed.";return k}const T={SCHEMES:s,normalize:d,resolve:u,resolveComponent:m,equal:h,serialize:f,parse:y};return Ku.exports=T,Ku.exports.default=T,Ku.exports.fastUri=T,Ku.exports}var rD;function LZ(){if(rD)return ag;rD=1,Object.defineProperty(ag,"__esModule",{value:!0});const t=IZ();return t.code='require("ajv/dist/runtime/uri").default',ag.default=t,ag}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=ev();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var a=Tt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}});const o=zP(),n=tv(),r=GL(),s=UP(),c=Tt(),d=Xb(),u=Kf(),m=Ft(),h=MZ,f=LZ(),b=(Q,N)=>new RegExp(Q,N);b.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],T=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.'},P=200;function k(Q){var N,G,V,I,j,X,de,ue,Ce,Ue,Z,ne,be,se,xe,ke,st,ct,Ge,ot,Me,Oe,He,Y,oe;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:b,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=(be=Q.strictRequired)!==null&&be!==void 0?be: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:P,loopEnum:(ke=Q.loopEnum)!==null&&ke!==void 0?ke:P,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:(ot=Q.schemaId)!==null&&ot!==void 0?ot:"$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:(oe=Q.int32range)!==null&&oe!==void 0?oe:!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,...k(N)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:T,es5:G,lines:V}),this.logger=z(N.logger);const I=N.validateFormats;N.validateFormats=!1,this.RULES=(0,r.getRules)(),_.call(this,x,N,"NOT SUPPORTED"),_.call(this,w,N,"DEPRECATED","warn"),this._metaOpts=q.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=>ae.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=>ae.call(this,j,I):j=>I.type.forEach(X=>ae.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=o.default,C.MissingRefError=n.default,t.default=C;function _(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 q(){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 ae(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]}}})(pS)),pS}var og={},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=tv(),e=Dr(),a=Tt(),o=Ys(),n=UP(),r=Ft(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:m,schema:h,it:f}=u,{baseId:b,schemaEnv:y,validateName:T,opts:x,self:w}=f,{root:P}=y;if((h==="#"||h==="#/")&&b===P.baseId)return C();const k=n.resolveRef.call(w,P,b,h);if(k===void 0)throw new t.default(f.opts.uriResolver,b,h);if(k instanceof n.SchemaEnv)return _(k);return D(k);function C(){if(y===P)return d(u,T,y,y.$async);const R=m.scopeValue("root",{ref:P});return d(u,(0,a._)`${R}.validate`,P,P.$async)}function _(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,a.stringify)(R)}:{ref:R}),L=m.name("valid"),q=u.subschema({schema:R,dataTypes:[],schemaPath:a.nil,topSchemaRef:O,errSchemaPath:h},L);u.mergeEvaluated(q),u.ok(L)}}};function c(u,m){const{gen:h}=u;return m.validate?h.scopeValue("validate",{ref:m.validate}):(0,a._)`${h.scopeValue("wrapper",{ref:m})}.validate`}hs.getValidate=c;function d(u,m,h,f){const{gen:b,it:y}=u,{allErrors:T,schemaEnv:x,opts:w}=y,P=w.passContext?o.default.this:a.nil;f?k():C();function k(){if(!x.$async)throw new Error("async schema referenced by sync schema");const R=b.let("valid");b.try(()=>{b.code((0,a._)`await ${(0,e.callValidateCode)(u,m,P)}`),D(m),T||b.assign(R,!0)},O=>{b.if((0,a._)`!(${O} instanceof ${y.ValidationError})`,()=>b.throw(O)),_(O),T||b.assign(R,!1)}),u.ok(R)}function C(){u.result((0,e.callValidateCode)(u,m,P),()=>D(m),()=>_(m))}function _(R){const O=(0,a._)`${R}.errors`;b.assign(o.default.vErrors,(0,a._)`${o.default.vErrors} === null ? ${O} : ${o.default.vErrors}.concat(${O})`),b.assign(o.default.errors,(0,a._)`${o.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(b,L.props,y.props));else{const q=b.var("props",(0,a._)`${R}.evaluated.props`);y.props=r.mergeEvaluated.props(b,q,y.props,a.Name)}if(y.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(y.items=r.mergeEvaluated.items(b,L.items,y.items));else{const q=b.var("items",(0,a._)`${R}.evaluated.items`);y.items=r.mergeEvaluated.items(b,q,y.items,a.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(),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return ng.default=a,ng}var ig={},sg={},dD;function UZ(){if(dD)return sg;dD=1,Object.defineProperty(sg,"__esModule",{value:!0});const t=Tt(),e=t.operators,a={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}},o={message:({keyword:r,schemaCode:s})=>(0,t.str)`must be ${a[r].okStr} ${s}`,params:({keyword:r,schemaCode:s})=>(0,t._)`{comparison: ${a[r].okStr}, limit: ${s}}`},n={keyword:Object.keys(a),type:"number",schemaType:"number",$data:!0,error:o,code(r){const{keyword:s,data:c,schemaCode:d}=r;r.fail$data((0,t._)`${c} ${a[s].fail} ${d} || isNaN(${c})`)}};return sg.default=n,sg}var lg={},uD;function qZ(){if(uD)return lg;uD=1,Object.defineProperty(lg,"__esModule",{value:!0});const t=Tt(),a={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must be multiple of ${o}`,params:({schemaCode:o})=>(0,t._)`{multipleOf: ${o}}`},code(o){const{gen:n,data:r,schemaCode:s,it:c}=o,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})`;o.fail$data((0,t._)`(${s} === 0 || (${u} = ${r}/${s}, ${m}))`)}};return lg.default=a,lg}var cg={},dg={},pD;function $Z(){if(pD)return dg;pD=1,Object.defineProperty(dg,"__esModule",{value:!0});function t(e){const a=e.length;let o=0,n=0,r;for(;n<a;)o++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<a&&(r=e.charCodeAt(n),(r&64512)===56320&&n++);return o}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=Tt(),e=Ft(),a=$Z(),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,a.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(),a=Tt(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,a.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,a._)`{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:b}=h.opts.code,y=b.code==="new RegExp"?(0,a._)`new RegExp`:(0,e.useFunc)(s,b),T=s.let("valid");s.try(()=>s.assign(T,(0,a._)`${y}(${m}, ${f}).test(${c})`),()=>s.assign(T,!1)),r.fail$data((0,a._)`!${T}`)}else{const b=(0,t.usePattern)(r,u);r.fail$data((0,a._)`!${b}.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=Tt(),a={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:n}){const r=o==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:o})=>(0,t._)`{limit: ${o}}`},code(o){const{keyword:n,data:r,schemaCode:s}=o,c=n==="maxProperties"?t.operators.GT:t.operators.LT;o.fail$data((0,t._)`Object.keys(${r}).length ${c} ${s}`)}};return pg.default=a,pg}var mg={},fD;function WZ(){if(fD)return mg;fD=1,Object.defineProperty(mg,"__esModule",{value:!0});const t=Dr(),e=Tt(),a=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 b=c.length>=f.loopRequired;if(h.allErrors?y():T(),f.strictRequired){const P=r.parentSchema.properties,{definedProperties:k}=r.it;for(const C of c)if(P?.[C]===void 0&&!k.has(C)){const _=h.schemaEnv.baseId+h.errSchemaPath,D=`required property "${C}" is not defined at "${_}" (strictRequired)`;(0,a.checkStrictMode)(h,D,h.opts.strictRequired)}}function y(){if(b||m)r.block$data(e.nil,x);else for(const P of c)(0,t.checkReportMissingProp)(r,P)}function T(){const P=s.let("missing");if(b||m){const k=s.let("valid",!0);r.block$data(k,()=>w(P,k)),r.ok(k)}else s.if((0,t.checkMissingProp)(r,c,P)),(0,t.reportMissingProp)(r,P),s.else()}function x(){s.forOf("prop",d,P=>{r.setParams({missingProperty:P}),s.if((0,t.noPropertyInData)(s,u,P,f.ownProperties),()=>r.error())})}function w(P,k){r.setParams({missingProperty:P}),s.forOf(P,d,()=>{s.assign(k,(0,t.propertyInData)(s,u,P,f.ownProperties)),s.if((0,e.not)(k),()=>{r.error(),s.break()})},e.nil)}}};return mg.default=n,mg}var hg={},bD;function KZ(){if(bD)return hg;bD=1,Object.defineProperty(hg,"__esModule",{value:!0});const t=Tt(),a={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:n}){const r=o==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:o})=>(0,t._)`{limit: ${o}}`},code(o){const{keyword:n,data:r,schemaCode:s}=o,c=n==="maxItems"?t.operators.GT:t.operators.LT;o.fail$data((0,t._)`${r}.length ${c} ${s}`)}};return hg.default=a,hg}var gg={},fg={},vD;function qP(){if(vD)return fg;vD=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=Tt(),a=Ft(),o=qP(),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:b}=s;if(!u&&!m)return;const y=c.let("valid"),T=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`),_=c.let("j");s.setParams({i:C,j:_}),c.assign(y,!0),c.if((0,e._)`${C} > 1`,()=>(w()?P:k)(C,_))}function w(){return T.length>0&&!T.some(C=>C==="object"||C==="array")}function P(C,_){const D=c.name("item"),R=(0,t.checkDataTypes)(T,D,b.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`),T.length>1&&c.if((0,e._)`typeof ${D} == "string"`,(0,e._)`${D} += "_"`),c.if((0,e._)`typeof ${O}[${D}] == "number"`,()=>{c.assign(_,(0,e._)`${O}[${D}]`),s.error(),c.assign(y,!1).break()}).code((0,e._)`${O}[${D}] = ${C}`)})}function k(C,_){const D=(0,a.useFunc)(c,o.default),R=c.name("outer");c.label(R).for((0,e._)`;${C}--;`,()=>c.for((0,e._)`${_} = ${C}; ${_}--;`,()=>c.if((0,e._)`${D}(${d}[${C}], ${d}[${_}])`,()=>{s.error(),c.assign(y,!1).break(R)})))}}};return gg.default=r,gg}var bg={},TD;function ZZ(){if(TD)return bg;TD=1,Object.defineProperty(bg,"__esModule",{value:!0});const t=Tt(),e=Ft(),a=qP(),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,a.default)}(${c}, ${u})`):r.fail((0,t._)`${m} !== ${c}`)}};return bg.default=n,bg}var vg={},SD;function QZ(){if(SD)return vg;SD=1,Object.defineProperty(vg,"__esModule",{value:!0});const t=Tt(),e=Ft(),a=qP(),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 b;const y=()=>b??(b=(0,e.useFunc)(s,a.default));let T;if(f||d)T=s.let("valid"),r.block$data(T,x);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const P=s.const("vSchema",m);T=(0,t.or)(...u.map((k,C)=>w(P,C)))}r.pass(T);function x(){s.assign(T,!1),s.forOf("v",m,P=>s.if((0,t._)`${y()}(${c}, ${P})`,()=>s.assign(T,!0).break()))}function w(P,k){const C=u[k];return typeof C=="object"&&C!==null?(0,t._)`${y()}(${c}, ${P}[${k}])`:(0,t._)`${c} === ${C}`}}};return vg.default=n,vg}var wD;function JZ(){if(wD)return ig;wD=1,Object.defineProperty(ig,"__esModule",{value:!0});const t=UZ(),e=qZ(),a=VZ(),o=HZ(),n=GZ(),r=WZ(),s=KZ(),c=YZ(),d=ZZ(),u=QZ(),m=[t.default,e.default,a.default,o.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={},$c={},xD;function ZL(){if(xD)return $c;xD=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.validateAdditionalItems=void 0;const t=Tt(),e=Ft(),o={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),()=>b(y)),r.ok(y)}function b(y){c.forRange("i",s.length,f,T=>{r.subschema({keyword:m,dataProp:T,dataPropType:e.Type.Num},y),h.allErrors||c.if((0,t.not)(y),()=>c.break())})}}return $c.validateAdditionalItems=n,$c.default=o,$c}var Tg={},Vc={},PD;function QL(){if(PD)return Vc;PD=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.validateTuple=void 0;const t=Tt(),e=Ft(),a=Dr(),o={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,a.validateArray)(r))}};function n(r,s,c=r.schema){const{gen:d,parentSchema:u,data:m,keyword:h,it:f}=r;T(u),f.opts.unevaluated&&c.length&&f.items!==!0&&(f.items=e.mergeEvaluated.items(d,c.length,f.items));const b=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},b)),r.ok(b))});function T(x){const{opts:w,errSchemaPath:P}=f,k=c.length,C=k===x.minItems&&(k===x.maxItems||x[s]===!1);if(w.strictTuples&&!C){const _=`"${h}" is ${k}-tuple, but minItems or maxItems/${s} are not specified or different at path "${P}"`;(0,e.checkStrictMode)(f,_,w.strictTuples)}}}return Vc.validateTuple=n,Vc.default=o,Vc}var CD;function XZ(){if(CD)return Tg;CD=1,Object.defineProperty(Tg,"__esModule",{value:!0});const t=QL(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:a=>(0,t.validateTuple)(a,"items")};return Tg.default=e,Tg}var Sg={},ED;function eQ(){if(ED)return Sg;ED=1,Object.defineProperty(Sg,"__esModule",{value:!0});const t=Tt(),e=Ft(),a=Dr(),o=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,o.validateAdditionalItems)(s,m):s.ok((0,a.validateArray)(s)))}};return Sg.default=r,Sg}var wg={},kD;function tQ(){if(kD)return wg;kD=1,Object.defineProperty(wg,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={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:b}=c;u.opts.next?(m=f===void 0?1:f,h=b):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 k=(0,t._)`${y} >= ${m}`;h!==void 0&&(k=(0,t._)`${k} && ${y} <= ${h}`),n.pass(k);return}u.items=!0;const T=r.name("valid");h===void 0&&m===1?w(T,()=>r.if(T,()=>r.break())):m===0?(r.let(T,!0),h!==void 0&&r.if((0,t._)`${d}.length > 0`,x)):(r.let(T,!1),x()),n.result(T,()=>n.reset());function x(){const k=r.name("_valid"),C=r.let("count",0);w(k,()=>r.if(k,()=>P(C)))}function w(k,C){r.forRange("i",0,y,_=>{n.subschema({keyword:"contains",dataProp:_,dataPropType:e.Type.Num,compositeRule:!0},k),C()})}function P(k){r.code((0,t._)`${k}++`),h===void 0?r.if((0,t._)`${k} >= ${m}`,()=>r.assign(T,!0).break()):(r.if((0,t._)`${k} > ${h}`,()=>r.assign(T,!1).break()),m===1?r.assign(T,!0):r.if((0,t._)`${k} >= ${m}`,()=>r.assign(T,!0)))}}};return wg.default=o,wg}var SS={},_D;function aQ(){return _D||(_D=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=Tt(),a=Ft(),o=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 b=m.let("missing");for(const y in u){const T=u[y];if(T.length===0)continue;const x=(0,o.propertyInData)(m,h,y,f.opts.ownProperties);d.setParams({property:y,depsCount:T.length,deps:T.join(", ")}),f.allErrors?m.if(x,()=>{for(const w of T)(0,o.checkReportMissingProp)(d,w)}):(m.if((0,e._)`${x} && (${(0,o.checkMissingProp)(d,T,b)})`),(0,o.reportMissingProp)(d,b),m.else())}}t.validatePropertyDeps=s;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:b}=d,y=m.name("valid");for(const T in u)(0,a.alwaysValidSchema)(b,u[T])||(m.if((0,o.propertyInData)(m,h,T,b.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:T},y);d.mergeValidEvaluated(x,y)},()=>m.var(y,!0)),d.ok(y))}t.validateSchemaDeps=c,t.default=n})(SS)),SS}var xg={},AD;function oQ(){if(AD)return xg;AD=1,Object.defineProperty(xg,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={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=o,xg}var Pg={},RD;function JL(){if(RD)return Pg;RD=1,Object.defineProperty(Pg,"__esModule",{value:!0});const t=Dr(),e=Tt(),a=Ys(),o=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:b,opts:y}=f;if(f.props=!0,y.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(f,d))return;const T=(0,t.allSchemaProperties)(u.properties),x=(0,t.allSchemaProperties)(u.patternProperties);w(),s.ok((0,e._)`${h} === ${a.default.errors}`);function w(){c.forIn("key",m,D=>{!T.length&&!x.length?C(D):c.if(P(D),()=>C(D))})}function P(D){let R;if(T.length>8){const O=(0,o.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else T.length?R=(0,e.or)(...T.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 k(D){c.code((0,e._)`delete ${m}[${D}]`)}function C(D){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){k(D);return}if(d===!1){s.setParams({additionalProperty:D}),s.error(),b||c.break();return}if(typeof d=="object"&&!(0,o.alwaysValidSchema)(f,d)){const R=c.name("valid");y.removeAdditional==="failing"?(_(D,R,!1),c.if((0,e.not)(R),()=>{s.reset(),k(D)})):(_(D,R),b||c.if((0,e.not)(R),()=>c.break()))}}function _(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:o.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(L,R)}}};return Pg.default=r,Pg}var Cg={},DD;function nQ(){if(DD)return Cg;DD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=ev(),e=Dr(),a=Ft(),o=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&&o.default.code(new t.KeywordCxt(m,o.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=a.mergeEvaluated.props(s,(0,a.toHash)(h),m.props));const f=h.filter(x=>!(0,a.alwaysValidSchema)(m,c[x]));if(f.length===0)return;const b=s.name("valid");for(const x of f)y(x)?T(x):(s.if((0,e.propertyInData)(s,u,x,m.opts.ownProperties)),T(x),m.allErrors||s.else().var(b,!0),s.endIf()),r.it.definedProperties.add(x),r.ok(b);function y(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function T(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},b)}}};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=Tt(),a=Ft(),o=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),b=f.filter(C=>(0,a.alwaysValidSchema)(m,c[C]));if(f.length===0||b.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&u.properties,T=s.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,o.evaluatedPropsToName)(s,m.props));const{props:x}=m;w();function w(){for(const C of f)y&&P(C),m.allErrors?k(C):(s.var(T,!0),k(C),s.if(T))}function P(C){for(const _ in y)new RegExp(C).test(_)&&(0,a.checkStrictMode)(m,`property ${_} matches pattern ${C} (use allowMatchingProperties)`)}function k(C){s.forIn("key",d,_=>{s.if((0,e._)`${(0,t.usePattern)(r,C)}.test(${_})`,()=>{const D=b.includes(C);D||r.subschema({keyword:"patternProperties",schemaProp:C,dataProp:_,dataPropType:o.Type.Str},T),m.opts.unevaluated&&x!==!0?s.assign((0,e._)`${x}[${_}]`,!0):!D&&!m.allErrors&&s.if((0,e.not)(T),()=>s.break())})})}}};return Eg.default=n,Eg}var kg={},MD;function iQ(){if(MD)return kg;MD=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Ft(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(a){const{gen:o,schema:n,it:r}=a;if((0,t.alwaysValidSchema)(r,n)){a.fail();return}const s=o.name("valid");a.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),a.failResult(s,()=>a.reset(),()=>a.error())},error:{message:"must NOT be valid"}};return kg.default=e,kg}var _g={},ND;function sQ(){if(ND)return _g;ND=1,Object.defineProperty(_g,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return _g.default=e,_g}var Ag={},ID;function lQ(){if(ID)return Ag;ID=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={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(b),n.result(m,()=>n.reset(),()=>n.error(!0));function b(){u.forEach((y,T)=>{let x;(0,e.alwaysValidSchema)(d,y)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:T,compositeRule:!0},f),T>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${T}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,T),x&&n.mergeEvaluated(x,t.Name)})})}}};return Ag.default=o,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(a){const{gen:o,schema:n,it:r}=a;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=o.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=a.subschema({keyword:"allOf",schemaProp:d},s);a.ok(s),a.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=Tt(),e=Ft(),o={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(b(),r.reset(),u&&m){const T=s.let("ifClause");r.setParams({ifClause:T}),s.if(f,y("then",T),y("else",T))}else u?s.if(f,y("then")):s.if((0,t.not)(f),y("else"));r.pass(h,()=>r.error(!0));function b(){const T=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(T)}function y(T,x){return()=>{const w=r.subschema({keyword:T},f);s.assign(h,f),r.mergeValidEvaluated(w,h),x?s.assign(x,(0,t._)`${T}`):r.setParams({ifClause:T})}}}};function n(r,s){const c=r.schema[s];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=o,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:a,parentSchema:o,it:n}){o.if===void 0&&(0,t.checkStrictMode)(n,`"${a}" 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(),a=QL(),o=eQ(),n=tQ(),r=aQ(),s=oQ(),c=JL(),d=nQ(),u=rQ(),m=iQ(),h=sQ(),f=lQ(),b=cQ(),y=dQ(),T=uQ();function x(w=!1){const P=[m.default,h.default,f.default,b.default,y.default,T.default,s.default,c.default,r.default,d.default,u.default];return w?P.push(e.default,o.default):P.push(t.default,a.default),P.push(n.default),P}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=Tt(),a={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,t._)`{format: ${o}}`},code(o,n){const{gen:r,data:s,$data:c,schema:d,schemaCode:u,it:m}=o,{opts:h,errSchemaPath:f,schemaEnv:b,self:y}=m;if(!h.validateFormats)return;c?T():x();function T(){const w=r.scopeValue("formats",{ref:y.formats,code:h.code.formats}),P=r.const("fDef",(0,t._)`${w}[${u}]`),k=r.let("fType"),C=r.let("format");r.if((0,t._)`typeof ${P} == "object" && !(${P} instanceof RegExp)`,()=>r.assign(k,(0,t._)`${P}.type || "string"`).assign(C,(0,t._)`${P}.validate`),()=>r.assign(k,(0,t._)`"string"`).assign(C,P)),o.fail$data((0,t.or)(_(),D()));function _(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${C}`}function D(){const R=b.$async?(0,t._)`(${P}.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 && ${k} === ${n} && !${O}`}}function x(){const w=y.formats[d];if(!w){_();return}if(w===!0)return;const[P,k,C]=D(w);P===n&&o.pass(R());function _(){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,q=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${q}.validate`]:["string",O,q]}function R(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!b.$async)throw new Error("async format in sync schema");return(0,t._)`await ${C}(${s})`}return typeof k=="function"?(0,t._)`${C}(${s})`:(0,t._)`${C}.test(${s})`}}}};return Ng.default=a,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 Tl={},qD;function gQ(){return qD||(qD=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.contentVocabulary=Tl.metadataVocabulary=void 0,Tl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Tl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Tl}var $D;function fQ(){if($D)return og;$D=1,Object.defineProperty(og,"__esModule",{value:!0});const t=zZ(),e=JZ(),a=pQ(),o=hQ(),n=gQ(),r=[t.default,e.default,(0,a.default)(),o.default,n.metadataVocabulary,n.contentVocabulary];return og.default=r,og}var Ig={},Yu={},VD;function bQ(){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 vQ(){if(HD)return Ig;HD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=Tt(),e=bQ(),a=UP(),o=tv(),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:b}=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(!b)throw new Error("discriminator: requires oneOf keyword");const T=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(T);function w(){const C=k();d.if(!1);for(const _ in C)d.elseIf((0,t._)`${x} === ${_}`),d.assign(T,P(C[_]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function P(C){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:C},_);return c.mergeEvaluated(D,t.Name),_}function k(){var C;const _={},D=O(h);let R=!0;for(let B=0;B<b.length;B++){let z=b[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=a.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof a.SchemaEnv&&(z=z.schema),z===void 0)throw new o.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 _;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function L(B,z){if(B.const)q(B.const,z);else if(B.enum)for(const F of B.enum)q(F,z);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function q(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${y}" values must be unique strings`);_[B]=z}}}};return Ig.default=s,Ig}const yQ="http://json-schema.org/draft-07/schema#",TQ="http://json-schema.org/draft-07/schema#",SQ="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"],PQ={$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:TQ,title:SQ,definitions:wQ,type:xQ,properties:PQ,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 a=BZ(),o=fQ(),n=vQ(),r=CQ,s=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends a.default{_addVocabularies(){super._addVocabularies(),o.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=ev();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=Tt();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=zP();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=tv();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},wS={},WD;function kQ(){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),b),"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:q,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:k,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,b),"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 a(B){return B%4===0&&(B%100!==0||B%400===0)}const o=/^(\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=o.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],ae=+z[3];return W>=1&&W<=12&&ae>=1&&ae<=(W===2&&a(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 ae=+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(ae<=23&&H<=59&&K<60)return!0;const G=H-N*ie,V=ae-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 ae=W.split(h);return ae.length===2&&r(ae[0])&&z(ae[1])}}function b(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),[ae,H]=z.split(h),K=s(F,ae);if(K!==void 0)return K||u(W,H)}const T=/\/|:/,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 T.test(B)&&x.test(B)}const P=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function k(B){return P.lastIndex=0,P.test(B)}const C=-2147483648,_=2**31-1;function D(B){return Number.isInteger(B)&&B<=_&&B>=C}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function q(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(wS)),wS}var xS={},KD;function _Q(){return KD||(KD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=EQ(),a=Tt(),o=a.operators,n={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,a.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,a._)`{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:b,self:y}=f;if(!b.validateFormats)return;const T=new e.KeywordCxt(f,y.RULES.all.format.definition,"format");T.$data?x():w();function x(){const k=d.scopeValue("formats",{ref:y.formats,code:b.code.formats}),C=d.const("fmt",(0,a._)`${k}[${T.schemaCode}]`);c.fail$data((0,a.or)((0,a._)`typeof ${C} != "object"`,(0,a._)`${C} instanceof RegExp`,(0,a._)`typeof ${C}.compare != "function"`,P(C)))}function w(){const k=T.schema,C=y.formats[k];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${h}": format "${k}" does not define "compare" function`);const _=d.scopeValue("formats",{key:k,ref:C,code:b.code.formats?(0,a._)`${b.code.formats}${(0,a.getProperty)(k)}`:void 0});c.fail$data(P(_))}function P(k){return(0,a._)`${k}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const s=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=s})(xS)),xS}var YD;function AQ(){return YD||(YD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const a=kQ(),o=_Q(),n=Tt(),r=new n.Name("fullFormats"),s=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,a.fullFormats,r),u;const[h,f]=m.mode==="fast"?[a.fastFormats,s]:[a.fullFormats,r],b=m.formats||a.formatNames;return d(u,b,h,f),m.keywords&&(0,o.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?a.fastFormats:a.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var b,y;(b=(y=u.opts.code).formats)!==null&&b!==void 0||(y.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const T of m)u.addFormat(T,h[T])}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},a){return t??e??a}let $P;$P=globalThis.crypto;async function OQ(t){return(await $P).getRandomValues(new Uint8Array(t))}async function MQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",a=Math.pow(2,8)-Math.pow(2,8)%e.length;let o="";for(;o.length<t;){const n=await OQ(t-o.length);for(const r of n)r<a&&(o+=e[r%e.length])}return o}async function NQ(t){return await MQ(t)}async function IQ(t){const e=await(await $P).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),a=await IQ(e);return{code_verifier:e,code_challenge:a}}const Co=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=Eo({resource:$().url(),authorization_servers:je(Co).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),LQ=Eo({issuer:$(),authorization_endpoint:Co,token_endpoint:Co,registration_endpoint:Co.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Co.optional(),revocation_endpoint:Co.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),BQ=Eo({issuer:$(),authorization_endpoint:Co,token_endpoint:Co,userinfo_endpoint:Co.optional(),jwks_uri:Co,registration_endpoint:Co.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).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:Co.optional(),op_tos_uri:Co.optional(),client_id_metadata_document_supported:Vt().optional()}),uwe=Se({...BQ.shape,...LQ.pick({code_challenge_methods_supported:!0}).shape}),pwe=Se({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:mL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),mwe=Se({error:$(),error_description:$().optional(),error_uri:$().optional()}),ZD=Co.optional().or(Ze("").transform(()=>{})),FQ=Se({redirect_uris:je(Co),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Co.optional(),logo_uri:ZD,scope:$().optional(),contacts:je($()).optional(),tos_uri:ZD,policy_uri:$().optional(),jwks_uri:Co.optional(),jwks:dW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),jQ=Se({client_id:$(),client_secret:$().optional(),client_id_issued_at:Rt().optional(),client_secret_expires_at:Rt().optional()}).strip(),hwe=FQ.merge(jQ);Se({error:$(),error_description:$().optional()}).strip();Se({token:$(),token_type_hint:$().optional()}).strip();class Oo extends Error{constructor(e,a){super(e),this.errorUri=a,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 Oo{}p0.errorCode="invalid_request";class m0 extends Oo{}m0.errorCode="invalid_client";class h0 extends Oo{}h0.errorCode="invalid_grant";class g0 extends Oo{}g0.errorCode="unauthorized_client";class f0 extends Oo{}f0.errorCode="unsupported_grant_type";class b0 extends Oo{}b0.errorCode="invalid_scope";class v0 extends Oo{}v0.errorCode="access_denied";class y0 extends Oo{}y0.errorCode="server_error";class T0 extends Oo{}T0.errorCode="temporarily_unavailable";class S0 extends Oo{}S0.errorCode="unsupported_response_type";class w0 extends Oo{}w0.errorCode="unsupported_token_type";class x0 extends Oo{}x0.errorCode="invalid_token";class P0 extends Oo{}P0.errorCode="method_not_allowed";class C0 extends Oo{}C0.errorCode="too_many_requests";class E0 extends Oo{}E0.errorCode="invalid_client_metadata";class k0 extends Oo{}k0.errorCode="insufficient_scope";class _0 extends Oo{}_0.errorCode="invalid_target";const gwe={[p0.errorCode]:p0,[m0.errorCode]:m0,[h0.errorCode]:h0,[g0.errorCode]:g0,[f0.errorCode]:f0,[b0.errorCode]:b0,[v0.errorCode]:v0,[y0.errorCode]:y0,[T0.errorCode]:T0,[S0.errorCode]:S0,[w0.errorCode]:w0,[x0.errorCode]:x0,[P0.errorCode]:P0,[C0.errorCode]:C0,[E0.errorCode]:E0,[k0.errorCode]:k0,[_0.errorCode]:_0};async function XL(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(a){if(a instanceof Qb&&a.code===Up.MethodNotFound)return{resources:[]};throw a}}async function zQ(t,e){return await t.readResource({uri:e})}function fwe(t){const e=ye.c(12);let a,o;e[0]!==t?({client:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=eo.mcpResourcesList(a),e[3]=a,e[4]=n):n=e[4];let r;e[5]!==a?(r=()=>XL(a),e[5]=a,e[6]=r):r=e[6];const s=o.staleTime??3e4;let c;return e[7]!==o||e[8]!==n||e[9]!==r||e[10]!==s?(c={...o,queryKey:n,queryFn:r,staleTime:s,retry:!1},e[7]=o,e[8]=n,e[9]=r,e[10]=s,e[11]=c):c=e[11],Gs(c)}function bwe(t){const e=ye.c(12);let a,o;e[0]!==t?({client:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=eo.mcpResourcesList(a),e[3]=a,e[4]=n):n=e[4];let r;e[5]!==a?(r=()=>XL(a),e[5]=a,e[6]=r):r=e[6];const s=o.staleTime??3e4;let c;return e[7]!==o||e[8]!==n||e[9]!==r||e[10]!==s?(c={...o,queryKey:n,queryFn:r,staleTime:s,retry:!1},e[7]=o,e[8]=n,e[9]=r,e[10]=s,e[11]=c):c=e[11],Hs(c)}function vwe(t){const e=ye.c(15);let a,o,n;e[0]!==t?({client:a,uri:n,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);let r;e[4]!==a||e[5]!==n?(r=eo.mcpReadResource(a,n),e[4]=a,e[5]=n,e[6]=r):r=e[6];let s;e[7]!==a||e[8]!==n?(s=()=>zQ(a,n),e[7]=a,e[8]=n,e[9]=s):s=e[9];const c=o.staleTime??3e4;let d;return e[10]!==o||e[11]!==r||e[12]!==s||e[13]!==c?(d={...o,queryKey:r,queryFn:s,staleTime:c,retry:!1},e[10]=o,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 a,o,n,r,s,c;e[0]!==t?({orgSlug:n,connectionId:a,uri:c,studioUrl:s,meshUrl:o,...r}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r,e[5]=s,e[6]=c):(a=e[1],o=e[2],n=e[3],r=e[4],s=e[5],c=e[6]);let d;e[7]!==a||e[8]!==n||e[9]!==c?(d=eo.mcpUiResourceHtml(n,a,c),e[7]=a,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==a||e[12]!==o||e[13]!==n||e[14]!==s||e[15]!==c?(u=async()=>{const b=`${DQ({studioUrl:s,meshUrl:o},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(a)}/ui-resource?uri=${encodeURIComponent(c)}`,y=await fetch(b,{credentials:"include"});if(!y.ok)throw new Error(`Failed to read UI resource (${y.status})`);return y.text()},e[11]=a,e[12]=o,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,a,o){super(e),this.status=a,this.code=o,this.name="StudioToolError"}status;code}function aB(t){return t instanceof A0&&Object.values(tB).includes(t.code??"")?t.code:null}async function UQ(t,e,a){const o=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a??{})});if(!o.ok){let n=`${e} failed (${o.status})`,r;try{const s=await o.json();s?.error&&(n=s.error),typeof s?.code=="string"&&(r=s.code)}catch{}throw new A0(n,o.status,r)}try{return await o.json()}catch{throw new A0(`${e} returned a non-JSON response`,o.status)}}function VP(){const t=ye.c(5),{org:e}=Ks(),a=e.slug;let o;t[0]!==a?(o=(r,s)=>UQ(a,r,s),t[0]=a,t[1]=o):o=t[1];let n;return t[2]!==a||t[3]!==o?(n={orgSlug:a,call:o},t[2]=a,t[3]=o,t[4]=n):n=t[4],n}function qQ(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 $Q="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 av(){return new Promise((t,e)=>{const a=indexedDB.open($Q,1);a.onupgradeneeded=()=>{a.result.objectStoreNames.contains(Yf)||a.result.createObjectStore(Yf)},a.onsuccess=()=>t(a.result),a.onerror=()=>e(a.error)})}function Ld(t,e){return t.transaction(Yf,e).objectStore(Yf)}function R0(t){return new Promise((e,a)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>a(t.error)})}async function KQ(t){if(!(typeof indexedDB>"u"))try{const e=await av(),a=Ld(e,"readonly"),o=await R0(a.getAllKeys()),n=await R0(a.getAll()),r=Date.now(),s=o.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=av().catch(()=>null);return t.getQueryCache().subscribe(a=>{const o=a.query;if(!Array.isArray(o.queryKey)||!WQ(o.queryKey)||o.state.status!=="success")return;const n=o.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(o.queryKey))}catch{}})})}function ZQ(){typeof indexedDB>"u"||av().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function Twe(t){if(!(typeof indexedDB>"u"))try{const e=await av(),a=await R0(Ld(e,"readonly").getAllKeys()),o=Ld(e,"readwrite");for(const n of a)try{const r=JSON.parse(String(n));r[1]===eB&&r[3]===t&&o.delete(n)}catch{}}catch{}}const Zf="studio:rq-cache",HP=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 oB=!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 a=JSON.parse(e),o=!a.timestamp||Date.now()-a.timestamp>HP;if(a.buster!=="4.537.0"||o||!a.state){window.localStorage.removeItem(Zf);return}SV(t,a.state),t.invalidateQueries({queryKey:eo.publicConfig(),refetchType:"none"}),oB=!0}catch{sJ()}}function aJ(t){if(typeof window>"u")return()=>{};let e=null;const a=()=>{e=null;try{const r=TV(t,{shouldDehydrateQuery:s=>s.state.status==="success"&&eJ(s.queryKey)});window.localStorage.setItem(Zf,JSON.stringify({buster:"4.537.0",timestamp:Date.now(),state:r}))}catch{}},o=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(a,QQ))}),n=()=>{e!=null&&(clearTimeout(e),a())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),o()}}const rB="studio:org-cache:",oJ=20;function nJ(t){const e=Date.now(),a=Object.entries(t).filter(([,o])=>e-o.updatedAt<=HP);for(a.sort(([,o],[,n])=>o.updatedAt-n.updatedAt);a.length>oJ;)a.shift();return Object.fromEntries(a)}function iB(t){return`${rB}${t}`}function rJ(t,e){if(typeof window>"u")return null;try{const a=window.localStorage.getItem(iB(t));if(!a)return null;const o=JSON.parse(a)[e];return!o||Date.now()-o.updatedAt>HP?null:(nB=!0,o)}catch{return null}}function iJ(t,e,a){if(!(typeof window>"u"))try{const o=iB(t),n=window.localStorage.getItem(o),r=n?JSON.parse(n):{};r[e]={data:a,updatedAt:Date.now()},window.localStorage.setItem(o,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 oB}function cJ(){return nB}function QD(t){const e=aB(t);if(!e)return;const a=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(a,{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)=>aB(e)===null&&t<1,gcTime:300*1e3}}});qQ(Zl);tJ(Zl);aJ(Zl);KQ(Zl);YQ(Zl);const GP=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:eo.publicConfig(),queryFn:sB,staleTime:GP},t[0]=e):e=t[0];const{data:a}=Gs(e);return a}function Swe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:eo.publicConfig(),queryFn:sB,staleTime:GP},t[0]=e):e=t[0],Hs(e).data}const cB=A.createContext(void 0);function dJ(t){const e=ye.c(3),{children:a}=t,o=lB();let n;return e[0]!==a||e[1]!==o.auth?(n=v.jsx(cB.Provider,{value:o.auth,children:a}),e[0]=a,e[1]=o.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 bf=Object.create(null),Zu=t=>uJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?bf:globalThis),Xn=new Proxy(bf,{get(t,e){return Zu()[e]??bf[e]},has(t,e){return e in Zu()||e in bf},set(t,e,a){const o=Zu(!0);return o[e]=a,!0},deleteProperty(t,e){if(!e)return!1;const a=Zu(!0);return delete a[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Ka(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,mo=4,Vr=8,Mn=24,XD={eterm:mo,cons25:mo,console:mo,cygwin:mo,dtterm:mo,gnome:mo,hurd:mo,jfbterm:mo,konsole:mo,kterm:mo,mlterm:mo,mosh:Mn,putty:mo,st:mo,"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(Ka("FORCE_COLOR")!==void 0)switch(Ka("FORCE_COLOR")){case"":case"1":case"true":return mo;case"2":return Vr;case"3":return Mn;default:return Qu}if(Ka("NODE_DISABLE_COLORS")!==void 0&&Ka("NODE_DISABLE_COLORS")!==""||Ka("NO_COLOR")!==void 0&&Ka("NO_COLOR")!==""||Ka("TERM")==="dumb")return Qu;if(Ka("TMUX"))return Mn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return mo;if("CI"in Xn){for(const{0:t,1:e}of pJ)if(t in Xn)return e;return Ka("CI_NAME")==="codeship"?Vr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Ka("TEAMCITY_VERSION"))!==null?mo:Qu;switch(Ka("TERM_PROGRAM")){case"iTerm.app":return!Ka("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Ka("TERM_PROGRAM_VERSION"))!==null?Vr:Mn;case"HyperTerm":case"MacTerm":return Mn;case"Apple_Terminal":return Vr}if(Ka("COLORTERM")==="truecolor"||Ka("COLORTERM")==="24bit")return Mn;if(Ka("TERM")){if(/truecolor/.exec(Ka("TERM"))!==null)return Mn;if(/^xterm-256/.exec(Ka("TERM"))!==null)return Vr;const t=Ka("TERM").toLowerCase();if(XD[t])return XD[t];if(mJ.some(e=>e.exec(t)!==null))return mo}return Ka("COLORTERM")?mo: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},bJ=(t,e,a)=>{const o=new Date().toISOString();return a?`${Hr.dim}${o}${Hr.reset} ${fJ[t]}${t.toUpperCase()}${Hr.reset} ${Hr.bright}[Better Auth]:${Hr.reset} ${e}`:`${o} ${t.toUpperCase()} [Better Auth]: ${e}`},vJ=t=>{const e="warn",a=hJ()!==1,o=(n,r,s=[])=>{if(!gJ(e,n))return;const c=bJ(n,r,a);{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])=>o(n,r,s)])),get level(){return e}}};vJ();function yJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Pp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function TJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Pp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function SJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Pp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof Pp?e:new Pp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function PS(t,e="/api/auth"){if(SJ(t),TJ(t))return t;const a=t.replace(/\/+$/,"");return!e||e==="/"?a:(e=e.startsWith("/")?e:`/${e}`,`${a}${e}`)}function wJ(t,e,a,o,n){if(t)return PS(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 PS(r,e)}if(typeof window<"u"&&window.location)return PS(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{}}}},PJ={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 kJ(t){return t instanceof Date&&!isNaN(t.getTime())}function _J(t){const e=EJ.exec(t);if(!e)return null;const[,a,o,n,r,s,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(a,10),parseInt(o,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 b=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+b)}return kJ(f)?f:null}function AJ(t,e={}){const{strict:a=!1,warnings:o=!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(a)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(PJ).some(([d,u])=>{const m=u.test(s);return m&&o&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&a)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){o&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=_J(m);if(h)return h}return n?n(u,m):m})}catch(d){if(a)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=[],a={get(){return a.lc||a.listen(()=>{})(),a.value},init:t,lc:0,listen(o){return a.lc=e.push(o),()=>{for(let r=gs+Bg;r<fr.length;)fr[r]===o?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(o);~n&&(e.splice(n,1),--a.lc||a.off())}},notify(o,n){DJ.epoch++;let r=!fr.length;for(let s of e)fr.push(s,a.value,o,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(o){let n=a.value;n!==o&&(a.value=o,a.notify(n))},subscribe(o){let n=a.listen(o);return o(a.value),n},value:t};return a},OJ=5,Fg=6,jg=10;let MJ=(t,e,a,o)=>(t.events=t.events||{},t.events[a+jg]||(t.events[a+jg]=o(n=>{t.events[a].reduceRight((r,s)=>(s(r),r),{shared:{},...n})})),t.events[a]=t.events[a]||[],t.events[a].push(e),()=>{let n=t.events[a],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[a],t.events[a+jg](),delete t.events[a+jg])});const NJ=1e3;let dB=(t,e)=>MJ(t,o=>{let n=e(o);n&&t.events[Fg].push(n)},OJ,o=>{let n=t.listen;t.listen=(...s)=>(!t.lc&&!t.active&&(t.active=!0,o()),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,a){let o=new Set(e).add(void 0);return t.listen((n,r,s)=>{o.has(s)&&a(n,r,s)})}const LJ=()=>typeof window>"u",mp=(t,e,a,o)=>{const n=hd({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof o=="function"?o({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):o;a(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,b=h.retryAttempt||0;f&&b<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},CS=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 a=JSON.parse(e.newValue??"{}");a?.event!=="session"||!a?.data||this.listeners.forEach(o=>o(a))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function ES(t="better-auth.message"){return globalThis[CS]||(globalThis[CS]=new FJ(t)),globalThis[CS]}const kS=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[kS]||(globalThis[kS]=new jJ),globalThis[kS]}const _S=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 AS(){return globalThis[_S]||(globalThis[_S]=new zJ),globalThis[_S]}const Hc=()=>Math.floor(Date.now()/1e3),UJ=5;function qJ(t){const{sessionAtom:e,sessionSignal:a,$fetch:o,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||AS().isOnline,m=P=>{if(!u())return;if(P?.event==="storage"){d.lastSync=Hc(),a.set(!a.get());return}const k=e.get();if(P?.event==="poll"){d.lastSessionRequest=Hc(),o("/get-session").then(C=>{C.error?e.set({...k,data:null,error:C.error}):e.set({...k,data:C.data,error:null}),d.lastSync=Hc(),a.set(!a.get())}).catch(()=>{});return}if(P?.event==="visibilitychange"){if(Hc()-d.lastSessionRequest<UJ)return;d.lastSessionRequest=Hc()}(k?.data===null||k?.data===void 0||P?.event==="visibilitychange")&&(d.lastSync=Hc(),a.set(!a.get()))},h=P=>{ES().post({event:"session",data:{trigger:P},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},b=()=>{d.unsubscribeBroadcast=ES().subscribe(()=>{m({event:"storage"})})},y=()=>{s&&(d.unsubscribeFocus=tO().subscribe(()=>{m({event:"visibilitychange"})}))},T=()=>{d.unsubscribeOnline=AS().subscribe(P=>{P&&m({event:"visibilitychange"})})};return{init:()=>{f(),b(),y(),T(),ES().setup(),tO().setup(),AS().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 $J(t,e){const a=hd(!1),o=mp(a,"/get-session",t,{method:"GET"});return dB(o,()=>{const n=qJ({sessionAtom:o,sessionSignal:a,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:o,$sessionSignal:a}}function RS(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,a=".",o){if(!RS(e))return O0(t,{},a,o);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const s=t[r];s!=null&&(o&&o(n,r,s,a)||(Array.isArray(s)&&Array.isArray(n[r])?n[r]=[...s,...n[r]]:RS(s)&&RS(n[r])?n[r]=O0(s,n[r],(a?`${a}.`:"")+r.toString(),o):n[r]=s))}return n}function VJ(t){return(...e)=>e.reduce((a,o)=>O0(a,o,"",t),{})}const HJ=VJ();var GJ=Object.defineProperty,WJ=Object.defineProperties,KJ=Object.getOwnPropertyDescriptors,aO=Object.getOwnPropertySymbols,YJ=Object.prototype.hasOwnProperty,ZJ=Object.prototype.propertyIsEnumerable,oO=(t,e,a)=>e in t?GJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,Tr=(t,e)=>{for(var a in e||(e={}))YJ.call(e,a)&&oO(t,a,e[a]);if(aO)for(var a of aO(e))ZJ.call(e,a)&&oO(t,a,e[a]);return t},Ur=(t,e)=>WJ(t,KJ(e)),QJ=class extends Error{constructor(t,e,a){super(e||t.toString(),{cause:a}),this.status=t,this.statusText=e,this.error=a,Error.captureStackTrace(this,this.constructor)}},JJ=async(t,e)=>{var a,o,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((a=m.init)==null?void 0:a.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((o=m.hooks)==null?void 0:o.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={},a=async o=>typeof o=="function"?await o():o;if(t?.auth){if(t.auth.type==="Bearer"){const o=await a(t.auth.token);if(!o)return e;e.authorization=`Bearer ${o}`}else if(t.auth.type==="Basic"){const[o,n]=await Promise.all([a(t.auth.username),a(t.auth.password)]);if(!o||!n)return e;e.authorization=`Basic ${btoa(`${o}:${n}`)}`}else if(t.auth.type==="Custom"){const[o,n]=await Promise.all([a(t.auth.prefix),a(t.auth.value)]);if(!n)return e;e.authorization=`${o??""} ${n}`}}return e},aX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function oX(t){const e=t.headers.get("content-type"),a=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const o=e.split(";").shift()||"";return aX.test(o)?"json":a.has(o)||o.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),a=await tX(t);for(const[o,n]of Object.entries(a||{}))e.set(o,n);if(!e.has("content-type")){const o=sX(t?.body);o&&e.set("content-type",o)}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[a,o]of Object.entries(t?.body))o instanceof Date&&(t.body[a]=o.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 a;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const o=(a=t.split("@")[1])==null?void 0:a.split("/")[0];return pB.includes(o)?o.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function dX(t,e){let a;return!t?.signal&&t?.timeout&&(a=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:a,clearTimeout:()=>{a&&clearTimeout(a)}}}var uX=class uB extends Error{constructor(e,a){super(a||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,uB.prototype)}};async function vf(t,e){const a=await t["~standard"].validate(e);if(a.issues)throw new uX(a.issues);return a.value}var pB=["get","post","put","patch","delete"],pX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,a){var o,n,r,s;const c=((n=(o=t.plugins)==null?void 0:o.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(Tr({},a),{method:u.method,output:u.output});return a?.disableValidation||(m=Ur(Tr({},m),{body:u.input?await vf(u.input,a?.body):a?.body,params:u.params?await vf(u.params,a?.params):a?.params,query:u.query?await vf(u.query,a?.query):a?.query})),{url:e,options:m}}}return{url:e,options:a}}}),mX=t=>{async function e(a,o){const n=Ur(Tr(Tr({},t),o),{plugins:[...t?.plugins||[],pX(t||{}),...o?.plugins||[]]});if(t?.catchAllError)try{return await N0(a,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(a,n)}return e};function hX(t,e){const{baseURL:a,params:o,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):a||"";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 b;if(typeof f=="string")b=f;else if(Array.isArray(f)){for(const y of f)d.append(h,y);continue}else b=JSON.stringify(f);d.set(h,b)}if(o)if(Array.isArray(o)){const h=s.split("/").filter(f=>f.startsWith(":"));for(const[f,b]of h.entries()){const y=o[f];s=s.replace(b,y)}}else for(const[h,f]of Object.entries(o))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 a,o,n,r,s,c,d,u;const{hooks:m,url:h,options:f}=await JJ(t,e),b=rX(f),y=new AbortController,T=(a=f.signal)!=null?a:y.signal,x=hX(h,f),w=lX(f),P=await iX(f),k=cX(h,f);let C=Ur(Tr({},f),{url:x,headers:P,body:w,method:k,signal:T});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((o=e?.body)==null?void 0:o.pipe)=="function")&&("duplex"in C||(C.duplex="half"));const{clearTimeout:_}=dX(f,y);let D=await b(C.url,C);_();const R={response:D,request:C};for(const F of m.onResponse)if(F){const W=await F(Ur(Tr({},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=oX(D),ae={data:null,response:D,request:C};if(W==="json"||W==="text"){const H=await D.text(),K=(r=C.jsonParser)!=null?r:rO;ae.data=await K(H)}else ae.data=await D[W]();C?.output&&C.output&&!C.disableValidation&&(ae.data=await vf(C.output,ae.data));for(const H of m.onSuccess)H&&await H(Ur(Tr({},ae),{response:(s=e?.hookOptions)!=null&&s.cloneResponse?D.clone():D}));return e?.throw?ae.data:{data:ae.data,error:null}}const O=(c=e?.jsonParser)!=null?c:rO,L=await D.text(),q=nX(L),B=q?await O(L):null,z={response:D,responseText:L,request:C,error:Ur(Tr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Tr({},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 ae=F.getDelay(W);return await new Promise(H=>setTimeout(H,ae)),await N0(t,Ur(Tr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new QJ(D.status,D.statusText,q?B:L);return{data:null,error:Ur(Tr({},B),{status:D.status,statusText:D.statusText})}};const gX=(t,e)=>{const a="credentials"in Request.prototype,o=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:o,...a?{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:b}=$J(h,t),y=t?.plugins||[];let T={};const x={$sessionSignal:f,session:b},w={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},P=[{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&&P.push(...C.atomListeners);const k={notify:C=>{x[C].set(!x[C].get())},listen:(C,_)=>{x[C].subscribe(_)},atoms:x};for(const C of y)C.getActions&&(T=HJ(C.getActions?.(h,k,t)??{},T));return{get baseURL(){return o},pluginsActions:T,pluginsAtoms:x,pluginPathMethods:w,atomListeners:P,$fetch:h,$store:k}};function fX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function bX(t,e,a){const o=e[t],{fetchOptions:n,query:r,...s}=a||{};return o||(n?.method?n.method:s&&Object.keys(s).length>0?"POST":"GET")}function vX(t,e,a,o,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(P=>P.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:b,fetchOptions:y,...T}=h,x={...f,...y},w=bX(m,a,h);return await e(m,{...x,body:w==="GET"?void 0:{...T,...x?.body||{}},query:b||x?.query,method:w,async onSuccess(P){if(await x?.onSuccess?.(P),!n||x.disableSignal)return;const k=n.filter(_=>_.matcher(m));if(!k.length)return;const C=new Set;for(const _ of k){const D=o[_.signal];if(!D)return;if(C.has(_.signal))continue;C.add(_.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function yX(t,e={}){const a=A.useRef(t.get()),{keys:o,deps:n=[t,o]}=e,r=A.useCallback(c=>{const d=u=>{a.current!==u&&(a.current=u,c())};return d(t.value),o?.length?IJ(t,o,d):t.listen(d)},n),s=()=>a.current;return A.useSyncExternalStore(r,s,s)}function TX(t){return`use${yJ(t)}`}function SX(t){const{pluginPathMethods:e,pluginsActions:a,pluginsAtoms:o,$fetch:n,$store:r,atomListeners:s}=gX(t),c={};for(const[d,u]of Object.entries(o))c[TX(d)]=()=>yX(u);return vX({...a,...c,$fetch:n,$store:r},n,e,o,s)}function wX(t){return{authorize(e,a="AND"){let o=!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))o=r.every(c=>s.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?o=c.actions.some(d=>s.includes(d)):o=c.actions.every(d=>s.includes(d))}else throw new Pp("Invalid access control request");if(o&&a==="OR")return{success:o};if(!o&&a==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return o?{success:o}:{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:[]}),PX={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(","),a=t.options?.roles||PX;for(const o of e)if(a[o]?.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:a=>CX({role:a.role,options:{ac:t?.ac,roles:e},permissions:a.permissions??a.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},kX=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),_X=()=>({id:"magic-link",$InferServerPlugin:{}}),AX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},WP=mB(AX),bB=WP.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),vB=WP.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),yB=WP.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),RX={admin:bB,owner:vB,member:yB},DX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const a=t.role.split(","),o=t.options.creatorRole||"owner",n=a.includes(o),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const s of a)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),a=hd(!1),o=hd(!1),n=hd(!1),r={admin:bB,member:yB,owner:vB,...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:a,$activeMemberSignal:o,$activeMemberRoleSignal:n,activeOrganization:mp([a],"/organization/get-full-organization",s,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([o],"/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 TB(t){return LX(t?.metadata).archived===!0}function SB(t){const e=new Set;return t.filter(a=>TB(a)||e.has(a.id)?!1:(e.add(a.id),!0))}const BX="Organization is archived",ro=SX({plugins:[MX({}),EX(),IX(),_X(),kX()]}),FX=8e3;let sO;function wB(){return sO??=new Promise(t=>{const e=setTimeout(t,FX);ro.$store.listen("session",a=>{a&&typeof a=="object"&&"isPending"in a&&(a.isPending||(clearTimeout(e),t()))})}),sO}const jX=Se({data:Se({user:Se({id:$()})}).nullish()});function zX(){const t=jX.safeParse(ro.$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=ro.organization.list().then(e=>{const a=e.data?{...e,data:SB(e.data)}:e;return a.data&&(hp={result:a,expiresAt:Date.now()+UX}),a}).finally(()=>{zg=null});return zg=t,t}function xwe(){const t=ro.useListOrganizations(),e=t.data?SB(t.data):void 0;return{...t,data:e}}function Pwe(){hp=null}const qX="modulepreload",$X=function(t){return"/"+t},lO={},Le=function(e,a,o){let n=Promise.resolve();if(a&&a.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(a.map(u=>{if(u=$X(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":qX,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((b,y)=>{f.addEventListener("load",b),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 a=localStorage.getItem(t),o=a?VX(a):void 0,n=typeof e=="function"?e(o):o??e;if(o===void 0||n!==o)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function HX(t,e){const a=ye.c(17),o=Wd();let n;a[0]!==t?(n=["localStorage",t],a[0]=t,a[1]=n):n=a[1];const r=n;let s,c;a[2]!==e||a[3]!==t?(s=()=>cO(t,e),c=()=>cO(t,e),a[2]=e,a[3]=t,a[4]=s,a[5]=c):(s=a[4],c=a[5]);let d;a[6]!==r||a[7]!==s||a[8]!==c?(d={queryKey:r,queryFn:s,initialData:c,staleTime:1/0,gcTime:1/0},a[6]=r,a[7]=s,a[8]=c,a[9]=d):d=a[9];const{data:u}=Hs(d);let m;a[10]!==t||a[11]!==o||a[12]!==r?(m=y=>{const T=o.getQueryData(r),x=typeof y=="function"?y(T):y;typeof localStorage<"u"&&localStorage.setItem(t,JSON.stringify(x)),o.setQueryData(r,x)},a[10]=t,a[11]=o,a[12]=r,a[13]=m):m=a[13];const h=m,f=u;let b;return a[14]!==h||a[15]!==f?(b=[f,h],a[14]=h,a[15]=f,a[16]=b):b=a[16],b}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}`},PB=["en","pt-BR"];function KP(){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:KP(),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 ov(){try{const t=JSON.parse(localStorage.getItem(Zs.preferences())??"{}");if(PB.includes(t.language))return t.language}catch{}return KP()}function KX(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const o of t.shownTaskBoardLanes)typeof o=="string"&&(e[o]=!0);const a=t.taskBoardLaneVisibility;if(a&&typeof a=="object"&&!Array.isArray(a))for(const[o,n]of Object.entries(a))typeof n=="boolean"&&(e[o]=n);return e}function nv(){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"),PB.includes(e.language)||(e.language=KP()),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 a=e instanceof Date?e.getTime():typeof e=="string"||typeof e=="number"?new Date(e).getTime():Number.NaN;return Number.isFinite(a)&&a>=QX}function kwe(){const t=ye.c(4),e=A.use(ZX),[a]=nv(),{data:o}=ro.useSession();let n;return t[0]!==e||t[1]!==a||t[2]!==o?.user?.createdAt?(n=e||JX(a.projectFirstNav,o?.user?.createdAt),t[0]=e,t[1]=a,t[2]=o?.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 b=m.let("missing");for(const y in u){const T=u[y];if(T.length===0)continue;const x=(0,o.propertyInData)(m,h,y,f.opts.ownProperties);d.setParams({property:y,depsCount:T.length,deps:T.join(", ")}),f.allErrors?m.if(x,()=>{for(const w of T)(0,o.checkReportMissingProp)(d,w)}):(m.if((0,e._)`${x} && (${(0,o.checkMissingProp)(d,T,b)})`),(0,o.reportMissingProp)(d,b),m.else())}}t.validatePropertyDeps=s;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:b}=d,y=m.name("valid");for(const T in u)(0,a.alwaysValidSchema)(b,u[T])||(m.if((0,o.propertyInData)(m,h,T,b.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:T},y);d.mergeValidEvaluated(x,y)},()=>m.var(y,!0)),d.ok(y))}t.validateSchemaDeps=c,t.default=n})(SS)),SS}var xg={},AD;function oQ(){if(AD)return xg;AD=1,Object.defineProperty(xg,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={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=o,xg}var Pg={},RD;function JL(){if(RD)return Pg;RD=1,Object.defineProperty(Pg,"__esModule",{value:!0});const t=Dr(),e=Tt(),a=Ys(),o=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:b,opts:y}=f;if(f.props=!0,y.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(f,d))return;const T=(0,t.allSchemaProperties)(u.properties),x=(0,t.allSchemaProperties)(u.patternProperties);w(),s.ok((0,e._)`${h} === ${a.default.errors}`);function w(){c.forIn("key",m,D=>{!T.length&&!x.length?C(D):c.if(P(D),()=>C(D))})}function P(D){let R;if(T.length>8){const O=(0,o.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else T.length?R=(0,e.or)(...T.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 k(D){c.code((0,e._)`delete ${m}[${D}]`)}function C(D){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){k(D);return}if(d===!1){s.setParams({additionalProperty:D}),s.error(),b||c.break();return}if(typeof d=="object"&&!(0,o.alwaysValidSchema)(f,d)){const R=c.name("valid");y.removeAdditional==="failing"?(_(D,R,!1),c.if((0,e.not)(R),()=>{s.reset(),k(D)})):(_(D,R),b||c.if((0,e.not)(R),()=>c.break()))}}function _(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:o.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(L,R)}}};return Pg.default=r,Pg}var Cg={},DD;function nQ(){if(DD)return Cg;DD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=ev(),e=Dr(),a=Ft(),o=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&&o.default.code(new t.KeywordCxt(m,o.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=a.mergeEvaluated.props(s,(0,a.toHash)(h),m.props));const f=h.filter(x=>!(0,a.alwaysValidSchema)(m,c[x]));if(f.length===0)return;const b=s.name("valid");for(const x of f)y(x)?T(x):(s.if((0,e.propertyInData)(s,u,x,m.opts.ownProperties)),T(x),m.allErrors||s.else().var(b,!0),s.endIf()),r.it.definedProperties.add(x),r.ok(b);function y(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function T(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},b)}}};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=Tt(),a=Ft(),o=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),b=f.filter(C=>(0,a.alwaysValidSchema)(m,c[C]));if(f.length===0||b.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&u.properties,T=s.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,o.evaluatedPropsToName)(s,m.props));const{props:x}=m;w();function w(){for(const C of f)y&&P(C),m.allErrors?k(C):(s.var(T,!0),k(C),s.if(T))}function P(C){for(const _ in y)new RegExp(C).test(_)&&(0,a.checkStrictMode)(m,`property ${_} matches pattern ${C} (use allowMatchingProperties)`)}function k(C){s.forIn("key",d,_=>{s.if((0,e._)`${(0,t.usePattern)(r,C)}.test(${_})`,()=>{const D=b.includes(C);D||r.subschema({keyword:"patternProperties",schemaProp:C,dataProp:_,dataPropType:o.Type.Str},T),m.opts.unevaluated&&x!==!0?s.assign((0,e._)`${x}[${_}]`,!0):!D&&!m.allErrors&&s.if((0,e.not)(T),()=>s.break())})})}}};return Eg.default=n,Eg}var kg={},MD;function iQ(){if(MD)return kg;MD=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Ft(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(a){const{gen:o,schema:n,it:r}=a;if((0,t.alwaysValidSchema)(r,n)){a.fail();return}const s=o.name("valid");a.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),a.failResult(s,()=>a.reset(),()=>a.error())},error:{message:"must NOT be valid"}};return kg.default=e,kg}var _g={},ND;function sQ(){if(ND)return _g;ND=1,Object.defineProperty(_g,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return _g.default=e,_g}var Ag={},ID;function lQ(){if(ID)return Ag;ID=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={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(b),n.result(m,()=>n.reset(),()=>n.error(!0));function b(){u.forEach((y,T)=>{let x;(0,e.alwaysValidSchema)(d,y)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:T,compositeRule:!0},f),T>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${T}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,T),x&&n.mergeEvaluated(x,t.Name)})})}}};return Ag.default=o,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(a){const{gen:o,schema:n,it:r}=a;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=o.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=a.subschema({keyword:"allOf",schemaProp:d},s);a.ok(s),a.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=Tt(),e=Ft(),o={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(b(),r.reset(),u&&m){const T=s.let("ifClause");r.setParams({ifClause:T}),s.if(f,y("then",T),y("else",T))}else u?s.if(f,y("then")):s.if((0,t.not)(f),y("else"));r.pass(h,()=>r.error(!0));function b(){const T=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(T)}function y(T,x){return()=>{const w=r.subschema({keyword:T},f);s.assign(h,f),r.mergeValidEvaluated(w,h),x?s.assign(x,(0,t._)`${T}`):r.setParams({ifClause:T})}}}};function n(r,s){const c=r.schema[s];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=o,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:a,parentSchema:o,it:n}){o.if===void 0&&(0,t.checkStrictMode)(n,`"${a}" 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(),a=QL(),o=eQ(),n=tQ(),r=aQ(),s=oQ(),c=JL(),d=nQ(),u=rQ(),m=iQ(),h=sQ(),f=lQ(),b=cQ(),y=dQ(),T=uQ();function x(w=!1){const P=[m.default,h.default,f.default,b.default,y.default,T.default,s.default,c.default,r.default,d.default,u.default];return w?P.push(e.default,o.default):P.push(t.default,a.default),P.push(n.default),P}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=Tt(),a={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,t._)`{format: ${o}}`},code(o,n){const{gen:r,data:s,$data:c,schema:d,schemaCode:u,it:m}=o,{opts:h,errSchemaPath:f,schemaEnv:b,self:y}=m;if(!h.validateFormats)return;c?T():x();function T(){const w=r.scopeValue("formats",{ref:y.formats,code:h.code.formats}),P=r.const("fDef",(0,t._)`${w}[${u}]`),k=r.let("fType"),C=r.let("format");r.if((0,t._)`typeof ${P} == "object" && !(${P} instanceof RegExp)`,()=>r.assign(k,(0,t._)`${P}.type || "string"`).assign(C,(0,t._)`${P}.validate`),()=>r.assign(k,(0,t._)`"string"`).assign(C,P)),o.fail$data((0,t.or)(_(),D()));function _(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${C}`}function D(){const R=b.$async?(0,t._)`(${P}.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 && ${k} === ${n} && !${O}`}}function x(){const w=y.formats[d];if(!w){_();return}if(w===!0)return;const[P,k,C]=D(w);P===n&&o.pass(R());function _(){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,q=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${q}.validate`]:["string",O,q]}function R(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!b.$async)throw new Error("async format in sync schema");return(0,t._)`await ${C}(${s})`}return typeof k=="function"?(0,t._)`${C}(${s})`:(0,t._)`${C}.test(${s})`}}}};return Ng.default=a,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 Tl={},qD;function gQ(){return qD||(qD=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.contentVocabulary=Tl.metadataVocabulary=void 0,Tl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Tl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Tl}var $D;function fQ(){if($D)return og;$D=1,Object.defineProperty(og,"__esModule",{value:!0});const t=zZ(),e=JZ(),a=pQ(),o=hQ(),n=gQ(),r=[t.default,e.default,(0,a.default)(),o.default,n.metadataVocabulary,n.contentVocabulary];return og.default=r,og}var Ig={},Yu={},VD;function bQ(){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 vQ(){if(HD)return Ig;HD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=Tt(),e=bQ(),a=UP(),o=tv(),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:b}=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(!b)throw new Error("discriminator: requires oneOf keyword");const T=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(T);function w(){const C=k();d.if(!1);for(const _ in C)d.elseIf((0,t._)`${x} === ${_}`),d.assign(T,P(C[_]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function P(C){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:C},_);return c.mergeEvaluated(D,t.Name),_}function k(){var C;const _={},D=O(h);let R=!0;for(let B=0;B<b.length;B++){let z=b[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=a.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof a.SchemaEnv&&(z=z.schema),z===void 0)throw new o.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 _;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function L(B,z){if(B.const)q(B.const,z);else if(B.enum)for(const F of B.enum)q(F,z);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function q(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${y}" values must be unique strings`);_[B]=z}}}};return Ig.default=s,Ig}const yQ="http://json-schema.org/draft-07/schema#",TQ="http://json-schema.org/draft-07/schema#",SQ="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"],PQ={$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:TQ,title:SQ,definitions:wQ,type:xQ,properties:PQ,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 a=BZ(),o=fQ(),n=vQ(),r=CQ,s=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends a.default{_addVocabularies(){super._addVocabularies(),o.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=ev();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=Tt();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=zP();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=tv();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},wS={},WD;function kQ(){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),b),"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:q,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:k,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,b),"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 a(B){return B%4===0&&(B%100!==0||B%400===0)}const o=/^(\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=o.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],ae=+z[3];return W>=1&&W<=12&&ae>=1&&ae<=(W===2&&a(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 ae=+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(ae<=23&&H<=59&&K<60)return!0;const G=H-N*ie,V=ae-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 ae=W.split(h);return ae.length===2&&r(ae[0])&&z(ae[1])}}function b(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),[ae,H]=z.split(h),K=s(F,ae);if(K!==void 0)return K||u(W,H)}const T=/\/|:/,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 T.test(B)&&x.test(B)}const P=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function k(B){return P.lastIndex=0,P.test(B)}const C=-2147483648,_=2**31-1;function D(B){return Number.isInteger(B)&&B<=_&&B>=C}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function q(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(wS)),wS}var xS={},KD;function _Q(){return KD||(KD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=EQ(),a=Tt(),o=a.operators,n={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,a.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,a._)`{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:b,self:y}=f;if(!b.validateFormats)return;const T=new e.KeywordCxt(f,y.RULES.all.format.definition,"format");T.$data?x():w();function x(){const k=d.scopeValue("formats",{ref:y.formats,code:b.code.formats}),C=d.const("fmt",(0,a._)`${k}[${T.schemaCode}]`);c.fail$data((0,a.or)((0,a._)`typeof ${C} != "object"`,(0,a._)`${C} instanceof RegExp`,(0,a._)`typeof ${C}.compare != "function"`,P(C)))}function w(){const k=T.schema,C=y.formats[k];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${h}": format "${k}" does not define "compare" function`);const _=d.scopeValue("formats",{key:k,ref:C,code:b.code.formats?(0,a._)`${b.code.formats}${(0,a.getProperty)(k)}`:void 0});c.fail$data(P(_))}function P(k){return(0,a._)`${k}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const s=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=s})(xS)),xS}var YD;function AQ(){return YD||(YD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const a=kQ(),o=_Q(),n=Tt(),r=new n.Name("fullFormats"),s=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,a.fullFormats,r),u;const[h,f]=m.mode==="fast"?[a.fastFormats,s]:[a.fullFormats,r],b=m.formats||a.formatNames;return d(u,b,h,f),m.keywords&&(0,o.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?a.fastFormats:a.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var b,y;(b=(y=u.opts.code).formats)!==null&&b!==void 0||(y.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const T of m)u.addFormat(T,h[T])}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},a){return t??e??a}let $P;$P=globalThis.crypto;async function OQ(t){return(await $P).getRandomValues(new Uint8Array(t))}async function MQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",a=Math.pow(2,8)-Math.pow(2,8)%e.length;let o="";for(;o.length<t;){const n=await OQ(t-o.length);for(const r of n)r<a&&(o+=e[r%e.length])}return o}async function NQ(t){return await MQ(t)}async function IQ(t){const e=await(await $P).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),a=await IQ(e);return{code_verifier:e,code_challenge:a}}const Co=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=Eo({resource:$().url(),authorization_servers:je(Co).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),LQ=Eo({issuer:$(),authorization_endpoint:Co,token_endpoint:Co,registration_endpoint:Co.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Co.optional(),revocation_endpoint:Co.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),BQ=Eo({issuer:$(),authorization_endpoint:Co,token_endpoint:Co,userinfo_endpoint:Co.optional(),jwks_uri:Co,registration_endpoint:Co.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).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:Co.optional(),op_tos_uri:Co.optional(),client_id_metadata_document_supported:Vt().optional()}),uwe=Se({...BQ.shape,...LQ.pick({code_challenge_methods_supported:!0}).shape}),pwe=Se({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:mL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),mwe=Se({error:$(),error_description:$().optional(),error_uri:$().optional()}),ZD=Co.optional().or(Ze("").transform(()=>{})),FQ=Se({redirect_uris:je(Co),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Co.optional(),logo_uri:ZD,scope:$().optional(),contacts:je($()).optional(),tos_uri:ZD,policy_uri:$().optional(),jwks_uri:Co.optional(),jwks:dW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),jQ=Se({client_id:$(),client_secret:$().optional(),client_id_issued_at:Rt().optional(),client_secret_expires_at:Rt().optional()}).strip(),hwe=FQ.merge(jQ);Se({error:$(),error_description:$().optional()}).strip();Se({token:$(),token_type_hint:$().optional()}).strip();class Oo extends Error{constructor(e,a){super(e),this.errorUri=a,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 Oo{}p0.errorCode="invalid_request";class m0 extends Oo{}m0.errorCode="invalid_client";class h0 extends Oo{}h0.errorCode="invalid_grant";class g0 extends Oo{}g0.errorCode="unauthorized_client";class f0 extends Oo{}f0.errorCode="unsupported_grant_type";class b0 extends Oo{}b0.errorCode="invalid_scope";class v0 extends Oo{}v0.errorCode="access_denied";class y0 extends Oo{}y0.errorCode="server_error";class T0 extends Oo{}T0.errorCode="temporarily_unavailable";class S0 extends Oo{}S0.errorCode="unsupported_response_type";class w0 extends Oo{}w0.errorCode="unsupported_token_type";class x0 extends Oo{}x0.errorCode="invalid_token";class P0 extends Oo{}P0.errorCode="method_not_allowed";class C0 extends Oo{}C0.errorCode="too_many_requests";class E0 extends Oo{}E0.errorCode="invalid_client_metadata";class k0 extends Oo{}k0.errorCode="insufficient_scope";class _0 extends Oo{}_0.errorCode="invalid_target";const gwe={[p0.errorCode]:p0,[m0.errorCode]:m0,[h0.errorCode]:h0,[g0.errorCode]:g0,[f0.errorCode]:f0,[b0.errorCode]:b0,[v0.errorCode]:v0,[y0.errorCode]:y0,[T0.errorCode]:T0,[S0.errorCode]:S0,[w0.errorCode]:w0,[x0.errorCode]:x0,[P0.errorCode]:P0,[C0.errorCode]:C0,[E0.errorCode]:E0,[k0.errorCode]:k0,[_0.errorCode]:_0};async function XL(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(a){if(a instanceof Qb&&a.code===Up.MethodNotFound)return{resources:[]};throw a}}async function zQ(t,e){return await t.readResource({uri:e})}function fwe(t){const e=ye.c(12);let a,o;e[0]!==t?({client:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=eo.mcpResourcesList(a),e[3]=a,e[4]=n):n=e[4];let r;e[5]!==a?(r=()=>XL(a),e[5]=a,e[6]=r):r=e[6];const s=o.staleTime??3e4;let c;return e[7]!==o||e[8]!==n||e[9]!==r||e[10]!==s?(c={...o,queryKey:n,queryFn:r,staleTime:s,retry:!1},e[7]=o,e[8]=n,e[9]=r,e[10]=s,e[11]=c):c=e[11],Gs(c)}function bwe(t){const e=ye.c(12);let a,o;e[0]!==t?({client:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=eo.mcpResourcesList(a),e[3]=a,e[4]=n):n=e[4];let r;e[5]!==a?(r=()=>XL(a),e[5]=a,e[6]=r):r=e[6];const s=o.staleTime??3e4;let c;return e[7]!==o||e[8]!==n||e[9]!==r||e[10]!==s?(c={...o,queryKey:n,queryFn:r,staleTime:s,retry:!1},e[7]=o,e[8]=n,e[9]=r,e[10]=s,e[11]=c):c=e[11],Hs(c)}function vwe(t){const e=ye.c(15);let a,o,n;e[0]!==t?({client:a,uri:n,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);let r;e[4]!==a||e[5]!==n?(r=eo.mcpReadResource(a,n),e[4]=a,e[5]=n,e[6]=r):r=e[6];let s;e[7]!==a||e[8]!==n?(s=()=>zQ(a,n),e[7]=a,e[8]=n,e[9]=s):s=e[9];const c=o.staleTime??3e4;let d;return e[10]!==o||e[11]!==r||e[12]!==s||e[13]!==c?(d={...o,queryKey:r,queryFn:s,staleTime:c,retry:!1},e[10]=o,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 a,o,n,r,s,c;e[0]!==t?({orgSlug:n,connectionId:a,uri:c,studioUrl:s,meshUrl:o,...r}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r,e[5]=s,e[6]=c):(a=e[1],o=e[2],n=e[3],r=e[4],s=e[5],c=e[6]);let d;e[7]!==a||e[8]!==n||e[9]!==c?(d=eo.mcpUiResourceHtml(n,a,c),e[7]=a,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==a||e[12]!==o||e[13]!==n||e[14]!==s||e[15]!==c?(u=async()=>{const b=`${DQ({studioUrl:s,meshUrl:o},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(a)}/ui-resource?uri=${encodeURIComponent(c)}`,y=await fetch(b,{credentials:"include"});if(!y.ok)throw new Error(`Failed to read UI resource (${y.status})`);return y.text()},e[11]=a,e[12]=o,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,a,o){super(e),this.status=a,this.code=o,this.name="StudioToolError"}status;code}function aB(t){return t instanceof A0&&Object.values(tB).includes(t.code??"")?t.code:null}async function UQ(t,e,a){const o=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a??{})});if(!o.ok){let n=`${e} failed (${o.status})`,r;try{const s=await o.json();s?.error&&(n=s.error),typeof s?.code=="string"&&(r=s.code)}catch{}throw new A0(n,o.status,r)}try{return await o.json()}catch{throw new A0(`${e} returned a non-JSON response`,o.status)}}function VP(){const t=ye.c(5),{org:e}=Ks(),a=e.slug;let o;t[0]!==a?(o=(r,s)=>UQ(a,r,s),t[0]=a,t[1]=o):o=t[1];let n;return t[2]!==a||t[3]!==o?(n={orgSlug:a,call:o},t[2]=a,t[3]=o,t[4]=n):n=t[4],n}function qQ(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 $Q="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 av(){return new Promise((t,e)=>{const a=indexedDB.open($Q,1);a.onupgradeneeded=()=>{a.result.objectStoreNames.contains(Yf)||a.result.createObjectStore(Yf)},a.onsuccess=()=>t(a.result),a.onerror=()=>e(a.error)})}function Ld(t,e){return t.transaction(Yf,e).objectStore(Yf)}function R0(t){return new Promise((e,a)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>a(t.error)})}async function KQ(t){if(!(typeof indexedDB>"u"))try{const e=await av(),a=Ld(e,"readonly"),o=await R0(a.getAllKeys()),n=await R0(a.getAll()),r=Date.now(),s=o.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=av().catch(()=>null);return t.getQueryCache().subscribe(a=>{const o=a.query;if(!Array.isArray(o.queryKey)||!WQ(o.queryKey)||o.state.status!=="success")return;const n=o.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(o.queryKey))}catch{}})})}function ZQ(){typeof indexedDB>"u"||av().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function Twe(t){if(!(typeof indexedDB>"u"))try{const e=await av(),a=await R0(Ld(e,"readonly").getAllKeys()),o=Ld(e,"readwrite");for(const n of a)try{const r=JSON.parse(String(n));r[1]===eB&&r[3]===t&&o.delete(n)}catch{}}catch{}}const Zf="studio:rq-cache",HP=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 oB=!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 a=JSON.parse(e),o=!a.timestamp||Date.now()-a.timestamp>HP;if(a.buster!=="4.537.1"||o||!a.state){window.localStorage.removeItem(Zf);return}SV(t,a.state),t.invalidateQueries({queryKey:eo.publicConfig(),refetchType:"none"}),oB=!0}catch{sJ()}}function aJ(t){if(typeof window>"u")return()=>{};let e=null;const a=()=>{e=null;try{const r=TV(t,{shouldDehydrateQuery:s=>s.state.status==="success"&&eJ(s.queryKey)});window.localStorage.setItem(Zf,JSON.stringify({buster:"4.537.1",timestamp:Date.now(),state:r}))}catch{}},o=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(a,QQ))}),n=()=>{e!=null&&(clearTimeout(e),a())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),o()}}const rB="studio:org-cache:",oJ=20;function nJ(t){const e=Date.now(),a=Object.entries(t).filter(([,o])=>e-o.updatedAt<=HP);for(a.sort(([,o],[,n])=>o.updatedAt-n.updatedAt);a.length>oJ;)a.shift();return Object.fromEntries(a)}function iB(t){return`${rB}${t}`}function rJ(t,e){if(typeof window>"u")return null;try{const a=window.localStorage.getItem(iB(t));if(!a)return null;const o=JSON.parse(a)[e];return!o||Date.now()-o.updatedAt>HP?null:(nB=!0,o)}catch{return null}}function iJ(t,e,a){if(!(typeof window>"u"))try{const o=iB(t),n=window.localStorage.getItem(o),r=n?JSON.parse(n):{};r[e]={data:a,updatedAt:Date.now()},window.localStorage.setItem(o,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 oB}function cJ(){return nB}function QD(t){const e=aB(t);if(!e)return;const a=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(a,{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)=>aB(e)===null&&t<1,gcTime:300*1e3}}});qQ(Zl);tJ(Zl);aJ(Zl);KQ(Zl);YQ(Zl);const GP=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:eo.publicConfig(),queryFn:sB,staleTime:GP},t[0]=e):e=t[0];const{data:a}=Gs(e);return a}function Swe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:eo.publicConfig(),queryFn:sB,staleTime:GP},t[0]=e):e=t[0],Hs(e).data}const cB=A.createContext(void 0);function dJ(t){const e=ye.c(3),{children:a}=t,o=lB();let n;return e[0]!==a||e[1]!==o.auth?(n=v.jsx(cB.Provider,{value:o.auth,children:a}),e[0]=a,e[1]=o.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 bf=Object.create(null),Zu=t=>uJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?bf:globalThis),Xn=new Proxy(bf,{get(t,e){return Zu()[e]??bf[e]},has(t,e){return e in Zu()||e in bf},set(t,e,a){const o=Zu(!0);return o[e]=a,!0},deleteProperty(t,e){if(!e)return!1;const a=Zu(!0);return delete a[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Ka(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,mo=4,Vr=8,Mn=24,XD={eterm:mo,cons25:mo,console:mo,cygwin:mo,dtterm:mo,gnome:mo,hurd:mo,jfbterm:mo,konsole:mo,kterm:mo,mlterm:mo,mosh:Mn,putty:mo,st:mo,"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(Ka("FORCE_COLOR")!==void 0)switch(Ka("FORCE_COLOR")){case"":case"1":case"true":return mo;case"2":return Vr;case"3":return Mn;default:return Qu}if(Ka("NODE_DISABLE_COLORS")!==void 0&&Ka("NODE_DISABLE_COLORS")!==""||Ka("NO_COLOR")!==void 0&&Ka("NO_COLOR")!==""||Ka("TERM")==="dumb")return Qu;if(Ka("TMUX"))return Mn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return mo;if("CI"in Xn){for(const{0:t,1:e}of pJ)if(t in Xn)return e;return Ka("CI_NAME")==="codeship"?Vr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Ka("TEAMCITY_VERSION"))!==null?mo:Qu;switch(Ka("TERM_PROGRAM")){case"iTerm.app":return!Ka("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Ka("TERM_PROGRAM_VERSION"))!==null?Vr:Mn;case"HyperTerm":case"MacTerm":return Mn;case"Apple_Terminal":return Vr}if(Ka("COLORTERM")==="truecolor"||Ka("COLORTERM")==="24bit")return Mn;if(Ka("TERM")){if(/truecolor/.exec(Ka("TERM"))!==null)return Mn;if(/^xterm-256/.exec(Ka("TERM"))!==null)return Vr;const t=Ka("TERM").toLowerCase();if(XD[t])return XD[t];if(mJ.some(e=>e.exec(t)!==null))return mo}return Ka("COLORTERM")?mo: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},bJ=(t,e,a)=>{const o=new Date().toISOString();return a?`${Hr.dim}${o}${Hr.reset} ${fJ[t]}${t.toUpperCase()}${Hr.reset} ${Hr.bright}[Better Auth]:${Hr.reset} ${e}`:`${o} ${t.toUpperCase()} [Better Auth]: ${e}`},vJ=t=>{const e="warn",a=hJ()!==1,o=(n,r,s=[])=>{if(!gJ(e,n))return;const c=bJ(n,r,a);{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])=>o(n,r,s)])),get level(){return e}}};vJ();function yJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Pp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function TJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Pp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function SJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Pp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof Pp?e:new Pp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function PS(t,e="/api/auth"){if(SJ(t),TJ(t))return t;const a=t.replace(/\/+$/,"");return!e||e==="/"?a:(e=e.startsWith("/")?e:`/${e}`,`${a}${e}`)}function wJ(t,e,a,o,n){if(t)return PS(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 PS(r,e)}if(typeof window<"u"&&window.location)return PS(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{}}}},PJ={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 kJ(t){return t instanceof Date&&!isNaN(t.getTime())}function _J(t){const e=EJ.exec(t);if(!e)return null;const[,a,o,n,r,s,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(a,10),parseInt(o,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 b=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+b)}return kJ(f)?f:null}function AJ(t,e={}){const{strict:a=!1,warnings:o=!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(a)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(PJ).some(([d,u])=>{const m=u.test(s);return m&&o&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&a)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){o&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=_J(m);if(h)return h}return n?n(u,m):m})}catch(d){if(a)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=[],a={get(){return a.lc||a.listen(()=>{})(),a.value},init:t,lc:0,listen(o){return a.lc=e.push(o),()=>{for(let r=gs+Bg;r<fr.length;)fr[r]===o?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(o);~n&&(e.splice(n,1),--a.lc||a.off())}},notify(o,n){DJ.epoch++;let r=!fr.length;for(let s of e)fr.push(s,a.value,o,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(o){let n=a.value;n!==o&&(a.value=o,a.notify(n))},subscribe(o){let n=a.listen(o);return o(a.value),n},value:t};return a},OJ=5,Fg=6,jg=10;let MJ=(t,e,a,o)=>(t.events=t.events||{},t.events[a+jg]||(t.events[a+jg]=o(n=>{t.events[a].reduceRight((r,s)=>(s(r),r),{shared:{},...n})})),t.events[a]=t.events[a]||[],t.events[a].push(e),()=>{let n=t.events[a],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[a],t.events[a+jg](),delete t.events[a+jg])});const NJ=1e3;let dB=(t,e)=>MJ(t,o=>{let n=e(o);n&&t.events[Fg].push(n)},OJ,o=>{let n=t.listen;t.listen=(...s)=>(!t.lc&&!t.active&&(t.active=!0,o()),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,a){let o=new Set(e).add(void 0);return t.listen((n,r,s)=>{o.has(s)&&a(n,r,s)})}const LJ=()=>typeof window>"u",mp=(t,e,a,o)=>{const n=hd({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof o=="function"?o({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):o;a(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,b=h.retryAttempt||0;f&&b<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},CS=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 a=JSON.parse(e.newValue??"{}");a?.event!=="session"||!a?.data||this.listeners.forEach(o=>o(a))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function ES(t="better-auth.message"){return globalThis[CS]||(globalThis[CS]=new FJ(t)),globalThis[CS]}const kS=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[kS]||(globalThis[kS]=new jJ),globalThis[kS]}const _S=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 AS(){return globalThis[_S]||(globalThis[_S]=new zJ),globalThis[_S]}const Hc=()=>Math.floor(Date.now()/1e3),UJ=5;function qJ(t){const{sessionAtom:e,sessionSignal:a,$fetch:o,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||AS().isOnline,m=P=>{if(!u())return;if(P?.event==="storage"){d.lastSync=Hc(),a.set(!a.get());return}const k=e.get();if(P?.event==="poll"){d.lastSessionRequest=Hc(),o("/get-session").then(C=>{C.error?e.set({...k,data:null,error:C.error}):e.set({...k,data:C.data,error:null}),d.lastSync=Hc(),a.set(!a.get())}).catch(()=>{});return}if(P?.event==="visibilitychange"){if(Hc()-d.lastSessionRequest<UJ)return;d.lastSessionRequest=Hc()}(k?.data===null||k?.data===void 0||P?.event==="visibilitychange")&&(d.lastSync=Hc(),a.set(!a.get()))},h=P=>{ES().post({event:"session",data:{trigger:P},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},b=()=>{d.unsubscribeBroadcast=ES().subscribe(()=>{m({event:"storage"})})},y=()=>{s&&(d.unsubscribeFocus=tO().subscribe(()=>{m({event:"visibilitychange"})}))},T=()=>{d.unsubscribeOnline=AS().subscribe(P=>{P&&m({event:"visibilitychange"})})};return{init:()=>{f(),b(),y(),T(),ES().setup(),tO().setup(),AS().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 $J(t,e){const a=hd(!1),o=mp(a,"/get-session",t,{method:"GET"});return dB(o,()=>{const n=qJ({sessionAtom:o,sessionSignal:a,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:o,$sessionSignal:a}}function RS(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,a=".",o){if(!RS(e))return O0(t,{},a,o);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const s=t[r];s!=null&&(o&&o(n,r,s,a)||(Array.isArray(s)&&Array.isArray(n[r])?n[r]=[...s,...n[r]]:RS(s)&&RS(n[r])?n[r]=O0(s,n[r],(a?`${a}.`:"")+r.toString(),o):n[r]=s))}return n}function VJ(t){return(...e)=>e.reduce((a,o)=>O0(a,o,"",t),{})}const HJ=VJ();var GJ=Object.defineProperty,WJ=Object.defineProperties,KJ=Object.getOwnPropertyDescriptors,aO=Object.getOwnPropertySymbols,YJ=Object.prototype.hasOwnProperty,ZJ=Object.prototype.propertyIsEnumerable,oO=(t,e,a)=>e in t?GJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,Tr=(t,e)=>{for(var a in e||(e={}))YJ.call(e,a)&&oO(t,a,e[a]);if(aO)for(var a of aO(e))ZJ.call(e,a)&&oO(t,a,e[a]);return t},Ur=(t,e)=>WJ(t,KJ(e)),QJ=class extends Error{constructor(t,e,a){super(e||t.toString(),{cause:a}),this.status=t,this.statusText=e,this.error=a,Error.captureStackTrace(this,this.constructor)}},JJ=async(t,e)=>{var a,o,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((a=m.init)==null?void 0:a.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((o=m.hooks)==null?void 0:o.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={},a=async o=>typeof o=="function"?await o():o;if(t?.auth){if(t.auth.type==="Bearer"){const o=await a(t.auth.token);if(!o)return e;e.authorization=`Bearer ${o}`}else if(t.auth.type==="Basic"){const[o,n]=await Promise.all([a(t.auth.username),a(t.auth.password)]);if(!o||!n)return e;e.authorization=`Basic ${btoa(`${o}:${n}`)}`}else if(t.auth.type==="Custom"){const[o,n]=await Promise.all([a(t.auth.prefix),a(t.auth.value)]);if(!n)return e;e.authorization=`${o??""} ${n}`}}return e},aX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function oX(t){const e=t.headers.get("content-type"),a=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const o=e.split(";").shift()||"";return aX.test(o)?"json":a.has(o)||o.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),a=await tX(t);for(const[o,n]of Object.entries(a||{}))e.set(o,n);if(!e.has("content-type")){const o=sX(t?.body);o&&e.set("content-type",o)}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[a,o]of Object.entries(t?.body))o instanceof Date&&(t.body[a]=o.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 a;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const o=(a=t.split("@")[1])==null?void 0:a.split("/")[0];return pB.includes(o)?o.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function dX(t,e){let a;return!t?.signal&&t?.timeout&&(a=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:a,clearTimeout:()=>{a&&clearTimeout(a)}}}var uX=class uB extends Error{constructor(e,a){super(a||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,uB.prototype)}};async function vf(t,e){const a=await t["~standard"].validate(e);if(a.issues)throw new uX(a.issues);return a.value}var pB=["get","post","put","patch","delete"],pX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,a){var o,n,r,s;const c=((n=(o=t.plugins)==null?void 0:o.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(Tr({},a),{method:u.method,output:u.output});return a?.disableValidation||(m=Ur(Tr({},m),{body:u.input?await vf(u.input,a?.body):a?.body,params:u.params?await vf(u.params,a?.params):a?.params,query:u.query?await vf(u.query,a?.query):a?.query})),{url:e,options:m}}}return{url:e,options:a}}}),mX=t=>{async function e(a,o){const n=Ur(Tr(Tr({},t),o),{plugins:[...t?.plugins||[],pX(t||{}),...o?.plugins||[]]});if(t?.catchAllError)try{return await N0(a,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(a,n)}return e};function hX(t,e){const{baseURL:a,params:o,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):a||"";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 b;if(typeof f=="string")b=f;else if(Array.isArray(f)){for(const y of f)d.append(h,y);continue}else b=JSON.stringify(f);d.set(h,b)}if(o)if(Array.isArray(o)){const h=s.split("/").filter(f=>f.startsWith(":"));for(const[f,b]of h.entries()){const y=o[f];s=s.replace(b,y)}}else for(const[h,f]of Object.entries(o))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 a,o,n,r,s,c,d,u;const{hooks:m,url:h,options:f}=await JJ(t,e),b=rX(f),y=new AbortController,T=(a=f.signal)!=null?a:y.signal,x=hX(h,f),w=lX(f),P=await iX(f),k=cX(h,f);let C=Ur(Tr({},f),{url:x,headers:P,body:w,method:k,signal:T});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((o=e?.body)==null?void 0:o.pipe)=="function")&&("duplex"in C||(C.duplex="half"));const{clearTimeout:_}=dX(f,y);let D=await b(C.url,C);_();const R={response:D,request:C};for(const F of m.onResponse)if(F){const W=await F(Ur(Tr({},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=oX(D),ae={data:null,response:D,request:C};if(W==="json"||W==="text"){const H=await D.text(),K=(r=C.jsonParser)!=null?r:rO;ae.data=await K(H)}else ae.data=await D[W]();C?.output&&C.output&&!C.disableValidation&&(ae.data=await vf(C.output,ae.data));for(const H of m.onSuccess)H&&await H(Ur(Tr({},ae),{response:(s=e?.hookOptions)!=null&&s.cloneResponse?D.clone():D}));return e?.throw?ae.data:{data:ae.data,error:null}}const O=(c=e?.jsonParser)!=null?c:rO,L=await D.text(),q=nX(L),B=q?await O(L):null,z={response:D,responseText:L,request:C,error:Ur(Tr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Tr({},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 ae=F.getDelay(W);return await new Promise(H=>setTimeout(H,ae)),await N0(t,Ur(Tr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new QJ(D.status,D.statusText,q?B:L);return{data:null,error:Ur(Tr({},B),{status:D.status,statusText:D.statusText})}};const gX=(t,e)=>{const a="credentials"in Request.prototype,o=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:o,...a?{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:b}=$J(h,t),y=t?.plugins||[];let T={};const x={$sessionSignal:f,session:b},w={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},P=[{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&&P.push(...C.atomListeners);const k={notify:C=>{x[C].set(!x[C].get())},listen:(C,_)=>{x[C].subscribe(_)},atoms:x};for(const C of y)C.getActions&&(T=HJ(C.getActions?.(h,k,t)??{},T));return{get baseURL(){return o},pluginsActions:T,pluginsAtoms:x,pluginPathMethods:w,atomListeners:P,$fetch:h,$store:k}};function fX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function bX(t,e,a){const o=e[t],{fetchOptions:n,query:r,...s}=a||{};return o||(n?.method?n.method:s&&Object.keys(s).length>0?"POST":"GET")}function vX(t,e,a,o,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(P=>P.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:b,fetchOptions:y,...T}=h,x={...f,...y},w=bX(m,a,h);return await e(m,{...x,body:w==="GET"?void 0:{...T,...x?.body||{}},query:b||x?.query,method:w,async onSuccess(P){if(await x?.onSuccess?.(P),!n||x.disableSignal)return;const k=n.filter(_=>_.matcher(m));if(!k.length)return;const C=new Set;for(const _ of k){const D=o[_.signal];if(!D)return;if(C.has(_.signal))continue;C.add(_.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function yX(t,e={}){const a=A.useRef(t.get()),{keys:o,deps:n=[t,o]}=e,r=A.useCallback(c=>{const d=u=>{a.current!==u&&(a.current=u,c())};return d(t.value),o?.length?IJ(t,o,d):t.listen(d)},n),s=()=>a.current;return A.useSyncExternalStore(r,s,s)}function TX(t){return`use${yJ(t)}`}function SX(t){const{pluginPathMethods:e,pluginsActions:a,pluginsAtoms:o,$fetch:n,$store:r,atomListeners:s}=gX(t),c={};for(const[d,u]of Object.entries(o))c[TX(d)]=()=>yX(u);return vX({...a,...c,$fetch:n,$store:r},n,e,o,s)}function wX(t){return{authorize(e,a="AND"){let o=!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))o=r.every(c=>s.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?o=c.actions.some(d=>s.includes(d)):o=c.actions.every(d=>s.includes(d))}else throw new Pp("Invalid access control request");if(o&&a==="OR")return{success:o};if(!o&&a==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return o?{success:o}:{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:[]}),PX={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(","),a=t.options?.roles||PX;for(const o of e)if(a[o]?.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:a=>CX({role:a.role,options:{ac:t?.ac,roles:e},permissions:a.permissions??a.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},kX=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),_X=()=>({id:"magic-link",$InferServerPlugin:{}}),AX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},WP=mB(AX),bB=WP.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),vB=WP.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),yB=WP.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),RX={admin:bB,owner:vB,member:yB},DX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const a=t.role.split(","),o=t.options.creatorRole||"owner",n=a.includes(o),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const s of a)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),a=hd(!1),o=hd(!1),n=hd(!1),r={admin:bB,member:yB,owner:vB,...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:a,$activeMemberSignal:o,$activeMemberRoleSignal:n,activeOrganization:mp([a],"/organization/get-full-organization",s,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([o],"/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 TB(t){return LX(t?.metadata).archived===!0}function SB(t){const e=new Set;return t.filter(a=>TB(a)||e.has(a.id)?!1:(e.add(a.id),!0))}const BX="Organization is archived",ro=SX({plugins:[MX({}),EX(),IX(),_X(),kX()]}),FX=8e3;let sO;function wB(){return sO??=new Promise(t=>{const e=setTimeout(t,FX);ro.$store.listen("session",a=>{a&&typeof a=="object"&&"isPending"in a&&(a.isPending||(clearTimeout(e),t()))})}),sO}const jX=Se({data:Se({user:Se({id:$()})}).nullish()});function zX(){const t=jX.safeParse(ro.$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=ro.organization.list().then(e=>{const a=e.data?{...e,data:SB(e.data)}:e;return a.data&&(hp={result:a,expiresAt:Date.now()+UX}),a}).finally(()=>{zg=null});return zg=t,t}function xwe(){const t=ro.useListOrganizations(),e=t.data?SB(t.data):void 0;return{...t,data:e}}function Pwe(){hp=null}const qX="modulepreload",$X=function(t){return"/"+t},lO={},Le=function(e,a,o){let n=Promise.resolve();if(a&&a.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(a.map(u=>{if(u=$X(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":qX,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((b,y)=>{f.addEventListener("load",b),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 a=localStorage.getItem(t),o=a?VX(a):void 0,n=typeof e=="function"?e(o):o??e;if(o===void 0||n!==o)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function HX(t,e){const a=ye.c(17),o=Wd();let n;a[0]!==t?(n=["localStorage",t],a[0]=t,a[1]=n):n=a[1];const r=n;let s,c;a[2]!==e||a[3]!==t?(s=()=>cO(t,e),c=()=>cO(t,e),a[2]=e,a[3]=t,a[4]=s,a[5]=c):(s=a[4],c=a[5]);let d;a[6]!==r||a[7]!==s||a[8]!==c?(d={queryKey:r,queryFn:s,initialData:c,staleTime:1/0,gcTime:1/0},a[6]=r,a[7]=s,a[8]=c,a[9]=d):d=a[9];const{data:u}=Hs(d);let m;a[10]!==t||a[11]!==o||a[12]!==r?(m=y=>{const T=o.getQueryData(r),x=typeof y=="function"?y(T):y;typeof localStorage<"u"&&localStorage.setItem(t,JSON.stringify(x)),o.setQueryData(r,x)},a[10]=t,a[11]=o,a[12]=r,a[13]=m):m=a[13];const h=m,f=u;let b;return a[14]!==h||a[15]!==f?(b=[f,h],a[14]=h,a[15]=f,a[16]=b):b=a[16],b}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}`},PB=["en","pt-BR"];function KP(){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:KP(),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 ov(){try{const t=JSON.parse(localStorage.getItem(Zs.preferences())??"{}");if(PB.includes(t.language))return t.language}catch{}return KP()}function KX(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const o of t.shownTaskBoardLanes)typeof o=="string"&&(e[o]=!0);const a=t.taskBoardLaneVisibility;if(a&&typeof a=="object"&&!Array.isArray(a))for(const[o,n]of Object.entries(a))typeof n=="boolean"&&(e[o]=n);return e}function nv(){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"),PB.includes(e.language)||(e.language=KP()),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 a=e instanceof Date?e.getTime():typeof e=="string"||typeof e=="number"?new Date(e).getTime():Number.NaN;return Number.isFinite(a)&&a>=QX}function kwe(){const t=ye.c(4),e=A.use(ZX),[a]=nv(),{data:o}=ro.useSession();let n;return t[0]!==e||t[1]!==a||t[2]!==o?.user?.createdAt?(n=e||JX(a.projectFirstNav,o?.user?.createdAt),t[0]=e,t[1]=a,t[2]=o?.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([]),a=A.useRef([0,0]),o=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 T=sre([t.lockRef.current],(t.shards||[]).map(VO),!0).filter(Boolean);return T.forEach(function(x){return x.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),T.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var c=A.useCallback(function(T,x){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!s.current.allowPinchZoom;var w=Kg(T),P=a.current,k="deltaX"in T?T.deltaX:P[0]-w[0],C="deltaY"in T?T.deltaY:P[1]-w[1],_,D=T.target,R=Math.abs(k)>Math.abs(C)?"h":"v";if("touches"in T&&R==="h"&&D.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,q=L?L===D||L.contains(D):!1;if(q)return!1;var B=qO(R,D);if(!B)return!0;if(B?_=R:(_=R==="v"?"h":"v",B=qO(R,D)),!B)return!1;if(!o.current&&"changedTouches"in T&&(k||C)&&(o.current=_),!_)return!0;var z=o.current||_;return Lre(z,x,T,z==="h"?k:C)},[]),d=A.useCallback(function(T){var x=T;if(!(!Yc.length||Yc[Yc.length-1]!==r)){var w="deltaY"in x?$O(x):Kg(x),P=e.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&Bre(_.delta,w)})[0];if(P&&P.should){x.cancelable&&x.preventDefault();return}if(!P){var k=(s.current.shards||[]).map(VO).filter(Boolean).filter(function(_){return _.contains(x.target)}),C=k.length>0?c(x,k[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=A.useCallback(function(T,x,w,P){var k={name:T,delta:x,target:w,should:P,shadowParent:Ure(w)};e.current.push(k),setTimeout(function(){e.current=e.current.filter(function(C){return C!==k})},1)},[]),m=A.useCallback(function(T){a.current=Kg(T),o.current=void 0},[]),h=A.useCallback(function(T){u(T.type,$O(T),T.target,c(T,t.lockRef.current))},[]),f=A.useCallback(function(T){u(T.type,Kg(T),T.target,c(T,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(T){return T!==r}),document.removeEventListener("wheel",d,Kc),document.removeEventListener("touchmove",d,Kc),document.removeEventListener("touchstart",m,Kc)}},[]);var b=t.removeScrollBar,y=t.inert;return A.createElement(A.Fragment,null,y?A.createElement(r,{styles:Fre(n)}):null,b?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 qre=fre(jF,zre);var uC=A.forwardRef(function(t,e){return A.createElement(dv,Gr({},t,{ref:e,sideCar:qre}))});uC.classNames=dv.classNames;var U0=["Enter"," "],$re=["ArrowDown","PageUp","Home"],VF=["ArrowUp","PageDown","End"],Vre=[...$re,...VF],Hre={ltr:[...U0,"ArrowRight"],rtl:[...U0,"ArrowLeft"]},Gre={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vm="Menu",[Hp,Wre,Kre]=QB(vm),[Xl,HF]=Js(vm,[Kre,yF,RF]),ym=yF(),GF=RF(),[WF,Xs]=Xl(vm),[Yre,Tm]=Xl(vm),KF=t=>{const{__scopeMenu:e,open:a=!1,children:o,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 b=()=>{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",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),v.jsx(_F,{...c,children:v.jsx(WF,{scope:e,open:a,onOpenChange:h,content:d,onContentChange:u,children:v.jsx(Yre,{scope:e,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:s,children:o})})})};KF.displayName=vm;var Zre="MenuAnchor",pC=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t,n=ym(a);return v.jsx(jne,{...n,...o,ref:e})});pC.displayName=Zre;var mC="MenuPortal",[Qre,YF]=Xl(mC,{forceMount:void 0}),ZF=t=>{const{__scopeMenu:e,forceMount:a,children:o,container:n}=t,r=Xs(mC,e);return v.jsx(Qre,{scope:e,forceMount:a,children:v.jsx(Fi,{present:a||r.open,children:v.jsx(dC,{asChild:!0,container:n,children:o})})})};ZF.displayName=mC;var nr="MenuContent",[Jre,hC]=Xl(nr),QF=A.forwardRef((t,e)=>{const a=YF(nr,t.__scopeMenu),{forceMount:o=a.forceMount,...n}=t,r=Xs(nr,t.__scopeMenu),s=Tm(nr,t.__scopeMenu);return v.jsx(Hp.Provider,{scope:t.__scopeMenu,children:v.jsx(Fi,{present:o||r.open,children:v.jsx(Hp.Slot,{scope:t.__scopeMenu,children:s.modal?v.jsx(Xre,{...n,ref:e}):v.jsx(eie,{...n,ref:e})})})})}),Xre=A.forwardRef((t,e)=>{const a=Xs(nr,t.__scopeMenu),o=A.useRef(null),n=Ua(e,o);return A.useEffect(()=>{const r=o.current;if(r)return LF(r)},[]),v.jsx(gC,{...t,ref:n,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:mt(t.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),eie=A.forwardRef((t,e)=>{const a=Xs(nr,t.__scopeMenu);return v.jsx(gC,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),tie=$p("MenuContent.ScrollLock"),gC=A.forwardRef((t,e)=>{const{__scopeMenu:a,loop:o=!1,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:b,disableOutsideScroll:y,...T}=t,x=Xs(nr,a),w=Tm(nr,a),P=ym(a),k=GF(a),C=Wre(a),[_,D]=A.useState(null),R=A.useRef(null),O=Ua(e,R,x.onContentChange),L=A.useRef(0),q=A.useRef(""),B=A.useRef(0),z=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),ae=y?uC:A.Fragment,H=y?{as:tie,allowPinchZoom:!0}:void 0,K=ie=>{const Q=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){q.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 v.jsx(Jre,{scope:a,searchRef:q,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:v.jsx(ae,{...H,children:v.jsx(eC,{asChild:!0,trapped:n,onMountAutoFocus:mt(r,ie=>{ie.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:v.jsx(XP,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:b,children:v.jsx(are,{asChild:!0,...k,dir:w.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:D,onEntryFocus:mt(d,ie=>{w.isUsingKeyboardRef.current||ie.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(zne,{role:"menu","aria-orientation":"vertical","data-state":hj(x.open),"data-radix-menu-content":"",dir:w.dir,...P,...T,ref:O,style:{outline:"none",...T.style},onKeyDown:mt(T.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),q.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 aie="MenuGroup",fC=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t;return v.jsx(Aa.div,{role:"group",...o,ref:e})});fC.displayName=aie;var oie="MenuLabel",JF=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t;return v.jsx(Aa.div,{...o,ref:e})});JF.displayName=oie;var nb="MenuItem",HO="menu.itemSelect",uv=A.forwardRef((t,e)=>{const{disabled:a=!1,onSelect:o,...n}=t,r=A.useRef(null),s=Tm(nb,t.__scopeMenu),c=hC(nb,t.__scopeMenu),d=Ua(e,r),u=A.useRef(!1),m=()=>{const h=r.current;if(!a&&h){const f=new CustomEvent(HO,{bubbles:!0,cancelable:!0});h.addEventListener(HO,b=>o?.(b),{once:!0}),ZB(h,f),f.defaultPrevented?u.current=!1:s.onClose()}};return v.jsx(XF,{...n,ref:d,disabled:a,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!=="";a||f&&h.key===" "||U0.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});uv.displayName=nb;var XF=A.forwardRef((t,e)=>{const{__scopeMenu:a,disabled:o=!1,textValue:n,...r}=t,s=hC(nb,a),c=GF(a),d=A.useRef(null),u=Ua(e,d),[m,h]=A.useState(!1),[f,b]=A.useState("");return A.useEffect(()=>{const y=d.current;y&&b((y.textContent??"").trim())},[r.children]),v.jsx(Hp.ItemSlot,{scope:a,disabled:o,textValue:n??f,children:v.jsx(ore,{asChild:!0,...c,focusable:!o,children:v.jsx(Aa.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...r,ref:u,onPointerMove:mt(t.onPointerMove,Gp(y=>{o?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:a=!1,onCheckedChange:o,...n}=t;return v.jsx(rj,{scope:t.__scopeMenu,checked:a,children:v.jsx(uv,{role:"menuitemcheckbox","aria-checked":rb(a)?"mixed":a,...n,ref:e,"data-state":yC(a),onSelect:mt(n.onSelect,()=>o?.(rb(a)?!0:!a),{checkForDefaultPrevented:!1})})})});ej.displayName=nie;var tj="MenuRadioGroup",[rie,iie]=Xl(tj,{value:void 0,onValueChange:()=>{}}),aj=A.forwardRef((t,e)=>{const{value:a,onValueChange:o,...n}=t,r=Er(o);return v.jsx(rie,{scope:t.__scopeMenu,value:a,onValueChange:r,children:v.jsx(fC,{...n,ref:e})})});aj.displayName=tj;var oj="MenuRadioItem",nj=A.forwardRef((t,e)=>{const{value:a,...o}=t,n=iie(oj,t.__scopeMenu),r=a===n.value;return v.jsx(rj,{scope:t.__scopeMenu,checked:r,children:v.jsx(uv,{role:"menuitemradio","aria-checked":r,...o,ref:e,"data-state":yC(r),onSelect:mt(o.onSelect,()=>n.onValueChange?.(a),{checkForDefaultPrevented:!1})})})});nj.displayName=oj;var bC="MenuItemIndicator",[rj,sie]=Xl(bC,{checked:!1}),ij=A.forwardRef((t,e)=>{const{__scopeMenu:a,forceMount:o,...n}=t,r=sie(bC,a);return v.jsx(Fi,{present:o||rb(r.checked)||r.checked===!0,children:v.jsx(Aa.span,{...n,ref:e,"data-state":yC(r.checked)})})});ij.displayName=bC;var lie="MenuSeparator",sj=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t;return v.jsx(Aa.div,{role:"separator","aria-orientation":"horizontal",...o,ref:e})});sj.displayName=lie;var cie="MenuArrow",lj=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t,n=ym(a);return v.jsx(Une,{...n,...o,ref:e})});lj.displayName=cie;var vC="MenuSub",[die,cj]=Xl(vC),dj=t=>{const{__scopeMenu:e,children:a,open:o=!1,onOpenChange:n}=t,r=Xs(vC,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]),v.jsx(_F,{...s,children:v.jsx(WF,{scope:e,open:o,onOpenChange:h,content:u,onContentChange:m,children:v.jsx(die,{scope:e,contentId:Bs(),triggerId:Bs(),trigger:c,onTriggerChange:d,children:a})})})};dj.displayName=vC;var gp="MenuSubTrigger",uj=A.forwardRef((t,e)=>{const a=Xs(gp,t.__scopeMenu),o=Tm(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]),v.jsx(pC,{asChild:!0,...u,children:v.jsx(XF,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":n.contentId,"data-state":hj(a.open),...t,ref:hm(e,n.onTriggerChange),onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:mt(t.onPointerMove,Gp(h=>{r.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!a.open&&!s.current&&(r.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{a.onOpenChange(!0),m()},100))})),onPointerLeave:mt(t.onPointerLeave,Gp(h=>{m();const f=a.content?.getBoundingClientRect();if(f){const b=a.content?.dataset.side,y=b==="right",T=y?-5:5,x=f[y?"left":"right"],w=f[y?"right":"left"];r.onPointerGraceIntentChange({area:[{x:h.clientX+T,y:h.clientY},{x,y:f.top},{x:w,y:f.top},{x:w,y:f.bottom},{x,y:f.bottom}],side:b}),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[o.dir].includes(h.key)&&(a.onOpenChange(!0),a.content?.focus(),h.preventDefault())})})})});uj.displayName=gp;var pj="MenuSubContent",mj=A.forwardRef((t,e)=>{const a=YF(nr,t.__scopeMenu),{forceMount:o=a.forceMount,...n}=t,r=Xs(nr,t.__scopeMenu),s=Tm(nr,t.__scopeMenu),c=cj(pj,t.__scopeMenu),d=A.useRef(null),u=Ua(e,d);return v.jsx(Hp.Provider,{scope:t.__scopeMenu,children:v.jsx(Fi,{present:o||r.open,children:v.jsx(Hp.Slot,{scope:t.__scopeMenu,children:v.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 rb(t){return t==="indeterminate"}function yC(t){return rb(t)?"indeterminate":t?"checked":"unchecked"}function uie(t){const e=document.activeElement;for(const a of t)if(a===e||(a.focus(),document.activeElement!==e))return}function pie(t,e){return t.map((a,o)=>t[(e+o)%t.length])}function mie(t,e,a){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,r=a?t.indexOf(a):-1;let s=pie(t,Math.max(r,0));n.length===1&&(s=s.filter(u=>u!==a));const d=s.find(u=>u.toLowerCase().startsWith(n.toLowerCase()));return d!==a?d:void 0}function hie(t,e){const{x:a,y:o}=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>o!=f>o&&a<(h-u)*(o-m)/(f-m)+u&&(n=!n)}return n}function gie(t,e){if(!e)return!1;const a={x:t.clientX,y:t.clientY};return hie(a,e)}function Gp(t){return e=>e.pointerType==="mouse"?t(e):void 0}var fie=KF,bie=pC,vie=ZF,yie=QF,Tie=fC,Sie=JF,wie=uv,xie=ej,Pie=aj,Cie=nj,Eie=ij,kie=sj,_ie=lj,Aie=dj,Rie=uj,Die=mj,pv="DropdownMenu",[Oie]=Js(pv,[HF]),$o=HF(),[Mie,gj]=Oie(pv),fj=t=>{const{__scopeDropdownMenu:e,children:a,dir:o,open:n,defaultOpen:r,onOpenChange:s,modal:c=!0}=t,d=$o(e),u=A.useRef(null),[m,h]=gm({prop:n,defaultProp:r??!1,onChange:s,caller:pv});return v.jsx(Mie,{scope:e,triggerId:Bs(),triggerRef:u,contentId:Bs(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:v.jsx(fie,{...d,open:m,onOpenChange:h,dir:o,modal:c,children:a})})};fj.displayName=pv;var bj="DropdownMenuTrigger",vj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,disabled:o=!1,...n}=t,r=gj(bj,a),s=$o(a);return v.jsx(bie,{asChild:!0,...s,children:v.jsx(Aa.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":o?"":void 0,disabled:o,...n,ref:hm(e,r.triggerRef),onPointerDown:mt(t.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(r.onOpenToggle(),r.open||c.preventDefault())}),onKeyDown:mt(t.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&r.onOpenToggle(),c.key==="ArrowDown"&&r.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});vj.displayName=bj;var Nie="DropdownMenuPortal",yj=t=>{const{__scopeDropdownMenu:e,...a}=t,o=$o(e);return v.jsx(vie,{...o,...a})};yj.displayName=Nie;var Tj="DropdownMenuContent",Sj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=gj(Tj,a),r=$o(a),s=A.useRef(!1);return v.jsx(yie,{id:n.contentId,"aria-labelledby":n.triggerId,...r,...o,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)"}})});Sj.displayName=Tj;var Iie="DropdownMenuGroup",Lie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Tie,{...n,...o,ref:e})});Lie.displayName=Iie;var Bie="DropdownMenuLabel",wj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Sie,{...n,...o,ref:e})});wj.displayName=Bie;var Fie="DropdownMenuItem",xj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(wie,{...n,...o,ref:e})});xj.displayName=Fie;var jie="DropdownMenuCheckboxItem",Pj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(xie,{...n,...o,ref:e})});Pj.displayName=jie;var zie="DropdownMenuRadioGroup",Cj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Pie,{...n,...o,ref:e})});Cj.displayName=zie;var Uie="DropdownMenuRadioItem",Ej=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Cie,{...n,...o,ref:e})});Ej.displayName=Uie;var qie="DropdownMenuItemIndicator",kj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Eie,{...n,...o,ref:e})});kj.displayName=qie;var $ie="DropdownMenuSeparator",_j=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(kie,{...n,...o,ref:e})});_j.displayName=$ie;var Vie="DropdownMenuArrow",Hie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(_ie,{...n,...o,ref:e})});Hie.displayName=Vie;var Gie=t=>{const{__scopeDropdownMenu:e,children:a,open:o,onOpenChange:n,defaultOpen:r}=t,s=$o(e),[c,d]=gm({prop:o,defaultProp:r??!1,onChange:n,caller:"DropdownMenuSub"});return v.jsx(Aie,{...s,open:c,onOpenChange:d,children:a})},Wie="DropdownMenuSubTrigger",Aj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Rie,{...n,...o,ref:e})});Aj.displayName=Wie;var Kie="DropdownMenuSubContent",Rj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Die,{...n,...o,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=vj,Mj=yj,Nj=Sj,Yie=wj,Ij=xj,Zie=Pj,Qie=Cj,Jie=Ej,Lj=kj,Xie=_j,ese=Gie,tse=Aj,ase=Rj;const TC=({size:t=24,color:e="currentColor",...a})=>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",...a},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"}));TC.displayName="AlertTriangle";const Bj=({size:t=24,color:e="currentColor",...a})=>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",...a},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",...a})=>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",...a},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));Fj.displayName="ArrowUpRight";const jj=({size:t=24,color:e="currentColor",...a})=>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",...a},A.createElement("path",{d:"M20 6 9 17l-5-5"}));jj.displayName="Check";const SC=({size:t=24,color:e="currentColor",...a})=>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",...a},A.createElement("path",{d:"m9 18 6-6-6-6"}));SC.displayName="ChevronRight";const zj=({size:t=24,color:e="currentColor",...a})=>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",...a},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",...a})=>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",...a},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 qj=({size:t=24,color:e="currentColor",...a})=>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",...a},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"}));qj.displayName="DotsHorizontal";const $j=({size:t=24,color:e="currentColor",...a})=>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",...a},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"}));$j.displayName="GitBranch01";const Vj=({size:t=24,color:e="currentColor",...a})=>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",...a},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",...a})=>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",...a},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",...a})=>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",...a},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",...a})=>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",...a},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",...a})=>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",...a},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",...a})=>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",...a},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",...a})=>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",...a},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",...a})=>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",...a},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",...a})=>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",...a},A.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));Jj.displayName="X";function ose(t){const e=ye.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let o;return e[2]!==a?(o=v.jsx(Dj,{"data-slot":"dropdown-menu",...a}),e[2]=a,e[3]=o):o=e[3],o}function nse(t){const e=ye.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let o;return e[2]!==a?(o=v.jsx(Oj,{"data-slot":"dropdown-menu-trigger",...a}),e[2]=a,e[3]=o):o=e[3],o}function rse(t){const e=ye.c(10);let a,o,n;e[0]!==t?({className:a,sideOffset:n,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);const r=n===void 0?4:n;let s;e[4]!==a?(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",a),e[4]=a,e[5]=s):s=e[5];let c;return e[6]!==o||e[7]!==r||e[8]!==s?(c=v.jsx(Mj,{children:v.jsx(Nj,{"data-slot":"dropdown-menu-content",sideOffset:r,translate:"no",className:s,...o})}),e[6]=o,e[7]=r,e[8]=s,e[9]=c):c=e[9],c}function ise(t){const e=ye.c(12);let a,o,n,r;e[0]!==t?({className:a,inset:o,variant:r,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r):(a=e[1],o=e[2],n=e[3],r=e[4]);const s=r===void 0?"default":r;let c;e[5]!==a?(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",a),e[5]=a,e[6]=c):c=e[6];let d;return e[7]!==o||e[8]!==n||e[9]!==c||e[10]!==s?(d=v.jsx(Ij,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":s,className:c,...n}),e[7]=o,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 a,o,n,r;e[0]!==t?({className:n,children:o,checked:a,...r}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r):(a=e[1],o=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=v.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:v.jsx(Lj,{children:v.jsx(jj,{className:"size-4"})})}),e[7]=c):c=e[7];let d;return e[8]!==a||e[9]!==o||e[10]!==r||e[11]!==s?(d=v.jsxs(Zie,{"data-slot":"dropdown-menu-checkbox-item",className:s,checked:a,...r,children:[c,o]}),e[8]=a,e[9]=o,e[10]=r,e[11]=s,e[12]=d):d=e[12],d}function Mwe(t){const e=ye.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let o;return e[2]!==a?(o=v.jsx(Qie,{"data-slot":"dropdown-menu-radio-group",...a}),e[2]=a,e[3]=o):o=e[3],o}function Nwe(t){const e=ye.c(11);let a,o,n;e[0]!==t?({className:o,children:a,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);let r;e[4]!==o?(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",o),e[4]=o,e[5]=r):r=e[5];let s;e[6]===Symbol.for("react.memo_cache_sentinel")?(s=v.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:v.jsx(Lj,{children:v.jsx(zj,{className:"size-2 fill-current"})})}),e[6]=s):s=e[6];let c;return e[7]!==a||e[8]!==n||e[9]!==r?(c=v.jsxs(Jie,{"data-slot":"dropdown-menu-radio-item",className:r,...n,children:[s,a]}),e[7]=a,e[8]=n,e[9]=r,e[10]=c):c=e[10],c}function Iwe(t){const e=ye.c(10);let a,o,n;e[0]!==t?({className:a,inset:o,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);let r;e[4]!==a?(r=Qe("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",a),e[4]=a,e[5]=r):r=e[5];let s;return e[6]!==o||e[7]!==n||e[8]!==r?(s=v.jsx(Yie,{"data-slot":"dropdown-menu-label","data-inset":o,className:r,...n}),e[6]=o,e[7]=n,e[8]=r,e[9]=s):s=e[9],s}function Lwe(t){const e=ye.c(8);let a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=Qe("bg-border -mx-1 my-1 h-px",a),e[3]=a,e[4]=n):n=e[4];let r;return e[5]!==o||e[6]!==n?(r=v.jsx(Xie,{"data-slot":"dropdown-menu-separator",className:n,...o}),e[5]=o,e[6]=n,e[7]=r):r=e[7],r}function Bwe(t){const e=ye.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let o;return e[2]!==a?(o=v.jsx(ese,{"data-slot":"dropdown-menu-sub",...a}),e[2]=a,e[3]=o):o=e[3],o}function Fwe(t){const e=ye.c(13);let a,o,n,r;e[0]!==t?({className:o,inset:n,children:a,...r}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r):(a=e[1],o=e[2],n=e[3],r=e[4]);let s;e[5]!==o?(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",o),e[5]=o,e[6]=s):s=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=v.jsx(SC,{className:"ml-auto size-4"}),e[7]=c):c=e[7];let d;return e[8]!==a||e[9]!==n||e[10]!==r||e[11]!==s?(d=v.jsxs(tse,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:s,...r,children:[a,c]}),e[8]=a,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 a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(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",a),e[3]=a,e[4]=n):n=e[4];let r;return e[5]!==o||e[6]!==n?(r=v.jsx(ase,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...o}),e[5]=o,e[6]=n,e[7]=r):r=e[7],r}function sse(){const t=ye.c(3),[e,a]=A.useState(-1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s=>{if(!s)return;const c=()=>a(s.clientWidth);c();const d=new ResizeObserver(c);return d.observe(s),()=>d.disconnect()},t[0]=o):o=t[0];const n=o;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,a=()=>e.forEach(o=>o());return{getSnapshot:()=>t,subscribe(o){return e.add(o),()=>{e.delete(o)}},register(o){if(t.has(o.after))throw new Error(`Two components extend breadcrumb: ${o.after}`);return t=new Map(t).set(o.after,o),a(),()=>{if(t.get(o.after)!==o)return;const n=new Map(t);n.delete(o.after),t=n,a()}}}}const wC=A.createContext(null);function cse(t){const e=ye.c(3),{children:a}=t,[o]=A.useState(lse);let n;return e[0]!==a||e[1]!==o?(n=v.jsx(wC,{value:o,children:a}),e[0]=a,e[1]=o,e[2]=n):n=e[2],n}function dse(t){const e=ye.c(2),{children:a}=t;let o;return e[0]!==a?(o=v.jsx(wC,{value:null,children:a}),e[0]=a,e[1]=o):o=e[1],o}function mv(){return A.use(wC)}function Xj(t){const e=ye.c(3),a=mv();if(!a)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let o;return e[0]!==t||e[1]!==a?(o=v.jsx("span",{hidden:!0,ref:n=>n?a.register(t):void 0}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}function use(t,e){const a=new Set,o=n=>{if(a.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);a.add(n.key);const r=e.get(n.key);return[{...n,...r?.parent},...r?.items?.flatMap(o)??[]]};return t.flatMap(o)}function pse(t,e){const a=t.map(o=>o.label).filter(o=>typeof o=="string").reverse();return e&&a.push(e),a.map(o=>o.trim()).filter(Boolean).join(" · ")}const e3=5;function mse(t,e=!1,a=e3){const o=t.map(s=>({type:"item",item:s}));if(t.length<=(e?1:a))return o;const n=e?0:1,r=t.length-(e?1:2);return o.splice(n,r-n,{type:"menu",items:t.slice(n,r)}),o}const t3=I$(function(e){return v.jsx("a",{...e,"aria-current":void 0})});function hse(t){const e=ye.c(12),{items:a}=t,o=qo();let n;e[0]!==o?(n=o("page.breadcrumbMenu"),e[0]=o,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=v.jsx(qj,{"aria-hidden":"true",className:"size-4"}),e[2]=r):r=e[2];let s;e[3]!==n?(s=v.jsx(nse,{asChild:!0,children:v.jsx(vn,{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]!==a?(c=a.map(gse),e[5]=a,e[6]=c):c=e[6];let d;e[7]!==c?(d=v.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=v.jsxs(ose,{children:[s,d]}),e[9]=s,e[10]=d,e[11]=u):u=e[11],u}function gse(t){const e=v.jsx("span",{className:"max-w-64 truncate",title:typeof t.label=="string"?t.label:void 0,children:t.label});return v.jsx(ise,{asChild:!!t.link&&!t.onSelect,onSelect:t.onSelect,disabled:!t.onSelect&&!t.link,children:t.link&&!t.onSelect?v.jsx(t3,{...t.link,children:e}):e},t.key)}function fse(t){const e=ye.c(14),{item:a,current:o}=t,n=typeof a.label=="string"?a.label:void 0;if(o){let s;return e[0]!==a.label||e[1]!==n?(s=v.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:a.label}),e[0]=a.label,e[1]=n,e[2]=s):s=e[2],s}if(a.onSelect){let s;return e[3]!==a.label||e[4]!==a.onSelect||e[5]!==n?(s=v.jsx("button",{type:"button",onClick:a.onSelect,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:a.label}),e[3]=a.label,e[4]=a.onSelect,e[5]=n,e[6]=s):s=e[6],s}if(a.link){let s;return e[7]!==a.label||e[8]!==a.link||e[9]!==n?(s=v.jsx(t3,{...a.link,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:a.label}),e[7]=a.label,e[8]=a.link,e[9]=n,e[10]=s):s=e[10],s}let r;return e[11]!==a.label||e[12]!==n?(r=v.jsx("span",{title:n,className:"block max-w-48 truncate",children:a.label}),e[11]=a.label,e[12]=n,e[13]=r):r=e[13],r}function a3(t){const e=ye.c(21),{items:a}=t,o=qo(),[n,r]=sse();let s,c,d,u,m,h;if(e[0]!==a||e[1]!==r||e[2]!==o||e[3]!==n){const y=mse(a,n>=0&&n<320,e3);u=r,e[10]!==o?(m=o("page.breadcrumbs"),e[10]=o,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((T,x)=>v.jsxs("li",{className:Qe("flex min-w-0 items-center gap-2",x>0&&"min-w-5",T.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[x>0&&v.jsx(SC,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),T.type==="item"?v.jsx(fse,{item:T.item,current:x===y.length-1}):v.jsx(hse,{items:T.items})]},T.type==="item"?`item:${T.item.key}`:"menu")),e[0]=a,e[1]=r,e[2]=o,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=v.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 b;return e[16]!==u||e[17]!==m||e[18]!==h||e[19]!==f?(b=v.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]=b):b=e[20],b}function bse(t){const e=ye.c(12),{items:a,scope:o}=t,n=mv();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]!==a||e[2]!==o?(s=use(a,r),c=pse(s,o),e[0]=r,e[1]=a,e[2]=o,e[3]=s,e[4]=c):(s=e[3],c=e[4]);const d=c;let u;e[5]!==d?(u=d&&v.jsx("title",{children:d}),e[5]=d,e[6]=u):u=e[6];let m;e[7]!==s?(m=v.jsx(a3,{items:s}),e[7]=s,e[8]=m):m=e[8];let h;return e[9]!==u||e[10]!==m?(h=v.jsxs(v.Fragment,{children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11],h}function vse(t){const e=ye.c(3),a=mv();let o;return e[0]!==t||e[1]!==a?(o=a?v.jsx(Xj,{...t}):v.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:v.jsx(a3,{items:t.items??[]})}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}const yse=Object.assign(vse,{Provider:cse,Detached:dse});function Tse(t){const e=ye.c(8);let a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=Qe("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",a),e[3]=a,e[4]=n):n=e[4];let r;return e[5]!==o||e[6]!==n?(r=v.jsx("div",{...o,"data-slot":"page",className:n}),e[5]=o,e[6]=n,e[7]=r):r=e[7],r}function Sse(t){const e=ye.c(8);let a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=Qe("min-h-0 min-w-0 flex-1 overflow-auto",a),e[3]=a,e[4]=n):n=e[4];let r;return e[5]!==o||e[6]!==n?(r=v.jsx("div",{...o,"data-slot":"page-content",className:n}),e[5]=o,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",o3=A.createContext(!1);function Pse(t){const e=ye.c(12);let a,o,n;e[0]!==t?({className:a,width:n,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);const r=n===void 0?"wide":n,s=A.use(o3);let c;e[4]!==a||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],a),e[4]=a,e[5]=s,e[6]=r,e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==c||e[10]!==r?(d=v.jsx("div",{...o,"data-slot":"page-container","data-width":r,className:c}),e[8]=o,e[9]=c,e[10]=r,e[11]=d):d=e[11],d}function Cse(t){const e=ye.c(9),{children:a,actions:o,className:n}=t,r=mv();let s;e[0]!==a||e[1]!==n||e[2]!==r?(s=r?v.jsx(Xj,{after:"page",parent:{label:a}}):v.jsx("div",{"data-slot":"page-title",className:Qe("flex flex-wrap items-center justify-between gap-3",n),children:v.jsx("h1",{className:"min-w-0 text-xl font-medium",children:a})}),e[0]=a,e[1]=n,e[2]=r,e[3]=s):s=e[3];let c;e[4]!==o?(c=o&&v.jsx(n3,{children:o}),e[4]=o,e[5]=c):c=e[5];let d;return e[6]!==s||e[7]!==c?(d=v.jsxs(v.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:a,secondary:o}=t;let n;if(e[0]!==a||e[1]!==o){const r=v.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[o,a]});n=v.jsx(pn.Topbar.Right.Portal,{fallback:r,children:r}),e[0]=a,e[1]=o,e[2]=n}else n=e[2];return n}function Ese(t){const e=ye.c(28),{breadcrumbs:a,scope:o,leading:n,actions:r,navigation:s,trailingActions:c}=t;let d;e[0]!==a||e[1]!==o?(d=v.jsx(bse,{items:a,scope:o}),e[0]=a,e[1]=o,e[2]=d):d=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=v.jsx(pn.Topbar.Left.Target,{}),e[3]=u):u=e[3];let m;e[4]!==n||e[5]!==d?(m=v.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=v.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=v.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 b;e[10]!==h||e[11]!==c?(b=v.jsxs(pn.Topbar.Right,{className:"shrink-0 gap-2",children:[h,f,c]}),e[10]=h,e[11]=c,e[12]=b):b=e[12];let y;e[13]!==m||e[14]!==b?(y=v.jsxs(pn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[m,b]}),e[13]=m,e[14]=b,e[15]=y):y=e[15];let T;e[16]!==s?(T=v.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:s}),e[16]=s,e[17]=T):T=e[17];let x;e[18]===Symbol.for("react.memo_cache_sentinel")?(x=v.jsx(pn.Toolbar.Left.Target,{}),e[18]=x):x=e[18];let w;e[19]!==T?(w=v.jsxs(pn.Toolbar.Left,{children:[T,x]}),e[19]=T,e[20]=w):w=e[20];let P;e[21]===Symbol.for("react.memo_cache_sentinel")?(P=v.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:v.jsx(pn.Toolbar.Center.Target,{})}),e[21]=P):P=e[21];let k;e[22]===Symbol.for("react.memo_cache_sentinel")?(k=v.jsx(pn.Toolbar.Right,{children:v.jsx(pn.Toolbar.Right.Target,{})}),e[22]=k):k=e[22];let C;e[23]!==w?(C=v.jsxs(pn.Toolbar,{children:[w,P,k]}),e[23]=w,e[24]=C):C=e[24];let _;return e[25]!==C||e[26]!==y?(_=v.jsxs(v.Fragment,{children:[y,C]}),e[25]=C,e[26]=y,e[27]=_):_=e[27],_}function kse(t){const e=ye.c(11);let a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);const n=qo();let r;e[3]!==n?(r=n("page.views"),e[3]=n,e[4]=r):r=e[4];let s;e[5]!==a?(s=Qe("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",a),e[5]=a,e[6]=s):s=e[6];let c;return e[7]!==o||e[8]!==r||e[9]!==s?(c=v.jsx("nav",{"aria-label":r,...o,"data-slot":"page-tabs",className:s}),e[7]=o,e[8]=r,e[9]=s,e[10]=c):c=e[10],c}function _se(t){const e=ye.c(14);let a,o,n,r;e[0]!==t?({active:a,asChild:r,className:o,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r):(a=e[1],o=e[2],n=e[3],r=e[4]);const s=r===void 0?!1:r,c=s?void 0:"button",d=s&&a?"page":void 0,u=s?void 0:a;let m;e[5]!==o?(m=Qe("shrink-0",o),e[5]=o,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=v.jsx(vn,{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(Tse,{Header:Ese,Tabs:kse,Tab:_se,Actions:n3,Content:Sse,Container:Object.assign(Pse,{Inset:o3}),Title:Cse,Breadcrumbs:yse});var ge=typeof window<"u"?window:void 0,lo=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(lo.self=lo),typeof File>"u"&&(lo.File=function(){});var Nn=lo?.navigator,ze=lo?.document,xo=lo?.location,q0=lo?.fetch,$0=lo!=null&&lo.XMLHttpRequest&&"withCredentials"in new lo.XMLHttpRequest?lo.XMLHttpRequest:void 0,GO=lo?.AbortController,Ase=lo?.CompressionStream,mn=Nn?.userAgent,at=ge??{},WO="1.372.3",Zo={DEBUG:!1,LIB_VERSION:WO,LIB_NAME:"web",JS_SDK_VERSION:WO};function KO(t,e,a,o,n,r,s){try{var c=t[r](s),d=c.value}catch(u){return void a(u)}c.done?e(d):Promise.resolve(d).then(o,n)}function er(t){return function(){var e=this,a=arguments;return new Promise((function(o,n){var r=t.apply(e,a);function s(d){KO(r,o,n,s,c,"next",d)}function c(d){KO(r,o,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 a=arguments[e];for(var o in a)({}).hasOwnProperty.call(a,o)&&(t[o]=a[o])}return t},Ne.apply(null,arguments)}function r3(t,e){if(t==null)return{};var a={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;a[o]=t[o]}return a}function V0(){return V0=er((function*(t,e,a){e===void 0&&(e=!0);try{var o=new CompressionStream("gzip"),n=o.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(o.readable).blob(),[c]=yield Promise.all([s,r]);return c}catch(d){if(a!=null&&a.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 a=t.toLowerCase();return Rse.concat(e).some((o=>{var n=o.toLowerCase();return a.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 hv=function(t){return t.trim()},H0=function(t){return t.replace(/^\$/,"")},i3=Object.prototype,s3=i3.hasOwnProperty,gv=i3.toString,Bt=Array.isArray||function(t){return gv.call(t)==="[object Array]"},Ai=t=>typeof t=="function",La=t=>t===Object(t)&&!Bt(t),gd=t=>{if(La(t)){for(var e in t)if(s3.call(t,e))return!1;return!0}return!1},$e=t=>t===void 0,Ca=t=>gv.call(t)=="[object String]",wf=t=>Ca(t)&&t.trim().length===0,ji=t=>t===null,kt=t=>$e(t)||ji(t),ir=t=>gv.call(t)=="[object Number]"&&t==t,sd=t=>ir(t)&&t>0,Kr=t=>gv.call(t)==="[object Boolean]",Ose=t=>t instanceof FormData,Mse=t=>Et(Dse,t);function l3(t){return t===null||typeof t!="object"}function ib(t,e){return{}.toString.call(t)==="[object "+e+"]"}function xC(t){return typeof Event<"u"&&(function(e,a){try{return e instanceof a}catch{return!1}})(t,Event)}var Nse=[!0,"true",1,"1","yes"],$S=t=>Et(Nse,t),Ise=[!1,"false",0,"0","no"];function Yr(t,e,a,o,n){return e>a&&(o.warn("min cannot be greater than max."),e=a),ir(t)?t>a?(o.warn(" cannot be greater than max: "+a+". Using max value instead."),a):e>t?(o.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(o.warn(" must be a number. using max or fallback. max: "+a+", fallback: "+n),Yr(n||a,e,a,o))}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,a){var o=Math.floor((a-e.lastAccess)/this.Xt);o>0&&(e.tokens=Math.min(e.tokens+o*this.Wt,this.Ut),e.lastAccess=e.lastAccess+o*this.Xt)}consumeRateLimit(e){var a,o=Date.now(),n=String(e),r=this.$t[n];return r?this.Jt(r,o):this.$t[n]=r={tokens:this.Ut,lastAccess:o},r.tokens===0||(r.tokens--,r.tokens===0&&((a=this.zt)==null||a.call(this,e)),r.tokens===0)}stop(){this.$t={}}};var Yg,ZO,VS,Ln="Mobile",sb="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+" "+sb,PC="Internet Explorer",b3=PC+" "+Ln,CC="Opera",Fse=CC+" Mini",EC="Edge",v3="Microsoft "+EC,Pd="Firefox",y3=Pd+" "+sb,Wp="Nintendo",Kp="PlayStation",Cd="Xbox",T3=Mi+" "+Ln,S3=Ln+" "+Cp,fp="Windows",G0=fp+" Phone",QO="Nokia",W0="Ouya",w3="Generic",jse=w3+" "+Ln.toLowerCase(),x3=w3+" "+jd.toLowerCase(),K0="Konqueror",Yo="(\\d+(\\.\\d+)?)",HS=new RegExp("Version/"+Yo),zse=new RegExp(Cd,"i"),Use=new RegExp(Kp+" \\w+","i"),qse=new RegExp(Wp+" \\w+","i"),kC=new RegExp(zd+"|PlayBook|BB10","i"),$se={"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"},P3=function(t,e){return e=e||"",Et(t," OPR/")&&Et(t,"Mini")?Fse:Et(t," OPR/")?CC:kC.test(t)?zd:Et(t,"IE"+Ln)||Et(t,"WPDesktop")?b3:Et(t,h3)?g3:Et(t,EC)||Et(t,"Edg/")?v3: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)?T3:Et(t,"FxiOS")?y3:Et(t.toLowerCase(),K0.toLowerCase())?K0:((a,o)=>o&&Et(o,u3)||(function(n){return Et(n,Cp)&&!Et(n,Fl)&&!Et(n,Mi)})(a))(t,e)?Et(t,Ln)?S3:Cp:Et(t,Pd)?Pd:Et(t,"MSIE")||Et(t,"Trident/")?PC:Et(t,"Gecko")?Pd:""},Vse={[b3]:[new RegExp("rv:"+Yo)],[v3]:[new RegExp(EC+"?\\/"+Yo)],[Fl]:[new RegExp("("+Fl+"|CrMo)\\/"+Yo)],[f3]:[new RegExp("CriOS\\/"+Yo)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Yo)],[Cp]:[HS],[S3]:[HS],[CC]:[new RegExp("(Opera|OPR)\\/"+Yo)],[Pd]:[new RegExp(Pd+"\\/"+Yo)],[y3]:[new RegExp("FxiOS\\/"+Yo)],[K0]:[new RegExp("Konqueror[:/]?"+Yo,"i")],[zd]:[new RegExp(zd+" "+Yo),HS],[T3]:[new RegExp("android\\s"+Yo,"i")],[g3]:[new RegExp(h3+"\\/"+Yo)],[PC]:[new RegExp("(rv:|MSIE )"+Yo)],Mozilla:[new RegExp("rv:"+Yo)]},Hse=function(t,e){var a=P3(t,e),o=Vse[a];if($e(o))return null;for(var n=0;o.length>n;n++){var r=t.match(o[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,""]],[kC,[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 a=/Windows NT ([0-9.]+)/i.exec(e);if(a&&a[1]){var o=$se[a[1]]||"";return/arm/i.test(e)&&(o="RT"),[fp,o]}return[fp,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[sb,[t[3],t[4],t[5]||"0"].join(".")]:[sb,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=$e(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 qse.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:kC.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 a in t){var o=t[a];ji(o)||$e(o)||e.push({key:a,value:E3(o)})}return e}function Kse(t){var e=globalThis._posthogChunkIds;if(e){var a=Object.keys(e);return VS&&a.length===ZO||(ZO=a.length,VS=a.reduce(((o,n)=>{Yg||(Yg={});var r=Yg[n];if(r)o[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){o[u]=m,Yg[n]=[u,m];break}}return o}),{})),VS}}class Yse{constructor(e,a,o){o===void 0&&(o=[]),this.coercers=e,this.stackParser=a,this.modifiers=o}buildFromUnknown(e,a){a===void 0&&(a={});var o=a&&a.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(o,a,0).apply(e),r=this.buildParsingContext(a),s=this.parseStacktrace(n,r);return{$exception_list:this.convertToExceptionList(s,o),$exception_level:"error"}}modifyFrames(e){var a=this;return er((function*(){for(var o of e)o.stacktrace&&o.stacktrace.frames&&Bt(o.stacktrace.frames)&&(o.stacktrace.frames=yield a.applyModifiers(o.stacktrace.frames));return e}))()}coerceFallback(e){var a;return{type:"Error",value:"Unknown error",stack:(a=e.syntheticException)==null?void 0:a.stack,synthetic:!0}}parseStacktrace(e,a){var o,n;return e.cause!=null&&(o=this.parseStacktrace(e.cause,a)),e.stack!=""&&e.stack!=null&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?a.skipFirstLines:0),a.chunkIdMap)),Ne({},e,{cause:o,stack:n})}applyChunkIds(e,a){return e.map((o=>(o.filename&&a&&(o.chunk_id=a[o.filename]),o)))}applyCoercers(e,a){for(var o of this.coercers)if(o.match(e))return o.coerce(e,a);return this.coerceFallback(a)}applyModifiers(e){var a=this;return er((function*(){var o=e;for(var n of a.modifiers)o=yield n(o);return o}))()}convertToExceptionList(e,a){var o,n,r,s={type:e.type,value:e.value,mechanism:{type:(o=a.type)!==null&&o!==void 0?o:"generic",handled:(n=a.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({},a,{handled:!0}))),c}buildParsingContext(e){var a;return{chunkIdMap:Kse(this.stackParser),skipFirstLines:(a=e.skipFirstLines)!==null&&a!==void 0?a:1}}buildCoercingContext(e,a,o){o===void 0&&(o=0);var n=(r,s)=>{if(4>=s){var c=this.buildCoercingContext(e,a,s);return this.applyCoercers(r,c)}};return Ne({},a,{syntheticException:o==0?a.syntheticException:void 0,mechanism:e,apply:r=>n(r,o),next:r=>n(r,o+1)})}}var Ud="?";function Y0(t,e,a,o,n){var r={platform:t,filename:e,function:a==="<anonymous>"?Ud:a,in_app:!0};return $e(o)||(r.lineno=o),$e(n)||(r.colno=n),r}var k3=(t,e)=>{var a=t.indexOf("safari-extension")!==-1,o=t.indexOf("safari-web-extension")!==-1;return a||o?[t.indexOf("@")!==-1?t.split("@")[0]:Ud,a?"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 a=Zse.exec(t);if(a){var[,o,n,r]=a;return Y0(e,o,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]=k3(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,ale=(t,e)=>{var a=ele.exec(t);if(a){if(a[3]&&a[3].indexOf(" > eval")>-1){var o=tle.exec(a[3]);o&&(a[1]=a[1]||"eval",a[3]=o[1],a[4]=o[2],a[5]="")}var n=a[3],r=a[1]||Ud;return[r,n]=k3(r,n),Y0(e,n,r,a[4]?+a[4]:void 0,a[5]?+a[5]:void 0)}},t2=/\(error: (.*)\)/;let ole=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,a){var o=Ca(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:o?e.stack:void 0,cause:e.cause?a.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var a=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?a+": "+e.message:a}isDOMException(e){return ib(e,"DOMException")}isDOMError(e){return ib(e,"DOMError")}};class nle{match(e){return(a=>a instanceof Error)(e)}coerce(e,a){return{type:this.getType(e),value:this.getMessage(e,a),stack:this.getStack(e),cause:e.cause?a.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,a){var o=e.message;return String(o.error&&typeof o.error.message=="string"?o.error.message:o)}getStack(e){return e.stacktrace||e.stack||void 0}}let rle=class{constructor(){}match(e){return ib(e,"ErrorEvent")&&e.error!=null}coerce(e,a){var o;return a.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(o=a.syntheticException)==null?void 0:o.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,a){var o,[n,r]=this.getInfos(e);return{type:n??"Error",value:r??e,stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}getInfos(e){var a="Error",o=e,n=e.match(ile);return n&&(a=n[1],o=n[2]),[a,o]}};var lle=["fatal","error","warning","log","info","debug"];function _3(t,e){e===void 0&&(e=40);var a=Object.keys(t);if(a.sort(),!a.length)return"[object has no keys]";for(var o=a.length;o>0;o--){var n=a.slice(0,o).join(", ");if(e>=n.length)return o===a.length?n:n.length>e?n.slice(0,e)+"...":n}return""}let cle=class{match(e){return typeof e=="object"&&e!==null}coerce(e,a){var o,n=this.getErrorPropertyFromObject(e);return n?a.apply(n):{type:this.getType(e),value:this.getValue(e),stack:(o=a.syntheticException)==null?void 0:o.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 a="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(a+=" with message: '"+e.message+"'"),a}if("message"in e&&typeof e.message=="string")return e.message;var o=this.getObjectClassName(e);return(o&&o!=="Object"?"'"+o+"'":"Object")+" captured as exception with keys: "+_3(e)}isSeverityLevel(e){return Ca(e)&&!wf(e)&&lle.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var a in e)if({}.hasOwnProperty.call(e,a)){var o=e[a];if(Gse(o))return o}}getObjectClassName(e){try{var a=Object.getPrototypeOf(e);return a?a.constructor.name:void 0}catch{return}}},dle=class{match(e){return xC(e)}coerce(e,a){var o,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+_3(e),stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}},ule=class{match(e){return l3(e)}coerce(e,a){var o;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}},ple=class{match(e){return ib(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!xC(e))return!1;try{var a=e.detail;return a!=null&&typeof a=="object"&&"reason"in a}catch{return!1}}coerce(e,a){var o,n=this.getUnhandledRejectionReason(e);return l3(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}:a.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 lb="$message",cb="$timestamp",mle=new Set([lb,cb]),GS={enabled:!0,max_bytes:32768};function db(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:GS.enabled,max_bytes:gle(t.max_bytes,GS.max_bytes)}:Ne({},GS)}let hle=class{constructor(e){this.Kt=[],this.Qt=0,this.Bt=db(e)}setConfig(e){this.Bt=db(e),this.er()}add(e){var a=(function(n){var r=(function(m){var h=new WeakSet;try{return JSON.stringify(m,((f,b)=>{if(typeof b=="bigint")return b.toString();if(typeof b!="function"&&typeof b!="symbol"){if(b instanceof Date)return b.toISOString();if(b instanceof Error)return{name:b.name,message:b.message,stack:b.stack};if(b&&typeof b=="object"){if(h.has(b))return"[Circular]";h.add(b)}return b}}))}catch{return}})(n);if(r)try{var s=JSON.parse(r);if(!La(s))return;var c=s,d=c[lb],u=c[cb];return!Ca(d)||d.trim().length===0||!Ca(u)&&!ir(u)?void 0:{step:c,json:r}}catch{return}})(e);if(a){var o=(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})(a.json);o>this.Bt.max_bytes||(this.Kt.push({step:a.step,bytes:o}),this.Qt+=o,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 a=Math.floor(t);return 0>a?e:a}var A3=function(t,e){var{debugEnabled:a}=e===void 0?{}:e,o={C(n){if(ge&&(Zo.DEBUG||at.POSTHOG_DEBUG||a)&&!$e(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];o.C("log",...r)},warn(){for(var n=arguments.length,r=new Array(n),s=0;n>s;s++)r[s]=arguments[s];o.C("warn",...r)},error(){for(var n=arguments.length,r=new Array(n),s=0;n>s;s++)r[s]=arguments[s];o.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){o.error("You must initialize PostHog before calling "+n)},createLogger:(n,r)=>A3(t+" "+n,r)};return o},qe=A3("[PostHog.js]"),Sa=qe.createLogger,fle=Sa("[ExternalScriptsLoader]"),WS=(t,e,a)=>{if(t.config.disable_external_dependency_loading)return fle.warn(e+" was requested but loading of external scripts is disabled."),a("Loading of external scripts is disabled");var o=ze?.querySelectorAll("script");if(o){for(var n,r=function(){if(o[s].src===e){var d=o[s];return d.__posthog_loading_callback_fired?{v:a()}:(d.addEventListener("load",(u=>{d.__posthog_loading_callback_fired=!0,a(void 0,u)})),d.onerror=u=>a(u),{v:void 0})}},s=0;o.length>s;s++)if(n=r())return n.v}var c=()=>{if(!ze)return a("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,a(void 0,h)},d.onerror=h=>a(h),t.config.prepare_external_dependency_script&&(d=t.config.prepare_external_dependency_script(d)),!d)return a("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)};at.__PosthogExtensions__=at.__PosthogExtensions__||{},at.__PosthogExtensions__.loadExternalDependency=(t,e,a)=>{if(e!=="remote-config"){var o;if(t.config.__preview_external_dependency_versioned_paths)o=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}o=t.requestRouter.endpointFor("assets",n)}WS(t,o,a)}else{var s=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");WS(t,s,a)}},at.__PosthogExtensions__.loadSiteApp=(t,e,a)=>{var o=t.requestRouter.endpointFor("api",e);WS(t,o,a)};var R3="$people_distinct_id",ub="$device_id",bp="__alias",vp="__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",_C="$dead_clicks_enabled_server_side",ax="$product_tours_enabled_server_side",ox="$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",pb="$sesid",AC="$session_is_sampled",fd="$enabled_feature_flags",xf="$active_feature_flags",Tp="$early_access_features",nx="$feature_flag_details",rx="$feature_flag_payloads",ix="$feature_flag_request_id",_i="$override_feature_flags",ld="$override_feature_flag_payloads",Sp="$stored_person_properties",_l="$stored_group_properties",sx="$surveys",lx="$surveys_activated",Pf="ph_product_tours",Ep="$flag_call_reported",cx="$flag_call_reported_session_id",dx="$feature_flag_errors",mb="$feature_flag_evaluated_at",vr="$user_state",ux="$client_session_props",px="$capture_rate_limit",mx="$initial_campaign_params",hx="$initial_referrer_info",hb="$initial_person_info",gb="$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",fb="visibilitychange",bb="beforeunload",cd="$pageview",KS="$pageleave",YS="$identify",a2="$groupidentify";function Qg(t,e){Bt(t)&&t.forEach(e)}function fa(t,e){if(!kt(t))if(Bt(t))t.forEach(e);else if(Ose(t))t.forEach(((o,n)=>e(o,n)));else for(var a in t)s3.call(t,a)&&e(t[a],a)}var Oa=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),o=1;e>o;o++)a[o-1]=arguments[o];for(var n of a)for(var r in n)n[r]!==void 0&&(t[r]=n[r]);return t};function Cf(t){for(var e=Object.keys(t),a=e.length,o=new Array(a);a--;)o[a]=[e[a],t[e[a]]];return o}var o2=function(t){try{return t()}catch{return}},ble=function(t){return function(){try{for(var e=arguments.length,a=new Array(e),o=0;e>o;o++)a[o]=arguments[o];return t.apply(this,a)}catch(n){qe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),qe.critical(n)}}},DC=function(t){var e={};return fa(t,(function(a,o){(Ca(a)&&a.length>0||ir(a))&&(e[o]=a)})),e},vle=["herokuapp.com","vercel.app","netlify.app"];function yle(t){var e=t?.hostname;if(!Ca(e))return!1;var a=e.split(".").slice(-2).join(".");for(var o of vle)if(a===o)return!1;return!0}function Za(t,e,a,o){var{capture:n=!1,passive:r=!0}=o??{};t?.addEventListener(e,a,{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 vb{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,a,o,n){if(!Number.isInteger(e)||!Number.isInteger(a)||!Number.isInteger(o)||!Number.isInteger(n)||0>e||0>a||0>o||0>n||e>0xffffffffffff||a>4095||o>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|a>>>8,r[7]=a,r[8]=128|o>>>24,r[9]=o>>>16,r[10]=o>>>8,r[11]=o,r[12]=n>>>24,r[13]=n>>>16,r[14]=n>>>8,r[15]=n,new vb(r)}toString(){for(var e="",a=0;this.bytes.length>a;a++)e=e+(this.bytes[a]>>>4).toString(16)+(15&this.bytes[a]).toString(16),a!==3&&a!==5&&a!==7&&a!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new vb(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var a=0;16>a;a++){var o=this.bytes[a]-e.bytes[a];if(o!==0)return Math.sign(o)}return 0}}class Tle{constructor(){this.I=0,this.S=0,this.k=new Sle}generate(){var e=this.generateOrAbort();if($e(e)){this.I=0;var a=this.generateOrAbort();if($e(a))throw new Error("Could not generate UUID after timestamp reset");return a}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 vb.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&&!$e(ge.crypto)&&crypto.getRandomValues&&(z3=t=>crypto.getRandomValues(t));class Sle{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 Tle)).generate(),Xu="",xle=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Wr={R:()=>!!ze,B(t){qe.error("cookieStore error: "+t)},O(t){if(ze){try{for(var e=t+"=",a=ze.cookie.split(";").filter((r=>r.length)),o=0;a.length>o;o++){for(var n=a[o];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,a,o,n){if(ze)try{var r="",s="",c=(function(m,h){if(h){var f=(function(y,T){if(T===void 0&&(T=ze),Xu)return Xu;if(!T||["localhost","127.0.0.1"].includes(y))return"";for(var x=y.split("."),w=Math.min(x.length,8),P="dmn_chk_"+As();!Xu&&w--;){var k=x.slice(w).join("."),C=P+"=1;domain=."+k+";path=/";T.cookie=C+";max-age=3",T.cookie.includes(P)&&(T.cookie=C+";max-age=0",Xu=k)}return Xu})(m);if(!f){var b=(y=>{var T=y.match(xle);return T?T[0]:""})(m);b!==f&&qe.info("Warning: cookie subdomain discovery mismatch",b,f),f=b}return f?"; domain=."+f:""}return""})(ze.location.hostname,o);if(a){var d=new Date;d.setTime(d.getTime()+864e5*a),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&&qe.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}}},ZS=null,Pa={R(){if(!ji(ZS))return ZS;var t=!0;if($e(ge))t=!1;else try{var e="__mplssupport__";Pa.M(e,"xyz"),Pa.O(e)!=='"xyz"'&&(t=!1),Pa.F(e)}catch{t=!1}return t||qe.error("localStorage unsupported; falling back to cookie store"),ZS=t,t},B(t){qe.error("localStorage error: "+t)},O(t){try{return ge?.localStorage.getItem(t)}catch(e){Pa.B(e)}return null},Z(t){try{return JSON.parse(Pa.O(t))||{}}catch{}return null},M(t,e){try{ge?.localStorage.setItem(t,JSON.stringify(e))}catch(a){Pa.B(a)}},F(t){try{ge?.localStorage.removeItem(t)}catch(e){Pa.B(e)}}},Ple=[ub,"distinct_id",pb,AC,gb,hb,vr],Jg={},Cle={R:()=>!0,B(t){qe.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,Po={R(){if(!ji(xl))return xl;if(xl=!0,$e(ge))xl=!1;else try{var t="__support__";Po.M(t,"xyz"),Po.O(t)!=='"xyz"'&&(xl=!1),Po.F(t)}catch{xl=!1}return xl},B(t){qe.error("sessionStorage error: ",t)},O(t){try{return ge?.sessionStorage.getItem(t)}catch(e){Po.B(e)}return null},Z(t){try{return JSON.parse(Po.O(t))||null}catch{}return null},M(t,e){try{ge?.sessionStorage.setItem(t,JSON.stringify(e))}catch(a){Po.B(a)}},F(t){try{ge?.sessionStorage.removeItem(t)}catch(e){Po.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:a,consent_persistence_name:o}=this._instance.config;return o||(a?a+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.O(this.sr);return $S(e)?1:Et(Ise,e)?0:-1}get nr(){var e=this.Bt.opt_out_capturing_persistence_type,a=e==="localStorage"?Pa:Wr;if(!this.ar||this.ar!==a){this.ar=a;var o=e==="localStorage"?Wr:Pa;o.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut($S(o.O(this.sr))),o.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[Nn?.doNotTrack,Nn?.msDoNotTrack,at.doNotTrack].some((e=>$S(e)))}}var Xg=Sa("[Dead Clicks]"),kle=()=>!0,_le=t=>{var e,a=!((e=t.instance.persistence)==null||!e.get_property(_C)),o=t.instance.config.capture_dead_clicks;return Kr(o)?o:!!La(o)||a};class r2{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(e,a,o){this.instance=e,this.isEnabled=a,this.onCapture=o,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[_C]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(e){var a,o;(a=at.__PosthogExtensions__)!=null&&a.initDeadClicksAutocapture&&e(),(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.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=at.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var a=La(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};a.__onCapture=this.onCapture,this.lr=at.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,a),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 QS=Sa("[SegmentIntegration]"),U3="posthog-js";function q3(t,e){var{organization:a,projectId:o,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 b=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());c.tags["PostHog Person URL"]=b,t.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var y,T=((d=c.exception)==null?void 0:d.values)||[],x=T.map((P=>Ne({},P,{stacktrace:P.stacktrace?Ne({},P.stacktrace,{type:"raw",frames:(P.stacktrace.frames||[]).map((k=>Ne({},k,{platform:"web:javascript"})))}):void 0}))),w={$exception_message:((u=T[0])==null?void 0:u.value)||c.message,$exception_type:(m=T[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=T[0])==null?void 0:h.value)||c.message,$sentry_exception_type:(f=T[0])==null?void 0:f.type,$sentry_tags:c.tags};return a&&o&&(w.$sentry_url=(n||"https://sentry.io/organizations/")+a+"/issues/?project="+o+"&query="+c.event_id),s&&((y=t.exceptions)==null||y.sendExceptionEvent(w)),c}}class Ale{constructor(e,a,o,n,r,s){this.name=U3,this.setupOnce=function(c){c(q3(e,{organization:a,projectId:o,prefix:n,severityAllowList:r,sendExceptionsToPostHog:s==null||s}))}}}class i2{constructor(e){this.cr=(a,o,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(qe.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:a,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,a){var o,n=this.gr(e,a);return this.dr={pathname:(o=ge?.location.pathname)!==null&&o!==void 0?o:"",pageViewId:a,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var a;return this.gr(e,(a=this.dr)==null?void 0:a.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.dr)==null?void 0:e.pageViewId}}gr(e,a){var o=this.dr;if(!o)return{$pageview_id:a};var n={$pageview_id:a,$prev_pageview_id:o.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(!($e(s)||$e(c)||$e(d)||$e(u)||$e(m)||$e(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,qe):1,b=s>1?Yr(d/s,0,1,qe):1,y=u>1?Yr(m/u,0,1,qe):1,T=u>1?Yr(h/u,0,1,qe):1;n=Oa(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:b,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:T})}}return o.pathname&&(n.$prev_pageview_pathname=o.pathname),o.timestamp&&(n.$prev_pageview_duration=(e.getTime()-o.timestamp.getTime())/1e3),n}}var Rle={[R3]:{exposure:"hidden"},[bp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[vp]:{exposure:"hidden"},[Z0]:{exposure:"event"},[Q0]:{exposure:"hidden"},[J0]:{exposure:"event"},[X0]:{exposure:"hidden"},[ex]:{exposure:"event"},[tx]:{exposure:"event"},[_C]:{exposure:"event"},[ax]:{exposure:"hidden"},[ox]:{exposure:"event"},[yp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[pb]:{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(!La(t))return{};for(var e={},a=Object.keys(t),o=0;a.length>o;o++)e["$feature/"+a[o]]=t[a[o]];return e}},[xf]:{exposure:"event"},[Tp]:{exposure:"hidden"},[nx]:{exposure:"hidden"},[rx]:{exposure:"event"},[ix]:{exposure:"event"},[_i]:{exposure:"event"},[ld]:{exposure:"hidden"},[Sp]:{exposure:"hidden"},[_l]:{exposure:"hidden"},[sx]:{exposure:"hidden"},[lx]:{exposure:"event"},[Pf]:{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"},[mb]:{exposure:"hidden"},[vr]:{exposure:"hidden"},[ux]:{exposure:"hidden"},[px]:{exposure:"hidden"},[mx]:{exposure:"hidden"},[hx]:{exposure:"hidden"},[hb]:{exposure:"hidden"},[gb]:{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"}]],yb=t=>{var e=ze?.createElement("a");return $e(e)?null:(e.href=t,e)},Tb=function(t,e){for(var a,o=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;o.length>n;n++){var r=o[n].split("=");if(r[0]===e){a=r;break}}if(!Bt(a)||2>a.length)return"";var s=a[1];try{s=decodeURIComponent(s)}catch{qe.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},Yp=function(t,e,a){if(!t||!e||!e.length)return t;for(var o=t.split("#"),n=o[1],r=(o[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]+"="+a):u.push(d[m]))}var f=c;return s!=null&&(f+="?"+u.join("&")),n!=null&&(f+="#"+n),f},Sb=function(t,e){var a=t.match(new RegExp(e+"=([^&]*)"));return a?a[1]:null},ef="https?://(.*)",qd=["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",...qd],Zp="<masked>",Mle=["li_fat_id"];function $3(t,e,a){if(!ze)return{};var o,n=e?[...qd,...a||[]]:[],r=V3(Yp(ze.URL,n,Zp),t),s=(o={},fa(Mle,(function(c){var d=Wr.O(c);o[c]=d||null})),o);return Oa(s,r)}function V3(t,e){var a=Ole.concat(e||[]),o={};return fa(a,(function(n){var r=Tb(t,n);o[n]=r||null})),o}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),a=e!="yahoo"?"q":"p",o={};if(!ji(e)){o.$search_engine=e;var n=ze?Tb(ze.referrer,a):"";n.length&&(o.ph_keyword=n)}return o}function s2(){return navigator.language||navigator.userLanguage}var wb="$direct";function G3(){return ze?.referrer||wb}function W3(t,e){var a=t?[...qd,...e||[]]:[],o=xo?.href.substring(0,1e3);return{r:G3().substring(0,1e3),u:o?Yp(o,a,Zp):void 0}}function K3(t){var e,{r:a,u:o}=t,n={$referrer:a,$referring_domain:a==null?void 0:a==wb?wb:(e=yb(a))==null?void 0:e.host};if(o){n.$current_url=o;var r=yb(o);n.$host=r?.host,n.$pathname=r?.pathname;var s=V3(o);Oa(n,s)}if(a){var c=H3(a);Oa(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 JS{constructor(e,a){this.Bt=e,this.props={},this.mr=!1,this.yr=(o=>{var n="";return o.token&&(n=o.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),o.persistence_name?"ph_"+o.persistence_name:"ph_"+n+"_posthog"})(e),this.nr=this.br(e),this.load(),e.debug&&qe.info("Persistence loaded",e.persistence,Ne({},this.props)),this.update_config(e,e,a),this.save()}isDisabled(){return!!this._r}br(e){Ile.indexOf(e.persistence.toLowerCase())===-1&&(qe.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var a=(function(n){n===void 0&&(n=[]);var r=[...Ple,...n];return Ne({},Pa,{Z(s){try{var c={};try{c=Wr.Z(s)||{}}catch{}var d=Oa(c,JSON.parse(Pa.O(s)||"{}"));return Pa.M(s,d),d}catch{}return null},M(s,c,d,u,m,h){try{Pa.M(s,c,void 0,void 0,h);var f={};r.forEach((b=>{c[b]&&(f[b]=c[b])})),Object.keys(f).length&&Wr.M(s,f,d,u,m,h)}catch(b){Pa.B(b)}},F(s,c){try{ge?.localStorage.removeItem(s),Wr.F(s,c)}catch(d){Pa.B(d)}}})})(e.cookie_persisted_properties||[]),o=e.persistence.toLowerCase();return o==="localstorage"&&Pa.R()?Pa:o==="localstorage+cookie"&&a.R()?a:o==="sessionstorage"&&Po.R()?Po:o==="memory"?Cle:o==="cookie"?Wr:a.R()?a:Wr}wr(e){var a=e??this.Bt.feature_flag_cache_ttl_ms;if(!a||0>=a)return!1;var o=this.props[mb];return!o||typeof o!="number"||Date.now()-o>a}properties(){var e={};return fa(this.props,((a,o)=>{var n=(r=>{var s=Rle[r];if(s)return s;for(var[c,d]of Dle)if(r.indexOf(c)===0)return d})(o);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(a,o===fd?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Oa(e,n.transformToEventProperties(a))}else n&&n.exposure!=="event"||(e[o]=a)})),e}load(){if(!this._r){var e=this.nr.Z(this.yr);e&&(this.props=Oa({},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,a,o){if(La(e)){$e(a)&&(a="None"),this.Ir=$e(o)?this.kr:o;var n=!1;if(fa(e,((r,s)=>{this.props.hasOwnProperty(s)&&this.props[s]!==a||(this.Tr(s,r),n=!0)})),n)return this.save(),!0}return!1}register(e,a){if(La(e)){this.Ir=$e(a)?this.kr:a;var o=!1;if(fa(e,((n,r)=>{e.hasOwnProperty(r)&&this.props[r]!==n&&(this.Tr(r,n),o=!0)})),o)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=$3(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=yb(ze.referrer))==null?void 0:e.host)||wb},void 0)}set_initial_person_info(){this.props[mx]||this.props[hx]||this.register_once({[hb]:W3(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};fa([hx,mx],(s=>{var c=this.props[s];c&&fa(c,(function(d,u){e["$initial_"+H0(u)]=d}))}));var a,o,n=this.props[hb];if(n){var r=(a=K3(n),o={},fa(a,(function(s,c){o["$initial_"+H0(c)]=s})),o);Oa(e,r)}return e}safe_merge(e){return fa(this.props,(function(a,o){o in e||(e[o]=a)})),e}update_config(e,a,o){if(this.kr=this.Ir=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!o),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==a.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||[],a.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,a){var o=this.props[vp]||{};o[e]=a,this.Tr(vp,o),this.save()}remove_event_timer(e){var a=this.props[vp]||{},o=a[e];return $e(o)||(delete a[e],this.Tr(vp,a),this.save()),o}get_property(e){return this.props[e]}set_property(e,a){this.Tr(e,a),this.save()}Tr(e,a){this.props[e]=a}Ar(e){delete this.props[e]}}var ep={Activation:"events",Cancellation:"cancelEvents"},XS={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=Sa("[RateLimiter]");class Ble{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=a=>{var o=a.text;if(o&&o.length)try{(JSON.parse(o).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:o})}},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 a,o,n;e===void 0&&(e=!1);var{captureEventsBurstLimit:r,captureEventsPerSecond:s}=this,c=new Date().getTime(),d=(a=(o=this.instance.persistence)==null?void 0:o.get_property(px))!==null&&a!==void 0?a:{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 a=this.serverLimits[e||"events"]||!1;return a!==!1&&new Date().getTime()<a}}var tp=Sa("[RemoteConfig]");class Z3{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=at._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Er(e){var a,o;(a=at.__PosthogExtensions__)!=null&&a.loadExternalDependency?(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.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(a){e(a.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((a=>{this.Nr(a),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 a=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;a!==0&&(this.Or=setInterval((()=>{this.refresh()}),a))}}Nr(e){var a;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||(a=this._instance.featureFlags)==null||a.ensureFlagsLoaded())}}var qr={GZipJS:"gzip-js",Base64:"base64"},rr=Uint8Array,fn=Uint16Array,$d=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 a=new fn(31),o=0;31>o;++o)a[o]=e+=1<<t[o-1];var n=new $d(a[30]);for(o=1;30>o;++o)for(var r=a[o];a[o+1]>r;++r)n[r]=r-a[o]<<5|o;return[a,n]},J3=Q3(OC,2),bx=J3[1];J3[0][28]=258,bx[258]=28;for(var u2=Q3(MC,0)[1],X3=new fn(32768),ba=0;32768>ba;++ba){var Jc=(43690&ba)>>>1|(21845&ba)<<1;X3[ba]=((65280&(Jc=(61680&(Jc=(52428&Jc)>>>2|(13107&Jc)<<2))>>>4|(3855&Jc)<<4))>>>8|(255&Jc)<<8)>>>1}var kp=function(t,e,a){for(var o=t.length,n=0,r=new fn(e);o>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(o),n=0;o>n;++n)s[n]=X3[c[t[n]-1]++]>>>15-t[n];return s},ql=new rr(288);for(ba=0;144>ba;++ba)ql[ba]=8;for(ba=144;256>ba;++ba)ql[ba]=9;for(ba=256;280>ba;++ba)ql[ba]=7;for(ba=280;288>ba;++ba)ql[ba]=8;var xb=new rr(32);for(ba=0;32>ba;++ba)xb[ba]=5;var Fle=kp(ql,9),jle=kp(xb,5),e4=function(t){return(t/8>>0)+(7&t&&1)},t4=function(t,e,a){(a==null||a>t.length)&&(a=t.length);var o=new(t instanceof fn?fn:t instanceof $d?$d:rr)(a-e);return o.set(t.subarray(e,a)),o},Ei=function(t,e,a){var o=e/8>>0;t[o]|=a<<=7&e,t[o+1]|=a>>>8},ap=function(t,e,a){var o=e/8>>0;t[o]|=a<<=7&e,t[o+1]|=a>>>8,t[o+2]|=a>>>16},tw=function(t,e){for(var a=[],o=0;t.length>o;++o)t[o]&&a.push({s:o,f:t[o]});var n=a.length,r=a.slice();if(!n)return[new rr(0),0];if(n==1){var s=new rr(a[0].s+1);return s[a[0].s]=1,[s,1]}a.sort((function(_,D){return _.f-D.f})),a.push({s:-1,f:25001});var c=a[0],d=a[1],u=0,m=1,h=2;for(a[0]={s:-1,f:c.f+d.f,l:c,r:d};m!=n-1;)c=a[a[h].f>a[u].f?u++:h++],d=a[u!=m&&a[h].f>a[u].f?u++:h++],a[m++]={s:-1,f:c.f+d.f,l:c,r:d};var f=r[0].s;for(o=1;n>o;++o)r[o].s>f&&(f=r[o].s);var b=new fn(f+1),y=vx(a[m-1],b,0);if(y>e){o=0;var T=0,x=y-e,w=1<<x;for(r.sort((function(_,D){return b[D.s]-b[_.s]||_.f-D.f}));n>o;++o){var P=r[o].s;if(e>=b[P])break;T+=w-(1<<y-b[P]),b[P]=e}for(T>>>=x;T>0;){var k=r[o].s;e>b[k]?T-=1<<e-b[k]++-1:++o}for(;o>=0&&T;--o){var C=r[o].s;b[C]==e&&(--b[C],++T)}y=e}return[new rr(b),y]},vx=function(t,e,a){return t.s==-1?Math.max(vx(t.l,e,a+1),vx(t.r,e,a+1)):e[t.s]=a},p2=function(t){for(var e=t.length;e&&!t[--e];);for(var a=new fn(++e),o=0,n=t[0],r=1,s=function(d){a[o++]=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[a.subarray(0,o),e]},op=function(t,e){for(var a=0,o=0;e.length>o;++o)a+=t[o]*e[o];return a},yx=function(t,e,a){var o=a.length,n=e4(e+2);t[n]=255&o,t[n+1]=o>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var r=0;o>r;++r)t[n+r+4]=a[r];return 8*(n+4+o)},m2=function(t,e,a,o,n,r,s,c,d,u,m){Ei(e,m++,a),++n[256];for(var h=tw(n,15),f=h[0],b=h[1],y=tw(r,15),T=y[0],x=y[1],w=p2(f),P=w[0],k=w[1],C=p2(T),_=C[0],D=C[1],R=new fn(19),O=0;P.length>O;++O)R[31&P[O]]++;for(O=0;_.length>O;++O)R[31&_[O]]++;for(var L=tw(R,7),q=L[0],B=L[1],z=19;z>4&&!q[d2[z-1]];--z);var F,W,ae,H,K=u+5<<3,J=op(n,ql)+op(r,xb)+s,ie=op(n,f)+op(r,T)+s+14+3*z+op(R,q)+(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=kp(f,b),W=f,ae=kp(T,x),H=T;var Q=kp(q,B);for(Ei(e,m,k-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,q[d2[O]]);m+=3*z;for(var N=[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+=q[I],I>15&&(Ei(e,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=Fle,W=ql,ae=jle,H=xb;for(O=0;c>O;++O)if(o[O]>255){var I;ap(e,m,F[257+(I=o[O]>>>18&31)]),m+=W[I+257],I>7&&(Ei(e,m,o[O]>>>23&31),m+=OC[I]);var j=31&o[O];ap(e,m,ae[j]),m+=H[j],j>3&&(ap(e,m,o[O]>>>5&8191),m+=MC[j])}else ap(e,m,F[o[O]]),m+=W[o[O]];return ap(e,m,F[256]),m+W[256]},zle=new $d([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ule=(function(){for(var t=new $d(256),e=0;256>e;++e){for(var a=e,o=9;--o;)a=(1&a&&3988292384)^a>>>1;t[e]=a}return t})(),aw=function(t,e,a){for(;a;++e)t[e]=a,a>>>=8};function qle(t,e){e===void 0&&(e={});var a=(function(){var h=4294967295;return{p(f){for(var b=h,y=0;f.length>y;++y)b=Ule[255&b^f[y]]^b>>>8;h=b},d(){return 4294967295^h}}})(),o=t.length;a.p(t);var n,r,s,c,d,u=(c=10+((n=e).filename&&n.filename.length+1||0),d=8,(function(h,f,b,y,T,x){var w=h.length,P=new rr(y+w+5*(1+Math.floor(w/7e3))+T),k=P.subarray(y,P.length-T),C=0;if(!f||8>w)for(var _=0;w>=_;_+=65535){var D=_+65535;w>D?C=yx(k,C,h.subarray(_,D)):(k[_]=!0,C=yx(k,C,h.subarray(_,w)))}else{for(var R=zle[f-1],O=R>>>13,L=8191&R,q=(1<<b)-1,B=new fn(32768),z=new fn(q+1),F=Math.ceil(b/3),W=2*F,ae=function(He){return(h[He]^h[He+1]<<F^h[He+2]<<W)&q},H=new $d(25e3),K=new fn(288),J=new fn(32),ie=0,Q=0,N=(_=0,0),G=0,V=0;w>_;++_){var I=ae(_),j=32767&_,X=z[I];if(B[j]=X,z[I]=j,_>=G){var de=w-_;if((ie>7e3||N>24576)&&de>423){C=m2(h,k,0,H,K,J,Q,N,V,_-V,C),N=ie=Q=0,V=_;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==ae(_-ne))for(var be=Math.min(O,de)-1,se=Math.min(32767,_),xe=Math.min(258,de);se>=ne&&--Z&&j!=X;){if(h[_+Ce]==h[_+Ce-ne]){for(var ke=0;xe>ke&&h[_+ke]==h[_+ke-ne];++ke);if(ke>Ce){if(Ce=ke,Ue=ne,ke>be)break;var st=Math.min(ne,ke-2),ct=0;for(ue=0;st>ue;++ue){var Ge=_-ne+ue+32768&32767,ot=Ge-B[Ge]+32768&32767;ot>ct&&(ct=ot,X=Ge)}}}ne+=(j=X)-(X=B[j])+32768&32767}if(Ue){H[N++]=268435456|bx[Ce]<<18|u2[Ue];var Me=31&bx[Ce],Oe=31&u2[Ue];Q+=OC[Me]+MC[Oe],++K[257+Me],++J[Oe],G=_+Ce,++ie}else H[N++]=h[_],++K[h[_]]}}C=m2(h,k,!0,H,K,J,Q,N,V,_-V,C)}return t4(P,0,y+e4(C)+T)})(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 b=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&&aw(h,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),b){h[3]=8;for(var y=0;b.length>=y;++y)h[y+10]=b.charCodeAt(y)}})(u,e),aw(u,m-8,a.d()),aw(u,m-4,o),u}var $le=!!$0||!!q0,a4="text/plain",h2=!1,fv=function(t,e,a){var o;a===void 0&&(a=!0);var[n,r]=t.split("?"),s=Ne({},e),c=(o=r?.split("&").map((u=>{var m,[h,f]=u.split("="),b=a&&(m=s[h])!==null&&m!==void 0?m:f;return delete s[h],h+"="+b})))!==null&&o!==void 0?o:[],d=(function(u,m){var h,f;m===void 0&&(m="&");var b=[];return fa(u,(function(y,T){$e(y)||$e(T)||T==="undefined"||(h=encodeURIComponent((x=>x instanceof File)(y)?y.name:y.toString()),f=encodeURIComponent(T),b[b.length]=f+"="+h)})),b.join(m)})(s);return d&&c.push(d),n+"?"+c.join("&")},bd=(t,e)=>JSON.stringify(t,((a,o)=>typeof o=="bigint"?o.toString():o),e),ow=t=>{if(t.tr)return t.tr;var{data:e,compression:a}=t;if(e){if(a===qr.GZipJS){var o=qle((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},b=0;u>b;++b){if(h+5>m.length){var y=new rr(h+8+(u-b<<1));y.set(m),m=y}var T=c.charCodeAt(b);128>T?f(T):2048>T?(f(192|T>>>6),f(128|63&T)):T>55295&&57344>T?(f(240|(T=65536+(1047552&T)|1023&c.charCodeAt(++b))>>>18),f(128|T>>>12&63),f(128|T>>>6&63),f(128|63&T)):(f(224|T>>>12),f(128|T>>>6&63),f(128|63&T))}return t4(m,0,h)})(bd(e)),{mtime:0});return{contentType:a4,body:o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength),estimatedSize:o.byteLength}}if(a===qr.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,u)=>String.fromCharCode(parseInt(u,16)))))})(bd(e)),r=(c=>"data="+encodeURIComponent(typeof c=="string"?c:bd(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}var s=bd(e);return{contentType:"application/json",body:s,estimatedSize:new Blob([s]).size}}},Vle=(function(){var t=er((function*(e){var a=bd(e.data),o=yield(function(r,s,c){return V0.apply(this,arguments)})(a,Zo.DEBUG,{rethrow:!0});if(!o)return e;var n=yield o.arrayBuffer();return Ne({},e,{tr:{contentType:a4,body:n,estimatedSize:n.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),g2=(t,e)=>fv(t,{_:new Date().getTime().toString(),ver:Zo.JS_SDK_VERSION,compression:e}),Ef=[];q0&&Ef.push({transport:"fetch",method(t){var e,a,{contentType:o,body:n,estimatedSize:r}=(e=ow(t))!==null&&e!==void 0?e:{},s=new Headers;fa(t.headers,(function(m,h){s.append(h,m)})),o&&s.append("Content-Type",o);var c=t.url,d=null;if(GO){var u=new GO;d={signal:u.signal,timeout:setTimeout((()=>u.abort()),t.timeout)}}q0(c,Ne({method:t?.method||"GET",headers:s,keepalive:t.method==="POST"&&52428.8>(r||0),body:n,signal:(a=d)==null?void 0:a.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(b){qe.error(b)}t.callback==null||t.callback(f)})))).catch((m=>{qe.error(m),t.callback==null||t.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),$0&&Ef.push({transport:"XHR",method(t){var e,a=new $0;a.open(t.method||"GET",t.url,!0);var{contentType:o,body:n}=(e=ow(t))!==null&&e!==void 0?e:{};fa(t.headers,(function(r,s){a.setRequestHeader(s,r)})),o&&a.setRequestHeader("Content-Type",o),t.timeout&&(a.timeout=t.timeout),t.disableXHRCredentials||(a.withCredentials=!0),a.onreadystatechange=()=>{if(a.readyState===4){var r={statusCode:a.status,text:a.responseText};if(a.status===200)try{r.json=JSON.parse(a.responseText)}catch{}t.callback==null||t.callback(r)}},a.send(n)}}),Nn!=null&&Nn.sendBeacon&&Ef.push({transport:"sendBeacon",method(t){var e=fv(t.url,{beacon:"1"});try{var a,{contentType:o,body:n}=(a=ow(t))!==null&&a!==void 0?a:{};if(!n)return;var r=n instanceof Blob?n:new Blob([n],{type:o});Nn.sendBeacon(e,r)}catch{}}});var Tx=3e3;class Hle{constructor(e,a){this.Pr=!0,this.Lr=[],this.Dr=Yr(a?.flush_interval_ms||Tx,250,5e3,qe.createLogger("flush interval"),Tx),this.Br=e}enqueue(e){this.Lr.push(e),this.jr||this.$r()}unload(){this.qr();var e=this.Lr.length>0?this.Zr():{},a=Object.values(e);[...a.filter((o=>o.url.indexOf("/e")===0)),...a.filter((o=>o.url.indexOf("/e")!==0))].map((o=>{this.Br(Ne({},o,{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 a=this.Zr(),o=function(){var r=a[n],s=new Date().getTime();r.data&&Bt(r.data)&&fa(r.data,(c=>{c.offset=Math.abs(c.timestamp-s),delete c.timestamp})),e.Br(r)};for(var n in a)o()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var e={};return fa(this.Lr,(a=>{var o,n=a,r=(n?n.batchKey:null)||n.url;$e(e[r])&&(e[r]=Ne({},n,{data:[]})),(o=e[r].data)==null||o.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,!$e(ge)&&"onLine"in ge.navigator&&(this.zr=ge.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Za(ge,"online",this.Ur),Za(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(e){var{retriesPerformedSoFar:a}=e,o=r3(e,Gle);sd(a)&&(o.url=fv(o.url,{retry_count:a})),this._instance._send_request(Ne({},o,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(a??0)>=10?o.callback==null||o.callback(n):this.Wr(Ne({retriesPerformedSoFar:a},o))}}))}Wr(e){var a=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=a+1;var o=(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))})(a),n=Date.now()+o;this.Lr.push({retryAt:n,requestOptions:e});var r="Enqueued failed request for retry in "+o;navigator.onLine||(r+=" (Browser is offline)"),qe.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(),a=[],o=this.Lr.filter((r=>e>r.retryAt||(a.push(r),!1)));if(this.Lr=a,o.length>0)for(var{requestOptions:n}of o)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,$e(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(a){qe.error(a)}this.Lr=[]}}class Kle{constructor(e){this.Kr=()=>{var a,o,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,(a=this.Qr.maxScrollY)!==null&&a!==void 0?a:0),this.Qr.maxScrollHeight=Math.max(d,(o=this.Qr.maxScrollHeight)!==null&&o!==void 0?o: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(){Za(ge,"scroll",this.Kr,{capture:!0}),Za(ge,"scrollend",this.Kr,{capture:!0}),Za(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var e=Bt(this.ei)?this.ei:[this.ei];for(var a of e){var o=ge?.document.querySelector(a);if(o)return o}}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,a,o,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=a,this.ni=o,this.ii=n||Yle,this.si.onSessionId(this.ti)}ri(){return this.ni.props[ux]}getSetOnceProps(){var e,a=(e=this.ri())==null?void 0:e.props;return a?"r"in a?K3(a):{$referring_domain:a.referringDomain,$pathname:a.initialPathName,utm_source:a.utm_source,utm_campaign:a.utm_campaign,utm_medium:a.utm_medium,utm_content:a.utm_content,utm_term:a.utm_term}:{}}getSessionProps(){var e={};return fa(DC(this.getSetOnceProps()),((a,o)=>{o==="$current_url"&&(o="url"),e["$session_entry_"+H0(o)]=a})),e}}class NC{constructor(){this.oi={}}on(e,a){return this.oi[e]||(this.oi[e]=[]),this.oi[e].push(a),()=>{this.oi[e]=this.oi[e].filter((o=>o!==a))}}emit(e,a){for(var o of this.oi[e]||[])o(a);for(var n of this.oi["*"]||[])n(e,a)}}var nw=Sa("[SessionId]");class b2{on(e,a){return this.ai.on(e,a)}constructor(e,a,o){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=a||As,this.fi=o||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=Po.Z(this.gi),c=Po.Z(this.mi);s&&!c?this.ci=s:Po.F(this.gi),Po.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 $e(this.li)&&(this.li=[]),this.li.push(e),this.di&&e(this.di,this.ci),()=>{this.li=this.li.filter((a=>a!==e))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&Po.R()}Ii(e){e!==this.ci&&(this.ci=e,this.yi()&&Po.M(this.gi,e))}Ci(){return this.ci?this.ci:this.yi()?Po.Z(this.gi):null}bi(e,a,o){e===this.di&&a===this._sessionActivityTimestamp&&o===this._sessionStartTimestamp||(this._sessionStartTimestamp=o,this._sessionActivityTimestamp=a,this.di=e,this.ni.register({[pb]:[a,e,o]}))}Si(){var e=this.ni.props[pb];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(bb,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Po.F(this.mi)},Za(ge,bb,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(e,a){if(e===void 0&&(e=!1),a===void 0&&(a=null),this.Bt.cookieless_mode===Ri)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var o=a||new Date().getTime(),[n,r,s]=this.Si(),c=this.Ci(),d=sd(s)&&Math.abs(o-s)>864e5,u=!1,m=!r,h=!m&&!e&&this.hi(o,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=o,u=!0):c||(c=this.fi(),u=!0);var f=sd(n)&&e&&!d?n:o,b=sd(s)?s:new Date().getTime();return this.Ii(c),this.bi(r,f,b),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:b,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 a=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:a})}}),1.1*this.sessionTimeoutMs)}}var o4=function(t,e){if(!t)return!1;var a=t.userAgent;if(a&&YO(a,e))return!0;try{var o=t?.userAgentData;if(o!=null&&o.brands&&o.brands.some((n=>YO(n?.brand,e))))return!0}catch{}return!!t.webdriver},Pb=function(t,e){if(!(function(a){try{new RegExp(a)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function v2(t,e,a){return bd({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:a})}var n4={exact:(t,e)=>e.some((a=>t.some((o=>a===o)))),is_not:(t,e)=>e.every((a=>t.every((o=>a!==o)))),regex:(t,e)=>e.some((a=>t.some((o=>Pb(a,o))))),not_regex:(t,e)=>e.every((a=>t.every((o=>!Pb(a,o))))),icontains:(t,e)=>e.map(tf).some((a=>t.map(tf).some((o=>a.includes(o))))),not_icontains:(t,e)=>e.map(tf).every((a=>t.map(tf).every((o=>!a.includes(o))))),gt:(t,e)=>e.some((a=>{var o=parseFloat(a);return!isNaN(o)&&t.some((n=>o>parseFloat(n)))})),lt:(t,e)=>e.some((a=>{var o=parseFloat(a);return!isNaN(o)&&t.some((n=>o<parseFloat(n)))}))},tf=t=>t.toLowerCase();function r4(t,e){return!t||Object.entries(t).every((a=>{var[o,n]=a,r=e?.[o];if($e(r)||ji(r))return!1;var s=[String(r)],c=n4[n.operator];return!!c&&c(n.values,s)}))}var Sx="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,a=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return a||(a=this.apiHost.replace("."+y2,".posthog.com")),a==="https://app.posthog.com"?"https://us.posthog.com":a}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":Sx),this.ki[this.apiHost]}Ti(e){var a=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof a=="string"&&Zle.test(e))return a.trim().replace(/\/$/,"")||void 0}endpointFor(e,a){if(a===void 0&&(a=""),a&&(a=a[0]==="/"?a:"/"+a),e==="ui")return this.uiHost+a;if(e==="flags")return this.flagsApiHost+a;if(e==="assets"){var o=this.Ti(a);if(o)return""+o+a}if(this.region===Sx)return this.apiHost+a;var n=y2+a;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var aa=Sa("[Surveys]"),wx="seenSurvey_",Jle=[XS.Popover,XS.Widget,XS.API],Xle={ignoreConditions:!1,ignoreDelay:!1,displayType:fx.Popover},ece=Sa("[PostHog ExternalIntegrations]"),tce={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class ace{constructor(e){this._instance=e}ur(e,a){var o;(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,e,(n=>{if(n)return ece.error("failed to load script",n);a()}))}startIfEnabledOrStop(){var e=this,a=function(s){var c,d,u;!n||(c=at.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[s]||e.ur(tce[s],(()=>{var m;(m=at.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[s])==null||m.start(e._instance)})),!n&&(d=at.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[s]&&((u=at.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[s])==null||u.stop())};for(var[o,n]of Object.entries((r=this._instance.config.integrations)!==null&&r!==void 0?r:{})){var r;a(o)}}}var Xc,_p={},rw=0,xx=()=>{},T2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',np="Surveys module not available",S2="sanitize_properties is deprecated. Use before_send instead",i4="Invalid value for property_denylist config: ",dd="posthog",s4=!$le&&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:xo&&Ca(xo?.search)&&xo.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(a){qe.error("Bad HTTP status: "+a.statusCode+" "+a.text)},get_device_id:a=>a,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:Tx},error_tracking:{},_onCapture:xx,__preview_eager_load_replay:!1},(a=>({rageclick:!a||"2025-11-30">a||{content_ignorelist:!0},capture_pageview:!a||"2025-05-24">a||"history_change",session_recording:a&&a>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:a&&a>="2026-01-30"?"head":"body",internal_or_test_user_hostname:a&&a>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(t))},oce=[["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[a,o]of oce)$e(t[a])||(e[o]=t[a]);var n=Oa({},e,t);return Bt(t.property_blacklist)&&($e(t.property_denylist)?n.property_denylist=t.property_blacklist:Bt(t.property_denylist)?n.property_denylist=[...t.property_blacklist,...t.property_denylist]:qe.error(i4+t.property_denylist)),n};class nce{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(e){qe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class tr{Ei(e,a){if(e){var o=this.Ri.indexOf(e);o!==-1&&this.Ri.splice(o,1)}return this.Ri.push(a),a.initialize==null||a.initialize(),a}Ni(){return this.config.cookieless_mode===Ri||this.config.cookieless_mode===Al&&this.consent.isRejected()}get decideEndpointWasHit(){var e,a;return(e=(a=this.featureFlags)==null?void 0:a.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,a;return(e=(a=this.featureFlags)==null?void 0:a.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new nce,this.Mi=!1,this.version=Zo.LIB_VERSION,this.Fi=new NC,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=w2(),this.SentryIntegration=Ale,this.sentryIntegration=o=>(function(n,r){var s=q3(n,r);return{name:U3,processEvent:c=>s(c)}})(this,o),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 ace(this);var a=(e=tr.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=a.featureFlags&&new a.featureFlags(this),this.toolbar=a.toolbar&&new a.toolbar(this),this.surveys=a.surveys&&new a.surveys(this),this.conversations=a.conversations&&new a.conversations(this),this.logs=a.logs&&new a.logs(this),this.experiments=a.experiments&&new a.experiments(this),this.exceptions=a.exceptions&&new a.exceptions(this),this.people={set:(o,n,r)=>{var s=Ca(o)?{[o]:n}:o;this.setPersonProperties(s),r?.({})},set_once:(o,n,r)=>{var s=Ca(o)?{[o]:n}:o;this.setPersonProperties(void 0,s),r?.({})}},this.on("eventCaptured",(o=>qe.info('send "'+o?.event+'"',o)))}init(e,a,o){if(o&&o!==dd){var n,r=(n=_p[o])!==null&&n!==void 0?n:new tr;return r._init(e,a,o),_p[o]=r,_p[dd][o]=r,r}return this._init(e,a,o)}_init(e,a,o){var n,r;if(a===void 0&&(a={}),$e(e)||wf(e))return qe.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={},a.debug=this.Bi(a.debug),this.ji=a,this.$i=[],a.person_profiles?this.Li=a.person_profiles:a.process_person&&(this.Li=a.process_person),this.set_config(Oa({},w2(a.defaults),x2(a),{name:o,token:e})),this.config.on_xhr_error&&qe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=a.disable_compression?void 0:qr.GZipJS;var s=this.qi();this.persistence=new JS(this.config,s),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new JS(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 b2(this),this.sessionPropsManager=new f2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(qe.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(u)}),0)):(qe.info("Initializing extensions synchronously"),this.zi(u)),Zo.DEBUG=Zo.DEBUG||this.config.debug,Zo.DEBUG&&qe.info("Starting in debug mode",{this:this,config:a,thisC:Ne({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(n=a.bootstrap)!=null&&n.distinctID||(a.bootstrap=Ne({},a.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((r=a.bootstrap)==null?void 0:r.distinctID)!==void 0){var m=a.bootstrap.distinctID,h=this.get_distinct_id(),f=this.persistence.get_property(vr);if(a.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Zc)this.identify(m);else if(a.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Qc)qe.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 b=this.config.get_device_id(As()),y=a.bootstrap.isIdentifiedID?b:m;this.persistence.set_property(vr,a.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 T=this.config.get_device_id(As());this.register_once({distinct_id:T,$device_id:T},""),this.persistence.set_property(vr,Zc)}return Za(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),a.segment?(function(x,w){var P=x.config.segment;if(!P)return w();(function(k,C){var _=k.config.segment;if(!_)return C();var D=O=>{var L=()=>O.anonymousId()||As();k.config.get_device_id=L,O.id()&&(k.register({distinct_id:O.id(),$device_id:L()}),k.persistence.set_property(vr,Qc)),C()},R=_.user();"then"in R&&Ai(R.then)?R.then(D):D(R)})(x,(()=>{P.register((k=>{Promise&&Promise.resolve||QS.warn("This browser does not have Promise support, and can not use the segment integration");var C=(_,D)=>{if(!D)return _;_.event.userId||_.event.anonymousId===k.get_distinct_id()||(QS.info("No userId set, resetting PostHog"),k.reset()),_.event.userId&&_.event.userId!==k.get_distinct_id()&&(QS.info("UserId set, identifying with PostHog"),k.identify(_.event.userId));var R=k.calculateEventProperties(D,_.event.properties);return _.event.properties=Object.assign({},R,_.event.properties),_};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:_=>C(_,_.event.event),page:_=>C(_,cd),identify:_=>C(_,YS),screen:_=>C(_,"$screen")}})(x)).then((()=>{w()}))}))})(this,(()=>this.Ui())):this.Ui(),Ai(this.config._onCapture)&&this.config._onCapture!==xx&&(qe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(x=>this.config._onCapture(x.event,x)))),this.config.ip&&qe.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 a,o,n,r,s,c,d,u=performance.now(),m=Ne({},tr.__defaultExtensionClasses,this.config.__extensionClasses),h=[];m.featureFlags&&this.Ri.push(this.featureFlags=(a=this.featureFlags)!==null&&a!==void 0?a:new m.featureFlags(this)),m.exceptions&&this.Ri.push(this.exceptions=(o=this.exceptions)!==null&&o!==void 0?o: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,_le)),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,a){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-a>=30&&e.length>0)return void setTimeout((()=>{this.Gi(e,a)}),0);var o=e.shift();if(o)try{o()}catch(r){qe.error("Error initializing extension:",r)}}var n=Math.round(performance.now()-a);this.register_for_session({[L3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[B3]:n}),this.config.__preview_deferred_init_extensions&&qe.info("PostHog extensions initialized ("+n+"ms)")}Nr(e){var a;if(!ze||!ze.body)return qe.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,qr.GZipJS)?qr.GZipJS:Et(e.supportedCompression,qr.Base64)?qr.Base64:void 0),(a=e.analytics)!=null&&a.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:gx}),this.Ri.forEach((o=>o.onRemoteConfig==null?void 0:o.onRemoteConfig(e)))}Ui(){try{this.config.loaded(this)}catch(o){qe.critical("`loaded` function failed",o)}if(this.Xi(),this.config.internal_or_test_user_hostname&&xo!=null&&xo.hostname){var e=xo.hostname,a=this.config.internal_or_test_user_hostname;(typeof a=="string"?e===a:a.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,a,o,n;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(KS),(a=this.logs)==null||a.flushLogs("sendBeacon"),(o=this.Zi)==null||o.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(KS,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=fv(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,(a=>{var o,n,r,s=Ne({},a);s.timeout=s.timeout||6e4,s.url=g2(s.url,s.compression);var c=(o=s.transport)!==null&&o!==void 0?o:"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===qr.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(a.url,void 0)}));u(s)})):u(s)})(Ne({},e,{callback:a=>{var o,n;this.rateLimiter.checkForLimiting(a),400>a.statusCode||(o=(n=this.config).on_request_error)==null||o.call(n,a),e.callback==null||e.callback(a)}}))))}Vi(e){this.Hi?this.Hi.retriableRequest(e):this._send_request(e)}_execute_array(e){rw++;try{var a,o=[],n=[],r=[];Qg(e,(c=>{c&&(Bt(a=c[0])?r.push(c):Ai(c)?c.call(this):Bt(c)&&a==="alias"?o.push(c):Bt(c)&&a.indexOf("capture")!==-1&&Ai(this[a])?r.push(c):n.push(c))}));var s=function(c,d){Qg(c,(function(u){if(Bt(u[0])){var m=d;fa(u,(function(h){m=m[h[0]].apply(m,h.slice(1))}))}else d[u[0]].apply(d,u.slice(1))}))};s(o,this),s(n,this),s(r,this)}finally{rw--}}push(e){if(rw>0&&Bt(e)&&Ca(e[0])){var a=tr.prototype[e[0]];Ai(a)&&a.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,a,o){var n,r,s,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!$e(e)&&Ca(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||this.config.__preview_capture_bot_pageviews){var m=o!=null&&o.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(m==null||!m.isRateLimited){a!=null&&a.$current_url&&!Ca(a?.$current_url)&&(qe.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),a==null||delete a.$current_url),e!=="$exception"||o!=null&&o.en||qe.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=o?.timestamp||h,b=As(),y={uuid:b,event:e,properties:this.calculateEventProperties(e,a||{},f,b)};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),o?.$set&&(y.$set=o?.$set);var T,x,w,P=this.tn(o?.$set_once,e!==a2,e===YS);if(P&&(y.$set_once=P),o!=null&&o._noTruncate||(r=this.config.properties_string_max_length,s=y,c=L=>Ca(L)?L.slice(0,r):L,d=new Set,y=(function L(q,B){return q!==Object(q)?c?c(q):q:d.has(q)?void 0:(d.add(q),Bt(q)?(z=[],Qg(q,(F=>{z.push(L(F))}))):(z={},fa(q,((F,W)=>{d.has(F)||(z[W]=L(F))}))),z);var z})(s)),y.timestamp=f,$e(o?.timestamp)||(y.properties.$event_time_override_provided=!0,y.properties.$event_time_override_system_time=h),e===wp.DISMISSED||e===wp.SENT){var k=a?.[ew.SURVEY_ID],C=a?.[ew.SURVEY_ITERATION];(L=>{try{var q=(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(q))return;localStorage.setItem(q,"true")}catch(B){aa.error("Failed to persist survey seen state",B)}})({id:k,current_iteration:C}),y.$set=Ne({},y.$set,{[(T={id:k,current_iteration:C},x=e===wp.SENT?"responded":"dismissed",w="$survey_"+x+"/"+T.id,T.current_iteration&&T.current_iteration>0&&(w="$survey_"+x+"/"+T.id+"/"+T.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 _=a?.[l2.TOUR_TYPE];_&&(y.$set=Ne({},y.$set,{[l2.TOUR_LAST_SEEN_DATE+"/"+_]:new Date().toISOString()}))}var D=Ne({},y.properties.$set,y.$set);if(gd(D)||this.setPersonPropertiesForFlags(D),!kt(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=o?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:y,compression:"best-available",batchKey:o?._batchKey};return!this.config.request_batching||o&&(o==null||!o._batchKey)||o!=null&&o.send_instantly?this.Vi(O):this.Zi.enqueue(O),y}qe.critical("This capture call is ignored due to client rate limiting.")}}else qe.error("No event name provided to posthog.capture")}else qe.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(a=>e(a.event,a)))}calculateEventProperties(e,a,o,n,r){if(o=o||new Date,!this.persistence||!this.sessionPersistence)return a;var s=r?void 0:this.persistence.remove_event_timer(e),c=Ne({},a);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,(!Ca(c.distinct_id)&&!ir(c.distinct_id)||wf(c.distinct_id))&&qe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var u,m=(function(w,P){var k,C,_,D;if(!mn)return{};var R,O,L,q,B,z,F,W,ae=w?[...qd,...P||[]]:[],[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 Oa(DC({$os:H,$os_version:K,$browser:P3(mn,navigator.vendor),$device:XO(mn),$device_type:(O=mn,L={userAgentDataPlatform:(k=navigator)==null||(k=k.userAgentData)==null?void 0:k.platform,maxTouchPoints:(C=navigator)==null?void 0:C.maxTouchPoints,screenWidth:ge==null||(_=ge.screen)==null?void 0:_.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"&&((q=L?.maxTouchPoints)!==null&&q!==void 0?q: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(xo?.href,ae,Zp),$host:xo?.host,$pathname:xo?.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:Zo.LIB_NAME,$lib_version:Zo.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,o.getTime());c.$session_id=h,c.$window_id=f}this.sessionPropsManager&&Oa(c,this.sessionPropsManager.getSessionProps());try{var b;this.sessionRecording&&Oa(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(b=this.Hi)==null?void 0:b.length}catch(w){c.$sdk_debug_error_capturing_properties=String(w)}if(this.requestRouter.region===Sx&&(c.$lib_custom_api_host=this.config.api_host),u=e!==cd||r?e!==KS||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(o):this.pageViewManager.doPageView(o,n),c=Oa(c,u),e===cd&&ze&&(c.title=ze.title),!$e(s)){var y=o.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=Oa({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Bt(this.config.property_denylist)?fa(this.config.property_denylist,(function(w){delete c[w]})):qe.error(i4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var T=this.config.sanitize_properties;T&&(qe.error(S2),c=T(c,e));var x=this.nn();return c.$process_person_profile=x,x&&!r&&this.sn("_calculate_event_properties"),c}tn(e,a,o){var n;if(a===void 0&&(a=!0),o===void 0&&(o=!1),!this.persistence||!this.nn()||this.Mi&&!o)return e;var r=this.persistence.get_initial_props(),s=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Oa({},r,s||{},e||{}),d=this.config.sanitize_properties;return d&&(qe.error(S2),c=d(c,"$set_once")),a&&(this.Mi=!0),gd(c)?void 0:c}register(e,a){var o;(o=this.persistence)==null||o.register(e,a)}register_once(e,a,o){var n;(n=this.persistence)==null||n.register_once(e,a,o)}register_for_session(e){var a;(a=this.sessionPersistence)==null||a.register(e)}unregister(e){var a;(a=this.persistence)==null||a.unregister(e)}unregister_for_session(e){var a;(a=this.sessionPersistence)==null||a.unregister(e)}an(e,a){this.register({[e]:a})}getFeatureFlag(e,a){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlag(e,a)}getFeatureFlagPayload(e){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagPayload(e)}getFeatureFlagResult(e,a){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagResult(e,a)}isFeatureEnabled(e,a){var o;return(o=this.featureFlags)==null?void 0:o.isFeatureEnabled(e,a)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,a,o){var n;(n=this.featureFlags)==null||n.updateFlags(e,a,o)}updateEarlyAccessFeatureEnrollment(e,a,o){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(e,a,o)}getEarlyAccessFeatures(e,a,o){var n;return a===void 0&&(a=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(e,a,o)}on(e,a){return this.Fi.on(e,a)}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 a,o;return(a=(o=this.sessionManager)==null?void 0:o.onSessionId(e))!==null&&a!==void 0?a:()=>{}}getSurveys(e,a){a===void 0&&(a=!1),this.surveys?this.surveys.getSurveys(e,a):e([],{isLoaded:!1,error:np})}getActiveMatchingSurveys(e,a){a===void 0&&(a=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,a):e([],{isLoaded:!1,error:np})}renderSurvey(e,a){var o;(o=this.surveys)==null||o.renderSurvey(e,a)}displaySurvey(e,a){var o;a===void 0&&(a=Xle),(o=this.surveys)==null||o.displaySurvey(e,a)}cancelPendingSurvey(e){var a;(a=this.surveys)==null||a.cancelPendingSurvey(e)}canRenderSurvey(e){var a,o;return(a=(o=this.surveys)==null?void 0:o.canRenderSurvey(e))!==null&&a!==void 0?a:{visible:!1,disabledReason:np}}canRenderSurveyAsync(e,a){var o,n;return a===void 0&&(a=!1),(o=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(e,a))!==null&&o!==void 0?o:Promise.resolve({visible:!1,disabledReason:np})}ln(e){return!e||wf(e)?(qe.critical("Unique user id has not been set in posthog.identify"),!1):e===Zg?(qe.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())||(qe.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,a,o){if(!this.__loaded||!this.persistence)return qe.uninitializedWarning("posthog.identify");if(ir(e)&&(e=e.toString(),qe.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(ub)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(bp)&&(this.unregister(bp),this.register({distinct_id:e}));var r,s=(this.persistence.get_property(vr)||Zc)===Zc;e!==n&&s?(this.persistence.set_property(vr,Qc),this.setPersonPropertiesForFlags({$set:a||{},$set_once:o||{}},!1),this.capture(YS,{distinct_id:e,$anon_distinct_id:n},{$set:a||{},$set_once:o||{}}),this.Di=v2(e,a,o),(r=this.featureFlags)==null||r.setAnonymousDistinctId(n)):(a||o)&&this.setPersonProperties(a,o),e!==n&&(this.reloadFeatureFlags(),this.unregister(Ep))}}setPersonProperties(e,a){if((e||a)&&this.sn("posthog.setPersonProperties")){var o=v2(this.get_distinct_id(),e,a);this.Di!==o?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:a||{}},!0),this.capture("$set",{$set:e||{},$set_once:a||{}}),this.Di=o):qe.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,a,o){if(e&&a){var n=this.getGroups(),r=n[e]!==a;if(r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:Ne({},n,{[e]:a})}),r||o){var s={$group_type:e,$group_key:a};o&&(s.$group_set=o),this.capture(a2,s)}o&&this.setGroupPropertiesForFlags({[e]:o}),r&&!o&&this.reloadFeatureFlags()}else qe.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,a){var o;a===void 0&&(a=!0),(o=this.featureFlags)==null||o.setPersonPropertiesForFlags(e,a)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,a){var o;a===void 0&&(a=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((o=this.featureFlags)==null||o.setGroupPropertiesForFlags(e,a))}resetGroupPropertiesForFlags(e){var a;(a=this.featureFlags)==null||a.resetGroupPropertiesForFlags(e)}reset(e){var a,o,n,r,s,c,d,u;if(qe.info("reset"),!this.__loaded)return qe.uninitializedWarning("posthog.reset");var m=this.get_property(ub);if(this.consent.reset(),(a=this.persistence)==null||a.clear(),(o=this.sessionPersistence)==null||o.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(vr,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,a){var o;this.config.identity_distinct_id=e,this.config.identity_hash=a,this.alias(e),(o=this.conversations)==null||o.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,a;return(e=(a=this.sessionManager)==null?void 0:a.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:a,sessionStartTimestamp:o}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+a);if(e!=null&&e.withTimestamp&&o){var r,s=(r=e.timestampLookBack)!==null&&r!==void 0?r:10;if(!o)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-o)/1e3)-s,0)}return n}alias(e,a){return e===this.get_property(R3)?(qe.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?($e(a)&&(a=this.get_distinct_id()),e!==a?(this.an(bp,e),this.capture("$create_alias",{alias:e,distinct_id:a})):(qe.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var a=Ne({},this.config);if(La(e)){var o,n,r,s,c,d,u,m,h,f;Oa(this.config,x2(e));var b=this.qi();(o=this.persistence)==null||o.update_config(this.config,a,b),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new JS(Ne({},this.config,{persistence:"sessionStorage"}),b);var y=this.Bi(this.config.debug);Kr(y)&&(this.config.debug=y),Kr(this.config.debug)&&(this.config.debug?(Zo.DEBUG=!0,Pa.R()&&Pa.M("ph_debug",!0),qe.info("set_config",{config:e,oldConfig:a,newConfig:Ne({},this.config)})):(Zo.DEBUG=!1,Pa.R()&&Pa.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,a){Zo.LIB_NAME=e,Zo.LIB_VERSION=a}startSessionRecording(e){var a,o,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)&&((a=this.sessionManager)==null||a.checkAndGetSessionAndWindowId(),d.sampling&&((o=this.sessionRecording)==null||o.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,a){if(this.exceptions){var o=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:o});return this.exceptions.sendExceptionEvent(Ne({},n,a))}}addExceptionStep(e,a){var o;(o=this.exceptions)==null||o.addExceptionStep(e,a)}captureLog(e){var a;(a=this.logs)==null||a.captureLog(e)}get logger(){var e,a;return(e=(a=this.logs)==null?void 0:a.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 a,o;return(a=(o=this.toolbar)==null?void 0:o.loadToolbar(e))!==null&&a!==void 0&&a}get_property(e){var a;return(a=this.persistence)==null?void 0:a.props[e]}getSessionProperty(e){var a;return(a=this.sessionPersistence)==null?void 0:a.props[e]}toString(){var e,a=(e=this.config.name)!==null&&e!==void 0?e:dd;return a!==dd&&(a=dd+"."+a),a}_isIdentified(){var e,a;return((e=this.persistence)==null?void 0:e.get_property(vr))===Qc||((a=this.sessionPersistence)==null?void 0:a.get_property(vr))===Qc}nn(){var e,a;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[bp])&&((a=this.persistence)==null||(a=a.props)==null||!a[gb]))}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"?(qe.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(gb,!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,a,o,n,r=this.qi();return((e=this.persistence)==null?void 0:e._r)!==r&&((o=this.persistence)==null||o.set_disabled(r)),((a=this.sessionPersistence)==null?void 0:a._r)!==r&&((n=this.sessionPersistence)==null||n.set_disabled(r)),r}opt_in_capturing(e){var a;if(this.config.cookieless_mode!==Ri){if(this.Ni()){var o,n,r,s,c;this.reset(!0),(o=this.sessionManager)==null||o.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new b2(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(),(a=this.sessionRecording)==null||a.startIfEnabledOrStop(),this.config.cookieless_mode==Al&&((m=this.surveys)==null||m.loadIfEnabled()),($e(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 qe.warn(T2)}opt_out_capturing(){var e,a,o;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(),(a=this.pageViewManager)==null||a.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(o=this.sessionRecording)==null||o.stopRecording(),this.sessionRecording=void 0,this.Ji())):qe.warn(T2)}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?o4(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(fb,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Za(ze,fb,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,a,o,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?(qe.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):(o="advanced_disable_decide",n=qe,r=(a="advanced_disable_flags")in(e=c)&&!kt(e[a]),s=o in e&&!kt(e[o]),r?e[a]:!!s&&(n&&n.warn("Config field '"+o+"' is deprecated. Please use '"+a+"' instead. The old field will be removed in a future major version."),e[o]))}rn(e){if(kt(this.config.before_send))return e;var a=Bt(this.config.before_send)?this.config.before_send:[this.config.before_send],o=e;for(var n of a){if(o=n(o),kt(o)){var r="Event '"+e.event+"' was rejected in beforeSend function";return Mse(e.event)?qe.warn(r+". This can cause unexpected behavior."):qe.info(r),null}o.properties&&!gd(o.properties)||qe.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return o}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,a){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:a})}captureTraceMetric(e,a,o){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:a,$ai_metric_value:String(o)})}Bi(e){var a=Kr(e)&&!e,o=Pa.R()&&Pa.O("ph_debug")==="true";return!a&&(!!o||e)}}function P2(t){return t instanceof Element&&(t.id===I3||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function bv(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?hv(t).split(/\s+/):[]}function C2(t){var e=ge?.location.href;return!!(e&&t&&t.some((a=>e.match(a))))}function Cb(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 kt(t)?null:hv(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&&fa(t.childNodes,(function(a){var o;l4(a)&&a.textContent&&(e+=(o=d4(a.textContent))!==null&&o!==void 0?o:"")})),hv(e)}function E2(t){return $e(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 a=0;e.length>a;a++)t.prototype[e[a]]=ble(t.prototype[e[a]])})(tr,["identify"]);var LC=["a","button","form","input","select","textarea","label"];function k2(t,e){if($e(e))return!0;var a,o=function(r){if(e.some((s=>r.matches(s))))return{v:!0}};for(var n of t)if(a=o(n))return a.v;return!1}function u4(t){var e=t.parentNode;return!(!e||!bv(e))&&e}var rce=["next","previous","prev",">","<"],_2=[".ph-no-rageclick",".ph-no-capture"],Px=t=>!t||Fs(t,"html")||!bv(t),A2=(t,e)=>{if(!ge||Px(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var a=!1,o=[t],n=t;n.parentNode&&!Fs(n,"body");)if(c4(n.parentNode))o.push(n.parentNode.host),n=n.parentNode.host;else{var r=u4(n);if(!r)break;if(e||LC.indexOf(r.tagName.toLowerCase())>-1)a=!0;else{var s=ge.getComputedStyle(r);s&&s.getPropertyValue("cursor")==="pointer"&&(a=!0)}o.push(r),n=r}return{parentIsUsefulElement:a,targetElementList:o}};function Cx(t){for(var e=t;e.parentNode&&!Fs(e,"body");e=e.parentNode){var a=Cb(e);if(Et(a,"ph-sensitive")||Et(a,"ph-no-capture"))return!1}if(Et(Cb(t),"ph-include"))return!0;var o=t.type||"";if(Ca(o))switch(o.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!Ca(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),!(kt(t)||Ca(t)&&(t=hv(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&&fa(t.childNodes,(function(a){var o;if(a&&((o=a.tagName)==null?void 0:o.toLowerCase())==="span")try{var n=Qp(a);e=(e+" "+n).trim(),a.childNodes&&a.childNodes.length&&(e=(e+" "+g4(a)).trim())}catch(r){qe.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 a=La(e)?e:{};this.thresholdPx=a.threshold_px||30,this.timeoutMs=a.timeout_ms||1e3,this.clickCount=a.click_count||3,this.clicks=[]}isRageClick(e,a,o){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(a-n.y)<this.thresholdPx&&this.timeoutMs>o-n.timestamp){if(this.clicks.push({x:e,y:a,timestamp:o}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:a,timestamp:o}];return!1}}var iw="$copy_autocapture",M2=Sa("[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&&!bv(e));return e}function pce(t,e){for(var a,o,{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,b=[],y={},T=!1,x=!1;if(fa(u,(_=>{var D=Cx(_);_.tagName.toLowerCase()==="a"&&(T=_.getAttribute("href"),T=D&&T&&Ap(T)&&T),Et(Cb(_),"ph-no-capture")&&(x=!0),b.push((function(O,L,q,B){var z=O.tagName.toLowerCase(),F={tag_name:z};LC.indexOf(z)>-1&&!q&&(F.$el_text=z.toLowerCase()==="a"||z.toLowerCase()==="button"?sw(1024,R2(O)):sw(1024,Qp(O)));var W=Cb(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),fa(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)&&(!Ca(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 ae=1,H=1,K=O;K=uce(K);)ae++,K.tagName===O.tagName&&H++;return F.nth_child=ae,F.nth_of_type=H,F})(_,r,s,c));var R=(function(O){if(!Cx(O))return{};var L={};return fa(O.attributes,(function(q){if(q.name&&q.name.indexOf("data-ph-capture-attribute")===0){var B=q.name.replace("data-ph-capture-attribute-",""),z=q.value;B&&z&&Ap(z)&&(L[B]=z)}})),L})(_);Oa(y,R)})),x)return{props:{},explicitNoCapture:x};if(s||(b[0].$el_text=t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?R2(t):Qp(t)),T){var w,P;b[0].attr__href=T;var k=(w=yb(T))==null?void 0:w.host,C=ge==null||(P=ge.location)==null?void 0:P.host;k&&C&&k!==C&&(h=T)}return{props:Oa({$event_type:n.type,$ce_version:1},d?{}:{$elements:b},{$elements_chain:(f=b,(function(_){return _.map((D=>{var R,O,L="";if(D.tag_name&&(L+=D.tag_name),D.attr_class)for(var q of(D.attr_class.sort(),D.attr_class))L+="."+q.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[ae]=F,[H]=W;return ae.localeCompare(H)})).forEach((F=>{var[W,ae]=F;return z[D2(W.toString())]=D2(ae.toString())})),(L+=":")+Cf(z).map((F=>{var[W,ae]=F;return W+'="'+ae+'"'})).join("")})).join(";")})((function(_){return _.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((q=>{var[B]=q;return B.indexOf("attr__")===0})).forEach((q=>{var[B,z]=q;return L.attributes[B]=z})),L}))})(f)))},(a=b[0])!=null&&a.$el_text?{$el_text:(o=b[0])==null?void 0:o.$el_text}:{},h&&n.type==="click"?{$external_click_url:h}:{},y)}}var rp=Sa("[ExceptionAutocapture]");function N2(t,e,a){try{if(!(e in t))return()=>{};var o=t[e],n=a(o);return Ai(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=n,()=>{t[e]=o}}catch{return()=>{}}}var mce=Sa("[TracingHeaders]"),bs=Sa("[Web Vitals]"),I2=9e5,L2="disabled",B2="lazy_loading",ip="awaiting_config",af="missing_config";Sa("[SessionRecording]"),Sa("[SessionRecording]");var Ex="[SessionRecording]",vs=Sa(Ex),hce=Sa("[Heatmaps]");function F2(t){return La(t)&&"clientX"in t&&"clientY"in t&&ir(t.clientX)&&ir(t.clientY)}var j2=Sa("[Product Tours]"),gce=["$set_once","$set"],ys=Sa("[SiteApps]"),z2="Error while initializing PostHog app with config id ";function ed(t,e,a){if(kt(t))return!1;switch(a){case"exact":return t===e;case"contains":var o=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(o,"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=(a,o)=>this.pn(a,o)&&this.gn(a,o)&&this.mn(a,o)&&this.yn(a,o),this.pn=(a,o)=>o==null||!o.event||a?.event===o?.event,this._instance=e,this.bn=new Set,this._n=new Set}init(){var e,a;$e((e=this._instance)==null?void 0:e._addCaptureHook)||(a=this._instance)==null||a._addCaptureHook(((o,n)=>{this.on(o,n)}))}register(e){var a,o;if(!$e((a=this._instance)==null?void 0:a._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||"")}))})),(o=this._instance)!=null&&o.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,a){var o;a!=null&&e.length!=0&&(this.bn.has(e)||this.bn.has(a?.event))&&this._n&&((o=this._n)==null?void 0:o.size)>0&&this._n.forEach((n=>{this.wn(a,n)&&this.vn.emit("actionCaptured",n.name)}))}In(e){this.onAction("actionCaptured",(a=>e(a)))}wn(e,a){if(a?.steps==null)return!1;for(var o of a.steps)if(this.fn(e,o))return!0;return!1}onAction(e,a){return this.vn.on(e,a)}gn(e,a){if(a!=null&&a.url){var o,n=e==null||(o=e.properties)==null?void 0:o.$current_url;if(!n||typeof n!="string"||!ed(n,a.url,a.url_matching||"contains"))return!1}return!0}mn(e,a){return!!this.Cn(e,a)&&!!this.Sn(e,a)&&!!this.xn(e,a)}Cn(e,a){var o;if(a==null||!a.href)return!0;var n=this.kn(e);if(n.length>0)return n.some((c=>ed(c.href,a.href,a.href_matching||"exact")));var r,s=(e==null||(o=e.properties)==null?void 0:o.$elements_chain)||"";return!!s&&ed((r=s.match(/(?::|")href="(.*?)"/))?r[1]:"",a.href,a.href_matching||"exact")}Sn(e,a){var o;if(a==null||!a.text)return!0;var n=this.kn(e);if(n.length>0)return n.some((u=>ed(u.text,a.text,a.text_matching||"exact")||ed(u.$el_text,a.text,a.text_matching||"exact")));var r,s,c,d=(e==null||(o=e.properties)==null?void 0:o.$elements_chain)||"";return!!d&&(r=(function(u){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!kt(m=f.exec(u));)h.includes(m[1])||h.push(m[1]);return h})(d),s=a.text,c=a.text_matching||"exact",r.some((u=>ed(u,s,c))))}xn(e,a){var o,n;if(a==null||!a.selector)return!0;var r=e==null||(o=e.properties)==null?void 0:o.$element_selectors;if(r!=null&&r.includes(a.selector))return!0;var s=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";if(a.selector_regex&&s)try{return new RegExp(a.selector_regex).test(s)}catch{return!1}return!1}kn(e){var a;return(e==null||(a=e.properties)==null?void 0:a.$elements)==null?[]:e?.properties.$elements}yn(e,a){return a==null||!a.properties||a.properties.length===0||r4(a.properties.reduce(((o,n)=>{var r=Bt(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return o[n.key]={values:r,operator:n.operator||"exact"},o}),{}),e?.properties)}}class bce{constructor(e){this._instance=e,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(e,a){return!!e&&r4(e.propertyFilters,a?.properties)}Nn(e,a){var o=new Map;return e.forEach((n=>{var r;(r=n.conditions)==null||(r=r[a])==null||(r=r.values)==null||r.forEach((s=>{if(s!=null&&s.name){var c=o.get(s.name)||[];c.push(n.id),o.set(s.name,c)}}))})),o}Mn(e,a,o){var n=(o===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[o])==null||(c=c.values)==null?void 0:c.find((u=>u.name===e));return this.Rn(d,a)}))}register(e){var a;$e((a=this._instance)==null?void 0:a._addCaptureHook)||(this.On(e),this.Pn(e))}Pn(e){var a=e.filter((o=>{var n,r;return((n=o.conditions)==null?void 0:n.actions)&&((r=o.conditions)==null||(r=r.actions)==null||(r=r.values)==null?void 0:r.length)>0}));a.length!==0&&(this.Ln==null&&(this.Ln=new fce(this._instance),this.Ln.init(),this.Ln.In((o=>{this.onAction(o)}))),a.forEach((o=>{var n,r,s,c,d;o.conditions&&(n=o.conditions)!=null&&n.actions&&(r=o.conditions)!=null&&(r=r.actions)!=null&&r.values&&((s=o.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0&&((c=this.Ln)==null||c.register(o.conditions.actions.values),(d=o.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(o.id),this.En.set(u.name,m||[o.id])}})))})))}On(e){var a,o=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}));o.length===0&&n.length===0||((a=this._instance)==null||a._addCaptureHook(((r,s)=>{this.onEvent(r,s)})),this.Tn=this.Nn(e,ep.Activation),this.An=this.Nn(e,ep.Cancellation))}onEvent(e,a){var o,n=this.le(),r=this.Dn(),s=this.Bn(),c=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[r])||[];if(s===e&&a&&c.length>0){var d,u;n.info("event matched, removing item from activated items",{event:e,eventPayload:a,existingActivatedItems:c});var m=(a==null||(d=a.properties)==null?void 0:d.$survey_id)||(a==null||(u=a.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,a,ep.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:f.map((y=>y.id))}),f.forEach((y=>{var T=c.indexOf(y.id);0>T||c.splice(T,1),this.$n(y.id)})),this.jn(c))}if(this.Tn.has(e)){n.info("event name matched",{event:e,eventPayload:a,items:this.Tn.get(e)});var b=this.Mn(e,a,ep.Activation);this.jn(c.concat(b.map((y=>y.id))||[]))}}}onAction(e){var a,o=this.Dn(),n=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[o])||[];this.En.has(e)&&this.jn(n.concat(this.En.get(e)||[]))}jn(e){var a=this.le(),o=[...new Set(e)].filter((n=>!this.qn(n)));a.info("updating activated items",{activatedItems:o}),this.Zn(o)}getActivatedIds(){var e,a=this.Dn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[a])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class vce extends bce{constructor(e){super(e)}Dn(){return lx}Bn(){return wp.SHOWN}Fn(e){var a;(a=this._instance)==null||a.getSurveys(e)}$n(e){var a;(a=this._instance)==null||a.cancelPendingSurvey(e)}le(){return aa}Zn(e){var a;(a=this._instance)==null||(a=a.persistence)==null||a.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?Sb(ge.location.hash,"__posthog")||Sb(location.hash,"state"):null,q2="_postHogToolbarParams",$2=Sa("[Toolbar]"),Wo=Sa("[FeatureFlags]"),Pl=Sa("[FeatureFlags]",{debugEnabled:!0}),cw=`" failed. Feature flags didn't load in time.`,V2=t=>{for(var e={},a=0;t.length>a;a++)e[t[a]]=!0;return e},H2=t=>{var e={};for(var[a,o]of Cf(t||{}))o&&(e[a]=o);return e},ki=Sa("[Error tracking]"),G2="Refusing to render web experiment since the viewer is a likely bot",Tce={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&&Pb(e.href,t),not_regex:(t,e)=>!!ge&&!Pb(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class Lo{get Bt(){return this._instance.config}constructor(e){var a=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(o){o===void 0&&(o=!1),a.getWebExperiments((n=>{Lo.Hn("retrieved web experiments from the server"),a.zn=new Map,n.forEach((r=>{if(r.feature_flag_key){var s;a.zn&&(Lo.Hn("setting flag key ",r.feature_flag_key," to web experiment ",r),(s=a.zn)==null||s.set(r.feature_flag_key,r));var c=a._instance.getFeatureFlag(r.feature_flag_key);Ca(c)&&r.variants[c]&&a.Un(r.name,c,r.variants[c].transforms)}else if(r.variants)for(var d in r.variants){var u=r.variants[d];Lo.Yn(u)&&a.Un(r.name,d,u.transforms)}}))}),o)},this._instance=e,this._instance.onFeatureFlags((o=>{this.onFeatureFlags(o)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())Lo.Hn(G2);else if(!this.Bt.disable_web_experiments){if(kt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Lo.Hn("applying feature flags",e),e.forEach((a=>{var o;if(this.zn&&(o=this.zn)!=null&&o.has(a)){var n,r=this._instance.getFeatureFlag(a),s=(n=this.zn)==null?void 0:n.get(a);r&&s!=null&&s.variants[r]&&this.Un(s.name,r,s.variants[r].transforms)}}))}}previewWebExperiment(){var e=Lo.getWindowLocation();if(e!=null&&e.search){var a=Tb(e?.search,"__experiment_id"),o=Tb(e?.search,"__experiment_variant");a&&o&&(Lo.Hn("previewing web experiments "+a+" && "+o),this.getWebExperiments((n=>{this.Gn(parseInt(a),o,n)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,a,o){if(this.Bt.disable_web_experiments&&!o)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!a)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,a,o){var n=o.filter((r=>r.id===e));n&&n.length>0&&(Lo.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+a+"]"),this.Un(n[0].name,a,n[0].variants[a].transforms))}static Yn(e){return!kt(e.conditions)&&Lo.Wn(e)&&Lo.Xn(e)}static Wn(e){var a;if(kt(e.conditions)||kt((a=e.conditions)==null?void 0:a.url))return!0;var o,n,r,s=Lo.getWindowLocation();return!!s&&((o=e.conditions)==null||!o.url||Tce[(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 a;if(kt(e.conditions)||kt((a=e.conditions)==null?void 0:a.utm))return!0;var o=$3();if(o.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)==o.utm_campaign,b=(s=e.conditions)==null||(s=s.utm)==null||!s.utm_source||((c=e.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==o.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)==o.utm_medium,T=(m=e.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=e.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==o.utm_term;return f&&y&&T&&b}return!1}static Hn(e){for(var a=arguments.length,o=new Array(a>1?a-1:0),n=1;a>n;n++)o[n-1]=arguments[n];qe.info("[WebExperiments] "+e,o)}Un(e,a,o){this._is_bot()?Lo.Hn(G2):a!=="control"?o.forEach((n=>{if(n.selector){var r;Lo.Hn("applying transform of variant "+a+" 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)}))}})):Lo.Hn("Control variants leave the page unmodified.")}_is_bot(){return Nn&&this._instance?o4(Nn,this.Bt.custom_blocked_useragents):void 0}}var Zn=Sa("[Conversations]"),Cl="Conversations not available yet.",vv={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,Wo.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||(Wo.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((a=>{var o=a&&typeof a=="string"&&a.trim().length>0;return o||Wo.error("Invalid evaluation context found:",a,"Expected non-empty string"),o})):[]}cs(){return this.hs().length>0}initialize(){var t,e,{config:a}=this._instance,o=(t=(e=a.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(o).length){var n,r,s=(n=(r=a.bootstrap)==null?void 0:r.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(o).filter((u=>!!o[u])).reduce(((u,m)=>(u[m]=o[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,a){var o=a!=null&&a.merge?this.getFlagVariants():{},n=a!=null&&a.merge?this.getFlagPayloads():{},r=Ne({},o,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:$e(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(_i),a=this.os(ld);if(!a&&!e)return t||{};var o=Oa({},t||{}),n=[...new Set([...Object.keys(a||{}),...Object.keys(e||{})])];for(var r of n){var s,c,d=o[r],u=e?.[r],m=$e(u)?(s=d?.enabled)!==null&&s!==void 0&&s:!!u,h=$e(u)?d.variant:typeof u=="string"?u:void 0,f=a?.[r],b=Ne({},d,{enabled:m,variant:m?h??d?.variant:void 0});m!==d?.enabled&&(b.original_enabled=d?.enabled),h!==d?.variant&&(b.original_variant=d?.variant),f&&(b.metadata=Ne({},d?.metadata,{payload:f,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),o[r]=b}return this.Jn||(Wo.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:a,finalDetails:o}),this.Jn=!0),o}getFlagVariants(){var t=this.os(fd),e=this.os(_i);if(!e)return t||{};for(var a=Oa({},t),o=Object.keys(e),n=0;o.length>n;n++)a[o[n]]=e[o[n]];return this.Jn||(Wo.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:a}),this.Jn=!0),a}getFlagPayloads(){var t=this.os(rx),e=this.os(ld);if(!e)return t||{};for(var a=Oa({},t||{}),o=Object.keys(e),n=0;o.length>n;n++)a[o[n]]=e[o[n]];return this.Jn||(Wo.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:a}),this.Jn=!0),a}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 a=this.Bt.token,o=this.os(ub),n={token:a,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(Sp)||{}),group_properties:this.os(_l),timezone:Y3()};ji(o)||$e(o)||(n.$device_id=o),(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:qr.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,b=!((d=s.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));b&&h.push("quota_limited"),(u=this.ni)==null||u.register({[dx]:h}),b?Wo.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 a;if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFeatureFlagResult(t,e);return(a=o?.variant)!==null&&a!==void 0?a:o?.enabled}}else Wo.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 a=this.getFlagVariants(),o=t in a,n=a[t],r=this.getFlagPayloads()[t],s=String(n),c=this.os(ix)||void 0,d=this.os(mb)||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 b,y,T,x,w,P,k,C,_,D;Bt(u[t])?u[t].push(s):u[t]=[s],(b=this.ni)==null||b.register({[Ep]:u});var R=this.getFeatureFlagDetails(t),O=[...(y=this.os(dx))!==null&&y!==void 0?y:[]];$e(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:((T=this.Bt.bootstrap)==null||(T=T.featureFlags)==null?void 0:T[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};$e(R==null||(w=R.metadata)==null?void 0:w.version)||(L.$feature_flag_version=R.metadata.version);var q,B=(P=R==null||(k=R.reason)==null?void 0:k.description)!==null&&P!==void 0?P:R==null||(C=R.reason)==null?void 0:C.code;B&&(L.$feature_flag_reason=B),R!=null&&(_=R.metadata)!=null&&_.id&&(L.$feature_flag_id=R.metadata.id),$e(R?.original_variant)&&$e(R?.original_enabled)||(L.$feature_flag_original_response=$e(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||(q=R.metadata)==null?void 0:q.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(o){var z=r;if(!$e(r))try{z=JSON.parse(r)}catch{}return{key:t,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:z}}}}else Wo.warn('getFeatureFlagResult for key "'+t+cw)}getRemoteConfigPayload(t,e){var a=this.Bt.token,o={distinct_id:this._instance.get_distinct_id(),token:a};this.cs()&&(o.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:o,compression:this.Bt.disable_compression?void 0:qr.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 a=this.getFeatureFlag(t,e);return $e(a)?void 0:!!a}Wo.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,a){if(this.ni){this.Kn=!0;var o=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((q=>{var B;return[q,(B=L[q].variant)!==null&&B!==void 0?B:L[q].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter((q=>L[q].enabled)).filter((q=>{var B;return(B=L[q].metadata)==null?void 0:B.payload})).map((q=>{var B;return[q,(B=L[q].metadata)==null?void 0:B.payload]})))):Wo.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(s),b=f.flags,y=f.featureFlags,T=f.featureFlagPayloads;if(y){var x=s.requestId,w=s.evaluatedAt;if(Bt(y)){Wo.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var P={};if(y)for(var k=0;y.length>k;k++)P[y[k]]=!0;c&&c.register({[xf]:y,[fd]:P})}else{var C=y,_=T,D=b;if(h!=null&&h.partialResponse)C=Ne({},d,C),_=Ne({},u,_),D=Ne({},m,D);else if(s.errorsWhileComputingFlags)if(b){var R=new Set(Object.keys(b).filter((O=>{var L;return!((L=b[O])!=null&&L.failed)})));C=Ne({},d,Object.fromEntries(Object.entries(C).filter((O=>{var[L]=O;return R.has(L)})))),_=Ne({},u,Object.fromEntries(Object.entries(_||{}).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),_=Ne({},u,_),D=Ne({},m,D);c&&c.register(Ne({[xf]:Object.keys(H2(C)),[fd]:C||{},[rx]:_||{},[nx]:D||{}},x?{[ix]:x}:{},w?{[mb]:w}:{}))}}})(t,this.ni,o,n,r,a),e||(this.ss=!1),this.ps(e)}}override(t,e){e===void 0&&(e=!1),Wo.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.ni)return Wo.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.ni.unregister(_i),this.ni.unregister(ld),this.ps(),Pl.info("All overrides cleared");if(Bt(t)){var e=V2(t);return this.ni.register({[_i]:e}),this.ps(),Pl.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var a,o=t;if(this.Jn=!!((a=o.suppressWarning)!==null&&a!==void 0&&a),"flags"in o){if(o.flags===!1)this.ni.unregister(_i),Pl.info("Flag overrides cleared");else if(o.flags){if(Bt(o.flags)){var n=V2(o.flags);this.ni.register({[_i]:n})}else this.ni.register({[_i]:o.flags});Pl.info("Flag overrides set",{flags:o.flags})}}return"payloads"in o&&(o.payloads===!1?(this.ni.unregister(ld),Pl.info("Payload overrides cleared")):o.payloads&&(this.ni.register({[ld]:o.payloads}),Pl.info("Payload overrides set",{payloads:o.payloads}))),void this.ps()}if(t&&typeof t=="object")return this.ni.register({[_i]:t}),this.ps(),Pl.info("Flag overrides set",{flags:t});Wo.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Kn){var{flags:e,flagVariants:a}=this.gs();t(e,a)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,a){var o,n=(this.os(Tp)||[]).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),a&&(s.$feature_enrollment_stage=a),this._instance.capture("$feature_enrollment_update",s),this.setPersonPropertiesForFlags(r,!1);var c=Ne({},this.getFlagVariants(),{[t]:e});(o=this.ni)==null||o.register({[xf]:Object.keys(H2(c)),[fd]:c}),this.ps()}getEarlyAccessFeatures(t,e,a){e===void 0&&(e=!1);var o=this.os(Tp),n=a?"&"+a.map((r=>"stage="+r)).join("&"):"";if(o&&!e)return t(o);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(Tp),(c=this.ni)==null||c.register({[Tp]:d}),t(d)}}})}gs(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((a=>e[a])),flagVariants:Object.keys(e).filter((a=>e[a])).reduce(((a,o)=>(a[o]=e[o],a)),{})}}ps(t){var{flags:e,flagVariants:a}=this.gs();this.featureFlagEventHandlers.forEach((o=>o(e,a,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var a=this.os(Sp)||{},o=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 a||(r[s]=n[s]));this._instance.register({[Sp]:Ne({},a,r,o)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Sp)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var a=this.os(_l)||{};Object.keys(a).length!==0&&Object.keys(a).forEach((o=>{a[o]=Ne({},a[o],t[o]),delete t[o]})),this._instance.register({[_l]:Ne({},a,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.os(_l)||{};this._instance.register({[_l]:Ne({},e,{[t]:{}})})}else this._instance.unregister(_l)}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}}},Sce={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===af?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 vs.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),a=!this.Bt.disable_session_recording,o=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&e&&a&&!o}startIfEnabledOrStop(t){var e;if(!this.ws||(e=this.ys)==null||!e.isStarted){var a=!$e(Object.assign)&&!$e(Array.from);this.ws&&a?(this.Is(t),vs.info("starting")):(this.bs=L2,this.stopRecording())}}Is(t){var e,a,o;this.ws&&(this.bs!==ip&&this.bs!==af&&(this.bs=B2),at!=null&&(e=at.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(a=at.__PosthogExtensions__)!=null&&a.initSessionRecording?this.Cs(t):(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return vs.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(kt(t))return null;var a,o=ir(t)?t:parseFloat(t);return typeof(a=o)!="number"||!Number.isFinite(a)||0>a||a>1?(vs.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):o}As(t){if(this.ni){var e,a,o=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;kt(u)&&this.ks();var m=s?.minimumDurationMilliseconds;o.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:$e(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=(a=this._instance.sessionManager)==null?void 0:a.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=af,vs.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var a;e===void 0&&(e="log"),(a=this.ys)!=null&&a.log?this.ys.log(t,e):vs.warn("log called before recorder was ready")}get Ss(){var t,e,a=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(yp);return(a==null||(e=a.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}Es(){var t,e=this._instance.get_property(yp);if(!e)return!1;var a=(t=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-a}Cs(t){var e,a;if((e=at.__PosthogExtensions__)==null||!e.initSessionRecording)return vs.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=(a=at.__PosthogExtensions__)==null?void 0:a.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===af||this.bs===ip?void 0:(this.bs=ip,vs.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,a;this.ys||(a=this.ni)==null||a.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 a;return!((a=this.ys)==null||!a.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,a=La(this.instance.config.autocapture)?this.instance.config.autocapture:{};return a.url_allowlist=(t=a.url_allowlist)==null?void 0:t.map((o=>new RegExp(o))),a.url_ignorelist=(e=a.url_ignorelist)==null?void 0:e.map((o=>new RegExp(o))),a}Os(){if(this.isBrowserSupported()){if(ge&&ze){var t=a=>{a=a||ge?.event;try{this.Ps(a)}catch(o){M2.error("Failed to capture event",o)}};if(Za(ze,"submit",t,{capture:!0}),Za(ze,"change",t,{capture:!0}),Za(ze,"click",t,{capture:!0}),this.Bt.capture_copied_text){var e=a=>{this.Ps(a=a||ge?.event,iw)};Za(ze,"copy",e,{capture:!0}),Za(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,a=[];return(e=this.Fs)==null||e.forEach((o=>{var n=ze?.querySelectorAll(o);n?.forEach((r=>{t===r&&a.push(o)}))})),a}get isEnabled(){var t,e,a=(t=this.instance.persistence)==null?void 0:t.props[Z0];if(ji(this.Ns)&&!Kr(a)&&!this.instance.Fr())return!1;var o=(e=this.Ns)!==null&&e!==void 0?e:!!a;return!!this.instance.config.autocapture&&!o}Ps(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var a,o=E2(t);l4(o)&&(o=o.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(a=this.rageclicks)!=null&&a.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&(function(h,f){if(!ge||Px(h))return!1;var b,y,T;if(Kr(f)?(b=!!f&&_2,y=void 0):(b=(T=f?.css_selector_ignorelist)!==null&&T!==void 0?T:_2,y=f?.content_ignorelist),b===!1)return!1;var{targetElementList:x}=A2(h,!1);return!(function(w,P){if(w===!1||$e(w))return!1;var k;if(w===!0)k=rce;else{if(!Bt(w))return!1;if(w.length>10)return qe.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;k=w.map((C=>C.toLowerCase()))}return P.some((C=>{var{safeText:_,ariaLabel:D}=C;return k.some((R=>_.includes(R)||D.includes(R)))}))})(y,x.map((w=>{var P;return{safeText:Qp(w).toLowerCase(),ariaLabel:((P=w.getAttribute("aria-label"))==null?void 0:P.toLowerCase().trim())||""}})))&&!k2(x,b)})(o,this.instance.config.rageclick)&&this.Ps(t,"$rageclick");var n=e===iw;if(o&&(function(h,f,b,y,T){var x,w,P,k;if(b===void 0&&(b=void 0),!ge||Px(h)||(x=b)!=null&&x.url_allowlist&&!C2(b.url_allowlist)||(w=b)!=null&&w.url_ignorelist&&C2(b.url_ignorelist))return!1;if((P=b)!=null&&P.dom_event_allowlist){var C=b.dom_event_allowlist;if(C&&!C.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:_,targetElementList:D}=A2(h,y);if(!(function(L,q){var B=q?.element_allowlist;if($e(B))return!0;var z,F=function(ae){if(B.some((H=>ae.tagName.toLowerCase()===H)))return{v:!0}};for(var W of L)if(z=F(W))return z.v;return!1})(D,b)||!k2(D,(k=b)==null?void 0:k.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(T||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(T||["change","click"]).indexOf(f.type)>=0;default:return _?(T||["click"]).indexOf(f.type)>=0:(T||["click"]).indexOf(f.type)>=0&&(LC.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(o,t,this.Bt,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:s}=pce(o,{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(o);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&&(qe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,qe.info("History API monitoring stopped")}monitorHistoryChanges(){var t,e;if(ge&&ge.history){var a=this;(t=ge.history.pushState)!=null&&t.__posthog_wrapped__||N2(ge.history,"pushState",(o=>function(n,r,s){o.call(this,n,r,s),a.Bs("pushState")})),(e=ge.history.replaceState)!=null&&e.__posthog_wrapped__||N2(ge.history,"replaceState",(o=>function(n,r,s){o.call(this,n,r,s),a.Bs("replaceState")})),this.js()}}Bs(t){try{var e,a=ge==null||(e=ge.location)==null?void 0:e.pathname;if(!a)return;a!==this.Ls&&this.isEnabled&&this._instance.capture(cd,{navigation_type:t}),this.Ls=a}catch(o){qe.error("Error capturing "+t+" pageview",o)}}js(){if(!this.Ds){var t=()=>{this.Bs("popstate")};Za(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 La(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(t=this.Bt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return kt(this.Bt.capture_heatmaps)?kt(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),Za(ge,bb,this.zs),this.Us=t=>this.Tt(t||ge?.event),Za(ze,"click",this.Us,{capture:!0}),this.Ys=t=>this.Gs(t||ge?.event),Za(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new r2(this.instance,kle,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Za(ze,fb,this.Xs),this.Rs=!0)}Vs(){var t;ge&&ze&&(this.zs&&ge.removeEventListener(bb,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(fb,this.Xs),clearTimeout(this.Js),(t=this.Ws)==null||t.stop(),this.Rs=!1)}Ks(t,e){var a=this.instance.scrollManager.scrollY(),o=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),r=(function(s,c,d){for(var u=s;u&&bv(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:o),y:t.clientY+(r?0:a),target_fixed:r,type:e}}Tt(t,e){var a;if(e===void 0&&(e="click"),!P2(t.target)&&F2(t)){var o=this.Ks(t,e);(a=this.rageclicks)!=null&&a.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Qs(Ne({},o,{type:"rageclick"})),this.Qs(o)}}Gs(t){!P2(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,a=this.Bt.custom_personal_data_properties,o=this.Bt.mask_personal_data_properties?[...qd,...a||[]]:[],n=Yp(e,o,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(((a,o)=>Ne({},a,{["$web_vitals_"+o.name+"_event"]:Ne({},o),["$web_vitals_"+o.name+"_value"]:o.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=a=>{var o,n=(o=this._instance.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0);if($e(n))bs.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var r=this.io();$e(r)||(kt(a?.name)||kt(a?.value)?bs.error("Invalid metric received",a):!this.no||this.no>a.value?(this.T.url!==r&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),$e(this.T.url)&&(this.T.url=r),this.T.firstMetricTimestamp=$e(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,a.attribution&&a.attribution.interactionTargetElement&&(a.attribution.interactionTargetElement=void 0),this.T.metrics.push(Ne({},a,{$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):bs.error("Ignoring metric with value >= "+this.no,a))}},this.so=()=>{if(!this.Rs){var a,o,n,r,s=at.__PosthogExtensions__;$e(s)||$e(s.postHogWebVitalsCallbacks)||({onLCP:a,onCLS:o,onFCP:n,onINP:r}=s.postHogWebVitalsCallbacks),a&&o&&n&&r?(this.allowedMetrics.indexOf("LCP")>-1&&a(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&o(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):bs.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,a=La(this.oo)?(t=this.oo)==null?void 0:t.web_vitals_allowed_metrics:void 0;return kt(a)?((e=this._instance.persistence)==null?void 0:e.props[ox])||["CLS","FCP","INP","LCP"]:a}get flushToCaptureTimeoutMs(){return(La(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=La(this.oo)?this.oo.web_vitals_attribution:void 0;return t!=null&&t}get no(){var t=La(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=xo?.protocol;if(t!=="http:"&&t!=="https:")return bs.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=La(this.oo)?this.oo.web_vitals:Kr(this.oo)?this.oo:void 0;return Kr(e)?e:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(bs.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(t){if("capturePerformance"in t){var e=La(t.capturePerformance)&&!!t.capturePerformance.web_vitals,a=La(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[tx]:e}),this._instance.persistence.register({[ox]:a})),this.$s=e,this.startIfEnabled()}}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(o=>{o?bs.error("failed to load script",o):t()}))}io(){var t=ge?ge.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,a=this._instance.config.mask_personal_data_properties?[...qd,...e||[]]:[];return Yp(t,a,Zp)}bs.error("Could not determine current URL")}}},xce={exceptionObserver:class{constructor(t){var e,a,o;this.so=()=>{var n;if(ge&&this.isEnabled&&(n=at.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var r=at.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,s=at.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=at.__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:(a=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&a!==void 0?a:1,bucketSize:(o=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&o!==void 0?o: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 La(t)?e=Ne({},e,t):($e(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,a;(e=at.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"exception-autocapture",(o=>{if(o)return rp.error("failed to load script",o);t()}))}ho(){var t,e,a;(t=this.ao)==null||t.call(this),this.ao=void 0,(e=this.lo)==null||e.call(this),this.lo=void 0,(a=this.uo)==null||a.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,a,o,n=(e=t==null||(a=t.$exception_list)==null||(a=a[0])==null?void 0:a.type)!==null&&e!==void 0?e:"Exception";this.do.consumeRateLimit(n)?rp.info("Skipping exception capture because of client rate limiting.",{exception:n}):(o=this._instance.exceptions)==null||o.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,a;this.fo=[],this.po=new Yse([new ole,new ple,new rle,new nle,new dle,new cle,new sle,new ule],(function(o){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 b=t2.test(f)?f.replace(t2,"$1"):f;if(!b.match(/\S*Error: /)){for(var y of r){var T=y(b,o);if(T){u.push(T);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((P=>{return Ne({},P,{filename:P.filename||(k=w,k[k.length-1]||{}).filename,function:P.function||Ud});var k}))})(u)}})("web:javascript",Xse,ale)),this._instance=t,this.fo=(e=(a=this._instance.persistence)==null?void 0:a.get_property(X0))!==null&&e!==void 0?e:[],this.mo=db(this.yo()),this.bo=new hle(this.mo)}onConfigChange(){this.mo=db(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,a,o;if("errorTracking"in t){var n=(e=(a=t.errorTracking)==null?void 0:a.suppressionRules)!==null&&e!==void 0?e:[],r=(o=t.errorTracking)==null?void 0:o.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),a=this._instance.config.error_tracking.captureExtensionExceptions;return(t=a??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(!Ca(t)||t.trim().length===0)return void ki.warn("Ignoring exception step because message must be a non-empty string");var a=this.wo(e),{sanitizedProperties:o,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}})(a);n.length>0&&ki.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Ne({[lb]:t,[cb]:new Date().toISOString()},o))}catch(r){ki.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 ki.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 ki.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 ki.info("Skipping exception capture because it was thrown by the PostHog SDK")}var a=this.mo.enabled&&kt(t.$exception_steps)?this.To(t):t;try{var o=this._instance.capture("$exception",a,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return o&&this.bo.clear(),o}catch(n){return ki.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void ki.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(a){return ki.error("Failed to read buffered exception steps. Capturing exception without steps.",a),t}}So(t){this.mo.enabled&&this.bo.add({[lb]:t,[cb]:new Date().toISOString()})}wo(t){return La(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(((a,o)=>{var{type:n,value:r}=o;return Ca(n)&&n.length>0&&a.$exception_types.push(n),Ca(r)&&r.length>0&&a.$exception_values.push(r),a}),{$exception_types:[],$exception_values:[]});return this.fo.some((a=>{var o=a.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 a.type==="OR"?o.some(Boolean):o.every(Boolean)}))}xo(t){return t.flatMap((e=>{var a,o;return(a=(o=e.stacktrace)==null?void 0:o.frames)!==null&&a!==void 0?a:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,a,o,n,r=(e=(a=t[0].stacktrace)==null?void 0:a.frames)!==null&&e!==void 0?e:[],s=r[r.length-1];return(o=s==null||(n=s.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&o!==void 0&&o}return!1}Io(t){return!kt(t)&&Bt(t)}}},Pce=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({[ax]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(ax)||this.ur((()=>this.Ro()))}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.generateProductTours?t():(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"product-tours",(o=>{o?j2.error("Could not load product tours script",o):t()}))}Ro(){var t;!this.Ao&&(t=at.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=at.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Bt(this.Eo)||e){var a=this.ni;if(a){var o=a.props[Pf];if(Bt(o)&&!e)return this.Eo=o,void t(o,{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,a&&a.register({[Pf]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){kt(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(Pf)}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)}}},vv),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 a=this.globalsForEvent(e);this.No.push(a),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=at._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,a,o,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:b,$set:y}=t;return{event:Ne({},r3(t,gce),{properties:Ne({},t.properties,y?{$set:Ne({},(e=(a=t.properties)==null?void 0:a.$set)!==null&&e!==void 0?e:{},y)}:{},b?{$set_once:Ne({},(o=(n=t.properties)==null?void 0:n.$set_once)!==null&&o!==void 0?o:{},b)}:{}),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],a=()=>{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))},o=!1,n=s=>{e.errored=!s,e.loaded=!0,ys.info("Site app with id "+t.id+" "+(s?"loaded":"errored")),o&&a()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(s){n(s)}});r&&(e.processEvent=r),o=!0}catch(s){ys.error(z2+t.id,s),n(!1)}if(o&&e.loaded)try{a()}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 a of t)this.setupSiteApp(a)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var a of Object.values(this.apps))try{a.processEvent==null||a.processEvent(e)}catch(o){ys.error("Error while processing event "+t.event+" for site app "+a.id,o)}}}onRemoteConfig(t){var e,a,o,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((a=this.Fo)==null||a.call(this),(o=t.siteApps)!=null&&o.length)if(this.isEnabled){var r=function(d){var u;at["__$$ph_site_app_"+d]=n._instance,(u=at.__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,a,o=this.Bo()||[];$e(this.Lo)&&((e=at.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(o,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((a=at.__PosthogExtensions__)==null||(a=a.tracingHeadersPatchFns)==null||a._patchFetch(o,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"tracing-headers",(o=>{if(o)return mce.error("failed to load script",o);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)}}},kce=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(kt(e))return aa.warn("Flags not loaded yet. Not loading surveys.");var a=Bt(e);this.jo=a?e.length>0:e,aa.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var a=localStorage.key(e);(a!=null&&a.startsWith(wx)||a!=null&&a.startsWith("inProgressSurvey_"))&&t.push(a)}t.forEach((o=>localStorage.removeItem(o)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)aa.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)aa.info(U2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())aa.info("Not loading surveys in cookieless mode without consent.");else{var t=at?.__PosthogExtensions__;if(t){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var a=t.generateSurveys;if(a)return void this.Vo(a,e);var o=t.loadExternalDependency;if(!o)return void this.Ho(RC);o(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 aa.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new vce(this._instance),aa.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){aa.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 aa.info(U2),t([]);var a,o=this._instance.get_property(sx);if(o&&!e)return t(o,{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=>{a=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;aa.error(c);var d={isLoaded:!1,error:c};return t([],d),void(a==null||a({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((b=>(function(y){return!(!y.start_date||y.end_date)})(b)&&((function(y){var T;return!((T=y.conditions)==null||(T=T.events)==null||(T=T.values)==null||!T.length)})(b)||(function(y){var T;return!((T=y.conditions)==null||(T=T.actions)==null||(T=T.values)==null||!T.length)})(b))));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),a?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(a){aa.error("Error in survey callback",a)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!kt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);aa.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((a=>{var o;e=(o=a.find((n=>n.id===t)))!==null&&o!==void 0?o:null})),e}Yo(t){if(kt(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(kt(this._surveyManager))return aa.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 kt(this._surveyManager)?(aa.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:lw})):new Promise((a=>{this.getSurveys((o=>{var n,r=(n=o.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var s=this.Yo(r);a({visible:s.eligible,disabledReason:s.reason})}else a({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,a){var o;if(kt(this._surveyManager))aa.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(o=n.appearance)!=null&&o.surveyPopupDelaySeconds?(aa.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var s,c;aa.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,a),aa.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,a);aa.warn("Survey element not found")}else aa.warn("Surveys of type "+n.type+" cannot be rendered in the app");else aa.warn("Survey not found")}}displaySurvey(t,e){var a;if(kt(this._surveyManager))aa.warn("init was not called");else{var o=this.Uo(t);if(o){var n=o;if((a=o.appearance)!=null&&a.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Ne({},o,{appearance:Ne({},o.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==fx.Popover&&e.initialResponses&&aa.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(o);if(!r.visible)return void aa.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 aa.warn("Survey not found")}}cancelPendingSurvey(t){kt(this._surveyManager)?aa.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},vv),_ce={toolbar:class{constructor(t){this.instance=t}Go(t){at.ph_toolbar_state=t}Wo(){var t;return(t=at.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,a){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),a===void 0&&(a=void 0),j3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,a=a??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var o,n=yce||Sb(t.hash,"__posthog")||Sb(t.hash,"state"),r=n?o2((()=>JSON.parse(atob(decodeURIComponent(n)))))||o2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((o=r).source="url",o&&Object.keys(o).length>0&&(r.desiredHash?t.hash=r.desiredHash:a?a.replaceState(a.state,"",t.pathname+t.search):t.hash="")):((o=JSON.parse(e.getItem(q2)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token||(this.loadToolbar(o),0))}catch{return!1}}Xo(t){var e=at.ph_load_toolbar||at.ph_load_editor;!kt(e)&&Ai(e)?e(t,this.instance):$2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById(I3));if(!ge||e)return!1;var a=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,o=Ne({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},a?{instrument:!1}:{});if(ge.localStorage.setItem(q2,JSON.stringify(Ne({},o,{source:void 0}))),this.Wo()===2)this.Xo(o);else if(this.Wo()===0){var n;this.Go(1),(n=at.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return $2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(o)})),Za(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(o)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,a){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),a===void 0&&(a=void 0),this.maybeLoadToolbar(t,e,a)}}},Ace=Ne({experiments:Lo},vv),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;kt(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=at?.__PosthogExtensions__;if(t&&!$e(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 a=t.loadExternalDependency;if(!a)return void this.ra(RC);a(this._instance,"conversations",(o=>{o||!t.initConversations?this.ra("Could not load conversations script",o):this.ta(t.initConversations),this.Qo=!1}))}catch(o){this.ra("Error initializing conversations",o),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,a){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.sendMessage(t,e,a):(Zn.warn(Cl),null)}))()}getMessages(t,e){var a=this;return er((function*(){return a._conversationsManager?a._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=Sa("[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,a=(e=t.logs)==null?void 0:e.captureConsoleLogs;!kt(a)&&a&&(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=at?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(a=>{var o;a||(o=t.logs)==null||!o.initializeLogs?this.Gt.error("Could not load logs script",a):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(RC)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,a,o,n,r,s;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(a=this._instance.config.logs)==null?void 0:a.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(o=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&o!==void 0?o: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 b=h.level||"info",{text:y,number:T}=C3[b]||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 P=Ne({},w,h.attributes||{}),k={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:T,severityText:y,body:{stringValue:h.body},attributes:e2(P)};return h.trace_id&&(k.traceId=h.trace_id),h.span_id&&(k.spanId=h.span_id),$e(h.trace_flags)||(k.flags=h.trace_flags),k})(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 a=this._instance.config.logs,o=Ne({"service.name":a?.serviceName||"unknown_service"},a?.environment&&{"deployment.environment":a.environment},a?.serviceVersion&&{"service.version":a.serviceVersion},a?.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)),o,Zo.LIB_NAME,Zo.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:a}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=a}if(at!=null&&(t=at.location)!=null&&t.href&&(e.currentUrl=at.location.href),this._instance.featureFlags){var o=this._instance.featureFlags.getFlags();o&&o.length>0&&(e.activeFeatureFlags=o)}return e}}},Oce=Ne({},vv,Sce,wce,xce,Pce,Cce,kce,Ece,_ce,Ace,Rce,Dce);tr.__defaultExtensionClasses=Ne({},Oce);var W2,zi=(W2=_p[dd]=new tr,(function(){function t(){t.done||(t.done=!0,s4=!1,fa(_p,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Za(ze,"DOMContentLoaded",t,{capture:!1}):ge&&qe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),W2);let Ii=!1,kx=null,K2=!1;const BC="studio:lp-distinct-id",f4="mesh:lp-distinct-id",dw="/api/_reports/link-token/",Mce=1440*60*1e3;function b4(t){const e="https://analytics.invalid",a=/^[a-z][a-z\d+.-]*:\/\//i.test(t),o=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?a?n.toString():o?`//${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,a])=>[e,typeof a=="string"?b4(a):a]))}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 v4(){try{const t=window.localStorage.getItem(BC)??window.localStorage.getItem(f4);if(!t)return;const{id:e,ts:a}=JSON.parse(t);return typeof e!="string"||!e||typeof a!="number"?void 0:Date.now()-a<=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 a=e??v4();return a?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:a:void 0}catch{return}}function Bce(t){const e=v4();if(e&&(Ice(),e!==t))try{zi.alias(e)}catch{}}function Fce(t,e){if(Ii||typeof window>"u")return;const a=Lce();zi.init(t,{api_host:e,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...a?{bootstrap:{distinctID:a}}:{},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:o=>({...o,...typeof o.name=="string"?{name:b4(o.name)}:{}})},person_profiles:"identified_only"}),Ii=!0}function jce(t,e){Ii&&(zi.identify(t,e),Bce(t))}function zce(){Ii&&(zi.reset(),kx=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=a=>{const o=performance.getEntriesByName(a,"measure")[0];return o?Math.round(o.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!==kx&&(zi.group("organization",t,e),kx=t)}function T4(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 qce(t){const e=ye.c(3),{children:a}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=v.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Uce}}),e[0]=o):o=e[0];let n;return e[1]!==a?(n=v.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[o,v.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:a})]}),e[1]=a,e[2]=n):n=e[2],n}function S4(t){const e=ye.c(20),{orgName:a}=t,o=qo(),n=$ce;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=v.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:v.jsx(Bj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let s;e[1]!==o?(s=o("common.archivedOrgScreen.orgUnavailable"),e[1]=o,e[2]=s):s=e[2];let c;e[3]!==s?(c=v.jsx("h3",{className:"text-lg font-medium",children:s}),e[3]=s,e[4]=c):c=e[4];let d;e[5]!==a||e[6]!==o?(d=a?o("common.archivedOrgScreen.deletedWithName",{orgName:a}):o("common.archivedOrgScreen.deletedGeneric"),e[5]=a,e[6]=o,e[7]=d):d=e[7];let u;e[8]!==d?(u=v.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=v.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]!==o?(h=o("common.goHome"),e[13]=o,e[14]=h):h=e[14];let f;e[15]!==h?(f=v.jsx(vn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let b;return e[17]!==m||e[18]!==f?(b=v.jsxs(qce,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=b):b=e[19],b}function $ce(){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:a}=rm(e);let o;return t[1]!==a?(o=v.jsx(vn,{variant:"outline",size:"sm",asChild:!0,children:v.jsx(Kl,{to:"/$org/settings/profile",params:{org:a},children:"Go to your profile"})}),t[1]=a,t[2]=o):o=t[2],o}function Hce(t){const e=ye.c(13),{area:a,description:o,action:n}=t,r=a?`No access to ${a}`:"No access",s=o??"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=v.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:v.jsx(Gj,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=v.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==s?(u=v.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=v.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??v.jsx(Vce,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=v.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,a){console.error("Uncaught error:",e,a),T4(e,{boundary:"default",error_name:e.name,error_message:e.message,component_stack:a.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:a}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:w4(this.state.error)?v.jsx(S4,{}):Gce(this.state.error)?v.jsx(Hce,{}):v.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:v.jsx(TC,{className:"h-6 w-6 text-destructive"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:a("common.errorBoundary.somethingWentWrong")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||a("common.errorBoundary.unexpectedError")})]}),v.jsx(vn,{variant:"outline",onClick:this.resetError,children:a("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kce(t){const e=ye.c(3),a=qo();let o;return e[0]!==t||e[1]!==a?(o=v.jsx(Wce,{...t,t:a}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}class Yce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,a){console.error("Uncaught error:",e,a);const o=Z2(e);if(T4(e,{boundary:"chunk_root",is_chunk_load_error:o,error_name:e.name,error_message:e.message,component_stack:a.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!o)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)?v.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:v.jsx(Wj,{className:"h-6 w-6 text-primary"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),v.jsx(vn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?w4(this.state.error)?v.jsx(S4,{}):v.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:v.jsx(TC,{className:"h-6 w-6 text-destructive"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),v.jsx(vn,{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),a=qo();let o;return e[0]!==t||e[1]!==a?(o=v.jsx(Yce,{...t,t:a}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}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 a,o,n,r,s;e[0]!==t?({className:a,size:r,interactive:o,asChild:s,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r,e[5]=s):(a=e[1],o=e[2],n=e[3],r=e[4],s=e[5]);const d=(s===void 0?!1:s)?rv:"div";let u;e[6]!==a||e[7]!==o||e[8]!==r?(u=Qe(Qce({size:r,interactive:o}),a),e[6]=a,e[7]=o,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=v.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:a,description:o,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]!==o||e[4]!==n||e[5]!==a?(u=(a||o||n||r)&&v.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[v.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[a&&v.jsx("h2",{className:"text-base font-medium leading-tight",children:a}),(o||n)&&v.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[o,n&&v.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",v.jsx(Fj,{size:12})]})]})]}),r&&v.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=o,e[4]=n,e[5]=a,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=v.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:a,children:o}=t;let n,r,s;if(e[0]!==o||e[1]!==a){const d=A.Children.toArray(o).filter(A.isValidElement);n=Jce,e[5]!==a?(r=Qe("p-0 gap-0 overflow-hidden",a),e[5]=a,e[6]=r):r=e[6],s=d.map(Xce),e[0]=o,e[1]=a,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=v.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 v.jsxs("div",{children:[e>0&&v.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function e0e(t){const e=ye.c(27),{icon:a,title:o,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,b=s?0:void 0;let y;e[4]!==s?(y=s?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),s())}:void 0,e[4]=s,e[5]=y):y=e[5];let T;e[6]!==a?(T=a&&v.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:a}),e[6]=a,e[7]=T):T=e[7];let x;e[8]!==o?(x=v.jsx("div",{className:"text-sm font-medium",children:o}),e[8]=o,e[9]=x):x=e[9];let w;e[10]!==n?(w=n&&v.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 P;e[12]!==d||e[13]!==x||e[14]!==w?(P=v.jsxs("div",{className:"flex-1 min-w-0",children:[x,w,d]}),e[12]=d,e[13]=x,e[14]=w,e[15]=P):P=e[15];let k;e[16]!==r?(k=r&&v.jsx("div",{className:"shrink-0",onClick:ede,children:r}),e[16]=r,e[17]=k):k=e[17];let C;return e[18]!==s||e[19]!==P||e[20]!==k||e[21]!==h||e[22]!==f||e[23]!==b||e[24]!==y||e[25]!==T?(C=v.jsxs("div",{className:h,onClick:s,role:f,tabIndex:b,onKeyDown:y,children:[T,P,k]}),e[18]=s,e[19]=P,e[20]=k,e[21]=h,e[22]=f,e[23]=b,e[24]=y,e[25]=T,e[26]=C):C=e[26],C}function ede(t){return t.stopPropagation()}function t0e(t){const e=ye.c(5),{className:a,children:o}=t;let n;e[0]!==a?(n=Qe("px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=v.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function a0e(t){const e=ye.c(5),{children:a,className:o}=t;let n;e[0]!==o?(n=Qe("flex items-center justify-end gap-2 px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=v.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function tde(t){const e=ye.c(5),{className:a,children:o}=t;let n;e[0]!==a?(n=Qe("flex flex-col gap-10",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=v.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}const yv={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:$j,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function o0e(t){const e=yv[t];return[...e.tabs.map(a=>a.to),...e.ownedRoutes??[]]}function n0e(t){return yv[t].tabs.length>0}const ade=new Set(["owner","admin"]);function x4(){const t=ye.c(11),{org:e,locator:a}=Ks();let o;t[0]!==a?(o=eo.myCapabilities(a),t[0]=a,t[1]=o):o=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]!==o||t[5]!==n?(r={queryKey:o,queryFn:n,staleTime:3e4,retry:2},t[4]=o,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:a,loading:o,error:n}=x4();if(o){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=a?.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=a?.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 P4(){const t=ye.c(10),{data:e,loading:a,error:o}=x4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?ade.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]!==o||t[5]!==s||t[6]!==a||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:a,error:o,isPrivileged:s,roleSlug:n},t[4]=o,t[5]=s,t[6]=a,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function ode(){const t=ye.c(13),{org:e}=Ks(),a=VP(),{capabilities:o,isPrivileged:n}=P4(),r=n||!!o["members:manage"];let s;t[0]!==e.id?(s=eo.infraBillingSites(e.id),t[0]=e.id,t[1]=s):s=t[1];const c=!!e.id&&r;let d;t[2]!==a?(d=()=>a.call("INFRA_BILLING_SITES_LIST",{}),t[2]=a,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 b;return t[10]!==h||t[11]!==f?(b={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=b):b=t[12],b}function nde(t){return t.slug}function i0e(){const t=ye.c(7),e=VP(),a=qo();let o;t[0]!==e?(o=s=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:s}),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==a?(n=s=>Id.error(a("settings.infraBilling.portalError",{message:s.message})),t[2]=a,t[3]=n):n=t[3];let r;return t[4]!==o||t[5]!==n?(r={mutationFn:o,onSuccess:rde,onError:n},t[4]=o,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 a=ye.c(14),{org:o}=Ks(),n=VP();let r,s,c;a[0]!==o.id||a[1]!==e||a[2]!==t?(r=[...t].sort(),c=Hs,s=eo.infraBilling(o.id,r.join(","),e),a[0]=o.id,a[1]=e,a[2]=t,a[3]=r,a[4]=s,a[5]=c):(r=a[3],s=a[4],c=a[5]);const d=r.length>0;let u;a[6]!==e||a[7]!==r||a[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),a[6]=e,a[7]=r,a[8]=n,a[9]=u):u=a[9];let m;return a[10]!==s||a[11]!==d||a[12]!==u?(m={queryKey:s,enabled:d,staleTime:6e4,queryFn:u},a[10]=s,a[11]=d,a[12]=u,a[13]=m):m=a[13],c(m)}function ide(){const t=ye.c(7),{capabilities:e,isPrivileged:a,loading:o,error:n}=P4(),{sites:r,isLoading:s}=ode(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==a||t[3]!==o||t[4]!==c||t[5]!==s){const u=m=>m.requiresOwnedSites&&!c&&!s?!1:o||n?!0:m.privilegedOnly?a:m.requires?a||e[m.requires]:!0;d=Object.fromEntries(Object.values(yv).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=c,t[5]=s,t[6]=d}else d=t[6];return d}function sde(t){const e=ye.c(16),{group:a}=t,o=qo();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=gP(s),d=ide()[a],{titleKey:u}=yv[a];let m;e[2]!==o||e[3]!==u?(m=o(u),e[2]=o,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=v.jsx(xd.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==a||e[8]!==r||e[9]!==c||e[10]!==o||e[11]!==d?(f=d.length>1&&v.jsx(pn.Toolbar.Left.Portal,{children:v.jsx(xd.Tabs,{"data-testid":"settings-subnav","aria-label":o("settings.subnav.ariaLabel"),children:d.map(y=>{const T=y.to.replace("$org",r),x=c===T||c.startsWith(`${T}/`);return v.jsx(xd.Tab,{active:x,asChild:!0,children:v.jsx(Kl,{to:y.to,params:{org:r},onClick:()=>y4("settings_subnav_clicked",{group_key:a,tab_key:y.key}),children:o(y.labelKey)})},y.key)})})}),e[7]=a,e[8]=r,e[9]=c,e[10]=o,e[11]=d,e[12]=f):f=e[12];let b;return e[13]!==h||e[14]!==f?(b=v.jsxs(v.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=b):b=e[15],b}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=v.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[v.jsx(vO,{className:"h-32 w-full"}),v.jsx(vO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function cde(t){const e=ye.c(14),{group:a,fallback:o,errorFallback:n,className:r,children:s}=t;let c;e[0]!==a?(c=v.jsx(sde,{group:a}),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==o?(d=o??v.jsx(C4,{}),e[2]=o,e[3]=d):d=e[3];let u;e[4]!==s||e[5]!==d?(u=v.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=v.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=v.jsx(xd,{children:v.jsx(xd.Content,{children:v.jsx(xd.Container,{children:v.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 v.jsx(cde,{group:t,children:v.jsx(C4,{})})}}function dde(t,e){const a=t&&e?rJ(e,t):null;return{queryKey:eo.activeOrganization(t),queryFn:async()=>{if(!t)return null;const o={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ro.organization.getFullOrganization({query:o}).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=TB(n);return n&&!r&&localStorage.setItem(Zs.lastOrgSlug(),t),e&&n&&iJ(e,t,n),n},initialData:a?a.data:void 0,initialDataUpdatedAt:a?.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],gP(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 a=gde.get(t);return a===void 0?!0:a==="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],gP(e)}function fde(t){return t.matches.findLast(bde)?.staticData.mainView}function bde(t){return t.staticData.mainView}function kf(t){return`agent-view:${encodeURIComponent(t)}`}function vde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const a=decodeURIComponent(e);return a?{id:a}: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),a=e.indexOf(":");if(a<=0)return null;const o=e.slice(0,a),n=e.slice(a+1);return!o||!n?null:{connectionId:o,toolName:n}}function k4(t){return`deck:${encodeURIComponent(t)}`}function Tde(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 _4(t){return`file:${encodeURIComponent(t)}`}function Sde(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"],Pde=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 Tv(t){return Ede.get(t)??t}const jC=new Set(["instructions","connections","layout","settings"]);function kde(t){return!!t&&jC.has(t)}const _de=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 a=Tv(e.type);if(jC.has(a))return"settings";if(Pde.has(a)||_de.has(a))return a;if(a==="ext-app"||a==="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)?kf(e.id):n[0]?kf(n[0]):"settings"}const o=t?.tabs?.[0]?.id;return o?kf(o):"settings"}function h0e(t){const e=t.routeDefaultMain||M4(t.metadata),a=t.panelTabId&&jC.has(t.panelTabId)?"settings":t.panelTabId?Tv(t.panelTabId):t.panelTabId,o=t.metadata?.defaultMainView??null,n=o==null||o.type==="chat";return{mainOpen:t.mainPanelParam??(!!a||!!t.routeDefaultMain||!n),activeTab:a??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?_4(e.key):void 0;case"deck":return e.deck?k4(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 a=Tv(t);return a==="site-editor"&&e.main==="content"?"content":a}}}function b0e(t){const e=t.params??{},a=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return a.file?R4(a.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?kf(e.viewId):void 0;case"file":return a.key?_4(a.key):void 0;case"deck":return a.path?k4(a.path):void 0;case"library-file":return a.path?A4(a.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=vde(t);if(e)return{kind:"agent-view",viewId:e.id};const a=yde(t);if(a)return{kind:"app",connectionId:a.connectionId,toolName:a.toolName};const o=E4(t);if(o)return{kind:"automations",automationId:o.id};const n=Sde(t);if(n)return{kind:"output-file",key:n.key};const r=Tde(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(kde(t))return{kind:"agent-section",section:"settings"};const d=Tv(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 $l(t){const{org:e,agentId:a}=t,o={org:e,agentId:a},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:{...o,taskKey:t.taskKey},search:{}};case"reports":return r?{to:ft.reports,params:{org:e},search:{}}:{to:tt.reports,params:o,search:{}};case"plan":return r?{to:ft.plan,params:{org:e},search:{}}:{to:tt.plan,params:o,search:{}};case"monitoring":return r?{to:ft.monitoring,params:{org:e},search:{}}:{to:tt.monitoring,params:o,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:o,search:{}};case"site-editor":return n.view==="content"?{to:tt.siteEditorContent,params:o,search:{}}:n.view==="code"?{to:tt.siteEditorCode,params:o,search:{file:n.file}}:{to:tt.siteEditor,params:o,search:{}};case"agent-section":return{to:tt[n.section],params:o,search:{}};case"automations":return n.automationId?{to:tt.automation,params:{...o,automationId:n.automationId},search:{}}:{to:tt.automations,params:o,search:{}};case"app":return{to:tt.app,params:{...o,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:tt.view,params:{...o,viewId:n.viewId},search:{}};case"output-file":return{to:tt.outputFile,params:o,search:{key:n.key}};case"output-deck":return{to:tt.outputDeck,params:o,search:{path:n.path}};case"library-file":return{to:tt.libraryFile,params:o,search:{path:n.path}};case"connect-sources":return{to:tt.connectSources,params:o,search:{}}}}function v0e(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",a=t.agentId!==t.superAgentId&&N4(e).kind==="org-destination"?"overview":e;return $l({org:t.org,agentId:t.agentId,tabId:a,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function Ide(t,e,a={}){const o=r=>({...a.search?.(r)??{},...e.search}),n=a.replace??!0;switch(e.to){case ft.tasks:t({to:ft.tasks,params:e.params,search:o,replace:n});return;case ft.home:t({to:ft.home,params:e.params,search:o,replace:n});return;case ft.reports:t({to:ft.reports,params:e.params,search:o,replace:n});return;case ft.discover:t({to:ft.discover,params:e.params,search:o,replace:n});return;case ft.plan:t({to:ft.plan,params:e.params,search:o,replace:n});return;case ft.monitoring:t({to:ft.monitoring,params:e.params,search:o,replace:n});return;case ft.library:t({to:ft.library,params:e.params,search:o,replace:n});return;case tt.root:t({to:tt.root,params:e.params,search:o,replace:n});return;case tt.tasks:t({to:tt.tasks,params:e.params,search:o,replace:n});return;case tt.reports:t({to:tt.reports,params:e.params,search:o,replace:n});return;case tt.plan:t({to:tt.plan,params:e.params,search:o,replace:n});return;case tt.monitoring:t({to:tt.monitoring,params:e.params,search:o,replace:n});return;case tt.siteEditor:t({to:tt.siteEditor,params:e.params,search:o,replace:n});return;case tt.siteEditorContent:t({to:tt.siteEditorContent,params:e.params,search:o,replace:n});return;case tt.siteEditorCode:t({to:tt.siteEditorCode,params:e.params,search:o,replace:n});return;case tt.automations:t({to:tt.automations,params:e.params,search:o,replace:n});return;case tt.automation:t({to:tt.automation,params:e.params,search:o,replace:n});return;case tt.app:t({to:tt.app,params:e.params,search:o,replace:n});return;case tt.view:t({to:tt.view,params:e.params,search:o,replace:n});return;case tt.outputFile:t({to:tt.outputFile,params:e.params,search:o,replace:n});return;case tt.outputDeck:t({to:tt.outputDeck,params:e.params,search:o,replace:n});return;case tt.libraryFile:t({to:tt.libraryFile,params:e.params,search:o,replace:n});return;case tt.connectSources:t({to:tt.connectSources,params:e.params,search:o,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:o,replace:n})}}function y0e(t,e){Ide(t,$l(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 Sv(t,e){return Object.fromEntries(Object.entries(t).filter(([a])=>!e.has(a)))}function jl(t,e){return{...Sv(t,Fde),...e.search}}function zde(t){return Sv(t,jde)}function T0e(t){if(t.search.virtualmcpid===void 0)return null;const e=Pr(t.search.virtualmcpid);if(e){const a=t.routePath===ft.tasks?"board":t.routePath===ft.reports?"reports":null;if(t.routePath===ft.home||a){const o=a?$l({org:t.org,agentId:e,tabId:a}):Vd(t.org,e);return{kind:"canonical",route:o,search:jl(t.search,o)}}}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 Pr(t){return t?.trim()||void 0}function L4(t){return Rde(t)||t!==void 0&&O4.has(t)}function B4(t){const e=Pr(t);return e?e.startsWith("vir_")&&e.length>4||zL(e)!==null||NY(e)!==null||IY(e)!==null||qL(e)||$L(e):!1}function Ude(t){const e=Pr(t.agentIdParam),a=L4(e);return e&&!a?e:Pr(t.virtualMcpIdSearch)??Pr(t.fallbackAgentId)}function S0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const s=_x({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 a=t.search.virtualmcpid!==void 0&&!B4(e);if(!(L4(e)||a))return null;const n=Ude({agentIdParam:a?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=_x({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 qde(t,e,a,o){const n=Pr(o);switch(t){case"board":return n?$l({org:e,agentId:n,tabId:"board"}):{to:ft.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=Es(a.path);return{to:ft.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?$l({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=qde(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const a=Pr(t.agentId);return a?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:a},search:{}}:$l({org:t.org,agentId:a,tabId:t.tabId}):null}function Vd(t,e){const a=Pr(e);return a?{to:tt.root,params:{org:t,agentId:a},search:{}}:{to:ft.home,params:{org:t},search:{}}}function $de(t){const{main:e}=t;if(e===void 0)return null;const a=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Sv(a,I4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...jl(a,n),sidepanel:!0,mainpanel:!1}}}const o=Jp({org:t.org,agentId:t.agentId,tabId:e,search:a});return o?{kind:"canonical",route:o,search:jl(a,o)}:null}function Es(t){return typeof t=="string"&&t.length>0?t:void 0}function _x(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const s=_x({...t,search:Sv(e,I4)});return s?.kind!=="canonical"?s:{...s,search:{...s.search,mainpanel:!1}}}if(e.main!==void 0)return $de({org:t.org,agentId:t.agentId,main:e.main,search:e});const a=Pr(t.agentId),o=t.panel;if(!o){const s=Vd(t.org,a);return{kind:"canonical",route:s,search:jl(e,s)}}const n=Dde(o,{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"&&a?$l({org:t.org,agentId:a,tabId:n}):Jp({org:t.org,agentId:a,tabId:n,search:e}):Jp({org:t.org,agentId:a,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??{},a=Pr(e.virtualmcpid),o=Pr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,a);else if(n!==void 0&&n!==0&&n!=="0"){const s=Jp({org:t.org,agentId:a,tabId:n,search:e}),c=!s&&n.trim().length>0&&o?Jp({org:t.org,agentId:o,tabId:n,search:e}):null;r=s??c??{to:ft.home,params:{org:t.org},search:{}}}else r=Vd(t.org,a);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:a,...o}=e;return{taskKey:t??(a.trim()||void 0),search:o}}const pw=Rt().int().nonnegative().optional().catch(void 0),Vde={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().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:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},Hde=["files","brand","connections","repositories","skills","memory","instructions","general","site"],Eb={fileView:ia(["all","documents","media"]).catch("all").optional(),modified:ia(["any","today","week","month"]).catch("any").optional(),layout:ia(["list","grid"]).catch("list").optional(),sort:ia(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:d0().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:ia(Hde).catch("files").optional(),scope:ia(["user"]).optional().catch(void 0),action:ia(["create"]).optional().catch(void 0)},Gde={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Kb().optional(),siteUrl:$().optional(),...j4},z4={...Gde,task:$().optional(),project:$().optional(),...zC,skill:Eb.skill,brand:Eb.brand},Sm=Se(z4),Xo=z$({component:()=>v.jsx(Zce,{children:v.jsx(hP,{})})}),Wde=De({getParentRoute:()=>Xo,path:"/login",component:Ie(()=>Le(()=>import("./login-BBM8BuVw.js"),__vite__mapDeps([0,1,2,3,4]))),validateSearch:Qr(()=>Se({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),Kde=De({getParentRoute:()=>Xo,path:"/cli/auth-success",component:Ie(()=>Le(()=>import("./cli-auth-success-iTSJzvih.js"),__vite__mapDeps([5,4])))}),Yde=De({getParentRoute:()=>Xo,path:"/reset-password",component:Ie(()=>Le(()=>import("./reset-password-CWJBwyhD.js"),[])),validateSearch:Qr(()=>Se({token:$().optional(),error:$().optional()}))}),Zde=De({getParentRoute:()=>Xo,path:"/auth/$pathname",component:Ie(()=>Le(()=>import("./auth-catchall-C2bNuCgr.js"),[]))}),Qde=De({getParentRoute:()=>Xo,path:"/oauth/callback",component:Ie(()=>Le(()=>import("./oauth-callback-CqZGgWEK.js"),__vite__mapDeps([6,7,8])))}),Jde=De({getParentRoute:()=>Xo,path:"/oauth/callback/ai-provider",component:Ie(()=>Le(()=>import("./oauth-callback-ai-provider-ByQdMtU8.js"),[]))}),wm=De({getParentRoute:()=>Xo,path:"/_admin",component:Ie(()=>Le(()=>import("./layout-D6sPMagm.js"),__vite__mapDeps([9,10,11])))}),Xde=De({getParentRoute:()=>wm,path:"/",beforeLoad:()=>{throw Xa({to:"/_admin/users"})}}),eue=De({getParentRoute:()=>wm,path:"/users",component:Ie(()=>Le(()=>import("./users-B-TILjnq.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21])))}),tue=De({getParentRoute:()=>wm,path:"/orgs",component:Ie(()=>Le(()=>import("./orgs-CPSuPDLg.js"),__vite__mapDeps([22,13,14,15,16,17,18,23,20,24,25,26,27,28,29,19,30,31,21])))}),aue=De({getParentRoute:()=>wm,path:"/prompts",component:Ie(()=>Le(()=>import("./prompts-yk9XkKJq.js"),__vite__mapDeps([32,16,23,29,21])))}),oue=wm.addChildren([Xde,eue,tue,aue]),UC=De({getParentRoute:()=>Xo,id:"shell",component:Ie(()=>Le(()=>import("./shell-layout-Clz71xPl.js").then(t=>t.d),__vite__mapDeps([33,34,35,11,21,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 Xa({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Zs.lastOrgSlug());if(e)throw Xa({to:"/$org",params:{org:e}});const{data:a}=await xB();if(!a)return;const o=a[0];throw Xa(o?{to:"/$org",params:{org:o.slug}}:{to:"/onboarding"})}}),rue=De({getParentRoute:()=>Xo,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await xB();if(t&&t.length>0)throw Xa({to:"/"})},component:Ie(()=>Le(()=>import("./onboarding-BSEVsBMK.js"),__vite__mapDeps([88,10,4,89,57,23,28,34,43,49,59])))}),U4=Qr(()=>Se({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),iue=De({getParentRoute:()=>Xo,path:"/reports-onboarding",component:Ie(()=>Le(()=>import("./reports-onboarding-Ul6JEKVy.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:()=>Xo,path:"/commerce-onboarding",validateSearch:U4,beforeLoad:({search:t})=>{throw Xa({to:"/reports-onboarding",search:t})}}),lue=De({getParentRoute:()=>Xo,path:"/choose-editor",component:Ie(()=>Le(()=>import("./choose-editor-BxAQqsH4.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(()=>Se({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),qC=De({getParentRoute:()=>Xo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Ie(()=>Le(()=>import("./site-editor-DbCGWerX.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,11,21,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,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])))}),cue=De({getParentRoute:()=>qC,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Ie(()=>Le(()=>import("./site-editor-DbCGWerX.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,11,21,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,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])),"SiteEditorPreview")}),due=De({getParentRoute:()=>qC,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Ie(()=>Le(()=>import("./site-editor-DbCGWerX.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,11,21,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,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])),"SiteEditorContent")}),uue=De({getParentRoute:()=>Xo,path:"/report/$domain",component:Ie(()=>Le(()=>import("./reports-DdigpKAD.js"),__vite__mapDeps([234,104,3,1,2,235])))}),wv=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-dZA-wMYj.js"),__vite__mapDeps([236,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,11,21,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,208,237,24,25,29,238,211,114,113,219,168,239,240,241,228,242,19,243,132,244,245,179,177,31,246,201,200,247,196,99,28,217])))}),xv=De({getParentRoute:()=>wv,id:"org-shell",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./thread-route-9cRZNr2M.js"),__vite__mapDeps([248,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,91,249,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,250,108])))}),pue=Se({sidepanel:VB,mainpanel:HB,main:sa([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>xv,id:"agent-shell",validateSearch:pue,search:{middlewares:[d$(["sidepanel"])]},pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-Ct7_ewBL.js"),__vite__mapDeps([251,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,207,112,113,114,115,144,208,152,143,93,145,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,132,205,206,180,135,133,139,16,116,122,252,253,254,201,190,189,245,179,177,31,187,200,127,255,256,257,258,259,134,170,129])))}),mue=Sm.extend({virtualmcpid:$().optional()}),hue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:mue,component:()=>null}),It=Ie(()=>Le(()=>import("./index-fxFKE7Rw.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,11,21,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-fxFKE7Rw.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,11,21,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:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./home-THfWLX1Q.js"),__vite__mapDeps([260,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,209,143,144,93,145,146,142,115,113,112,114,99,154,210,131,24,25,176,174,211,173,212,196,213,167,208,214,215,152,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,261,262,241,242,124,263,163,166,162,127,247,240,264,265,266,161,164,165,267,268,269,259,134,170,256,257,258,270,239,128,16,244])))}),fue=De({getParentRoute:()=>en,path:"/projects",validateSearch:Sm,beforeLoad:({params:t,search:e})=>{const a=(e.project??e.virtualmcpid)?.trim(),o=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!a)throw Xa({to:"/$org/home",params:{org:t.org},search:o,hash:!0,replace:!0});const n=e.task?.trim();throw Xa(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:a,taskKey:n},search:o,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:a},search:o,hash:!0,replace:!0})}}),la=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:Sm,component:hP}),bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ie(()=>Le(()=>import("./agent-overview-CWssV5Yc.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,11,21,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,209,143,144,93,145,146,142,99,154,210,131,24,25,176,174,211,173,212,196,213,167,208,214,215,152,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,261,262,241,242,124,263,163,166,162,127,247,240,264,265,266,161,164,165,267,268,239,249,96,98,272])))}),vue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...zC}),beforeLoad:({params:t,search:e})=>{const a=F4(t.taskKey,e);if(a)throw Xa({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:a?.taskKey??t.taskKey},search:a.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./project-tasks-B4-5xZpm.js"),__vite__mapDeps([273,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,274,124,125,275,175,167,143,144,93,145,146,142,115,113,112,114,215,276,19,99,28,29,216,277,278,126,241,228,242,269,24,25,247,240,268,279,171,156,141,280,172,281,139,282,151,98,283,227,140,147,148,149,150,152,153,154,226,252,204,210,284,218,219])))}),yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./project-reports-DfiqiVgS.js"),__vite__mapDeps([285,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,286,91,249,96,97,98,272,108,109,270,244])))}),Pv=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Se({autosend:$().optional(),...j4}),component:Ie(()=>Le(()=>import("./agent-site-editor-B49sCcgj.js"),__vite__mapDeps([202,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,203,204,130,131,132,133,134,42,48,135,136,33,34,35,11,21,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,205,206,187,107,184,183,185,182,157,207,144,208,117,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,119,229,140,141,147,148,149,150,121,153,194,193,230,186,170,155,156,231,232,180,139,116,118,122,233])))}),Tue=De({getParentRoute:()=>Pv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ie(()=>Le(()=>import("./agent-site-editor-preview-9wBg_nt8.js"),__vite__mapDeps([287,288,253,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,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,284,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])))}),Sue=De({getParentRoute:()=>Pv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ie(()=>Le(()=>import("./agent-site-editor-content-iErVjhBr.js"),__vite__mapDeps([289,288,253,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,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,284,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,194,195,180,197,198,199,13,14])))}),wue=De({getParentRoute:()=>Pv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Se({file:$().optional()}),component:Ie(()=>Le(()=>import("./agent-site-editor-code-Bt27Wh-E.js"),__vite__mapDeps([290,288,253,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,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,284,16])))}),xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const a=e.automation;if(a)throw Xa({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:a},search:o=>({...o,automation:void 0}),hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./agent-automations-BsD4sRtI.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,17,16,277,292,19])))}),Pue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Se({automationView:ia(["settings","runs"]).optional()}),component:Ie(()=>Le(()=>import("./agent-automation-CyA1eJ7V.js"),__vite__mapDeps([293,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,196,28,167,144,151,254,294,208,112,113,114,115,212,24,25,213,295,277,141,296,214,215,143,93,145,146,142,152,216,297,242,124,298,176,174,169,170,299,14,16,226,252,283,227,140,147,148,149,150,153,154,225])))}),Cue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ie(()=>Le(()=>import("./agent-settings-bg4cFL2R.js"),__vite__mapDeps([300,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,154,216,196,17,304,149,254,152,145,28,167,168,132,245,179,177,31,246,305,142,187,133,306,307,150,188,206])))}),Eue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Eb),component:Ie(()=>Le(()=>import("./agent-library-CWF4NlBt.js"),__vite__mapDeps([308,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,309,99,17,278,115,112,113,114,216,310,29,146,142,258,167,256,257,259,134,170,154,311,199,173,174,14,312,313,314,305,16,302,105,97,106,107,295,303,103,7,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,304,149,254,152,145,28,168,132,245,179,177,31,246,187,133,306,307,150,188,206])))}),kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ie(()=>Le(()=>import("./agent-assets-6uaUqu-8.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,288,253,151,254,149,145,132,207,112,113,114,115,144,208,152,143,93,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,150,153,135,133,201,190,189,245,179,177,31,187,17,178])))}),_ue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Ie(()=>Le(()=>import("./agent-releases-UAZXpaXI.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,288,253,151,254,149,145,132,207,112,113,114,115,144,208,152,143,93,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,150,153,135,133,201,190,189,245,179,177,31,187,130,134,136,194,232,185])))}),Aue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ie(()=>Le(()=>import("./agent-hosting-B1V0UQdc.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,199,31,99,14,141,24,25,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,304,149,254,152,145,28,167,168,132,245,179,177,246,305,142,187,133,306,307,150,188,206])))}),Rue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ie(()=>Le(()=>import("./agent-e2e-BzG5Njlc.js"),__vite__mapDeps([318,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,11,21,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,199,31,141,176,174,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,304,149,254,152,145,28,167,168,132,245,179,177,246,305,142,187,133,306,307,150,188,206])))}),Due=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},validateSearch:Se({view:$().optional()}),component:Ie(()=>Le(()=>import("./agent-analytics-BVA-hdXj.js"),__vite__mapDeps([319,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,196,14,263,163,166,162,199,31,320,265,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,226,227,154,216,17,304,149,254,152,145,28,167,168,132,245,179,177,246,305,142,187,133,306,307,150,188,206,321])))}),Oue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-D8ekHlR-.js"),__vite__mapDeps([322,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,225,19,275,323,167,168,25,171,324,263,163,166,162,14,173,174,242,124,266,161,164,165,267,265,320,247,240,175])))}),Mue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Se({ui:Ze("legacy").optional()}),component:Ie(()=>Le(()=>import("./agent-experiments-wlW8VJJw.js"),__vite__mapDeps([325,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,203,204,112,113,114,115,130,131,132,133,134,135,136,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,194,193,230,186,170,155,156,231,232,180,139,326,14,199,31,158,159,160,161,162,163,164,165,166,16,192,327,328,198,278,282,301,302,295,303,296,17,304,254,28,168,245,179,177,246,305,306,307,188])))}),Nue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Ie(()=>Le(()=>import("./agent-calendar-y11lHEIG.js"),__vite__mapDeps([329,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,203,204,112,113,114,115,130,131,132,133,134,135,136,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,194,193,230,186,170,155,156,231,232,180,139,168,192,327,158,159,160,161,162,163,164,165,166,16,328,198,199,197,301,302,295,303,296,17,304,254,28,245,179,177,31,246,305,306,307,188])))}),Iue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ie(()=>Le(()=>import("./agent-monitor-BQH5Yx_e.js"),__vite__mapDeps([330,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,331,263,163,166,162,199,167,24,25,31,132,320,265,264,332,19,171,101,267,164,165,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,304,149,254,152,145,28,168,245,179,177,246,305,142,187,133,306,307,150,188,206,284,218,219])))}),q4=Se({args:$().optional()}),Lue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/apps/$connectionId/$toolName",validateSearch:q4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ie(()=>Le(()=>import("./agent-app-DSRZxbw3.js"),__vite__mapDeps([333,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,190,334,144,254,147,148,149,112,113,114,115,247,240,124,335,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107])))}),Bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/views/$viewId",validateSearch:q4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ie(()=>Le(()=>import("./agent-view-Cq0YK235.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,334,144,254,147,148,149,112,113,114,115,247,240,124,335,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,301,302,295,16,303,29,151,296,220,221,222,208,24,25,223,224,225,19,226,227,154,216,196,17,304,152,145,28,167,168,132,245,179,177,31,246,305,142,187,133,306,307,150,188,206])))}),Fue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Se({key:$().optional()}),component:Ie(()=>Le(()=>import("./agent-file-BJmjvL-m.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,154,259,216,134,170,146,142,115,153,112,113,114,301,302,105,97,106,107,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,17,304,149,254,152,145,28,167,168,132,245,179,177,31,246,305,187,133,306,307,150,188,206])))}),jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Se({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-deck-A2-c0m6O.js"),__vite__mapDeps([338,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,258,216,167,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,154,196,17,304,149,254,152,145,28,168,132,245,179,177,31,246,305,142,187,133,306,307,150,188,206])))}),zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Se({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-library-file-D_sX0uS4.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,340,257,99,258,216,167,259,134,170,154,146,142,115,301,302,105,97,106,107,112,113,114,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,17,304,149,254,152,145,28,168,132,245,179,177,31,246,305,187,133,306,307,150,188,206])))}),Uue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ie(()=>Le(()=>import("./agent-connect-sources-CRiv9LNt.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,11,21,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,250,108])))}),que=De({getParentRoute:()=>la,path:"/$legacyView",component:()=>null}),$ue=De({getParentRoute:()=>en,path:"/agents",validateSearch:Sm,beforeLoad:({params:t,search:e})=>{const a=e.virtualmcpid?.trim();throw Xa(a?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:a},search:o=>o,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:o=>o,hash:!0,replace:!0})}}),Vue=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:Sm,beforeLoad:({params:t,location:e})=>{const a=t._splat?.split("/").find(Boolean);if(!B4(a))return;const o=Lde(e.pathname);if(!o)return;const n=e.hash?`#${e.hash}`:"";throw Xa({href:`${o}${e.searchStr}${n}`,replace:!0})},component:Ie(()=>Le(()=>import("./legacy-agents-deep-y8J0GP6s.js"),__vite__mapDeps([342,255,66])))}),Hue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...zC}),beforeLoad:({params:t,search:e})=>{const a=F4(t.taskKey,e);if(a)throw Xa({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:a.taskKey},search:a.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./tasks-Br3akql5.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,274,124,125,275,175,167,143,144,93,145,146,142,115,113,112,114,215,276,19,99,28,29,216,277,278,126,241,228,242,269,24,25,247,240,268,279,171,156,141,280,172,281,139,282,151,98,283,227,140,147,148,149,150,152,153,154,226,252,204,210,284,218,219])))}),Gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-D8ekHlR-.js"),__vite__mapDeps([322,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,225,19,275,323,167,168,25,171,324,263,163,166,162,14,173,174,242,124,266,161,164,165,267,265,320,247,240,175])))}),Wue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./thread-analytics-G6rStSUo.js"),__vite__mapDeps([344,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,324,263,163,166,162,14,173,174,19,242,124,266,161,164,165,267,265,320,243,175,167,24,25,176,283,227,140,141,142,143,144,93,145,146,115,113,112,114,147,148,149,150,151,152,153,154,226,252])))}),Kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./reports-DBTfN5pF.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,286,91,249,96,97,98,272,108,109,270,244])))}),Yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Eb),component:Ie(()=>Le(()=>import("./library-CYc9fg8c.js"),__vite__mapDeps([346,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,309,99,17,278,112,113,114,216,310,29,146,142,258,167,256,257,259,134,170,154,311,199,173,174,14,312,313,314,305,16,340])))}),Zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-CfDWTivB.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),$4=Se({view:ia(["metrics","deploys","experiments","analytics"]).optional(),date:eL().optional().catch(void 0),store:$().optional(),at:$().optional()}),Que=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:$4,component:Ie(()=>Le(()=>import("./monitoring-D3H0I7hi.js"),__vite__mapDeps([348,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,199,167,28,332,263,163,166,162,19,171,101,320,265,267,164,165,264,331,24,25,31,132,324,14,173,174,242,124,266,161,335,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,326,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,192,327,230,328,198,29,278,282,240])))}),Jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-CfDWTivB.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,11,21,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:()=>la,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:$4,component:Ie(()=>Le(()=>import("./monitoring-D3H0I7hi.js"),__vite__mapDeps([348,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,199,167,28,332,263,163,166,162,19,171,101,320,265,267,164,165,264,331,24,25,31,132,324,14,173,174,242,124,266,161,335,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,326,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,192,327,230,328,198,29,278,282,240])))}),epe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ie(()=>Le(()=>import("./discover-DJgQKXJH.js"),__vite__mapDeps([349,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,11,21,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:()=>wv,path:"/members",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/members",params:{org:t.org}})}}),ape=Se({main:sa([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...z4,sidepanel:VB,mainpanel:HB,thread:$().optional()}),ope=De({getParentRoute:()=>xv,path:"/",validateSearch:ape,pendingComponent:Zd,component:Ie(()=>Le(()=>import("./index-DWVvKiTX.js"),__vite__mapDeps([350,255,66])))}),npe=De({getParentRoute:()=>xv,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw Xa({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),ca=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>wv,path:"/settings",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route--iMMdfwf.js"),__vite__mapDeps([351,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])))}),rpe=De({getParentRoute:()=>ca,path:"/",component:Ie(()=>Le(()=>import("./index-redirect-CRKl1so8.js"),__vite__mapDeps([352,314])))}),ipe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections",component:Ie(()=>Le(()=>import("./connections-QKF1QePN.js"),__vite__mapDeps([353,105,97,106,107,354,15,50,80,26,173,174,19,17,18,278,99,225,221,81,82,222,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,355,226,117,208,93,23,24,25,29,151,64,8,63,149,62,223,224,102,103,7,196]))),validateSearch:Qr(()=>Se({action:ia(["create"]).optional(),tab:ia(["all","connected"]).optional()}))}),spe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections/$appSlug",component:Ie(()=>Le(()=>import("./connection-detail-BwPdukE_.js"),__vite__mapDeps([356,105,97,106,107,16,224,57,58,357,64,8,254,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,358,74,75,3,2,76,77,30,78,223,304,19,149,7,103,70,121,93,23,152,355,359,263,166,162,265,320,161,266,164,165,267,176,174,222,148,83]))),validateSearch:Qr(()=>Se({tab:$().optional()}))}),lpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>ca,path:"/connections/$appSlug/$collectionName/$itemId",component:Ie(()=>Le(()=>import("./collection-detail-gEKfAeD7.js"),__vite__mapDeps([360,16,64,8,93,23,29,357,254,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,358,74,75,3,2,76,77,30,78,223,148,149,156,222,304,19,7,147,70,112,65,66,62,85,113,114,115,84,33,11,21,67,68,71,72,73,79,81,82,83,20,10,86,87,169,170,199]))),validateSearch:Qr(()=>Se({replayId:$().optional()}))}),cpe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>ca,path:"/monitor",component:Ie(()=>Le(()=>import("./index-CsApew6l.js"),__vite__mapDeps([361,17,18,16,312,313,314,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,11,21,68,69,70,71,72,73,74,79,81,82,83,20,10,86,87,121,151,152,153,154,222,19,167,169,170,298,196,24,25,323,168,171,29,225,28,156,359,263,163,166,162,265,320,161,266,164,165,267,283,227,226,252,14,299,277,199,240,332,101,264,284,218,219]))),validateSearch:Qr(()=>Se({tab:ia(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:ia(["all","success","errors"]).default("all"),search:$().default(""),page:Rt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),dpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>ca,path:"/general",component:Ie(()=>Le(()=>import("./general-BqcsPemZ.js"),__vite__mapDeps([362,296,363,28,35,84,30,77,151,64,8,364,19,24,25,26,27,314])))}),upe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/connect",pendingComponent:Ui("connect"),component:Ie(()=>Le(()=>import("./connect-CHkKmE6B.js"),__vite__mapDeps([365,156,19,24,25,26,27,176,174,142,45,51,52,262,366,37,57,58,199,23,64,8,312,313,314])))}),ppe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/ai-providers",pendingComponent:Ui("billing"),component:Ie(()=>Le(()=>import("./ai-providers-DpN4-Rc5.js"),__vite__mapDeps([367,37,114,43,84,30,77,294,208,117,112,65,66,62,63,64,8,85,75,3,2,76,78,113,115,212,196,53,24,25,26,27,39,44,51,38,18,213,54,48,296,173,174,80,219,57,58,303,28,312,313,314])))}),mpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/billing",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),hpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/infra-billing",pendingComponent:Ui("billing"),component:Ie(()=>Le(()=>import("./infra-billing-ByQAtfnW.js"),__vite__mapDeps([368,46,19,298,196,53,27,68,69,18,167,24,25,26,14,265,162,163,165,320,312,313,314])))}),gpe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>ca,path:"/secrets",component:Ie(()=>Le(()=>import("./secrets-BXN3pXLj.js"),__vite__mapDeps([369,37,57,60,199,23,24,25,26,27,29,307,312,313,314])))}),fpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/api-keys",pendingComponent:Ui("connect"),component:Ie(()=>Le(()=>import("./api-keys-Bib1K_pR.js"),__vite__mapDeps([370,366,37,45,51,57,58,199,23,64,8,312,313,314])))}),bpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/buckets",pendingComponent:Ui("storage"),component:Ie(()=>Le(()=>import("./buckets-CqBAv48G.js"),__vite__mapDeps([371,37,57,58,19,199,23,24,25,26,27,28,29,177,312,313,314])))}),vpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>ca,path:"/repositories",validateSearch:Se({git_error:$().optional().catch(void 0),git_flow:$().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-DszPvY1k.js"),__vite__mapDeps([372,373,79,39,57,80,26,23,81,82,83,18,41,20,84,30,77,40,196,53,60,199,19,156,99,141,24,25,27,29,58,306,307,312,313,314])))}),ype=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/synced-repos",pendingComponent:Ui("storage"),component:Ie(()=>Le(()=>import("./synced-repos-CI3_H3AT.js"),__vite__mapDeps([374,57,199,79,39,80,26,23,81,82,83,18,41,20,84,30,77,310,312,313,314])))}),Tpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>ca,path:"/task-board",component:Ie(()=>Le(()=>import("./tasks-D4tEflS7.js"),__vite__mapDeps([375,196,53,29,44,56,57,175,68,69,18,167,298,19,27,24,25,26,28,297,363,35,84,30,77,151,64,8,20,277,276,61,99,80,121,216,81,82,76,2,312,313,314])))}),Spe=De({getParentRoute:()=>ca,path:"/tasks",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/task-board",params:{org:t.org}})}}),wpe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>ca,path:"/projects",component:Ie(()=>Le(()=>import("./projects-BMFJ8lWh.js"),__vite__mapDeps([376,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,270,303,249,96,97,98,244,62,151])))}),xpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/members",pendingComponent:Ui("members"),component:Ie(()=>Le(()=>import("./members-C3RrM6Y9.js"),__vite__mapDeps([377,354,15,50,80,26,173,174,19,17,18,13,14,16,237,93,23,24,25,27,29,238,378,47,51,58,61,196,53,68,69,167,57,279,312,313,314])))}),Ppe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/roles",pendingComponent:Ui("members"),component:Ie(()=>Le(()=>import("./roles-yd97r8fq.js"),__vite__mapDeps([379,238,378,19,47,57,58,13,14,15,16,17,18,213,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,226,196,227,82,64,8,83,106,107,151,63,114,28,80,26,71,62,313,314]))),validateSearch:Qr(()=>Se({role:$().optional()}))}),Cpe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>ca,path:"/sso",component:Ie(()=>Le(()=>import("./sso-aL7cdgbc.js"),__vite__mapDeps([380,364,19,24,25,26,27,28,86,58,312,313,314])))}),Epe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>ca,path:"/profile",component:Ie(()=>Le(()=>import("./profile-DrTKObjn.js"),__vite__mapDeps([381,159,160,25,58,59,28,24,26,27,173,174,80,54,55,56,296,217])))}),kpe=De({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>ca,path:"/agents",component:Ie(()=>Le(()=>import("./agents-list-CXRwlTsL.js"),__vite__mapDeps([382,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,303,74,75,3,2,76,77,30,78,84,16,358,151,102,103,7,105,97,106,107,79,80,26,23,81,82,83,20,98,100,17,73])))}),_pe=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>ca,path:"/automations",component:Ie(()=>Le(()=>import("./automations-DU9elJA8.js"),__vite__mapDeps([383,57,42,17,18,16,277,64,8,74,63,75,3,2,76,77,30,78,292,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,312,313,314])))}),Ape=De({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>ca,path:"/skills",component:Ie(()=>Le(()=>import("./skills-BjJIGPkE.js"),__vite__mapDeps([384,47,42,58,59,17,18,278,99,80,26,16,225,19,311,146,142,45,115,117,65,66,62,63,64,8,259,216,81,82,134,48,170,154])))}),Rpe=De({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>ca,path:"/memory",component:Ie(()=>Le(()=>import("./memory-DnnTazxf.js"),__vite__mapDeps([385,34,156,80,26,225,19,16,67,216,81,82]))),validateSearch:Qr(()=>Se({scope:ia(["user"]).optional()}))}),Dpe=ca.addChildren([rpe,ipe,spe,lpe,kpe,_pe,Ape,Rpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,fpe,bpe,vpe,ype,Tpe,Spe,wpe,xpe,Ppe,Cpe,Epe]),Ope=Pv.addChildren([Tue,Sue,wue]),Mpe=la.addChildren([bue,vue,yue,Ope,xue,Pue,Cue,Eue,kue,_ue,Aue,Rue,Due,Oue,Mue,Nue,Iue,Lue,Bue,Fue,jue,zue,Uue,que,Jue,Xue]),Npe=en.addChildren([hue,gue,fue,Mpe,$ue,Vue,Hue,Gue,Wue,Kue,Yue,epe,Zue,Que]),Ipe=xv.addChildren([ope,npe,Npe]),Lpe=wv.addChildren([Ipe,tpe,Dpe]),Bpe=UC.addChildren([nue,Lpe]),Fpe=Xo.addChildren([Bpe,oue,rue,iue,sue,lue,qC.addChildren([cue,due]),uue,Wde,Kde,Yde,Zde,Qde,Jde]);function jpe(){const t=ye.c(16),e=qo();let a;t[0]!==e?(a=e("common.index.pageNotFound"),t[0]=e,t[1]=a):a=t[1];let o;t[2]!==a?(o=v.jsx("h3",{className:"text-lg font-medium text-foreground",children:a}),t[2]=a,t[3]=o):o=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=v.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=v.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]!==o||t[13]!==r||t[14]!==c?(d=v.jsx("div",{className:"flex h-full items-center justify-center",children:v.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[o,r,c]})}),t[12]=o,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function zpe(){return window.history.back()}const Cv=Q$({routeTree:Fpe,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:jpe});function _e(...t){return $B(YP(t))}function Upe(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function qa({error:t,localization:e,localizeErrors:a=!0}){var o;const n="Request failed";if(!a)return t?.message?t.message:(o=t?.error)!=null&&o.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 a in t)if(t[a]===e)return a}function Xp(t,e){let a=$().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(a=a.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(a=a.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(a=a.regex(t.regex,{message:e?.INVALID_PASSWORD})),a}var qpe={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"},$pe={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"},ame={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"},ome={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,...qpe,...$pe,...Vpe,...Kpe,...Ype,...Zpe,...Qpe,...Jpe,...Xpe,...eme,...tme,...ame,...ome,...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:a,id:o,nonce:n,src:r}){const s=document.createElement("script");t!==void 0&&(s.async=t),a!==void 0&&(s.defer=a),o&&(s.id=o),n&&s.setAttribute("nonce",n),s.src=r,(e==="head"?document.head:document.body).appendChild(s)}var pme=function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(a[o[n]]=t[o[n]]);return a};let Rp=null,em=!1;const kb=new Set,_b=new Set,mme=typeof window<"u",Ed="___grecaptcha_cfg",G4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function hme(){if(!mme)return;function t(a){if(em)a();else{window[Ed]||(window[Ed]={});const o=window[Ed];o.fns||(o.fns=[]),o.fns.push(a)}}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 a of _b)a();_b.clear()}window[G4]=e}function gme({language:t,onLoadCallbackName:e,render:a,useEnterprise:o=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",s=o?"enterprise.js":"api.js",c=new URLSearchParams({render:a});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:a,useEnterprise:o,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},s=gme({language:t,onLoadCallbackName:G4,render:e,useEnterprise:o,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),a),{src:s}))}function bme(t){if(!window[Ed])return;const e=window[Ed];e.clients&&delete e.clients[t]}function vme(t,e){var{onLoadCallback:a,onLoadCallbackName:o}=e,n=pme(e,["onLoadCallback","onLoadCallbackName"]);if(kb.size===0&&hme(),fme(n),kb.add(t),a&&(em?a():_b.add(a)),o){let r=function(){if(!o)return;const s=window[o];typeof s=="function"&&s()};em?r():_b.add(r)}}function yme(t){var e,a,o;kb.delete(t),kb.size===0&&(window.grecaptcha=void 0,window[Ed]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(a=document.querySelector(`script[src="${Rp}"]`))===null||a===void 0||a.remove(),(o=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||o===void 0||o.remove(),Rp=null,em=!1)}let eM=!1;function Tme({container:t,children:e,language:a,reCaptchaKey:o,scriptProps:n,useEnterprise:r,useRecaptchaNet:s}){var c,d,u,m,h,f,b;const y=A.useId(),[T,x]=A.useState(null),[w,P]=A.useState(null),k=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 vme(y,{language:a,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":o,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,a,o,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,s]),A.useEffect(()=>{var R,O,L;if(!t?.element||!T?.render)return;const q={"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:o,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=T.render(B,q);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")),P(z),k.current=!0,()=>{P(null),k.current=!1,bme(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,(b=t?.parameters)===null||b===void 0?void 0:b.theme,T,o]);const C=!!t?.element,_=C?w:o,D=A.useMemo(()=>_!==null&&T?.execute?R=>{if(_===null||!T?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!k.current?(console.warn("Client ID not mounted"),null):T.execute(_,{action:R})}:void 0,[_,T,C]);return v.jsx(V4.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:T},children:e})}var Sme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const a={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,a),this.notify(t)}setRefetching(t,e){const a=this.cache.get(t);a&&(a.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 a of e)this.notify(a)}}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 a=this.listeners.get(t);a&&(a.delete(e),a.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const a=Array.from(e);for(const o of a)o()}}},Qn=new Sme;function wme(){return()=>{}}function qi(){return A.useSyncExternalStore(wme,()=>!0,()=>!1)}function W4(){const[t,e]=A.useState();return A.useEffect(()=>{const a=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};a();const o=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&a()});return o.observe(document.documentElement,{attributes:!0}),()=>{o.disconnect()}},[]),{lang:t}}function $C(){const[t,e]=A.useState("light");return A.useEffect(()=>{const a=()=>{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")};a();const o=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&a()});return o.observe(document.documentElement,{attributes:!0}),()=>{o.disconnect()}},[]),{theme:t}}function xme({children:t}){const e=qi(),{captcha:a}=A.useContext(St);return a?.provider!=="google-recaptcha-v3"?t:v.jsxs(Tme,{reCaptchaKey:a.siteKey,useEnterprise:a.enterprise,useRecaptchaNet:a.recaptchaNet,children:[e&&v.jsx("style",{children:`
|
|
168
|
+
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var b=t2.test(f)?f.replace(t2,"$1"):f;if(!b.match(/\S*Error: /)){for(var y of r){var T=y(b,o);if(T){u.push(T);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((P=>{return Ne({},P,{filename:P.filename||(k=w,k[k.length-1]||{}).filename,function:P.function||Ud});var k}))})(u)}})("web:javascript",Xse,ale)),this._instance=t,this.fo=(e=(a=this._instance.persistence)==null?void 0:a.get_property(X0))!==null&&e!==void 0?e:[],this.mo=db(this.yo()),this.bo=new hle(this.mo)}onConfigChange(){this.mo=db(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,a,o;if("errorTracking"in t){var n=(e=(a=t.errorTracking)==null?void 0:a.suppressionRules)!==null&&e!==void 0?e:[],r=(o=t.errorTracking)==null?void 0:o.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),a=this._instance.config.error_tracking.captureExtensionExceptions;return(t=a??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(!Ca(t)||t.trim().length===0)return void ki.warn("Ignoring exception step because message must be a non-empty string");var a=this.wo(e),{sanitizedProperties:o,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}})(a);n.length>0&&ki.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Ne({[lb]:t,[cb]:new Date().toISOString()},o))}catch(r){ki.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 ki.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 ki.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 ki.info("Skipping exception capture because it was thrown by the PostHog SDK")}var a=this.mo.enabled&&kt(t.$exception_steps)?this.To(t):t;try{var o=this._instance.capture("$exception",a,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return o&&this.bo.clear(),o}catch(n){return ki.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void ki.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(a){return ki.error("Failed to read buffered exception steps. Capturing exception without steps.",a),t}}So(t){this.mo.enabled&&this.bo.add({[lb]:t,[cb]:new Date().toISOString()})}wo(t){return La(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(((a,o)=>{var{type:n,value:r}=o;return Ca(n)&&n.length>0&&a.$exception_types.push(n),Ca(r)&&r.length>0&&a.$exception_values.push(r),a}),{$exception_types:[],$exception_values:[]});return this.fo.some((a=>{var o=a.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 a.type==="OR"?o.some(Boolean):o.every(Boolean)}))}xo(t){return t.flatMap((e=>{var a,o;return(a=(o=e.stacktrace)==null?void 0:o.frames)!==null&&a!==void 0?a:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,a,o,n,r=(e=(a=t[0].stacktrace)==null?void 0:a.frames)!==null&&e!==void 0?e:[],s=r[r.length-1];return(o=s==null||(n=s.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&o!==void 0&&o}return!1}Io(t){return!kt(t)&&Bt(t)}}},Pce=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({[ax]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(ax)||this.ur((()=>this.Ro()))}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.generateProductTours?t():(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"product-tours",(o=>{o?j2.error("Could not load product tours script",o):t()}))}Ro(){var t;!this.Ao&&(t=at.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=at.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Bt(this.Eo)||e){var a=this.ni;if(a){var o=a.props[Pf];if(Bt(o)&&!e)return this.Eo=o,void t(o,{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,a&&a.register({[Pf]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){kt(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(Pf)}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)}}},vv),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 a=this.globalsForEvent(e);this.No.push(a),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=at._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,a,o,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:b,$set:y}=t;return{event:Ne({},r3(t,gce),{properties:Ne({},t.properties,y?{$set:Ne({},(e=(a=t.properties)==null?void 0:a.$set)!==null&&e!==void 0?e:{},y)}:{},b?{$set_once:Ne({},(o=(n=t.properties)==null?void 0:n.$set_once)!==null&&o!==void 0?o:{},b)}:{}),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],a=()=>{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))},o=!1,n=s=>{e.errored=!s,e.loaded=!0,ys.info("Site app with id "+t.id+" "+(s?"loaded":"errored")),o&&a()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(s){n(s)}});r&&(e.processEvent=r),o=!0}catch(s){ys.error(z2+t.id,s),n(!1)}if(o&&e.loaded)try{a()}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 a of t)this.setupSiteApp(a)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var a of Object.values(this.apps))try{a.processEvent==null||a.processEvent(e)}catch(o){ys.error("Error while processing event "+t.event+" for site app "+a.id,o)}}}onRemoteConfig(t){var e,a,o,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((a=this.Fo)==null||a.call(this),(o=t.siteApps)!=null&&o.length)if(this.isEnabled){var r=function(d){var u;at["__$$ph_site_app_"+d]=n._instance,(u=at.__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,a,o=this.Bo()||[];$e(this.Lo)&&((e=at.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(o,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((a=at.__PosthogExtensions__)==null||(a=a.tracingHeadersPatchFns)==null||a._patchFetch(o,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"tracing-headers",(o=>{if(o)return mce.error("failed to load script",o);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)}}},kce=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(kt(e))return aa.warn("Flags not loaded yet. Not loading surveys.");var a=Bt(e);this.jo=a?e.length>0:e,aa.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var a=localStorage.key(e);(a!=null&&a.startsWith(wx)||a!=null&&a.startsWith("inProgressSurvey_"))&&t.push(a)}t.forEach((o=>localStorage.removeItem(o)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)aa.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)aa.info(U2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())aa.info("Not loading surveys in cookieless mode without consent.");else{var t=at?.__PosthogExtensions__;if(t){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var a=t.generateSurveys;if(a)return void this.Vo(a,e);var o=t.loadExternalDependency;if(!o)return void this.Ho(RC);o(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 aa.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new vce(this._instance),aa.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){aa.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 aa.info(U2),t([]);var a,o=this._instance.get_property(sx);if(o&&!e)return t(o,{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=>{a=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;aa.error(c);var d={isLoaded:!1,error:c};return t([],d),void(a==null||a({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((b=>(function(y){return!(!y.start_date||y.end_date)})(b)&&((function(y){var T;return!((T=y.conditions)==null||(T=T.events)==null||(T=T.values)==null||!T.length)})(b)||(function(y){var T;return!((T=y.conditions)==null||(T=T.actions)==null||(T=T.values)==null||!T.length)})(b))));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),a?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(a){aa.error("Error in survey callback",a)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!kt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);aa.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((a=>{var o;e=(o=a.find((n=>n.id===t)))!==null&&o!==void 0?o:null})),e}Yo(t){if(kt(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(kt(this._surveyManager))return aa.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 kt(this._surveyManager)?(aa.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:lw})):new Promise((a=>{this.getSurveys((o=>{var n,r=(n=o.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var s=this.Yo(r);a({visible:s.eligible,disabledReason:s.reason})}else a({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,a){var o;if(kt(this._surveyManager))aa.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(o=n.appearance)!=null&&o.surveyPopupDelaySeconds?(aa.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var s,c;aa.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,a),aa.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,a);aa.warn("Survey element not found")}else aa.warn("Surveys of type "+n.type+" cannot be rendered in the app");else aa.warn("Survey not found")}}displaySurvey(t,e){var a;if(kt(this._surveyManager))aa.warn("init was not called");else{var o=this.Uo(t);if(o){var n=o;if((a=o.appearance)!=null&&a.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Ne({},o,{appearance:Ne({},o.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==fx.Popover&&e.initialResponses&&aa.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(o);if(!r.visible)return void aa.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 aa.warn("Survey not found")}}cancelPendingSurvey(t){kt(this._surveyManager)?aa.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},vv),_ce={toolbar:class{constructor(t){this.instance=t}Go(t){at.ph_toolbar_state=t}Wo(){var t;return(t=at.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,a){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),a===void 0&&(a=void 0),j3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,a=a??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var o,n=yce||Sb(t.hash,"__posthog")||Sb(t.hash,"state"),r=n?o2((()=>JSON.parse(atob(decodeURIComponent(n)))))||o2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((o=r).source="url",o&&Object.keys(o).length>0&&(r.desiredHash?t.hash=r.desiredHash:a?a.replaceState(a.state,"",t.pathname+t.search):t.hash="")):((o=JSON.parse(e.getItem(q2)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token||(this.loadToolbar(o),0))}catch{return!1}}Xo(t){var e=at.ph_load_toolbar||at.ph_load_editor;!kt(e)&&Ai(e)?e(t,this.instance):$2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById(I3));if(!ge||e)return!1;var a=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,o=Ne({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},a?{instrument:!1}:{});if(ge.localStorage.setItem(q2,JSON.stringify(Ne({},o,{source:void 0}))),this.Wo()===2)this.Xo(o);else if(this.Wo()===0){var n;this.Go(1),(n=at.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return $2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(o)})),Za(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(o)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,a){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),a===void 0&&(a=void 0),this.maybeLoadToolbar(t,e,a)}}},Ace=Ne({experiments:Lo},vv),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;kt(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=at?.__PosthogExtensions__;if(t&&!$e(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 a=t.loadExternalDependency;if(!a)return void this.ra(RC);a(this._instance,"conversations",(o=>{o||!t.initConversations?this.ra("Could not load conversations script",o):this.ta(t.initConversations),this.Qo=!1}))}catch(o){this.ra("Error initializing conversations",o),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,a){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.sendMessage(t,e,a):(Zn.warn(Cl),null)}))()}getMessages(t,e){var a=this;return er((function*(){return a._conversationsManager?a._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=Sa("[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,a=(e=t.logs)==null?void 0:e.captureConsoleLogs;!kt(a)&&a&&(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=at?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(a=>{var o;a||(o=t.logs)==null||!o.initializeLogs?this.Gt.error("Could not load logs script",a):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(RC)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,a,o,n,r,s;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(a=this._instance.config.logs)==null?void 0:a.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(o=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&o!==void 0?o: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 b=h.level||"info",{text:y,number:T}=C3[b]||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 P=Ne({},w,h.attributes||{}),k={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:T,severityText:y,body:{stringValue:h.body},attributes:e2(P)};return h.trace_id&&(k.traceId=h.trace_id),h.span_id&&(k.spanId=h.span_id),$e(h.trace_flags)||(k.flags=h.trace_flags),k})(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 a=this._instance.config.logs,o=Ne({"service.name":a?.serviceName||"unknown_service"},a?.environment&&{"deployment.environment":a.environment},a?.serviceVersion&&{"service.version":a.serviceVersion},a?.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)),o,Zo.LIB_NAME,Zo.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:a}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=a}if(at!=null&&(t=at.location)!=null&&t.href&&(e.currentUrl=at.location.href),this._instance.featureFlags){var o=this._instance.featureFlags.getFlags();o&&o.length>0&&(e.activeFeatureFlags=o)}return e}}},Oce=Ne({},vv,Sce,wce,xce,Pce,Cce,kce,Ece,_ce,Ace,Rce,Dce);tr.__defaultExtensionClasses=Ne({},Oce);var W2,zi=(W2=_p[dd]=new tr,(function(){function t(){t.done||(t.done=!0,s4=!1,fa(_p,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Za(ze,"DOMContentLoaded",t,{capture:!1}):ge&&qe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),W2);let Ii=!1,kx=null,K2=!1;const BC="studio:lp-distinct-id",f4="mesh:lp-distinct-id",dw="/api/_reports/link-token/",Mce=1440*60*1e3;function b4(t){const e="https://analytics.invalid",a=/^[a-z][a-z\d+.-]*:\/\//i.test(t),o=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?a?n.toString():o?`//${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,a])=>[e,typeof a=="string"?b4(a):a]))}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 v4(){try{const t=window.localStorage.getItem(BC)??window.localStorage.getItem(f4);if(!t)return;const{id:e,ts:a}=JSON.parse(t);return typeof e!="string"||!e||typeof a!="number"?void 0:Date.now()-a<=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 a=e??v4();return a?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:a:void 0}catch{return}}function Bce(t){const e=v4();if(e&&(Ice(),e!==t))try{zi.alias(e)}catch{}}function Fce(t,e){if(Ii||typeof window>"u")return;const a=Lce();zi.init(t,{api_host:e,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...a?{bootstrap:{distinctID:a}}:{},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:o=>({...o,...typeof o.name=="string"?{name:b4(o.name)}:{}})},person_profiles:"identified_only"}),Ii=!0}function jce(t,e){Ii&&(zi.identify(t,e),Bce(t))}function zce(){Ii&&(zi.reset(),kx=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=a=>{const o=performance.getEntriesByName(a,"measure")[0];return o?Math.round(o.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!==kx&&(zi.group("organization",t,e),kx=t)}function T4(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 qce(t){const e=ye.c(3),{children:a}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=v.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Uce}}),e[0]=o):o=e[0];let n;return e[1]!==a?(n=v.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[o,v.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:a})]}),e[1]=a,e[2]=n):n=e[2],n}function S4(t){const e=ye.c(20),{orgName:a}=t,o=qo(),n=$ce;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=v.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:v.jsx(Bj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let s;e[1]!==o?(s=o("common.archivedOrgScreen.orgUnavailable"),e[1]=o,e[2]=s):s=e[2];let c;e[3]!==s?(c=v.jsx("h3",{className:"text-lg font-medium",children:s}),e[3]=s,e[4]=c):c=e[4];let d;e[5]!==a||e[6]!==o?(d=a?o("common.archivedOrgScreen.deletedWithName",{orgName:a}):o("common.archivedOrgScreen.deletedGeneric"),e[5]=a,e[6]=o,e[7]=d):d=e[7];let u;e[8]!==d?(u=v.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=v.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]!==o?(h=o("common.goHome"),e[13]=o,e[14]=h):h=e[14];let f;e[15]!==h?(f=v.jsx(vn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let b;return e[17]!==m||e[18]!==f?(b=v.jsxs(qce,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=b):b=e[19],b}function $ce(){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:a}=rm(e);let o;return t[1]!==a?(o=v.jsx(vn,{variant:"outline",size:"sm",asChild:!0,children:v.jsx(Kl,{to:"/$org/settings/profile",params:{org:a},children:"Go to your profile"})}),t[1]=a,t[2]=o):o=t[2],o}function Hce(t){const e=ye.c(13),{area:a,description:o,action:n}=t,r=a?`No access to ${a}`:"No access",s=o??"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=v.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:v.jsx(Gj,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=v.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==s?(u=v.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=v.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??v.jsx(Vce,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=v.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,a){console.error("Uncaught error:",e,a),T4(e,{boundary:"default",error_name:e.name,error_message:e.message,component_stack:a.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:a}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:w4(this.state.error)?v.jsx(S4,{}):Gce(this.state.error)?v.jsx(Hce,{}):v.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:v.jsx(TC,{className:"h-6 w-6 text-destructive"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:a("common.errorBoundary.somethingWentWrong")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||a("common.errorBoundary.unexpectedError")})]}),v.jsx(vn,{variant:"outline",onClick:this.resetError,children:a("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kce(t){const e=ye.c(3),a=qo();let o;return e[0]!==t||e[1]!==a?(o=v.jsx(Wce,{...t,t:a}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}class Yce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,a){console.error("Uncaught error:",e,a);const o=Z2(e);if(T4(e,{boundary:"chunk_root",is_chunk_load_error:o,error_name:e.name,error_message:e.message,component_stack:a.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!o)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)?v.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:v.jsx(Wj,{className:"h-6 w-6 text-primary"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),v.jsx(vn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?w4(this.state.error)?v.jsx(S4,{}):v.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:v.jsx(TC,{className:"h-6 w-6 text-destructive"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),v.jsx(vn,{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),a=qo();let o;return e[0]!==t||e[1]!==a?(o=v.jsx(Yce,{...t,t:a}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}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 a,o,n,r,s;e[0]!==t?({className:a,size:r,interactive:o,asChild:s,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r,e[5]=s):(a=e[1],o=e[2],n=e[3],r=e[4],s=e[5]);const d=(s===void 0?!1:s)?rv:"div";let u;e[6]!==a||e[7]!==o||e[8]!==r?(u=Qe(Qce({size:r,interactive:o}),a),e[6]=a,e[7]=o,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=v.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:a,description:o,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]!==o||e[4]!==n||e[5]!==a?(u=(a||o||n||r)&&v.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[v.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[a&&v.jsx("h2",{className:"text-base font-medium leading-tight",children:a}),(o||n)&&v.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[o,n&&v.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",v.jsx(Fj,{size:12})]})]})]}),r&&v.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=o,e[4]=n,e[5]=a,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=v.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:a,children:o}=t;let n,r,s;if(e[0]!==o||e[1]!==a){const d=A.Children.toArray(o).filter(A.isValidElement);n=Jce,e[5]!==a?(r=Qe("p-0 gap-0 overflow-hidden",a),e[5]=a,e[6]=r):r=e[6],s=d.map(Xce),e[0]=o,e[1]=a,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=v.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 v.jsxs("div",{children:[e>0&&v.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function e0e(t){const e=ye.c(27),{icon:a,title:o,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,b=s?0:void 0;let y;e[4]!==s?(y=s?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),s())}:void 0,e[4]=s,e[5]=y):y=e[5];let T;e[6]!==a?(T=a&&v.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:a}),e[6]=a,e[7]=T):T=e[7];let x;e[8]!==o?(x=v.jsx("div",{className:"text-sm font-medium",children:o}),e[8]=o,e[9]=x):x=e[9];let w;e[10]!==n?(w=n&&v.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 P;e[12]!==d||e[13]!==x||e[14]!==w?(P=v.jsxs("div",{className:"flex-1 min-w-0",children:[x,w,d]}),e[12]=d,e[13]=x,e[14]=w,e[15]=P):P=e[15];let k;e[16]!==r?(k=r&&v.jsx("div",{className:"shrink-0",onClick:ede,children:r}),e[16]=r,e[17]=k):k=e[17];let C;return e[18]!==s||e[19]!==P||e[20]!==k||e[21]!==h||e[22]!==f||e[23]!==b||e[24]!==y||e[25]!==T?(C=v.jsxs("div",{className:h,onClick:s,role:f,tabIndex:b,onKeyDown:y,children:[T,P,k]}),e[18]=s,e[19]=P,e[20]=k,e[21]=h,e[22]=f,e[23]=b,e[24]=y,e[25]=T,e[26]=C):C=e[26],C}function ede(t){return t.stopPropagation()}function t0e(t){const e=ye.c(5),{className:a,children:o}=t;let n;e[0]!==a?(n=Qe("px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=v.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function a0e(t){const e=ye.c(5),{children:a,className:o}=t;let n;e[0]!==o?(n=Qe("flex items-center justify-end gap-2 px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=v.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function tde(t){const e=ye.c(5),{className:a,children:o}=t;let n;e[0]!==a?(n=Qe("flex flex-col gap-10",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=v.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}const yv={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:$j,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function o0e(t){const e=yv[t];return[...e.tabs.map(a=>a.to),...e.ownedRoutes??[]]}function n0e(t){return yv[t].tabs.length>0}const ade=new Set(["owner","admin"]);function x4(){const t=ye.c(11),{org:e,locator:a}=Ks();let o;t[0]!==a?(o=eo.myCapabilities(a),t[0]=a,t[1]=o):o=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]!==o||t[5]!==n?(r={queryKey:o,queryFn:n,staleTime:3e4,retry:2},t[4]=o,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:a,loading:o,error:n}=x4();if(o){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=a?.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=a?.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 P4(){const t=ye.c(10),{data:e,loading:a,error:o}=x4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?ade.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]!==o||t[5]!==s||t[6]!==a||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:a,error:o,isPrivileged:s,roleSlug:n},t[4]=o,t[5]=s,t[6]=a,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function ode(){const t=ye.c(13),{org:e}=Ks(),a=VP(),{capabilities:o,isPrivileged:n}=P4(),r=n||!!o["members:manage"];let s;t[0]!==e.id?(s=eo.infraBillingSites(e.id),t[0]=e.id,t[1]=s):s=t[1];const c=!!e.id&&r;let d;t[2]!==a?(d=()=>a.call("INFRA_BILLING_SITES_LIST",{}),t[2]=a,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 b;return t[10]!==h||t[11]!==f?(b={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=b):b=t[12],b}function nde(t){return t.slug}function i0e(){const t=ye.c(7),e=VP(),a=qo();let o;t[0]!==e?(o=s=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:s}),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==a?(n=s=>Id.error(a("settings.infraBilling.portalError",{message:s.message})),t[2]=a,t[3]=n):n=t[3];let r;return t[4]!==o||t[5]!==n?(r={mutationFn:o,onSuccess:rde,onError:n},t[4]=o,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 a=ye.c(14),{org:o}=Ks(),n=VP();let r,s,c;a[0]!==o.id||a[1]!==e||a[2]!==t?(r=[...t].sort(),c=Hs,s=eo.infraBilling(o.id,r.join(","),e),a[0]=o.id,a[1]=e,a[2]=t,a[3]=r,a[4]=s,a[5]=c):(r=a[3],s=a[4],c=a[5]);const d=r.length>0;let u;a[6]!==e||a[7]!==r||a[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),a[6]=e,a[7]=r,a[8]=n,a[9]=u):u=a[9];let m;return a[10]!==s||a[11]!==d||a[12]!==u?(m={queryKey:s,enabled:d,staleTime:6e4,queryFn:u},a[10]=s,a[11]=d,a[12]=u,a[13]=m):m=a[13],c(m)}function ide(){const t=ye.c(7),{capabilities:e,isPrivileged:a,loading:o,error:n}=P4(),{sites:r,isLoading:s}=ode(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==a||t[3]!==o||t[4]!==c||t[5]!==s){const u=m=>m.requiresOwnedSites&&!c&&!s?!1:o||n?!0:m.privilegedOnly?a:m.requires?a||e[m.requires]:!0;d=Object.fromEntries(Object.values(yv).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=c,t[5]=s,t[6]=d}else d=t[6];return d}function sde(t){const e=ye.c(16),{group:a}=t,o=qo();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=gP(s),d=ide()[a],{titleKey:u}=yv[a];let m;e[2]!==o||e[3]!==u?(m=o(u),e[2]=o,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=v.jsx(xd.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==a||e[8]!==r||e[9]!==c||e[10]!==o||e[11]!==d?(f=d.length>1&&v.jsx(pn.Toolbar.Left.Portal,{children:v.jsx(xd.Tabs,{"data-testid":"settings-subnav","aria-label":o("settings.subnav.ariaLabel"),children:d.map(y=>{const T=y.to.replace("$org",r),x=c===T||c.startsWith(`${T}/`);return v.jsx(xd.Tab,{active:x,asChild:!0,children:v.jsx(Kl,{to:y.to,params:{org:r},onClick:()=>y4("settings_subnav_clicked",{group_key:a,tab_key:y.key}),children:o(y.labelKey)})},y.key)})})}),e[7]=a,e[8]=r,e[9]=c,e[10]=o,e[11]=d,e[12]=f):f=e[12];let b;return e[13]!==h||e[14]!==f?(b=v.jsxs(v.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=b):b=e[15],b}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=v.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[v.jsx(vO,{className:"h-32 w-full"}),v.jsx(vO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function cde(t){const e=ye.c(14),{group:a,fallback:o,errorFallback:n,className:r,children:s}=t;let c;e[0]!==a?(c=v.jsx(sde,{group:a}),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==o?(d=o??v.jsx(C4,{}),e[2]=o,e[3]=d):d=e[3];let u;e[4]!==s||e[5]!==d?(u=v.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=v.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=v.jsx(xd,{children:v.jsx(xd.Content,{children:v.jsx(xd.Container,{children:v.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 v.jsx(cde,{group:t,children:v.jsx(C4,{})})}}function dde(t,e){const a=t&&e?rJ(e,t):null;return{queryKey:eo.activeOrganization(t),queryFn:async()=>{if(!t)return null;const o={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ro.organization.getFullOrganization({query:o}).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=TB(n);return n&&!r&&localStorage.setItem(Zs.lastOrgSlug(),t),e&&n&&iJ(e,t,n),n},initialData:a?a.data:void 0,initialDataUpdatedAt:a?.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],gP(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 a=gde.get(t);return a===void 0?!0:a==="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],gP(e)}function fde(t){return t.matches.findLast(bde)?.staticData.mainView}function bde(t){return t.staticData.mainView}function kf(t){return`agent-view:${encodeURIComponent(t)}`}function vde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const a=decodeURIComponent(e);return a?{id:a}: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),a=e.indexOf(":");if(a<=0)return null;const o=e.slice(0,a),n=e.slice(a+1);return!o||!n?null:{connectionId:o,toolName:n}}function k4(t){return`deck:${encodeURIComponent(t)}`}function Tde(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 _4(t){return`file:${encodeURIComponent(t)}`}function Sde(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"],Pde=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 Tv(t){return Ede.get(t)??t}const jC=new Set(["instructions","connections","layout","settings"]);function kde(t){return!!t&&jC.has(t)}const _de=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 a=Tv(e.type);if(jC.has(a))return"settings";if(Pde.has(a)||_de.has(a))return a;if(a==="ext-app"||a==="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)?kf(e.id):n[0]?kf(n[0]):"settings"}const o=t?.tabs?.[0]?.id;return o?kf(o):"settings"}function h0e(t){const e=t.routeDefaultMain||M4(t.metadata),a=t.panelTabId&&jC.has(t.panelTabId)?"settings":t.panelTabId?Tv(t.panelTabId):t.panelTabId,o=t.metadata?.defaultMainView??null,n=o==null||o.type==="chat";return{mainOpen:t.mainPanelParam??(!!a||!!t.routeDefaultMain||!n),activeTab:a??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?_4(e.key):void 0;case"deck":return e.deck?k4(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 a=Tv(t);return a==="site-editor"&&e.main==="content"?"content":a}}}function b0e(t){const e=t.params??{},a=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return a.file?R4(a.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?kf(e.viewId):void 0;case"file":return a.key?_4(a.key):void 0;case"deck":return a.path?k4(a.path):void 0;case"library-file":return a.path?A4(a.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=vde(t);if(e)return{kind:"agent-view",viewId:e.id};const a=yde(t);if(a)return{kind:"app",connectionId:a.connectionId,toolName:a.toolName};const o=E4(t);if(o)return{kind:"automations",automationId:o.id};const n=Sde(t);if(n)return{kind:"output-file",key:n.key};const r=Tde(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(kde(t))return{kind:"agent-section",section:"settings"};const d=Tv(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 $l(t){const{org:e,agentId:a}=t,o={org:e,agentId:a},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:{...o,taskKey:t.taskKey},search:{}};case"reports":return r?{to:ft.reports,params:{org:e},search:{}}:{to:tt.reports,params:o,search:{}};case"plan":return r?{to:ft.plan,params:{org:e},search:{}}:{to:tt.plan,params:o,search:{}};case"monitoring":return r?{to:ft.monitoring,params:{org:e},search:{}}:{to:tt.monitoring,params:o,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:o,search:{}};case"site-editor":return n.view==="content"?{to:tt.siteEditorContent,params:o,search:{}}:n.view==="code"?{to:tt.siteEditorCode,params:o,search:{file:n.file}}:{to:tt.siteEditor,params:o,search:{}};case"agent-section":return{to:tt[n.section],params:o,search:{}};case"automations":return n.automationId?{to:tt.automation,params:{...o,automationId:n.automationId},search:{}}:{to:tt.automations,params:o,search:{}};case"app":return{to:tt.app,params:{...o,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:tt.view,params:{...o,viewId:n.viewId},search:{}};case"output-file":return{to:tt.outputFile,params:o,search:{key:n.key}};case"output-deck":return{to:tt.outputDeck,params:o,search:{path:n.path}};case"library-file":return{to:tt.libraryFile,params:o,search:{path:n.path}};case"connect-sources":return{to:tt.connectSources,params:o,search:{}}}}function v0e(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",a=t.agentId!==t.superAgentId&&N4(e).kind==="org-destination"?"overview":e;return $l({org:t.org,agentId:t.agentId,tabId:a,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function Ide(t,e,a={}){const o=r=>({...a.search?.(r)??{},...e.search}),n=a.replace??!0;switch(e.to){case ft.tasks:t({to:ft.tasks,params:e.params,search:o,replace:n});return;case ft.home:t({to:ft.home,params:e.params,search:o,replace:n});return;case ft.reports:t({to:ft.reports,params:e.params,search:o,replace:n});return;case ft.discover:t({to:ft.discover,params:e.params,search:o,replace:n});return;case ft.plan:t({to:ft.plan,params:e.params,search:o,replace:n});return;case ft.monitoring:t({to:ft.monitoring,params:e.params,search:o,replace:n});return;case ft.library:t({to:ft.library,params:e.params,search:o,replace:n});return;case tt.root:t({to:tt.root,params:e.params,search:o,replace:n});return;case tt.tasks:t({to:tt.tasks,params:e.params,search:o,replace:n});return;case tt.reports:t({to:tt.reports,params:e.params,search:o,replace:n});return;case tt.plan:t({to:tt.plan,params:e.params,search:o,replace:n});return;case tt.monitoring:t({to:tt.monitoring,params:e.params,search:o,replace:n});return;case tt.siteEditor:t({to:tt.siteEditor,params:e.params,search:o,replace:n});return;case tt.siteEditorContent:t({to:tt.siteEditorContent,params:e.params,search:o,replace:n});return;case tt.siteEditorCode:t({to:tt.siteEditorCode,params:e.params,search:o,replace:n});return;case tt.automations:t({to:tt.automations,params:e.params,search:o,replace:n});return;case tt.automation:t({to:tt.automation,params:e.params,search:o,replace:n});return;case tt.app:t({to:tt.app,params:e.params,search:o,replace:n});return;case tt.view:t({to:tt.view,params:e.params,search:o,replace:n});return;case tt.outputFile:t({to:tt.outputFile,params:e.params,search:o,replace:n});return;case tt.outputDeck:t({to:tt.outputDeck,params:e.params,search:o,replace:n});return;case tt.libraryFile:t({to:tt.libraryFile,params:e.params,search:o,replace:n});return;case tt.connectSources:t({to:tt.connectSources,params:e.params,search:o,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:o,replace:n})}}function y0e(t,e){Ide(t,$l(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 Sv(t,e){return Object.fromEntries(Object.entries(t).filter(([a])=>!e.has(a)))}function jl(t,e){return{...Sv(t,Fde),...e.search}}function zde(t){return Sv(t,jde)}function T0e(t){if(t.search.virtualmcpid===void 0)return null;const e=Pr(t.search.virtualmcpid);if(e){const a=t.routePath===ft.tasks?"board":t.routePath===ft.reports?"reports":null;if(t.routePath===ft.home||a){const o=a?$l({org:t.org,agentId:e,tabId:a}):Vd(t.org,e);return{kind:"canonical",route:o,search:jl(t.search,o)}}}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 Pr(t){return t?.trim()||void 0}function L4(t){return Rde(t)||t!==void 0&&O4.has(t)}function B4(t){const e=Pr(t);return e?e.startsWith("vir_")&&e.length>4||zL(e)!==null||NY(e)!==null||IY(e)!==null||qL(e)||$L(e):!1}function Ude(t){const e=Pr(t.agentIdParam),a=L4(e);return e&&!a?e:Pr(t.virtualMcpIdSearch)??Pr(t.fallbackAgentId)}function S0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const s=_x({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 a=t.search.virtualmcpid!==void 0&&!B4(e);if(!(L4(e)||a))return null;const n=Ude({agentIdParam:a?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=_x({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 qde(t,e,a,o){const n=Pr(o);switch(t){case"board":return n?$l({org:e,agentId:n,tabId:"board"}):{to:ft.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=Es(a.path);return{to:ft.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?$l({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=qde(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const a=Pr(t.agentId);return a?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:a},search:{}}:$l({org:t.org,agentId:a,tabId:t.tabId}):null}function Vd(t,e){const a=Pr(e);return a?{to:tt.root,params:{org:t,agentId:a},search:{}}:{to:ft.home,params:{org:t},search:{}}}function $de(t){const{main:e}=t;if(e===void 0)return null;const a=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Sv(a,I4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...jl(a,n),sidepanel:!0,mainpanel:!1}}}const o=Jp({org:t.org,agentId:t.agentId,tabId:e,search:a});return o?{kind:"canonical",route:o,search:jl(a,o)}:null}function Es(t){return typeof t=="string"&&t.length>0?t:void 0}function _x(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const s=_x({...t,search:Sv(e,I4)});return s?.kind!=="canonical"?s:{...s,search:{...s.search,mainpanel:!1}}}if(e.main!==void 0)return $de({org:t.org,agentId:t.agentId,main:e.main,search:e});const a=Pr(t.agentId),o=t.panel;if(!o){const s=Vd(t.org,a);return{kind:"canonical",route:s,search:jl(e,s)}}const n=Dde(o,{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"&&a?$l({org:t.org,agentId:a,tabId:n}):Jp({org:t.org,agentId:a,tabId:n,search:e}):Jp({org:t.org,agentId:a,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??{},a=Pr(e.virtualmcpid),o=Pr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,a);else if(n!==void 0&&n!==0&&n!=="0"){const s=Jp({org:t.org,agentId:a,tabId:n,search:e}),c=!s&&n.trim().length>0&&o?Jp({org:t.org,agentId:o,tabId:n,search:e}):null;r=s??c??{to:ft.home,params:{org:t.org},search:{}}}else r=Vd(t.org,a);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:a,...o}=e;return{taskKey:t??(a.trim()||void 0),search:o}}const pw=Rt().int().nonnegative().optional().catch(void 0),Vde={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().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:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},Hde=["files","brand","connections","repositories","skills","memory","instructions","general","site"],Eb={fileView:ia(["all","documents","media"]).catch("all").optional(),modified:ia(["any","today","week","month"]).catch("any").optional(),layout:ia(["list","grid"]).catch("list").optional(),sort:ia(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:d0().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:ia(Hde).catch("files").optional(),scope:ia(["user"]).optional().catch(void 0),action:ia(["create"]).optional().catch(void 0)},Gde={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Kb().optional(),siteUrl:$().optional(),...j4},z4={...Gde,task:$().optional(),project:$().optional(),...zC,skill:Eb.skill,brand:Eb.brand},Sm=Se(z4),Xo=z$({component:()=>v.jsx(Zce,{children:v.jsx(hP,{})})}),Wde=De({getParentRoute:()=>Xo,path:"/login",component:Ie(()=>Le(()=>import("./login-DgUtsKWW.js"),__vite__mapDeps([0,1,2,3,4]))),validateSearch:Qr(()=>Se({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),Kde=De({getParentRoute:()=>Xo,path:"/cli/auth-success",component:Ie(()=>Le(()=>import("./cli-auth-success-DNkw3dEj.js"),__vite__mapDeps([5,4])))}),Yde=De({getParentRoute:()=>Xo,path:"/reset-password",component:Ie(()=>Le(()=>import("./reset-password-MrCjOeyS.js"),[])),validateSearch:Qr(()=>Se({token:$().optional(),error:$().optional()}))}),Zde=De({getParentRoute:()=>Xo,path:"/auth/$pathname",component:Ie(()=>Le(()=>import("./auth-catchall-BiTfI2yn.js"),[]))}),Qde=De({getParentRoute:()=>Xo,path:"/oauth/callback",component:Ie(()=>Le(()=>import("./oauth-callback-DbbVim0F.js"),__vite__mapDeps([6,7,8])))}),Jde=De({getParentRoute:()=>Xo,path:"/oauth/callback/ai-provider",component:Ie(()=>Le(()=>import("./oauth-callback-ai-provider-ByP_klHX.js"),[]))}),wm=De({getParentRoute:()=>Xo,path:"/_admin",component:Ie(()=>Le(()=>import("./layout-riOmO6on.js"),__vite__mapDeps([9,10,11])))}),Xde=De({getParentRoute:()=>wm,path:"/",beforeLoad:()=>{throw Xa({to:"/_admin/users"})}}),eue=De({getParentRoute:()=>wm,path:"/users",component:Ie(()=>Le(()=>import("./users-CEnYzpyP.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21])))}),tue=De({getParentRoute:()=>wm,path:"/orgs",component:Ie(()=>Le(()=>import("./orgs-Cs710gnu.js"),__vite__mapDeps([22,13,14,15,16,17,18,23,20,24,25,26,27,28,29,19,30,31,21])))}),aue=De({getParentRoute:()=>wm,path:"/prompts",component:Ie(()=>Le(()=>import("./prompts-B_F4GkjW.js"),__vite__mapDeps([32,16,23,29,21])))}),oue=wm.addChildren([Xde,eue,tue,aue]),UC=De({getParentRoute:()=>Xo,id:"shell",component:Ie(()=>Le(()=>import("./shell-layout-CFh0mRqD.js").then(t=>t.d),__vite__mapDeps([33,34,35,11,21,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 Xa({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Zs.lastOrgSlug());if(e)throw Xa({to:"/$org",params:{org:e}});const{data:a}=await xB();if(!a)return;const o=a[0];throw Xa(o?{to:"/$org",params:{org:o.slug}}:{to:"/onboarding"})}}),rue=De({getParentRoute:()=>Xo,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await xB();if(t&&t.length>0)throw Xa({to:"/"})},component:Ie(()=>Le(()=>import("./onboarding-j1GMg75H.js"),__vite__mapDeps([88,10,4,89,57,23,28,34,43,49,59])))}),U4=Qr(()=>Se({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),iue=De({getParentRoute:()=>Xo,path:"/reports-onboarding",component:Ie(()=>Le(()=>import("./reports-onboarding-BAV-tGI2.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:()=>Xo,path:"/commerce-onboarding",validateSearch:U4,beforeLoad:({search:t})=>{throw Xa({to:"/reports-onboarding",search:t})}}),lue=De({getParentRoute:()=>Xo,path:"/choose-editor",component:Ie(()=>Le(()=>import("./choose-editor-UoMkV9t4.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(()=>Se({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),qC=De({getParentRoute:()=>Xo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Ie(()=>Le(()=>import("./site-editor-C2-TKEXJ.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,11,21,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,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])))}),cue=De({getParentRoute:()=>qC,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Ie(()=>Le(()=>import("./site-editor-C2-TKEXJ.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,11,21,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,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])),"SiteEditorPreview")}),due=De({getParentRoute:()=>qC,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Ie(()=>Le(()=>import("./site-editor-C2-TKEXJ.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,11,21,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,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])),"SiteEditorContent")}),uue=De({getParentRoute:()=>Xo,path:"/report/$domain",component:Ie(()=>Le(()=>import("./reports-wfUqOvyX.js"),__vite__mapDeps([234,104,3,1,2,235])))}),wv=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-Es1NvkGT.js"),__vite__mapDeps([236,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,11,21,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,208,237,24,25,29,238,211,114,113,219,168,239,240,241,228,242,19,243,132,244,245,179,177,31,246,201,200,247,196,99,28,217])))}),xv=De({getParentRoute:()=>wv,id:"org-shell",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./thread-route-BRf6T_zJ.js"),__vite__mapDeps([248,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,91,249,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,250,108])))}),pue=Se({sidepanel:VB,mainpanel:HB,main:sa([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>xv,id:"agent-shell",validateSearch:pue,search:{middlewares:[d$(["sidepanel"])]},pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-DR5ZYcAb.js"),__vite__mapDeps([251,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,207,112,113,114,115,144,208,152,143,93,145,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,132,205,206,180,135,133,139,16,116,122,252,253,254,201,190,189,245,179,177,31,187,200,127,255,256,257,258,259,134,170,129])))}),mue=Sm.extend({virtualmcpid:$().optional()}),hue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:mue,component:()=>null}),It=Ie(()=>Le(()=>import("./index-yPsmQJUX.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,11,21,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-yPsmQJUX.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,11,21,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:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./home-CfIaMz61.js"),__vite__mapDeps([260,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,209,143,144,93,145,146,142,115,113,112,114,99,154,210,131,24,25,176,174,211,173,212,196,213,167,208,214,215,152,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,261,262,241,242,124,263,163,166,162,127,247,240,264,265,266,161,164,165,267,268,269,259,134,170,256,257,258,270,239,128,16,244])))}),fue=De({getParentRoute:()=>en,path:"/projects",validateSearch:Sm,beforeLoad:({params:t,search:e})=>{const a=(e.project??e.virtualmcpid)?.trim(),o=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!a)throw Xa({to:"/$org/home",params:{org:t.org},search:o,hash:!0,replace:!0});const n=e.task?.trim();throw Xa(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:a,taskKey:n},search:o,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:a},search:o,hash:!0,replace:!0})}}),la=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:Sm,component:hP}),bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ie(()=>Le(()=>import("./agent-overview-DzUwaDPE.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,11,21,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,209,143,144,93,145,146,142,99,154,210,131,24,25,176,174,211,173,212,196,213,167,208,214,215,152,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,261,262,241,242,124,263,163,166,162,127,247,240,264,265,266,161,164,165,267,268,239,249,96,98,272])))}),vue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...zC}),beforeLoad:({params:t,search:e})=>{const a=F4(t.taskKey,e);if(a)throw Xa({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:a?.taskKey??t.taskKey},search:a.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./project-tasks-CY2-X4de.js"),__vite__mapDeps([273,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,274,124,125,275,175,167,143,144,93,145,146,142,115,113,112,114,215,276,19,99,28,29,216,277,278,126,241,228,242,269,24,25,247,240,268,279,171,156,141,280,172,281,139,282,151,98,283,227,140,147,148,149,150,152,153,154,226,252,204,210,284,218,219])))}),yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./project-reports-IGQXKPN5.js"),__vite__mapDeps([285,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,286,91,249,96,97,98,272,108,109,270,244])))}),Pv=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Se({autosend:$().optional(),...j4}),component:Ie(()=>Le(()=>import("./agent-site-editor-CHB6L936.js"),__vite__mapDeps([202,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,203,204,130,131,132,133,134,42,48,135,136,33,34,35,11,21,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,205,206,187,107,184,183,185,182,157,207,144,208,117,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,119,229,140,141,147,148,149,150,121,153,194,193,230,186,170,155,156,231,232,180,139,116,118,122,233])))}),Tue=De({getParentRoute:()=>Pv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ie(()=>Le(()=>import("./agent-site-editor-preview-BR5d0muf.js"),__vite__mapDeps([287,288,253,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,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,284,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])))}),Sue=De({getParentRoute:()=>Pv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ie(()=>Le(()=>import("./agent-site-editor-content-wfNxlhTc.js"),__vite__mapDeps([289,288,253,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,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,284,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,194,195,180,197,198,199,13,14])))}),wue=De({getParentRoute:()=>Pv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Se({file:$().optional()}),component:Ie(()=>Le(()=>import("./agent-site-editor-code-rnWgDK69.js"),__vite__mapDeps([290,288,253,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,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,284,16])))}),xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const a=e.automation;if(a)throw Xa({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:a},search:o=>({...o,automation:void 0}),hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./agent-automations-DHlAGZqt.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,17,16,277,292,19])))}),Pue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Se({automationView:ia(["settings","runs"]).optional()}),component:Ie(()=>Le(()=>import("./agent-automation-CC_lLFSH.js"),__vite__mapDeps([293,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,196,28,167,144,151,254,294,208,112,113,114,115,212,24,25,213,295,277,141,296,214,215,143,93,145,146,142,152,216,297,242,124,298,176,174,169,170,299,14,16,226,252,283,227,140,147,148,149,150,153,154,225])))}),Cue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ie(()=>Le(()=>import("./agent-settings--ns22OIv.js"),__vite__mapDeps([300,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,154,216,196,17,304,149,254,152,145,28,167,168,132,245,179,177,31,246,305,142,187,133,306,307,150,188,206])))}),Eue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Eb),component:Ie(()=>Le(()=>import("./agent-library-v2dzRuYM.js"),__vite__mapDeps([308,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,309,99,17,278,115,112,113,114,216,310,29,146,142,258,167,256,257,259,134,170,154,311,199,173,174,14,312,313,314,305,16,302,105,97,106,107,295,303,103,7,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,304,149,254,152,145,28,168,132,245,179,177,31,246,187,133,306,307,150,188,206])))}),kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ie(()=>Le(()=>import("./agent-assets-BRZ3h-_m.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,288,253,151,254,149,145,132,207,112,113,114,115,144,208,152,143,93,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,150,153,135,133,201,190,189,245,179,177,31,187,17,178])))}),_ue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Ie(()=>Le(()=>import("./agent-releases-DwCJjs1Q.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,288,253,151,254,149,145,132,207,112,113,114,115,144,208,152,143,93,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,150,153,135,133,201,190,189,245,179,177,31,187,130,134,136,194,232,185])))}),Aue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ie(()=>Le(()=>import("./agent-hosting-D1g9tqwP.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,199,31,99,14,141,24,25,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,304,149,254,152,145,28,167,168,132,245,179,177,246,305,142,187,133,306,307,150,188,206])))}),Rue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ie(()=>Le(()=>import("./agent-e2e-CioASlMh.js"),__vite__mapDeps([318,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,11,21,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,199,31,141,176,174,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,304,149,254,152,145,28,167,168,132,245,179,177,246,305,142,187,133,306,307,150,188,206])))}),Due=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},validateSearch:Se({view:$().optional()}),component:Ie(()=>Le(()=>import("./agent-analytics-Dea_Sm2-.js"),__vite__mapDeps([319,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,196,14,263,163,166,162,199,31,320,265,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,226,227,154,216,17,304,149,254,152,145,28,167,168,132,245,179,177,246,305,142,187,133,306,307,150,188,206,321])))}),Oue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-purMmAP5.js"),__vite__mapDeps([322,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,225,19,275,323,167,168,25,171,324,263,163,166,162,14,173,174,242,124,266,161,164,165,267,265,320,247,240,175])))}),Mue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Se({ui:Ze("legacy").optional()}),component:Ie(()=>Le(()=>import("./agent-experiments-CcumhNxI.js"),__vite__mapDeps([325,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,203,204,112,113,114,115,130,131,132,133,134,135,136,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,194,193,230,186,170,155,156,231,232,180,139,326,14,199,31,158,159,160,161,162,163,164,165,166,16,192,327,328,198,278,282,301,302,295,303,296,17,304,254,28,168,245,179,177,246,305,306,307,188])))}),Nue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Ie(()=>Le(()=>import("./agent-calendar-CxREsux6.js"),__vite__mapDeps([329,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,203,204,112,113,114,115,130,131,132,133,134,135,136,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,194,193,230,186,170,155,156,231,232,180,139,168,192,327,158,159,160,161,162,163,164,165,166,16,328,198,199,197,301,302,295,303,296,17,304,254,28,245,179,177,31,246,305,306,307,188])))}),Iue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ie(()=>Le(()=>import("./agent-monitor-CDPdxMY7.js"),__vite__mapDeps([330,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,331,263,163,166,162,199,167,24,25,31,132,320,265,264,332,19,171,101,267,164,165,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,304,149,254,152,145,28,168,245,179,177,246,305,142,187,133,306,307,150,188,206,284,218,219])))}),q4=Se({args:$().optional()}),Lue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/apps/$connectionId/$toolName",validateSearch:q4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ie(()=>Le(()=>import("./agent-app-DtceHxFF.js"),__vite__mapDeps([333,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,190,334,144,254,147,148,149,112,113,114,115,247,240,124,335,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107])))}),Bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/views/$viewId",validateSearch:q4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ie(()=>Le(()=>import("./agent-view-BvqKVVI5.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,334,144,254,147,148,149,112,113,114,115,247,240,124,335,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,301,302,295,16,303,29,151,296,220,221,222,208,24,25,223,224,225,19,226,227,154,216,196,17,304,152,145,28,167,168,132,245,179,177,31,246,305,142,187,133,306,307,150,188,206])))}),Fue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Se({key:$().optional()}),component:Ie(()=>Le(()=>import("./agent-file-so3Ekgz4.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,154,259,216,134,170,146,142,115,153,112,113,114,301,302,105,97,106,107,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,17,304,149,254,152,145,28,167,168,132,245,179,177,31,246,305,187,133,306,307,150,188,206])))}),jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Se({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-deck-W_6gGRWO.js"),__vite__mapDeps([338,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,258,216,167,301,302,105,97,106,107,112,113,114,115,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,154,196,17,304,149,254,152,145,28,168,132,245,179,177,31,246,305,142,187,133,306,307,150,188,206])))}),zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Se({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-library-file-Ba-KbKkE.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,340,257,99,258,216,167,259,134,170,154,146,142,115,301,302,105,97,106,107,112,113,114,295,16,303,103,7,29,151,296,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,17,304,149,254,152,145,28,168,132,245,179,177,31,246,305,187,133,306,307,150,188,206])))}),Uue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ie(()=>Le(()=>import("./agent-connect-sources-Cc5YgmZz.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,11,21,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,250,108])))}),que=De({getParentRoute:()=>la,path:"/$legacyView",component:()=>null}),$ue=De({getParentRoute:()=>en,path:"/agents",validateSearch:Sm,beforeLoad:({params:t,search:e})=>{const a=e.virtualmcpid?.trim();throw Xa(a?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:a},search:o=>o,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:o=>o,hash:!0,replace:!0})}}),Vue=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:Sm,beforeLoad:({params:t,location:e})=>{const a=t._splat?.split("/").find(Boolean);if(!B4(a))return;const o=Lde(e.pathname);if(!o)return;const n=e.hash?`#${e.hash}`:"";throw Xa({href:`${o}${e.searchStr}${n}`,replace:!0})},component:Ie(()=>Le(()=>import("./legacy-agents-deep-oaDc8wO4.js"),__vite__mapDeps([342,255,66])))}),Hue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...zC}),beforeLoad:({params:t,search:e})=>{const a=F4(t.taskKey,e);if(a)throw Xa({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:a.taskKey},search:a.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./tasks-Dpq1mXlQ.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,274,124,125,275,175,167,143,144,93,145,146,142,115,113,112,114,215,276,19,99,28,29,216,277,278,126,241,228,242,269,24,25,247,240,268,279,171,156,141,280,172,281,139,282,151,98,283,227,140,147,148,149,150,152,153,154,226,252,204,210,284,218,219])))}),Gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-purMmAP5.js"),__vite__mapDeps([322,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,225,19,275,323,167,168,25,171,324,263,163,166,162,14,173,174,242,124,266,161,164,165,267,265,320,247,240,175])))}),Wue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./thread-analytics-CtcTR_ij.js"),__vite__mapDeps([344,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,324,263,163,166,162,14,173,174,19,242,124,266,161,164,165,267,265,320,243,175,167,24,25,176,283,227,140,141,142,143,144,93,145,146,115,113,112,114,147,148,149,150,151,152,153,154,226,252])))}),Kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./reports-DHZ9jnE-.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,286,91,249,96,97,98,272,108,109,270,244])))}),Yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Eb),component:Ie(()=>Le(()=>import("./library-Dt_VODwM.js"),__vite__mapDeps([346,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,309,99,17,278,112,113,114,216,310,29,146,142,258,167,256,257,259,134,170,154,311,199,173,174,14,312,313,314,305,16,340])))}),Zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-fCa7FPkH.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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),$4=Se({view:ia(["metrics","deploys","experiments","analytics"]).optional(),date:eL().optional().catch(void 0),store:$().optional(),at:$().optional()}),Que=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:$4,component:Ie(()=>Le(()=>import("./monitoring-CfBB8r1M.js"),__vite__mapDeps([348,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,199,167,28,332,263,163,166,162,19,171,101,320,265,267,164,165,264,331,24,25,31,132,324,14,173,174,242,124,266,161,335,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,326,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,192,327,230,328,198,29,278,282,240])))}),Jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-fCa7FPkH.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,11,21,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:()=>la,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:$4,component:Ie(()=>Le(()=>import("./monitoring-CfBB8r1M.js"),__vite__mapDeps([348,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,199,167,28,332,263,163,166,162,19,171,101,320,265,267,164,165,264,331,24,25,31,132,324,14,173,174,242,124,266,161,335,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,326,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,192,327,230,328,198,29,278,282,240])))}),epe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ie(()=>Le(()=>import("./discover-C-gupiYw.js"),__vite__mapDeps([349,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,11,21,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:()=>wv,path:"/members",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/members",params:{org:t.org}})}}),ape=Se({main:sa([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...z4,sidepanel:VB,mainpanel:HB,thread:$().optional()}),ope=De({getParentRoute:()=>xv,path:"/",validateSearch:ape,pendingComponent:Zd,component:Ie(()=>Le(()=>import("./index-C5dfiFIi.js"),__vite__mapDeps([350,255,66])))}),npe=De({getParentRoute:()=>xv,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw Xa({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),ca=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>wv,path:"/settings",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-BYI1w_04.js"),__vite__mapDeps([351,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,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])))}),rpe=De({getParentRoute:()=>ca,path:"/",component:Ie(()=>Le(()=>import("./index-redirect-DMltTqzD.js"),__vite__mapDeps([352,314])))}),ipe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections",component:Ie(()=>Le(()=>import("./connections-BKsPGhzD.js"),__vite__mapDeps([353,105,97,106,107,354,15,50,80,26,173,174,19,17,18,278,99,225,221,81,82,222,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,355,226,117,208,93,23,24,25,29,151,64,8,63,149,62,223,224,102,103,7,196]))),validateSearch:Qr(()=>Se({action:ia(["create"]).optional(),tab:ia(["all","connected"]).optional()}))}),spe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections/$appSlug",component:Ie(()=>Le(()=>import("./connection-detail-BTzq0-mw.js"),__vite__mapDeps([356,105,97,106,107,16,224,57,58,357,64,8,254,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,358,74,75,3,2,76,77,30,78,223,304,19,149,7,103,70,121,93,23,152,355,359,263,166,162,265,320,161,266,164,165,267,176,174,222,148,83]))),validateSearch:Qr(()=>Se({tab:$().optional()}))}),lpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>ca,path:"/connections/$appSlug/$collectionName/$itemId",component:Ie(()=>Le(()=>import("./collection-detail-D7GUC7Dd.js"),__vite__mapDeps([360,16,64,8,93,23,29,357,254,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,358,74,75,3,2,76,77,30,78,223,148,149,156,222,304,19,7,147,70,112,65,66,62,85,113,114,115,84,33,11,21,67,68,71,72,73,79,81,82,83,20,10,86,87,169,170,199]))),validateSearch:Qr(()=>Se({replayId:$().optional()}))}),cpe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>ca,path:"/monitor",component:Ie(()=>Le(()=>import("./index-dyo6wh5U.js"),__vite__mapDeps([361,17,18,16,312,313,314,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,11,21,68,69,70,71,72,73,74,79,81,82,83,20,10,86,87,121,151,152,153,154,222,19,167,169,170,298,196,24,25,323,168,171,29,225,28,156,359,263,163,166,162,265,320,161,266,164,165,267,283,227,226,252,14,299,277,199,240,332,101,264,284,218,219]))),validateSearch:Qr(()=>Se({tab:ia(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:ia(["all","success","errors"]).default("all"),search:$().default(""),page:Rt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),dpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>ca,path:"/general",component:Ie(()=>Le(()=>import("./general-CeOBobjk.js"),__vite__mapDeps([362,296,363,28,35,84,30,77,151,64,8,364,19,24,25,26,27,314])))}),upe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/connect",pendingComponent:Ui("connect"),component:Ie(()=>Le(()=>import("./connect-DCArRhMu.js"),__vite__mapDeps([365,156,19,24,25,26,27,176,174,142,45,51,52,262,366,37,57,58,199,23,64,8,312,313,314])))}),ppe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/ai-providers",pendingComponent:Ui("billing"),component:Ie(()=>Le(()=>import("./ai-providers-8aNYexZO.js"),__vite__mapDeps([367,37,114,43,84,30,77,294,208,117,112,65,66,62,63,64,8,85,75,3,2,76,78,113,115,212,196,53,24,25,26,27,39,44,51,38,18,213,54,48,296,173,174,80,219,57,58,303,28,312,313,314])))}),mpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/billing",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),hpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/infra-billing",pendingComponent:Ui("billing"),component:Ie(()=>Le(()=>import("./infra-billing-weSo9hes.js"),__vite__mapDeps([368,46,19,298,196,53,27,68,69,18,167,24,25,26,14,265,162,163,165,320,312,313,314])))}),gpe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>ca,path:"/secrets",component:Ie(()=>Le(()=>import("./secrets-B87bnnT8.js"),__vite__mapDeps([369,37,57,60,199,23,24,25,26,27,29,307,312,313,314])))}),fpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/api-keys",pendingComponent:Ui("connect"),component:Ie(()=>Le(()=>import("./api-keys-DMelMJEn.js"),__vite__mapDeps([370,366,37,45,51,57,58,199,23,64,8,312,313,314])))}),bpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/buckets",pendingComponent:Ui("storage"),component:Ie(()=>Le(()=>import("./buckets-DqjY95YI.js"),__vite__mapDeps([371,37,57,58,19,199,23,24,25,26,27,28,29,177,312,313,314])))}),vpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>ca,path:"/repositories",validateSearch:Se({git_error:$().optional().catch(void 0),git_flow:$().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-CtTuC1Hs.js"),__vite__mapDeps([372,373,79,39,57,80,26,23,81,82,83,18,41,20,84,30,77,40,196,53,60,199,19,156,99,141,24,25,27,29,58,306,307,312,313,314])))}),ype=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/synced-repos",pendingComponent:Ui("storage"),component:Ie(()=>Le(()=>import("./synced-repos-BkrGinYm.js"),__vite__mapDeps([374,57,199,79,39,80,26,23,81,82,83,18,41,20,84,30,77,310,312,313,314])))}),Tpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>ca,path:"/task-board",component:Ie(()=>Le(()=>import("./tasks-lqMRM7Lw.js"),__vite__mapDeps([375,196,53,29,44,56,57,175,68,69,18,167,298,19,27,24,25,26,28,297,363,35,84,30,77,151,64,8,20,277,276,61,99,80,121,216,81,82,76,2,312,313,314])))}),Spe=De({getParentRoute:()=>ca,path:"/tasks",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/task-board",params:{org:t.org}})}}),wpe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>ca,path:"/projects",component:Ie(()=>Le(()=>import("./projects-Dv4lrItl.js"),__vite__mapDeps([376,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,270,303,249,96,97,98,244,62,151])))}),xpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/members",pendingComponent:Ui("members"),component:Ie(()=>Le(()=>import("./members-Cip4CN1C.js"),__vite__mapDeps([377,354,15,50,80,26,173,174,19,17,18,13,14,16,237,93,23,24,25,27,29,238,378,47,51,58,61,196,53,68,69,167,57,279,312,313,314])))}),Ppe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/roles",pendingComponent:Ui("members"),component:Ie(()=>Le(()=>import("./roles-DoAZd2f4.js"),__vite__mapDeps([379,238,378,19,47,57,58,13,14,15,16,17,18,213,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,226,196,227,82,64,8,83,106,107,151,63,114,28,80,26,71,62,313,314]))),validateSearch:Qr(()=>Se({role:$().optional()}))}),Cpe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>ca,path:"/sso",component:Ie(()=>Le(()=>import("./sso-BnmIWVxe.js"),__vite__mapDeps([380,364,19,24,25,26,27,28,86,58,312,313,314])))}),Epe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>ca,path:"/profile",component:Ie(()=>Le(()=>import("./profile-BsxWlumA.js"),__vite__mapDeps([381,159,160,25,58,59,28,24,26,27,173,174,80,54,55,56,296,217])))}),kpe=De({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>ca,path:"/agents",component:Ie(()=>Le(()=>import("./agents-list-DpIfckJp.js"),__vite__mapDeps([382,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,303,74,75,3,2,76,77,30,78,84,16,358,151,102,103,7,105,97,106,107,79,80,26,23,81,82,83,20,98,100,17,73])))}),_pe=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>ca,path:"/automations",component:Ie(()=>Le(()=>import("./automations-BVaTi9yR.js"),__vite__mapDeps([383,57,42,17,18,16,277,64,8,74,63,75,3,2,76,77,30,78,292,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,312,313,314])))}),Ape=De({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>ca,path:"/skills",component:Ie(()=>Le(()=>import("./skills-BDo7F1SW.js"),__vite__mapDeps([384,47,42,58,59,17,18,278,99,80,26,16,225,19,311,146,142,45,115,117,65,66,62,63,64,8,259,216,81,82,134,48,170,154])))}),Rpe=De({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>ca,path:"/memory",component:Ie(()=>Le(()=>import("./memory-_pGxZsnC.js"),__vite__mapDeps([385,34,156,80,26,225,19,16,67,216,81,82]))),validateSearch:Qr(()=>Se({scope:ia(["user"]).optional()}))}),Dpe=ca.addChildren([rpe,ipe,spe,lpe,kpe,_pe,Ape,Rpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,fpe,bpe,vpe,ype,Tpe,Spe,wpe,xpe,Ppe,Cpe,Epe]),Ope=Pv.addChildren([Tue,Sue,wue]),Mpe=la.addChildren([bue,vue,yue,Ope,xue,Pue,Cue,Eue,kue,_ue,Aue,Rue,Due,Oue,Mue,Nue,Iue,Lue,Bue,Fue,jue,zue,Uue,que,Jue,Xue]),Npe=en.addChildren([hue,gue,fue,Mpe,$ue,Vue,Hue,Gue,Wue,Kue,Yue,epe,Zue,Que]),Ipe=xv.addChildren([ope,npe,Npe]),Lpe=wv.addChildren([Ipe,tpe,Dpe]),Bpe=UC.addChildren([nue,Lpe]),Fpe=Xo.addChildren([Bpe,oue,rue,iue,sue,lue,qC.addChildren([cue,due]),uue,Wde,Kde,Yde,Zde,Qde,Jde]);function jpe(){const t=ye.c(16),e=qo();let a;t[0]!==e?(a=e("common.index.pageNotFound"),t[0]=e,t[1]=a):a=t[1];let o;t[2]!==a?(o=v.jsx("h3",{className:"text-lg font-medium text-foreground",children:a}),t[2]=a,t[3]=o):o=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=v.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=v.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]!==o||t[13]!==r||t[14]!==c?(d=v.jsx("div",{className:"flex h-full items-center justify-center",children:v.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[o,r,c]})}),t[12]=o,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function zpe(){return window.history.back()}const Cv=Q$({routeTree:Fpe,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:jpe});function _e(...t){return $B(YP(t))}function Upe(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function qa({error:t,localization:e,localizeErrors:a=!0}){var o;const n="Request failed";if(!a)return t?.message?t.message:(o=t?.error)!=null&&o.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 a in t)if(t[a]===e)return a}function Xp(t,e){let a=$().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(a=a.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(a=a.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(a=a.regex(t.regex,{message:e?.INVALID_PASSWORD})),a}var qpe={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"},$pe={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"},ame={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"},ome={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,...qpe,...$pe,...Vpe,...Kpe,...Ype,...Zpe,...Qpe,...Jpe,...Xpe,...eme,...tme,...ame,...ome,...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:a,id:o,nonce:n,src:r}){const s=document.createElement("script");t!==void 0&&(s.async=t),a!==void 0&&(s.defer=a),o&&(s.id=o),n&&s.setAttribute("nonce",n),s.src=r,(e==="head"?document.head:document.body).appendChild(s)}var pme=function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(a[o[n]]=t[o[n]]);return a};let Rp=null,em=!1;const kb=new Set,_b=new Set,mme=typeof window<"u",Ed="___grecaptcha_cfg",G4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function hme(){if(!mme)return;function t(a){if(em)a();else{window[Ed]||(window[Ed]={});const o=window[Ed];o.fns||(o.fns=[]),o.fns.push(a)}}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 a of _b)a();_b.clear()}window[G4]=e}function gme({language:t,onLoadCallbackName:e,render:a,useEnterprise:o=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",s=o?"enterprise.js":"api.js",c=new URLSearchParams({render:a});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:a,useEnterprise:o,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},s=gme({language:t,onLoadCallbackName:G4,render:e,useEnterprise:o,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),a),{src:s}))}function bme(t){if(!window[Ed])return;const e=window[Ed];e.clients&&delete e.clients[t]}function vme(t,e){var{onLoadCallback:a,onLoadCallbackName:o}=e,n=pme(e,["onLoadCallback","onLoadCallbackName"]);if(kb.size===0&&hme(),fme(n),kb.add(t),a&&(em?a():_b.add(a)),o){let r=function(){if(!o)return;const s=window[o];typeof s=="function"&&s()};em?r():_b.add(r)}}function yme(t){var e,a,o;kb.delete(t),kb.size===0&&(window.grecaptcha=void 0,window[Ed]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(a=document.querySelector(`script[src="${Rp}"]`))===null||a===void 0||a.remove(),(o=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||o===void 0||o.remove(),Rp=null,em=!1)}let eM=!1;function Tme({container:t,children:e,language:a,reCaptchaKey:o,scriptProps:n,useEnterprise:r,useRecaptchaNet:s}){var c,d,u,m,h,f,b;const y=A.useId(),[T,x]=A.useState(null),[w,P]=A.useState(null),k=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 vme(y,{language:a,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":o,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,a,o,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,s]),A.useEffect(()=>{var R,O,L;if(!t?.element||!T?.render)return;const q={"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:o,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=T.render(B,q);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")),P(z),k.current=!0,()=>{P(null),k.current=!1,bme(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,(b=t?.parameters)===null||b===void 0?void 0:b.theme,T,o]);const C=!!t?.element,_=C?w:o,D=A.useMemo(()=>_!==null&&T?.execute?R=>{if(_===null||!T?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!k.current?(console.warn("Client ID not mounted"),null):T.execute(_,{action:R})}:void 0,[_,T,C]);return v.jsx(V4.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:T},children:e})}var Sme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const a={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,a),this.notify(t)}setRefetching(t,e){const a=this.cache.get(t);a&&(a.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 a of e)this.notify(a)}}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 a=this.listeners.get(t);a&&(a.delete(e),a.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const a=Array.from(e);for(const o of a)o()}}},Qn=new Sme;function wme(){return()=>{}}function qi(){return A.useSyncExternalStore(wme,()=>!0,()=>!1)}function W4(){const[t,e]=A.useState();return A.useEffect(()=>{const a=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};a();const o=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&a()});return o.observe(document.documentElement,{attributes:!0}),()=>{o.disconnect()}},[]),{lang:t}}function $C(){const[t,e]=A.useState("light");return A.useEffect(()=>{const a=()=>{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")};a();const o=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&a()});return o.observe(document.documentElement,{attributes:!0}),()=>{o.disconnect()}},[]),{theme:t}}function xme({children:t}){const e=qi(),{captcha:a}=A.useContext(St);return a?.provider!=="google-recaptcha-v3"?t:v.jsxs(Tme,{reCaptchaKey:a.siteKey,useEnterprise:a.enterprise,useRecaptchaNet:a.recaptchaNet,children:[e&&v.jsx("style",{children:`
|
|
169
169
|
.grecaptcha-badge {
|
|
170
170
|
visibility: hidden;
|
|
171
171
|
border-radius: var(--radius) !important;
|